@thoughtspot/visual-embed-sdk 1.44.4 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +33 -1
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +10 -4
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +28 -7
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/conversation.d.ts +10 -6
  9. package/cjs/src/embed/conversation.d.ts.map +1 -1
  10. package/cjs/src/embed/conversation.js +12 -2
  11. package/cjs/src/embed/conversation.js.map +1 -1
  12. package/cjs/src/embed/conversation.spec.js +3 -0
  13. package/cjs/src/embed/conversation.spec.js.map +1 -1
  14. package/cjs/src/embed/embed.spec.js +1 -0
  15. package/cjs/src/embed/embed.spec.js.map +1 -1
  16. package/cjs/src/embed/liveboard.d.ts +32 -0
  17. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  18. package/cjs/src/embed/liveboard.js +10 -4
  19. package/cjs/src/embed/liveboard.js.map +1 -1
  20. package/cjs/src/embed/liveboard.spec.js +57 -33
  21. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  22. package/cjs/src/embed/pinboard.spec.js +1 -0
  23. package/cjs/src/embed/pinboard.spec.js.map +1 -1
  24. package/cjs/src/embed/search.d.ts +1 -0
  25. package/cjs/src/embed/search.d.ts.map +1 -1
  26. package/cjs/src/embed/search.js +10 -2
  27. package/cjs/src/embed/search.js.map +1 -1
  28. package/cjs/src/embed/search.spec.js +12 -0
  29. package/cjs/src/embed/search.spec.js.map +1 -1
  30. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  31. package/cjs/src/embed/ts-embed.js +7 -3
  32. package/cjs/src/embed/ts-embed.js.map +1 -1
  33. package/cjs/src/embed/ts-embed.spec.js +1 -0
  34. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  35. package/cjs/src/types.d.ts +236 -158
  36. package/cjs/src/types.d.ts.map +1 -1
  37. package/cjs/src/types.js +198 -125
  38. package/cjs/src/types.js.map +1 -1
  39. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
  40. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  41. package/cjs/src/utils/graphql/answerService/answer-queries.js +0 -1
  42. package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  43. package/cjs/src/utils/graphql/answerService/answerService.spec.js +0 -1
  44. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  45. package/cjs/src/utils/processTrigger.js +1 -1
  46. package/cjs/src/utils/processTrigger.js.map +1 -1
  47. package/cjs/src/utils/processTrigger.spec.js +12 -0
  48. package/cjs/src/utils/processTrigger.spec.js.map +1 -1
  49. package/dist/{index-C5FAW929.js → index-Dk-SLdNk.js} +1 -1
  50. package/dist/src/embed/app.d.ts +33 -1
  51. package/dist/src/embed/app.d.ts.map +1 -1
  52. package/dist/src/embed/conversation.d.ts +10 -6
  53. package/dist/src/embed/conversation.d.ts.map +1 -1
  54. package/dist/src/embed/liveboard.d.ts +32 -0
  55. package/dist/src/embed/liveboard.d.ts.map +1 -1
  56. package/dist/src/embed/search.d.ts +1 -0
  57. package/dist/src/embed/search.d.ts.map +1 -1
  58. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  59. package/dist/src/types.d.ts +236 -158
  60. package/dist/src/types.d.ts.map +1 -1
  61. package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
  62. package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  63. package/dist/tsembed-react.es.js +251 -145
  64. package/dist/tsembed-react.js +250 -144
  65. package/dist/tsembed.es.js +251 -145
  66. package/dist/tsembed.js +250 -144
  67. package/dist/visual-embed-sdk-react-full.d.ts +303 -146
  68. package/dist/visual-embed-sdk-react.d.ts +303 -146
  69. package/dist/visual-embed-sdk.d.ts +308 -163
  70. package/lib/package.json +1 -1
  71. package/lib/src/embed/app.d.ts +33 -1
  72. package/lib/src/embed/app.d.ts.map +1 -1
  73. package/lib/src/embed/app.js +10 -4
  74. package/lib/src/embed/app.js.map +1 -1
  75. package/lib/src/embed/app.spec.js +28 -7
  76. package/lib/src/embed/app.spec.js.map +1 -1
  77. package/lib/src/embed/conversation.d.ts +10 -6
  78. package/lib/src/embed/conversation.d.ts.map +1 -1
  79. package/lib/src/embed/conversation.js +12 -2
  80. package/lib/src/embed/conversation.js.map +1 -1
  81. package/lib/src/embed/conversation.spec.js +3 -0
  82. package/lib/src/embed/conversation.spec.js.map +1 -1
  83. package/lib/src/embed/embed.spec.js +1 -0
  84. package/lib/src/embed/embed.spec.js.map +1 -1
  85. package/lib/src/embed/liveboard.d.ts +32 -0
  86. package/lib/src/embed/liveboard.d.ts.map +1 -1
  87. package/lib/src/embed/liveboard.js +10 -4
  88. package/lib/src/embed/liveboard.js.map +1 -1
  89. package/lib/src/embed/liveboard.spec.js +57 -33
  90. package/lib/src/embed/liveboard.spec.js.map +1 -1
  91. package/lib/src/embed/pinboard.spec.js +1 -0
  92. package/lib/src/embed/pinboard.spec.js.map +1 -1
  93. package/lib/src/embed/search.d.ts +1 -0
  94. package/lib/src/embed/search.d.ts.map +1 -1
  95. package/lib/src/embed/search.js +10 -2
  96. package/lib/src/embed/search.js.map +1 -1
  97. package/lib/src/embed/search.spec.js +12 -0
  98. package/lib/src/embed/search.spec.js.map +1 -1
  99. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  100. package/lib/src/embed/ts-embed.js +7 -3
  101. package/lib/src/embed/ts-embed.js.map +1 -1
  102. package/lib/src/embed/ts-embed.spec.js +1 -0
  103. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  104. package/lib/src/types.d.ts +236 -158
  105. package/lib/src/types.d.ts.map +1 -1
  106. package/lib/src/types.js +198 -125
  107. package/lib/src/types.js.map +1 -1
  108. package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
  109. package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  110. package/lib/src/utils/graphql/answerService/answer-queries.js +0 -1
  111. package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  112. package/lib/src/utils/graphql/answerService/answerService.spec.js +0 -1
  113. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  114. package/lib/src/utils/processTrigger.js +1 -1
  115. package/lib/src/utils/processTrigger.js.map +1 -1
  116. package/lib/src/utils/processTrigger.spec.js +12 -0
  117. package/lib/src/utils/processTrigger.spec.js.map +1 -1
  118. package/package.json +1 -1
  119. package/src/embed/app.spec.ts +39 -7
  120. package/src/embed/app.ts +50 -6
  121. package/src/embed/conversation.spec.ts +3 -0
  122. package/src/embed/conversation.ts +22 -8
  123. package/src/embed/embed.spec.ts +1 -0
  124. package/src/embed/liveboard.spec.ts +77 -42
  125. package/src/embed/liveboard.ts +47 -5
  126. package/src/embed/pinboard.spec.ts +1 -0
  127. package/src/embed/search.spec.ts +16 -0
  128. package/src/embed/search.ts +12 -1
  129. package/src/embed/ts-embed.spec.ts +1 -0
  130. package/src/embed/ts-embed.ts +7 -3
  131. package/src/types.ts +263 -184
  132. package/src/utils/graphql/answerService/answer-queries.ts +0 -1
  133. package/src/utils/graphql/answerService/answerService.spec.ts +0 -1
  134. package/src/utils/processTrigger.spec.ts +18 -0
  135. package/src/utils/processTrigger.ts +1 -1
