EventGroupsAPI.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class EventGroupAPI
  10. * @hideconstructor
  11. * @classdesc API class that contains event group functionality
  12. */
  13. define([], function () {
  14. var EventGroupsAPI = function () {
  15. function EventGroupsAPI() {
  16. _classCallCheck(this, EventGroupsAPI);
  17. }
  18. /**
  19. * @public
  20. * @function EventGroupsAPI#groupExists
  21. * @description Check if a group with the given group id exists
  22. * @param {string} groupId - group id
  23. * @returns {boolean} TRUE if the group exists and FALSE if it does not
  24. */
  25. EventGroupsAPI.prototype.groupExists = function groupExists() {};
  26. /**
  27. * @public
  28. * @function EventGroupsAPI#getGroupId
  29. * @description Get the group id of the given widget
  30. * @param {string} widgetId - widget id
  31. * @returns {string} group id
  32. */
  33. EventGroupsAPI.prototype.getGroupId = function getGroupId() {};
  34. /**
  35. * @public
  36. * @function EventGroups#getGroupIdsOnPage
  37. * @description Get the ids of the groups on a given page
  38. * @param {String} pageId - page id
  39. * @returns {String[]} a list of the group ids for the page
  40. */
  41. EventGroupsAPI.prototype.getGroupIdsOnPage = function getGroupIdsOnPage() {};
  42. /**
  43. * @public
  44. * @function EventGroupsAPI#getContentIdList
  45. * @description Get the content id list of the given group id
  46. * @param {string} groupId - group id
  47. * @returns {string[]} a list of content ids
  48. */
  49. EventGroupsAPI.prototype.getContentIdList = function getContentIdList() {};
  50. /**
  51. * @public
  52. * @function EventGroupsAPI#addToGroup
  53. * @description Add widgets to a group with the given group id. If the group doesn't exists it will be created
  54. * @param {string} groupId - group id to add the widgets to
  55. * @param {[string]} widgetIds - widget ids to add to the group
  56. * @param {string} [transactionToken] - transaction token
  57. */
  58. EventGroupsAPI.prototype.addToGroup = function addToGroup() {};
  59. /**
  60. * @public
  61. * @function EventGroupsAPI#createGroup
  62. * @description Create a new group with the given widget ids
  63. * @param {[string]} widgetIds - widget ids to add to the new group
  64. * @param {string} [transactionToken] - transaction token
  65. * @returns {string} newly created group id
  66. */
  67. EventGroupsAPI.prototype.createGroup = function createGroup() {};
  68. /**
  69. * @public
  70. * @function EventGroupsAPI#removeFromGroup
  71. * @description Remove the given widgets from group to it's own groups
  72. * @param {[string]} widgetIds - widget ids to remove from group
  73. * @param {string} [transactionToken] - transaction token
  74. * @returns {[string]} group ids
  75. */
  76. EventGroupsAPI.prototype.removeFromGroup = function removeFromGroup() {};
  77. return EventGroupsAPI;
  78. }();
  79. return EventGroupsAPI;
  80. });
  81. //# sourceMappingURL=EventGroupsAPI.js.map