@thoughtspot/visual-embed-sdk 1.32.4-dc.15 → 1.32.4-dc.17
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 +1 -0
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +1 -0
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +9 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +16 -0
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +1 -0
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +1 -0
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +25 -3
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +25 -3
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts +2 -0
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js +2 -0
- package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +1 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +2 -0
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts +4 -1
- package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -1
- package/cjs/src/utils/graphql/spotterService/nls-answer-service.js +4 -1
- package/cjs/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +1 -0
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.d.ts +4 -0
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
- package/cjs/src/utils/sessionInfoService.js +4 -0
- package/cjs/src/utils/sessionInfoService.js.map +1 -1
- package/dist/src/auth.d.ts +1 -0
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +9 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/tokenizedFetch.d.ts +1 -0
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +25 -3
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.d.ts +2 -0
- package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +1 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/graphql/spotterService/nls-answer-service.d.ts +4 -1
- package/dist/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.d.ts +4 -0
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +51 -4
- package/dist/tsembed-react.js +51 -4
- package/dist/tsembed.es.js +55 -5
- package/dist/tsembed.js +55 -5
- package/dist/visual-embed-sdk-react-full.d.ts +45 -4
- package/dist/visual-embed-sdk-react.d.ts +45 -4
- package/dist/visual-embed-sdk.d.ts +45 -4
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +1 -0
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +1 -0
- package/lib/src/auth.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +9 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +16 -0
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts +1 -0
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +1 -0
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +25 -3
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +25 -3
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.d.ts +2 -0
- package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.js +2 -0
- package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +1 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +2 -0
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts +4 -1
- package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -1
- package/lib/src/utils/graphql/spotterService/nls-answer-service.js +4 -1
- package/lib/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +1 -0
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/sessionInfoService.d.ts +4 -0
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
- package/lib/src/utils/sessionInfoService.js +4 -0
- package/lib/src/utils/sessionInfoService.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +45 -4
- package/package.json +1 -1
- package/src/auth.ts +1 -0
- package/src/embed/liveboard.ts +21 -0
- package/src/tokenizedFetch.ts +1 -0
- package/src/types.ts +25 -3
- package/src/utils/authService/tokenizedAuthService.ts +2 -0
- package/src/utils/graphql/answerService/answerService.ts +4 -0
- package/src/utils/graphql/spotterService/nls-answer-service.ts +9 -6
- package/src/utils/processData.ts +1 -0
- package/src/utils/sessionInfoService.ts +4 -0
package/dist/tsembed-react.js
CHANGED
|
@@ -1897,23 +1897,28 @@
|
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Trigger the **Make a copy** action on a Liveboard,
|
|
1899
1899
|
* visualization, or Answer page.
|
|
1900
|
+
*
|
|
1900
1901
|
* @example
|
|
1901
1902
|
* ```js
|
|
1902
1903
|
* liveboardEmbed.trigger(HostEvent.MakeACopy)
|
|
1903
1904
|
* ```
|
|
1905
|
+
*
|
|
1904
1906
|
* @example
|
|
1905
1907
|
* ```js
|
|
1906
1908
|
* liveboardEmbed.trigger(HostEvent.MakeACopy, {
|
|
1907
1909
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1908
1910
|
* ```
|
|
1911
|
+
*
|
|
1909
1912
|
* @example
|
|
1910
1913
|
* ```js
|
|
1911
1914
|
* vizEmbed.trigger(HostEvent.MakeACopy)
|
|
1912
1915
|
* ```
|
|
1916
|
+
*
|
|
1913
1917
|
* @example
|
|
1914
1918
|
* ```js
|
|
1915
1919
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
1916
1920
|
* ```
|
|
1921
|
+
*
|
|
1917
1922
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1918
1923
|
*/
|
|
1919
1924
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
@@ -1939,6 +1944,7 @@
|
|
|
1939
1944
|
/**
|
|
1940
1945
|
* Trigger the **Create alert** action on a KPI chart
|
|
1941
1946
|
* in a Liveboard or saved Answer.
|
|
1947
|
+
*
|
|
1942
1948
|
* @param - an object with `vizId` as a key
|
|
1943
1949
|
* @example
|
|
1944
1950
|
* ```js
|
|
@@ -1946,6 +1952,7 @@
|
|
|
1946
1952
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1947
1953
|
* })
|
|
1948
1954
|
* ```
|
|
1955
|
+
*
|
|
1949
1956
|
* @example
|
|
1950
1957
|
* ```js
|
|
1951
1958
|
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
@@ -1956,6 +1963,7 @@
|
|
|
1956
1963
|
/**
|
|
1957
1964
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
1958
1965
|
* in a visualization or saved Answer.
|
|
1966
|
+
*
|
|
1959
1967
|
* @param - an object with `vizId` as a key
|
|
1960
1968
|
* @example
|
|
1961
1969
|
* ```js
|
|
@@ -1963,10 +1971,12 @@
|
|
|
1963
1971
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1964
1972
|
* })
|
|
1965
1973
|
* ```
|
|
1974
|
+
*
|
|
1966
1975
|
* @example
|
|
1967
1976
|
* ```js
|
|
1968
1977
|
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
1969
1978
|
* ```
|
|
1979
|
+
*
|
|
1970
1980
|
* @example
|
|
1971
1981
|
* ```js
|
|
1972
1982
|
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
@@ -2364,6 +2374,7 @@
|
|
|
2364
2374
|
/**
|
|
2365
2375
|
* Get the answer session for a Search or
|
|
2366
2376
|
* Liveboard visualization.
|
|
2377
|
+
*
|
|
2367
2378
|
* @example
|
|
2368
2379
|
* ```js
|
|
2369
2380
|
* const {session} = await embed.trigger(
|
|
@@ -2371,10 +2382,12 @@
|
|
|
2371
2382
|
* vizId: '123', // For Liveboard Visualization.
|
|
2372
2383
|
* })
|
|
2373
2384
|
* ```
|
|
2385
|
+
*
|
|
2374
2386
|
* @example
|
|
2375
2387
|
* ```js
|
|
2376
2388
|
* const {session} = await embed.trigger( HostEvent.GetAnswerSession )
|
|
2377
2389
|
* ```
|
|
2390
|
+
*
|
|
2378
2391
|
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
2379
2392
|
*/
|
|
2380
2393
|
HostEvent["GetAnswerSession"] = "getAnswerSession";
|
|
@@ -3072,6 +3085,7 @@
|
|
|
3072
3085
|
/**
|
|
3073
3086
|
* @deprecated
|
|
3074
3087
|
* Reports errors
|
|
3088
|
+
*
|
|
3075
3089
|
* @example
|
|
3076
3090
|
* ```js
|
|
3077
3091
|
* disabledActions: [Action.ReportError]
|
|
@@ -3301,12 +3315,14 @@
|
|
|
3301
3315
|
* ```js
|
|
3302
3316
|
* disabledActions: [Action.RequestVerification]
|
|
3303
3317
|
* ```
|
|
3318
|
+
*
|
|
3304
3319
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3305
3320
|
*/
|
|
3306
3321
|
Action["RequestVerification"] = "requestVerification";
|
|
3307
3322
|
/**
|
|
3308
3323
|
*
|
|
3309
|
-
*Allows users to mark a Liveboard as verified.
|
|
3324
|
+
* Allows users to mark a Liveboard as verified.
|
|
3325
|
+
*
|
|
3310
3326
|
* @example
|
|
3311
3327
|
* ```js
|
|
3312
3328
|
* disabledActions: [Action.MarkAsVerified]
|
|
@@ -3317,6 +3333,7 @@
|
|
|
3317
3333
|
/**
|
|
3318
3334
|
* The **Add Tab** action on a Liveboard.
|
|
3319
3335
|
* Allows adding a new tab to a Liveboard view.
|
|
3336
|
+
*
|
|
3320
3337
|
* @example
|
|
3321
3338
|
* ```js
|
|
3322
3339
|
* disabledActions: [Action.AddTab]
|
|
@@ -3326,7 +3343,8 @@
|
|
|
3326
3343
|
Action["AddTab"] = "addTab";
|
|
3327
3344
|
/**
|
|
3328
3345
|
*
|
|
3329
|
-
*Initiates contextual change analysis on KPI charts.
|
|
3346
|
+
* Initiates contextual change analysis on KPI charts.
|
|
3347
|
+
*
|
|
3330
3348
|
* @example
|
|
3331
3349
|
* ```js
|
|
3332
3350
|
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
@@ -3340,6 +3358,7 @@
|
|
|
3340
3358
|
* ```js
|
|
3341
3359
|
* disabledActions: [Action.ShowSageQuery]
|
|
3342
3360
|
* ```
|
|
3361
|
+
*
|
|
3343
3362
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3344
3363
|
*/
|
|
3345
3364
|
Action["ShowSageQuery"] = "showSageQuery";
|
|
@@ -3354,7 +3373,8 @@
|
|
|
3354
3373
|
Action["EditSageAnswer"] = "editSageAnswer";
|
|
3355
3374
|
/**
|
|
3356
3375
|
*
|
|
3357
|
-
*This action allows users to send feedback on AI-generated Answers.
|
|
3376
|
+
* This action allows users to send feedback on AI-generated Answers.
|
|
3377
|
+
*
|
|
3358
3378
|
* @example
|
|
3359
3379
|
* ```js
|
|
3360
3380
|
* disabledActions: [Action.SageAnswerFeedback]
|
|
@@ -3431,6 +3451,7 @@
|
|
|
3431
3451
|
* hiddenAction: [Action.CreateLiveboard]
|
|
3432
3452
|
* disabledActions: [Action.CreateLiveboard]
|
|
3433
3453
|
* ```
|
|
3454
|
+
*
|
|
3434
3455
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3435
3456
|
*/
|
|
3436
3457
|
Action["CreateLiveboard"] = "createLiveboard";
|
|
@@ -3526,6 +3547,7 @@
|
|
|
3526
3547
|
Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
|
|
3527
3548
|
/**
|
|
3528
3549
|
* The **Manage Tags** action on Homepage Favourite Module.
|
|
3550
|
+
*
|
|
3529
3551
|
* @example
|
|
3530
3552
|
* ```js
|
|
3531
3553
|
* disabledActions: [Action.ManageTags]
|
|
@@ -6136,6 +6158,7 @@
|
|
|
6136
6158
|
* Fetch wrapper that adds the authentication token to the request.
|
|
6137
6159
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6138
6160
|
* The interface for this method is the same as Web `Fetch`.
|
|
6161
|
+
*
|
|
6139
6162
|
* @param input
|
|
6140
6163
|
* @param init
|
|
6141
6164
|
* @example
|
|
@@ -14080,6 +14103,8 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14080
14103
|
},
|
|
14081
14104
|
};
|
|
14082
14105
|
}
|
|
14106
|
+
async getTMLTokens() {
|
|
14107
|
+
}
|
|
14083
14108
|
async addDisplayedVizToLiveboard(liveboardId) {
|
|
14084
14109
|
const { displayMode, visualizations } = await this.getAnswer();
|
|
14085
14110
|
const viz = getDisplayedViz(visualizations, displayMode);
|
|
@@ -20651,6 +20676,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20651
20676
|
}
|
|
20652
20677
|
/**
|
|
20653
20678
|
* Fetches the session info from the ThoughtSpot server.
|
|
20679
|
+
*
|
|
20654
20680
|
* @param thoughtspotHost
|
|
20655
20681
|
* @returns {Promise<any>}
|
|
20656
20682
|
* @example
|
|
@@ -20669,6 +20695,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20669
20695
|
}
|
|
20670
20696
|
/**
|
|
20671
20697
|
* Is active service to check if the user is logged in.
|
|
20698
|
+
*
|
|
20672
20699
|
* @param thoughtSpotHost
|
|
20673
20700
|
* @version SDK: 1.28.4 | ThoughtSpot: *
|
|
20674
20701
|
*/
|
|
@@ -20691,6 +20718,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20691
20718
|
* Returns the session info object and caches it for future use.
|
|
20692
20719
|
* Once fetched the session info object is cached and returned from the cache on
|
|
20693
20720
|
* subsequent calls.
|
|
20721
|
+
*
|
|
20694
20722
|
* @example ```js
|
|
20695
20723
|
* const sessionInfo = await getSessionInfo();
|
|
20696
20724
|
* console.log(sessionInfo);
|
|
@@ -20709,6 +20737,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20709
20737
|
}
|
|
20710
20738
|
/**
|
|
20711
20739
|
* Processes the session info response and returns the session info object.
|
|
20740
|
+
*
|
|
20712
20741
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
20713
20742
|
* @returns {SessionInfo} The session info object.
|
|
20714
20743
|
* @example ```js
|
|
@@ -20851,6 +20880,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
20851
20880
|
* Services to be called after the login is successful,
|
|
20852
20881
|
* This should be called after the cookie is set for cookie auth or
|
|
20853
20882
|
* after the token is set for cookieless.
|
|
20883
|
+
*
|
|
20854
20884
|
* @return {Promise<void>}
|
|
20855
20885
|
* @example
|
|
20856
20886
|
* ```js
|
|
@@ -21157,6 +21187,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21157
21187
|
}
|
|
21158
21188
|
/**
|
|
21159
21189
|
* Responds to AuthInit sent from host signifying successful authentication in host.
|
|
21190
|
+
*
|
|
21160
21191
|
* @param e
|
|
21161
21192
|
* @returns {any}
|
|
21162
21193
|
*/
|
|
@@ -21297,7 +21328,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21297
21328
|
});
|
|
21298
21329
|
}
|
|
21299
21330
|
|
|
21300
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
21331
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.17";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dc","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
21301
21332
|
|
|
21302
21333
|
/**
|
|
21303
21334
|
* Copyright (c) 2022
|
|
@@ -23192,6 +23223,22 @@ query GetEurekaVizSnapshots(
|
|
|
23192
23223
|
this.render();
|
|
23193
23224
|
}
|
|
23194
23225
|
}
|
|
23226
|
+
/**
|
|
23227
|
+
* Returns the full url of the liveboard/viz which can be used to open
|
|
23228
|
+
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
23229
|
+
*
|
|
23230
|
+
* @returns url string
|
|
23231
|
+
*/
|
|
23232
|
+
getLiveboardUrl() {
|
|
23233
|
+
let url = `${this.thoughtSpotHost}/#/pinboard/${this.viewConfig.liveboardId}`;
|
|
23234
|
+
if (this.viewConfig.activeTabId) {
|
|
23235
|
+
url = `${url}/tab/${this.viewConfig.activeTabId}`;
|
|
23236
|
+
}
|
|
23237
|
+
if (this.viewConfig.vizId) {
|
|
23238
|
+
url = `${url}/${this.viewConfig.vizId}`;
|
|
23239
|
+
}
|
|
23240
|
+
return url;
|
|
23241
|
+
}
|
|
23195
23242
|
}
|
|
23196
23243
|
|
|
23197
23244
|
/**
|
package/dist/tsembed.es.js
CHANGED
|
@@ -1842,23 +1842,28 @@ var HostEvent;
|
|
|
1842
1842
|
/**
|
|
1843
1843
|
* Trigger the **Make a copy** action on a Liveboard,
|
|
1844
1844
|
* visualization, or Answer page.
|
|
1845
|
+
*
|
|
1845
1846
|
* @example
|
|
1846
1847
|
* ```js
|
|
1847
1848
|
* liveboardEmbed.trigger(HostEvent.MakeACopy)
|
|
1848
1849
|
* ```
|
|
1850
|
+
*
|
|
1849
1851
|
* @example
|
|
1850
1852
|
* ```js
|
|
1851
1853
|
* liveboardEmbed.trigger(HostEvent.MakeACopy, {
|
|
1852
1854
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1853
1855
|
* ```
|
|
1856
|
+
*
|
|
1854
1857
|
* @example
|
|
1855
1858
|
* ```js
|
|
1856
1859
|
* vizEmbed.trigger(HostEvent.MakeACopy)
|
|
1857
1860
|
* ```
|
|
1861
|
+
*
|
|
1858
1862
|
* @example
|
|
1859
1863
|
* ```js
|
|
1860
1864
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
1861
1865
|
* ```
|
|
1866
|
+
*
|
|
1862
1867
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1863
1868
|
*/
|
|
1864
1869
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
@@ -1884,6 +1889,7 @@ var HostEvent;
|
|
|
1884
1889
|
/**
|
|
1885
1890
|
* Trigger the **Create alert** action on a KPI chart
|
|
1886
1891
|
* in a Liveboard or saved Answer.
|
|
1892
|
+
*
|
|
1887
1893
|
* @param - an object with `vizId` as a key
|
|
1888
1894
|
* @example
|
|
1889
1895
|
* ```js
|
|
@@ -1891,6 +1897,7 @@ var HostEvent;
|
|
|
1891
1897
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1892
1898
|
* })
|
|
1893
1899
|
* ```
|
|
1900
|
+
*
|
|
1894
1901
|
* @example
|
|
1895
1902
|
* ```js
|
|
1896
1903
|
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
@@ -1901,6 +1908,7 @@ var HostEvent;
|
|
|
1901
1908
|
/**
|
|
1902
1909
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
1903
1910
|
* in a visualization or saved Answer.
|
|
1911
|
+
*
|
|
1904
1912
|
* @param - an object with `vizId` as a key
|
|
1905
1913
|
* @example
|
|
1906
1914
|
* ```js
|
|
@@ -1908,10 +1916,12 @@ var HostEvent;
|
|
|
1908
1916
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1909
1917
|
* })
|
|
1910
1918
|
* ```
|
|
1919
|
+
*
|
|
1911
1920
|
* @example
|
|
1912
1921
|
* ```js
|
|
1913
1922
|
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
1914
1923
|
* ```
|
|
1924
|
+
*
|
|
1915
1925
|
* @example
|
|
1916
1926
|
* ```js
|
|
1917
1927
|
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
@@ -2309,6 +2319,7 @@ var HostEvent;
|
|
|
2309
2319
|
/**
|
|
2310
2320
|
* Get the answer session for a Search or
|
|
2311
2321
|
* Liveboard visualization.
|
|
2322
|
+
*
|
|
2312
2323
|
* @example
|
|
2313
2324
|
* ```js
|
|
2314
2325
|
* const {session} = await embed.trigger(
|
|
@@ -2316,10 +2327,12 @@ var HostEvent;
|
|
|
2316
2327
|
* vizId: '123', // For Liveboard Visualization.
|
|
2317
2328
|
* })
|
|
2318
2329
|
* ```
|
|
2330
|
+
*
|
|
2319
2331
|
* @example
|
|
2320
2332
|
* ```js
|
|
2321
2333
|
* const {session} = await embed.trigger( HostEvent.GetAnswerSession )
|
|
2322
2334
|
* ```
|
|
2335
|
+
*
|
|
2323
2336
|
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
2324
2337
|
*/
|
|
2325
2338
|
HostEvent["GetAnswerSession"] = "getAnswerSession";
|
|
@@ -3045,6 +3058,7 @@ var Action;
|
|
|
3045
3058
|
/**
|
|
3046
3059
|
* @deprecated
|
|
3047
3060
|
* Reports errors
|
|
3061
|
+
*
|
|
3048
3062
|
* @example
|
|
3049
3063
|
* ```js
|
|
3050
3064
|
* disabledActions: [Action.ReportError]
|
|
@@ -3274,12 +3288,14 @@ var Action;
|
|
|
3274
3288
|
* ```js
|
|
3275
3289
|
* disabledActions: [Action.RequestVerification]
|
|
3276
3290
|
* ```
|
|
3291
|
+
*
|
|
3277
3292
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3278
3293
|
*/
|
|
3279
3294
|
Action["RequestVerification"] = "requestVerification";
|
|
3280
3295
|
/**
|
|
3281
3296
|
*
|
|
3282
|
-
*Allows users to mark a Liveboard as verified.
|
|
3297
|
+
* Allows users to mark a Liveboard as verified.
|
|
3298
|
+
*
|
|
3283
3299
|
* @example
|
|
3284
3300
|
* ```js
|
|
3285
3301
|
* disabledActions: [Action.MarkAsVerified]
|
|
@@ -3290,6 +3306,7 @@ var Action;
|
|
|
3290
3306
|
/**
|
|
3291
3307
|
* The **Add Tab** action on a Liveboard.
|
|
3292
3308
|
* Allows adding a new tab to a Liveboard view.
|
|
3309
|
+
*
|
|
3293
3310
|
* @example
|
|
3294
3311
|
* ```js
|
|
3295
3312
|
* disabledActions: [Action.AddTab]
|
|
@@ -3299,7 +3316,8 @@ var Action;
|
|
|
3299
3316
|
Action["AddTab"] = "addTab";
|
|
3300
3317
|
/**
|
|
3301
3318
|
*
|
|
3302
|
-
*Initiates contextual change analysis on KPI charts.
|
|
3319
|
+
* Initiates contextual change analysis on KPI charts.
|
|
3320
|
+
*
|
|
3303
3321
|
* @example
|
|
3304
3322
|
* ```js
|
|
3305
3323
|
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
@@ -3313,6 +3331,7 @@ var Action;
|
|
|
3313
3331
|
* ```js
|
|
3314
3332
|
* disabledActions: [Action.ShowSageQuery]
|
|
3315
3333
|
* ```
|
|
3334
|
+
*
|
|
3316
3335
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3317
3336
|
*/
|
|
3318
3337
|
Action["ShowSageQuery"] = "showSageQuery";
|
|
@@ -3327,7 +3346,8 @@ var Action;
|
|
|
3327
3346
|
Action["EditSageAnswer"] = "editSageAnswer";
|
|
3328
3347
|
/**
|
|
3329
3348
|
*
|
|
3330
|
-
*This action allows users to send feedback on AI-generated Answers.
|
|
3349
|
+
* This action allows users to send feedback on AI-generated Answers.
|
|
3350
|
+
*
|
|
3331
3351
|
* @example
|
|
3332
3352
|
* ```js
|
|
3333
3353
|
* disabledActions: [Action.SageAnswerFeedback]
|
|
@@ -3404,6 +3424,7 @@ var Action;
|
|
|
3404
3424
|
* hiddenAction: [Action.CreateLiveboard]
|
|
3405
3425
|
* disabledActions: [Action.CreateLiveboard]
|
|
3406
3426
|
* ```
|
|
3427
|
+
*
|
|
3407
3428
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3408
3429
|
*/
|
|
3409
3430
|
Action["CreateLiveboard"] = "createLiveboard";
|
|
@@ -3499,6 +3520,7 @@ var Action;
|
|
|
3499
3520
|
Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
|
|
3500
3521
|
/**
|
|
3501
3522
|
* The **Manage Tags** action on Homepage Favourite Module.
|
|
3523
|
+
*
|
|
3502
3524
|
* @example
|
|
3503
3525
|
* ```js
|
|
3504
3526
|
* disabledActions: [Action.ManageTags]
|
|
@@ -6124,6 +6146,7 @@ const setEmbedConfig = (newConfig) => {
|
|
|
6124
6146
|
* Fetch wrapper that adds the authentication token to the request.
|
|
6125
6147
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6126
6148
|
* The interface for this method is the same as Web `Fetch`.
|
|
6149
|
+
*
|
|
6127
6150
|
* @param input
|
|
6128
6151
|
* @param init
|
|
6129
6152
|
* @example
|
|
@@ -14068,6 +14091,8 @@ class AnswerService {
|
|
|
14068
14091
|
},
|
|
14069
14092
|
};
|
|
14070
14093
|
}
|
|
14094
|
+
async getTMLTokens() {
|
|
14095
|
+
}
|
|
14071
14096
|
async addDisplayedVizToLiveboard(liveboardId) {
|
|
14072
14097
|
const { displayMode, visualizations } = await this.getAnswer();
|
|
14073
14098
|
const viz = getDisplayedViz(visualizations, displayMode);
|
|
@@ -20684,6 +20709,7 @@ function tokenizedFailureLoggedFetch(url, options = {}) {
|
|
|
20684
20709
|
}
|
|
20685
20710
|
/**
|
|
20686
20711
|
* Fetches the session info from the ThoughtSpot server.
|
|
20712
|
+
*
|
|
20687
20713
|
* @param thoughtspotHost
|
|
20688
20714
|
* @returns {Promise<any>}
|
|
20689
20715
|
* @example
|
|
@@ -20715,6 +20741,7 @@ async function fetchLogoutService(thoughtSpotHost) {
|
|
|
20715
20741
|
}
|
|
20716
20742
|
/**
|
|
20717
20743
|
* Is active service to check if the user is logged in.
|
|
20744
|
+
*
|
|
20718
20745
|
* @param thoughtSpotHost
|
|
20719
20746
|
* @version SDK: 1.28.4 | ThoughtSpot: *
|
|
20720
20747
|
*/
|
|
@@ -20737,6 +20764,7 @@ let sessionInfo = null;
|
|
|
20737
20764
|
* Returns the session info object and caches it for future use.
|
|
20738
20765
|
* Once fetched the session info object is cached and returned from the cache on
|
|
20739
20766
|
* subsequent calls.
|
|
20767
|
+
*
|
|
20740
20768
|
* @example ```js
|
|
20741
20769
|
* const sessionInfo = await getSessionInfo();
|
|
20742
20770
|
* console.log(sessionInfo);
|
|
@@ -20755,6 +20783,7 @@ async function getSessionInfo() {
|
|
|
20755
20783
|
}
|
|
20756
20784
|
/**
|
|
20757
20785
|
* Processes the session info response and returns the session info object.
|
|
20786
|
+
*
|
|
20758
20787
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
20759
20788
|
* @returns {SessionInfo} The session info object.
|
|
20760
20789
|
* @example ```js
|
|
@@ -20915,6 +20944,7 @@ async function isLoggedIn(thoughtSpotHost) {
|
|
|
20915
20944
|
* Services to be called after the login is successful,
|
|
20916
20945
|
* This should be called after the cookie is set for cookie auth or
|
|
20917
20946
|
* after the token is set for cookieless.
|
|
20947
|
+
*
|
|
20918
20948
|
* @return {Promise<void>}
|
|
20919
20949
|
* @example
|
|
20920
20950
|
* ```js
|
|
@@ -21480,6 +21510,7 @@ function processCustomAction(e, thoughtSpotHost) {
|
|
|
21480
21510
|
}
|
|
21481
21511
|
/**
|
|
21482
21512
|
* Responds to AuthInit sent from host signifying successful authentication in host.
|
|
21513
|
+
*
|
|
21483
21514
|
* @param e
|
|
21484
21515
|
* @returns {any}
|
|
21485
21516
|
*/
|
|
@@ -21620,7 +21651,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
21620
21651
|
});
|
|
21621
21652
|
}
|
|
21622
21653
|
|
|
21623
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
21654
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.17";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dc","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"^2.45.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"2.30.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
21624
21655
|
|
|
21625
21656
|
/**
|
|
21626
21657
|
* Copyright (c) 2022
|
|
@@ -23223,6 +23254,22 @@ class LiveboardEmbed extends V1Embed {
|
|
|
23223
23254
|
this.render();
|
|
23224
23255
|
}
|
|
23225
23256
|
}
|
|
23257
|
+
/**
|
|
23258
|
+
* Returns the full url of the liveboard/viz which can be used to open
|
|
23259
|
+
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
23260
|
+
*
|
|
23261
|
+
* @returns url string
|
|
23262
|
+
*/
|
|
23263
|
+
getLiveboardUrl() {
|
|
23264
|
+
let url = `${this.thoughtSpotHost}/#/pinboard/${this.viewConfig.liveboardId}`;
|
|
23265
|
+
if (this.viewConfig.activeTabId) {
|
|
23266
|
+
url = `${url}/tab/${this.viewConfig.activeTabId}`;
|
|
23267
|
+
}
|
|
23268
|
+
if (this.viewConfig.vizId) {
|
|
23269
|
+
url = `${url}/${this.viewConfig.vizId}`;
|
|
23270
|
+
}
|
|
23271
|
+
return url;
|
|
23272
|
+
}
|
|
23226
23273
|
}
|
|
23227
23274
|
/**
|
|
23228
23275
|
* @hidden
|
|
@@ -24425,7 +24472,10 @@ const getAnswerFromQuery = async (query, worksheetId) => {
|
|
|
24425
24472
|
genNo: suggestion.stateKey.generationNumber,
|
|
24426
24473
|
},
|
|
24427
24474
|
};
|
|
24428
|
-
return
|
|
24475
|
+
return {
|
|
24476
|
+
answer: new AnswerService(answerSession, null, embedConfig.thoughtSpotHost),
|
|
24477
|
+
suggestion,
|
|
24478
|
+
};
|
|
24429
24479
|
};
|
|
24430
24480
|
|
|
24431
24481
|
const createLiveboardWithAnswers = async (answers, name) => {
|