package/cjs/src/types.js CHANGED
@@ -346,7 +346,11 @@ var HomepageModule;
346
346
  var ListPageColumns;
347
347
  (function (ListPageColumns) {
348
348
  /**
349
- * Favourite
349
+ * Favorites
350
+ */
351
+ ListPageColumns["Favorites"] = "FAVOURITE";
352
+ /**
353
+ * @deprecated Use {@link ListPageColumns.Favorites} instead.
350
354
  */
351
355
  ListPageColumns["Favourite"] = "FAVOURITE";
352
356
  /**
@@ -365,6 +369,10 @@ var ListPageColumns;
365
369
  * Share
366
370
  */
367
371
  ListPageColumns["Share"] = "SHARE";
372
+ /**
373
+ * Verified badge/column
374
+ */
375
+ ListPageColumns["Verified"] = "VERIFIED";
368
376
  })(ListPageColumns = exports.ListPageColumns || (exports.ListPageColumns = {}));
369
377
  /**
370
378
  * Event types emitted by the embedded ThoughtSpot application.
@@ -581,7 +589,7 @@ var EmbedEvent;
581
589
  /**
582
590
  * An error has occurred. This event is fired for the following error types:
583
591
  *
584
- * `API` - API call failure error.
592
+ * `API` - API call failure.
585
593
  * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen
586
594
  * mode. `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value
587
595
  * filter. `NON_EXIST_FILTER` - Error due to a non-existent filter.
@@ -1312,20 +1320,20 @@ var EmbedEvent;
1312
1320
  /**
1313
1321
  *
1314
1322
  * This event can be emitted to intercept search execution initiated by
1315
- * the users and implement the logic to allow or restrict search execution.
1316
- * You can can also show custom error text if the search query must be
1323
+ * users and implement logic to allow or restrict search execution.
1324
+ * You can also show custom error text if the search query must be
1317
1325
  * restricted due to your application or business requirements.
1318
1326
 
1319
1327
  * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
1320
1328
  * for this embed event to get emitted.
1321
- * @param:payload The payload received from the embed related to the Data API call.
1322
- * @param:responder
1323
- * Contains elements that lets developers define whether ThoughtSpot
1324
- * should run the search, and if not, what error message
1325
- * should be shown to the user.
1329
+ * @param - Includes the following event listener parameters:
1330
+ * - `payload`: The payload received from the embed related to the Data API call.
1331
+ * - `responder`: Contains elements that let developers define whether ThoughtSpot
1332
+ * should run the search, and if not, what error message
1333
+ * should be shown to the user.
1326
1334
  *
1327
- * `execute` - When execute returns `true`, the search will be run.
1328
- * When execute returns `false`, the search will not be executed.
1335
+ * `execute` - When `execute` returns `true`, the search will be run.
1336
+ * When `execute` returns `false`, the search will not be executed.
1329
1337
  *
1330
1338
  * `error` - Developers can customize the error message text when `execute`
1331
1339
  * is `false` using the `errorText` and `errorDescription` parameters in responder.
@@ -1497,7 +1505,7 @@ var EmbedEvent;
1497
1505
  * console.log('payload', payload);
1498
1506
  * })
1499
1507
  * ```
1500
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
1508
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
1501
1509
  */
