@thoughtspot/visual-embed-sdk 1.21.0-alpha.2 → 1.21.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/cjs/package.json +170 -0
  2. package/cjs/src/auth.d.ts +183 -0
  3. package/cjs/src/auth.d.ts.map +1 -0
  4. package/cjs/src/auth.js +457 -0
  5. package/cjs/src/auth.js.map +1 -0
  6. package/cjs/src/auth.spec.d.ts +13 -0
  7. package/cjs/src/auth.spec.d.ts.map +1 -0
  8. package/cjs/src/auth.spec.js +397 -0
  9. package/cjs/src/auth.spec.js.map +1 -0
  10. package/cjs/src/config.d.ts +22 -0
  11. package/cjs/src/config.d.ts.map +1 -0
  12. package/cjs/src/config.js +70 -0
  13. package/cjs/src/config.js.map +1 -0
  14. package/cjs/src/config.spec.d.ts +5 -0
  15. package/cjs/src/config.spec.d.ts.map +1 -0
  16. package/cjs/src/config.spec.js +65 -0
  17. package/cjs/src/config.spec.js.map +1 -0
  18. package/cjs/src/embed/app.d.ts +151 -0
  19. package/cjs/src/embed/app.d.ts.map +1 -0
  20. package/cjs/src/embed/app.js +186 -0
  21. package/cjs/src/embed/app.js.map +1 -0
  22. package/cjs/src/embed/app.spec.d.ts +2 -0
  23. package/cjs/src/embed/app.spec.d.ts.map +1 -0
  24. package/cjs/src/embed/app.spec.js +210 -0
  25. package/cjs/src/embed/app.spec.js.map +1 -0
  26. package/cjs/src/embed/base.d.ts +79 -0
  27. package/cjs/src/embed/base.d.ts.map +1 -0
  28. package/cjs/src/embed/base.js +229 -0
  29. package/cjs/src/embed/base.js.map +1 -0
  30. package/cjs/src/embed/base.spec.d.ts +2 -0
  31. package/cjs/src/embed/base.spec.d.ts.map +1 -0
  32. package/cjs/src/embed/base.spec.js +198 -0
  33. package/cjs/src/embed/base.spec.js.map +1 -0
  34. package/cjs/src/embed/embed.spec.d.ts +2 -0
  35. package/cjs/src/embed/embed.spec.d.ts.map +1 -0
  36. package/cjs/src/embed/embed.spec.js +74 -0
  37. package/cjs/src/embed/embed.spec.js.map +1 -0
  38. package/cjs/src/embed/events.spec.d.ts +2 -0
  39. package/cjs/src/embed/events.spec.d.ts.map +1 -0
  40. package/cjs/src/embed/events.spec.js +238 -0
  41. package/cjs/src/embed/events.spec.js.map +1 -0
  42. package/cjs/src/embed/liveboard.d.ts +150 -0
  43. package/cjs/src/embed/liveboard.d.ts.map +1 -0
  44. package/cjs/src/embed/liveboard.js +168 -0
  45. package/cjs/src/embed/liveboard.js.map +1 -0
  46. package/cjs/src/embed/liveboard.spec.d.ts +2 -0
  47. package/cjs/src/embed/liveboard.spec.d.ts.map +1 -0
  48. package/cjs/src/embed/liveboard.spec.js +229 -0
  49. package/cjs/src/embed/liveboard.spec.js.map +1 -0
  50. package/cjs/src/embed/pinboard.spec.d.ts +2 -0
  51. package/cjs/src/embed/pinboard.spec.d.ts.map +1 -0
  52. package/cjs/src/embed/pinboard.spec.js +148 -0
  53. package/cjs/src/embed/pinboard.spec.js.map +1 -0
  54. package/cjs/src/embed/search-bar.d.ts +50 -0
  55. package/cjs/src/embed/search-bar.d.ts.map +1 -0
  56. package/cjs/src/embed/search-bar.js +63 -0
  57. package/cjs/src/embed/search-bar.js.map +1 -0
  58. package/cjs/src/embed/search.d.ts +125 -0
  59. package/cjs/src/embed/search.d.ts.map +1 -0
  60. package/cjs/src/embed/search.js +121 -0
  61. package/cjs/src/embed/search.js.map +1 -0
  62. package/cjs/src/embed/search.spec.d.ts +2 -0
  63. package/cjs/src/embed/search.spec.d.ts.map +1 -0
  64. package/cjs/src/embed/search.spec.js +238 -0
  65. package/cjs/src/embed/search.spec.js.map +1 -0
  66. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts +2 -0
  67. package/cjs/src/embed/searchEmbed-basic-auth.spec.d.ts.map +1 -0
  68. package/cjs/src/embed/searchEmbed-basic-auth.spec.js +103 -0
  69. package/cjs/src/embed/searchEmbed-basic-auth.spec.js.map +1 -0
  70. package/cjs/src/embed/ts-embed.d.ts +323 -0
  71. package/cjs/src/embed/ts-embed.d.ts.map +1 -0
  72. package/cjs/src/embed/ts-embed.js +716 -0
  73. package/cjs/src/embed/ts-embed.js.map +1 -0
  74. package/cjs/src/embed/ts-embed.spec.d.ts +2 -0
  75. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -0
  76. package/cjs/src/embed/ts-embed.spec.js +771 -0
  77. package/cjs/src/embed/ts-embed.spec.js.map +1 -0
  78. package/cjs/src/errors.d.ts +7 -0
  79. package/cjs/src/errors.d.ts.map +1 -0
  80. package/cjs/src/errors.js +10 -0
  81. package/cjs/src/errors.js.map +1 -0
  82. package/cjs/src/index.d.ts +18 -0
  83. package/cjs/src/index.d.ts.map +1 -0
  84. package/cjs/src/index.js +41 -0
  85. package/cjs/src/index.js.map +1 -0
  86. package/cjs/src/mixpanel-service.d.ts +29 -0
  87. package/cjs/src/mixpanel-service.d.ts.map +1 -0
  88. package/cjs/src/mixpanel-service.js +76 -0
  89. package/cjs/src/mixpanel-service.js.map +1 -0
  90. package/cjs/src/mixpanel-service.spec.d.ts +2 -0
  91. package/cjs/src/mixpanel-service.spec.d.ts.map +1 -0
  92. package/cjs/src/mixpanel-service.spec.js +63 -0
  93. package/cjs/src/mixpanel-service.spec.js.map +1 -0
  94. package/cjs/src/react/index.d.ts +38 -0
  95. package/cjs/src/react/index.d.ts.map +1 -0
  96. package/cjs/src/react/index.js +64 -0
  97. package/cjs/src/react/index.js.map +1 -0
  98. package/cjs/src/react/index.spec.d.ts +3 -0
  99. package/cjs/src/react/index.spec.d.ts.map +1 -0
  100. package/cjs/src/react/index.spec.js +126 -0
  101. package/cjs/src/react/index.spec.js.map +1 -0
  102. package/cjs/src/react/util.d.ts +19 -0
  103. package/cjs/src/react/util.d.ts.map +1 -0
  104. package/cjs/src/react/util.js +25 -0
  105. package/cjs/src/react/util.js.map +1 -0
  106. package/cjs/src/test/test-utils.d.ts +48 -0
  107. package/cjs/src/test/test-utils.d.ts.map +1 -0
  108. package/cjs/src/test/test-utils.js +108 -0
  109. package/cjs/src/test/test-utils.js.map +1 -0
  110. package/cjs/src/types.d.ts +1850 -0
  111. package/cjs/src/types.d.ts.map +1 -0
  112. package/cjs/src/types.js +1419 -0
  113. package/cjs/src/types.js.map +1 -0
  114. package/cjs/src/utils/answerService.d.ts +10 -0
  115. package/cjs/src/utils/answerService.d.ts.map +1 -0
  116. package/cjs/src/utils/answerService.js +61 -0
  117. package/cjs/src/utils/answerService.js.map +1 -0
  118. package/cjs/src/utils/answerService.spec.d.ts +2 -0
  119. package/cjs/src/utils/answerService.spec.d.ts.map +1 -0
  120. package/cjs/src/utils/answerService.spec.js +31 -0
  121. package/cjs/src/utils/answerService.spec.js.map +1 -0
  122. package/cjs/src/utils/authService.d.ts +37 -0
  123. package/cjs/src/utils/authService.d.ts.map +1 -0
  124. package/cjs/src/utils/authService.js +106 -0
  125. package/cjs/src/utils/authService.js.map +1 -0
  126. package/cjs/src/utils/authService.spec.d.ts +2 -0
  127. package/cjs/src/utils/authService.spec.d.ts.map +1 -0
  128. package/cjs/src/utils/authService.spec.js +72 -0
  129. package/cjs/src/utils/authService.spec.js.map +1 -0
  130. package/cjs/src/utils/processData.d.ts +16 -0
  131. package/cjs/src/utils/processData.d.ts.map +1 -0
  132. package/cjs/src/utils/processData.js +110 -0
  133. package/cjs/src/utils/processData.js.map +1 -0
  134. package/cjs/src/utils/processData.spec.d.ts +2 -0
  135. package/cjs/src/utils/processData.spec.d.ts.map +1 -0
  136. package/cjs/src/utils/processData.spec.js +142 -0
  137. package/cjs/src/utils/processData.spec.js.map +1 -0
  138. package/cjs/src/utils/processTrigger.d.ts +10 -0
  139. package/cjs/src/utils/processTrigger.d.ts.map +1 -0
  140. package/cjs/src/utils/processTrigger.js +63 -0
  141. package/cjs/src/utils/processTrigger.js.map +1 -0
  142. package/cjs/src/utils/processTrigger.spec.d.ts +2 -0
  143. package/cjs/src/utils/processTrigger.spec.d.ts.map +1 -0
  144. package/cjs/src/utils/processTrigger.spec.js +58 -0
  145. package/cjs/src/utils/processTrigger.spec.js.map +1 -0
  146. package/cjs/src/utils.d.ts +68 -0
  147. package/cjs/src/utils.d.ts.map +1 -0
  148. package/cjs/src/utils.js +196 -0
  149. package/cjs/src/utils.js.map +1 -0
  150. package/cjs/src/utils.spec.d.ts +5 -0
  151. package/cjs/src/utils.spec.d.ts.map +1 -0
  152. package/cjs/src/utils.spec.js +98 -0
  153. package/cjs/src/utils.spec.js.map +1 -0
  154. package/dist/src/types.d.ts +5 -1
  155. package/dist/src/types.d.ts.map +1 -1
  156. package/dist/tsembed.es.js +6 -2
  157. package/dist/tsembed.js +6 -2
  158. package/lib/package.json +8 -3
  159. package/lib/src/types.d.ts +5 -1
  160. package/lib/src/types.d.ts.map +1 -1
  161. package/lib/src/types.js +5 -1
  162. package/lib/src/types.js.map +1 -1
  163. package/lib/src/visual-embed-sdk.d.ts +5 -1
  164. package/package.json +8 -3
  165. package/src/types.ts +5 -1
