@thoughtspot/visual-embed-sdk 1.46.0 → 1.46.1
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/README.md +1 -1
- package/cjs/package.json +2 -2
- package/cjs/src/auth.js +1 -1
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/app.d.ts +1 -1
- package/cjs/src/embed/app.js +1 -1
- package/cjs/src/embed/liveboard.d.ts +2 -2
- package/cjs/src/embed/liveboard.js +2 -2
- package/cjs/src/embed/search.d.ts +3 -2
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +3 -2
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +1 -1
- package/cjs/src/embed/ts-embed.js +1 -1
- package/cjs/src/react/index.d.ts +1 -1
- package/cjs/src/types.d.ts +359 -21
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +68 -8
- package/cjs/src/types.js.map +1 -1
- package/dist/{index-BQvLEoxp.js → index-Vyh6Ha5f.js} +1 -1
- package/dist/src/embed/app.d.ts +1 -1
- package/dist/src/embed/liveboard.d.ts +2 -2
- package/dist/src/embed/search.d.ts +3 -2
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +1 -1
- package/dist/src/react/index.d.ts +1 -1
- package/dist/src/types.d.ts +359 -21
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +79 -18
- package/dist/tsembed-react.js +78 -17
- package/dist/tsembed.es.js +79 -18
- package/dist/tsembed.js +78 -17
- package/dist/visual-embed-sdk-react-full.d.ts +361 -23
- package/dist/visual-embed-sdk-react.d.ts +356 -21
- package/dist/visual-embed-sdk.d.ts +360 -22
- package/lib/package.json +2 -2
- package/lib/src/auth.js +1 -1
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/app.d.ts +1 -1
- package/lib/src/embed/app.js +1 -1
- package/lib/src/embed/liveboard.d.ts +2 -2
- package/lib/src/embed/liveboard.js +2 -2
- package/lib/src/embed/search.d.ts +3 -2
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +3 -2
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +1 -1
- package/lib/src/embed/ts-embed.js +1 -1
- package/lib/src/react/index.d.ts +1 -1
- package/lib/src/types.d.ts +359 -21
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +68 -8
- package/lib/src/types.js.map +1 -1
- package/package.json +2 -2
- package/src/auth.ts +1 -1
- package/src/embed/app.ts +1 -1
- package/src/embed/liveboard.ts +2 -2
- package/src/embed/search.ts +3 -2
- package/src/embed/ts-embed.ts +1 -1
- package/src/react/index.tsx +1 -1
- package/src/types.ts +359 -21
|
@@ -1549,18 +1549,154 @@ export interface EmbedConfig {
|
|
|
1549
1549
|
* @version SDK: 1.43.0 | ThoughtSpot: 10.14.0.cl
|
|
1550
1550
|
* @example
|
|
1551
1551
|
* ```js
|
|
1552
|
-
* import {
|
|
1552
|
+
* import { CustomActionsPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
|
|
1553
1553
|
* init({
|
|
1554
1554
|
* ... // other embed config options
|
|
1555
1555
|
* customActions: [
|
|
1556
1556
|
* {
|
|
1557
|
-
*
|
|
1558
|
-
* id: '
|
|
1557
|
+
* // Unique identifier for the custom action
|
|
1558
|
+
* id: 'my-custom-action',
|
|
1559
|
+
*
|
|
1560
|
+
* // Display name shown to users in the UI
|
|
1561
|
+
* name: 'My Custom Action',
|
|
1562
|
+
*
|
|
1563
|
+
* // Where the action appears in the UI
|
|
1564
|
+
* // PRIMARY: Shows as a primary button (e.g., in the toolbar)
|
|
1565
|
+
* // MENU: Shows in the "More" menu (three dots menu)
|
|
1566
|
+
* // CONTEXTMENU: Shows in the right-click context menu
|
|
1567
|
+
* position: CustomActionsPosition.PRIMARY,
|
|
1568
|
+
*
|
|
1569
|
+
* // What type of content this action applies to
|
|
1570
|
+
* // ANSWER: Available on answer pages
|
|
1571
|
+
* target: CustomActionTarget.ANSWER,
|
|
1572
|
+
*
|
|
1573
|
+
* // Optional: Restrict where this action appears based on data models
|
|
1574
|
+
* // dataModelIds: {
|
|
1575
|
+
* // // Restrict to specific data models
|
|
1576
|
+
* // modelIds: ['model-id-1', 'model-id-2'],
|
|
1577
|
+
* // // Restrict to specific columns within models
|
|
1578
|
+
* // modelColumnNames: ['model-id::column-name']
|
|
1579
|
+
* // },
|
|
1580
|
+
*
|
|
1581
|
+
* // Optional: Restrict where this action appears based on metadata
|
|
1582
|
+
* // metadataIds: {
|
|
1583
|
+
* // // Restrict to specific answers
|
|
1584
|
+
* // answerIds: ['answer-id-1', 'answer-id-2'],
|
|
1585
|
+
* // },
|
|
1586
|
+
* // // Restrict to specific groups (for group-based access control)
|
|
1587
|
+
* // groupIds: ['group-id-1', 'group-id-2'],
|
|
1588
|
+
* // // Restrict to specific organizations (for multi-org deployments)
|
|
1589
|
+
* // orgIds: ['org-id-1', 'org-id-2'],
|
|
1590
|
+
* }
|
|
1591
|
+
* ],
|
|
1592
|
+
* })
|
|
1593
|
+
* ```
|
|
1594
|
+
* @example
|
|
1595
|
+
* ```js
|
|
1596
|
+
* import { CustomActionsPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
|
|
1597
|
+
* init({
|
|
1598
|
+
* ... // other embed config options
|
|
1599
|
+
* customActions: [
|
|
1600
|
+
* {
|
|
1601
|
+
* // Unique identifier for the custom action
|
|
1602
|
+
* id: 'my-custom-action',
|
|
1603
|
+
*
|
|
1604
|
+
* // Display name shown to users in the UI
|
|
1605
|
+
* name: 'My Custom Action',
|
|
1606
|
+
*
|
|
1607
|
+
* // Where the action appears in the UI
|
|
1608
|
+
* // MENU: Shows in the "More" menu (three dots menu)
|
|
1609
|
+
* // CONTEXTMENU: Shows in the right-click context menu
|
|
1610
|
+
* position: CustomActionsPosition.MENU,
|
|
1611
|
+
*
|
|
1612
|
+
* // What type of content this action applies to
|
|
1613
|
+
* // SPOTTER: Available in Spotter (AI-powered search)
|
|
1614
|
+
* target: CustomActionTarget.SPOTTER,
|
|
1615
|
+
*
|
|
1616
|
+
* // Optional: Restrict where this action appears based on data models
|
|
1617
|
+
* // dataModelIds: {
|
|
1618
|
+
* // // Restrict to specific data models
|
|
1619
|
+
* // modelIds: ['model-id-1', 'model-id-2'],
|
|
1620
|
+
* // },
|
|
1621
|
+
* // // Restrict to specific groups (for group-based access control)
|
|
1622
|
+
* // groupIds: ['group-id-1'],
|
|
1623
|
+
* // // Restrict to specific organizations (for multi-org deployments)
|
|
1624
|
+
* // orgIds: ['org-id-1'],
|
|
1625
|
+
* }
|
|
1626
|
+
* ],
|
|
1627
|
+
* })
|
|
1628
|
+
* ```
|
|
1629
|
+
* @example
|
|
1630
|
+
* ```js
|
|
1631
|
+
* import { CustomActionsPosition, CustomActionTarget } from '@thoughtspot/visual-embed-sdk';
|
|
1632
|
+
* init({
|
|
1633
|
+
* ... // other embed config options
|
|
1634
|
+
* customActions: [
|
|
1635
|
+
* {
|
|
1636
|
+
* // Unique identifier for the custom action
|
|
1637
|
+
* id: 'my-liveboard-custom-action',
|
|
1638
|
+
*
|
|
1639
|
+
* // Display name shown to users in the UI
|
|
1640
|
+
* name: 'My Liveboard Custom Action',
|
|
1641
|
+
*
|
|
1642
|
+
* // Where the action appears in the UI
|
|
1643
|
+
* // PRIMARY: Shows as a primary button (e.g., in the toolbar)
|
|
1644
|
+
* // MENU: Shows in the "More" menu (three dots menu)
|
|
1645
|
+
* position: CustomActionsPosition.PRIMARY,
|
|
1646
|
+
*
|
|
1647
|
+
* // What type of content this action applies to
|
|
1648
|
+
* // LIVEBOARD: Available on liveboard pages
|
|
1649
|
+
* target: CustomActionTarget.LIVEBOARD,
|
|
1650
|
+
*
|
|
1651
|
+
* // Optional: Restrict where this action appears based on metadata
|
|
1652
|
+
* // metadataIds: {
|
|
1653
|
+
* // // Restrict to specific liveboards
|
|
1654
|
+
* // liveboardIds: ['liveboard-id-1', 'liveboard-id-2'],
|
|
1655
|
+
* // },
|
|
1656
|
+
* // // Restrict to specific groups (for group-based access control)
|
|
1657
|
+
* // groupIds: ['group-id-1', 'group-id-2'],
|
|
1658
|
+
* // // Restrict to specific organizations (for multi-org deployments)
|
|
1659
|
+
* // orgIds: ['org-id-1', 'org-id-2'],
|
|
1660
|
+
* },
|
|
1661
|
+
* {
|
|
1662
|
+
* // Unique identifier for the custom action
|
|
1663
|
+
* id: 'my-viz-custom-action',
|
|
1664
|
+
*
|
|
1665
|
+
* // Display name shown to users in the UI
|
|
1666
|
+
* name: 'My Viz Custom Action',
|
|
1667
|
+
*
|
|
1668
|
+
* // Where the action appears in the UI
|
|
1669
|
+
* // PRIMARY: Shows as a primary button (e.g., in the toolbar)
|
|
1670
|
+
* // MENU: Shows in the "More" menu (three dots menu)
|
|
1671
|
+
* // CONTEXTMENU: Shows in the right-click context menu
|
|
1672
|
+
* position: CustomActionsPosition.PRIMARY,
|
|
1673
|
+
*
|
|
1674
|
+
* // What type of content this action applies to
|
|
1675
|
+
* // VIZ: Available on individual visualizations
|
|
1559
1676
|
* target: CustomActionTarget.VIZ,
|
|
1560
|
-
*
|
|
1561
|
-
*
|
|
1677
|
+
*
|
|
1678
|
+
* // Optional: Restrict where this action appears based on metadata
|
|
1679
|
+
* // metadataIds: {
|
|
1680
|
+
* // // Restrict to specific answers
|
|
1681
|
+
* // answerIds: ['answer-id-1', 'answer-id-2'],
|
|
1682
|
+
* // // Restrict to specific liveboard. If liveboardId is
|
|
1683
|
+
* // // passed, custom actions will appear on all vizzes of liveboard
|
|
1684
|
+
* // liveboardIds: ['liveboard-id-1'],
|
|
1685
|
+
* // // Restrict to specific vizIds
|
|
1686
|
+
* // vizIds: ['viz-id-1']
|
|
1687
|
+
* // },
|
|
1688
|
+
* // dataModelIds: {
|
|
1689
|
+
* // // Restrict to specific data models
|
|
1690
|
+
* // modelIds: ['model-id-1', 'model-id-2'],
|
|
1691
|
+
* // // Restrict to specific columns within models
|
|
1692
|
+
* // modelColumnNames: ['model-id::column-name']
|
|
1693
|
+
* // },
|
|
1694
|
+
* // // Restrict to specific groups (for group-based access control)
|
|
1695
|
+
* // groupIds: ['group-id-1', 'group-id-2'],
|
|
1696
|
+
* // // Restrict to specific organizations (for multi-org deployments)
|
|
1697
|
+
* // orgIds: ['org-id-1', 'org-id-2'],
|
|
1562
1698
|
* }
|
|
1563
|
-
* ]
|
|
1699
|
+
* ],
|
|
1564
1700
|
* })
|
|
1565
1701
|
* ```
|
|
1566
1702
|
*/
|
|
@@ -1950,7 +2086,7 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1950
2086
|
* ```ts
|
|
1951
2087
|
* import {
|
|
1952
2088
|
* CustomActionPayload,
|
|
1953
|
-
*
|
|
2089
|
+
* CustomActionsPosition,
|
|
1954
2090
|
* CustomActionTarget,
|
|
1955
2091
|
* } from '@thoughtspot/visual-embed-sdk';
|
|
1956
2092
|
* // Use supported embed types such as AppEmbed or LiveboardEmbed
|
|
@@ -1958,13 +2094,41 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1958
2094
|
* ... // other embed config options
|
|
1959
2095
|
* customActions: [
|
|
1960
2096
|
* {
|
|
1961
|
-
*
|
|
1962
|
-
* id: '
|
|
1963
|
-
*
|
|
1964
|
-
*
|
|
1965
|
-
*
|
|
2097
|
+
* // Unique identifier for the custom action
|
|
2098
|
+
* id: 'my-custom-action',
|
|
2099
|
+
*
|
|
2100
|
+
* // Display name shown to users in the UI
|
|
2101
|
+
* name: 'My Custom Action',
|
|
2102
|
+
*
|
|
2103
|
+
* // Where the action appears in the UI
|
|
2104
|
+
* // PRIMARY: Shows as a primary button (e.g., in the toolbar)
|
|
2105
|
+
* // MENU: Shows in the "More" menu (three dots menu)
|
|
2106
|
+
* // CONTEXTMENU: Shows in the right-click context menu
|
|
2107
|
+
* position: CustomActionsPosition.PRIMARY,
|
|
2108
|
+
*
|
|
2109
|
+
* // What type of content this action applies to
|
|
2110
|
+
* // ANSWER: Available on answer pages
|
|
2111
|
+
* target: CustomActionTarget.ANSWER,
|
|
2112
|
+
*
|
|
2113
|
+
* // Optional: Restrict where this action appears based on data models
|
|
2114
|
+
* // dataModelIds: {
|
|
2115
|
+
* // // Restrict to specific data models
|
|
2116
|
+
* // modelIds: ['model-id-1', 'model-id-2'],
|
|
2117
|
+
* // // Restrict to specific columns within models
|
|
2118
|
+
* // modelColumnNames: ['model-id::column-name']
|
|
2119
|
+
* // },
|
|
2120
|
+
*
|
|
2121
|
+
* // Optional: Restrict where this action appears based on metadata
|
|
2122
|
+
* // metadataIds: {
|
|
2123
|
+
* // // Restrict to specific answers
|
|
2124
|
+
* // answerIds: ['answer-id-1', 'answer-id-2'],
|
|
2125
|
+
* // },
|
|
2126
|
+
* // // Restrict to specific groups (for group-based access control)
|
|
2127
|
+
* // groupIds: ['group-id-1', 'group-id-2'],
|
|
2128
|
+
* // // Restrict to specific organizations (for multi-org deployments)
|
|
2129
|
+
* // orgIds: ['org-id-1', 'org-id-2'],
|
|
1966
2130
|
* }
|
|
1967
|
-
* ]
|
|
2131
|
+
* ],
|
|
1968
2132
|
* })
|
|
1969
2133
|
*
|
|
1970
2134
|
* // to trigger a custom flow on custom action click listen to Custom action embed event
|
|
@@ -1972,6 +2136,120 @@ export interface BaseViewConfig extends ApiInterceptFlags {
|
|
|
1972
2136
|
* console.log('Custom Action event:', payload);
|
|
1973
2137
|
* })
|
|
1974
2138
|
* ```
|
|
2139
|
+
* @example
|
|
2140
|
+
* ```ts
|
|
2141
|
+
* import {
|
|
2142
|
+
* CustomActionsPosition,
|
|
2143
|
+
* CustomActionTarget,
|
|
2144
|
+
* } from '@thoughtspot/visual-embed-sdk';
|
|
2145
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
2146
|
+
* ... // other embed config options
|
|
2147
|
+
* customActions: [
|
|
2148
|
+
* {
|
|
2149
|
+
* // Unique identifier for the custom action
|
|
2150
|
+
* id: 'my-custom-action',
|
|
2151
|
+
*
|
|
2152
|
+
* // Display name shown to users in the UI
|
|
2153
|
+
* name: 'My Custom Action',
|
|
2154
|
+
*
|
|
2155
|
+
* // Where the action appears in the UI
|
|
2156
|
+
* // MENU: Shows in the "More" menu (three dots menu)
|
|
2157
|
+
* // CONTEXTMENU: Shows in the right-click context menu
|
|
2158
|
+
* position: CustomActionsPosition.MENU,
|
|
2159
|
+
*
|
|
2160
|
+
* // What type of content this action applies to
|
|
2161
|
+
* // SPOTTER: Available in Spotter (AI-powered search)
|
|
2162
|
+
* target: CustomActionTarget.SPOTTER,
|
|
2163
|
+
*
|
|
2164
|
+
* // Optional: Restrict where this action appears based on data models
|
|
2165
|
+
* // dataModelIds: {
|
|
2166
|
+
* // // Restrict to specific data models
|
|
2167
|
+
* // modelIds: ['model-id-1', 'model-id-2'],
|
|
2168
|
+
* // },
|
|
2169
|
+
* // // Restrict to specific groups (for group-based access control)
|
|
2170
|
+
* // groupIds: ['group-id-1'],
|
|
2171
|
+
* // // Restrict to specific organizations (for multi-org deployments)
|
|
2172
|
+
* // orgIds: ['org-id-1'],
|
|
2173
|
+
* }
|
|
2174
|
+
* ],
|
|
2175
|
+
* })
|
|
2176
|
+
* ```
|
|
2177
|
+
* @example
|
|
2178
|
+
* ```ts
|
|
2179
|
+
* import {
|
|
2180
|
+
* CustomActionsPosition,
|
|
2181
|
+
* CustomActionTarget,
|
|
2182
|
+
* } from '@thoughtspot/visual-embed-sdk';
|
|
2183
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
2184
|
+
* ... // other embed config options
|
|
2185
|
+
* customActions: [
|
|
2186
|
+
* {
|
|
2187
|
+
* // Unique identifier for the custom action
|
|
2188
|
+
* id: 'my-liveboard-custom-action',
|
|
2189
|
+
*
|
|
2190
|
+
* // Display name shown to users in the UI
|
|
2191
|
+
* name: 'My Liveboard Custom Action',
|
|
2192
|
+
*
|
|
2193
|
+
* // Where the action appears in the UI
|
|
2194
|
+
* // PRIMARY: Shows as a primary button (e.g., in the toolbar)
|
|
2195
|
+
* // MENU: Shows in the "More" menu (three dots menu)
|
|
2196
|
+
* position: CustomActionsPosition.PRIMARY,
|
|
2197
|
+
*
|
|
2198
|
+
* // What type of content this action applies to
|
|
2199
|
+
* // LIVEBOARD: Available on liveboard pages
|
|
2200
|
+
* target: CustomActionTarget.LIVEBOARD,
|
|
2201
|
+
*
|
|
2202
|
+
* // Optional: Restrict where this action appears based on metadata
|
|
2203
|
+
* // metadataIds: {
|
|
2204
|
+
* // // Restrict to specific liveboards
|
|
2205
|
+
* // liveboardIds: ['liveboard-id-1', 'liveboard-id-2'],
|
|
2206
|
+
* // },
|
|
2207
|
+
* // // Restrict to specific groups (for group-based access control)
|
|
2208
|
+
* // groupIds: ['group-id-1', 'group-id-2'],
|
|
2209
|
+
* // // Restrict to specific organizations (for multi-org deployments)
|
|
2210
|
+
* // orgIds: ['org-id-1', 'org-id-2'],
|
|
2211
|
+
* },
|
|
2212
|
+
* {
|
|
2213
|
+
* // Unique identifier for the custom action
|
|
2214
|
+
* id: 'my-viz-custom-action',
|
|
2215
|
+
*
|
|
2216
|
+
* // Display name shown to users in the UI
|
|
2217
|
+
* name: 'My Viz Custom Action',
|
|
2218
|
+
*
|
|
2219
|
+
* // Where the action appears in the UI
|
|
2220
|
+
* // PRIMARY: Shows as a primary button (e.g., in the toolbar)
|
|
2221
|
+
* // MENU: Shows in the "More" menu (three dots menu)
|
|
2222
|
+
* // CONTEXTMENU: Shows in the right-click context menu
|
|
2223
|
+
* position: CustomActionsPosition.PRIMARY,
|
|
2224
|
+
*
|
|
2225
|
+
* // What type of content this action applies to
|
|
2226
|
+
* // VIZ: Available on individual visualizations
|
|
2227
|
+
* target: CustomActionTarget.VIZ,
|
|
2228
|
+
*
|
|
2229
|
+
* // Optional: Restrict where this action appears based on metadata
|
|
2230
|
+
* // metadataIds: {
|
|
2231
|
+
* // // Restrict to specific answers
|
|
2232
|
+
* // answerIds: ['answer-id-1', 'answer-id-2'],
|
|
2233
|
+
* // // Restrict to specific liveboard. If liveboardId is
|
|
2234
|
+
* // // passed, custom actions will appear on all vizzes of liveboard
|
|
2235
|
+
* // liveboardIds: ['liveboard-id-1'],
|
|
2236
|
+
* // // Restrict to specific vizIds
|
|
2237
|
+
* // vizIds: ['viz-id-1']
|
|
2238
|
+
* // },
|
|
2239
|
+
* // dataModelIds: {
|
|
2240
|
+
* // // Restrict to specific data models
|
|
2241
|
+
* // modelIds: ['model-id-1', 'model-id-2'],
|
|
2242
|
+
* // // Restrict to specific columns within models
|
|
2243
|
+
* // modelColumnNames: ['model-id::column-name']
|
|
2244
|
+
* // },
|
|
2245
|
+
* // // Restrict to specific groups (for group-based access control)
|
|
2246
|
+
* // groupIds: ['group-id-1', 'group-id-2'],
|
|
2247
|
+
* // // Restrict to specific organizations (for multi-org deployments)
|
|
2248
|
+
* // orgIds: ['org-id-1', 'org-id-2'],
|
|
2249
|
+
* }
|
|
2250
|
+
* ],
|
|
2251
|
+
* })
|
|
2252
|
+
* ```
|
|
1975
2253
|
*/
|
|
1976
2254
|
customActions?: CustomAction[];
|
|
1977
2255
|
/**
|
|
@@ -3666,13 +3944,11 @@ export declare enum EmbedEvent {
|
|
|
3666
3944
|
* - `payload`: The payload received from the embed related to the Data API call.
|
|
3667
3945
|
* - `responder`: Contains elements that let developers define whether ThoughtSpot
|
|
3668
3946
|
* will run or block the search operation, and if blocked, which error message to provide.
|
|
3669
|
-
*
|
|
3670
|
-
* `execute` - When `execute` returns `true`, the search is run.
|
|
3947
|
+
* - `execute` - When `execute` returns `true`, the search is run.
|
|
3671
3948
|
* When `execute` returns `false`, the search is not executed.
|
|
3672
|
-
*
|
|
3673
|
-
* `error` - Developers can customize the user-facing error message when `execute`
|
|
3949
|
+
* - `error` - Developers can customize the user-facing error message when `execute`
|
|
3674
3950
|
* is `false` by using the `error` parameters in `responder`.
|
|
3675
|
-
* `errorText` - The error message text shown to the user.
|
|
3951
|
+
* - `errorText` - The error message text shown to the user.
|
|
3676
3952
|
* @version SDK : 1.29.0 | ThoughtSpot: 10.3.0.cl
|
|
3677
3953
|
* @example
|
|
3678
3954
|
*
|
|
@@ -3688,7 +3964,7 @@ export declare enum EmbedEvent {
|
|
|
3688
3964
|
* },
|
|
3689
3965
|
* },
|
|
3690
3966
|
* });
|
|
3691
|
-
* })
|
|
3967
|
+
* })
|
|
3692
3968
|
* ```
|
|
3693
3969
|
* @example
|
|
3694
3970
|
*
|
|
@@ -3714,7 +3990,7 @@ export declare enum EmbedEvent {
|
|
|
3714
3990
|
* },
|
|
3715
3991
|
* },
|
|
3716
3992
|
* });
|
|
3717
|
-
* })
|
|
3993
|
+
* })
|
|
3718
3994
|
* ```
|
|
3719
3995
|
*/
|
|
3720
3996
|
OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
|
|
@@ -7038,17 +7314,79 @@ export interface CustomAction {
|
|
|
7038
7314
|
* positions in the application.
|
|
7039
7315
|
*/
|
|
7040
7316
|
export declare enum CustomActionsPosition {
|
|
7317
|
+
/**
|
|
7318
|
+
* Shows the action as a primary button
|
|
7319
|
+
* in the toolbar area of the embed.
|
|
7320
|
+
*/
|
|
7041
7321
|
PRIMARY = "PRIMARY",
|
|
7322
|
+
/**
|
|
7323
|
+
* Shows the action inside the "More" menu
|
|
7324
|
+
* (three-dot overflow menu).
|
|
7325
|
+
*/
|
|
7042
7326
|
MENU = "MENU",
|
|
7327
|
+
/**
|
|
7328
|
+
* Shows the action in the right-click
|
|
7329
|
+
* context menu. Only supported for
|
|
7330
|
+
* {@link CustomActionTarget.VIZ},
|
|
7331
|
+
* {@link CustomActionTarget.ANSWER}, and
|
|
7332
|
+
* {@link CustomActionTarget.SPOTTER} targets.
|
|
7333
|
+
*/
|
|
7043
7334
|
CONTEXTMENU = "CONTEXTMENU"
|
|
7044
7335
|
}
|
|
7045
7336
|
/**
|
|
7046
|
-
* Enum options to mention the target of the custom action.
|
|
7337
|
+
* Enum options to mention the target of the code-based custom action.
|
|
7338
|
+
* The target determines which type of ThoughtSpot object the action is
|
|
7339
|
+
* associated with, and also controls which positions and scoping options
|
|
7340
|
+
* are available.
|
|
7047
7341
|
*/
|
|
7048
7342
|
export declare enum CustomActionTarget {
|
|
7343
|
+
/**
|
|
7344
|
+
* Action applies at the Liveboard level.
|
|
7345
|
+
* Supported positions:
|
|
7346
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
7347
|
+
* {@link CustomActionsPosition.MENU}.
|
|
7348
|
+
* Can be scoped with
|
|
7349
|
+
* `metadataIds.liveboardIds`,
|
|
7350
|
+
* `orgIds`, and `groupIds`.
|
|
7351
|
+
*/
|
|
7049
7352
|
LIVEBOARD = "LIVEBOARD",
|
|
7353
|
+
/**
|
|
7354
|
+
* Action applies to individual
|
|
7355
|
+
* visualizations (charts/tables).
|
|
7356
|
+
* Supported positions:
|
|
7357
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
7358
|
+
* {@link CustomActionsPosition.MENU},
|
|
7359
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
7360
|
+
* Can be scoped with `metadataIds`
|
|
7361
|
+
* (answerIds, liveboardIds, vizIds),
|
|
7362
|
+
* `dataModelIds` (modelIds,
|
|
7363
|
+
* modelColumnNames), `orgIds`,
|
|
7364
|
+
* and `groupIds`.
|
|
7365
|
+
*/
|
|
7050
7366
|
VIZ = "VIZ",
|
|
7367
|
+
/**
|
|
7368
|
+
* Action applies to saved or unsaved
|
|
7369
|
+
* Answers. Supported positions:
|
|
7370
|
+
* {@link CustomActionsPosition.PRIMARY},
|
|
7371
|
+
* {@link CustomActionsPosition.MENU},
|
|
7372
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
7373
|
+
* Can be scoped with
|
|
7374
|
+
* `metadataIds.answerIds`,
|
|
7375
|
+
* `dataModelIds` (modelIds,
|
|
7376
|
+
* modelColumnNames), `orgIds`,
|
|
7377
|
+
* and `groupIds`.
|
|
7378
|
+
*/
|
|
7051
7379
|
ANSWER = "ANSWER",
|
|
7380
|
+
/**
|
|
7381
|
+
* Action applies to Spotter
|
|
7382
|
+
* (AI-powered search).
|
|
7383
|
+
* Supported positions:
|
|
7384
|
+
* {@link CustomActionsPosition.MENU},
|
|
7385
|
+
* {@link CustomActionsPosition.CONTEXTMENU}.
|
|
7386
|
+
* Can be scoped with
|
|
7387
|
+
* `dataModelIds.modelIds`,
|
|
7388
|
+
* `orgIds`, and `groupIds`.
|
|
7389
|
+
*/
|
|
7052
7390
|
SPOTTER = "SPOTTER"
|
|
7053
7391
|
}
|
|
7054
7392
|
declare enum LogLevel {
|
|
@@ -9057,7 +9395,7 @@ export declare enum Page {
|
|
|
9057
9395
|
Monitor = "monitor"
|
|
9058
9396
|
}
|
|
9059
9397
|
/**
|
|
9060
|
-
* Define the initial state
|
|
9398
|
+
* Define the initial state of column custom group accordions
|
|
9061
9399
|
* in data panel v2.
|
|
9062
9400
|
*/
|
|
9063
9401
|
declare enum DataPanelCustomColumnGroupsAccordionState$1 {
|
|
@@ -10520,7 +10858,7 @@ export interface PreRenderProps {
|
|
|
10520
10858
|
* return <LiveboardEmbed preRenderId="someId" liveboardId="libId" />
|
|
10521
10859
|
* }
|
|
10522
10860
|
* ```
|
|
10523
|
-
* @version SDK: 1.25.0 |
|
|
10861
|
+
* @version SDK: 1.25.0 | ThoughtSpot: 9.6.0.cl
|
|
10524
10862
|
*/
|
|
10525
10863
|
preRenderId: string;
|
|
10526
10864
|
}
|