1502
1510
  EmbedEvent["DataModelInstructions"] = "DataModelInstructions";
1503
1511
  /**
@@ -1716,14 +1724,14 @@ var HostEvent;
1716
1724
  * the search query string.
1717
1725
  * Supported in `AppEmbed` and `SearchEmbed` deployments.
1718
1726
  * Includes the following properties:
1719
- * @param - `searchQuery` - query string with search tokens
1720
- * @param - `dataSources` - Data source GUID to Search on
1721
- * - Although an array, only a single source
1722
- * is supported.
1723
- * @param - `execute` - executes search and updates the existing query
1727
+ * @param - Includes the following keys:
1728
+ * - `searchQuery`: Query string with search tokens.
1729
+ * - `dataSources`: Data source GUID to search on.
1730
+ * Although an array, only a single source is supported.
1731
+ * - `execute`: Executes search and updates the existing query.
1724
1732
  * @example
1725
1733
  * ```js
1726
- * searchembed.trigger(HostEvent.Search, {
1734
+ * searchEmbed.trigger(HostEvent.Search, {
1727
1735
  searchQuery: "[sales] by [item type]",
1728
1736
  dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"],
1729
1737
  execute: true
@@ -1734,16 +1742,15 @@ var HostEvent;
1734
1742
  /**
1735
1743
  * Triggers a drill on certain points of the specified column
1736
1744
  * Includes the following properties:
1737
- * @param - points - an object containing selectedPoints/clickedPoints
1738
- * to drill to. For example, { selectedPoints: []}
1739
- * @param - columnGuid - Optional. GUID of the column to drill
1740
- * by. If not provided it will auto drill by the configured
1741
- * column.
1742
- * @param - autoDrillDown - Optional. If true, the drill down will be
1743
- * done automatically on the most popular column.
1744
- * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
1745
- * in case of a Liveboard.
1746
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
1745
+ * @param - Includes the following keys:
1746
+ * - `points`: An object containing `selectedPoints` and/or `clickedPoint`
1747
+ * to drill to. For example, `{ selectedPoints: [] }`.
1748
+ * - `columnGuid`: Optional. GUID of the column to drill by. If not provided,
1749
+ * it will auto drill by the configured column.
1750
+ * - `autoDrillDown`: Optional. If `true`, the drill down will be done automatically
1751
+ * on the most popular column.
1752
+ * - `vizId` (TS >= 9.8.0): Optional. The GUID of the visualization to drill in case
1753
+ * of a Liveboard. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
1747
1754
  * @example
1748
1755
  * ```js
1749
1756
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -1836,14 +1843,12 @@ var HostEvent;
1836
1843
  * and `AppEmbed` only. In full application embedding, this event updates
1837
1844
  * the runtime filters applied on the Liveboard and saved Answer objects.
1838
1845
  *
1839
- * @param - Pass an array of {@link RuntimeFilter} with the following attributes:
1840
- * `columnName` - _String_. The name of the column to filter on.
1841
- *
1842
- * `operator` - {@link RuntimeFilterOp} to apply. For more information,
1843
- * see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
1844
- *
1845
- * `values` - List of operands. Some operators such as EQ and LE allow a
1846
- * single value, whereas BW and IN accept multiple values.
1846
+ * @param - Array of {@link RuntimeFilter} objects. Each item includes:
1847
+ * - `columnName`: Name of the column to filter on.
1848
+ * - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
1849
+ * link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
1850
+ * - `values`: List of operands. Some operators such as EQ and LE allow a single
1851
+ * value, whereas BW and IN accept multiple values.
1847
1852
  *
1848
1853
  * **Note**: Updating runtime filters resets the ThoughtSpot
1849
1854
  * object to its original state and applies new filter conditions.
@@ -1866,7 +1871,7 @@ var HostEvent;
1866
1871
  /**
1867
1872
  * Navigate to a specific page in the embedded ThoughtSpot application.
1868
1873
  * This is the same as calling `appEmbed.navigateToPage(path, true)`.
1869
- * @param - `path` - the path to navigate to to go forward or back. The path value can
1874
+ * @param - `path` - the path to navigate to go forward or back. The path value can
1870
1875
  * be a number; for example, `1`, `-1`.
1871
1876
  * @example
1872
1877
  * ```js
@@ -1937,30 +1942,25 @@ var HostEvent;
1937
1942
  * for the Answer that the user is currently on
1938
1943
  * and a modal opens for Liveboard selection.
1939
1944
  * To add an Answer or visualization to a Liveboard programmatically without
1940
- * showing requiring additional user input via *Pin to Liveboard* modal, define
1945
+ * requiring additional user input via the *Pin to Liveboard* modal, define
1941
1946
  * the following parameters:
1942
1947
  *
1943
- * @param
1944
- * `vizId`- GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
1945
- * Optional when pinning a new chart or table generated from a Search query.
1946
- * **Required** in Spotter Embed.
1947
- * @param
1948
- * `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
1949
- * specify the `newLiveboardName` parameter to create a new Liveboard.
1950
- * @param
1951
- * `tabId` - GUID of the Liveboard tab. Adds the Answer to the Liveboard tab
1952
- * specified in the code.
1953
- * @param
1954
- * `newVizName` - Name string for the Answer or visualization. If defined,
1955
- * this parameter adds a new visualization object or creates a copy of the
1956
- * Answer or visualization specified in `vizId`.
1957
- * Required attribute.
1958
- * @param
1959
- * `newLiveboardName` - Name string for the Liveboard.
1960
- * Creates a new Liveboard object with the specified name.
1961
- * @param
1962
- * `newTabName` - Name of the tab. Adds a new tab Liveboard specified
1963
- * in the code.
1948
+ * @param - Includes the following keys:
1949
+ * - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
1950
+ * Optional when pinning a new chart or table generated from a Search query.
1951
+ * **Required** in Spotter Embed.
1952
+ * - `liveboardId`: GUID of the Liveboard to pin an Answer. If there is no Liveboard,
1953
+ * specify the `newLiveboardName` parameter to create a new Liveboard.
1954
+ * - `tabId`: GUID of the Liveboard tab. Adds the Answer to the Liveboard tab
1955
+ * specified in the code.
1956
+ * - `newVizName`: Name string for the Answer or visualization. If defined,
1957
+ * this parameter adds a new visualization object or creates a copy of the
1958
+ * Answer or visualization specified in `vizId`.
1959
+ * Required.
1960
+ * - `newLiveboardName`: Name string for the Liveboard.
1961
+ * Creates a new Liveboard object with the specified name.
1962
+ * - `newTabName`: Name of the tab. Adds a new tab Liveboard specified
1963
+ * in the code.
1964
1964
  *
1965
1965
  * @example
1966
1966
  * ```js
@@ -2200,9 +2200,9 @@ var HostEvent;
2200
2200
  * on a Liveboard.
2201
2201
  *
2202
2202
  * This event is not supported in visualization embed and search embed.
2203
- * @param - object - To trigger the action for a specific visualization
2204
- * in Liveboard embed, pass in `vizId` as a key.
2205
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
2203
+ * @param - Object parameter. Includes the following keys:
2204
+ * - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
2205
+ * pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
2206
2206
  *
2207
2207
  * @example
2208
2208
  * ```js
@@ -2569,10 +2569,9 @@ var HostEvent;
2569
2569
  HostEvent["GetFilters"] = "getFilters";
2570
2570
  /**
2571
2571
  * Update one or several filters applied on a Liveboard.
2572
- * @param - `filter`: a single filter object containing column name,
2573
- * filter operator, and values.
2574
- * @param - `filters`: multiple filter objects with column name, filter operator,
2575
- * and values for each.
2572
+ * @param - Includes the following keys:
2573
+ * - `filter`: A single filter object containing column name, filter operator, and values.
2574
+ * - `filters`: Multiple filter objects with column name, filter operator, and values for each.
2576
2575
  *
2577
2576
  * Each filter object must include the following attributes:
2578
2577
  *
@@ -2698,8 +2697,9 @@ var HostEvent;
2698
2697
  HostEvent["SetHiddenTabs"] = "SetPinboardHiddenTabs";
2699
2698
  /**
2700
2699
  * Updates the search query string for Natural Language Search operations.
2701
- * @param - `queryString`: Text string in Natural Language format
2702
- * @param - `executeSearch`: Boolean to execute search and update search query
2700
+ * @param - Includes the following keys:
2701
+ * - `queryString`: Text string in Natural Language format.
2702
+ * - `executeSearch`: Boolean to execute search and update search query.
2703
2703
  * @example
2704
2704
  * ```js
2705
2705
  * sageEmbed.trigger(HostEvent.UpdateSageQuery, {
@@ -2778,11 +2778,10 @@ var HostEvent;
2778
2778
  /**
2779
2779
  * Triggers an action to update Parameter values on embedded
2780
2780
  * Answers, Liveboard, and Spotter answer in Edit mode.
2781
- * @param - `name` - Name of the Parameter
2782
- * @param - `value` - The value to set for the Parameter.
2783
- *
2784
- * Optionally, to control the visibility of the Parameter chip,
2785
- * use the `isVisibleToUser` attribute when applying an override.
2781
+ * @param - Includes the following keys for each item:
2782
+ * - `name`: Name of the parameter.
2783
+ * - `value`: The value to set for the parameter.
2784
+ * - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
2786
2785
  *
2787
2786
  * @example
2788
2787
  * ```js
@@ -2840,11 +2839,10 @@ var HostEvent;
2840
2839
  * If no parameters are specified, the save action is
2841
2840
  * triggered with a modal to prompt users to
2842
2841
  * add a name and description for the Answer.
2843
- * @param - `vizId` refers to the Answer ID in Spotter embed
2844
- * and is required in Spotter embed.
2845
- * Optional attributes to set Answer properties include:
2846
- * @param - `name` - Name string for the Answer.
2847
- * @param - `description` - Description text for the Answer.
2842
+ * @param - Includes the following keys:
2843
+ * - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter embed.
2844
+ * - `name`: Optional. Name string for the Answer.
2845
+ * - `description`: Optional. Description text for the Answer.
2848
2846
  * @example
2849
2847
  * ```js
2850
2848
  * const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
@@ -2893,8 +2891,9 @@ var HostEvent;
2893
2891
  /**
2894
2892
  * Triggers a search operation with the search tokens specified in
2895
2893
  * the search query string in spotter embed.
2896
- * @param - `query`: Text string in Natural Language format
2897
- * @param - `executeSearch`: Boolean to execute search and update search query
2894
+ * @param - Includes the following keys:
2895
+ * - `query`: Text string in Natural Language format.
2896
+ * - `executeSearch`: Boolean to execute search and update search query.
2898
2897
  * @example
2899
2898
  * ```js
2900
2899
  * spotterEmbed.trigger(HostEvent.SpotterSearch, {
@@ -2941,7 +2940,7 @@ var HostEvent;
2941
2940
  * ```js
2942
2941
  * spotterEmbed.trigger(HostEvent.DataModelInstructions);
2943
2942
  * ```
2944
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
2943
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
2945
2944
  */