@@ -0,0 +1,1419 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) 2023
4
+ *
5
+ * TypeScript type definitions for ThoughtSpot Visual Embed SDK
6
+ *
7
+ * @summary Type definitions for Embed SDK
8
+ * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.ContextMenuTriggerOptions = exports.PrefetchFeatures = exports.OperationType = exports.Action = exports.Param = exports.DataSourceVisualMode = exports.HostEvent = exports.EmbedEvent = exports.RuntimeFilterOp = exports.AuthType = void 0;
12
+ /**
13
+ * The authentication mechanism for allowing access to the
14
+ * the embedded app
15
+ *
16
+ * @group Authentication / Init
17
+ */
18
+ // eslint-disable-next-line no-shadow
19
+ var AuthType;
20
+ (function (AuthType) {
21
+ /**
22
+ * No authentication on the SDK. Passthrough to the embedded App. Alias for
23
+ * `Passthrough`.
24
+ */
25
+ AuthType["None"] = "None";
26
+ /**
27
+ * Passthrough SSO to the embedded App within the iframe. Requires least
28
+ * configuration, but may not be supported by all IDPs. This will behave like `None`
29
+ * if SSO is not configured on ThoughtSpot.
30
+ *
31
+ * @version: SDK: 1.15.0 | ThouhgtSpot: 8.8.0.cl
32
+ */
33
+ AuthType["EmbeddedSSO"] = "EmbeddedSSO";
34
+ /**
35
+ * SSO using SAML
36
+ *
37
+ * @deprecated Use {@link SAMLRedirect} instead
38
+ * @hidden
39
+ */
40
+ AuthType["SSO"] = "SSO_SAML";
41
+ /**
42
+ * SSO using SAML
43
+ *
44
+ * @deprecated Use {@link SAMLRedirect} instead
45
+ * @hidden
46
+ */
47
+ AuthType["SAML"] = "SSO_SAML";
48
+ /**
49
+ * SSO using SAML
50
+ * Will make the host application redirect to the SAML Idp. Use this
51
+ * when the idp does not allow itself to be embedded.
52
+ *
53
+ * This redirects the host application to the SAML Idp. The host application
54
+ * will be redirected back to the ThoughtSpot app after authentication.
55
+ *
56
+ * @example
57
+ * ```js
58
+ * init({
59
+ * // ...
60
+ * authType: AuthType.SAMLRedirect,
61
+ * });
62
+ * ```
63
+ *
64
+ * This opens the SAML Idp in a popup window. The popup is triggered
65
+ * when the user clicks the trigger button. The popup window will be
66
+ * closed automatically after authentication.
67
+ * @example
68
+ * ```js
69
+ * init({
70
+ * // ...
71
+ * authType: AuthType.SAMLRedirect,
72
+ * authTriggerText: 'Login with SAML',
73
+ * authTriggerContainer: '#embed-container',
74
+ * inPopup: true,
75
+ * });
76
+ * ```
77
+ *
78
+ * Can also use event to trigger the popup flow. Works the same
79
+ * as above example.
80
+ * @example
81
+ * ```js
82
+ * const authEE = init({
83
+ * // ...
84
+ * authType: AuthType.SAMLRedirect,
85
+ * inPopup: true,
86
+ * });
87
+ *
88
+ * someButtonOnYourPage.addEventListener('click', () => {
89
+ * authEE.emit(AuthEvent.TRIGGER_SSO_POPUP);
90
+ * });
91
+ * ```
92
+ */
93
+ AuthType["SAMLRedirect"] = "SSO_SAML";
94
+ /**
95
+ * SSO using OIDC
96
+ *
97
+ * @hidden
98
+ * @deprecated Use {@link OIDCRedirect} instead
99
+ */
100
+ AuthType["OIDC"] = "SSO_OIDC";
101
+ /**
102
+ * SSO using OIDC
103
+ * Will make the host application redirect to the OIDC Idp.
104
+ * See code samples in {@link SAMLRedirect}.
105
+ */
106
+ AuthType["OIDCRedirect"] = "SSO_OIDC";
107
+ /**
108
+ * Trusted authentication server
109
+ *
110
+ * @hidden
111
+ * @deprecated Use {@link TrustedAuth} instead
112
+ */
113
+ AuthType["AuthServer"] = "AuthServer";
114
+ /**
115
+ * Trusted authentication server, Use your own authentication server
116
+ * which returns a bearer token, generated using the secret_key obtained
117
+ * from ThoughtSpot.
118
+ *
119
+ * @example
120
+ * ```js
121
+ * init({
122
+ * // ...
123
+ * authType: AuthType.TrustedAuthToken,
124
+ * getAuthToken: () => {
125
+ * return fetch('https://my-backend.app/ts-token')
126
+ * .then((response) => response.json())
127
+ * .then((data) => data.token);
128
+ * }
129
+ * ```
130
+ */
131
+ AuthType["TrustedAuthToken"] = "AuthServer";
132
+ /**
133
+ * Trusted authentication server Cookieless, Use you own authentication
134
+ * server which returns a bearer token, generated using the secret_key
135
+ * obtained from ThoughtSpot. This uses a cookieless authentication
136
+ * approach, recommended to by pass third-party cookie-blocking restriction
137
+ * implemented by some browsers
138
+ */
139
+ AuthType["TrustedAuthTokenCookieless"] = "AuthServerCookieless";
140
+ /**
141
+ * Use the ThoughtSpot login API to authenticate to the cluster directly.
142
+ *
143
+ * Warning: This feature is primarily intended for developer testing. It is
144
+ * strongly advised not to use this authentication method in production.
145
+ */
146
+ AuthType["Basic"] = "Basic";
147
+ })(AuthType = exports.AuthType || (exports.AuthType = {}));
148
+ /**
149
+ * A map of the supported runtime filter operations
150
+ */
151
+ // eslint-disable-next-line no-shadow
152
+ var RuntimeFilterOp;
153
+ (function (RuntimeFilterOp) {
154
+ /**
155
+ * Equals
156
+ */
157
+ RuntimeFilterOp["EQ"] = "EQ";
158
+ /**
159
+ * Does not equal
160
+ */
161
+ RuntimeFilterOp["NE"] = "NE";
162
+ /**
163
+ * Less than
164
+ */
165
+ RuntimeFilterOp["LT"] = "LT";
166
+ /**
167
+ * Less than or equal to
168
+ */
169
+ RuntimeFilterOp["LE"] = "LE";
170
+ /**
171
+ * Greater than
172
+ */
173
+ RuntimeFilterOp["GT"] = "GT";
174
+ /**
175
+ * Greater than or equal to
176
+ */
177
+ RuntimeFilterOp["GE"] = "GE";
178
+ /**
179
+ * Contains
180
+ */
181
+ RuntimeFilterOp["CONTAINS"] = "CONTAINS";
182
+ /**
183
+ * Begins with
184
+ */
185
+ RuntimeFilterOp["BEGINS_WITH"] = "BEGINS_WITH";
186
+ /**
187
+ * Ends with
188
+ */
189
+ RuntimeFilterOp["ENDS_WITH"] = "ENDS_WITH";
190
+ /**
191
+ * Between, inclusive of higher value
192
+ */
193
+ RuntimeFilterOp["BW_INC_MAX"] = "BW_INC_MAX";
194
+ /**
195
+ * Between, inclusive of lower value
196
+ */
197
+ RuntimeFilterOp["BW_INC_MIN"] = "BW_INC_MIN";
198
+ /**
199
+ * Between, inclusive of both higher and lower value
200
+ */
201
+ RuntimeFilterOp["BW_INC"] = "BW_INC";
202
+ /**
203
+ * Between, non-inclusive
204
+ */
205
+ RuntimeFilterOp["BW"] = "BW";
206
+ /**
207
+ * Is included in this list of values
208
+ */
209
+ RuntimeFilterOp["IN"] = "IN";
210
+ })(RuntimeFilterOp = exports.RuntimeFilterOp || (exports.RuntimeFilterOp = {}));
211
+ /**
212
+ * Event types emitted by the embedded ThoughtSpot application.
213
+ *
214
+ * To add an event listener use the corresponding
215
+ * {@link LiveboardEmbed.on} or {@link AppEmbed.on} or {@link SearchEmbed.on} method.
216
+ *
217
+ * @group Events
218
+ */
219
+ // eslint-disable-next-line no-shadow
220
+ var EmbedEvent;
221
+ (function (EmbedEvent) {
222
+ /**
223
+ * Rendering has initialized.
224
+ *
225
+ * @returns timestamp - The timestamp when the event was generated.
226
+ */
227
+ EmbedEvent["Init"] = "init";
228
+ /**
229
+ * Authentication has either succeeded or failed.
230
+ *
231
+ * @returns isLoggedIn - A Boolean specifying whether authentication was successful.
232
+ */
233
+ EmbedEvent["AuthInit"] = "authInit";
234
+ /**
235
+ * The embed object container has loaded.
236
+ *
237
+ * @returns timestamp - The timestamp when the event was generated.
238
+ */
239
+ EmbedEvent["Load"] = "load";
240
+ /**
241
+ * Data pertaining to answer or Liveboard is received
242
+ *
243
+ * @return data - The answer or Liveboard data
244
+ * @important
245
+ */
246
+ EmbedEvent["Data"] = "data";
247
+ /**
248
+ * Search/answer/Liveboard filters have been applied/updated by the user.
249
+ *
250
+ * @hidden
251
+ */
252
+ EmbedEvent["FiltersChanged"] = "filtersChanged";
253
+ /**
254
+ * Search query has been updated by the user.
255
+ */
256
+ EmbedEvent["QueryChanged"] = "queryChanged";
257
+ /**
258
+ * A drill down operation has been performed.
259
+ *
260
+ * @returns additionalFilters - Any additional filters applied
261
+ * @returns drillDownColumns - The columns on which drill down was performed
262
+ * @returns nonFilteredColumns - The columns that were not filtered
263
+ */
264
+ EmbedEvent["Drilldown"] = "drillDown";
265
+ /**
266
+ * One or more data sources have been selected.
267
+ *
268
+ * @returns dataSourceIds - the list of data sources
269
+ */
270
+ EmbedEvent["DataSourceSelected"] = "dataSourceSelected";
271
+ /**
272
+ * One or more data columns have been selected.
273
+ *
274
+ * @returns columnIds - the list of columns
275
+ * @version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
276
+ */
277
+ EmbedEvent["AddRemoveColumns"] = "addRemoveColumns";
278
+ /**
279
+ * A custom action has been triggered
280
+ *
281
+ * @returns actionId - The id of the custom action
282
+ * @returns data - The answer or Liveboard data
283
+ */
284
+ EmbedEvent["CustomAction"] = "customAction";
285
+ /**
286
+ * Listen to double clicks on a visualization
287
+ *
288
+ * @return ContextMenuInputPoints - data point that is double clicked
289
+ * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
290
+ */
291
+ EmbedEvent["VizPointDoubleClick"] = "vizPointDoubleClick";
292
+ /**
293
+ * Listen to clicks on a visualization in a liveboard or Search result.
294
+ *
295
+ * @example
296
+ * ```js
297
+ * embed.on(ThoughtSpotEmbed.Event.VizPointClick, ({data}) => {
298
+ * console.log(
299
+ * data.vizId, // viz id
300
+ * data.clickedPoint.selectedAttributes[0].value,
301
+ * data.clickedPoint.selectedAttributes[0].column.name,
302
+ * data.clickedPoint.selectedMeasures[0].value,
303
+ * data.clickedPoint.selectedMeasures[0].column.name,
304
+ * )
305
+ * });
306
+ * ```
307
+ * @return {vizId, clickedPoint} - metadata about point that is clicked
308
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
309
+ * @important
310
+ */
311
+ EmbedEvent["VizPointClick"] = "vizPointClick";
312
+ /**
313
+ * An error has occurred.
314
+ *
315
+ * @returns error - An error object or message
316
+ */
317
+ EmbedEvent["Error"] = "Error";
318
+ /**
319
+ * The embedded object has sent an alert
320
+ *
321
+ * @returns alert - An alert object
322
+ */
323
+ EmbedEvent["Alert"] = "alert";
324
+ /**
325
+ * The ThoughtSpot auth session has expired.
326
+ */
327
+ EmbedEvent["AuthExpire"] = "ThoughtspotAuthExpired";
328
+ /**
329
+ * ThoughtSpot failed to validate the auth session.
330
+ *
331
+ * @hidden
332
+ */
333
+ EmbedEvent["AuthFailure"] = "ThoughtspotAuthFailure";
334
+ /**
335
+ * ThoughtSpot failed to validate the auth session.
336
+ *
337
+ * @hidden
338
+ */
339
+ EmbedEvent["AuthLogout"] = "ThoughtspotAuthLogout";
340
+ /**
341
+ * The height of the embedded Liveboard or visualization has been computed.
342
+ *
343
+ * @returns data - The height of the embedded Liveboard or visualization
344
+ * @hidden
345
+ */
346
+ EmbedEvent["EmbedHeight"] = "EMBED_HEIGHT";
347
+ /**
348
+ * The center of visible iframe viewport is calculated.
349
+ *
350
+ * @returns data - The center of the visible Iframe viewport.
351
+ * @hidden
352
+ */
353
+ EmbedEvent["EmbedIframeCenter"] = "EmbedIframeCenter";
354
+ /**
355
+ * Emitted when the "Get Data" button in Search Bar embed
356
+ * is clicked.
357
+ *
358
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.0-sw
359
+ */
360
+ EmbedEvent["GetDataClick"] = "getDataClick";
361
+ /**
362
+ * Detects the route change.
363
+ */
364
+ EmbedEvent["RouteChange"] = "ROUTE_CHANGE";
365
+ /**
366
+ * The v1 event type for Data
367
+ *
368
+ * @hidden
369
+ */
370
+ EmbedEvent["V1Data"] = "exportVizDataToParent";
371
+ /**
372
+ * Emitted when the embed does not have cookie access. This
373
+ * happens on Safari where third-party cookies are blocked by default.
374
+ *
375
+ * @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 7.2.1
376
+ */
377
+ EmbedEvent["NoCookieAccess"] = "noCookieAccess";
378
+ /**
379
+ * Emitted when SAML is complete
380
+ *
381
+ * @private
382
+ * @hidden
383
+ */
384
+ EmbedEvent["SAMLComplete"] = "samlComplete";
385
+ /**
386
+ * Emitted when any modal is opened in the app
387
+ *
388
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
389
+ */
390
+ EmbedEvent["DialogOpen"] = "dialog-open";
391
+ /**
392
+ * Emitted when any modal is closed in the app
393
+ *
394
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
395
+ */
396
+ EmbedEvent["DialogClose"] = "dialog-close";
397
+ /**
398
+ * Emitted when the Liveboard shell loads.
399
+ * You can use this event as a hook to trigger
400
+ * other events on the rendered Liveboard.
401
+ *
402
+ * @version SDK: 1.9.1 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
403
+ */
404
+ EmbedEvent["LiveboardRendered"] = "PinboardRendered";
405
+ /**
406
+ * This can be used to register an event listener which
407
+ * is triggered on all events.
408
+ *
409
+ * @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1-sw
410
+ */
411
+ EmbedEvent["ALL"] = "*";
412
+ /**
413
+ * Emitted when answer is saved in the app
414
+ *
415
+ * @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
416
+ */
417
+ EmbedEvent["Save"] = "save";
418
+ /**
419
+ * Emitted when the download action is triggered on an answer
420
+ *
421
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
422
+ */
423
+ EmbedEvent["Download"] = "download";
424
+ /**
425
+ * Emitted when the download action is triggered on an answer
426
+ *
427
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0-sw
428
+ */
429
+ EmbedEvent["DownloadAsPng"] = "downloadAsPng";
430
+ /**
431
+ * Emitted when the Download as PDF action is triggered on an answer
432
+ *
433
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
434
+ */
435
+ EmbedEvent["DownloadAsPdf"] = "downloadAsPdf";
436
+ /**
437
+ * Emitted when the Download as CSV action is triggered on an answer
438
+ *
439
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
440
+ */
441
+ EmbedEvent["DownloadAsCsv"] = "downloadAsCsv";
442
+ /**
443
+ * Emitted when the Download as XLSX action is triggered on an answer
444
+ *
445
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
446
+ */
447
+ EmbedEvent["DownloadAsXlsx"] = "downloadAsXlsx";
448
+ /**
449
+ * Emitted when an answer is deleted in the app
450
+ *
451
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
452
+ */
453
+ EmbedEvent["AnswerDelete"] = "answerDelete";
454
+ /**
455
+ * Emitted when an answer is pinned to a Liveboard
456
+ *
457
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
458
+ */
459
+ EmbedEvent["Pin"] = "pin";
460
+ /**
461
+ * Emitted when SpotIQ analysis is triggered
462
+ *
463
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
464
+ */
465
+ EmbedEvent["SpotIQAnalyze"] = "spotIQAnalyze";
466
+ /**
467
+ * Emitted when a user shares an object with another user or group
468
+ *
469
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
470
+ */
471
+ EmbedEvent["Share"] = "share";
472
+ /**
473
+ * Emitted when a user clicks the Include action to include a specific value or data
474
+ * on a chart or table
475
+ *
476
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
477
+ */
478
+ EmbedEvent["DrillInclude"] = "context-menu-item-include";
479
+ /**
480
+ * Emitted when a user clicks the Exclude action to exclude a specific value or data
481
+ * on a chart or table
482
+ *
483
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
484
+ */
485
+ EmbedEvent["DrillExclude"] = "context-menu-item-exclude";
486
+ /**
487
+ * Emitted when copied column value on the app
488
+ *
489
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
490
+ */
491
+ EmbedEvent["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
492
+ /**
493
+ * Emitted when a user clicks the Update TML action
494
+ *
495
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
496
+ */
497
+ EmbedEvent["UpdateTML"] = "updateTSL";
498
+ /**
499
+ * Emitted when a user clicks the Edit TML action
500
+ *
501
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
502
+ */
503
+ EmbedEvent["EditTML"] = "editTSL";
504
+ /**
505
+ * Emitted when ExportTML trigger in answer on the app
506
+ *
507
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
508
+ */
509
+ EmbedEvent["ExportTML"] = "exportTSL";
510
+ /**
511
+ * Emitted when an answer is saved as a view
512
+ *
513
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
514
+ */
515
+ EmbedEvent["SaveAsView"] = "saveAsView";
516
+ /**
517
+ * Emitted when copy of existing answer on the app
518
+ *
519
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
520
+ */
521
+ EmbedEvent["CopyAEdit"] = "copyAEdit";
522
+ /**
523
+ * Emitted when a user clicks Show underlying data on an answe
524
+ *
525
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
526
+ */
527
+ EmbedEvent["ShowUnderlyingData"] = "showUnderlyingData";
528
+ /**
529
+ * Emitted when an answer is switched to a chart or table view
530
+ *
531
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
532
+ */
533
+ EmbedEvent["AnswerChartSwitcher"] = "answerChartSwitcher";
534
+ /**
535
+ * Internal event to communicate the initial settings back to the TS APP
536
+ *
537
+ * @hidden
538
+ */
539
+ EmbedEvent["APP_INIT"] = "appInit";
540
+ /**
541
+ * Emitted when a user clicks Show Liveboard details on a Liveboard
542
+ *
543
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
544
+ */
545
+ EmbedEvent["LiveboardInfo"] = "pinboardInfo";
546
+ /**
547
+ * Emitted when a user clicks on the Favorite icon on a Liveboard
548
+ *
549
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
550
+ */
551
+ EmbedEvent["AddToFavorites"] = "addToFavorites";
552
+ /**
553
+ * Emitted when a user clicks Schedule on a Liveboard
554
+ *
555
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
556
+ */
557
+ EmbedEvent["Schedule"] = "subscription";
558
+ /**
559
+ * Emitted when a user clicks Edit on a Liveboard or visualization
560
+ *
561
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
562
+ */
563
+ EmbedEvent["Edit"] = "edit";
564
+ /**
565
+ * Emitted when a user clicks Make a copy on a Liveboard
566
+ *
567
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
568
+ */
569
+ EmbedEvent["MakeACopy"] = "makeACopy";
570
+ /**
571
+ * Emitted when a user clicks Present on a Liveboard or visualization
572
+ *
573
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
574
+ */
575
+ EmbedEvent["Present"] = "present";
576
+ /**
577
+ * Emitted when a user clicks Delete on a Liveboard
578
+ *
579
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
580
+ */
581
+ EmbedEvent["Delete"] = "delete";
582
+ /**
583
+ * Emitted when a user clicks Manage schedules on a Liveboard
584
+ *
585
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
586
+ */
587
+ EmbedEvent["SchedulesList"] = "schedule-list";
588
+ /**
589
+ * Emitted when a user clicks Cancel in edit mode on a Liveboard
590
+ *
591
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
592
+ */
593
+ EmbedEvent["Cancel"] = "cancel";
594
+ /**
595
+ * Emitted when a user clicks Explore on a visualization
596
+ *
597
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
598
+ */
599
+ EmbedEvent["Explore"] = "explore";
600
+ /**
601
+ * Emitted when a user clicks Copy link action on a visualization
602
+ *
603
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
604
+ */
605
+ EmbedEvent["CopyLink"] = "embedDocument";
606
+ /**
607
+ * Emitted when a user interacts with cross filters on a visualization or liveboard
608
+ *
609
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
610
+ */
611
+ EmbedEvent["CrossFilterChanged"] = "cross-filter-changed";
612
+ /**
613
+ * Emitted when a user right clicks on a visualization (chart or table)
614
+ *
615
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
616
+ */
617
+ EmbedEvent["VizPointRightClick"] = "vizPointRightClick";
618
+ /**
619
+ * Emitted when a user clicks on Insert to slide on a visualization
620
+ *
621
+ * @hidden
622
+ */
623
+ EmbedEvent["InsertIntoSlide"] = "insertInToSlide";
624
+ })(EmbedEvent = exports.EmbedEvent || (exports.EmbedEvent = {}));
625
+ /**
626
+ * Event types that can be triggered by the host application
627
+ * to the embedded ThoughtSpot app
628
+ *
629
+ * To trigger an event use the corresponding
630
+ * {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
631
+ * SearchEmbed.trigger} method.
632
+ *
633
+ * @group Events
634
+ */
635
+ // eslint-disable-next-line no-shadow
636
+ var HostEvent;
637
+ (function (HostEvent) {
638
+ /**
639
+ * Trigger a search
640
+ *
641
+ * @param - dataSourceIds - The data source GUID to Search on
642
+ * - Although an array, only a single source
643
+ * is supported at this time.
644
+ * @param - searchQuery - The search query
645
+ * @param - execute - execute the existing / updated query
646
+ * @example
647
+ * ```js
648
+ * searchEmbed.trigger(HostEvent.Search, {
649
+ * searchQuery: "[sales] by [item type],
650
+ * dataSourceIds: ["cd252e5c-b552-49a8-821d-3eadaa049cca"]
651
+ * execute: true
652
+ * })
653
+ * ```
654
+ */
655
+ HostEvent["Search"] = "search";
656
+ /**
657
+ * Trigger a drill on certain points by certain column
658
+ *
659
+ * @param - points - an object containing selectedPoints/clickedPoints
660
+ * eg. { selectedPoints: []}
661
+ * @param - columnGuid - a string guid of the column to drill by. This is optional,
662
+ * if not provided it will auto drill by the configured
663
+ * column.
664
+ * @example
665
+ * ```js
666
+ * searchEmbed.trigger(HostEvent.DrillDown, {
667
+ * points: clickedPointData,
668
+ * autoDrillDown: true,
669
+ * })
670
+ * ```
671
+ * @version SDK: 1.5.0 | ThoughtSpot: ts7.oct.cl, 7.2.1
672
+ */
673
+ HostEvent["DrillDown"] = "triggerDrillDown";
674
+ /**
675
+ * Apply filters
676
+ *
677
+ * @hidden
678
+ */
679
+ HostEvent["Filter"] = "filter";
680
+ /**
681
+ * Reload the answer or visualization
682
+ *
683
+ * @hidden
684
+ */
685
+ HostEvent["Reload"] = "reload";
686
+ /**
687
+ * Set the visible visualizations on a Liveboard.
688
+ *
689
+ * @param - an array of ids of visualizations to show, the ids not passed
690
+ * will be hidden.
691
+ * @example
692
+ * liveboardEmbed.trigger(HostEvent.SetVisibleVizs, [
693
+ * '730496d6-6903-4601-937e-2c691821af3c',
694
+ * 'd547ec54-2a37-4516-a222-2b06719af726'])
695
+ * @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1-sw
696
+ */
697
+ HostEvent["SetVisibleVizs"] = "SetPinboardVisibleVizs";
698
+ /**
699
+ * Update the runtime filters. The runtime filters passed here are extended
700
+ * on to the existing runtime filters if they exist.
701
+ *
702
+ * @param - {@link RuntimeFilter}[] an array of {@link RuntimeFilter} Types.
703
+ * @example
704
+ * liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
705
+ * {columnName: "state",operator: RuntimeFilterOp.EQ,values: ["michigan"]},
706
+ * {columnName: "item type",operator: RuntimeFilterOp.EQ,values: ["Jackets"]}
707
+ * ])
708
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
709
+ * @important
710
+ */
711
+ HostEvent["UpdateRuntimeFilters"] = "UpdateRuntimeFilters";
712
+ /**
713
+ * Navigate to a specific page in App embed without any reload.
714
+ * This is the same as calling `appEmbed.navigateToPage(path, true)`
715
+ *
716
+ * @param - path - the path to navigate to (can be a number[1/-1] to go forward/back)
717
+ * @example
718
+ * ```js
719
+ * appEmbed.navigateToPage(-1)
720
+ * ```
721
+ * @version SDK: 1.12.0 | ThoughtSpot 8.4.0.cl, 8.4.1-sw
722
+ */
723
+ HostEvent["Navigate"] = "Navigate";
724
+ /**
725
+ * Opens the filter panel for a particular column.
726
+ * Works with Search embed.
727
+ *
728
+ * @param - { columnId: string,
729
+ * name: string,
730
+ * type: INT64/CHAR/DATE,
731
+ * dataType: ATTRIBUTE/MEASURE }
732
+ * @example
733
+ * ```js
734
+ * searchEmbed.trigger(HostEvent.OpenFilter,
735
+ * { columnId: '123', name: 'column name', type: 'INT64', dataType: 'ATTRIBUTE' })
736
+ * ```
737
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
738
+ */
739
+ HostEvent["OpenFilter"] = "openFilter";
740
+ /**
741
+ * Adds the columns to the current Search.
742
+ *
743
+ * @param - { columnIds: string[] }
744
+ * @example
745
+ * ```js
746
+ * searchEmbed.trigger(HostEvent.AddColumns, { columnIds: ['123', '456'] })
747
+ * ```
748
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
749
+ */
750
+ HostEvent["AddColumns"] = "addColumns";
751
+ /**
752
+ * Removes a column from the current Search.
753
+ *
754
+ * @param - { columnId: string }
755
+ * @example
756
+ * ```js
757
+ * searchEmbed.trigger(HostEvent.RemoveColumn, { columnId: '123' })
758
+ * ```
759
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
760
+ */
761
+ HostEvent["RemoveColumn"] = "removeColumn";
762
+ /**
763
+ * Gets the current pinboard content.
764
+ *
765
+ * @example
766
+ * ```js
767
+ * liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard)
768
+ * ```
769
+ * @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1-sw
770
+ */
771
+ HostEvent["getExportRequestForCurrentPinboard"] = "getExportRequestForCurrentPinboard";
772
+ /**
773
+ * Triggers the Pin action on an embedded object
774
+ *
775
+ * @param - incase of Liveboard embed, takes in an object with vizId as a key
776
+ * can be left empty for search and visualization embeds
777
+ * @example
778
+ * ```js
779
+ * liveboardEmbed.trigger(HostEvent.Pin, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
780
+ * vizEmbed.trigger(HostEvent.Pin)
781
+ * searchEmbed.trigger(HostEvent.Pin)
782
+ * ```
783
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
784
+ */
785
+ HostEvent["Pin"] = "pin";
786
+ /**
787
+ * Triggers the Show Liveboard details action on a Liveboard
788
+ *
789
+ * @example
790
+ * ```js
791
+ * liveboardEmbed.trigger(HostEvent.LiveboardInfo)
792
+ * ```
793
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
794
+ */
795
+ HostEvent["LiveboardInfo"] = "pinboardInfo";
796
+ /**
797
+ * Triggers the Schedule action on a Liveboard
798
+ *
799
+ * @example
800
+ * ```js
801
+ * liveboardEmbed.trigger(HostEvent.Schedule)
802
+ * ```
803
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
804
+ */
805
+ HostEvent["Schedule"] = "subscription";
806
+ /**
807
+ * Triggers the Manage schedule action on a Liveboard
808
+ *
809
+ * @example
810
+ * ```js
811
+ * liveboardEmbed.trigger(HostEvent.ScheduleList)
812
+ * ```
813
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
814
+ */
815
+ HostEvent["SchedulesList"] = "schedule-list";
816
+ /**
817
+ * Triggers the Export TML action on a Liveboard
818
+ *
819
+ * @example
820
+ * ```js
821
+ * liveboardEmbed.trigger(HostEvent.ExportTML)
822
+ * ```
823
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
824
+ */
825
+ HostEvent["ExportTML"] = "exportTSL";
826
+ /**
827
+ * Triggers the Edit TML action on a Liveboard
828
+ *
829
+ * @example
830
+ * ```js
831
+ * liveboardEmbed.trigger(HostEvent.EditTML)
832
+ * ```
833
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
834
+ */
835
+ HostEvent["EditTML"] = "editTSL";
836
+ /**
837
+ * Triggers the Update TML action on a Liveboard
838
+ *
839
+ * @example
840
+ * ```js
841
+ * liveboardEmbed.trigger(HostEvent.UpdateTML)
842
+ * ```
843
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
844
+ */
845
+ HostEvent["UpdateTML"] = "updateTSL";
846
+ /**
847
+ * Triggers the Download PDF action on a Liveboard
848
+ *
849
+ * @example
850
+ * ```js
851
+ * liveboardEmbed.trigger(HostEvent.DownloadAsPDF)
852
+ * ```
853
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
854
+ */
855
+ HostEvent["DownloadAsPdf"] = "downloadAsPdf";
856
+ /**
857
+ * Triggers the Make a copy action on a Liveboard, search or visualization
858
+ *
859
+ * @example
860
+ * ```js
861
+ * liveboardEmbed.trigger(HostEvent.MakeACopy, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
862
+ * vizEmbed.trigger(HostEvent.MakeACopy)
863
+ * searchEmbed.trigger(HostEvent.MakeACopy)
864
+ * ```
865
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
866
+ */
867
+ HostEvent["MakeACopy"] = "makeACopy";
868
+ /**
869
+ * Triggers the Delete action on a Liveboard
870
+ *
871
+ * @example
872
+ * ```js
873
+ * appEmbed.trigger(HostEvent.Remove)
874
+ * ```
875
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
876
+ */
877
+ HostEvent["Remove"] = "delete";
878
+ /**
879
+ * Triggers the Explore action on a visualization
880
+ *
881
+ * @param - an object with vizId as a key
882
+ * @example
883
+ * ```js
884
+ * liveboardEmbed.trigger(HostEvent.Explore, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
885
+ * ```
886
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
887
+ */
888
+ HostEvent["Explore"] = "explore";
889
+ /**
890
+ * Triggers the Create alert action on a visualization
891
+ *
892
+ * @param - an object with vizId as a key
893
+ * @example
894
+ * ```js
895
+ * liveboardEmbed.trigger(HostEvent.CreateMonitor {
896
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
897
+ * })
898
+ * ```
899
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
900
+ */
901
+ HostEvent["CreateMonitor"] = "createMonitor";
902
+ /**
903
+ * Triggers the Manage alert action on a visualization
904
+ *
905
+ * @param - an object with vizId as a key
906
+ * @example
907
+ * ```js
908
+ * liveboardEmbed.trigger(HostEvent.ManageMonitor, {
909
+ * vizId: '730496d6-6903-4601-937e-2c691821af3c'
910
+ * })
911
+ * ```
912
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
913
+ */
914
+ HostEvent["ManageMonitor"] = "manageMonitor";
915
+ /**
916
+ * Triggers the Edit action on a Liveboard or visualization
917
+ *
918
+ * @param - object - to trigger the action for a specfic visualization
919
+ * in Liveboard embed, pass in vizId as a key
920
+ * @example
921
+ * liveboardEmbed.trigger(HostEvent.Edit)
922
+ * liveboardEmbed.trigger(HostEvent.Edit, {vizId:
923
+ * '730496d6-6903-4601-937e-2c691821af3c'})
924
+ * vizEmbed.trigger((HostEvent.Edit)
925
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
926
+ */
927
+ HostEvent["Edit"] = "edit";
928
+ /**
929
+ * Triggers the Copy link action on a Liveboard or visualization
930
+ *
931
+ * @param - object - to trigger the action for a s
932
+ * pecfic visualization in Liveboard embed, pass in vizId as a key
933
+ * @example
934
+ * ```js
935
+ * liveboardEmbed.trigger(HostEvent.CopyLink)
936
+ * liveboardEmbed.trigger(HostEvent.CopyLink, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
937
+ * vizEmbed.trigger((HostEvent.CopyLink)
938
+ * ```
939
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
940
+ */
941
+ HostEvent["CopyLink"] = "embedDocument";
942
+ /**
943
+ * Triggers the Present action on a Liveboard or visualization
944
+ *
945
+ * @param - object - to trigger the action for a specfic visualization
946
+ * in Liveboard embed, pass in vizId as a key
947
+ * @example
948
+ * ```js
949
+ * liveboardEmbed.trigger(HostEvent.Present)
950
+ * liveboardEmbed.trigger(HostEvent.Present, {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
951
+ * vizEmbed.trigger((HostEvent.Present)
952
+ * ```
953
+ * @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1-sw
954
+ */
955
+ HostEvent["Present"] = "present";
956
+ /**
957
+ * Get TML for the current search.
958
+ *
959
+ * @example
960
+ * ```js
961
+ * searchEmbed.trigger(HostEvent.GetTML).then((tml) => {
962
+ * console.log(
963
+ * tml.search_query // TML representation of the search query
964
+ * );
965
+ * })
966
+ * ```
967
+ * @version SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
968
+ * @important
969
+ */
970
+ HostEvent["GetTML"] = "getTML";
971
+ /**
972
+ * Triggers the ShowUnderlyingData action on visualization or search
973
+ *
974
+ * @param - an object with vizId as a key
975
+ * @example
976
+ * liveboardEmbed.trigger(HostEvent.ShowUnderlyingData, {vizId:
977
+ * '730496d6-6903-4601-937e-2c691821af3c'})
978
+ * vizEmbed.trigger(HostEvent.ShowUnderlyingData)
979
+ * searchEmbed.trigger(HostEvent.ShowUnderlyingData)
980
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
981
+ */
982
+ HostEvent["ShowUnderlyingData"] = "showUnderlyingData";
983
+ /**
984
+ * Triggers the Delete action on visualization or search
985
+ *
986
+ * @param - incase of Liveboard embed, takes in an object with vizId as a key
987
+ * can be left empty for search and visualization embeds
988
+ * @example
989
+ * liveboardEmbed.trigger(HostEvent.Delete, {vizId:
990
+ * '730496d6-6903-4601-937e-2c691821af3c'})
991
+ * vizEmbed.trigger(HostEvent.Delete)
992
+ * searchEmbed.trigger(HostEvent.Delete)
993
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
994
+ */
995
+ HostEvent["Delete"] = "delete";
996
+ /**
997
+ * Triggers the SpotIQAnalyze action on visualization or search
998
+ *
999
+ * @param - incase of Liveboard embed, takes in an object with vizId as a key
1000
+ * can be left empty for search and visualization embeds
1001
+ * @example
1002
+ * liveboardEmbed.trigger(HostEvent.SpotIQAnalyze, {vizId:
1003
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1004
+ * vizEmbed.trigger(HostEvent.SpotIQAnalyze)
1005
+ * searchEmbed.trigger(HostEvent.SpotIQAnalyze)
1006
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1007
+ */
1008
+ HostEvent["SpotIQAnalyze"] = "spotIQAnalyze";
1009
+ /**
1010
+ * Triggers the Download action on visualization or search when Displaymode is Chart
1011
+ *
1012
+ * @example
1013
+ * liveboardEmbed.trigger(HostEvent.Download, {vizId:
1014
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1015
+ * vizEmbed.trigger(HostEvent.Download)
1016
+ * searchEmbed.trigger(HostEvent.Download)
1017
+ * @deprecated from SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1-sw, Please use DownloadAsPng
1018
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1019
+ */
1020
+ HostEvent["Download"] = "downloadAsPng";
1021
+ /**
1022
+ * Triggers the Download action on visualization or search when Displaymode is Chart
1023
+ *
1024
+ * @example
1025
+ * ```js
1026
+ * liveboardEmbed.trigger(HostEvent.DownloadAsPng,
1027
+ * {vizId:'730496d6-6903-4601-937e-2c691821af3c'})
1028
+ * ```
1029
+ * ```js
1030
+ * vizEmbed.trigger(HostEvent.DownloadAsPng)
1031
+ * ```
1032
+ * ```js
1033
+ * searchEmbed.trigger(HostEvent.DownloadAsPng)
1034
+ * ```
1035
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.1-sw
1036
+ */
1037
+ HostEvent["DownloadAsPng"] = "downloadAsPng";
1038
+ /**
1039
+ * Triggers the downloadAsCSV action on visualization or search
1040
+ *
1041
+ * @example
1042
+ * liveboardEmbed.trigger(HostEvent.DownloadAsCsv, {vizId:
1043
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1044
+ * vizEmbed.trigger(HostEvent.DownloadAsCsv)
1045
+ * searchEmbed.trigger(HostEvent.DownloadAsCsv)
1046
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1047
+ */
1048
+ HostEvent["DownloadAsCsv"] = "downloadAsCSV";
1049
+ /**
1050
+ * Triggers the downloadAsXLSX action on visualization or search
1051
+ *
1052
+ * @example
1053
+ * liveboardEmbed.trigger(HostEvent.DownloadAsXlsx, {vizId:
1054
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1055
+ * vizEmbed.trigger(HostEvent.DownloadAsXlsx)
1056
+ * searchEmbed.trigger(HostEvent.DownloadAsXlsx)
1057
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1058
+ */
1059
+ HostEvent["DownloadAsXlsx"] = "downloadAsXLSX";
1060
+ /**
1061
+ * Triggers the Share action on a liveboard or answer
1062
+ *
1063
+ * @example
1064
+ * liveboardEmbed.trigger(HostEvent.Share)
1065
+ * searchEmbed.trigger(HostEvent.Share)
1066
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1067
+ */
1068
+ HostEvent["Share"] = "share";
1069
+ /**
1070
+ * Trigger the Save action on a liveboard or answer
1071
+ *
1072
+ * @example
1073
+ * liveboardEmbed.trigger(HostEvent.Save)
1074
+ * searchEmbed.trigger(HostEvent.Save)
1075
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1076
+ */
1077
+ HostEvent["Save"] = "save";
1078
+ /**
1079
+ * Triggers the SyncToSheets action on visualization
1080
+ *
1081
+ * @param - an object with vizId as a key
1082
+ * @example
1083
+ * liveboardEmbed.trigger(HostEvent.SyncToSheets, {vizId:
1084
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1085
+ * vizEmbed.trigger(HostEvent.SyncToSheets)
1086
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1087
+ */
1088
+ HostEvent["SyncToSheets"] = "sync-to-sheets";
1089
+ /**
1090
+ * Triggers the SyncToOtherApps action on visualization
1091
+ *
1092
+ * @param - an object with vizId as a key
1093
+ * @example
1094
+ * liveboardEmbed.trigger(HostEvent.SyncToOtherApps, {vizId:
1095
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1096
+ * vizEmbed.trigger(HostEvent.SyncToOtherApps)
1097
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1098
+ */
1099
+ HostEvent["SyncToOtherApps"] = "sync-to-other-apps";
1100
+ /**
1101
+ * Triggers the ManagePipelines action on visualization
1102
+ *
1103
+ * @param - an object with vizId as a key
1104
+ * @example
1105
+ * liveboardEmbed.trigger(HostEvent.ManagePipelines, {vizId:
1106
+ * '730496d6-6903-4601-937e-2c691821af3c'})
1107
+ * vizEmbed.trigger(HostEvent.ManagePipelines)
1108
+ * @version SDK: 1.19.0 | ThoughtSpot: 9.0.0.cl, 9.0.1-sw
1109
+ */
1110
+ HostEvent["ManagePipelines"] = "manage-pipeline";
1111
+ /**
1112
+ * Triggers the Reset search in answer
1113
+ *
1114
+ * @example
1115
+ * searchEmbed.trigger(HostEvent.SearchReset
1116
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.0.1-sw
1117
+ */
1118
+ HostEvent["ResetSearch"] = "resetSearch";
1119
+ })(HostEvent = exports.HostEvent || (exports.HostEvent = {}));
1120
+ /**
1121
+ * The different visual modes that the data sources panel within
1122
+ * search could appear in, i.e., hidden, collapsed, or expanded.
1123
+ */
1124
+ // eslint-disable-next-line no-shadow
1125
+ var DataSourceVisualMode;
1126
+ (function (DataSourceVisualMode) {
1127
+ /**
1128
+ * Data source panel is hidden.
1129
+ */
1130
+ DataSourceVisualMode["Hidden"] = "hide";
1131
+ /**
1132
+ * Data source panel is collapsed, but the user can manually expand it.
1133
+ */
1134
+ DataSourceVisualMode["Collapsed"] = "collapse";
1135
+ /**
1136
+ * Data source panel is expanded, but the user can manually collapse it.
1137
+ */
1138
+ DataSourceVisualMode["Expanded"] = "expand";
1139
+ })(DataSourceVisualMode = exports.DataSourceVisualMode || (exports.DataSourceVisualMode = {}));
1140
+ /**
1141
+ * The query params passed down to the embedded ThoughtSpot app
1142
+ * containing configuration and/or visual information.
1143
+ */
1144
+ // eslint-disable-next-line no-shadow
1145
+ var Param;
1146
+ (function (Param) {
1147
+ Param["EmbedApp"] = "embedApp";
1148
+ Param["DataSources"] = "dataSources";
1149
+ Param["DataSourceMode"] = "dataSourceMode";
1150
+ Param["DisableActions"] = "disableAction";
1151
+ Param["DisableActionReason"] = "disableHint";
1152
+ Param["ForceTable"] = "forceTable";
1153
+ Param["preventLiveboardFilterRemoval"] = "preventPinboardFilterRemoval";
1154
+ Param["SearchQuery"] = "searchQuery";
1155
+ Param["HideActions"] = "hideAction";
1156
+ Param["HideObjects"] = "hideObjects";
1157
+ Param["HostAppUrl"] = "hostAppUrl";
1158
+ Param["EnableVizTransformations"] = "enableVizTransform";
1159
+ Param["EnableSearchAssist"] = "enableSearchAssist";
1160
+ Param["HideResult"] = "hideResult";
1161
+ Param["UseLastSelectedDataSource"] = "useLastSelectedSources";
1162
+ Param["Tag"] = "tag";
1163
+ Param["searchTokenString"] = "searchTokenString";
1164
+ Param["executeSearch"] = "executeSearch";
1165
+ Param["fullHeight"] = "isFullHeightPinboard";
1166
+ Param["livedBoardEmbed"] = "isLiveboardEmbed";
1167
+ Param["searchEmbed"] = "isSearchEmbed";
1168
+ Param["vizEmbed"] = "isVizEmbed";
1169
+ Param["Version"] = "sdkVersion";
1170
+ Param["ViewPortHeight"] = "viewPortHeight";
1171
+ Param["ViewPortWidth"] = "viewPortWidth";
1172
+ Param["VisibleActions"] = "visibleAction";
1173
+ Param["CustomCSSUrl"] = "customCssUrl";
1174
+ Param["DisableLoginRedirect"] = "disableLoginRedirect";
1175
+ Param["visibleVizs"] = "pinboardVisibleVizs";
1176
+ Param["LiveboardV2Enabled"] = "isPinboardV2Enabled";
1177
+ Param["ShowAlerts"] = "showAlerts";
1178
+ Param["Locale"] = "locale";
1179
+ Param["CustomStyle"] = "customStyle";
1180
+ Param["ForceSAMLAutoRedirect"] = "forceSAMLAutoRedirect";
1181
+ // eslint-disable-next-line @typescript-eslint/no-shadow
1182
+ Param["AuthType"] = "authType";
1183
+ Param["IconSpriteUrl"] = "iconSprite";
1184
+ Param["cookieless"] = "cookieless";
1185
+ Param["ContextMenuTrigger"] = "isContextMenuEnabledOnLeftClick";
1186
+ Param["LinkOverride"] = "linkOverride";
1187
+ Param["ShowInsertToSlide"] = "insertInToSlide";
1188
+ Param["PrimaryNavHidden"] = "primaryNavHidden";
1189
+ Param["HideProfleAndHelp"] = "profileAndHelpInNavBarHidden";
1190
+ })(Param = exports.Param || (exports.Param = {}));
1191
+ /**
1192
+ * The list of actions that can be performed on visual ThoughtSpot
1193
+ * entities, such as answers and Liveboards.
1194
+ */
1195
+ // eslint-disable-next-line no-shadow
1196
+ var Action;
1197
+ (function (Action) {
1198
+ Action["Save"] = "save";
1199
+ /**
1200
+ * @hidden
1201
+ */
1202
+ Action["Update"] = "update";
1203
+ /**
1204
+ * @hidden
1205
+ */
1206
+ Action["SaveUntitled"] = "saveUntitled";
1207
+ Action["SaveAsView"] = "saveAsView";
1208
+ Action["MakeACopy"] = "makeACopy";
1209
+ Action["EditACopy"] = "editACopy";
1210
+ Action["CopyLink"] = "embedDocument";
1211
+ /**
1212
+ * @hidden
1213
+ */
1214
+ Action["ResetLayout"] = "resetLayout";
1215
+ Action["Schedule"] = "subscription";
1216
+ Action["SchedulesList"] = "schedule-list";
1217
+ Action["Share"] = "share";
1218
+ Action["AddFilter"] = "addFilter";
1219
+ Action["ConfigureFilter"] = "configureFilter";
1220
+ Action["CollapseDataSources"] = "collapseDataSources";
1221
+ Action["ChooseDataSources"] = "chooseDataSources";
1222
+ Action["AddFormula"] = "addFormula";
1223
+ Action["AddParameter"] = "addParameter";
1224
+ /**
1225
+ * @hidden
1226
+ */
1227
+ Action["SearchOnTop"] = "searchOnTop";
1228
+ Action["SpotIQAnalyze"] = "spotIQAnalyze";
1229
+ /**
1230
+ * @hidden
1231
+ */
1232
+ Action["ExplainInsight"] = "explainInsight";
1233
+ /**
1234
+ * @hidden
1235
+ */
1236
+ Action["SpotIQFollow"] = "spotIQFollow";
1237
+ Action["ShareViz"] = "shareViz";
1238
+ /**
1239
+ * @hidden
1240
+ */
1241
+ Action["ReplaySearch"] = "replaySearch";
1242
+ Action["ShowUnderlyingData"] = "showUnderlyingData";
1243
+ Action["Download"] = "download";
1244
+ Action["DownloadAsPng"] = "downloadAsPng";
1245
+ Action["DownloadAsPdf"] = "downloadAsPdf";
1246
+ Action["DownloadAsCsv"] = "downloadAsCSV";
1247
+ Action["DownloadAsXlsx"] = "downloadAsXLSX";
1248
+ /**
1249
+ * @hidden
1250
+ */
1251
+ Action["DownloadTrace"] = "downloadTrace";
1252
+ Action["ExportTML"] = "exportTSL";
1253
+ Action["ImportTML"] = "importTSL";
1254
+ Action["UpdateTML"] = "updateTSL";
1255
+ Action["EditTML"] = "editTSL";
1256
+ Action["Present"] = "present";
1257
+ Action["ToggleSize"] = "toggleSize";
1258
+ Action["Edit"] = "edit";
1259
+ Action["EditTitle"] = "editTitle";
1260
+ Action["Remove"] = "delete";
1261
+ /**
1262
+ * @hidden
1263
+ */
1264
+ Action["Ungroup"] = "ungroup";
1265
+ /**
1266
+ * @hidden
1267
+ */
1268
+ Action["Describe"] = "describe";
1269
+ /**
1270
+ * @hidden
1271
+ */
1272
+ Action["Relate"] = "relate";
1273
+ /**
1274
+ * @hidden
1275
+ */
1276
+ Action["CustomizeHeadlines"] = "customizeHeadlines";
1277
+ /**
1278
+ * @hidden
1279
+ */
1280
+ Action["PinboardInfo"] = "pinboardInfo";
1281
+ Action["LiveboardInfo"] = "pinboardInfo";
1282
+ /**
1283
+ * @hidden
1284
+ */
1285
+ Action["SendAnswerFeedback"] = "sendFeedback";
1286
+ /**
1287
+ * @hidden
1288
+ */
1289
+ Action["DownloadEmbraceQueries"] = "downloadEmbraceQueries";
1290
+ Action["Pin"] = "pin";
1291
+ /**
1292
+ * @hidden
1293
+ */
1294
+ Action["AnalysisInfo"] = "analysisInfo";
1295
+ Action["Subscription"] = "subscription";
1296
+ Action["Explore"] = "explore";
1297
+ Action["DrillInclude"] = "context-menu-item-include";
1298
+ Action["DrillExclude"] = "context-menu-item-exclude";
1299
+ Action["CopyToClipboard"] = "context-menu-item-copy-to-clipboard";
1300
+ Action["CopyAndEdit"] = "context-menu-item-copy-and-edit";
1301
+ /**
1302
+ * @hidden
1303
+ */
1304
+ Action["DrillEdit"] = "context-menu-item-edit";
1305
+ Action["EditMeasure"] = "context-menu-item-edit-measure";
1306
+ Action["Separator"] = "context-menu-item-separator";
1307
+ /**
1308
+ * @hidden
1309
+ */
1310
+ Action["DrillDown"] = "DRILL";
1311
+ Action["RequestAccess"] = "requestAccess";
1312
+ Action["QueryDetailsButtons"] = "queryDetailsButtons";
1313
+ /**
1314
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1315
+ */
1316
+ Action["AnswerDelete"] = "onDeleteAnswer";
1317
+ /**
1318
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1319
+ */
1320
+ Action["AnswerChartSwitcher"] = "answerChartSwitcher";
1321
+ /**
1322
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1323
+ */
1324
+ Action["AddToFavorites"] = "addToFavorites";
1325
+ /**
1326
+ * @version SDK: 1.9.0 | ThoughtSpot: 8.1.0.cl, 8.4.1-sw
1327
+ */
1328
+ Action["EditDetails"] = "editDetails";
1329
+ /**
1330
+ * @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1331
+ */
1332
+ Action["CreateMonitor"] = "createMonitor";
1333
+ /**
1334
+ * @version SDK: 1.11.1 | ThoughtSpot: 8.3.0.cl, 8.4.1-sw
1335
+ */
1336
+ Action["ReportError"] = "reportError";
1337
+ Action["SyncToSheets"] = "sync-to-sheets";
1338
+ Action["SyncToOtherApps"] = "sync-to-other-apps";
1339
+ Action["ManagePipelines"] = "manage-pipeline";
1340
+ /**
1341
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1342
+ */
1343
+ Action["CrossFilter"] = "context-menu-item-cross-filter";
1344
+ /**
1345
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1346
+ */
1347
+ Action["RemoveCrossFilter"] = "context-menu-item-remove-cross-filter";
1348
+ /**
1349
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1350
+ */
1351
+ Action["AxisMenuAggregate"] = "axisMenuAggregate";
1352
+ /**
1353
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1354
+ */
1355
+ Action["AxisMenuTimeBucket"] = "axisMenuTimeBucket";
1356
+ /**
1357
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1358
+ */
1359
+ Action["AxisMenuFilter"] = "axisMenuFilter";
1360
+ /**
1361
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1362
+ */
1363
+ Action["AxisMenuConditionalFormat"] = "axisMenuConditionalFormat";
1364
+ /**
1365
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1366
+ */
1367
+ Action["AxisMenuSort"] = "axisMenuSort";
1368
+ /**
1369
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1370
+ */
1371
+ Action["AxisMenuGroup"] = "axisMenuGroup";
1372
+ /**
1373
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1374
+ */
1375
+ Action["AxisMenuPosition"] = "axisMenuPosition";
1376
+ /**
1377
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1378
+ */
1379
+ Action["AxisMenuRename"] = "axisMenuRename";
1380
+ /**
1381
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1382
+ */
1383
+ Action["AxisMenuEdit"] = "axisMenuEdit";
1384
+ /**
1385
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1386
+ */
1387
+ Action["AxisMenuNumberFormat"] = "axisMenuNumberFormat";
1388
+ /**
1389
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1390
+ */
1391
+ Action["AxisMenuTextWrapping"] = "axisMenuTextWrapping";
1392
+ /**
1393
+ * @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl
1394
+ */
1395
+ Action["AxisMenuRemove"] = "axisMenuRemove";
1396
+ /**
1397
+ * @hidden
1398
+ */
1399
+ Action["InsertInToSlide"] = "insertInToSlide";
1400
+ })(Action = exports.Action || (exports.Action = {}));
1401
+ // eslint-disable-next-line no-shadow
1402
+ var OperationType;
1403
+ (function (OperationType) {
1404
+ OperationType["GetChartWithData"] = "GetChartWithData";
1405
+ OperationType["GetTableWithHeadlineData"] = "GetTableWithHeadlineData";
1406
+ })(OperationType = exports.OperationType || (exports.OperationType = {}));
1407
+ var PrefetchFeatures;
1408
+ (function (PrefetchFeatures) {
1409
+ PrefetchFeatures["FullApp"] = "FullApp";
1410
+ PrefetchFeatures["SearchEmbed"] = "SearchEmbed";
1411
+ PrefetchFeatures["LiveboardEmbed"] = "LiveboardEmbed";
1412
+ PrefetchFeatures["VizEmbed"] = "VizEmbed";
1413
+ })(PrefetchFeatures = exports.PrefetchFeatures || (exports.PrefetchFeatures = {}));
1414
+ var ContextMenuTriggerOptions;
1415
+ (function (ContextMenuTriggerOptions) {
1416
+ ContextMenuTriggerOptions["LEFT_CLICK"] = "left-click";
1417
+ ContextMenuTriggerOptions["RIGHT_CLICK"] = "right-click";
1418
+ })(ContextMenuTriggerOptions = exports.ContextMenuTriggerOptions || (exports.ContextMenuTriggerOptions = {}));
1419
+ //# sourceMappingURL=types.js.map