SerializerAPI.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. "use strict";
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /*
  4. * Licensed Materials - Property of IBM
  5. * IBM Business Analytics (C) Copyright IBM Corp. 2020
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. define([], function () {
  9. /**
  10. * @interface SerializerAPI
  11. * @hideconstructor
  12. * @classdesc API class for the Dashboard Serializer feature, which allows the generation of a JS object representing the dashboard.
  13. * @example dashboard.getFeature('Serializer')
  14. */
  15. var SerializerAPI = function () {
  16. function SerializerAPI() {
  17. _classCallCheck(this, SerializerAPI);
  18. }
  19. /**
  20. * Calling this method builds and return a JS object representing the current dashboard.
  21. * If given a list of content IDs, a minimum dashboard spec (containing the specified IDs) will be returned.
  22. * @param {Object} [options] Options used to generate a dashboard spec.
  23. * @param {Array} options.contentIds List of content IDs
  24. * @param {Array} options.dashboardFeatures List of dashboard features to include in the spec,
  25. * include all features by default.
  26. * @returns {object} JS object representing the current dashboard
  27. */
  28. SerializerAPI.prototype.toJSON = function toJSON() {};
  29. return SerializerAPI;
  30. }();
  31. return SerializerAPI;
  32. });
  33. //# sourceMappingURL=SerializerAPI.js.map