@thoughtspot/visual-embed-sdk 1.29.0-alpha.7 → 1.29.0-alpha.SCAL-205893-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/auth.d.ts +14 -17
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +45 -59
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.d.ts +12 -0
- package/cjs/src/auth.spec.d.ts.map +1 -1
- package/cjs/src/auth.spec.js +89 -67
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/authToken.d.ts +1 -1
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +18 -5
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/authToken.spec.d.ts +2 -0
- package/cjs/src/authToken.spec.d.ts.map +1 -0
- package/cjs/src/authToken.spec.js +29 -0
- package/cjs/src/authToken.spec.js.map +1 -0
- package/cjs/src/embed/app.spec.js +4 -2
- 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 -0
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/base.spec.js +1 -0
- package/cjs/src/embed/base.spec.js.map +1 -1
- package/cjs/src/embed/embed.spec.js +3 -0
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/events.spec.js +3 -0
- package/cjs/src/embed/events.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +2 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/pinboard.spec.js +3 -0
- package/cjs/src/embed/pinboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.spec.js +3 -0
- package/cjs/src/embed/sage.spec.js.map +1 -1
- package/cjs/src/embed/search.spec.js +1 -0
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed-trigger.spec.js +3 -0
- package/cjs/src/embed/ts-embed-trigger.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +7 -0
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +7 -0
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +2 -1
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +2 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts +2 -1
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +1 -0
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/mixpanel-service.spec.js +7 -0
- package/cjs/src/mixpanel-service.spec.js.map +1 -1
- package/cjs/src/react/index.d.ts +1 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +2 -1
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/react/index.spec.js +6 -0
- package/cjs/src/react/index.spec.js.map +1 -1
- package/cjs/src/types.d.ts +79 -47
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +61 -46
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/authService.d.ts +1 -0
- package/cjs/src/utils/authService/authService.d.ts.map +1 -1
- package/cjs/src/utils/authService/authService.js +1 -0
- package/cjs/src/utils/authService/authService.js.map +1 -1
- package/cjs/src/utils/authService/authService.spec.js +18 -5
- package/cjs/src/utils/authService/authService.spec.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts +15 -2
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js +39 -9
- package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js +32 -0
- package/cjs/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +10 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +10 -0
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/processData.js +2 -2
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +3 -2
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.d.ts +66 -0
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -0
- package/cjs/src/utils/sessionInfoService.js +92 -0
- package/cjs/src/utils/sessionInfoService.js.map +1 -0
- package/cjs/src/utils.d.ts +1 -1
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +4 -1
- package/cjs/src/utils.js.map +1 -1
- package/dist/src/auth.d.ts +14 -17
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/auth.spec.d.ts +12 -0
- package/dist/src/auth.spec.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +1 -1
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/authToken.spec.d.ts +2 -0
- package/dist/src/authToken.spec.d.ts.map +1 -0
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +2 -1
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +1 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +79 -47
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/authService.d.ts +1 -0
- package/dist/src/utils/authService/authService.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.d.ts +15 -2
- package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/dist/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts +10 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.d.ts +66 -0
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -0
- package/dist/src/utils.d.ts +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +225 -105
- package/dist/tsembed-react.js +225 -104
- package/dist/tsembed.es.js +233 -116
- package/dist/tsembed.js +233 -116
- package/dist/visual-embed-sdk-react-full.d.ts +171 -66
- package/dist/visual-embed-sdk-react.d.ts +171 -66
- package/dist/visual-embed-sdk.d.ts +171 -66
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +14 -17
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +44 -56
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.d.ts +12 -0
- package/lib/src/auth.spec.d.ts.map +1 -1
- package/lib/src/auth.spec.js +88 -66
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/authToken.d.ts +1 -1
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +18 -5
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/authToken.spec.d.ts +2 -0
- package/lib/src/authToken.spec.d.ts.map +1 -0
- package/lib/src/authToken.spec.js +26 -0
- package/lib/src/authToken.spec.js.map +1 -0
- package/lib/src/embed/app.spec.js +4 -2
- 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 +3 -1
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/base.spec.js +1 -0
- package/lib/src/embed/base.spec.js.map +1 -1
- package/lib/src/embed/embed.spec.js +2 -0
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/events.spec.js +2 -0
- package/lib/src/embed/events.spec.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +2 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/pinboard.spec.js +2 -0
- package/lib/src/embed/pinboard.spec.js.map +1 -1
- package/lib/src/embed/sage.spec.js +2 -0
- package/lib/src/embed/sage.spec.js.map +1 -1
- package/lib/src/embed/search.spec.js +1 -0
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed-trigger.spec.js +2 -0
- package/lib/src/embed/ts-embed-trigger.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +7 -0
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +7 -0
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +2 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +2 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +2 -1
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +1 -0
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/mixpanel-service.spec.js +7 -0
- package/lib/src/mixpanel-service.spec.js.map +1 -1
- package/lib/src/react/index.d.ts +1 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +1 -1
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/react/index.spec.js +6 -0
- package/lib/src/react/index.spec.js.map +1 -1
- package/lib/src/types.d.ts +79 -47
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +61 -46
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.d.ts +1 -0
- package/lib/src/utils/authService/authService.d.ts.map +1 -1
- package/lib/src/utils/authService/authService.js +1 -0
- package/lib/src/utils/authService/authService.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +18 -5
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.d.ts +15 -2
- package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.js +37 -8
- package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.js +29 -0
- package/lib/src/utils/authService/tokenizedAuthService.spec.js.map +1 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts +10 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +10 -0
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/processData.js +3 -3
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +3 -2
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/utils/sessionInfoService.d.ts +66 -0
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -0
- package/lib/src/utils/sessionInfoService.js +85 -0
- package/lib/src/utils/sessionInfoService.js.map +1 -0
- package/lib/src/utils.d.ts +1 -1
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +4 -1
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +176 -67
- package/package.json +1 -1
- package/src/auth.spec.ts +92 -72
- package/src/auth.ts +46 -68
- package/src/authToken.spec.ts +31 -0
- package/src/authToken.ts +17 -5
- package/src/embed/app.spec.ts +4 -2
- package/src/embed/base.spec.ts +1 -0
- package/src/embed/base.ts +3 -0
- package/src/embed/embed.spec.ts +2 -0
- package/src/embed/events.spec.ts +2 -0
- package/src/embed/liveboard.spec.ts +2 -0
- package/src/embed/pinboard.spec.ts +2 -0
- package/src/embed/sage.spec.ts +3 -0
- package/src/embed/search.spec.ts +1 -0
- package/src/embed/ts-embed-trigger.spec.ts +3 -0
- package/src/embed/ts-embed.spec.ts +8 -0
- package/src/embed/ts-embed.ts +7 -0
- package/src/index.ts +2 -1
- package/src/mixpanel-service.spec.ts +12 -3
- package/src/mixpanel-service.ts +3 -1
- package/src/react/index.spec.tsx +7 -0
- package/src/react/index.tsx +1 -0
- package/src/types.ts +80 -47
- package/src/utils/authService/authService.spec.ts +18 -5
- package/src/utils/authService/authService.ts +1 -0
- package/src/utils/authService/tokenizedAuthService.spec.ts +36 -0
- package/src/utils/authService/tokenizedAuthService.ts +38 -8
- package/src/utils/graphql/answerService/answerService.ts +10 -0
- package/src/utils/processData.spec.ts +3 -2
- package/src/utils/processData.ts +3 -3
- package/src/utils/sessionInfoService.ts +101 -0
- package/src/utils.ts +7 -2
|
@@ -2188,6 +2188,23 @@ export interface EmbedConfig {
|
|
|
2188
2188
|
* @version SDK: 1.28.4 | Thoughtspot: 10.0.0.cl, 9.5.0.sw
|
|
2189
2189
|
*/
|
|
2190
2190
|
currencyFormat?: string;
|
|
2191
|
+
/**
|
|
2192
|
+
* This flag is used to disable the token verification in the SDK.
|
|
2193
|
+
* Enabling this flag will also disable the caching of the token.
|
|
2194
|
+
*
|
|
2195
|
+
* @hidden
|
|
2196
|
+
*
|
|
2197
|
+
* @example
|
|
2198
|
+
* ```js
|
|
2199
|
+
* init({
|
|
2200
|
+
* ...embedConfig,
|
|
2201
|
+
* disableTokenVerification : true
|
|
2202
|
+
* })
|
|
2203
|
+
* ```
|
|
2204
|
+
*
|
|
2205
|
+
* @version SDK: 1.28.5 | Thoughtspot: *
|
|
2206
|
+
*/
|
|
2207
|
+
disableTokenVerification?: boolean;
|
|
2191
2208
|
}
|
|
2192
2209
|
export interface LayoutConfig {
|
|
2193
2210
|
}
|
|
@@ -2787,7 +2804,7 @@ export interface RuntimeFilter {
|
|
|
2787
2804
|
* a single operand, whereas other operators like BW and IN accept multiple
|
|
2788
2805
|
* operands.
|
|
2789
2806
|
*/
|
|
2790
|
-
values: (number | boolean | string)[];
|
|
2807
|
+
values: (number | boolean | string | bigint)[];
|
|
2791
2808
|
}
|
|
2792
2809
|
/**
|
|
2793
2810
|
* A filter that can be applied to ThoughtSpot Answers, Liveboards, or
|
|
@@ -2841,6 +2858,8 @@ export declare enum EmbedEvent {
|
|
|
2841
2858
|
/**
|
|
2842
2859
|
* Authentication has either succeeded or failed.
|
|
2843
2860
|
*
|
|
2861
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2862
|
+
*
|
|
2844
2863
|
* @example
|
|
2845
2864
|
*```js
|
|
2846
2865
|
* appEmbed.on(EmbedEvent.AuthInit, payload => {
|
|
@@ -2854,6 +2873,8 @@ export declare enum EmbedEvent {
|
|
|
2854
2873
|
* The embed object container has loaded.
|
|
2855
2874
|
*
|
|
2856
2875
|
* @returns timestamp - The timestamp when the event was generated.
|
|
2876
|
+
*
|
|
2877
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2857
2878
|
* @example
|
|
2858
2879
|
*```js
|
|
2859
2880
|
* liveboardEmbed.on(EmbedEvent.Load, hideLoader)
|
|
@@ -2868,6 +2889,8 @@ export declare enum EmbedEvent {
|
|
|
2868
2889
|
* Data pertaining to answer or Liveboard is received
|
|
2869
2890
|
*
|
|
2870
2891
|
* @return data - The answer or Liveboard data
|
|
2892
|
+
*
|
|
2893
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2871
2894
|
* @example
|
|
2872
2895
|
*```js
|
|
2873
2896
|
* liveboardEmbed.on(EmbedEvent.Data, payload => {
|
|
@@ -2886,6 +2909,7 @@ export declare enum EmbedEvent {
|
|
|
2886
2909
|
/**
|
|
2887
2910
|
* Search query has been updated by the user.
|
|
2888
2911
|
*
|
|
2912
|
+
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
2889
2913
|
* @example
|
|
2890
2914
|
*```js
|
|
2891
2915
|
* searchEmbed.on(EmbedEvent.QueryChanged, payload => console.log('data', payload))
|
|
@@ -2895,12 +2919,14 @@ export declare enum EmbedEvent {
|
|
|
2895
2919
|
/**
|
|
2896
2920
|
* A drill-down operation has been performed.
|
|
2897
2921
|
*
|
|
2922
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2923
|
+
*
|
|
2898
2924
|
* @returns additionalFilters - Any additional filters applied
|
|
2899
2925
|
* @returns drillDownColumns - The columns on which drill down was performed
|
|
2900
2926
|
* @returns nonFilteredColumns - The columns that were not filtered
|
|
2901
2927
|
* @example
|
|
2902
2928
|
*```js
|
|
2903
|
-
* searchEmbed.
|
|
2929
|
+
* searchEmbed.on(EmbedEvent.DrillDown, {
|
|
2904
2930
|
* points: {
|
|
2905
2931
|
* clickedPoint,
|
|
2906
2932
|
* selectedPoints: selectedPoint
|
|
@@ -2933,6 +2959,8 @@ export declare enum EmbedEvent {
|
|
|
2933
2959
|
* One or more data sources have been selected.
|
|
2934
2960
|
*
|
|
2935
2961
|
* @returns dataSourceIds - the list of data sources
|
|
2962
|
+
*
|
|
2963
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2936
2964
|
* @example
|
|
2937
2965
|
* ```js
|
|
2938
2966
|
* searchEmbed.on(EmbedEvent.DataSourceSelected, payload => {
|
|
@@ -2960,6 +2988,8 @@ export declare enum EmbedEvent {
|
|
|
2960
2988
|
* @returns actionId - ID of the custom action
|
|
2961
2989
|
* @returns payload {@link CustomActionPayload} - Response payload with the
|
|
2962
2990
|
* Answer or Liveboard data
|
|
2991
|
+
*
|
|
2992
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
2963
2993
|
* @example
|
|
2964
2994
|
* ```js
|
|
2965
2995
|
* appEmbed.on(EmbedEvent.customAction, payload => {
|
|
@@ -3007,21 +3037,18 @@ export declare enum EmbedEvent {
|
|
|
3007
3037
|
/**
|
|
3008
3038
|
* An error has occurred. This event is fired for the following error types:
|
|
3009
3039
|
*
|
|
3010
|
-
* API - API call failure error.
|
|
3011
|
-
*
|
|
3012
|
-
*
|
|
3013
|
-
*
|
|
3014
|
-
*
|
|
3040
|
+
* `API` - API call failure error.
|
|
3041
|
+
* `FULLSCREEN` - Error when presenting a Liveboard or visualization in full screen mode.
|
|
3042
|
+
* `SINGLE_VALUE_FILTER` - Error due to multiple values in the single value filter.
|
|
3043
|
+
* `NON_EXIST_FILTER` - Error due to a non-existent filter.
|
|
3044
|
+
* `INVALID_DATE_VALUE` - Invalid date value error.
|
|
3045
|
+
* `INVALID_OPERATOR` - Use of invalid operator during filter application.
|
|
3015
3046
|
*
|
|
3016
|
-
*
|
|
3017
|
-
*
|
|
3018
|
-
* INVALID_DATE_VALUE - Invalid date value error.
|
|
3019
|
-
*
|
|
3020
|
-
* INVALID_OPERATOR - Use of invalid operator during filter application.
|
|
3021
|
-
*
|
|
3022
|
-
* For more information, see [Developer Documentation](https://developers.thoughtspot.com/docs/events-app-integration#errorType)
|
|
3047
|
+
* For more information, see https://developers.thoughtspot.com/docs/events-app-integration#errorType
|
|
3023
3048
|
*
|
|
3024
3049
|
* @returns error - An error object or message
|
|
3050
|
+
*
|
|
3051
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3025
3052
|
* @example
|
|
3026
3053
|
* ```js
|
|
3027
3054
|
* // API error
|
|
@@ -3047,6 +3074,9 @@ export declare enum EmbedEvent {
|
|
|
3047
3074
|
* The embedded object has sent an alert.
|
|
3048
3075
|
*
|
|
3049
3076
|
* @returns alert - An alert object
|
|
3077
|
+
*
|
|
3078
|
+
* @version SDK: 1.1.0 | ThoughtSpot: ts7.may.cl, 8.4.1.sw
|
|
3079
|
+
*
|
|
3050
3080
|
* @example
|
|
3051
3081
|
* ```js
|
|
3052
3082
|
* searchEmbed.on(EmbedEvent.Alert)
|
|
@@ -3056,6 +3086,8 @@ export declare enum EmbedEvent {
|
|
|
3056
3086
|
/**
|
|
3057
3087
|
* The ThoughtSpot auth session has expired.
|
|
3058
3088
|
*
|
|
3089
|
+
* @version SDK: 1.4.0 | ThoughtSpot: ts7.sep.cl, 8.4.1.sw
|
|
3090
|
+
*
|
|
3059
3091
|
* @example
|
|
3060
3092
|
*```js
|
|
3061
3093
|
* appEmbed.on(EmbedEvent.AuthExpire, showAuthExpired)
|
|
@@ -3109,6 +3141,7 @@ export declare enum EmbedEvent {
|
|
|
3109
3141
|
/**
|
|
3110
3142
|
* Detects the route change.
|
|
3111
3143
|
*
|
|
3144
|
+
* @version SDK: 1.7.0 | ThoughtSpot: 8.0.0.cl, 8.4.1.sw
|
|
3112
3145
|
* @example
|
|
3113
3146
|
*```js
|
|
3114
3147
|
* searchEmbed.on(EmbedEvent.RouteChange, payload =>
|
|
@@ -3189,8 +3222,7 @@ export declare enum EmbedEvent {
|
|
|
3189
3222
|
*/
|
|
3190
3223
|
LiveboardRendered = "PinboardRendered",
|
|
3191
3224
|
/**
|
|
3192
|
-
*
|
|
3193
|
-
* is triggered on all events.
|
|
3225
|
+
* Emits all events.
|
|
3194
3226
|
*
|
|
3195
3227
|
* @Version SDK: 1.10.0 | ThoughtSpot: 8.2.0.cl, 8.4.1.sw
|
|
3196
3228
|
* @example
|
|
@@ -3207,13 +3239,13 @@ export declare enum EmbedEvent {
|
|
|
3207
3239
|
* @Version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3208
3240
|
* @example
|
|
3209
3241
|
*```js
|
|
3210
|
-
* //
|
|
3242
|
+
* //Emit when action starts
|
|
3211
3243
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
3212
3244
|
* console.log('Save', payload)
|
|
3213
3245
|
* }, {
|
|
3214
3246
|
* start: true
|
|
3215
3247
|
* })
|
|
3216
|
-
* //
|
|
3248
|
+
* //emit when action ends
|
|
3217
3249
|
* searchEmbed.on(EmbedEvent.Save, payload => {
|
|
3218
3250
|
* console.log('Save', payload)
|
|
3219
3251
|
* })
|
|
@@ -3231,7 +3263,7 @@ export declare enum EmbedEvent {
|
|
|
3231
3263
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3232
3264
|
* @example
|
|
3233
3265
|
*```js
|
|
3234
|
-
* liveboardEmbed.
|
|
3266
|
+
* liveboardEmbed.on(EmbedEvent.Download, {
|
|
3235
3267
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
3236
3268
|
* })
|
|
3237
3269
|
*```
|
|
@@ -3243,10 +3275,10 @@ export declare enum EmbedEvent {
|
|
|
3243
3275
|
* @version SDK: 1.21.0 | ThoughtSpot: 9.2.0.cl, 9.4.0.sw
|
|
3244
3276
|
* @example
|
|
3245
3277
|
*```js
|
|
3246
|
-
* //
|
|
3278
|
+
* //emit when action starts
|
|
3247
3279
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
3248
3280
|
* console.log('download PNG', payload)}, {start: true })
|
|
3249
|
-
* //
|
|
3281
|
+
* //emit when action ends
|
|
3250
3282
|
* searchEmbed.on(EmbedEvent.DownloadAsPng, payload => {
|
|
3251
3283
|
* console.log('download PNG', payload)})
|
|
3252
3284
|
*```
|
|
@@ -3258,10 +3290,10 @@ export declare enum EmbedEvent {
|
|
|
3258
3290
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3259
3291
|
* @example
|
|
3260
3292
|
*```js
|
|
3261
|
-
* //
|
|
3293
|
+
* //emit when action starts
|
|
3262
3294
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
3263
3295
|
* console.log('download PDF', payload)}, {start: true })
|
|
3264
|
-
* //
|
|
3296
|
+
* //emit when action ends
|
|
3265
3297
|
* searchEmbed.on(EmbedEvent.DownloadAsPdf, payload => {
|
|
3266
3298
|
* console.log('download PDF', payload)})
|
|
3267
3299
|
*```
|
|
@@ -3273,10 +3305,10 @@ export declare enum EmbedEvent {
|
|
|
3273
3305
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3274
3306
|
* @example
|
|
3275
3307
|
*```js
|
|
3276
|
-
* //
|
|
3308
|
+
* //emit when action starts
|
|
3277
3309
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
3278
3310
|
* console.log('download CSV', payload)}, {start: true })
|
|
3279
|
-
* //
|
|
3311
|
+
* //emit when action ends
|
|
3280
3312
|
* searchEmbed.on(EmbedEvent.DownloadAsCSV, payload => {
|
|
3281
3313
|
* console.log('download CSV', payload)})
|
|
3282
3314
|
*```
|
|
@@ -3288,10 +3320,10 @@ export declare enum EmbedEvent {
|
|
|
3288
3320
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3289
3321
|
* @example
|
|
3290
3322
|
*```js
|
|
3291
|
-
* //
|
|
3323
|
+
* //emit when action starts
|
|
3292
3324
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
3293
3325
|
* console.log('download Xlsx', payload)}, { start: true })
|
|
3294
|
-
* //
|
|
3326
|
+
* //emit when action ends
|
|
3295
3327
|
* searchEmbed.on(EmbedEvent.DownloadAsXlsx, payload => {
|
|
3296
3328
|
* console.log('download Xlsx', payload)})
|
|
3297
3329
|
*```
|
|
@@ -3303,7 +3335,7 @@ export declare enum EmbedEvent {
|
|
|
3303
3335
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3304
3336
|
* @example
|
|
3305
3337
|
*```js
|
|
3306
|
-
* //
|
|
3338
|
+
* //emit when action starts
|
|
3307
3339
|
* appEmbed.on(EmbedEvent.AnswerDelete, payload => {
|
|
3308
3340
|
* console.log('delete answer', payload)}, {start: true })
|
|
3309
3341
|
* //trigger when action is completed
|
|
@@ -3318,13 +3350,13 @@ export declare enum EmbedEvent {
|
|
|
3318
3350
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3319
3351
|
* @example
|
|
3320
3352
|
*```js
|
|
3321
|
-
* //
|
|
3353
|
+
* //emit when action starts
|
|
3322
3354
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
3323
3355
|
* console.log('pin', payload)
|
|
3324
3356
|
* }, {
|
|
3325
3357
|
* start: true
|
|
3326
3358
|
* })
|
|
3327
|
-
* //
|
|
3359
|
+
* //emit when action ends
|
|
3328
3360
|
* searchEmbed.on(EmbedEvent.Pin, payload => {
|
|
3329
3361
|
* console.log('pin', payload)
|
|
3330
3362
|
* })
|
|
@@ -3337,13 +3369,13 @@ export declare enum EmbedEvent {
|
|
|
3337
3369
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3338
3370
|
* @example
|
|
3339
3371
|
*```js
|
|
3340
|
-
* //
|
|
3372
|
+
* //emit when action starts
|
|
3341
3373
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
3342
3374
|
* console.log('SpotIQAnalyze', payload)
|
|
3343
3375
|
* }, {
|
|
3344
3376
|
* start: true
|
|
3345
3377
|
* })
|
|
3346
|
-
* //
|
|
3378
|
+
* //emit when action ends
|
|
3347
3379
|
* searchEmbed.on(EmbedEvent.SpotIQAnalyze, payload => {
|
|
3348
3380
|
* console.log('SpotIQ analyze', payload)
|
|
3349
3381
|
* })
|
|
@@ -3356,13 +3388,13 @@ export declare enum EmbedEvent {
|
|
|
3356
3388
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3357
3389
|
* @example
|
|
3358
3390
|
*```js
|
|
3359
|
-
* //
|
|
3391
|
+
* //emit when action starts
|
|
3360
3392
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
3361
3393
|
* console.log('Share', payload)
|
|
3362
3394
|
* }, {
|
|
3363
3395
|
* start: true
|
|
3364
3396
|
* })
|
|
3365
|
-
* //
|
|
3397
|
+
* //emit when action ends
|
|
3366
3398
|
* searchEmbed.on(EmbedEvent.Share, payload => {
|
|
3367
3399
|
* console.log('Share', payload)
|
|
3368
3400
|
* })
|
|
@@ -3437,10 +3469,10 @@ export declare enum EmbedEvent {
|
|
|
3437
3469
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3438
3470
|
* @example
|
|
3439
3471
|
*```js
|
|
3440
|
-
* //
|
|
3472
|
+
* //emit when action starts
|
|
3441
3473
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
3442
3474
|
* console.log('Export TML', payload)}, { start: true })
|
|
3443
|
-
* //
|
|
3475
|
+
* //emit when action ends
|
|
3444
3476
|
* searchEmbed.on(EmbedEvent.ExportTML, payload => {
|
|
3445
3477
|
* console.log('Export TML', payload)})
|
|
3446
3478
|
*```
|
|
@@ -3464,10 +3496,10 @@ export declare enum EmbedEvent {
|
|
|
3464
3496
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
3465
3497
|
* @example
|
|
3466
3498
|
*```js
|
|
3467
|
-
* //
|
|
3499
|
+
* //emit when action starts
|
|
3468
3500
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
3469
3501
|
* console.log('Copy and edit', payload)}, {start: true })
|
|
3470
|
-
* //
|
|
3502
|
+
* //emit when action ends
|
|
3471
3503
|
* appEmbed.on(EmbedEvent.CopyAEdit, payload => {
|
|
3472
3504
|
* console.log('Copy and edit', payload)})
|
|
3473
3505
|
*```
|
|
@@ -3569,7 +3601,7 @@ export declare enum EmbedEvent {
|
|
|
3569
3601
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3570
3602
|
* @example
|
|
3571
3603
|
*```js
|
|
3572
|
-
* liveboardEmbed.
|
|
3604
|
+
* liveboardEmbed.on(EmbedEvent.Present)
|
|
3573
3605
|
*```
|
|
3574
3606
|
* @example
|
|
3575
3607
|
*```js
|
|
@@ -3585,7 +3617,7 @@ export declare enum EmbedEvent {
|
|
|
3585
3617
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3586
3618
|
* @example
|
|
3587
3619
|
*```js
|
|
3588
|
-
* liveboardEmbed.
|
|
3620
|
+
* liveboardEmbed.on(EmbedEvent.Delete,
|
|
3589
3621
|
* {vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3590
3622
|
*```
|
|
3591
3623
|
*/
|
|
@@ -3596,7 +3628,7 @@ export declare enum EmbedEvent {
|
|
|
3596
3628
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3597
3629
|
* @example
|
|
3598
3630
|
*```js
|
|
3599
|
-
* liveboardEmbed.
|
|
3631
|
+
* liveboardEmbed.on(EmbedEvent.SchedulesList)
|
|
3600
3632
|
*```
|
|
3601
3633
|
*/
|
|
3602
3634
|
SchedulesList = "schedule-list",
|
|
@@ -3606,7 +3638,7 @@ export declare enum EmbedEvent {
|
|
|
3606
3638
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3607
3639
|
* @example
|
|
3608
3640
|
*```js
|
|
3609
|
-
* liveboardEmbed.
|
|
3641
|
+
* liveboardEmbed.on(EmbedEvent.Cancel)
|
|
3610
3642
|
*```
|
|
3611
3643
|
*/
|
|
3612
3644
|
Cancel = "cancel",
|
|
@@ -3616,7 +3648,7 @@ export declare enum EmbedEvent {
|
|
|
3616
3648
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3617
3649
|
* @example
|
|
3618
3650
|
*```js
|
|
3619
|
-
* liveboardEmbed.
|
|
3651
|
+
* liveboardEmbed.on(EmbedEvent.Explore, {
|
|
3620
3652
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3621
3653
|
*```
|
|
3622
3654
|
*/
|
|
@@ -3627,7 +3659,7 @@ export declare enum EmbedEvent {
|
|
|
3627
3659
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3628
3660
|
* @example
|
|
3629
3661
|
*```js
|
|
3630
|
-
* liveboardEmbed.
|
|
3662
|
+
* liveboardEmbed.on(EmbedEvent.CopyLink, {
|
|
3631
3663
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
3632
3664
|
*```
|
|
3633
3665
|
*/
|
|
@@ -4005,7 +4037,7 @@ export declare enum HostEvent {
|
|
|
4005
4037
|
*
|
|
4006
4038
|
* @example
|
|
4007
4039
|
* ```js
|
|
4008
|
-
* liveboardEmbed.trigger(HostEvent.
|
|
4040
|
+
* liveboardEmbed.trigger(HostEvent.getExportRequestForCurrentPinboard).then(
|
|
4009
4041
|
* data=>console.log(data))
|
|
4010
4042
|
* ```
|
|
4011
4043
|
* @version SDK: 1.13.0 | ThoughtSpot: 8.5.0.cl, 8.8.1.sw
|
|
@@ -4469,7 +4501,7 @@ export declare enum HostEvent {
|
|
|
4469
4501
|
*
|
|
4470
4502
|
* ```js
|
|
4471
4503
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
4472
|
-
* filter: { column: 'column name', oper: 'IN', values: [1,2,3]
|
|
4504
|
+
* filter: { column: 'column name', oper: 'IN', values: [1,2,3]}
|
|
4473
4505
|
* })
|
|
4474
4506
|
* ```
|
|
4475
4507
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
@@ -5619,7 +5651,7 @@ export declare enum Action {
|
|
|
5619
5651
|
* disabledActions: [Action.TML] // to disable all TML actions
|
|
5620
5652
|
* ```
|
|
5621
5653
|
*
|
|
5622
|
-
* @version SDK : 1.28.
|
|
5654
|
+
* @version SDK : 1.28.3 | Thoughtspot: 9.12.0.cl
|
|
5623
5655
|
*/
|
|
5624
5656
|
TML = "tml",
|
|
5625
5657
|
/**
|
|
@@ -6269,12 +6301,6 @@ export declare let loggedInStatus: boolean;
|
|
|
6269
6301
|
export declare let samlAuthWindow: Window;
|
|
6270
6302
|
export declare let samlCompletionPromise: Promise<void>;
|
|
6271
6303
|
export declare const SSO_REDIRECTION_MARKER_GUID = "5e16222e-ef02-43e9-9fbd-24226bf3ce5b";
|
|
6272
|
-
interface sessionInfoInterface {
|
|
6273
|
-
userGUID: any;
|
|
6274
|
-
isPublicUser: any;
|
|
6275
|
-
mixpanelToken: any;
|
|
6276
|
-
[key: string]: any;
|
|
6277
|
-
}
|
|
6278
6304
|
/**
|
|
6279
6305
|
* Enum for auth failure types. This is the parameter passed to the listner
|
|
6280
6306
|
* of {@link AuthStatus.FAILURE}.
|
|
@@ -6392,7 +6418,7 @@ export declare function notifyAuthSDKSuccess(): void;
|
|
|
6392
6418
|
/**
|
|
6393
6419
|
*
|
|
6394
6420
|
*/
|
|
6395
|
-
export declare function notifyAuthSuccess(): void
|
|
6421
|
+
export declare function notifyAuthSuccess(): Promise<void>;
|
|
6396
6422
|
/**
|
|
6397
6423
|
*
|
|
6398
6424
|
* @param failureType
|
|
@@ -6402,19 +6428,23 @@ export declare function notifyAuthFailure(failureType: AuthFailureType): void;
|
|
|
6402
6428
|
*
|
|
6403
6429
|
*/
|
|
6404
6430
|
export declare function notifyLogout(): void;
|
|
6405
|
-
export declare const initSession: (sessionDetails: sessionInfoInterface) => void;
|
|
6406
|
-
export declare const getSessionDetails: (sessionInfoResp: any) => sessionInfoInterface;
|
|
6407
6431
|
/**
|
|
6408
|
-
*
|
|
6432
|
+
* Services to be called after the login is successful,
|
|
6433
|
+
* This should be called after the cookie is set for cookie auth or
|
|
6434
|
+
* after the token is set for cookieless.
|
|
6435
|
+
*
|
|
6436
|
+
* @return {Promise<void>}
|
|
6437
|
+
* @example
|
|
6438
|
+
* ```js
|
|
6439
|
+
* await postLoginService();
|
|
6440
|
+
* ```
|
|
6441
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
6409
6442
|
*/
|
|
6410
|
-
export declare function
|
|
6443
|
+
export declare function postLoginService(): Promise<void>;
|
|
6411
6444
|
/**
|
|
6412
|
-
* Return
|
|
6413
|
-
* authentication is successful. And info is available.
|
|
6414
|
-
*
|
|
6415
|
-
* @group Global methods
|
|
6445
|
+
* Return releaseVersion if available
|
|
6416
6446
|
*/
|
|
6417
|
-
export declare function
|
|
6447
|
+
export declare function getReleaseVersion(): string;
|
|
6418
6448
|
/**
|
|
6419
6449
|
* Perform token based authentication
|
|
6420
6450
|
*
|
|
@@ -6450,7 +6480,72 @@ export declare const authenticate: (embedConfig: EmbedConfig) => Promise<boolean
|
|
|
6450
6480
|
* Check if we are authenticated to the ThoughtSpot cluster
|
|
6451
6481
|
*/
|
|
6452
6482
|
export declare const isAuthenticated: () => boolean;
|
|
6453
|
-
|
|
6483
|
+
|
|
6484
|
+
export type SessionInfo = {
|
|
6485
|
+
releaseVersion: string;
|
|
6486
|
+
userGUID: string;
|
|
6487
|
+
currentOrgId: number;
|
|
6488
|
+
privileges: string[];
|
|
6489
|
+
mixpanelToken: string;
|
|
6490
|
+
isPublicUser: boolean;
|
|
6491
|
+
clusterId: string;
|
|
6492
|
+
clusterName: string;
|
|
6493
|
+
[key: string]: any;
|
|
6494
|
+
};
|
|
6495
|
+
/**
|
|
6496
|
+
* Returns the session info object and caches it for future use.
|
|
6497
|
+
* Once fetched the session info object is cached and returned from the cache on
|
|
6498
|
+
* subsequent calls.
|
|
6499
|
+
*
|
|
6500
|
+
* @example ```js
|
|
6501
|
+
* const sessionInfo = await getSessionInfo();
|
|
6502
|
+
* console.log(sessionInfo);
|
|
6503
|
+
* ```
|
|
6504
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
6505
|
+
* @returns {Promise<SessionInfo>} The session info object.
|
|
6506
|
+
*/
|
|
6507
|
+
export declare function getSessionInfo(): Promise<SessionInfo>;
|
|
6508
|
+
/**
|
|
6509
|
+
* Returns the cached session info object. If the client is not authenticated the
|
|
6510
|
+
* function will return null.
|
|
6511
|
+
*
|
|
6512
|
+
* @example ```js
|
|
6513
|
+
* const sessionInfo = getCachedSessionInfo();
|
|
6514
|
+
* if (sessionInfo) {
|
|
6515
|
+
* console.log(sessionInfo);
|
|
6516
|
+
* } else {
|
|
6517
|
+
* console.log('Not authenticated');
|
|
6518
|
+
* }
|
|
6519
|
+
* ```
|
|
6520
|
+
* @returns {SessionInfo | null} The session info object.
|
|
6521
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
6522
|
+
*/
|
|
6523
|
+
export declare function getCachedSessionInfo(): SessionInfo | null;
|
|
6524
|
+
/**
|
|
6525
|
+
* Processes the session info response and returns the session info object.
|
|
6526
|
+
*
|
|
6527
|
+
* @param sessionInfoResp {any} Response from the session info API.
|
|
6528
|
+
* @returns {SessionInfo} The session info object.
|
|
6529
|
+
* @example ```js
|
|
6530
|
+
* const sessionInfoResp = await fetch(sessionInfoPath);
|
|
6531
|
+
* const sessionInfo = getSessionDetails(sessionInfoResp);
|
|
6532
|
+
* console.log(sessionInfo);
|
|
6533
|
+
* ```
|
|
6534
|
+
* @version SDK: 1.28.3 | ThoughtSpot: *
|
|
6535
|
+
*/
|
|
6536
|
+
export declare const getSessionDetails: (sessionInfoResp: any) => SessionInfo;
|
|
6537
|
+
/**
|
|
6538
|
+
* Resets the cached session info object and forces a new fetch on the next call.
|
|
6539
|
+
*
|
|
6540
|
+
* @example ```js
|
|
6541
|
+
* resetCachedSessionInfo();
|
|
6542
|
+
* const sessionInfo = await getSessionInfo();
|
|
6543
|
+
* console.log(sessionInfo);
|
|
6544
|
+
* ```
|
|
6545
|
+
* @version SDK: 1.28.3 | ThoughtSpot ts7.april.cl, 7.2.1
|
|
6546
|
+
* @returns {void}
|
|
6547
|
+
*/
|
|
6548
|
+
export declare function resetCachedSessionInfo(): void;
|
|
6454
6549
|
|
|
6455
6550
|
/**
|
|
6456
6551
|
* The list of customization css variables. These
|
|
@@ -6824,6 +6919,16 @@ export interface UnderlyingDataPoint {
|
|
|
6824
6919
|
* const data = await underlying.fetchData(0, 100);
|
|
6825
6920
|
* })
|
|
6826
6921
|
* ```
|
|
6922
|
+
* @example
|
|
6923
|
+
* ```js
|
|
6924
|
+
* embed.on(EmbedEvent.Data, async (e) => {
|
|
6925
|
+
* const service = await embed.getAnswerService();
|
|
6926
|
+
* await service.addColumns([
|
|
6927
|
+
* "<column guid>"
|
|
6928
|
+
* ]);
|
|
6929
|
+
* console.log(await service.fetchData());
|
|
6930
|
+
* });
|
|
6931
|
+
* ```
|
|
6827
6932
|
* @version SDK: 1.25.0| ThoughtSpot: 9.10.0.cl
|
|
6828
6933
|
* @group Events
|
|
6829
6934
|
*/
|
|
@@ -6963,7 +7068,7 @@ export declare function uploadMixpanelEvent(eventId: string, eventProps?: {}): v
|
|
|
6963
7068
|
*
|
|
6964
7069
|
* @param sessionInfo
|
|
6965
7070
|
*/
|
|
6966
|
-
export declare function initMixpanel(sessionInfo:
|
|
7071
|
+
export declare function initMixpanel(sessionInfo: SessionInfo): void;
|
|
6967
7072
|
/**
|
|
6968
7073
|
*
|
|
6969
7074
|
*/
|
|
@@ -6980,7 +7085,7 @@ export declare function testResetMixpanel(): void;
|
|
|
6980
7085
|
*/
|
|
6981
7086
|
export declare const tokenizedFetch: typeof fetch;
|
|
6982
7087
|
|
|
6983
|
-
export declare
|
|
7088
|
+
export declare function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
6984
7089
|
/**
|
|
6985
7090
|
* Resets the auth token and a new token will be fetched on the next request.
|
|
6986
7091
|
*
|