2946
2945
  HostEvent["DataModelInstructions"] = "DataModelInstructions";
2947
2946
  /**
@@ -3026,7 +3025,7 @@ var HostEvent;
3026
3025
  */
3027
3026
  HostEvent["UpdateEmbedParams"] = "updateEmbedParams";
3028
3027
  /**
3029
- * Triggered when the embed is needed to be destroyed. This is used to clean up any embed related resources internally.
3028
+ * Triggered when the embed needs to be destroyed. This is used to clean up any embed-related resources internally.
3030
3029
  * @example
3031
3030
  * ```js
3032
3031
  * liveboardEmbed.trigger(HostEvent.DestroyEmbed);
@@ -3034,11 +3033,12 @@ var HostEvent;
3034
3033
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
3035
3034
  */
3036
3035
  HostEvent["DestroyEmbed"] = "EmbedDestroyed";
3037
- /** Triggers a create new conversation operation in spotter embed.
3038
- * @example
3039
- * ```js
3036
+ /**
3037
+ * Triggers a new conversation in Spotter embed.
3038
+ *
3040
3039
  * This feature is available only when chat history is enabled on your ThoughtSpot instance.
3041
3040
  * Contact your admin or ThoughtSpot Support to enable chat history on your instance.
3041
+ *
3042
3042
  * @example
3043
3043
  * ```js
3044
3044
  * spotterEmbed.trigger(HostEvent.StartNewSpotterConversation);
@@ -3195,12 +3195,14 @@ var Param;
3195
3195
  Param["IsLiveboardStylingAndGroupingEnabled"] = "isLiveboardStylingAndGroupingEnabled";
3196
3196
  Param["IsLazyLoadingForEmbedEnabled"] = "isLazyLoadingForEmbedEnabled";
3197
3197
  Param["RootMarginForLazyLoad"] = "rootMarginForLazyLoad";
3198
- Param["LiveboardXLSXCSVDownload"] = "isLiveboardXLSXCSVDownloadEnabled";
3199
3198
  Param["isPNGInScheduledEmailsEnabled"] = "isPNGInScheduledEmailsEnabled";
3199
+ Param["isLiveboardXLSXCSVDownloadEnabled"] = "isLiveboardXLSXCSVDownloadEnabled";
3200
+ Param["isGranularXLSXCSVSchedulesEnabled"] = "isGranularXLSXCSVSchedulesEnabled";
3200
3201
  Param["isCentralizedLiveboardFilterUXEnabled"] = "isCentralizedLiveboardFilterUXEnabled";
3201
3202
  Param["isLinkParametersEnabled"] = "isLinkParametersEnabled";
3202
3203
  Param["EnablePastConversationsSidebar"] = "enablePastConversationsSidebar";
3203
3204
  Param["UpdatedSpotterChatPrompt"] = "updatedSpotterChatPrompt";
3205
+ Param["IsThisPeriodInDateFiltersEnabled"] = "isThisPeriodInDateFiltersEnabled";
3204
3206
  })(Param = exports.Param || (exports.Param = {}));
3205
3207
  /**
3206
3208
  * ThoughtSpot application pages include actions and menu commands
@@ -3213,7 +3215,7 @@ var Param;
3213
3215
  * ```js
3214
3216
  * const embed = new LiveboardEmbed('#tsEmbed', {
3215
3217
  * ... //other embed view config
3216
- * visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
3218
+ * visibleActions: [Action.Save, Action.Edit, Action.Present, Action.Explore],
3217
3219
  * disabledActions: [Action.Download],
3218
3220
  * //hiddenActions: [], // Set either this or visibleActions
3219
3221
  * })
@@ -3224,10 +3226,10 @@ var Param;
3224
3226
  * ... //other embed view config
3225
3227
  * //visibleActions: [],
3226
3228
  * disabledActions: [Action.Download],
3227
- * hiddenActions: [Action.Edit, ActionAction.Explore],
3229
+ * hiddenActions: [Action.Edit, Action.Explore],
3228
3230
  * })
3229
3231
  * ```
3230
- * See also link:https://developers.thoughtspot.com/docs/actions[Action IDs in the SDK]
3232
+ * See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
3231
3233
  */
