CollectionToQueryJSON.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. 'use strict';
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /*
  4. *+------------------------------------------------------------------------+
  5. *| Licensed Materials - Property of IBM
  6. *| IBM Cognos Products: Dashboard
  7. *| (C) Copyright IBM Corp. 2019
  8. *|
  9. *| US Government Users Restricted Rights - Use, duplication or disclosure
  10. *| restricted by GSA ADP Schedule Contract with IBM Corp.
  11. *+------------------------------------------------------------------------+
  12. */
  13. define(function () {
  14. 'use strict';
  15. /**
  16. * @return the JSON-like object for use in the query (stripped of attributes not relevant to query)
  17. */
  18. var CollectionToQueryJSON = function () {
  19. function CollectionToQueryJSON() {
  20. _classCallCheck(this, CollectionToQueryJSON);
  21. }
  22. CollectionToQueryJSON.prototype.toQueryJSON = function toQueryJSON() {
  23. var collectionQueryJSON = this.map(function (model) {
  24. return model.toQueryJSON();
  25. });
  26. return collectionQueryJSON;
  27. };
  28. return CollectionToQueryJSON;
  29. }();
  30. return CollectionToQueryJSON;
  31. });
  32. //# sourceMappingURL=CollectionToQueryJSON.js.map