@thoughtspot/visual-embed-sdk 1.44.4 → 1.44.5

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 (122) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +32 -0
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +7 -4
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +18 -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 +7 -4
  19. package/cjs/src/embed/liveboard.js.map +1 -1
  20. package/cjs/src/embed/liveboard.spec.js +46 -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.map +1 -1
  25. package/cjs/src/embed/search.js +6 -1
  26. package/cjs/src/embed/search.js.map +1 -1
  27. package/cjs/src/embed/search.spec.js +2 -0
  28. package/cjs/src/embed/search.spec.js.map +1 -1
  29. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  30. package/cjs/src/embed/ts-embed.js +7 -3
  31. package/cjs/src/embed/ts-embed.js.map +1 -1
  32. package/cjs/src/embed/ts-embed.spec.js +1 -0
  33. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  34. package/cjs/src/types.d.ts +140 -141
  35. package/cjs/src/types.d.ts.map +1 -1
  36. package/cjs/src/types.js +127 -117
  37. package/cjs/src/types.js.map +1 -1
  38. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
  39. package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  40. package/cjs/src/utils/graphql/answerService/answer-queries.js +0 -1
  41. package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  42. package/cjs/src/utils/graphql/answerService/answerService.spec.js +0 -1
  43. package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  44. package/dist/{index-C5FAW929.js → index-_2rRJf4J.js} +1 -1
  45. package/dist/src/embed/app.d.ts +32 -0
  46. package/dist/src/embed/app.d.ts.map +1 -1
  47. package/dist/src/embed/conversation.d.ts +10 -6
  48. package/dist/src/embed/conversation.d.ts.map +1 -1
  49. package/dist/src/embed/liveboard.d.ts +32 -0
  50. package/dist/src/embed/liveboard.d.ts.map +1 -1
  51. package/dist/src/embed/search.d.ts.map +1 -1
  52. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  53. package/dist/src/types.d.ts +140 -141
  54. package/dist/src/types.d.ts.map +1 -1
  55. package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
  56. package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  57. package/dist/tsembed-react.es.js +169 -135
  58. package/dist/tsembed-react.js +168 -134
  59. package/dist/tsembed.es.js +169 -135
  60. package/dist/tsembed.js +168 -134
  61. package/dist/visual-embed-sdk-react-full.d.ts +207 -129
  62. package/dist/visual-embed-sdk-react.d.ts +207 -129
  63. package/dist/visual-embed-sdk.d.ts +212 -146
  64. package/lib/package.json +1 -1
  65. package/lib/src/embed/app.d.ts +32 -0
  66. package/lib/src/embed/app.d.ts.map +1 -1
  67. package/lib/src/embed/app.js +7 -4
  68. package/lib/src/embed/app.js.map +1 -1
  69. package/lib/src/embed/app.spec.js +18 -7
  70. package/lib/src/embed/app.spec.js.map +1 -1
  71. package/lib/src/embed/conversation.d.ts +10 -6
  72. package/lib/src/embed/conversation.d.ts.map +1 -1
  73. package/lib/src/embed/conversation.js +12 -2
  74. package/lib/src/embed/conversation.js.map +1 -1
  75. package/lib/src/embed/conversation.spec.js +3 -0
  76. package/lib/src/embed/conversation.spec.js.map +1 -1
  77. package/lib/src/embed/embed.spec.js +1 -0
  78. package/lib/src/embed/embed.spec.js.map +1 -1
  79. package/lib/src/embed/liveboard.d.ts +32 -0
  80. package/lib/src/embed/liveboard.d.ts.map +1 -1
  81. package/lib/src/embed/liveboard.js +7 -4
  82. package/lib/src/embed/liveboard.js.map +1 -1
  83. package/lib/src/embed/liveboard.spec.js +46 -33
  84. package/lib/src/embed/liveboard.spec.js.map +1 -1
  85. package/lib/src/embed/pinboard.spec.js +1 -0
  86. package/lib/src/embed/pinboard.spec.js.map +1 -1
  87. package/lib/src/embed/search.d.ts.map +1 -1
  88. package/lib/src/embed/search.js +6 -1
  89. package/lib/src/embed/search.js.map +1 -1
  90. package/lib/src/embed/search.spec.js +2 -0
  91. package/lib/src/embed/search.spec.js.map +1 -1
  92. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  93. package/lib/src/embed/ts-embed.js +7 -3
  94. package/lib/src/embed/ts-embed.js.map +1 -1
  95. package/lib/src/embed/ts-embed.spec.js +1 -0
  96. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  97. package/lib/src/types.d.ts +140 -141
  98. package/lib/src/types.d.ts.map +1 -1
  99. package/lib/src/types.js +127 -117
  100. package/lib/src/types.js.map +1 -1
  101. package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
  102. package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
  103. package/lib/src/utils/graphql/answerService/answer-queries.js +0 -1
  104. package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
  105. package/lib/src/utils/graphql/answerService/answerService.spec.js +0 -1
  106. package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
  107. package/package.json +1 -1
  108. package/src/embed/app.spec.ts +25 -7
  109. package/src/embed/app.ts +44 -5
  110. package/src/embed/conversation.spec.ts +3 -0
  111. package/src/embed/conversation.ts +22 -8
  112. package/src/embed/embed.spec.ts +1 -0
  113. package/src/embed/liveboard.spec.ts +62 -42
  114. package/src/embed/liveboard.ts +42 -5
  115. package/src/embed/pinboard.spec.ts +1 -0
  116. package/src/embed/search.spec.ts +2 -0
  117. package/src/embed/search.ts +6 -1
  118. package/src/embed/ts-embed.spec.ts +1 -0
  119. package/src/embed/ts-embed.ts +7 -3
  120. package/src/types.ts +144 -144
  121. package/src/utils/graphql/answerService/answer-queries.ts +0 -1
  122. package/src/utils/graphql/answerService/answerService.spec.ts +0 -1
