DataSourcesUIAPI.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. 2018, 2020
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class DataSourcesUIAPI
  10. * @hideconstructor
  11. *
  12. * @classdesc implementation of the DataSourcesUIAPI interface.
  13. */
  14. define([], function () {
  15. var DataSourcesUIAPI = function () {
  16. function DataSourcesUIAPI() {
  17. _classCallCheck(this, DataSourcesUIAPI);
  18. }
  19. /**
  20. * @function DataSourcesUIAPI#getColumnSourceTree
  21. * @description gets mui tree hierarchy of an item
  22. * @public
  23. * @async
  24. *
  25. * @param {String} sourceId
  26. * @param {String} columnId
  27. *
  28. * @return {Object} React object with a hierarchy tree of an item
  29. */
  30. DataSourcesUIAPI.prototype.getColumnSourceTree = function getColumnSourceTree() /*sourceId, columnId*/{};
  31. /**
  32. * @function DataSourcesUIAPI#pickItems
  33. * @description Used to pick disambiguated fields from the datasource
  34. */
  35. DataSourcesUIAPI.prototype.pickItems = function pickItems() {};
  36. /**
  37. * @function DataSourcesUIAPI#getPickTree
  38. * @description used to pick fields from filtered mui tree
  39. * @public
  40. * @async
  41. *
  42. * @param {String} sourceId (e.g. '').
  43. * @param {String} searchString (e.g. 'Revenue').
  44. * @param {Requester~requestCallback} onSelectCallack Callback function that acts based on the selected fields on dashboard side.
  45. * @param {String[]} [includeOptions=null] To filter the MUI tree based on the items in the array. (e.g. ['QueryItem', 'fact'])
  46. * @param {PickTreeContext} [context] Context describing where the pick tree is being requested to render
  47. *
  48. * @return {Object} React object with mui tree fields that match filter
  49. */
  50. DataSourcesUIAPI.prototype.getPickTree = function getPickTree() /*sourceId, searchString, onSelectCallack, includeOptions*/{};
  51. return DataSourcesUIAPI;
  52. }();
  53. return DataSourcesUIAPI;
  54. });
  55. //# sourceMappingURL=DataSourcesUIAPI.js.map