@thoughtspot/visual-embed-sdk 1.28.0-alpha.2 → 1.28.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +16 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +5 -1
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.d.ts.map +1 -1
- package/cjs/src/auth.spec.js +9 -0
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/authToken.d.ts +6 -0
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +6 -0
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/embed/app.d.ts +156 -6
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +3 -3
- 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 +2 -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 +121 -6
- 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 +6 -6
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +18 -3
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +11 -11
- package/cjs/src/embed/sage.spec.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 +90 -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 +47 -17
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +3 -1
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +5 -1
- package/cjs/src/index.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 +299 -43
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +110 -19
- 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 +9 -3
- 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/dist/src/auth.d.ts +16 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/auth.spec.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +6 -0
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +156 -6
- 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 +121 -6
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +6 -6
- 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 +90 -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 +3 -1
- package/dist/src/index.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 +299 -43
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +180 -47
- package/dist/tsembed-react.js +180 -47
- package/dist/tsembed.es.js +182 -51
- package/dist/tsembed.js +183 -50
- package/dist/visual-embed-sdk-react-full.d.ts +746 -70
- package/dist/visual-embed-sdk-react.d.ts +746 -70
- package/dist/visual-embed-sdk.d.ts +746 -70
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +16 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +5 -1
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.d.ts.map +1 -1
- package/lib/src/auth.spec.js +9 -0
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/authToken.d.ts +6 -0
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +6 -0
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/embed/app.d.ts +156 -6
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +3 -3
- 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 +2 -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 +121 -6
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +2 -2
- 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 +6 -6
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +18 -3
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/sage.spec.js +11 -11
- package/lib/src/embed/sage.spec.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 +90 -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 +41 -11
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +3 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +3 -1
- package/lib/src/index.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 +299 -43
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +110 -19
- 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 +9 -3
- 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/visual-embed-sdk.d.ts +754 -71
- package/package.json +1 -1
- package/src/auth.spec.ts +10 -0
- package/src/auth.ts +21 -2
- package/src/authToken.ts +6 -0
- package/src/embed/app.spec.ts +24 -1
- package/src/embed/app.ts +164 -11
- package/src/embed/base.ts +3 -5
- package/src/embed/embed.spec.ts +0 -18
- package/src/embed/liveboard.spec.ts +24 -1
- package/src/embed/liveboard.ts +128 -9
- package/src/embed/pinboard.spec.ts +24 -1
- package/src/embed/sage.spec.ts +11 -11
- package/src/embed/sage.ts +19 -6
- package/src/embed/search-bar.tsx +38 -7
- package/src/embed/search.spec.ts +29 -1
- package/src/embed/search.ts +98 -5
- package/src/embed/ts-embed-trigger.spec.ts +39 -0
- package/src/embed/ts-embed.spec.ts +49 -16
- package/src/embed/ts-embed.ts +21 -16
- package/src/index.ts +4 -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 +310 -50
- package/src/utils/authService/authService.spec.ts +27 -0
- package/src/utils/authService/authService.ts +14 -13
|
@@ -13,7 +13,7 @@ import EventEmitter from 'eventemitter3';
|
|
|
13
13
|
* @summary ThoughtSpot Visual Embed SDK
|
|
14
14
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
15
15
|
*/
|
|
16
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, 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, };
|
|
16
|
+
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, };
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Copyright (c) 2022
|
|
@@ -68,6 +68,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
68
68
|
* If true, the top navigation bar within the ThoughtSpot app
|
|
69
69
|
* is displayed. By default, the navigation bar is hidden.
|
|
70
70
|
* This flag also controls the homepage left navigation bar.
|
|
71
|
+
*
|
|
72
|
+
* @default true
|
|
73
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```js
|
|
77
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
78
|
+
* ... // other options
|
|
79
|
+
* showPrimaryNavbar:true,
|
|
80
|
+
* })
|
|
81
|
+
* ```
|
|
71
82
|
*/
|
|
72
83
|
showPrimaryNavbar?: boolean;
|
|
73
84
|
/**
|
|
@@ -76,23 +87,76 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
76
87
|
* nav-bars are visible, this flag will only hide the homepage left nav-bar.
|
|
77
88
|
* The showPrimaryNavbar flag takes precedence over the hideHomepageLeftNav.
|
|
78
89
|
*
|
|
90
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
91
|
+
* To access the updated modular homepage, set
|
|
92
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
93
|
+
*
|
|
79
94
|
* @default false
|
|
80
|
-
* @version SDK: 1.27.
|
|
95
|
+
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```js
|
|
99
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
100
|
+
* ... // other options
|
|
101
|
+
* hideHomepageLeftNav : true,
|
|
102
|
+
* })
|
|
103
|
+
* ```
|
|
81
104
|
*/
|
|
82
105
|
hideHomepageLeftNav?: boolean;
|
|
83
106
|
/**
|
|
84
107
|
* Control the visibility of the help (?) and profile buttons on the
|
|
85
108
|
* Global nav-bar. By default, these buttons are visible on the nav-bar.
|
|
109
|
+
* @default false
|
|
110
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```js
|
|
114
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
115
|
+
* ... // other options
|
|
116
|
+
* disableProfileAndHelp: true,
|
|
117
|
+
* })
|
|
118
|
+
* ```
|
|
86
119
|
*/
|
|
87
120
|
disableProfileAndHelp?: boolean;
|
|
88
121
|
/**
|
|
89
122
|
* Control the visibility of the application switcher button on the nav-bar.
|
|
90
123
|
* By default, the application switcher is shown.
|
|
124
|
+
*
|
|
125
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
126
|
+
* To access the updated modular homepage, set
|
|
127
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
128
|
+
*
|
|
129
|
+
* @default false
|
|
130
|
+
* @version SDK: 1.2.0 | Thoughtspot: 8.4.0.cl
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```js
|
|
134
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
135
|
+
* ... // other options
|
|
136
|
+
* hideApplicationSwitcher : true,
|
|
137
|
+
* })
|
|
138
|
+
* ```
|
|
91
139
|
*/
|
|
92
140
|
hideApplicationSwitcher?: boolean;
|
|
93
141
|
/**
|
|
94
142
|
* Control the visibility of the Org switcher button on the nav-bar.
|
|
95
143
|
* By default, the Org switcher button is shown.
|
|
144
|
+
*
|
|
145
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
146
|
+
* To access the updated modular homepage, set
|
|
147
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
148
|
+
*
|
|
149
|
+
*
|
|
150
|
+
* @default true
|
|
151
|
+
* @version SDK: 1.2.0 | Thoughtspot: 9.4.0.cl
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```js
|
|
155
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
156
|
+
* ... // other options
|
|
157
|
+
* hideOrgSwitcher : true,
|
|
158
|
+
* })
|
|
159
|
+
* ```
|
|
96
160
|
*/
|
|
97
161
|
hideOrgSwitcher?: boolean;
|
|
98
162
|
/**
|
|
@@ -104,9 +168,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
104
168
|
* For eg, if you want the component to open to a specific Liveboard
|
|
105
169
|
* you could set the path to `pinboard/<liveboardId>/tab/<tabId>`.
|
|
106
170
|
*
|
|
171
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
172
|
+
*
|
|
107
173
|
* @example
|
|
108
|
-
* ```
|
|
109
|
-
*
|
|
174
|
+
* ```js
|
|
175
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
176
|
+
* ... // other options
|
|
177
|
+
* path:"pinboard/1234/tab/7464"
|
|
178
|
+
* })
|
|
110
179
|
* ```
|
|
111
180
|
*/
|
|
112
181
|
path?: string;
|
|
@@ -116,16 +185,48 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
116
185
|
*
|
|
117
186
|
* Use this to open to particular page in the app. To open to a specific
|
|
118
187
|
* path within the app, use the `path` attribute which is more flexible.
|
|
188
|
+
*
|
|
189
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* ```js
|
|
193
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
194
|
+
* ... // other options
|
|
195
|
+
* pageId : Page.Answers | Page.Data
|
|
196
|
+
* })
|
|
197
|
+
* ```
|
|
119
198
|
*/
|
|
120
199
|
pageId?: Page;
|
|
121
200
|
/**
|
|
122
201
|
* This puts a filter tag on the application. All metadata lists in the
|
|
123
202
|
* application, such as Liveboards and answers, would be filtered by this
|
|
124
203
|
* tag.
|
|
204
|
+
*
|
|
205
|
+
* @version SDK: 1.1.0 | Thoughtspot: 9.4.0.cl
|
|
206
|
+
* @example
|
|
207
|
+
* ```js
|
|
208
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
209
|
+
* ... // other options
|
|
210
|
+
* tag:'value',
|
|
211
|
+
* })
|
|
212
|
+
* ```
|
|
125
213
|
*/
|
|
126
214
|
tag?: string;
|
|
127
215
|
/**
|
|
128
216
|
* The array of GUIDs to be hidden
|
|
217
|
+
*
|
|
218
|
+
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* ```js
|
|
222
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
223
|
+
* ... // other options
|
|
224
|
+
* hideObjects: [
|
|
225
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
226
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
227
|
+
* ]
|
|
228
|
+
* })
|
|
229
|
+
* ```
|
|
129
230
|
*/
|
|
130
231
|
hideObjects?: string[];
|
|
131
232
|
/**
|
|
@@ -138,8 +239,17 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
138
239
|
liveboardV2?: boolean;
|
|
139
240
|
/**
|
|
140
241
|
* If set to true, the Search Assist feature is enabled.
|
|
242
|
+
* @default true
|
|
141
243
|
*
|
|
142
244
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```js
|
|
248
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
249
|
+
* ... // other options
|
|
250
|
+
* enableSearchAssist: true,
|
|
251
|
+
* })
|
|
252
|
+
* ```
|
|
143
253
|
*/
|
|
144
254
|
enableSearchAssist?: boolean;
|
|
145
255
|
/**
|
|
@@ -147,6 +257,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
147
257
|
* according to the height of the pages which support fullHeight mode.
|
|
148
258
|
*
|
|
149
259
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.4.0.cl, 9.4.0-sw
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```js
|
|
263
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
264
|
+
* ... // other options
|
|
265
|
+
* fullHeight: true,
|
|
266
|
+
* })
|
|
267
|
+
* ```
|
|
150
268
|
*/
|
|
151
269
|
fullHeight?: boolean;
|
|
152
270
|
/**
|
|
@@ -162,6 +280,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
162
280
|
*
|
|
163
281
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
164
282
|
* @default false
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* ```js
|
|
286
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
287
|
+
* ... // other options
|
|
288
|
+
* hideLiveboardHeader : true,
|
|
289
|
+
* })
|
|
290
|
+
* ```
|
|
165
291
|
*/
|
|
166
292
|
hideLiveboardHeader?: boolean;
|
|
167
293
|
/**
|
|
@@ -169,6 +295,14 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
169
295
|
*
|
|
170
296
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
171
297
|
* @default false
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* ```js
|
|
301
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
302
|
+
* ... // other options
|
|
303
|
+
* showLiveboardTitle:true,
|
|
304
|
+
* })
|
|
305
|
+
* ```
|
|
172
306
|
*/
|
|
173
307
|
showLiveboardTitle?: boolean;
|
|
174
308
|
/**
|
|
@@ -176,13 +310,29 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
176
310
|
*
|
|
177
311
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
178
312
|
* @default false
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* ```js
|
|
316
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
317
|
+
* ... // other options
|
|
318
|
+
* showLiveboardDescription:true,
|
|
319
|
+
* })
|
|
320
|
+
* ```
|
|
179
321
|
*/
|
|
180
322
|
showLiveboardDescription?: boolean;
|
|
181
323
|
/**
|
|
182
|
-
* Flag to control new Modular Home experience
|
|
324
|
+
* Flag to control new Modular Home experience.
|
|
183
325
|
*
|
|
184
326
|
* @default false
|
|
185
|
-
* @version SDK: 1.27.
|
|
327
|
+
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
328
|
+
*
|
|
329
|
+
* @example
|
|
330
|
+
* ```js
|
|
331
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
332
|
+
* ... // other options
|
|
333
|
+
* modularHomeExperience : true,
|
|
334
|
+
* })
|
|
335
|
+
* ```
|
|
186
336
|
*/
|
|
187
337
|
modularHomeExperience?: boolean;
|
|
188
338
|
/**
|
|
@@ -251,7 +401,7 @@ export class AppEmbed extends V1Embed {
|
|
|
251
401
|
* @param renderOptions An object containing the page ID
|
|
252
402
|
* to be embedded.
|
|
253
403
|
*/
|
|
254
|
-
render(): AppEmbed
|
|
404
|
+
render(): Promise<AppEmbed>;
|
|
255
405
|
}
|
|
256
406
|
|
|
257
407
|
export interface executeTMLInput {
|
|
@@ -411,8 +561,22 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
411
561
|
/**
|
|
412
562
|
* If set to true, the embedded object container dynamically resizes
|
|
413
563
|
* according to the height of the Liveboard.
|
|
564
|
+
* **Note**: Using fullHeight loads all visualizations on the
|
|
565
|
+
* Liveboard simultaneously, which results in multiple warehouse
|
|
566
|
+
* queries and potentially a longer wait for the topmost
|
|
567
|
+
* visualizations to display on the screen.
|
|
568
|
+
* Setting `fullHeight` to `false` fetches visualizations
|
|
569
|
+
* incrementally as users scroll the page to view the charts and tables.
|
|
414
570
|
*
|
|
415
571
|
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
572
|
+
*
|
|
573
|
+
* @example
|
|
574
|
+
* ```js
|
|
575
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
576
|
+
* ... // other liveboard view config
|
|
577
|
+
* fullHeight: true,
|
|
578
|
+
* });
|
|
579
|
+
* ```
|
|
416
580
|
*/
|
|
417
581
|
fullHeight?: boolean;
|
|
418
582
|
/**
|
|
@@ -422,10 +586,28 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
422
586
|
*
|
|
423
587
|
* @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
|
|
424
588
|
* @default 500
|
|
589
|
+
* @example
|
|
590
|
+
* ```js
|
|
591
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
592
|
+
* ... // other liveboard view config
|
|
593
|
+
* fullHeight: true,
|
|
594
|
+
* defaultHeight: 600,
|
|
595
|
+
* });
|
|
596
|
+
* ```
|
|
425
597
|
*/
|
|
426
598
|
defaultHeight?: number;
|
|
427
599
|
/**
|
|
428
600
|
* @Deprecated If set to true, the context menu in visualizations will be enabled.
|
|
601
|
+
*
|
|
602
|
+
* @example
|
|
603
|
+
* ```js
|
|
604
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
605
|
+
* ... // other options
|
|
606
|
+
* enableVizTransformations:true,
|
|
607
|
+
* })
|
|
608
|
+
* ```
|
|
609
|
+
*
|
|
610
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
429
611
|
*/
|
|
430
612
|
enableVizTransformations?: boolean;
|
|
431
613
|
/**
|
|
@@ -433,6 +615,12 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
433
615
|
* Use either liveboardId or pinboardId to reference the Liveboard to embed.
|
|
434
616
|
*
|
|
435
617
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1
|
|
618
|
+
* @example
|
|
619
|
+
* ```js
|
|
620
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
621
|
+
* ... // other options
|
|
622
|
+
* liveboardId:id of liveboard,
|
|
623
|
+
* })
|
|
436
624
|
*/
|
|
437
625
|
liveboardId?: string;
|
|
438
626
|
/**
|
|
@@ -443,6 +631,16 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
443
631
|
pinboardId?: string;
|
|
444
632
|
/**
|
|
445
633
|
* The visualization within the Liveboard to display.
|
|
634
|
+
*
|
|
635
|
+
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
636
|
+
*
|
|
637
|
+
* @example
|
|
638
|
+
* ```js
|
|
639
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
640
|
+
* ... // other options
|
|
641
|
+
* vizId:'430496d6-6903-4601-937e-2c691821af3c',
|
|
642
|
+
* })
|
|
643
|
+
* ```
|
|
446
644
|
*/
|
|
447
645
|
vizId?: string;
|
|
448
646
|
/**
|
|
@@ -450,6 +648,13 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
450
648
|
* Liveboard page will be read-only (no X buttons)
|
|
451
649
|
*
|
|
452
650
|
* @version SDK: 1.3.0 | ThoughtSpot ts7.aug.cl, 7.2.1.sw
|
|
651
|
+
* @example
|
|
652
|
+
* ```js
|
|
653
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
654
|
+
* ... // other options
|
|
655
|
+
* preventLiveboardFilterRemoval:true,
|
|
656
|
+
* })
|
|
657
|
+
* ```
|
|
453
658
|
*/
|
|
454
659
|
preventLiveboardFilterRemoval?: boolean;
|
|
455
660
|
/**
|
|
@@ -458,6 +663,16 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
458
663
|
* event.
|
|
459
664
|
*
|
|
460
665
|
* @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
|
|
666
|
+
*
|
|
667
|
+
* @example
|
|
668
|
+
* ```js
|
|
669
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
670
|
+
* ... // other options
|
|
671
|
+
* visibleVizs: [
|
|
672
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
673
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
674
|
+
* ]
|
|
675
|
+
* })
|
|
461
676
|
*/
|
|
462
677
|
visibleVizs?: string[];
|
|
463
678
|
/**
|
|
@@ -471,12 +686,26 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
471
686
|
* new Liveboard experience mode.
|
|
472
687
|
*
|
|
473
688
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.6.0.cl, 8.8.1-sw
|
|
689
|
+
* @example
|
|
690
|
+
* ```js
|
|
691
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
692
|
+
* ... // other options
|
|
693
|
+
* liveboardV2:true,
|
|
694
|
+
* })
|
|
695
|
+
* ```
|
|
474
696
|
*/
|
|
475
697
|
liveboardV2?: boolean;
|
|
476
698
|
/**
|
|
477
699
|
* Set a Liveboard tab as an active tab.
|
|
478
700
|
* Specify the tab ID.
|
|
479
701
|
*
|
|
702
|
+
* @example
|
|
703
|
+
* ```js
|
|
704
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
705
|
+
* ... // other options
|
|
706
|
+
* activeTabId:'id-1234',
|
|
707
|
+
* })
|
|
708
|
+
* ```
|
|
480
709
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
|
|
481
710
|
*/
|
|
482
711
|
activeTabId?: string;
|
|
@@ -484,6 +713,14 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
484
713
|
* Show or hide the tab panel of the embedded Liveboard.
|
|
485
714
|
*
|
|
486
715
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl, 9.8.0.sw
|
|
716
|
+
*
|
|
717
|
+
* @example
|
|
718
|
+
* ```js
|
|
719
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
720
|
+
* ... // other options
|
|
721
|
+
* hideTabPanel:true,
|
|
722
|
+
* })
|
|
723
|
+
* ```
|
|
487
724
|
*/
|
|
488
725
|
hideTabPanel?: boolean;
|
|
489
726
|
/**
|
|
@@ -491,20 +728,41 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
491
728
|
*
|
|
492
729
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
493
730
|
* @default false
|
|
731
|
+
* @example
|
|
732
|
+
* ```js
|
|
733
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
734
|
+
* ... // other liveboard view config
|
|
735
|
+
* hideLiveboardHeader:true,
|
|
736
|
+
* });
|
|
737
|
+
* ```
|
|
494
738
|
*/
|
|
495
739
|
hideLiveboardHeader?: boolean;
|
|
496
740
|
/**
|
|
497
741
|
* Show or hide the Liveboard title.
|
|
498
|
-
*
|
|
499
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
500
742
|
* @default false
|
|
743
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
744
|
+
*
|
|
745
|
+
* @example
|
|
746
|
+
* ```js
|
|
747
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
748
|
+
* ... // other options
|
|
749
|
+
* showLiveboardTitle:true,
|
|
750
|
+
* })
|
|
751
|
+
* ```
|
|
501
752
|
*/
|
|
502
753
|
showLiveboardTitle?: boolean;
|
|
503
754
|
/**
|
|
504
755
|
* Show or hide the Liveboard description.
|
|
505
|
-
*
|
|
506
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
507
756
|
* @default false
|
|
757
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl, 9.8.0.sw
|
|
758
|
+
*
|
|
759
|
+
* @example
|
|
760
|
+
* ```js
|
|
761
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
762
|
+
* ... // other options
|
|
763
|
+
* showLiveboardDescription:true,
|
|
764
|
+
* })
|
|
765
|
+
* ```
|
|
508
766
|
*/
|
|
509
767
|
showLiveboardDescription?: boolean;
|
|
510
768
|
/**
|
|
@@ -525,8 +783,15 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
525
783
|
/**
|
|
526
784
|
* enable or disable ask sage
|
|
527
785
|
*
|
|
528
|
-
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
529
786
|
* @default false
|
|
787
|
+
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
788
|
+
* @example
|
|
789
|
+
* ```js
|
|
790
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
791
|
+
* ... // other options
|
|
792
|
+
* enableAskSage:true,
|
|
793
|
+
* })
|
|
794
|
+
* ```
|
|
530
795
|
*/
|
|
531
796
|
enableAskSage?: boolean;
|
|
532
797
|
}
|
|
@@ -569,7 +834,7 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
569
834
|
* @param renderOptions An object specifying the Liveboard ID,
|
|
570
835
|
* visualization ID and the runtime filters.
|
|
571
836
|
*/
|
|
572
|
-
render(): LiveboardEmbed
|
|
837
|
+
render(): Promise<LiveboardEmbed>;
|
|
573
838
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
574
839
|
}
|
|
575
840
|
/**
|
|
@@ -612,27 +877,74 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
612
877
|
/**
|
|
613
878
|
* If set to true, the data sources panel is collapsed on load,
|
|
614
879
|
* but can be expanded manually.
|
|
880
|
+
*
|
|
881
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
882
|
+
*
|
|
883
|
+
* @example
|
|
884
|
+
* ```js
|
|
885
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
886
|
+
* ... // other options
|
|
887
|
+
* collapseDataSources:true,
|
|
888
|
+
* })
|
|
889
|
+
* ```
|
|
615
890
|
*/
|
|
616
891
|
collapseDataSources?: boolean;
|
|
617
892
|
/**
|
|
618
893
|
* Show or hide the data sources panel.
|
|
894
|
+
*
|
|
895
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
896
|
+
*
|
|
897
|
+
* @example
|
|
898
|
+
* ```js
|
|
899
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
900
|
+
* ... // other options
|
|
901
|
+
* hideDataSources:true,
|
|
902
|
+
* })
|
|
903
|
+
* ```
|
|
619
904
|
*/
|
|
620
905
|
hideDataSources?: boolean;
|
|
621
906
|
/**
|
|
622
907
|
* Show or hide the charts and tables in search answers.
|
|
623
908
|
* This attribute can be used to create a custom visualization
|
|
624
909
|
* using raw answer data.
|
|
910
|
+
*
|
|
911
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
912
|
+
*
|
|
913
|
+
* @example
|
|
914
|
+
* ```js
|
|
915
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
916
|
+
* ... // other options
|
|
917
|
+
* hideResults:true,
|
|
918
|
+
* })
|
|
919
|
+
* ```
|
|
625
920
|
*/
|
|
626
921
|
hideResults?: boolean;
|
|
627
922
|
/**
|
|
628
923
|
* If set to true, the Search Assist feature is enabled.
|
|
629
924
|
*
|
|
630
925
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
|
|
926
|
+
*
|
|
927
|
+
* @example
|
|
928
|
+
* ```js
|
|
929
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
930
|
+
* ... // other options
|
|
931
|
+
* enableSearchAssist:true,
|
|
932
|
+
* })
|
|
933
|
+
* ```
|
|
631
934
|
*/
|
|
632
935
|
enableSearchAssist?: boolean;
|
|
633
936
|
/**
|
|
634
937
|
* If set to true, the tabular view is set as the default
|
|
635
938
|
* format for presenting search data.
|
|
939
|
+
*
|
|
940
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
941
|
+
*
|
|
942
|
+
* @example
|
|
943
|
+
* ```js
|
|
944
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
945
|
+
* ... // other options
|
|
946
|
+
* forceTable:true,
|
|
947
|
+
* })
|
|
636
948
|
*/
|
|
637
949
|
forceTable?: boolean;
|
|
638
950
|
/**
|
|
@@ -640,12 +952,28 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
640
952
|
* Only a single data source is supported currently.
|
|
641
953
|
*
|
|
642
954
|
* @deprecated Use `dataSource` instead.
|
|
955
|
+
*
|
|
956
|
+
* @example
|
|
957
|
+
* ```js
|
|
958
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
959
|
+
* ... // other options
|
|
960
|
+
* dataSources:['id-234','id-456'],
|
|
961
|
+
* })
|
|
962
|
+
* ```
|
|
643
963
|
*/
|
|
644
964
|
dataSources?: string[];
|
|
645
965
|
/**
|
|
646
966
|
* The array of data source GUIDs to set on load.
|
|
647
967
|
*
|
|
648
968
|
* @version: SDK: 1.19.0
|
|
969
|
+
*
|
|
970
|
+
* @example
|
|
971
|
+
* ```js
|
|
972
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
973
|
+
* ... // other options
|
|
974
|
+
* dataSource:'id-234',
|
|
975
|
+
* })
|
|
976
|
+
* ```
|
|
649
977
|
*/
|
|
650
978
|
dataSource?: string;
|
|
651
979
|
/**
|
|
@@ -678,6 +1006,16 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
678
1006
|
searchOptions?: SearchOptions;
|
|
679
1007
|
/**
|
|
680
1008
|
* The GUID of a saved answer to load initially.
|
|
1009
|
+
*
|
|
1010
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.0.sw
|
|
1011
|
+
*
|
|
1012
|
+
* @example
|
|
1013
|
+
* ```js
|
|
1014
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1015
|
+
* ... // other options
|
|
1016
|
+
* answerId:'sed-1234',
|
|
1017
|
+
* })
|
|
1018
|
+
* ```
|
|
681
1019
|
*/
|
|
682
1020
|
answerId?: string;
|
|
683
1021
|
/**
|
|
@@ -685,6 +1023,14 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
685
1023
|
* The chart/table should still be visible.
|
|
686
1024
|
*
|
|
687
1025
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.5.0.sw
|
|
1026
|
+
*
|
|
1027
|
+
* @example
|
|
1028
|
+
* ```js
|
|
1029
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1030
|
+
* ... // other options
|
|
1031
|
+
* hideSearchBar:true,
|
|
1032
|
+
* })
|
|
1033
|
+
* ```
|
|
688
1034
|
*/
|
|
689
1035
|
hideSearchBar?: boolean;
|
|
690
1036
|
/**
|
|
@@ -692,6 +1038,14 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
692
1038
|
*
|
|
693
1039
|
* @default false
|
|
694
1040
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1041
|
+
*
|
|
1042
|
+
* @example
|
|
1043
|
+
* ```js
|
|
1044
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1045
|
+
* ... // other options
|
|
1046
|
+
* dataPanelV2:false,
|
|
1047
|
+
* })
|
|
1048
|
+
* ```
|
|
695
1049
|
*/
|
|
696
1050
|
dataPanelV2?: boolean;
|
|
697
1051
|
/**
|
|
@@ -725,7 +1079,7 @@ export class SearchEmbed extends TsEmbed {
|
|
|
725
1079
|
/**
|
|
726
1080
|
* Render the embedded ThoughtSpot search
|
|
727
1081
|
*/
|
|
728
|
-
render(): SearchEmbed
|
|
1082
|
+
render(): Promise<SearchEmbed>;
|
|
729
1083
|
}
|
|
730
1084
|
|
|
731
1085
|
/**
|
|
@@ -737,18 +1091,44 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
737
1091
|
* Only a single data source is supported currently.
|
|
738
1092
|
*
|
|
739
1093
|
* @deprecated Use `dataSource` instead
|
|
1094
|
+
*
|
|
1095
|
+
* @version: SDK: 1.1.0 | ThoughtSpot: 8.1.1-sw
|
|
1096
|
+
*
|
|
1097
|
+
* @example
|
|
1098
|
+
* ```js
|
|
1099
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1100
|
+
* ... // other options
|
|
1101
|
+
* dataSources:['id-2345','id-2345'],
|
|
1102
|
+
* })
|
|
1103
|
+
* ```
|
|
740
1104
|
*/
|
|
741
1105
|
dataSources?: string[];
|
|
742
1106
|
/**
|
|
743
|
-
*
|
|
1107
|
+
* Pass the ID of the source to be selected.
|
|
744
1108
|
*
|
|
745
1109
|
* @version: SDK: 1.19.0, ThoughtSpot 9.0.0.cl, 9.0.1.sw
|
|
1110
|
+
*
|
|
1111
|
+
* @example
|
|
1112
|
+
* ```js
|
|
1113
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1114
|
+
* ... // other options
|
|
1115
|
+
* dataSource:'id-2345',
|
|
1116
|
+
* })
|
|
1117
|
+
* ```
|
|
746
1118
|
*/
|
|
747
1119
|
dataSource?: string;
|
|
748
1120
|
/**
|
|
749
1121
|
* Boolean to define if the last selected data source should be used
|
|
750
1122
|
*
|
|
751
1123
|
* @version: SDK: 1.24.0, ThoughtSpot 9.5.0.cl, 9.5.0.sw
|
|
1124
|
+
*
|
|
1125
|
+
* @example
|
|
1126
|
+
* ```js
|
|
1127
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1128
|
+
* ... // other options
|
|
1129
|
+
* useLastSelectedSources:false,
|
|
1130
|
+
* })
|
|
1131
|
+
* ```
|
|
752
1132
|
*/
|
|
753
1133
|
useLastSelectedSources?: boolean;
|
|
754
1134
|
/**
|
|
@@ -762,12 +1142,17 @@ export interface SearchBarViewConfig extends Omit<ViewConfig, 'runtimeFilters' |
|
|
|
762
1142
|
* If it’s not executed, the focus is placed at the end of
|
|
763
1143
|
* the token string in the search bar.
|
|
764
1144
|
*
|
|
1145
|
+
* @version: SDK: 1.2.0 | ThoughtSpot: 9.4.0.sw
|
|
1146
|
+
*
|
|
765
1147
|
* @example
|
|
766
1148
|
* ```js
|
|
767
|
-
*
|
|
768
|
-
*
|
|
769
|
-
*
|
|
770
|
-
*
|
|
1149
|
+
* const embed = new SearchBarEmbed('#tsEmbed', {
|
|
1150
|
+
* ... // other options
|
|
1151
|
+
* searchOptions: {
|
|
1152
|
+
* searchTokenString: '[quantity purchased] [region]',
|
|
1153
|
+
* executeSearch: true,
|
|
1154
|
+
* }
|
|
1155
|
+
* })
|
|
771
1156
|
* ```
|
|
772
1157
|
*/
|
|
773
1158
|
searchOptions?: SearchOptions;
|
|
@@ -788,7 +1173,7 @@ export class SearchBarEmbed extends TsEmbed {
|
|
|
788
1173
|
/**
|
|
789
1174
|
* Render the embedded ThoughtSpot search
|
|
790
1175
|
*/
|
|
791
|
-
render(): SearchBarEmbed
|
|
1176
|
+
render(): Promise<SearchBarEmbed>;
|
|
792
1177
|
}
|
|
793
1178
|
|
|
794
1179
|
export let loggedInStatus: boolean;
|
|
@@ -873,7 +1258,22 @@ export interface AuthEventEmitter {
|
|
|
873
1258
|
*
|
|
874
1259
|
* @param {@link AuthEvent}
|
|
875
1260
|
*/
|
|
876
|
-
emit(event: AuthEvent):
|
|
1261
|
+
emit(event: AuthEvent, ...args: any[]): boolean;
|
|
1262
|
+
/**
|
|
1263
|
+
* Remove listener from the emitter returned from init.
|
|
1264
|
+
*
|
|
1265
|
+
* @param event
|
|
1266
|
+
* @param listener
|
|
1267
|
+
* @param context
|
|
1268
|
+
* @param once
|
|
1269
|
+
*/
|
|
1270
|
+
off(event: AuthStatus, listener: (...args: any[]) => void, context: any, once: boolean): this;
|
|
1271
|
+
/**
|
|
1272
|
+
* Remove all the event listeners
|
|
1273
|
+
*
|
|
1274
|
+
* @param event
|
|
1275
|
+
*/
|
|
1276
|
+
removeAllListeners(event: AuthStatus): this;
|
|
877
1277
|
}
|
|
878
1278
|
/**
|
|
879
1279
|
* Events which can be triggered on the emitter returned from {@link init}.
|
|
@@ -1139,15 +1539,30 @@ export enum AuthType {
|
|
|
1139
1539
|
Basic = "Basic"
|
|
1140
1540
|
}
|
|
1141
1541
|
export enum HomeLeftNavItem {
|
|
1142
|
-
|
|
1542
|
+
/**
|
|
1543
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1544
|
+
*/
|
|
1545
|
+
SearchData = "search-data",
|
|
1546
|
+
/**
|
|
1547
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1548
|
+
*/
|
|
1143
1549
|
Home = "insights-home",
|
|
1550
|
+
/**
|
|
1551
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1552
|
+
*/
|
|
1144
1553
|
Liveboards = "liveboards",
|
|
1554
|
+
/**
|
|
1555
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1556
|
+
*/
|
|
1145
1557
|
Answers = "answers",
|
|
1558
|
+
/**
|
|
1559
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1560
|
+
*/
|
|
1146
1561
|
MonitorSubscription = "monitor-alerts",
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1562
|
+
/**
|
|
1563
|
+
* @version SDK: 1.27.9| ThoughtSpot: 9.12.0.cl
|
|
1564
|
+
*/
|
|
1565
|
+
SpotIQAnalysis = "spotiq-analysis"
|
|
1151
1566
|
}
|
|
1152
1567
|
export type DOMSelector = string | HTMLElement;
|
|
1153
1568
|
/**
|
|
@@ -1203,6 +1618,8 @@ export interface CustomStyles {
|
|
|
1203
1618
|
/**
|
|
1204
1619
|
* Configuration to define the customization on the Embedded
|
|
1205
1620
|
* Thoughtspot components.
|
|
1621
|
+
* You can customize styles, text strings, and icons.
|
|
1622
|
+
* For more information, see https://developers.thoughtspot.com/docs/custom-css.
|
|
1206
1623
|
*
|
|
1207
1624
|
* @example
|
|
1208
1625
|
* ```js
|
|
@@ -1217,7 +1634,12 @@ export interface CustomStyles {
|
|
|
1217
1634
|
* },
|
|
1218
1635
|
* content: {
|
|
1219
1636
|
* strings: {
|
|
1220
|
-
* 'LIVEBOARDS': 'Dashboards'
|
|
1637
|
+
* 'LIVEBOARDS': 'Dashboards',
|
|
1638
|
+
* 'ANSWERS': 'Visualizations',
|
|
1639
|
+
* 'Edit': 'Modify',
|
|
1640
|
+
* 'Show underlying data': 'Show source data',
|
|
1641
|
+
* 'SpotIQ': 'Insights',
|
|
1642
|
+
* 'Monitor': 'Alerts',
|
|
1221
1643
|
* }
|
|
1222
1644
|
* },
|
|
1223
1645
|
* iconSpriteUrl: 'https://my-custom-icon-sprite.svg'
|
|
@@ -1249,12 +1671,6 @@ export interface EmbedConfig {
|
|
|
1249
1671
|
* The ThoughtSpot cluster hostname or IP address.
|
|
1250
1672
|
*/
|
|
1251
1673
|
thoughtSpotHost: string;
|
|
1252
|
-
/**
|
|
1253
|
-
* If true, all the iframe links will have /v2 added automatically.
|
|
1254
|
-
* If false, all the iframe links will have /v1 added automatically.
|
|
1255
|
-
* If undefined, nothing will be added
|
|
1256
|
-
*/
|
|
1257
|
-
enableReactShell?: boolean | undefined;
|
|
1258
1674
|
/**
|
|
1259
1675
|
* The authentication mechanism to use.
|
|
1260
1676
|
*/
|
|
@@ -1499,6 +1915,12 @@ export interface EmbedConfig {
|
|
|
1499
1915
|
* @version SDK: 1.26.7 | ThoughtSpot: 9.10.0.cl
|
|
1500
1916
|
*/
|
|
1501
1917
|
logLevel?: LogLevel;
|
|
1918
|
+
/**
|
|
1919
|
+
* Disables the Mixpanel tracking from the SDK.
|
|
1920
|
+
*
|
|
1921
|
+
* @version SDK: 1.27.9
|
|
1922
|
+
*/
|
|
1923
|
+
disableSDKTracking?: boolean;
|
|
1502
1924
|
}
|
|
1503
1925
|
export interface LayoutConfig {
|
|
1504
1926
|
}
|
|
@@ -1537,8 +1959,21 @@ export interface ViewConfig {
|
|
|
1537
1959
|
*/
|
|
1538
1960
|
layoutConfig?: LayoutConfig;
|
|
1539
1961
|
/**
|
|
1540
|
-
* The
|
|
1962
|
+
* The width and height dimensions to render an embedded
|
|
1541
1963
|
* object inside your app. Specify the values in pixels or percentage.
|
|
1964
|
+
*
|
|
1965
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
|
|
1966
|
+
*
|
|
1967
|
+
* @example
|
|
1968
|
+
* ```js
|
|
1969
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
1970
|
+
* ... // other liveboard view config
|
|
1971
|
+
* frameParams: {
|
|
1972
|
+
* width: '500px' | '50%',
|
|
1973
|
+
* height: '400px' | '60%',
|
|
1974
|
+
* },
|
|
1975
|
+
* });
|
|
1976
|
+
* ```
|
|
1542
1977
|
*/
|
|
1543
1978
|
frameParams?: FrameParams;
|
|
1544
1979
|
/**
|
|
@@ -1555,6 +1990,7 @@ export interface ViewConfig {
|
|
|
1555
1990
|
* for the user.
|
|
1556
1991
|
* Use this to disable actions.
|
|
1557
1992
|
*
|
|
1993
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1558
1994
|
* @example
|
|
1559
1995
|
* ```js
|
|
1560
1996
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1566,6 +2002,15 @@ export interface ViewConfig {
|
|
|
1566
2002
|
disabledActions?: Action[];
|
|
1567
2003
|
/**
|
|
1568
2004
|
* The tooltip to display for disabled actions.
|
|
2005
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2006
|
+
* @example
|
|
2007
|
+
* ```js
|
|
2008
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2009
|
+
* ... // other liveboard view config
|
|
2010
|
+
* disabledActions: [Action.Download, Action.Save]
|
|
2011
|
+
* disabledActionReason: "Reason for disabling",
|
|
2012
|
+
* });
|
|
2013
|
+
* ```
|
|
1569
2014
|
*/
|
|
1570
2015
|
disabledActionReason?: string;
|
|
1571
2016
|
/**
|
|
@@ -1573,6 +2018,8 @@ export interface ViewConfig {
|
|
|
1573
2018
|
* This actions will be hidden from the user.
|
|
1574
2019
|
* Use this to hide an action.
|
|
1575
2020
|
*
|
|
2021
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2022
|
+
*
|
|
1576
2023
|
* @example
|
|
1577
2024
|
* ```js
|
|
1578
2025
|
* const embed = new LiveboardEmbed('#embed', {
|
|
@@ -1593,17 +2040,49 @@ export interface ViewConfig {
|
|
|
1593
2040
|
*
|
|
1594
2041
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1595
2042
|
* @important
|
|
2043
|
+
*
|
|
2044
|
+
* @example
|
|
2045
|
+
* ```js
|
|
2046
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2047
|
+
* ... // other liveboard view config
|
|
2048
|
+
* visibleActions: [Action.Download, Action.Export]
|
|
2049
|
+
* });
|
|
2050
|
+
* ```
|
|
1596
2051
|
*/
|
|
1597
2052
|
visibleActions?: Action[];
|
|
1598
2053
|
/**
|
|
1599
2054
|
* Show alert messages and toast messages in the embedded view.
|
|
1600
2055
|
*
|
|
1601
2056
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2057
|
+
*
|
|
2058
|
+
* @example
|
|
2059
|
+
* ```js
|
|
2060
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2061
|
+
* ... // other options
|
|
2062
|
+
* showAlerts:true,
|
|
2063
|
+
* })
|
|
2064
|
+
* ```
|
|
1602
2065
|
*/
|
|
1603
2066
|
showAlerts?: boolean;
|
|
1604
2067
|
/**
|
|
1605
2068
|
* The list of runtime filters to apply to a search answer,
|
|
1606
2069
|
* visualization, or Liveboard.
|
|
2070
|
+
*
|
|
2071
|
+
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2072
|
+
*
|
|
2073
|
+
* @example
|
|
2074
|
+
* ```js
|
|
2075
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2076
|
+
* ... // other options
|
|
2077
|
+
* runtimeFilters: [
|
|
2078
|
+
* {
|
|
2079
|
+
* columnName: 'value',
|
|
2080
|
+
* operator: RuntimeFilterOp.EQ,
|
|
2081
|
+
* values: ['string' | 123 | true],
|
|
2082
|
+
* },
|
|
2083
|
+
* ],
|
|
2084
|
+
* })
|
|
2085
|
+
* ```
|
|
1607
2086
|
*/
|
|
1608
2087
|
runtimeFilters?: RuntimeFilter[];
|
|
1609
2088
|
/**
|
|
@@ -1611,12 +2090,32 @@ export interface ViewConfig {
|
|
|
1611
2090
|
* visualization, or Liveboard.
|
|
1612
2091
|
*
|
|
1613
2092
|
* @version SDK : 1.25.0 | Thoughtspot: 9.2.0.cl, 9.5.0.sw
|
|
2093
|
+
*
|
|
2094
|
+
* @example
|
|
2095
|
+
* ```js
|
|
2096
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2097
|
+
* ... // other options
|
|
2098
|
+
* runtimeParameters: [
|
|
2099
|
+
* {
|
|
2100
|
+
* name: 'value',
|
|
2101
|
+
* value: 'string' | 123 | true,
|
|
2102
|
+
* },
|
|
2103
|
+
* ],
|
|
2104
|
+
* })
|
|
2105
|
+
* ```
|
|
1614
2106
|
*/
|
|
1615
2107
|
runtimeParameters?: RuntimeParameter[];
|
|
1616
2108
|
/**
|
|
1617
2109
|
* The locale/language to use for the embedded view.
|
|
1618
2110
|
*
|
|
1619
2111
|
* @version SDK: 1.9.4 | ThoughtSpot 8.1.0.cl, 8.4.1.sw
|
|
2112
|
+
* @example
|
|
2113
|
+
* ```js
|
|
2114
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2115
|
+
* ... // other options
|
|
2116
|
+
* locale:'en',
|
|
2117
|
+
* })
|
|
2118
|
+
* ```
|
|
1620
2119
|
*/
|
|
1621
2120
|
locale?: string;
|
|
1622
2121
|
/**
|
|
@@ -1626,7 +2125,16 @@ export interface ViewConfig {
|
|
|
1626
2125
|
* Warning: This option is for advanced use only and is used internally
|
|
1627
2126
|
* to control embed behavior in non-regular ways. We do not publish the
|
|
1628
2127
|
* list of supported keys and values associated with each.
|
|
1629
|
-
*
|
|
2128
|
+
* @example
|
|
2129
|
+
* ```js
|
|
2130
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2131
|
+
* ... // other liveboard view config
|
|
2132
|
+
* additionalFlags: {
|
|
2133
|
+
* flag1: 'value1',
|
|
2134
|
+
* flag2: 'value2'
|
|
2135
|
+
* }
|
|
2136
|
+
* });
|
|
2137
|
+
* ```
|
|
1630
2138
|
* @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1.sw
|
|
1631
2139
|
*/
|
|
1632
2140
|
additionalFlags?: {
|
|
@@ -1643,18 +2151,42 @@ export interface ViewConfig {
|
|
|
1643
2151
|
/**
|
|
1644
2152
|
* Insert as a sibling of the target container, instead of appending to a
|
|
1645
2153
|
* child inside it.
|
|
2154
|
+
*
|
|
2155
|
+
* @version SDK: 1.2.0 | Thoughtspot: 9.0.0.cl, 9.0.0.sw
|
|
2156
|
+
*
|
|
2157
|
+
* @example
|
|
2158
|
+
* ```js
|
|
2159
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2160
|
+
* ... // other options
|
|
2161
|
+
* insertAsSibling:true,
|
|
2162
|
+
* })
|
|
2163
|
+
* ```
|
|
1646
2164
|
*/
|
|
1647
2165
|
insertAsSibling?: boolean;
|
|
1648
2166
|
/**
|
|
1649
2167
|
* flag to set ContextMenu Trigger to either left or right click.
|
|
1650
2168
|
*
|
|
2169
|
+
* @example
|
|
2170
|
+
* ```js
|
|
2171
|
+
* const embed = new LiveboardEmbed('#tsEmbed', {
|
|
2172
|
+
* ... // other options
|
|
2173
|
+
* contextMenuTrigger:ContextMenuTriggerOptions.LEFT_CLICK || RIGHT_CLICK,
|
|
2174
|
+
* })
|
|
2175
|
+
* ```
|
|
1651
2176
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
1652
2177
|
*/
|
|
1653
2178
|
contextMenuTrigger?: ContextMenuTriggerOptions;
|
|
1654
2179
|
/**
|
|
1655
|
-
*
|
|
2180
|
+
* Flag to override openNew tab context menu link
|
|
1656
2181
|
*
|
|
1657
2182
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
|
|
2183
|
+
* @example
|
|
2184
|
+
* ```js
|
|
2185
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2186
|
+
* ... // other options
|
|
2187
|
+
* linkOverride:false,
|
|
2188
|
+
* })
|
|
2189
|
+
* ```
|
|
1658
2190
|
*/
|
|
1659
2191
|
linkOverride?: boolean;
|
|
1660
2192
|
/**
|
|
@@ -1676,9 +2208,14 @@ export interface ViewConfig {
|
|
|
1676
2208
|
usePrerenderedIfAvailable?: boolean;
|
|
1677
2209
|
/**
|
|
1678
2210
|
* Boolean to exclude runtimeFilters in the URL
|
|
2211
|
+
* By default it is true, this flag removes runtime filters from the URL
|
|
2212
|
+
* when set to false, runtime filters will be included in the URL.
|
|
1679
2213
|
*
|
|
1680
|
-
*
|
|
1681
|
-
*
|
|
2214
|
+
* Irrespective of this flag, runtime filters ( if passed ) will be applied to the
|
|
2215
|
+
* embedded view.
|
|
2216
|
+
*
|
|
2217
|
+
* @default true
|
|
2218
|
+
* @version SDK: 1.24.0 | ThoughtSpot: 9.5.0.cl
|
|
1682
2219
|
*/
|
|
1683
2220
|
excludeRuntimeFiltersfromURL?: boolean;
|
|
1684
2221
|
/**
|
|
@@ -1700,16 +2237,40 @@ export interface ViewConfig {
|
|
|
1700
2237
|
hiddenTabs?: string[];
|
|
1701
2238
|
/**
|
|
1702
2239
|
* Hide the home page modules
|
|
1703
|
-
*
|
|
2240
|
+
* For example: hiddenHomepageModules = [HomepageModule.MyLibrary]
|
|
2241
|
+
*
|
|
2242
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2243
|
+
* To access the updated modular homepage, set
|
|
2244
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
2245
|
+
*
|
|
2246
|
+
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
2247
|
+
* @example
|
|
2248
|
+
* ```js
|
|
2249
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2250
|
+
* ... // other options
|
|
2251
|
+
* hiddenHomepageModules : [HomepageModule.Favorite,HomepageModule.Learning],
|
|
2252
|
+
* })
|
|
2253
|
+
* ```
|
|
1704
2254
|
*
|
|
1705
|
-
* @version SDK: 1.27.0 | Thoughtspot: 9.12.0.cl
|
|
1706
2255
|
*/
|
|
1707
2256
|
hiddenHomepageModules?: HomepageModule[];
|
|
1708
2257
|
/**
|
|
1709
2258
|
* reordering the home page modules
|
|
1710
2259
|
* eg: reorderedHomepageModules = [HomepageModule.MyLibrary, HomepageModule.Watchlist]
|
|
1711
2260
|
*
|
|
1712
|
-
*
|
|
2261
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2262
|
+
* To access the updated modular homepage, set
|
|
2263
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl onwards).
|
|
2264
|
+
*
|
|
2265
|
+
* @version SDK: 1.27.9| Thoughtspot: 9.12.0.cl
|
|
2266
|
+
*
|
|
2267
|
+
* @example
|
|
2268
|
+
* ```js
|
|
2269
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2270
|
+
* ... // other options
|
|
2271
|
+
* reorderedHomepageModules:[HomepageModule.Favorite,HomepageModule.MyLibrary]
|
|
2272
|
+
* })
|
|
2273
|
+
* ```
|
|
1713
2274
|
*/
|
|
1714
2275
|
reorderedHomepageModules?: HomepageModule[];
|
|
1715
2276
|
/**
|
|
@@ -1718,13 +2279,18 @@ export interface ViewConfig {
|
|
|
1718
2279
|
*
|
|
1719
2280
|
* Use either `visibleTabs` or `hiddenTabs`.
|
|
1720
2281
|
*
|
|
2282
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
2283
|
+
*
|
|
1721
2284
|
* @example
|
|
1722
2285
|
* ```js
|
|
1723
|
-
*
|
|
1724
|
-
*
|
|
1725
|
-
*
|
|
2286
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2287
|
+
* ... // other options
|
|
2288
|
+
* visibleTabs: [
|
|
2289
|
+
* '430496d6-6903-4601-937e-2c691821af3c',
|
|
2290
|
+
* 'f547ec54-2a37-4516-a222-2b06719af726'
|
|
2291
|
+
* ]
|
|
2292
|
+
* })
|
|
1726
2293
|
* ```
|
|
1727
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1728
2294
|
*/
|
|
1729
2295
|
visibleTabs?: string[];
|
|
1730
2296
|
/**
|
|
@@ -1732,11 +2298,21 @@ export interface ViewConfig {
|
|
|
1732
2298
|
* There are 8 eight home navigation list items.
|
|
1733
2299
|
* To hide these items, specify the string in the array.
|
|
1734
2300
|
*
|
|
2301
|
+
* @version SDK: 1.27.0 | Thoughtspot: 9.10.0.cl
|
|
2302
|
+
*
|
|
2303
|
+
* * @example
|
|
1735
2304
|
* ```js
|
|
1736
|
-
*
|
|
2305
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2306
|
+
* ... // other options
|
|
2307
|
+
* hiddenHomeLeftNavItems : [HomeLeftNavItem.Home,HomeLeftNavItem.Answers],
|
|
2308
|
+
* })
|
|
1737
2309
|
* ```
|
|
1738
2310
|
*
|
|
1739
|
-
*
|
|
2311
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2312
|
+
* To access the updated modular homepage, set
|
|
2313
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12 forward).
|
|
2314
|
+
*
|
|
2315
|
+
* @version SDK: 1.27.9 | Thoughtspot: 9.12.0.cl
|
|
1740
2316
|
*/
|
|
1741
2317
|
hiddenHomeLeftNavItems?: HomeLeftNavItem[];
|
|
1742
2318
|
/**
|
|
@@ -1763,7 +2339,10 @@ export interface ViewConfig {
|
|
|
1763
2339
|
*
|
|
1764
2340
|
* @type {boolean}
|
|
1765
2341
|
* @default false
|
|
2342
|
+
* @version SDK: 1.24.0 | ThoughtSpot:9.4.0.cl, 9.4.0.sw
|
|
2343
|
+
*
|
|
1766
2344
|
* @example
|
|
2345
|
+
* ```js
|
|
1767
2346
|
* // Disable tracking PreRender size in the configuration
|
|
1768
2347
|
* const config = {
|
|
1769
2348
|
* doNotTrackPreRenderSize: true,
|
|
@@ -1771,6 +2350,7 @@ export interface ViewConfig {
|
|
|
1771
2350
|
*
|
|
1772
2351
|
* // Instantiate an object with the configuration
|
|
1773
2352
|
* const myComponent = new MyComponent(config);
|
|
2353
|
+
* ```
|
|
1774
2354
|
*/
|
|
1775
2355
|
doNotTrackPreRenderSize?: boolean;
|
|
1776
2356
|
/**
|
|
@@ -1912,6 +2492,10 @@ export enum HomepageModule {
|
|
|
1912
2492
|
MyLibrary = "MY_LIBRARY",
|
|
1913
2493
|
/**
|
|
1914
2494
|
* Trending list
|
|
2495
|
+
*
|
|
2496
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
2497
|
+
* To access the updated modular homepage, set
|
|
2498
|
+
* `modularHomeExperience` to `true` (available in Early Access from 9.12.0.cl onwards).
|
|
1915
2499
|
*/
|
|
1916
2500
|
Trending = "TRENDING",
|
|
1917
2501
|
/**
|
|
@@ -2050,7 +2634,7 @@ export enum EmbedEvent {
|
|
|
2050
2634
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2051
2635
|
* @example
|
|
2052
2636
|
*```js
|
|
2053
|
-
* searchEmbed.trigger(
|
|
2637
|
+
* searchEmbed.trigger(EmbedEvent.DrillDown, {
|
|
2054
2638
|
* points: {
|
|
2055
2639
|
* clickedPoint,
|
|
2056
2640
|
* selectedPoints: selectedPoint
|
|
@@ -2142,7 +2726,7 @@ export enum EmbedEvent {
|
|
|
2142
2726
|
* @important
|
|
2143
2727
|
* @example
|
|
2144
2728
|
* ```js
|
|
2145
|
-
* embed.on(
|
|
2729
|
+
* embed.on(EmbedEvent.VizPointClick, ({data}) => {
|
|
2146
2730
|
* console.log(
|
|
2147
2731
|
* data.vizId, // viz id
|
|
2148
2732
|
* data.clickedPoint.selectedAttributes[0].value,
|
|
@@ -2157,19 +2741,20 @@ export enum EmbedEvent {
|
|
|
2157
2741
|
/**
|
|
2158
2742
|
* An error has occurred. This event is fired for the following error types:
|
|
2159
2743
|
*
|
|
2160
|
-
*
|
|
2744
|
+
* API - API call failure error.
|
|
2161
2745
|
*
|
|
2162
|
-
*
|
|
2746
|
+
* FULLSCREEN - Error when presenting a Liveboard or visualization in full screen mode.
|
|
2163
2747
|
*
|
|
2164
|
-
*
|
|
2748
|
+
* SINGLE_VALUE_FILTER - Error due to multiple values in the single value filter.
|
|
2165
2749
|
*
|
|
2166
|
-
*
|
|
2750
|
+
* NON_EXIST_FILTER - Error due to a non-existent filter.
|
|
2167
2751
|
*
|
|
2168
|
-
*
|
|
2752
|
+
* INVALID_DATE_VALUE - Invalid date value error.
|
|
2169
2753
|
*
|
|
2170
|
-
*
|
|
2754
|
+
* INVALID_OPERATOR - Use of invalid operator during filter application.
|
|
2171
2755
|
*
|
|
2172
2756
|
* For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
|
|
2757
|
+
*
|
|
2173
2758
|
* @returns error - An error object or message
|
|
2174
2759
|
* @example
|
|
2175
2760
|
* ```js
|
|
@@ -2734,7 +3319,7 @@ export enum EmbedEvent {
|
|
|
2734
3319
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2735
3320
|
* @example
|
|
2736
3321
|
*```js
|
|
2737
|
-
* liveboardEmbed.trigger(
|
|
3322
|
+
* liveboardEmbed.trigger(EmbedEvent.Delete,
|
|
2738
3323
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2739
3324
|
*```
|
|
2740
3325
|
*/
|
|
@@ -2745,7 +3330,7 @@ export enum EmbedEvent {
|
|
|
2745
3330
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2746
3331
|
* @example
|
|
2747
3332
|
*```js
|
|
2748
|
-
* liveboardEmbed.trigger(
|
|
3333
|
+
* liveboardEmbed.trigger(EmbedEvent.SchedulesList)
|
|
2749
3334
|
*```
|
|
2750
3335
|
*/
|
|
2751
3336
|
SchedulesList = "schedule-list",
|
|
@@ -2755,7 +3340,7 @@ export enum EmbedEvent {
|
|
|
2755
3340
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2756
3341
|
* @example
|
|
2757
3342
|
*```js
|
|
2758
|
-
* liveboardEmbed.trigger(
|
|
3343
|
+
* liveboardEmbed.trigger(EmbedEvent.Cancel)
|
|
2759
3344
|
*```
|
|
2760
3345
|
*/
|
|
2761
3346
|
Cancel = "cancel",
|
|
@@ -2765,7 +3350,7 @@ export enum EmbedEvent {
|
|
|
2765
3350
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2766
3351
|
* @example
|
|
2767
3352
|
*```js
|
|
2768
|
-
* liveboardEmbed.trigger(
|
|
3353
|
+
* liveboardEmbed.trigger(EmbedEvent.Explore, {
|
|
2769
3354
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2770
3355
|
*```
|
|
2771
3356
|
*/
|
|
@@ -2776,7 +3361,7 @@ export enum EmbedEvent {
|
|
|
2776
3361
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
2777
3362
|
* @example
|
|
2778
3363
|
*```js
|
|
2779
|
-
* liveboardEmbed.trigger(
|
|
3364
|
+
* liveboardEmbed.trigger(EmbedEvent.CopyLink, {
|
|
2780
3365
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
2781
3366
|
*```
|
|
2782
3367
|
*/
|
|
@@ -3045,10 +3630,13 @@ export enum HostEvent {
|
|
|
3045
3630
|
* _String_. The name of the column to filter on.
|
|
3046
3631
|
* `operator`
|
|
3047
3632
|
* Runtime filter operator to apply. For information,
|
|
3048
|
-
* see
|
|
3633
|
+
* see https://developers.thoughtspot.com/docs/?pageid=runtime-filters#rtOperator.
|
|
3049
3634
|
* `values`
|
|
3050
3635
|
* List of operands. Some operators such as EQ, LE allow a single value, whereas
|
|
3051
3636
|
* operators such as BW and IN accept multiple operands.
|
|
3637
|
+
* **Note**: `HostEvent.UpdateRuntimeFilters` is not supported in
|
|
3638
|
+
* Search embedding (SearchEmbed) and Natural Language Search
|
|
3639
|
+
* embedding (SageEmbed).
|
|
3052
3640
|
*
|
|
3053
3641
|
* @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
|
|
3054
3642
|
* @example
|
|
@@ -3573,6 +4161,7 @@ export enum HostEvent {
|
|
|
3573
4161
|
/**
|
|
3574
4162
|
*
|
|
3575
4163
|
* Get the currents visible and runtime filters applied on a Liveboard
|
|
4164
|
+
*
|
|
3576
4165
|
* @example
|
|
3577
4166
|
* liveboardEmbed.trigger(HostEvent.GetFilters)
|
|
3578
4167
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3581,12 +4170,13 @@ export enum HostEvent {
|
|
|
3581
4170
|
/**
|
|
3582
4171
|
*
|
|
3583
4172
|
* Update the visible filters on the Liveboard.
|
|
4173
|
+
*
|
|
3584
4174
|
* @param - filter: filter object containing column name and filter operation and values
|
|
3585
4175
|
* @example
|
|
3586
4176
|
*
|
|
3587
4177
|
* ```js
|
|
3588
4178
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
3589
|
-
* filter: { column: 'column name', oper: '
|
|
4179
|
+
* filter: { column: 'column name', oper: 'IN', values: [1,2,3], is_mandatory: false }
|
|
3590
4180
|
* })
|
|
3591
4181
|
* ```
|
|
3592
4182
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -3672,7 +4262,33 @@ export enum HostEvent {
|
|
|
3672
4262
|
* ```
|
|
3673
4263
|
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
3674
4264
|
*/
|
|
3675
|
-
AskSage = "AskSage"
|
|
4265
|
+
AskSage = "AskSage",
|
|
4266
|
+
/**
|
|
4267
|
+
* Trigger UpdateCrossFilter for Liveboard
|
|
4268
|
+
*
|
|
4269
|
+
* @example
|
|
4270
|
+
* ```js
|
|
4271
|
+
* liveboardEmbed.trigger(HostEvent.UpdateCrossFilter, {
|
|
4272
|
+
* vizId: 'b535c760-8bbe-4e6f-bb26-af56b4129a1e',
|
|
4273
|
+
* conditions: [
|
|
4274
|
+
* { columnName: 'Category', values: ['mfgr#12','mfgr#14'] },
|
|
4275
|
+
* { columnName: 'color', values: ['mint','hot'] },
|
|
4276
|
+
* ],
|
|
4277
|
+
* });
|
|
4278
|
+
* ```
|
|
4279
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.0.0.cl
|
|
4280
|
+
*/
|
|
4281
|
+
UpdateCrossFilter = "UpdateCrossFilter",
|
|
4282
|
+
/**
|
|
4283
|
+
* Trigger ResetLiveboardPersonalisedView for Liveboard
|
|
4284
|
+
*
|
|
4285
|
+
* @example
|
|
4286
|
+
* ```js
|
|
4287
|
+
* liveboardEmbed.trigger(HostEvent.ResetLiveboardPersonalisedView);
|
|
4288
|
+
* ```
|
|
4289
|
+
* @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
|
|
4290
|
+
*/
|
|
4291
|
+
ResetLiveboardPersonalisedView = "ResetLiveboardPersonalisedView"
|
|
3676
4292
|
}
|
|
3677
4293
|
/**
|
|
3678
4294
|
* The different visual modes that the data sources panel within
|
|
@@ -4637,7 +5253,47 @@ export enum Action {
|
|
|
4637
5253
|
* ```
|
|
4638
5254
|
* @version SDK: 1.29.0 | Thoughtspot: 9.12.0.cl
|
|
4639
5255
|
*/
|
|
4640
|
-
AskAi = "AskAi"
|
|
5256
|
+
AskAi = "AskAi",
|
|
5257
|
+
/**
|
|
5258
|
+
* The **Add KPI to Watchlist** action on Home page watchlist.
|
|
5259
|
+
*
|
|
5260
|
+
* @example
|
|
5261
|
+
* ```js
|
|
5262
|
+
* disabledActions: [Action.AddToWatchlist]
|
|
5263
|
+
* ```
|
|
5264
|
+
* @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
|
|
5265
|
+
*/
|
|
5266
|
+
AddToWatchlist = "addToWatchlist",
|
|
5267
|
+
/**
|
|
5268
|
+
* The **Remove from watchlist** menu action on KPI watchlist.
|
|
5269
|
+
*
|
|
5270
|
+
* @example
|
|
5271
|
+
* ```js
|
|
5272
|
+
* disabledActions: [Action.RemoveFromWatchlist]
|
|
5273
|
+
* ```
|
|
5274
|
+
* @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
|
|
5275
|
+
*/
|
|
5276
|
+
RemoveFromWatchlist = "removeFromWatchlist",
|
|
5277
|
+
/**
|
|
5278
|
+
* The **Copy KPI Link** menu action on KPI watchlist.
|
|
5279
|
+
*
|
|
5280
|
+
* @example
|
|
5281
|
+
* ```js
|
|
5282
|
+
* disabledActions: [Action.CopyKpiLink]
|
|
5283
|
+
* ```
|
|
5284
|
+
* @version SDK : 1.27.9 | Thoughtspot: 9.12.5.cl
|
|
5285
|
+
*/
|
|
5286
|
+
CopyKpiLink = "copyKpiLink",
|
|
5287
|
+
/**
|
|
5288
|
+
* Action ID for AI Highlights button
|
|
5289
|
+
*
|
|
5290
|
+
* @example
|
|
5291
|
+
* ```js
|
|
5292
|
+
* hiddenAction: [Action.AIHighlights]
|
|
5293
|
+
* ```
|
|
5294
|
+
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
5295
|
+
*/
|
|
5296
|
+
AIHighlights = "AIHighlights"
|
|
4641
5297
|
}
|
|
4642
5298
|
export interface AnswerServiceType {
|
|
4643
5299
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -5173,17 +5829,15 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
|
|
|
5173
5829
|
isProductTour?: boolean;
|
|
5174
5830
|
/**
|
|
5175
5831
|
* Show or hide the search bar title.
|
|
5176
|
-
* @version SDK: 1.29.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
5177
5832
|
*
|
|
5178
|
-
* @
|
|
5833
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
5179
5834
|
*/
|
|
5180
5835
|
hideSearchBarTitle?: boolean;
|
|
5181
5836
|
/**
|
|
5182
5837
|
* Show or hide the Answer header, that is, the `AI Answer` title
|
|
5183
5838
|
* at the top of the Answer page.
|
|
5184
|
-
* @version SDK: 1.29.0 | Thoughtspot: 9.10.0.cl
|
|
5185
5839
|
*
|
|
5186
|
-
* @
|
|
5840
|
+
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
5187
5841
|
*/
|
|
5188
5842
|
hideSageAnswerHeader?: boolean;
|
|
5189
5843
|
/**
|
|
@@ -5216,6 +5870,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
|
|
|
5216
5870
|
* Show or hide sample questions.
|
|
5217
5871
|
* The sample questions are autogenerated based on the worksheet
|
|
5218
5872
|
* selected for the search operation.
|
|
5873
|
+
*
|
|
5219
5874
|
* @version SDK: 1.26.0 | Thoughtspot: 9.8.0.cl, 9.8.0.sw
|
|
5220
5875
|
*/
|
|
5221
5876
|
hideSampleQuestions?: boolean;
|
|
@@ -5245,6 +5900,7 @@ export interface SageViewConfig extends Omit<ViewConfig, 'hiddenHomepageModules'
|
|
|
5245
5900
|
*/
|
|
5246
5901
|
searchOptions?: SearchOptions;
|
|
5247
5902
|
}
|
|
5903
|
+
export const HiddenActionItemByDefaultForSageEmbed: Action[];
|
|
5248
5904
|
/**
|
|
5249
5905
|
* Embed ThoughtSpot LLM and GPT-based Natural Language Search component.
|
|
5250
5906
|
*
|
|
@@ -5277,7 +5933,7 @@ export class SageEmbed extends V1Embed {
|
|
|
5277
5933
|
*
|
|
5278
5934
|
* @returns {SageEmbed} Eureka/Sage embed
|
|
5279
5935
|
*/
|
|
5280
|
-
render(): SageEmbed
|
|
5936
|
+
render(): Promise<SageEmbed>;
|
|
5281
5937
|
}
|
|
5282
5938
|
|
|
5283
5939
|
export interface SessionInterface {
|
|
@@ -5456,6 +6112,26 @@ export function initMixpanel(sessionInfo: any): void;
|
|
|
5456
6112
|
*/
|
|
5457
6113
|
export function testResetMixpanel(): void;
|
|
5458
6114
|
|
|
6115
|
+
/**
|
|
6116
|
+
* Fetch wrapper that adds the authentication token to the request.
|
|
6117
|
+
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6118
|
+
*
|
|
6119
|
+
* @param input
|
|
6120
|
+
* @param init
|
|
6121
|
+
* @version SDK: 1.28.0
|
|
6122
|
+
* @group Global methods
|
|
6123
|
+
*/
|
|
6124
|
+
export const tokenizedFetch: typeof fetch;
|
|
6125
|
+
|
|
6126
|
+
export const getAuthenticationToken: (embedConfig: EmbedConfig) => Promise<string>;
|
|
6127
|
+
/**
|
|
6128
|
+
* Resets the auth token and a new token will be fetched on the next request.
|
|
6129
|
+
*
|
|
6130
|
+
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
6131
|
+
* @group Authentication / Init
|
|
6132
|
+
*/
|
|
6133
|
+
export const resetCachedAuthToken: () => void;
|
|
6134
|
+
|
|
5459
6135
|
/**
|
|
5460
6136
|
* Copyright (c) 2022
|
|
5461
6137
|
*
|
|
@@ -5648,7 +6324,7 @@ export class TsEmbed {
|
|
|
5648
6324
|
*
|
|
5649
6325
|
* @param args
|
|
5650
6326
|
*/
|
|
5651
|
-
render(): TsEmbed
|
|
6327
|
+
render(): Promise<TsEmbed>;
|
|
5652
6328
|
getIframeSrc(): string;
|
|
5653
6329
|
protected handleRenderForPrerender(): void;
|
|
5654
6330
|
/**
|