@thoughtspot/visual-embed-sdk 1.27.9 → 1.27.11
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 +2 -2
- package/cjs/src/embed/app.d.ts +144 -7
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +5 -5
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +19 -1
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +0 -3
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/embed.spec.js +0 -15
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +113 -4
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +2 -2
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +20 -1
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/pinboard.spec.js +20 -1
- package/cjs/src/embed/pinboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +1 -1
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +2 -2
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +37 -6
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +2 -2
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +80 -1
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +3 -3
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +25 -1
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed-trigger.spec.d.ts +2 -0
- package/cjs/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
- package/cjs/src/embed/ts-embed-trigger.spec.js +34 -0
- package/cjs/src/embed/ts-embed-trigger.spec.js.map +1 -0
- package/cjs/src/embed/ts-embed.d.ts +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +14 -11
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +50 -17
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +5 -3
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +6 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts +1 -0
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +1 -0
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/all-types-export.d.ts +1 -1
- package/cjs/src/react/all-types-export.d.ts.map +1 -1
- package/cjs/src/react/all-types-export.js +2 -1
- package/cjs/src/react/all-types-export.js.map +1 -1
- package/cjs/src/react/index.spec.js +1 -1
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/test/test-utils.d.ts +1 -0
- package/cjs/src/test/test-utils.d.ts.map +1 -1
- package/cjs/src/test/test-utils.js +10 -1
- package/cjs/src/test/test-utils.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +9 -0
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +9 -0
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +295 -44
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +119 -21
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/authService.d.ts.map +1 -1
- package/cjs/src/utils/authService/authService.js +8 -2
- package/cjs/src/utils/authService/authService.js.map +1 -1
- package/cjs/src/utils/authService/authService.spec.js +22 -0
- package/cjs/src/utils/authService/authService.spec.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +56 -2
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +55 -0
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/dist/src/embed/app.d.ts +144 -7
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +113 -4
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +1 -1
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +37 -6
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +80 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed-trigger.spec.d.ts +2 -0
- package/dist/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
- package/dist/src/embed/ts-embed.d.ts +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +5 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +1 -0
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/all-types-export.d.ts +1 -1
- package/dist/src/react/all-types-export.d.ts.map +1 -1
- package/dist/src/test/test-utils.d.ts +1 -0
- package/dist/src/test/test-utils.d.ts.map +1 -1
- package/dist/src/tokenizedFetch.d.ts +9 -0
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +295 -44
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +56 -2
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +219 -47
- package/dist/tsembed-react.js +212 -47
- package/dist/tsembed.es.js +336 -167
- package/dist/tsembed.js +15335 -15170
- package/dist/visual-embed-sdk-react-full.d.ts +769 -66
- package/dist/visual-embed-sdk-react.d.ts +769 -66
- package/dist/visual-embed-sdk.d.ts +769 -66
- package/lib/package.json +2 -2
- package/lib/src/embed/app.d.ts +144 -7
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +5 -5
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +19 -1
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +0 -3
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/embed.spec.js +2 -17
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +113 -4
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +3 -3
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +20 -1
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/pinboard.spec.js +20 -1
- package/lib/src/embed/pinboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +1 -1
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +2 -2
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +37 -6
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +2 -2
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +80 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +3 -3
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +25 -1
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed-trigger.spec.d.ts +2 -0
- package/lib/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
- package/lib/src/embed/ts-embed-trigger.spec.js +32 -0
- package/lib/src/embed/ts-embed-trigger.spec.js.map +1 -0
- package/lib/src/embed/ts-embed.d.ts +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +14 -11
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +44 -11
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +5 -3
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +3 -3
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +1 -0
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +1 -0
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/all-types-export.d.ts +1 -1
- package/lib/src/react/all-types-export.d.ts.map +1 -1
- package/lib/src/react/all-types-export.js +1 -1
- package/lib/src/react/all-types-export.js.map +1 -1
- package/lib/src/react/index.spec.js +1 -1
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/test/test-utils.d.ts +1 -0
- package/lib/src/test/test-utils.d.ts.map +1 -1
- package/lib/src/test/test-utils.js +8 -0
- package/lib/src/test/test-utils.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +9 -0
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +9 -0
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +295 -44
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +119 -21
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.d.ts.map +1 -1
- package/lib/src/utils/authService/authService.js +8 -2
- package/lib/src/utils/authService/authService.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +22 -0
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +56 -2
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +55 -0
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +778 -69
- package/package.json +2 -2
- package/src/embed/app.spec.ts +24 -1
- package/src/embed/app.ts +148 -13
- package/src/embed/base.ts +1 -5
- package/src/embed/embed.spec.ts +0 -18
- package/src/embed/liveboard.spec.ts +24 -1
- package/src/embed/liveboard.ts +121 -15
- package/src/embed/pinboard.spec.ts +24 -1
- package/src/embed/sage.ts +2 -2
- package/src/embed/search-bar.tsx +38 -7
- package/src/embed/search.spec.ts +29 -1
- package/src/embed/search.ts +82 -3
- package/src/embed/ts-embed-trigger.spec.ts +39 -0
- package/src/embed/ts-embed.spec.ts +46 -11
- package/src/embed/ts-embed.ts +18 -14
- package/src/index.ts +12 -1
- package/src/mixpanel-service.ts +1 -0
- package/src/react/all-types-export.ts +1 -0
- package/src/react/index.spec.tsx +1 -0
- package/src/test/test-utils.ts +9 -0
- package/src/tokenizedFetch.ts +9 -0
- package/src/types.ts +296 -42
- package/src/utils/authService/authService.spec.ts +27 -0
- package/src/utils/authService/authService.ts +13 -12
- package/src/utils/graphql/answerService/answerService.ts +56 -1
|
@@ -18,12 +18,14 @@ declare module '@thoughtspot/visual-embed-sdk' {
|
|
|
18
18
|
import { SearchEmbed, SearchViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search';
|
|
19
19
|
import { SearchBarEmbed, SearchBarViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search-bar';
|
|
20
20
|
import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, getSessionInfo } from '@thoughtspot/visual-embed-sdk/auth';
|
|
21
|
-
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel } from '@thoughtspot/visual-embed-sdk/types';
|
|
21
|
+
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel, VizPoint, CustomActionPayload } from '@thoughtspot/visual-embed-sdk/types';
|
|
22
22
|
import { CustomCssVariables } from '@thoughtspot/visual-embed-sdk/css-variables';
|
|
23
23
|
import { SageEmbed, SageViewConfig } from '@thoughtspot/visual-embed-sdk/embed/sage';
|
|
24
|
-
import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
|
|
24
|
+
import { AnswerService, SessionInterface, UnderlyingDataPoint } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
|
|
25
25
|
import { getEmbedConfig } from '@thoughtspot/visual-embed-sdk/embed/embedConfig';
|
|
26
|
-
|
|
26
|
+
import { uploadMixpanelEvent, MIXPANEL_EVENT } from '@thoughtspot/visual-embed-sdk/mixpanel-service';
|
|
27
|
+
import { tokenizedFetch } from '@thoughtspot/visual-embed-sdk/tokenizedFetch';
|
|
28
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
@@ -37,7 +39,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
37
39
|
* @module
|
|
38
40
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
39
41
|
*/
|
|
40
|
-
import { DOMSelector,
|
|
42
|
+
import { DOMSelector, MessagePayload, ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
41
43
|
import { V1Embed } from '@thoughtspot/visual-embed-sdk/embed/ts-embed';
|
|
42
44
|
/**
|
|
43
45
|
* Pages within the ThoughtSpot app that can be embedded.
|
|
@@ -82,6 +84,16 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
82
84
|
* If true, the top navigation bar within the ThoughtSpot app
|
|
83
85
|
* is displayed. By default, the navigation bar is hidden.
|
|
84
86
|
* This flag also controls the homepage left navigation bar.
|
|
87
|
+
*
|
|
88
|
+
* @default true
|
|
89
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
90
|
+
* @example
|
|
91
|
+
* ```js
|
|
92
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
93
|
+
* ... // other options
|
|
94
|
+
* showPrimaryNavbar:true,
|
|
95
|
+
* })
|
|
96
|
+
* ```
|
|
85
97
|
*/
|
|
86
98
|
showPrimaryNavbar?: boolean;
|
|
87
99
|
/**
|
|
@@ -90,23 +102,73 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
90
102
|
* nav-bars are visible, this flag will only hide the homepage left nav-bar.
|
|
91
103
|
* The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
|
|
92
104
|
*
|
|
105
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
106
|
+
* To access the updated modular homepage, set
|
|
107
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
108
|
+
*
|
|
93
109
|
* @default false
|
|
94
|
-
* @version SDK: 1.27.
|
|
110
|
+
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
111
|
+
* @example
|
|
112
|
+
* ```js
|
|
113
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
114
|
+
* ... // other options
|
|
115
|
+
* hideHomepageLeftNav : true,
|
|
116
|
+
* })
|
|
117
|
+
* ```
|
|
95
118
|
*/
|
|
96
119
|
hideHomepageLeftNav?: boolean;
|
|
97
120
|
/**
|
|
98
121
|
* Control the visibility of the help (?) and profile buttons on the
|
|
99
122
|
* Global nav-bar. By default, these buttons are visible on the nav-bar.
|
|
123
|
+
*
|
|
124
|
+
* @default false
|
|
125
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
126
|
+
* @example
|
|
127
|
+
* ```js
|
|
128
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
129
|
+
* ... // other options
|
|
130
|
+
* disableProfileAndHelp: true,
|
|
131
|
+
* })
|
|
132
|
+
* ```
|
|
100
133
|
*/
|
|
101
134
|
disableProfileAndHelp?: boolean;
|
|
102
135
|
/**
|
|
103
136
|
* Control the visibility of the application switcher button on the nav-bar.
|
|
104
137
|
* By default, the application switcher is shown.
|
|
138
|
+
*
|
|
139
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
140
|
+
* To access the updated modular homepage, set
|
|
141
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
142
|
+
*
|
|
143
|
+
* @default false
|
|
144
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
145
|
+
* @example
|
|
146
|
+
* ```js
|
|
147
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
148
|
+
* ... // other options
|
|
149
|
+
* hideApplicationSwitcher : true,
|
|
150
|
+
* })
|
|
151
|
+
* ```
|
|
105
152
|
*/
|
|
106
153
|
hideApplicationSwitcher?: boolean;
|
|
107
154
|
/**
|
|
108
155
|
* Control the visibility of the Org switcher button on the nav-bar.
|
|
109
156
|
* By default, the Org switcher button is shown.
|
|
157
|
+
*
|
|
158
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
159
|
+
* To access the updated modular homepage, set
|
|
160
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
161
|
+
*
|
|
162
|
+
*
|
|
163
|
+
* @default true
|
|
164
|
+
* @version SDK: 1.2.0 | Thoughtspot: 9.4.0.cl
|
|
165
|
+
* @example
|
|
166
|
+
* ```js
|
|
167
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
168
|
+
* ... // other options
|
|
169
|
+
* hideOrgSwitcher : true,
|
|
170
|
+
* })
|
|
171
|
+
* ```
|
|
110
172
|
*/
|
|
111
173
|
hideOrgSwitcher?: boolean;
|
|
112
174
|
/**
|
|
@@ -118,9 +180,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
118
180
|
* For eg, if you want the component to open to a specific Liveboard
|
|
119
181
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
120
182
|
*
|
|
183
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
121
184
|
* @example
|
|
122
|
-
* ```
|
|
123
|
-
*
|
|
185
|
+
* ```js
|
|
186
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
187
|
+
* ... // other options
|
|
188
|
+
* path:"pinboard/1234/tab/7464"
|
|
189
|
+
* })
|
|
124
190
|
* ```
|
|
125
191
|
*/
|
|
126
192
|
path?: string;
|
|
@@ -130,16 +196,46 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
130
196
|
*
|
|
131
197
|
* Use this to open to particular page in the app. To open to a specific
|
|
132
198
|
* path within the app, use the `path` attribute which is more flexible.
|
|
199
|
+
*
|
|
200
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
201
|
+
* @example
|
|
202
|
+
* ```js
|
|
203
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
204
|
+
* ... // other options
|
|
205
|
+
* pageId : Page.Answers | Page.Data
|
|
206
|
+
* })
|
|
207
|
+
* ```
|
|
133
208
|
*/
|
|
134
209
|
pageId?: Page;
|
|
135
210
|
/**
|
|
136
211
|
* This puts a filter tag on the application. All metadata lists in the
|
|
137
212
|
* application, such as Liveboards and answers, would be filtered by this
|
|
138
213
|
* tag.
|
|
214
|
+
*
|
|
215
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
216
|
+
* @example
|
|
217
|
+
* ```js
|
|
218
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
219
|
+
* ... // other options
|
|
220
|
+
* tag:'value',
|
|
221
|
+
* })
|
|
222
|
+
* ```
|
|
139
223
|
*/
|
|
140
224
|
tag?: string;
|
|
141
225
|
/**
|
|
142
226
|
* The array of GUIDs to be hidden
|
|
227
|
+
*
|
|
228
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
229
|
+
* @example
|
|
230
|
+
* ```js
|
|
231
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
232
|
+
* ... // other options
|
|
233
|
+
* hideObjects: [
|
|
234
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
235
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
236
|
+
* ]
|
|
237
|
+
* })
|
|
238
|
+
* ```
|
|
143
239
|
*/
|
|
144
240
|
hideObjects?: string[];
|
|
145
241
|
/**
|
|
@@ -153,7 +249,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
153
249
|
/**
|
|
154
250
|
* If set to true, the Search Assist feature is enabled.
|
|
155
251
|
*
|
|
252
|
+
* @default true
|
|
156
253
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
254
|
+
* @example
|
|
255
|
+
* ```js
|
|
256
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
257
|
+
* ... // other options
|
|
258
|
+
* enableSearchAssist: true,
|
|
259
|
+
* })
|
|
260
|
+
* ```
|
|
157
261
|
*/
|
|
158
262
|
enableSearchAssist?: boolean;
|
|
159
263
|
/**
|
|
@@ -161,6 +265,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
161
265
|
* according to the height of the pages which support fullHeight mode.
|
|
162
266
|
*
|
|
163
267
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
|
|
268
|
+
* @example
|
|
269
|
+
* ```js
|
|
270
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
271
|
+
* ... // other options
|
|
272
|
+
* fullHeight: true,
|
|
273
|
+
* })
|
|
274
|
+
* ```
|
|
164
275
|
*/
|
|
165
276
|
fullHeight?: boolean;
|
|
166
277
|
/**
|
|
@@ -176,6 +287,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
176
287
|
*
|
|
177
288
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
178
289
|
* @default false
|
|
290
|
+
* @example
|
|
291
|
+
* ```js
|
|
292
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
293
|
+
* ... // other options
|
|
294
|
+
* hideLiveboardHeader : true,
|
|
295
|
+
* })
|
|
296
|
+
* ```
|
|
179
297
|
*/
|
|
180
298
|
hideLiveboardHeader?: boolean;
|
|
181
299
|
/**
|
|
@@ -183,6 +301,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
183
301
|
*
|
|
184
302
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
185
303
|
* @default false
|
|
304
|
+
* @example
|
|
305
|
+
* ```js
|
|
306
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
307
|
+
* ... // other options
|
|
308
|
+
* showLiveboardTitle:true,
|
|
309
|
+
* })
|
|
310
|
+
* ```
|
|
186
311
|
*/
|
|
187
312
|
showLiveboardTitle?: boolean;
|
|
188
313
|
/**
|
|
@@ -190,13 +315,27 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
190
315
|
*
|
|
191
316
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
192
317
|
* @default false
|
|
318
|
+
* @example
|
|
319
|
+
* ```js
|
|
320
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
321
|
+
* ... // other options
|
|
322
|
+
* showLiveboardDescription:true,
|
|
323
|
+
* })
|
|
324
|
+
* ```
|
|
193
325
|
*/
|
|
194
326
|
showLiveboardDescription?: boolean;
|
|
195
327
|
/**
|
|
196
|
-
* Flag to control new Modular Home experience
|
|
328
|
+
* Flag to control new Modular Home experience.
|
|
197
329
|
*
|
|
198
330
|
* @default false
|
|
199
|
-
* @version SDK: 1.27.
|
|
331
|
+
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
332
|
+
* @example
|
|
333
|
+
* ```js
|
|
334
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
335
|
+
* ... // other options
|
|
336
|
+
* modularHomeExperience : true,
|
|
337
|
+
* })
|
|
338
|
+
* ```
|
|
200
339
|
*/
|
|
201
340
|
modularHomeExperience?: boolean;
|
|
202
341
|
/**
|
|
@@ -265,7 +404,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
265
404
|
* @param renderOptions An object containing the page ID
|
|
266
405
|
* to be embedded.
|
|
267
406
|
*/
|
|
268
|
-
render(): AppEmbed
|
|
407
|
+
render(): Promise<AppEmbed>;
|
|
269
408
|
}
|
|
270
409
|
}
|
|
271
410
|
|
|
@@ -433,8 +572,21 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
433
572
|
/**
|
|
434
573
|
* If set to true, the embedded object container dynamically resizes
|
|
435
574
|
* according to the height of the Liveboard.
|
|
575
|
+
* **Note**: Using fullHeight loads all visualizations on the
|
|
576
|
+
* Liveboard simultaneously, which results in multiple warehouse
|
|
577
|
+
* queries and potentially a longer wait for the topmost
|
|
578
|
+
* visualizations to display on the screen.
|
|
579
|
+
* Setting `fullHeight` to `false` fetches visualizations
|
|
580
|
+
* incrementally as users scroll the page to view the charts and tables.
|
|
436
581
|
*
|
|
437
582
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
583
|
+
* @example
|
|
584
|
+
* ```js
|
|
585
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
586
|
+
* ... // other liveboard view config
|
|
587
|
+
* fullHeight: true,
|
|
588
|
+
* });
|
|
589
|
+
* ```
|
|
438
590
|
*/
|
|
439
591
|
fullHeight?: boolean;
|
|
440
592
|
/**
|
|
@@ -444,10 +596,26 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
444
596
|
*
|
|
445
597
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
446
598
|
* @default 500
|
|
599
|
+
* @example
|
|
600
|
+
* ```js
|
|
601
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
602
|
+
* ... // other liveboard view config
|
|
603
|
+
* fullHeight: true,
|
|
604
|
+
* defaultHeight: 600,
|
|
605
|
+
* });
|
|
606
|
+
* ```
|
|
447
607
|
*/
|
|
448
608
|
defaultHeight?: number;
|
|
449
609
|
/**
|
|
450
610
|
* @Deprecated If set to true, the context menu in visualizations will be enabled.
|
|
611
|
+
* @example
|
|
612
|
+
* ```js
|
|
613
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
614
|
+
* ... // other options
|
|
615
|
+
* enableVizTransformations:true,
|
|
616
|
+
* })
|
|
617
|
+
* ```
|
|
618
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
451
619
|
*/
|
|
452
620
|
enableVizTransformations?: boolean;
|
|
453
621
|
/**
|
|
@@ -455,6 +623,12 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
455
623
|
* Use either liveboardId or pinboardId to reference the Liveboard to embed.
|
|
456
624
|
*
|
|
457
625
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
626
|
+
* @example
|
|
627
|
+
* ```js
|
|
628
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
629
|
+
* ... // other options
|
|
630
|
+
* liveboardId:id of liveboard,
|
|
631
|
+
* })
|
|
458
632
|
*/
|
|
459
633
|
liveboardId?: string;
|
|
460
634
|
/**
|
|
@@ -465,6 +639,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
465
639
|
pinboardId?: string;
|
|
466
640
|
/**
|
|
467
641
|
* The visualization within the Liveboard to display.
|
|
642
|
+
*
|
|
643
|
+
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
644
|
+
* @example
|
|
645
|
+
* ```js
|
|
646
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
647
|
+
* ... // other options
|
|
648
|
+
* vizId:'430496d6-6903-4601-937e-2c691821af3c',
|
|
649
|
+
* })
|
|
650
|
+
* ```
|
|
468
651
|
*/
|
|
469
652
|
vizId?: string;
|
|
470
653
|
/**
|
|
@@ -472,6 +655,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
472
655
|
* Liveboard page will be read-only (no X buttons)
|
|
473
656
|
*
|
|
474
657
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
|
|
658
|
+
* @example
|
|
659
|
+
* ```js
|
|
660
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
661
|
+
* ... // other options
|
|
662
|
+
* preventLiveboardFilterRemoval:true,
|
|
663
|
+
* })
|
|
664
|
+
* ```
|
|
475
665
|
*/
|
|
476
666
|
preventLiveboardFilterRemoval?: boolean;
|
|
477
667
|
/**
|
|
@@ -480,6 +670,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
480
670
|
* event.
|
|
481
671
|
*
|
|
482
672
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
673
|
+
* @example
|
|
674
|
+
* ```js
|
|
675
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
676
|
+
* ... // other options
|
|
677
|
+
* visibleVizs: [
|
|
678
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
679
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
680
|
+
* ]
|
|
681
|
+
* })
|
|
483
682
|
*/
|
|
484
683
|
visibleVizs?: string[];
|
|
485
684
|
/**
|
|
@@ -493,12 +692,26 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
493
692
|
* new Liveboard experience mode.
|
|
494
693
|
*
|
|
495
694
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
695
|
+
* @example
|
|
696
|
+
* ```js
|
|
697
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
698
|
+
* ... // other options
|
|
699
|
+
* liveboardV2:true,
|
|
700
|
+
* })
|
|
701
|
+
* ```
|
|
496
702
|
*/
|
|
497
703
|
liveboardV2?: boolean;
|
|
498
704
|
/**
|
|
499
705
|
* Set a Liveboard tab as an active tab.
|
|
500
706
|
* Specify the tab ID.
|
|
501
707
|
*
|
|
708
|
+
* @example
|
|
709
|
+
* ```js
|
|
710
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
711
|
+
* ... // other options
|
|
712
|
+
* activeTabId:'id-1234',
|
|
713
|
+
* })
|
|
714
|
+
* ```
|
|
502
715
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
503
716
|
*/
|
|
504
717
|
activeTabId?: string;
|
|
@@ -506,6 +719,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
506
719
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
507
720
|
*
|
|
508
721
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
722
|
+
* @example
|
|
723
|
+
* ```js
|
|
724
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
725
|
+
* ... // other options
|
|
726
|
+
* hideTabPanel:true,
|
|
727
|
+
* })
|
|
728
|
+
* ```
|
|
509
729
|
*/
|
|
510
730
|
hideTabPanel?: boolean;
|
|
511
731
|
/**
|
|
@@ -513,20 +733,41 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
513
733
|
*
|
|
514
734
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
515
735
|
* @default false
|
|
736
|
+
* @example
|
|
737
|
+
* ```js
|
|
738
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
739
|
+
* ... // other liveboard view config
|
|
740
|
+
* hideLiveboardHeader:true,
|
|
741
|
+
* });
|
|
742
|
+
* ```
|
|
516
743
|
*/
|
|
517
744
|
hideLiveboardHeader?: boolean;
|
|
518
745
|
/**
|
|
519
746
|
* Show or hide the Liveboard title.
|
|
520
747
|
*
|
|
521
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
522
748
|
* @default false
|
|
749
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
750
|
+
* @example
|
|
751
|
+
* ```js
|
|
752
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
753
|
+
* ... // other options
|
|
754
|
+
* showLiveboardTitle:true,
|
|
755
|
+
* })
|
|
756
|
+
* ```
|
|
523
757
|
*/
|
|
524
758
|
showLiveboardTitle?: boolean;
|
|
525
759
|
/**
|
|
526
760
|
* Show or hide the Liveboard description.
|
|
527
761
|
*
|
|
528
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
529
762
|
* @default false
|
|
763
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
764
|
+
* @example
|
|
765
|
+
* ```js
|
|
766
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
767
|
+
* ... // other options
|
|
768
|
+
* showLiveboardDescription:true,
|
|
769
|
+
* })
|
|
770
|
+
* ```
|
|
530
771
|
*/
|
|
531
772
|
showLiveboardDescription?: boolean;
|
|
532
773
|
/**
|
|
@@ -547,8 +788,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
547
788
|
/**
|
|
548
789
|
* enable or disable ask sage
|
|
549
790
|
*
|
|
550
|
-
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
551
791
|
* @default false
|
|
792
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
793
|
+
* @example
|
|
794
|
+
* ```js
|
|
795
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
796
|
+
* ... // other options
|
|
797
|
+
* enableAskSage:true,
|
|
798
|
+
* })
|
|
799
|
+
* ```
|
|
552
800
|
*/
|
|
553
801
|
enableAskSage?: boolean;
|
|
554
802
|
}
|
|
@@ -591,7 +839,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
591
839
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
592
840
|
* visualization ID and the runtime filters.
|
|
593
841
|
*/
|
|
594
|
-
render(): LiveboardEmbed
|
|
842
|
+
render(): Promise<LiveboardEmbed>;
|
|
595
843
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
596
844
|
}
|
|
597
845
|
/**
|
|
@@ -638,16 +886,43 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
638
886
|
/**
|
|
639
887
|
* If set to true, the data sources panel is collapsed on load,
|
|
640
888
|
* but can be expanded manually.
|
|
889
|
+
*
|
|
890
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
891
|
+
* @example
|
|
892
|
+
* ```js
|
|
893
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
894
|
+
* ... // other options
|
|
895
|
+
* collapseDataSources:true,
|
|
896
|
+
* })
|
|
897
|
+
* ```
|
|
641
898
|
*/
|
|
642
899
|
collapseDataSources?: boolean;
|
|
643
900
|
/**
|
|
644
901
|
* Show or hide the data sources panel.
|
|
902
|
+
*
|
|
903
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
904
|
+
* @example
|
|
905
|
+
* ```js
|
|
906
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
907
|
+
* ... // other options
|
|
908
|
+
* hideDataSources:true,
|
|
909
|
+
* })
|
|
910
|
+
* ```
|
|
645
911
|
*/
|
|
646
912
|
hideDataSources?: boolean;
|
|
647
913
|
/**
|
|
648
914
|
* Show or hide the charts and tables in search answers.
|
|
649
915
|
* This attribute can be used to create a custom visualization
|
|
650
916
|
* using raw answer data.
|
|
917
|
+
*
|
|
918
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
919
|
+
* @example
|
|
920
|
+
* ```js
|
|
921
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
922
|
+
* ... // other options
|
|
923
|
+
* hideResults:true,
|
|
924
|
+
* })
|
|
925
|
+
* ```
|
|
651
926
|
*/
|
|
652
927
|
hideResults?: boolean;
|
|
653
928
|
/**
|
|
@@ -658,11 +933,26 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
658
933
|
* If set to true, the Search Assist feature is enabled.
|
|
659
934
|
*
|
|
660
935
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
936
|
+
* @example
|
|
937
|
+
* ```js
|
|
938
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
939
|
+
* ... // other options
|
|
940
|
+
* enableSearchAssist:true,
|
|
941
|
+
* })
|
|
942
|
+
* ```
|
|
661
943
|
*/
|
|
662
944
|
enableSearchAssist?: boolean;
|
|
663
945
|
/**
|
|
664
946
|
* If set to true, the tabular view is set as the default
|
|
665
947
|
* format for presenting search data.
|
|
948
|
+
*
|
|
949
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
950
|
+
* @example
|
|
951
|
+
* ```js
|
|
952
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
953
|
+
* ... // other options
|
|
954
|
+
* forceTable:true,
|
|
955
|
+
* })
|
|
666
956
|
*/
|
|
667
957
|
forceTable?: boolean;
|
|
668
958
|
/**
|
|
@@ -670,12 +960,26 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
670
960
|
* Only a single data source is supported currently.
|
|
671
961
|
*
|
|
672
962
|
* @deprecated Use `dataSource` instead.
|
|
963
|
+
* @example
|
|
964
|
+
* ```js
|
|
965
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
966
|
+
* ... // other options
|
|
967
|
+
* dataSources:['id-234','id-456'],
|
|
968
|
+
* })
|
|
969
|
+
* ```
|
|
673
970
|
*/
|
|
674
971
|
dataSources?: string[];
|
|
675
972
|
/**
|
|
676
973
|
* The array of data source GUIDs to set on load.
|
|
677
974
|
*
|
|
678
975
|
* @version: SDK: 1.19.0
|
|
976
|
+
* @example
|
|
977
|
+
* ```js
|
|
978
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
979
|
+
* ... // other options
|
|
980
|
+
* dataSource:'id-234',
|
|
981
|
+
* })
|
|
982
|
+
* ```
|
|
679
983
|
*/
|
|
680
984
|
dataSource?: string;
|
|
681
985
|
/**
|
|
@@ -708,6 +1012,15 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
708
1012
|
searchOptions?: SearchOptions;
|
|
709
1013
|
/**
|
|
710
1014
|
* The GUID of a saved answer to load initially.
|
|
1015
|
+
*
|
|
1016
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
1017
|
+
* @example
|
|
1018
|
+
* ```js
|
|
1019
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1020
|
+
* ... // other options
|
|
1021
|
+
* answerId:'sed-1234',
|
|
1022
|
+
* })
|
|
1023
|
+
* ```
|
|
711
1024
|
*/
|
|
712
1025
|
answerId?: string;
|
|
713
1026
|
/**
|
|
@@ -715,6 +1028,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
715
1028
|
* The chart/table should still be visible.
|
|
716
1029
|
*
|
|
717
1030
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1031
|
+
* @example
|
|
1032
|
+
* ```js
|
|
1033
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1034
|
+
* ... // other options
|
|
1035
|
+
* hideSearchBar:true,
|
|
1036
|
+
* })
|
|
1037
|
+
* ```
|
|
718
1038
|
*/
|
|
719
1039
|
hideSearchBar?: boolean;
|
|
720
1040
|
/**
|
|
@@ -722,6 +1042,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
722
1042
|
*
|
|
723
1043
|
* @default false
|
|
724
1044
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1045
|
+
* @example
|
|
1046
|
+
* ```js
|
|
1047
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1048
|
+
* ... // other options
|
|
1049
|
+
* dataPanelV2:false,
|
|
1050
|
+
* })
|
|
1051
|
+
* ```
|
|
725
1052
|
*/
|
|
726
1053
|
dataPanelV2?: boolean;
|
|
727
1054
|
/**
|
|
@@ -755,7 +1082,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
755
1082
|
/**
|
|
756
1083
|
* Render the embedded ThoughtSpot search
|
|
757
1084
|
*/
|
|
758
|
-
render(): SearchEmbed
|
|
1085
|
+
render(): Promise<SearchEmbed>;
|
|
759
1086
|
}
|
|
760
1087
|
}
|
|
761
1088
|
|
|
@@ -772,18 +1099,44 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
|
|
|
772
1099
|
* Only a single data source is supported currently.
|
|
773
1100
|
*
|
|
774
1101
|
* @deprecated Use `dataSource` instead
|
|
1102
|
+
*
|
|
1103
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.1-sw
|
|
1104
|
+
*
|
|
1105
|
+
* @example
|
|
1106
|
+
* ```js
|
|
1107
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1108
|
+
* ... // other options
|
|
1109
|
+
* dataSources:['id-2345','id-2345'],
|
|
1110
|
+
* })
|
|
1111
|
+
* ```
|
|
775
1112
|
*/
|
|
776
1113
|
dataSources?: string[];
|
|
777
1114
|
/**
|
|
778
|
-
*
|
|
1115
|
+
* Pass the ID of the source to be selected.
|
|
779
1116
|
*
|
|
780
1117
|
* @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
|
|
1118
|
+
*
|
|
1119
|
+
* @example
|
|
1120
|
+
* ```js
|
|
1121
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1122
|
+
* ... // other options
|
|
1123
|
+
* dataSource:'id-2345',
|
|
1124
|
+
* })
|
|
1125
|
+
* ```
|
|
781
1126
|
*/
|
|
782
1127
|
dataSource?: string;
|
|
783
1128
|
/**
|
|
784
1129
|
* Boolean to define if the last selected data source should be used
|
|
785
1130
|
*
|
|
786
1131
|
* @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
|
|
1132
|
+
*
|
|
1133
|
+
* @example
|
|
1134
|
+
* ```js
|
|
1135
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1136
|
+
* ... // other options
|
|
1137
|
+
* useLastSelectedSources:false,
|
|
1138
|
+
* })
|
|
1139
|
+
* ```
|
|
787
1140
|
*/
|
|
788
1141
|
useLastSelectedSources?: boolean;
|
|
789
1142
|
/**
|
|
@@ -797,12 +1150,17 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
|
|
|
797
1150
|
* If it’s not executed, the focus is placed at the end of
|
|
798
1151
|
* the token string in the search bar.
|
|
799
1152
|
*
|
|
1153
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.4.0.sw
|
|
1154
|
+
*
|
|
800
1155
|
* @example
|
|
801
1156
|
* ```js
|
|
802
|
-
*
|
|
803
|
-
*
|
|
804
|
-
*
|
|
805
|
-
*
|
|
1157
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1158
|
+
* ... // other options
|
|
1159
|
+
* searchOptions: {
|
|
1160
|
+
* searchTokenString: '[quantity purchased] [region]',
|
|
1161
|
+
* executeSearch: true,
|
|
1162
|
+
* }
|
|
1163
|
+
* })
|
|
806
1164
|
* ```
|
|
807
1165
|
*/
|
|
808
1166
|
searchOptions?: SearchOptions;
|
|
@@ -823,7 +1181,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
|
|
|
823
1181
|
/**
|
|
824
1182
|
* Render the embedded ThoughtSpot search
|
|
825
1183
|
*/
|
|
826
|
-
render(): SearchBarEmbed
|
|
1184
|
+
render(): Promise<SearchBarEmbed>;
|
|
827
1185
|
}
|
|
828
1186
|
}
|
|
829
1187
|
|
|
@@ -1164,6 +1522,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1164
1522
|
* .then((data) => data.token);
|
|
1165
1523
|
* }
|
|
1166
1524
|
* });
|
|
1525
|
+
* });
|
|
1167
1526
|
* ```
|
|
1168
1527
|
*/
|
|
1169
1528
|
TrustedAuthToken = "AuthServer",
|
|
@@ -1196,16 +1555,38 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1196
1555
|
*/
|
|
1197
1556
|
Basic = "Basic"
|
|
1198
1557
|
}
|
|
1558
|
+
/**
|
|
1559
|
+
*
|
|
1560
|
+
* This option does not apply to the classic homepage experience. To access the
|
|
1561
|
+
* updated modular homepage, set `modularHomeExperience` to `true` (available in Early
|
|
1562
|
+
* Access from 9.12.0.cl onwards).
|
|
1563
|
+
*
|
|
1564
|
+
*/
|
|
1199
1565
|
export enum HomeLeftNavItem {
|
|
1200
|
-
|
|
1566
|
+
/**
|
|
1567
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1568
|
+
*/
|
|
1569
|
+
SearchData = "search-data",
|
|
1570
|
+
/**
|
|
1571
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1572
|
+
*/
|
|
1201
1573
|
Home = "insights-home",
|
|
1574
|
+
/**
|
|
1575
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1576
|
+
*/
|
|
1202
1577
|
Liveboards = "liveboards",
|
|
1578
|
+
/**
|
|
1579
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1580
|
+
*/
|
|
1203
1581
|
Answers = "answers",
|
|
1582
|
+
/**
|
|
1583
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1584
|
+
*/
|
|
1204
1585
|
MonitorSubscription = "monitor-alerts",
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1586
|
+
/**
|
|
1587
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1588
|
+
*/
|
|
1589
|
+
SpotIQAnalysis = "spotiq-analysis"
|
|
1209
1590
|
}
|
|
1210
1591
|
export type DOMSelector = string | HTMLElement;
|
|
1211
1592
|
/**
|
|
@@ -1261,6 +1642,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1261
1642
|
/**
|
|
1262
1643
|
* Configuration to define the customization on the Embedded
|
|
1263
1644
|
* Thoughtspot components.
|
|
1645
|
+
* You can customize styles, text strings, and icons.
|
|
1646
|
+
* For more information, see https://developers.thoughtspot.com/docs/custom-css.
|
|
1264
1647
|
*
|
|
1265
1648
|
* @example
|
|
1266
1649
|
* ```js
|
|
@@ -1275,7 +1658,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1275
1658
|
* },
|
|
1276
1659
|
* content: {
|
|
1277
1660
|
* strings: {
|
|
1278
|
-
* 'LIVEBOARDS': 'Dashboards'
|
|
1661
|
+
* 'LIVEBOARDS': 'Dashboards',
|
|
1662
|
+
* 'ANSWERS': 'Visualizations',
|
|
1663
|
+
* 'Edit': 'Modify',
|
|
1664
|
+
* 'Show underlying data': 'Show source data',
|
|
1665
|
+
* 'SpotIQ': 'Insights',
|
|
1666
|
+
* 'Monitor': 'Alerts',
|
|
1279
1667
|
* }
|
|
1280
1668
|
* },
|
|
1281
1669
|
* iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
|
|
@@ -1307,12 +1695,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1307
1695
|
* The ThoughtSpot cluster hostname or IP address.
|
|
1308
1696
|
*/
|
|
1309
1697
|
thoughtSpotHost: string;
|
|
1310
|
-
/**
|
|
1311
|
-
* If true, all the iframe links will have /v2 added automatically.
|
|
1312
|
-
* If false, all the iframe links will have /v1 added automatically.
|
|
1313
|
-
* If undefined, nothing will be added
|
|
1314
|
-
*/
|
|
1315
|
-
enableReactShell?: boolean | undefined;
|
|
1316
1698
|
/**
|
|
1317
1699
|
* The authentication mechanism to use.
|
|
1318
1700
|
*/
|
|
@@ -1601,8 +1983,20 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1601
1983
|
*/
|
|
1602
1984
|
layoutConfig?: LayoutConfig;
|
|
1603
1985
|
/**
|
|
1604
|
-
* The
|
|
1986
|
+
* The width and height dimensions to render an embedded
|
|
1605
1987
|
* object inside your app. Specify the values in pixels or percentage.
|
|
1988
|
+
*
|
|
1989
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
1990
|
+
* @example
|
|
1991
|
+
* ```js
|
|
1992
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1993
|
+
* ... // other liveboard view config
|
|
1994
|
+
* frameParams: {
|
|
1995
|
+
* width: '500px' | '50%',
|
|
1996
|
+
* height: '400px' | '60%',
|
|
1997
|
+
* },
|
|
1998
|
+
* });
|
|
1999
|
+
* ```
|
|
1606
2000
|
*/
|
|
1607
2001
|
frameParams?: FrameParams;
|
|
1608
2002
|
/**
|
|
@@ -1619,6 +2013,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1619
2013
|
* for the user.
|
|
1620
2014
|
* Use this to disable actions.
|
|
1621
2015
|
*
|
|
2016
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1622
2017
|
* @example
|
|
1623
2018
|
* ```js
|
|
1624
2019
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1630,6 +2025,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1630
2025
|
disabledActions?: Action[];
|
|
1631
2026
|
/**
|
|
1632
2027
|
* The tooltip to display for disabled actions.
|
|
2028
|
+
*
|
|
2029
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2030
|
+
* @example
|
|
2031
|
+
* ```js
|
|
2032
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2033
|
+
* ... // other liveboard view config
|
|
2034
|
+
* disabledActions: [Action.Download, Action.Save]
|
|
2035
|
+
* disabledActionReason: "Reason for disabling",
|
|
2036
|
+
* });
|
|
2037
|
+
* ```
|
|
1633
2038
|
*/
|
|
1634
2039
|
disabledActionReason?: string;
|
|
1635
2040
|
/**
|
|
@@ -1637,6 +2042,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1637
2042
|
* This actions will be hidden from the user.
|
|
1638
2043
|
* Use this to hide an action.
|
|
1639
2044
|
*
|
|
2045
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1640
2046
|
* @example
|
|
1641
2047
|
* ```js
|
|
1642
2048
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1657,17 +2063,46 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1657
2063
|
*
|
|
1658
2064
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1659
2065
|
* @important
|
|
2066
|
+
* @example
|
|
2067
|
+
* ```js
|
|
2068
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2069
|
+
* ... // other liveboard view config
|
|
2070
|
+
* visibleActions: [Action.Download, Action.Export]
|
|
2071
|
+
* });
|
|
2072
|
+
* ```
|
|
1660
2073
|
*/
|
|
1661
2074
|
visibleActions?: Action[];
|
|
1662
2075
|
/**
|
|
1663
2076
|
* Show alert messages and toast messages in the embedded view.
|
|
1664
2077
|
*
|
|
1665
2078
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2079
|
+
* @example
|
|
2080
|
+
* ```js
|
|
2081
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2082
|
+
* ... // other options
|
|
2083
|
+
* showAlerts:true,
|
|
2084
|
+
* })
|
|
2085
|
+
* ```
|
|
1666
2086
|
*/
|
|
1667
2087
|
showAlerts?: boolean;
|
|
1668
2088
|
/**
|
|
1669
2089
|
* The list of runtime filters to apply to a search answer,
|
|
1670
2090
|
* visualization, or Liveboard.
|
|
2091
|
+
*
|
|
2092
|
+
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2093
|
+
* @example
|
|
2094
|
+
* ```js
|
|
2095
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2096
|
+
* ... // other options
|
|
2097
|
+
* runtimeFilters: [
|
|
2098
|
+
* {
|
|
2099
|
+
* columnName: 'value',
|
|
2100
|
+
* operator: RuntimeFilterOp.EQ,
|
|
2101
|
+
* values: ['string' | 123 | true],
|
|
2102
|
+
* },
|
|
2103
|
+
* ],
|
|
2104
|
+
* })
|
|
2105
|
+
* ```
|
|
1671
2106
|
*/
|
|
1672
2107
|
runtimeFilters?: RuntimeFilter[];
|
|
1673
2108
|
/**
|
|
@@ -1675,12 +2110,31 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1675
2110
|
* visualization, or Liveboard.
|
|
1676
2111
|
*
|
|
1677
2112
|
* @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
|
|
2113
|
+
* @example
|
|
2114
|
+
* ```js
|
|
2115
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2116
|
+
* ... // other options
|
|
2117
|
+
* runtimeParameters: [
|
|
2118
|
+
* {
|
|
2119
|
+
* name: 'value',
|
|
2120
|
+
* value: 'string' | 123 | true,
|
|
2121
|
+
* },
|
|
2122
|
+
* ],
|
|
2123
|
+
* })
|
|
2124
|
+
* ```
|
|
1678
2125
|
*/
|
|
1679
2126
|
runtimeParameters?: RuntimeParameter[];
|
|
1680
2127
|
/**
|
|
1681
2128
|
* The locale/language to use for the embedded view.
|
|
1682
2129
|
*
|
|
1683
2130
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2131
|
+
* @example
|
|
2132
|
+
* ```js
|
|
2133
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2134
|
+
* ... // other options
|
|
2135
|
+
* locale:'en',
|
|
2136
|
+
* })
|
|
2137
|
+
* ```
|
|
1684
2138
|
*/
|
|
1685
2139
|
locale?: string;
|
|
1686
2140
|
/**
|
|
@@ -1691,6 +2145,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1691
2145
|
* to control embed behavior in non-regular ways. We do not publish the
|
|
1692
2146
|
* list of supported keys and values associated with each.
|
|
1693
2147
|
*
|
|
2148
|
+
* @example
|
|
2149
|
+
* ```js
|
|
2150
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2151
|
+
* ... // other liveboard view config
|
|
2152
|
+
* additionalFlags: {
|
|
2153
|
+
* flag1: 'value1',
|
|
2154
|
+
* flag2: 'value2'
|
|
2155
|
+
* }
|
|
2156
|
+
* });
|
|
2157
|
+
* ```
|
|
1694
2158
|
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1695
2159
|
*/
|
|
1696
2160
|
additionalFlags?: {
|
|
@@ -1707,18 +2171,41 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1707
2171
|
/**
|
|
1708
2172
|
* Insert as a sibling of the target container, instead of appending to a
|
|
1709
2173
|
* child inside it.
|
|
2174
|
+
*
|
|
2175
|
+
* @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
|
|
2176
|
+
* @example
|
|
2177
|
+
* ```js
|
|
2178
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2179
|
+
* ... // other options
|
|
2180
|
+
* insertAsSibling:true,
|
|
2181
|
+
* })
|
|
2182
|
+
* ```
|
|
1710
2183
|
*/
|
|
1711
2184
|
insertAsSibling?: boolean;
|
|
1712
2185
|
/**
|
|
1713
2186
|
* flag to set ContextMenu Trigger to either left or right click.
|
|
1714
2187
|
*
|
|
2188
|
+
* @example
|
|
2189
|
+
* ```js
|
|
2190
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
2191
|
+
* ... // other options
|
|
2192
|
+
* contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
|
|
2193
|
+
* })
|
|
2194
|
+
* ```
|
|
1715
2195
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1716
2196
|
*/
|
|
1717
2197
|
contextMenuTrigger?: ContextMenuTriggerOptions;
|
|
1718
2198
|
/**
|
|
1719
|
-
*
|
|
2199
|
+
* Flag to override openNew tab context menu link
|
|
1720
2200
|
*
|
|
1721
2201
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2202
|
+
* @example
|
|
2203
|
+
* ```js
|
|
2204
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2205
|
+
* ... // other options
|
|
2206
|
+
* linkOverride:false,
|
|
2207
|
+
* })
|
|
2208
|
+
* ```
|
|
1722
2209
|
*/
|
|
1723
2210
|
linkOverride?: boolean;
|
|
1724
2211
|
/**
|
|
@@ -1740,9 +2227,14 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1740
2227
|
usePrerenderedIfAvailable?: boolean;
|
|
1741
2228
|
/**
|
|
1742
2229
|
* Boolean to exclude runtimeFilters in the URL
|
|
2230
|
+
* By default it is true, this flag removes runtime filters from the URL
|
|
2231
|
+
* when set to false, runtime filters will be included in the URL.
|
|
1743
2232
|
*
|
|
1744
|
-
*
|
|
1745
|
-
*
|
|
2233
|
+
* Irrespective of this flag, runtime filters ( if passed ) will be applied to the
|
|
2234
|
+
* embedded view.
|
|
2235
|
+
*
|
|
2236
|
+
* @default true
|
|
2237
|
+
* @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
|
|
1746
2238
|
*/
|
|
1747
2239
|
excludeRuntimeFiltersfromURL?: boolean;
|
|
1748
2240
|
/**
|
|
@@ -1764,16 +2256,40 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1764
2256
|
hiddenTabs?: string[];
|
|
1765
2257
|
/**
|
|
1766
2258
|
* Hide the home page modules
|
|
1767
|
-
*
|
|
2259
|
+
* For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
|
|
2260
|
+
*
|
|
2261
|
+
*
|
|
2262
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2263
|
+
* To access the updated modular homepage, set
|
|
2264
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.0.cl).
|
|
1768
2265
|
*
|
|
1769
|
-
* @version SDK: 1.27.
|
|
2266
|
+
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
2267
|
+
* @example
|
|
2268
|
+
* ```js
|
|
2269
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2270
|
+
* ... // other options
|
|
2271
|
+
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
2272
|
+
* })
|
|
2273
|
+
* ```
|
|
1770
2274
|
*/
|
|
1771
2275
|
hiddenHomepageModules?: HomepageModule[];
|
|
1772
2276
|
/**
|
|
1773
2277
|
* reordering the home page modules
|
|
1774
2278
|
* eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
|
|
1775
2279
|
*
|
|
1776
|
-
*
|
|
2280
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2281
|
+
* To access the updated modular homepage, set
|
|
2282
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl
|
|
2283
|
+
* onwards).
|
|
2284
|
+
*
|
|
2285
|
+
* @version SDK: 1.27.9| Thoughtspot: 9.12.0.cl
|
|
2286
|
+
* @example
|
|
2287
|
+
* ```js
|
|
2288
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2289
|
+
* ... // other options
|
|
2290
|
+
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
|
|
2291
|
+
* })
|
|
2292
|
+
* ```
|
|
1777
2293
|
*/
|
|
1778
2294
|
reorderedHomepageModules?: HomepageModule[];
|
|
1779
2295
|
/**
|
|
@@ -1782,13 +2298,17 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1782
2298
|
*
|
|
1783
2299
|
* Use either `visibleTabs` or `hiddenTabs`.
|
|
1784
2300
|
*
|
|
2301
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1785
2302
|
* @example
|
|
1786
2303
|
* ```js
|
|
1787
|
-
*
|
|
1788
|
-
*
|
|
1789
|
-
*
|
|
2304
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2305
|
+
* ... // other options
|
|
2306
|
+
* visibleTabs: [
|
|
2307
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
2308
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
2309
|
+
* ]
|
|
2310
|
+
* })
|
|
1790
2311
|
* ```
|
|
1791
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1792
2312
|
*/
|
|
1793
2313
|
visibleTabs?: string[];
|
|
1794
2314
|
/**
|
|
@@ -1796,11 +2316,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1796
2316
|
* There are 8 eight home navigation list items.
|
|
1797
2317
|
* To hide these items, specify the string in the array.
|
|
1798
2318
|
*
|
|
2319
|
+
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
2320
|
+
* @example
|
|
1799
2321
|
* ```js
|
|
1800
|
-
*
|
|
2322
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2323
|
+
* ... // other options
|
|
2324
|
+
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
2325
|
+
* })
|
|
1801
2326
|
* ```
|
|
1802
2327
|
*
|
|
1803
|
-
*
|
|
2328
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2329
|
+
* To access the updated modular homepage, set
|
|
2330
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
2331
|
+
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
1804
2332
|
*/
|
|
1805
2333
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
1806
2334
|
/**
|
|
@@ -1827,7 +2355,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1827
2355
|
*
|
|
1828
2356
|
* @type {boolean}
|
|
1829
2357
|
* @default false
|
|
2358
|
+
* @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
|
|
1830
2359
|
* @example
|
|
2360
|
+
* ```js
|
|
1831
2361
|
* // Disable tracking PreRender size in the configuration
|
|
1832
2362
|
* const config = {
|
|
1833
2363
|
* doNotTrackPreRenderSize: true,
|
|
@@ -1835,6 +2365,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1835
2365
|
*
|
|
1836
2366
|
* // Instantiate an object with the configuration
|
|
1837
2367
|
* const myComponent = new MyComponent(config);
|
|
2368
|
+
* ```
|
|
1838
2369
|
*/
|
|
1839
2370
|
doNotTrackPreRenderSize?: boolean;
|
|
1840
2371
|
/**
|
|
@@ -1976,6 +2507,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1976
2507
|
MyLibrary = "MY_LIBRARY",
|
|
1977
2508
|
/**
|
|
1978
2509
|
* Trending list
|
|
2510
|
+
*
|
|
2511
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2512
|
+
* To access the updated modular homepage, set
|
|
2513
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl
|
|
2514
|
+
* onwards).
|
|
1979
2515
|
*/
|
|
1980
2516
|
Trending = "TRENDING",
|
|
1981
2517
|
/**
|
|
@@ -2114,7 +2650,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2114
2650
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2115
2651
|
* @example
|
|
2116
2652
|
*```js
|
|
2117
|
-
* searchEmbed.trigger(
|
|
2653
|
+
* searchEmbed.trigger(EmbedEvent.DrillDown, {
|
|
2118
2654
|
* points: {
|
|
2119
2655
|
* clickedPoint,
|
|
2120
2656
|
* selectedPoints: selectedPoint
|
|
@@ -2172,7 +2708,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2172
2708
|
* A custom action has been triggered.
|
|
2173
2709
|
*
|
|
2174
2710
|
* @returns actionId - ID of the custom action
|
|
2175
|
-
* @returns
|
|
2711
|
+
* @returns payload {@link CustomActionPayload} - Response payload with the
|
|
2712
|
+
* Answer or Liveboard data
|
|
2176
2713
|
* @example
|
|
2177
2714
|
* ```js
|
|
2178
2715
|
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
@@ -2192,7 +2729,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2192
2729
|
* @example
|
|
2193
2730
|
* ```js
|
|
2194
2731
|
* livebaordEmbed.on(EmbedEvent.VizPointDoubleClick, payload => {
|
|
2195
|
-
* console.log('VizPointDoubleClick', payload)
|
|
2732
|
+
* console.log('VizPointDoubleClick', payload);
|
|
2196
2733
|
* })
|
|
2197
2734
|
* ```
|
|
2198
2735
|
*/
|
|
@@ -2205,7 +2742,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2205
2742
|
* @important
|
|
2206
2743
|
* @example
|
|
2207
2744
|
* ```js
|
|
2208
|
-
* embed.on(
|
|
2745
|
+
* embed.on(EmbedEvent.VizPointClick, ({data}) => {
|
|
2209
2746
|
* console.log(
|
|
2210
2747
|
* data.vizId, // viz id
|
|
2211
2748
|
* data.clickedPoint.selectedAttributes[0].value,
|
|
@@ -2220,18 +2757,18 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2220
2757
|
/**
|
|
2221
2758
|
* An error has occurred. This event is fired for the following error types:
|
|
2222
2759
|
*
|
|
2223
|
-
*
|
|
2760
|
+
* API - API call failure error.
|
|
2224
2761
|
*
|
|
2225
|
-
*
|
|
2762
|
+
* FULLSCREEN - Error when presenting a Liveboard or visualization in full screen
|
|
2226
2763
|
* mode.
|
|
2227
2764
|
*
|
|
2228
|
-
*
|
|
2765
|
+
* SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
|
|
2229
2766
|
*
|
|
2230
|
-
*
|
|
2767
|
+
* NON_EXIST_FILTER - Error due to a non-existent filter.
|
|
2231
2768
|
*
|
|
2232
|
-
*
|
|
2769
|
+
* INVALID_DATE_VALUE - Invalid date value error.
|
|
2233
2770
|
*
|
|
2234
|
-
*
|
|
2771
|
+
* INVALID_OPERATOR - Use of invalid operator during filter application.
|
|
2235
2772
|
*
|
|
2236
2773
|
* For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
|
|
2237
2774
|
*
|
|
@@ -2799,7 +3336,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2799
3336
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2800
3337
|
* @example
|
|
2801
3338
|
*```js
|
|
2802
|
-
* liveboardEmbed.trigger(
|
|
3339
|
+
* liveboardEmbed.trigger(EmbedEvent.Delete,
|
|
2803
3340
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2804
3341
|
*```
|
|
2805
3342
|
*/
|
|
@@ -2810,7 +3347,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2810
3347
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2811
3348
|
* @example
|
|
2812
3349
|
*```js
|
|
2813
|
-
* liveboardEmbed.trigger(
|
|
3350
|
+
* liveboardEmbed.trigger(EmbedEvent.SchedulesList)
|
|
2814
3351
|
*```
|
|
2815
3352
|
*/
|
|
2816
3353
|
SchedulesList = "schedule-list",
|
|
@@ -2820,7 +3357,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2820
3357
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2821
3358
|
* @example
|
|
2822
3359
|
*```js
|
|
2823
|
-
* liveboardEmbed.trigger(
|
|
3360
|
+
* liveboardEmbed.trigger(EmbedEvent.Cancel)
|
|
2824
3361
|
*```
|
|
2825
3362
|
*/
|
|
2826
3363
|
Cancel = "cancel",
|
|
@@ -2830,7 +3367,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2830
3367
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2831
3368
|
* @example
|
|
2832
3369
|
*```js
|
|
2833
|
-
* liveboardEmbed.trigger(
|
|
3370
|
+
* liveboardEmbed.trigger(EmbedEvent.Explore, {
|
|
2834
3371
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2835
3372
|
*```
|
|
2836
3373
|
*/
|
|
@@ -2841,7 +3378,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2841
3378
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2842
3379
|
* @example
|
|
2843
3380
|
*```js
|
|
2844
|
-
* liveboardEmbed.trigger(
|
|
3381
|
+
* liveboardEmbed.trigger(EmbedEvent.CopyLink, {
|
|
2845
3382
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2846
3383
|
*```
|
|
2847
3384
|
*/
|
|
@@ -3110,10 +3647,13 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3110
3647
|
* _String_. The name of the column to filter on.
|
|
3111
3648
|
* `operator`
|
|
3112
3649
|
* Runtime filter operator to apply. For information,
|
|
3113
|
-
* see
|
|
3650
|
+
* see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
|
|
3114
3651
|
* `values`
|
|
3115
3652
|
* List of operands. Some operators such as EQ, LE allow a single value, whereas
|
|
3116
3653
|
* operators such as BW and IN accept multiple operands.
|
|
3654
|
+
* **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
|
|
3655
|
+
* Search embedding (SearchEmbed) and Natural Language Search
|
|
3656
|
+
* embedding (SageEmbed).
|
|
3117
3657
|
*
|
|
3118
3658
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
3119
3659
|
* @example
|
|
@@ -3653,7 +4193,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3653
4193
|
*
|
|
3654
4194
|
* ```js
|
|
3655
4195
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
3656
|
-
* filter: { column: 'column name', oper: '
|
|
4196
|
+
* filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
|
|
3657
4197
|
* })
|
|
3658
4198
|
* ```
|
|
3659
4199
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3739,7 +4279,33 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3739
4279
|
* ```
|
|
3740
4280
|
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
3741
4281
|
*/
|
|
3742
|
-
AskSage = "AskSage"
|
|
4282
|
+
AskSage = "AskSage",
|
|
4283
|
+
/**
|
|
4284
|
+
* Trigger UpdateCrossFilter for Liveboard
|
|
4285
|
+
*
|
|
4286
|
+
* @example
|
|
4287
|
+
* ```js
|
|
4288
|
+
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
4289
|
+
* vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
|
|
4290
|
+
* conditions: [
|
|
4291
|
+
* { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
|
|
4292
|
+
* { columnName: 'color', values: ['mint','hot'] },
|
|
4293
|
+
* ],
|
|
4294
|
+
* });
|
|
4295
|
+
* ```
|
|
4296
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
|
|
4297
|
+
*/
|
|
4298
|
+
UpdateCrossFilter = "UpdateCrossFilter",
|
|
4299
|
+
/**
|
|
4300
|
+
* Trigger ResetLiveboardPersonalisedView for Liveboard
|
|
4301
|
+
*
|
|
4302
|
+
* @example
|
|
4303
|
+
* ```js
|
|
4304
|
+
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
4305
|
+
* ```
|
|
4306
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
4307
|
+
*/
|
|
4308
|
+
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView"
|
|
3743
4309
|
}
|
|
3744
4310
|
/**
|
|
3745
4311
|
* The different visual modes that the data sources panel within
|
|
@@ -4704,7 +5270,47 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4704
5270
|
* ```
|
|
4705
5271
|
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
4706
5272
|
*/
|
|
4707
|
-
AskAi = "AskAi"
|
|
5273
|
+
AskAi = "AskAi",
|
|
5274
|
+
/**
|
|
5275
|
+
* The **Add KPI to Watchlist** action on Home page watchlist.
|
|
5276
|
+
*
|
|
5277
|
+
* @example
|
|
5278
|
+
* ```js
|
|
5279
|
+
* disabledActions: [Action.AddToWatchlist]
|
|
5280
|
+
* ```
|
|
5281
|
+
* @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
|
|
5282
|
+
*/
|
|
5283
|
+
AddToWatchlist = "addToWatchlist",
|
|
5284
|
+
/**
|
|
5285
|
+
* The **Remove from watchlist** menu action on KPI watchlist.
|
|
5286
|
+
*
|
|
5287
|
+
* @example
|
|
5288
|
+
* ```js
|
|
5289
|
+
* disabledActions: [Action.RemoveFromWatchlist]
|
|
5290
|
+
* ```
|
|
5291
|
+
* @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
|
|
5292
|
+
*/
|
|
5293
|
+
RemoveFromWatchlist = "removeFromWatchlist",
|
|
5294
|
+
/**
|
|
5295
|
+
* The **Copy KPI Link** menu action on KPI watchlist.
|
|
5296
|
+
*
|
|
5297
|
+
* @example
|
|
5298
|
+
* ```js
|
|
5299
|
+
* disabledActions: [Action.CopyKpiLink]
|
|
5300
|
+
* ```
|
|
5301
|
+
* @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
|
|
5302
|
+
*/
|
|
5303
|
+
CopyKpiLink = "copyKpiLink",
|
|
5304
|
+
/**
|
|
5305
|
+
* Action ID for AI Highlights button
|
|
5306
|
+
*
|
|
5307
|
+
* @example
|
|
5308
|
+
* ```js
|
|
5309
|
+
* hiddenAction: [Action.AIHighlights]
|
|
5310
|
+
* ```
|
|
5311
|
+
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
5312
|
+
*/
|
|
5313
|
+
AIHighlights = "AIHighlights"
|
|
4708
5314
|
}
|
|
4709
5315
|
export interface AnswerServiceType {
|
|
4710
5316
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -4740,6 +5346,9 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4740
5346
|
selectedAttributes: ColumnValue[];
|
|
4741
5347
|
selectedMeasures: ColumnValue[];
|
|
4742
5348
|
}
|
|
5349
|
+
/**
|
|
5350
|
+
* @group Events
|
|
5351
|
+
*/
|
|
4743
5352
|
export interface CustomActionPayload {
|
|
4744
5353
|
contextMenuPoints?: {
|
|
4745
5354
|
clickedPoint: VizPoint;
|
|
@@ -5347,7 +5956,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/sage' {
|
|
|
5347
5956
|
*
|
|
5348
5957
|
* @returns {SageEmbed} Eureka/Sage embed
|
|
5349
5958
|
*/
|
|
5350
|
-
render(): SageEmbed
|
|
5959
|
+
render(): Promise<SageEmbed>;
|
|
5351
5960
|
}
|
|
5352
5961
|
}
|
|
5353
5962
|
|
|
@@ -5365,7 +5974,7 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
5365
5974
|
GetChartWithData = "GetChartWithData",
|
|
5366
5975
|
GetTableWithHeadlineData = "GetTableWithHeadlineData"
|
|
5367
5976
|
}
|
|
5368
|
-
interface UnderlyingDataPoint {
|
|
5977
|
+
export interface UnderlyingDataPoint {
|
|
5369
5978
|
columnId: string;
|
|
5370
5979
|
dataValue: any;
|
|
5371
5980
|
}
|
|
@@ -5388,24 +5997,67 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
5388
5997
|
* @group Events
|
|
5389
5998
|
*/
|
|
5390
5999
|
export class AnswerService {
|
|
6000
|
+
/**
|
|
6001
|
+
* Should not need to be called directly.
|
|
6002
|
+
*
|
|
6003
|
+
* @param session
|
|
6004
|
+
* @param answer
|
|
6005
|
+
* @param thoughtSpotHost
|
|
6006
|
+
* @param selectedPoints
|
|
6007
|
+
*/
|
|
5391
6008
|
constructor(session: SessionInterface, answer: any, thoughtSpotHost: string, selectedPoints?: VizPoint[]);
|
|
6009
|
+
/**
|
|
6010
|
+
* Get the details about the source used in the answer.
|
|
6011
|
+
* This can be used to get the list of all columns in the data source for example.
|
|
6012
|
+
*/
|
|
5392
6013
|
getSourceDetail(): Promise<any>;
|
|
6014
|
+
/**
|
|
6015
|
+
* Remove columnIds and return updated answer session.
|
|
6016
|
+
*
|
|
6017
|
+
* @param columnIds
|
|
6018
|
+
* @returns
|
|
6019
|
+
*/
|
|
5393
6020
|
removeColumns(columnIds: string[]): Promise<any>;
|
|
6021
|
+
/**
|
|
6022
|
+
* Add columnIds and return updated answer session.
|
|
6023
|
+
*
|
|
6024
|
+
* @param columnIds
|
|
6025
|
+
* @returns
|
|
6026
|
+
*/
|
|
5394
6027
|
addColumns(columnIds: string[]): Promise<any>;
|
|
6028
|
+
/**
|
|
6029
|
+
* Fetch data from the answer.
|
|
6030
|
+
*
|
|
6031
|
+
* @param offset
|
|
6032
|
+
* @param size
|
|
6033
|
+
* @returns
|
|
6034
|
+
*/
|
|
5395
6035
|
fetchData(offset?: number, size?: number): Promise<{
|
|
5396
6036
|
columns: any;
|
|
5397
6037
|
data: any;
|
|
5398
6038
|
}>;
|
|
5399
6039
|
/**
|
|
6040
|
+
* Fetch the data for the answer as a CSV blob. This might be
|
|
6041
|
+
* quicker for larger data.
|
|
5400
6042
|
*
|
|
5401
6043
|
* @param userLocale
|
|
5402
6044
|
* @param includeInfo Include the CSV header in the output
|
|
5403
6045
|
* @returns Response
|
|
5404
6046
|
*/
|
|
5405
6047
|
fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
|
|
6048
|
+
/**
|
|
6049
|
+
* Just get the internal URL for this answer's data
|
|
6050
|
+
* as a CSV blob.
|
|
6051
|
+
*
|
|
6052
|
+
* @param userLocale
|
|
6053
|
+
* @param includeInfo
|
|
6054
|
+
* @returns
|
|
6055
|
+
*/
|
|
5406
6056
|
getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
|
|
5407
6057
|
/**
|
|
5408
6058
|
* Get underlying data given a point and the output column names.
|
|
6059
|
+
* In case of a context menu action, the selectedPoints are
|
|
6060
|
+
* automatically passed.
|
|
5409
6061
|
*
|
|
5410
6062
|
* @param outputColumnNames
|
|
5411
6063
|
* @param selectedPoints
|
|
@@ -5421,10 +6073,21 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
5421
6073
|
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
5422
6074
|
*/
|
|
5423
6075
|
getUnderlyingDataForPoint(outputColumnNames: string[], selectedPoints?: UnderlyingDataPoint[]): Promise<AnswerService>;
|
|
6076
|
+
/**
|
|
6077
|
+
* Execute a custom graphql query in the context of the answer.
|
|
6078
|
+
*
|
|
6079
|
+
* @param query graphql query
|
|
6080
|
+
* @param variables graphql variables
|
|
6081
|
+
* @returns
|
|
6082
|
+
*/
|
|
5424
6083
|
executeQuery(query: string, variables: any): Promise<any>;
|
|
6084
|
+
/**
|
|
6085
|
+
* Get the internal session details for the answer.
|
|
6086
|
+
*
|
|
6087
|
+
* @returns
|
|
6088
|
+
*/
|
|
5425
6089
|
getSession(): SessionInterface;
|
|
5426
6090
|
}
|
|
5427
|
-
export {};
|
|
5428
6091
|
}
|
|
5429
6092
|
|
|
5430
6093
|
declare module '@thoughtspot/visual-embed-sdk/embed/embedConfig' {
|
|
@@ -5448,6 +6111,52 @@ declare module '@thoughtspot/visual-embed-sdk/embed/embedConfig' {
|
|
|
5448
6111
|
export const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
|
|
5449
6112
|
}
|
|
5450
6113
|
|
|
6114
|
+
declare module '@thoughtspot/visual-embed-sdk/mixpanel-service' {
|
|
6115
|
+
export const EndPoints: {
|
|
6116
|
+
CONFIG: string;
|
|
6117
|
+
};
|
|
6118
|
+
export const MIXPANEL_EVENT: {
|
|
6119
|
+
VISUAL_SDK_RENDER_START: string;
|
|
6120
|
+
VISUAL_SDK_CALLED_INIT: string;
|
|
6121
|
+
VISUAL_SDK_RENDER_COMPLETE: string;
|
|
6122
|
+
VISUAL_SDK_RENDER_FAILED: string;
|
|
6123
|
+
VISUAL_SDK_TRIGGER: string;
|
|
6124
|
+
VISUAL_SDK_ON: string;
|
|
6125
|
+
VISUAL_SDK_IFRAME_LOAD_PERFORMANCE: string;
|
|
6126
|
+
VISUAL_SDK_EMBED_CREATE: string;
|
|
6127
|
+
VERCEL_INTEGRATION_COMPLETED: string;
|
|
6128
|
+
};
|
|
6129
|
+
/**
|
|
6130
|
+
* Pushes the event with its Property key-value map to mixpanel.
|
|
6131
|
+
*
|
|
6132
|
+
* @param eventId
|
|
6133
|
+
* @param eventProps
|
|
6134
|
+
*/
|
|
6135
|
+
export function uploadMixpanelEvent(eventId: string, eventProps?: {}): void;
|
|
6136
|
+
/**
|
|
6137
|
+
*
|
|
6138
|
+
* @param sessionInfo
|
|
6139
|
+
*/
|
|
6140
|
+
export function initMixpanel(sessionInfo: any): void;
|
|
6141
|
+
/**
|
|
6142
|
+
*
|
|
6143
|
+
*/
|
|
6144
|
+
export function testResetMixpanel(): void;
|
|
6145
|
+
}
|
|
6146
|
+
|
|
6147
|
+
declare module '@thoughtspot/visual-embed-sdk/tokenizedFetch' {
|
|
6148
|
+
/**
|
|
6149
|
+
* Fetch wrapper that adds the authentication token to the request.
|
|
6150
|
+
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6151
|
+
*
|
|
6152
|
+
* @param input
|
|
6153
|
+
* @param init
|
|
6154
|
+
* @version SDK: 1.28.0
|
|
6155
|
+
* @group Global methods
|
|
6156
|
+
*/
|
|
6157
|
+
export const tokenizedFetch: typeof fetch;
|
|
6158
|
+
}
|
|
6159
|
+
|
|
5451
6160
|
declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
5452
6161
|
/**
|
|
5453
6162
|
* Copyright (c) 2022
|
|
@@ -5643,7 +6352,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
5643
6352
|
*
|
|
5644
6353
|
* @param args
|
|
5645
6354
|
*/
|
|
5646
|
-
render(): TsEmbed
|
|
6355
|
+
render(): Promise<TsEmbed>;
|
|
5647
6356
|
getIframeSrc(): string;
|
|
5648
6357
|
protected handleRenderForPrerender(): void;
|
|
5649
6358
|
/**
|