@@ -1237,7 +1237,7 @@ export interface EmbedConfig {
1237
1237
  /**
1238
1238
  * [AuthServer] The trusted authentication endpoint to use to get the
1239
1239
  * authentication token. A `GET` request is made to the
1240
- * authentication API endpoint, which returns the token
1240
+ * authentication API endpoint, which returns the token
1241
1241
  * as a plaintext response. For trusted authentication,
1242
1242
  * the `authEndpoint` or `getAuthToken` attribute is required.
1243
1243
  */
@@ -1347,12 +1347,12 @@ export interface EmbedConfig {
1347
1347
  * When there are multiple objects embedded, queue the rendering of embedded objects
1348
1348
  * to start after the previous embed's render is complete. This helps improve
1349
1349
  * performance by decreasing the load on the browser.
1350
- * @Version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
1350
+ * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
1351
1351
  * @default false
1352
1352
  */
1353
1353
  queueMultiRenders?: boolean;
1354
1354
  /**
1355
- * [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
1355
+ * [AuthServer|Basic] Detect if third-party cookies are enabled by doing an
1356
1356
  * additional call. This is slower and should be avoided. Listen to the
1357
1357
  * `NO_COOKIE_ACCESS` event to handle the situation.
1358
1358
  *
@@ -2131,21 +2131,26 @@ export interface SearchLiveboardCommonViewConfig {
2131
2131
  /**
2132
2132
  * Boolean to exclude runtimeFilters in the URL
2133
2133
  * By default it is true, this flag removes runtime filters from the URL
2134
- * when set to false, runtime filters will be included in the URL.
2134
+ * (default behavior from SDK 1.45.0).
2135
+ * when set to false, runtime filters will be included in the URL
2136
+ * (default behavior before SDK 1.45.0).
2135
2137
  *
2136
2138
  * Irrespective of this flag, runtime filters ( if passed ) will be applied to the
2137
2139
  * embedded view.
2138
- * @default false
2140
+ * @default true
2139
2141
  * @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
2140
2142
  */
2141
2143
  excludeRuntimeFiltersfromURL?: boolean;
2142
2144
  /**
2143
2145
  * Boolean to exclude runtimeParameters from the URL
2144
- * when set to true, this flag removes runtime parameters from the URL.
2146
+ * when set to true, this flag removes runtime parameters from the URL
2147
+ * (default behavior from SDK 1.45.0).
2148
+ * when set to false, runtime parameters will be included in the URL
2149
+ * (default behavior before SDK 1.45.0).
2145
2150
  *
2146
2151
  * Irrespective of this flag, runtime filters ( if passed ) will be applied to the
2147
2152
  * embedded view.
2148
- * @default false
2153
+ * @default true
2149
2154
  * @version SDK: 1.29.0 | ThoughtSpot: 10.1.0.cl
2150
2155
  */
2151
2156
  excludeRuntimeParametersfromURL?: boolean;
@@ -2383,22 +2388,6 @@ export interface LiveboardAppEmbedViewConfig {
2383
2388
  * ```
2384
2389
  */
2385
2390
  coverAndFilterOptionInPDF?: boolean;
2386
- /**
2387
- * This flag is used to enable or disable the XLSX/CSV download option for Liveboards.
2388
- * To enable this feature on your instance, contact ThoughtSpot Support.
2389
- *
2390
- * Supported embed types: `AppEmbed`, `LiveboardEmbed`
2391
- * @version SDK: 1.41.0 | ThoughtSpot: 26.3.0.cl
2392
- * @example
2393
- * ```js
2394
- * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
2395
- * const embed = new <EmbedComponent>('#tsEmbed', {
2396
- * ... // other embed view config
2397
- * liveboardXLSXCSVDownload: true,
2398
- * })
2399
- * ```
2400
- */
2401
- liveboardXLSXCSVDownload?: boolean;
2402
2391
  /**
2403
2392
  * This flag is used to enable or disable the new centralized Liveboard filter UX (v2).
2404
2393
  * When enabled, a unified modal is used to manage and update multiple filters at once,
@@ -2619,7 +2608,11 @@ export declare enum HomepageModule {
2619
2608
  */
2620
2609
  export declare enum ListPageColumns {
2621
2610
  /**
2622
- * Favourite
2611
+ * Favorites
2612
+ */
2613
+ Favorites = "FAVOURITE",
2614
+ /**
2615
+ * @deprecated Use {@link ListPageColumns.Favorites} instead.
2623
2616
  */
2624
2617
  Favourite = "FAVOURITE",
2625
2618
  /**
@@ -2637,7 +2630,11 @@ export declare enum ListPageColumns {
2637
2630
  /**
2638
2631
  * Share
2639
2632
  */
2640
- Share = "SHARE"
2633
+ Share = "SHARE",
2634
+ /**
2635
+ * Verified badge/column
2636
+ */
2637
+ Verified = "VERIFIED"
2641
2638
  }
2642
2639
  /**
2643
2640
  * A filter that can be applied to ThoughtSpot answers, Liveboards, or
@@ -2887,7 +2884,7 @@ export declare enum EmbedEvent {
2887
2884
  /**
2888
2885
  * An error has occurred. This event is fired for the following error types:
2889
2886
  *
2890
- * `API` - API call failure error.
2887
+ * `API` - API call failure.
2891
2888
  * `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen
2892
2889
  * mode. `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value
2893
2890
  * filter. `NON_EXIST_FILTER` - Error due to a non-existent filter.
@@ -3618,20 +3615,20 @@ export declare enum EmbedEvent {
3618
3615
  /**
3619
3616
  *
3620
3617
  * This event can be emitted to intercept search execution initiated by
3621
- * the users and implement the logic to allow or restrict search execution.
3622
- * You can can also show custom error text if the search query must be
3618
+ * users and implement logic to allow or restrict search execution.
3619
+ * You can also show custom error text if the search query must be
3623
3620
  * restricted due to your application or business requirements.
3624
3621
 
3625
3622
  * Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
3626
3623
  * for this embed event to get emitted.
3627
- * @param:payload The payload received from the embed related to the Data API call.
3628
- * @param:responder
3629
- * Contains elements that lets developers define whether ThoughtSpot
3630
- * should run the search, and if not, what error message
3631
- * should be shown to the user.
3624
+ * @param - Includes the following event listener parameters:
3625
+ * - `payload`: The payload received from the embed related to the Data API call.
3626
+ * - `responder`: Contains elements that let developers define whether ThoughtSpot
3627
+ * should run the search, and if not, what error message
3628
+ * should be shown to the user.
3632
3629
  *
3633
- * `execute` - When execute returns `true`, the search will be run.
3634
- * When execute returns `false`, the search will not be executed.
3630
+ * `execute` - When `execute` returns `true`, the search will be run.
3631
+ * When `execute` returns `false`, the search will not be executed.
3635
3632
  *
3636
3633
  * `error` - Developers can customize the error message text when `execute`
3637
3634
  * is `false` using the `errorText` and `errorDescription` parameters in responder.
@@ -3803,7 +3800,7 @@ export declare enum EmbedEvent {
3803
3800
  * console.log('payload', payload);
3804
3801
  * })
3805
3802
  * ```
3806
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
3803
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
3807
3804
  */
3808
3805
  DataModelInstructions = "DataModelInstructions",
3809
3806
  /**
@@ -4021,14 +4018,14 @@ export declare enum HostEvent {
4021
4018
  * the search query string.
4022
4019
  * Supported in `AppEmbed` and `SearchEmbed` deployments.
4023
4020
  * Includes the following properties:
4024
- * @param - `searchQuery` - query string with search tokens
4025
- * @param - `dataSources` - Data source GUID to Search on
4026
- * - Although an array, only a single source
4027
- * is supported.
4028
- * @param - `execute` - executes search and updates the existing query
4021
+ * @param - Includes the following keys:
4022
+ * - `searchQuery`: Query string with search tokens.
4023
+ * - `dataSources`: Data source GUID to search on.
4024
+ * Although an array, only a single source is supported.
4025
+ * - `execute`: Executes search and updates the existing query.
4029
4026
  * @example
4030
4027
  * ```js
4031
- * searchembed.trigger(HostEvent.Search, {
4028
+ * searchEmbed.trigger(HostEvent.Search, {
4032
4029
  searchQuery: "[sales] by [item type]",
4033
4030
  dataSources: ["cd252e5c-b552-49a8-821d-3eadaa049cca"],
4034
4031
  execute: true
@@ -4039,16 +4036,15 @@ export declare enum HostEvent {
4039
4036
  /**
4040
4037
  * Triggers a drill on certain points of the specified column
4041
4038
  * Includes the following properties:
4042
- * @param - points - an object containing selectedPoints/clickedPoints
4043
- * to drill to. For example, { selectedPoints: []}
4044
- * @param - columnGuid - Optional. GUID of the column to drill
4045
- * by. If not provided it will auto drill by the configured
4046
- * column.
4047
- * @param - autoDrillDown - Optional. If true, the drill down will be
4048
- * done automatically on the most popular column.
4049
- * @param - vizId [TS >= 9.8.0] - Optional. The GUID of the visualization to drill
4050
- * in case of a Liveboard.
4051
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
4039
+ * @param - Includes the following keys:
4040
+ * - `points`: An object containing `selectedPoints` and/or `clickedPoint`
4041
+ * to drill to. For example, `{ selectedPoints: [] }`.
4042
+ * - `columnGuid`: Optional. GUID of the column to drill by. If not provided,
4043
+ * it will auto drill by the configured column.
4044
+ * - `autoDrillDown`: Optional. If `true`, the drill down will be done automatically
4045
+ * on the most popular column.
4046
+ * - `vizId` (TS >= 9.8.0): Optional. The GUID of the visualization to drill in case
4047
+ * of a Liveboard. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
4052
4048
  * @example
4053
4049
  * ```js
4054
4050
  * searchEmbed.on(EmbedEvent.VizPointDoubleClick, (payload) => {
@@ -4141,14 +4137,12 @@ export declare enum HostEvent {
4141
4137
  * and `AppEmbed` only. In full application embedding, this event updates
4142
4138
  * the runtime filters applied on the Liveboard and saved Answer objects.
4143
4139
  *
4144
- * @param - Pass an array of {@link RuntimeFilter} with the following attributes:
4145
- * `columnName` - _String_. The name of the column to filter on.
4146
- *
4147
- * `operator` - {@link RuntimeFilterOp} to apply. For more information,
4148
- * see link:https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator[Developer Documentation].
4149
- *
4150
- * `values` - List of operands. Some operators such as EQ and LE allow a
4151
- * single value, whereas BW and IN accept multiple values.
4140
+ * @param - Array of {@link RuntimeFilter} objects. Each item includes:
4141
+ * - `columnName`: Name of the column to filter on.
4142
+ * - `operator`: {@link RuntimeFilterOp} to apply. For more information, see
4143
+ * link:https://developers.thoughtspot.com/docs/runtime-filters#rtOperator[Developer Documentation].
4144
+ * - `values`: List of operands. Some operators such as EQ and LE allow a single
4145
+ * value, whereas BW and IN accept multiple values.
4152
4146
  *
4153
4147
  * **Note**: Updating runtime filters resets the ThoughtSpot
4154
4148
  * object to its original state and applies new filter conditions.
@@ -4171,7 +4165,7 @@ export declare enum HostEvent {
4171
4165
  /**
4172
4166
  * Navigate to a specific page in the embedded ThoughtSpot application.
4173
4167
  * This is the same as calling `appEmbed.navigateToPage(path, true)`.
4174
- * @param - `path` - the path to navigate to to go forward or back. The path value can
4168
+ * @param - `path` - the path to navigate to go forward or back. The path value can
4175
4169
  * be a number; for example, `1`, `-1`.
4176
4170
  * @example
4177
4171
  * ```js
@@ -4242,30 +4236,25 @@ export declare enum HostEvent {
4242
4236
  * for the Answer that the user is currently on
4243
4237
  * and a modal opens for Liveboard selection.
4244
4238
  * To add an Answer or visualization to a Liveboard programmatically without
4245
- * showing requiring additional user input via *Pin to Liveboard* modal, define
4239
+ * requiring additional user input via the *Pin to Liveboard* modal, define
4246
4240
  * the following parameters:
4247
4241
  *
4248
- * @param
4249
- * `vizId`- GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
4250
- * Optional when pinning a new chart or table generated from a Search query.
4251
- * **Required** in Spotter Embed.
4252
- * @param
4253
- * `liveboardID` - GUID of the Liveboard to pin an Answer. If there is no Liveboard,
4254
- * specify the `newLiveboardName` parameter to create a new Liveboard.
4255
- * @param
4256
- * `tabId` - GUID of the Liveboard tab. Adds the Answer to the Liveboard tab
4257
- * specified in the code.
4258
- * @param
4259
- * `newVizName` - Name string for the Answer or visualization. If defined,
4260
- * this parameter adds a new visualization object or creates a copy of the
4261
- * Answer or visualization specified in `vizId`.
4262
- * Required attribute.
4263
- * @param
4264
- * `newLiveboardName` - Name string for the Liveboard.
4265
- * Creates a new Liveboard object with the specified name.
4266
- * @param
4267
- * `newTabName` - Name of the tab. Adds a new tab Liveboard specified
4268
- * in the code.
4242
+ * @param - Includes the following keys:
4243
+ * - `vizId`: GUID of the saved Answer or Spotter visualization ID to pin to a Liveboard.
4244
+ * Optional when pinning a new chart or table generated from a Search query.
4245
+ * **Required** in Spotter Embed.
4246
+ * - `liveboardId`: GUID of the Liveboard to pin an Answer. If there is no Liveboard,
4247
+ * specify the `newLiveboardName` parameter to create a new Liveboard.
4248
+ * - `tabId`: GUID of the Liveboard tab. Adds the Answer to the Liveboard tab
4249
+ * specified in the code.
4250
+ * - `newVizName`: Name string for the Answer or visualization. If defined,
4251
+ * this parameter adds a new visualization object or creates a copy of the
4252
+ * Answer or visualization specified in `vizId`.
4253
+ * Required.
4254
+ * - `newLiveboardName`: Name string for the Liveboard.
4255
+ * Creates a new Liveboard object with the specified name.
4256
+ * - `newTabName`: Name of the tab. Adds a new tab Liveboard specified
4257
+ * in the code.
4269
4258
  *
4270
4259
  * @example
4271
4260
  * ```js
@@ -4505,9 +4494,9 @@ export declare enum HostEvent {
4505
4494
  * on a Liveboard.
4506
4495
  *
4507
4496
  * This event is not supported in visualization embed and search embed.
4508
- * @param - object - To trigger the action for a specific visualization
4509
- * in Liveboard embed, pass in `vizId` as a key.
4510
- * @param - `vizId` refers to the Answer ID in Spotter embed and is required in Spotter embed.
4497
+ * @param - Object parameter. Includes the following keys:
4498
+ * - `vizId`: To trigger the action for a specific visualization in Liveboard embed,
4499
+ * pass in `vizId` as a key. In Spotter embed, `vizId` refers to the Answer ID and is **required**.
4511
4500
  *
4512
4501
  * @example
4513
4502
  * ```js
@@ -4874,10 +4863,9 @@ export declare enum HostEvent {
4874
4863
  GetFilters = "getFilters",
4875
4864
  /**
4876
4865
  * Update one or several filters applied on a Liveboard.
4877
- * @param - `filter`: a single filter object containing column name,
4878
- * filter operator, and values.
4879
- * @param - `filters`: multiple filter objects with column name, filter operator,
4880
- * and values for each.
4866
+ * @param - Includes the following keys:
4867
+ * - `filter`: A single filter object containing column name, filter operator, and values.
4868
+ * - `filters`: Multiple filter objects with column name, filter operator, and values for each.
4881
4869
  *
4882
4870
  * Each filter object must include the following attributes:
4883
4871
  *
@@ -5003,8 +4991,9 @@ export declare enum HostEvent {
5003
4991
  SetHiddenTabs = "SetPinboardHiddenTabs",
5004
4992
  /**
5005
4993
  * Updates the search query string for Natural Language Search operations.
5006
- * @param - `queryString`: Text string in Natural Language format
5007
- * @param - `executeSearch`: Boolean to execute search and update search query
4994
+ * @param - Includes the following keys:
4995
+ * - `queryString`: Text string in Natural Language format.
4996
+ * - `executeSearch`: Boolean to execute search and update search query.
5008
4997
  * @example
5009
4998
  * ```js
5010
4999
  * sageEmbed.trigger(HostEvent.UpdateSageQuery, {
@@ -5083,11 +5072,10 @@ export declare enum HostEvent {
5083
5072
  /**
5084
5073
  * Triggers an action to update Parameter values on embedded
5085
5074
  * Answers, Liveboard, and Spotter answer in Edit mode.
5086
- * @param - `name` - Name of the Parameter
5087
- * @param - `value` - The value to set for the Parameter.
5088
- *
5089
- * Optionally, to control the visibility of the Parameter chip,
5090
- * use the `isVisibleToUser` attribute when applying an override.
5075
+ * @param - Includes the following keys for each item:
5076
+ * - `name`: Name of the parameter.
5077
+ * - `value`: The value to set for the parameter.
5078
+ * - `isVisibleToUser`: Optional. To control the visibility of the parameter chip.
5091
5079
  *
5092
5080
  * @example
5093
5081
  * ```js
@@ -5145,11 +5133,10 @@ export declare enum HostEvent {
5145
5133
  * If no parameters are specified, the save action is
5146
5134
  * triggered with a modal to prompt users to
5147
5135
  * add a name and description for the Answer.
5148
- * @param - `vizId` refers to the Answer ID in Spotter embed
5149
- * and is required in Spotter embed.
5150
- * Optional attributes to set Answer properties include:
5151
- * @param - `name` - Name string for the Answer.
5152
- * @param - `description` - Description text for the Answer.
5136
+ * @param - Includes the following keys:
5137
+ * - `vizId`: Refers to the Answer ID in Spotter embed and is **required** in Spotter embed.
5138
+ * - `name`: Optional. Name string for the Answer.
5139
+ * - `description`: Optional. Description text for the Answer.
5153
5140
  * @example
5154
5141
  * ```js
5155
5142
  * const saveAnswerResponse = await searchEmbed.trigger(HostEvent.SaveAnswer, {
@@ -5198,8 +5185,9 @@ export declare enum HostEvent {
5198
5185
  /**
5199
5186
  * Triggers a search operation with the search tokens specified in
5200
5187
  * the search query string in spotter embed.
5201
- * @param - `query`: Text string in Natural Language format
5202
- * @param - `executeSearch`: Boolean to execute search and update search query
5188
+ * @param - Includes the following keys:
5189
+ * - `query`: Text string in Natural Language format.
5190
+ * - `executeSearch`: Boolean to execute search and update search query.
5203
5191
  * @example
5204
5192
  * ```js
5205
5193
  * spotterEmbed.trigger(HostEvent.SpotterSearch, {
@@ -5246,7 +5234,7 @@ export declare enum HostEvent {
5246
5234
  * ```js
5247
5235
  * spotterEmbed.trigger(HostEvent.DataModelInstructions);
5248
5236
  * ```
5249
- * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
5237
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
5250
5238
  */
5251
5239
  DataModelInstructions = "DataModelInstructions",
5252
5240
  /**
@@ -5331,7 +5319,7 @@ export declare enum HostEvent {
5331
5319
  */
5332
5320
  UpdateEmbedParams = "updateEmbedParams",
5333
5321
  /**
5334
- * Triggered when the embed is needed to be destroyed. This is used to clean up any embed related resources internally.
5322
+ * Triggered when the embed needs to be destroyed. This is used to clean up any embed-related resources internally.
5335
5323
  * @example
5336
5324
  * ```js
5337
5325
  * liveboardEmbed.trigger(HostEvent.DestroyEmbed);
@@ -5339,11 +5327,12 @@ export declare enum HostEvent {
5339
5327
  * @version SDK: 1.41.0 | ThoughtSpot: 10.12.0.cl
5340
5328
  */
5341
5329
  DestroyEmbed = "EmbedDestroyed",
5342
- /** Triggers a create new conversation operation in spotter embed.
5343
- * @example
5344
- * ```js
5330
+ /**
5331
+ * Triggers a new conversation in Spotter embed.
5332
+ *
5345
5333
  * This feature is available only when chat history is enabled on your ThoughtSpot instance.
5346
5334
  * Contact your admin or ThoughtSpot Support to enable chat history on your instance.
5335
+ *
5347
5336
  * @example
5348
5337
  * ```js
5349
5338
  * spotterEmbed.trigger(HostEvent.StartNewSpotterConversation);
@@ -5395,7 +5384,7 @@ export declare enum DataSourceVisualMode {
5395
5384
  * hiddenActions: [Action.Edit, ActionAction.Explore],
5396
5385
  * })
5397
5386
  * ```
5398
- * See also link:https://developers.thoughtspot.com/docs/actions[Action IDs in the SDK]
5387
+ * See also link:https://developers.thoughtspot.com/docs/actions[Developer Documentation].
5399
5388
  */
5400
5389
  export declare enum Action {
5401
5390
  /**
@@ -5682,6 +5671,16 @@ export declare enum Action {
5682
5671
  * ```
5683
5672
  */
5684
5673
  DownloadAsXlsx = "downloadAsXLSX",
5674
+ /**
5675
+ * The **Download Liveboard** menu action on a Liveboard.
5676
+ * Allows downloading the entire Liveboard.
5677
+ * @example
5678
+ * ```js
5679
+ * disabledActions: [Action.DownloadLiveboard]
5680
+ * ```
5681
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
5682
+ */
5683
+ DownloadLiveboard = "downloadLiveboard",
5685
5684
  /**
5686
5685
  * @hidden
5687
5686
  */
@@ -6021,28 +6020,28 @@ export declare enum Action {
6021
6020
  CrossFilter = "context-menu-item-cross-filter",
6022
6021
  /**
6023
6022
  * The **Sync to Slack** action on Liveboard visualizations.
6024
- * Allows sending data to third-party apps Slack
6023
+ * Allows sending data to third-party apps like Slack.
6025
6024
  * @example
6026
6025
  * ```js
6027
6026
  * disabledActions: [Action.SyncToSlack]
6028
6027
  * ```
6029
- * @version @version SDK : 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
6028
+ * @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
6030
6029
  */
6031
6030
  SyncToSlack = "syncToSlack",
6032
6031
  /**
6033
6032
  * The **Sync to Teams** action on Liveboard visualizations.
6034
- * Allows sending data to third-party apps Team
6033
+ * Allows sending data to third-party apps like Microsoft Teams.
6035
6034
  * @example
6036
6035
  * ```js
6037
6036
  * disabledActions: [Action.SyncToTeams]
6038
6037
  * ```
6039
- * @version @version SDK : 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
6038
+ * @version SDK: 1.32.0 | ThoughtSpot Cloud: 10.1.0.cl
6040
6039
  */
6041
6040
  SyncToTeams = "syncToTeams",
6042
6041
  /**
6043
6042
  * The **Remove** action that appears when cross filters are applied
6044
6043
  * on a Liveboard.
6045
- * Removes filters applied o a visualization.
6044
+ * Removes filters applied to a visualization.
6046
6045
  * @example
6047
6046
  * ```js
6048
6047
  * disabledActions: [Action.RemoveCrossFilter]
@@ -6228,7 +6227,7 @@ export declare enum Action {
6228
6227
  AddTab = "addTab",
6229
6228
  /**
6230
6229
  *
6231
- *Initiates contextual change analysis on KPI charts.
6230
+ * Initiates contextual change analysis on KPI charts.
6232
6231
  * @example
6233
6232
  * ```js
6234
6233
  * disabledActions: [Action.EnableContextualChangeAnalysis]
@@ -6238,7 +6237,7 @@ export declare enum Action {
6238
6237
  EnableContextualChangeAnalysis = "enableContextualChangeAnalysis",
6239
6238
  /**
6240
6239
  * Action ID to hide or disable Iterative Change Analysis option
6241
- * on contextual change analysis Inisght charts context menu
6240
+ * in the contextual change analysis Insight charts context menu.
6242
6241
  *
6243
6242
  * @example
6244
6243
  * ```js
@@ -6516,6 +6515,17 @@ export declare enum Action {
6516
6515
  * @version SDK: 1.36.0 | ThoughtSpot Cloud: 10.6.0.cl
6517
6516
  */
6518
6517
  ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab",
6518
+ /**
6519
+ * The **Data model instructions** button on the Spotter interface.
6520
+ * Allows opening the data model instructions modal.
6521
+ *
6522
+ * @example
6523
+ * ```js
6524
+ * hiddenAction: [Action.DataModelInstructions]
6525
+ * ```
6526
+ * @version SDK: 1.46.0 | ThoughtSpot Cloud: 26.3.0.cl
6527
+ */
6528
+ DataModelInstructions = "DataModelInstructions",
6519
6529
  /**
6520
6530
  * The **Preview data** button on the Spotter interface.
6521
6531
  * Allows previewing the data used for Spotter queries.
@@ -6601,12 +6611,12 @@ export declare enum Action {
6601
6611
  */
6602
6612
  CoverAndFilterOptionInPDF = "coverAndFilterOptionInPDF",
6603
6613
  /**
6604
- * Action ID for hide or disable the
6605
- * Spotter in conversation training widget.
6606
- * The Add to Coaching feature is currently in beta
6607
- * and is disabled by default on embed deployments.
6608
- * To enable this feature on your instance,
6609
- * contact ThoughtSpot Support.
6614
+ * Action ID to hide or disable the Spotter in the conversation training widget.
6615
+ * When disabled, users cannot access **Add to Coaching**, which allows adding reference
6616
+ * questions and business terms to improve Spotter’s responses.
6617
+ * The **Add to Coaching** feature is generally available from version 26.2.0.cl and
6618
+ * enabled by default on embed deployments.
6619
+
6610
6620
  * @example
6611
6621
  * ```js
6612
6622
  * hiddenAction: [Action.InConversationTraining]
@@ -6918,31 +6928,19 @@ export declare enum ErrorDetailsTypes {
6918
6928
  NETWORK = "NETWORK"
6919
6929
  }
6920
6930
  /**
6921
- * Specific error codes for embedded component errors.
6922
- *
6923
- * These codes provide granular identification of errors that occur in embedded components.
6924
- * They are returned in the {@link EmbedErrorDetailsEvent.code} property and allow for
6925
- * precise error handling and debugging.
6931
+ * Error codes for identifying specific issues in embedded ThoughtSpot components.
6926
6932
  *
6927
- * The codes are organized into categories:
6928
- * - **Worksheet ID not found or does not exist**: Errors related to applying or updating filters
6929
- * - **Liveboard ID missing**: Errors related to missing liveboard ID
6930
- * - **Conflicting actions configuration**: Errors related to conflicting actions configuration
6931
- * - **Conflicting tabs configuration**: Errors related to conflicting tabs configuration
6932
- * - **Initialization error**: Errors related to initialization error
6933
- * - **Network error**: Errors related to network error
6934
- * - **Custom action validation**: Errors related to custom action validation
6935
- * - **Login failed**: Errors related to login failed
6936
- * - **Render not called**: Errors related to render not called
6937
- * - **Host event type undefined or invalid**: Errors related to host event type undefined or invalid
6933
+ * Use these codes for precise error handling and debugging. Each code maps to a
6934
+ * distinct failure scenario, enabling targeted recovery strategies.
6938
6935
  *
6939
6936
  * @version SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl
6940
6937
  * @group Error Handling
6938
+ *
6941
6939
  * @see {@link EmbedErrorDetailsEvent} - The error event object that includes these codes
6942
6940
  * @see {@link ErrorDetailsTypes} - General error type categories
6943
6941
  *
6944
6942
  * @example
6945
- * Handle specific error codes
6943
+ * Handle specific error codes in the error event handler
6946
6944
  *
6947
6945
  * embed.on(EmbedEvent.Error, (error) => {
6948
6946
  * if (error.code === EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND) {
@@ -8231,6 +8229,38 @@ export interface AppViewConfig extends AllEmbedViewConfig {
8231
8229
  * ```
8232
8230
  */
8233
8231
  isPNGInScheduledEmailsEnabled?: boolean;
8232
+ /**
8233
+ * This flag is used to enable/disable the XLSX/CSV download option for Liveboards
8234
+ *
8235
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
8236
+ * @type {boolean}
8237
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8238
+ * @example
8239
+ * ```js
8240
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
8241
+ * const embed = new <EmbedComponent>('#tsEmbed', {
8242
+ * ... // other embed view config
8243
+ * isLiveboardXLSXCSVDownloadEnabled: true,
8244
+ * })
8245
+ * ```
8246
+ */
8247
+ isLiveboardXLSXCSVDownloadEnabled?: boolean;
8248
+ /**
8249
+ * This flag is used to enable/disable the granular XLSX/CSV schedules feature
8250
+ *
8251
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
8252
+ * @type {boolean}
8253
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8254
+ * @example
8255
+ * ```js
8256
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
8257
+ * const embed = new <EmbedComponent>('#tsEmbed', {
8258
+ * ... // other embed view config
8259
+ * isGranularXLSXCSVSchedulesEnabled: true,
8260
+ * })
8261
+ * ```
8262
+ */
8263
+ isGranularXLSXCSVSchedulesEnabled?: boolean;
8234
8264
  /**
8235
8265
  * This flag is used to enable the full height lazy load data.
8236
8266
  *
@@ -8928,6 +8958,38 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
8928
8958
  * ```
8929
8959
  */
8930
8960
  isPNGInScheduledEmailsEnabled?: boolean;
8961
+ /**
8962
+ * This flag is used to enable/disable the XLSX/CSV download option for Liveboards
8963
+ *
8964
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
8965
+ * @type {boolean}
8966
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8967
+ * @example
8968
+ * ```js
8969
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
8970
+ * const embed = new <EmbedComponent>('#tsEmbed', {
8971
+ * ... // other embed view config
8972
+ * isLiveboardXLSXCSVDownloadEnabled: true,
8973
+ * })
8974
+ * ```
8975
+ */
8976
+ isLiveboardXLSXCSVDownloadEnabled?: boolean;
8977
+ /**
8978
+ * This flag is used to enable/disable the granular XLSX/CSV schedules feature
8979
+ *
8980
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
8981
+ * @type {boolean}
8982
+ * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
8983
+ * @example
8984
+ * ```js
8985
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
8986
+ * const embed = new <EmbedComponent>('#tsEmbed', {
8987
+ * ... // other embed view config
8988
+ * isGranularXLSXCSVSchedulesEnabled: true,
8989
+ * })
8990
+ * ```
8991
+ */
8992
+ isGranularXLSXCSVSchedulesEnabled?: boolean;
8931
8993
  /**
8932
8994
  * This flag is used to enable the full height lazy load data.
8933
8995
  *
@@ -9763,11 +9825,13 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
9763
9825
  runtimeFilters?: RuntimeFilter[];
9764
9826
  /**
9765
9827
  * Flag to control whether runtime filters should be included in the URL.
9766
- * If true, filters will be passed via app initialization payload instead.
9767
- * If false/undefined, filters will be added to URL (default behavior).
9828
+ * If true, filters will be passed via app initialization payload
9829
+ * (default behavior from SDK 1.45.0).
9830
+ * If false/undefined, filters are appended to the iframe URL instead.
9831
+ * (default behavior before SDK 1.45.0).
9768
9832
  *
9769
9833
  * Supported embed types: `SpotterEmbed`
9770
- * @default false
9834
+ * @default true
9771
9835
  * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
9772
9836
  */
9773
9837
  excludeRuntimeFiltersfromURL?: boolean;
@@ -9792,11 +9856,13 @@ export interface SpotterEmbedViewConfig extends Omit<BaseViewConfig, "primaryAct
9792
9856
  runtimeParameters?: RuntimeParameter[];
9793
9857
  /**
9794
9858
  * Flag to control whether runtime parameters should be included in the URL.
9795
- * If true, parameters will be passed via app initialization payload instead.
9796
- * If false/undefined, parameters will be added to URL (default behavior).
9859
+ * If true, parameters will be passed via app
9860
+ * initialization payload (default behavior from SDK 1.45.0).
9861
+ * If false/undefined, parameters are appended to
9862
+ * the iframe URL instead (default behavior before SDK 1.45.0).
9797
9863
  *
9798
9864
  * Supported embed types: `SpotterEmbed`
9799
- * @default false
9865
+ * @default true
9800
9866
  * @version SDK: 1.41.0 | ThoughtSpot: 10.13.0.cl
9801
9867
  */
9802
9868
  excludeRuntimeParametersfromURL?: boolean;
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.44.4",
3
+ "version": "1.44.5",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",