@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.
- package/cjs/package.json +1 -1
- package/cjs/src/embed/app.d.ts +33 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +10 -4
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +28 -7
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +10 -6
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +12 -2
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +3 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/embed.spec.js +1 -0
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +32 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +10 -4
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +57 -33
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/pinboard.spec.js +1 -0
- package/cjs/src/embed/pinboard.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +1 -0
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +10 -2
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +12 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +7 -3
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +1 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +236 -158
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +198 -125
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +0 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +0 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/processTrigger.js +1 -1
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils/processTrigger.spec.js +12 -0
- package/cjs/src/utils/processTrigger.spec.js.map +1 -1
- package/dist/{index-C5FAW929.js → index-Dk-SLdNk.js} +1 -1
- package/dist/src/embed/app.d.ts +33 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +10 -6
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +32 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +1 -0
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +236 -158
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +251 -145
- package/dist/tsembed-react.js +250 -144
- package/dist/tsembed.es.js +251 -145
- package/dist/tsembed.js +250 -144
- package/dist/visual-embed-sdk-react-full.d.ts +303 -146
- package/dist/visual-embed-sdk-react.d.ts +303 -146
- package/dist/visual-embed-sdk.d.ts +308 -163
- package/lib/package.json +1 -1
- package/lib/src/embed/app.d.ts +33 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +10 -4
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +28 -7
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +10 -6
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +12 -2
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +3 -0
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/embed.spec.js +1 -0
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +32 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +10 -4
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +57 -33
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/pinboard.spec.js +1 -0
- package/lib/src/embed/pinboard.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +1 -0
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +10 -2
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +12 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +7 -3
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +1 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +236 -158
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +198 -125
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +0 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +0 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/processTrigger.js +1 -1
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils/processTrigger.spec.js +12 -0
- package/lib/src/utils/processTrigger.spec.js.map +1 -1
- package/package.json +1 -1
- package/src/embed/app.spec.ts +39 -7
- package/src/embed/app.ts +50 -6
- package/src/embed/conversation.spec.ts +3 -0
- package/src/embed/conversation.ts +22 -8
- package/src/embed/embed.spec.ts +1 -0
- package/src/embed/liveboard.spec.ts +77 -42
- package/src/embed/liveboard.ts +47 -5
- package/src/embed/pinboard.spec.ts +1 -0
- package/src/embed/search.spec.ts +16 -0
- package/src/embed/search.ts +12 -1
- package/src/embed/ts-embed.spec.ts +1 -0
- package/src/embed/ts-embed.ts +7 -3
- package/src/types.ts +263 -184
- package/src/utils/graphql/answerService/answer-queries.ts +0 -1
- package/src/utils/graphql/answerService/answerService.spec.ts +0 -1
- package/src/utils/processTrigger.spec.ts +18 -0
- 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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
1316
|
-
* You can
|
|
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
|
|
1322
|
-
*
|
|
1323
|
-
* Contains elements that
|
|
1324
|
-
*
|
|
1325
|
-
*
|
|
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.
|
|
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 -
|
|
1720
|
-
*
|
|
1721
|
-
*
|
|
1722
|
-
*
|
|
1723
|
-
*
|
|
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
|
-
*
|
|
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 -
|
|
1738
|
-
*
|
|
1739
|
-
*
|
|
1740
|
-
*
|
|
1741
|
-
* column.
|
|
1742
|
-
*
|
|
1743
|
-
*
|
|
1744
|
-
*
|
|
1745
|
-
*
|
|
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 -
|
|
1840
|
-
* `columnName
|
|
1841
|
-
*
|
|
1842
|
-
*
|
|
1843
|
-
*
|
|
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
|
|
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
|
-
*
|
|
1945
|
+
* requiring additional user input via the *Pin to Liveboard* modal, define
|
|
1941
1946
|
* the following parameters:
|
|
1942
1947
|
*
|
|
1943
|
-
* @param
|
|
1944
|
-
* `vizId
|
|
1945
|
-
*
|
|
1946
|
-
*
|
|
1947
|
-
*
|
|
1948
|
-
* `
|
|
1949
|
-
*
|
|
1950
|
-
*
|
|
1951
|
-
*
|
|
1952
|
-
*
|
|
1953
|
-
*
|
|
1954
|
-
*
|
|
1955
|
-
*
|
|
1956
|
-
*
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
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 -
|
|
2204
|
-
*
|
|
2205
|
-
*
|
|
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 -
|
|
2573
|
-
* filter operator, and values.
|
|
2574
|
-
*
|
|
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 -
|
|
2702
|
-
*
|
|
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 -
|
|
2782
|
-
*
|
|
2783
|
-
*
|
|
2784
|
-
*
|
|
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 -
|
|
2844
|
-
* and is required in Spotter embed.
|
|
2845
|
-
* Optional
|
|
2846
|
-
*
|
|
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 -
|
|
2897
|
-
*
|
|
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.
|
|
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
|
|
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
|
-
/**
|
|
3038
|
-
*
|
|
3039
|
-
*
|
|
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,
|
|
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,
|
|
3229
|
+
* hiddenActions: [Action.Edit, Action.Explore],
|
|
3228
3230
|
* })
|
|
3229
3231
|
* ```
|
|
3230
|
-
* See also link:https://developers.thoughtspot.com/docs/actions[
|
|
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
|
-
*
|
|
3738
|
-
* Query details panel
|
|
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
|
-
*
|
|
3742
|
-
*
|
|
3743
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
4709
|
-
*
|
|
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) {
|