3232
3234
  var Action;
3233
3235
  (function (Action) {
@@ -3515,6 +3517,16 @@ var Action;
3515
3517
  * ```
3516
3518
  */
3517
3519
  Action["DownloadAsXlsx"] = "downloadAsXLSX";
3520
+ /**
3521
+ * The **Download Liveboard** menu action on a Liveboard.
3522
+ * Allows downloading the entire Liveboard.
3523
+ * @example
3524
+ * ```js
3525
+ * disabledActions: [Action.DownloadLiveboard]
3526
+ * ```
3527
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
3528
+ */
3529
+ Action["DownloadLiveboard"] = "downloadLiveboard";
3518
3530
  /**
3519
3531
  * @hidden
3520
3532
  */
@@ -3734,13 +3746,15 @@ var Action;
3734
3746
  */
3735
3747
  Action["RequestAccess"] = "requestAccess";
3736
3748
  /**
3737
- * The **Query visualizer** and **Query SQL** buttons in
3738
- * Query details panel of the Answer page.
3749
+ * Controls the display and availability of the **Query visualizer** and
3750
+ * **Query SQL** buttons in the Query details panel on the Answer page.
3739
3751
  *
3740
- * **Query visualizer** - Displays the tables
3741
- * and filters used in a search query.
3742
- * **Query SQL** - Displays the SQL statements used
3743
- * in a search query to fetch data.
3752
+ * **Query visualizer** - Displays the tables and filters used in the search query.
3753
+ * **Query SQL** - Displays the SQL statements used to retrieve data for the query.
3754
+ *
3755
+ * Note: This action ID only affects the visibility of the buttons within the
3756
+ * Query details panel. It does not control the visibility
3757
+ * of the query details icon on the Answer page.
3744
3758
  * @example
3745
3759
  * ```js
3746
3760
  * disabledActions: [Action.QueryDetailsButtons]
@@ -3854,28 +3868,28 @@ var Action;
3854
3868
  Action["CrossFilter"] = "context-menu-item-cross-filter";
3855
3869
  /**
3856
3870
  * The **Sync to Slack** action on Liveboard visualizations.
3857
- * Allows sending data to third-party apps Slack
3871
+ * Allows sending data to third-party apps like Slack.
3858
3872
  * @example
3859
3873
  * ```js
3860
3874
  * disabledActions: [Action.SyncToSlack]
3861
3875
  * ```
3862
- * @version @version SDK : 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
3876
+ * @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
3863
3877
  */
3864
3878
  Action["SyncToSlack"] = "syncToSlack";
3865
3879
  /**
3866
3880
  * The **Sync to Teams** action on Liveboard visualizations.
3867
- * Allows sending data to third-party apps Team
3881
+ * Allows sending data to third-party apps like Microsoft Teams.
3868
3882
  * @example
3869
3883
  * ```js
3870
3884
  * disabledActions: [Action.SyncToTeams]
3871
3885
  * ```
3872
- * @version @version SDK : 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
3886
+ * @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
3873
3887
  */
3874
3888
  Action["SyncToTeams"] = "syncToTeams";
3875
3889
  /**
3876
3890
  * The **Remove** action that appears when cross filters are applied
3877
3891
  * on a Liveboard.
3878
- * Removes filters applied o a visualization.
3892
+ * Removes filters applied to a visualization.
3879
3893
  * @example
3880
3894
  * ```js
3881
3895
  * disabledActions: [Action.RemoveCrossFilter]
@@ -4061,7 +4075,7 @@ var Action;
4061
4075
  Action["AddTab"] = "addTab";
4062
4076
  /**
4063
4077
  *
4064
- *Initiates contextual change analysis on KPI charts.
4078
+ * Initiates contextual change analysis on KPI charts.
4065
4079
  * @example
4066
4080
  * ```js
4067
4081
  * disabledActions: [Action.EnableContextualChangeAnalysis]
@@ -4071,7 +4085,7 @@ var Action;
4071
4085
  Action["EnableContextualChangeAnalysis"] = "enableContextualChangeAnalysis";
4072
4086
  /**
4073
4087
  * Action ID to hide or disable Iterative Change Analysis option
4074
- * on contextual change analysis Inisght charts context menu
4088
+ * in the contextual change analysis Insight charts context menu.
4075
4089
  *
4076
4090
  * @example
4077
4091
  * ```js
@@ -4349,6 +4363,17 @@ var Action;
4349
4363
  * @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
4350
4364
  */
4351
4365
  Action["ChangeFilterVisibilityInTab"] = "changeFilterVisibilityInTab";
4366
+ /**
4367
+ * The **Data model instructions** button on the Spotter interface.
4368
+ * Allows opening the data model instructions modal.
4369
+ *
4370
+ * @example
4371
+ * ```js
4372
+ * hiddenAction: [Action.DataModelInstructions]
4373
+ * ```
4374
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
4375
+ */
4376
+ Action["DataModelInstructions"] = "DataModelInstructions";
4352
4377
  /**
4353
4378
  * The **Preview data** button on the Spotter interface.
4354
4379
  * Allows previewing the data used for Spotter queries.
@@ -4434,12 +4459,11 @@ var Action;
4434
4459
  */
4435
4460
  Action["CoverAndFilterOptionInPDF"] = "coverAndFilterOptionInPDF";
4436
4461
  /**
4437
- * Action ID for hide or disable the
4438
- * Spotter in conversation training widget.
4439
- * The Add to Coaching feature is currently in beta
4440
- * and is disabled by default on embed deployments.
4441
- * To enable this feature on your instance,
4442
- * contact ThoughtSpot Support.
4462
+ * Action ID to hide or disable the Coaching workflow in Spotter conversations.
4463
+ * When disabled, users cannot access **Add to Coaching** workflow in conversation.
4464
+ * The **Add to Coaching** feature allows adding reference questions and
4465
+ * business terms to improve Spotter’s responses. This feature is generally available
4466
+ * (GA) from version 26.2.0.cl and enabled by default on embed deployments.
4443
4467
  * @example
4444
4468
  * ```js
4445
4469
  * hiddenAction: [Action.InConversationTraining]
@@ -4515,6 +4539,55 @@ var Action;
4515
4539
  * @version SDK: 1.43.0 | ThoughtSpot Cloud: 10.15.0.cl
4516
4540
  */
4517
4541
  Action["LiveboardStylePanel"] = "liveboardStylePanel";
4542
+ /**
4543
+ * The **Publish** action for Liveboards, Answers and Models.
4544
+ * Opens the publishing modal. It's a parent action for the
4545
+ * **Manage Publishing** and **Unpublish** actions if the object
4546
+ * is already published, otherwise appears standalone.
4547
+ * @example
4548
+ * ```js
4549
+ * hiddenActions: [Action.Publish]
4550
+ * disabledActions: [Action.Publish]
4551
+ * ```
4552
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4553
+ */
4554
+ Action["Publish"] = "publish";
4555
+ /**
4556
+ * The **Manage Publishing** action for Liveboards, Answers and Models.
4557
+ * Opens the same publishing modal as the **Publish** action.
4558
+ * Appears as a child action to the **Publish** action if the
4559
+ * object is already published.
4560
+ * @example
4561
+ * ```js
4562
+ * hiddenActions: [Action.ManagePublishing]
4563
+ * disabledActions: [Action.ManagePublishing]
4564
+ * ```
4565
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4566
+ */
4567
+ Action["ManagePublishing"] = "managePublishing";
4568
+ /**
4569
+ * The **Unpublish** action for Liveboards, Answers and Models.
4570
+ * Opens the unpublishing modal. Appears as a child action to
4571
+ * the **Publish** action if the object is already published.
4572
+ * @example
4573
+ * ```js
4574
+ * hiddenActions: [Action.Unpublish]
4575
+ * disabledActions: [Action.Unpublish]
4576
+ * ```
4577
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4578
+ */
4579
+ Action["Unpublish"] = "unpublish";
4580
+ /**
4581
+ * The **Parameterize** action for Tables and Connections.
4582
+ * Opens the parameterization modal.
4583
+ * @example
4584
+ * ```js
4585
+ * hiddenActions: [Action.Parameterize]
4586
+ * disabledActions: [Action.Parameterize]
4587
+ * ```
4588
+ * @version SDK: 1.45.0 | ThoughtSpot Cloud: 26.2.0.cl
4589
+ */
4590
+ Action["Parameterize"] = "parameterise";
4518
4591
  /**
4519
4592
  * The **Move to Group** menu action on a Liveboard.
4520
4593
  * Allows moving a visualization to a different group.
@@ -4555,6 +4628,18 @@ var Action;
4555
4628
  * @version SDK: 1.44.0 | ThoughtSpot Cloud: 26.2.0.cl
4556
4629
  */
4557
4630
  Action["UngroupLiveboardGroup"] = "ungroupLiveboardGroup";
4631
+ /**
4632
+ * The **Include current period** checkbox for date filters.
4633
+ * Controls the visibility and availability of the option to include
4634
+ * the current time period in filter results.
4635
+ * @example
4636
+ * ```js
4637
+ * hiddenActions: [Action.IncludeCurrentPeriod]
4638
+ * disabledActions: [Action.IncludeCurrentPeriod]
4639
+ * ```
4640
+ * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
4641
+ */
4642
+ Action["IncludeCurrentPeriod"] = "includeCurrentPeriod";
4558
4643
  })(Action = exports.Action || (exports.Action = {}));
