LiveWidgetSegmentAPI.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. /**
  9. * @interface LiveWidgetSegmentAPI
  10. * @example dashboard.getFeature('LiveWidgetSegment)
  11. */
  12. define([], function () {
  13. var LiveWidgetSegmentAPI = function () {
  14. function LiveWidgetSegmentAPI() {
  15. _classCallCheck(this, LiveWidgetSegmentAPI);
  16. }
  17. /**
  18. * @function LiveWidgetSegmentAPI#track
  19. * @description Track a segment event for live widget actions
  20. * @param {Object} event The information about the event that is being tracked
  21. * @param {String} event.category The event that we track. Values accepted: fromRecommendation, Recommended, Other, colorPalette.
  22. * @param {Object} event.visualization The visualization API for the vis that is being tracked
  23. * @param {Object} event.info Additional details about the event
  24. */
  25. LiveWidgetSegmentAPI.prototype.track = function track() {};
  26. return LiveWidgetSegmentAPI;
  27. }();
  28. return LiveWidgetSegmentAPI;
  29. });
  30. //# sourceMappingURL=LiveWidgetSegmentAPI.js.map