4559
4644
  var PrefetchFeatures;
4560
4645
  (function (PrefetchFeatures) {
@@ -4699,31 +4784,19 @@ var ErrorDetailsTypes;
4699
4784
  ErrorDetailsTypes["NETWORK"] = "NETWORK";
4700
4785
  })(ErrorDetailsTypes = exports.ErrorDetailsTypes || (exports.ErrorDetailsTypes = {}));
4701
4786
  /**
4702
- * Specific error codes for embedded component errors.
4703
- *
4704
- * These codes provide granular identification of errors that occur in embedded components.
4705
- * They are returned in the {@link EmbedErrorDetailsEvent.code} property and allow for
4706
- * precise error handling and debugging.
4787
+ * Error codes for identifying specific issues in embedded ThoughtSpot components.
4707
4788
  *
4708
- * The codes are organized into categories:
4709
- * - **Worksheet ID not found or does not exist**: Errors related to applying or updating filters
4710
- * - **Liveboard ID missing**: Errors related to missing liveboard ID
4711
- * - **Conflicting actions configuration**: Errors related to conflicting actions configuration
4712
- * - **Conflicting tabs configuration**: Errors related to conflicting tabs configuration
4713
- * - **Initialization error**: Errors related to initialization error
4714
- * - **Network error**: Errors related to network error
4715
- * - **Custom action validation**: Errors related to custom action validation
4716
- * - **Login failed**: Errors related to login failed
4717
- * - **Render not called**: Errors related to render not called
4718
- * - **Host event type undefined or invalid**: Errors related to host event type undefined or invalid
4789
+ * Use these codes for precise error handling and debugging. Each code maps to a
4790
+ * distinct failure scenario, enabling targeted recovery strategies.
4719
4791
  *
4720
4792
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
4721
4793
  * @group Error Handling
4794
+ *
4722
4795
  * @see {@link EmbedErrorDetailsEvent} - The error event object that includes these codes
4723
4796
  * @see {@link ErrorDetailsTypes} - General error type categories
4724
4797
  *
4725
4798
  * @example
4726
- * Handle specific error codes
4799
+ * Handle specific error codes in the error event handler
4727
4800
  *
4728
4801
  * embed.on(EmbedEvent.Error, (error) => {
4729
4802
  * if (error.code === EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND) {