@thoughtspot/visual-embed-sdk 1.32.3 → 1.32.4-dc.0
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 +0 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +0 -1
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/authToken.d.ts +4 -0
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +4 -0
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +5 -6
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +26 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -0
- package/cjs/src/embed/conversation.js +41 -0
- package/cjs/src/embed/conversation.js.map +1 -0
- package/cjs/src/embed/embed.spec.js +0 -19
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +0 -2
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +0 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +2 -8
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +0 -9
- 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 +3 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts +0 -1
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +0 -1
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +3 -34
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +3 -26
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/answerService/answerService.d.ts +34 -0
- package/cjs/src/utils/answerService/answerService.d.ts.map +1 -0
- package/cjs/src/utils/answerService/answerService.js +142 -0
- package/cjs/src/utils/answerService/answerService.js.map +1 -0
- package/cjs/src/utils/answerService/answerService.spec.d.ts +1 -0
- package/cjs/src/utils/answerService/answerService.spec.d.ts.map +1 -0
- package/cjs/src/utils/answerService/answerService.spec.js +1 -0
- package/cjs/src/utils/answerService/answerService.spec.js.map +1 -0
- package/cjs/src/utils/answerService/graphql-queries.d.ts +6 -0
- package/cjs/src/utils/answerService/graphql-queries.d.ts.map +1 -0
- package/cjs/src/utils/answerService/graphql-queries.js +123 -0
- package/cjs/src/utils/answerService/graphql-queries.js.map +1 -0
- package/cjs/src/utils/answerService.d.ts +10 -0
- package/cjs/src/utils/answerService.d.ts.map +1 -0
- package/cjs/src/utils/answerService.js +61 -0
- package/cjs/src/utils/answerService.js.map +1 -0
- package/cjs/src/utils/answerService.spec.d.ts +2 -0
- package/cjs/src/utils/answerService.spec.d.ts.map +1 -0
- package/cjs/src/utils/answerService.spec.js +31 -0
- package/cjs/src/utils/answerService.spec.js.map +1 -0
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts +0 -2
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js +0 -2
- package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/cjs/src/utils/authService.d.ts +37 -0
- package/cjs/src/utils/authService.d.ts.map +1 -0
- package/cjs/src/utils/authService.js +106 -0
- package/cjs/src/utils/authService.js.map +1 -0
- package/cjs/src/utils/authService.spec.d.ts +2 -0
- package/cjs/src/utils/authService.spec.d.ts.map +1 -0
- package/cjs/src/utils/authService.spec.js +72 -0
- package/cjs/src/utils/authService.spec.js.map +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +9 -2
- package/cjs/src/utils/graphql/answerService/answer-queries.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 +4 -0
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +35 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts +5 -0
- package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/answerService/graphql-queries.js +80 -0
- package/cjs/src/utils/graphql/answerService/graphql-queries.js.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.js +318 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.js +89 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
- package/cjs/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/cjs/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/cjs/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/cjs/src/utils/graphql/graphql-request.spec.js +36 -0
- package/cjs/src/utils/graphql/graphql-request.spec.js.map +1 -0
- package/cjs/src/utils/graphql/preview-service.d.ts +6 -0
- package/cjs/src/utils/graphql/preview-service.d.ts.map +1 -1
- package/cjs/src/utils/graphql/preview-service.js +6 -0
- package/cjs/src/utils/graphql/preview-service.js.map +1 -1
- package/cjs/src/utils/processData.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +0 -1
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processTrigger.d.ts +1 -0
- package/cjs/src/utils/processTrigger.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.js +3 -3
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils/processTrigger.spec.js +10 -0
- package/cjs/src/utils/processTrigger.spec.js.map +1 -1
- package/cjs/src/utils/sessionInfoService.d.ts +0 -4
- package/cjs/src/utils/sessionInfoService.d.ts.map +1 -1
- package/cjs/src/utils/sessionInfoService.js +0 -4
- package/cjs/src/utils/sessionInfoService.js.map +1 -1
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +1 -5
- package/cjs/src/utils.js.map +1 -1
- package/dist/assets/main-DT_ac2DB.js +264 -0
- package/dist/local/index.html +34 -0
- package/dist/src/auth.d.ts +0 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +4 -0
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +26 -0
- package/dist/src/embed/conversation.d.ts.map +1 -0
- package/dist/src/embed/liveboard.d.ts +0 -2
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +0 -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/tokenizedFetch.d.ts +0 -1
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +3 -34
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.d.ts +0 -2
- package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/dist/src/utils/graphql/answerService/answer-queries.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/conversationService/conversation-queries.d.ts +3 -0
- package/dist/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
- package/dist/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
- package/dist/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
- package/dist/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/dist/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/dist/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/dist/src/utils/graphql/preview-service.d.ts +6 -0
- package/dist/src/utils/graphql/preview-service.d.ts.map +1 -1
- package/dist/src/utils/processData.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts +1 -0
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils/sessionInfoService.d.ts +0 -4
- package/dist/src/utils/sessionInfoService.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +29 -48
- package/dist/tsembed-react.js +29 -48
- package/dist/tsembed.es.js +466 -55
- package/dist/tsembed.js +466 -54
- package/dist/visual-embed-sdk-react-full.d.ts +40 -52
- package/dist/visual-embed-sdk-react.d.ts +40 -52
- package/dist/visual-embed-sdk.d.ts +40 -52
- package/lib/package.json +1 -1
- package/lib/src/auth.d.ts +0 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +0 -1
- package/lib/src/auth.js.map +1 -1
- package/lib/src/authToken.d.ts +4 -0
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +4 -0
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +5 -6
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +26 -0
- package/lib/src/embed/conversation.d.ts.map +1 -0
- package/lib/src/embed/conversation.js +37 -0
- package/lib/src/embed/conversation.js.map +1 -0
- package/lib/src/embed/embed.spec.js +0 -19
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +0 -2
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +0 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +2 -8
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +0 -9
- 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/tokenizedFetch.d.ts +0 -1
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +0 -1
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +3 -34
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +3 -26
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.d.ts +0 -2
- package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.js +0 -2
- package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts +1 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +8 -1
- package/lib/src/utils/graphql/answerService/answer-queries.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 +4 -0
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +36 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
- package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
- package/lib/src/utils/graphql/conversationService/conversation-queries.js +315 -0
- package/lib/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.js +84 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
- package/lib/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/lib/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/lib/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/lib/src/utils/graphql/graphql-request.spec.js +33 -0
- package/lib/src/utils/graphql/graphql-request.spec.js.map +1 -0
- package/lib/src/utils/graphql/preview-service.d.ts +6 -0
- package/lib/src/utils/graphql/preview-service.d.ts.map +1 -1
- package/lib/src/utils/graphql/preview-service.js +6 -0
- package/lib/src/utils/graphql/preview-service.js.map +1 -1
- package/lib/src/utils/processData.d.ts.map +1 -1
- package/lib/src/utils/processData.js +0 -1
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processTrigger.d.ts +1 -0
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +1 -1
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils/processTrigger.spec.js +10 -0
- package/lib/src/utils/processTrigger.spec.js.map +1 -1
- package/lib/src/utils/sessionInfoService.d.ts +0 -4
- package/lib/src/utils/sessionInfoService.d.ts.map +1 -1
- package/lib/src/utils/sessionInfoService.js +0 -4
- package/lib/src/utils/sessionInfoService.js.map +1 -1
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +1 -5
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +44 -52
- package/package.json +1 -1
- package/src/auth.ts +0 -1
- package/src/authToken.ts +4 -0
- package/src/embed/base.ts +0 -1
- package/src/embed/conversation.ts +57 -0
- package/src/embed/embed.spec.ts +0 -22
- package/src/embed/liveboard.ts +0 -2
- package/src/embed/ts-embed.spec.ts +0 -11
- package/src/embed/ts-embed.ts +0 -8
- package/src/index.ts +3 -0
- package/src/tokenizedFetch.ts +0 -1
- package/src/types.ts +3 -34
- package/src/utils/authService/tokenizedAuthService.ts +0 -2
- package/src/utils/graphql/answerService/answer-queries.ts +9 -1
- package/src/utils/graphql/answerService/answerService.spec.ts +45 -0
- package/src/utils/graphql/answerService/answerService.ts +8 -0
- package/src/utils/graphql/conversationService/conversation-queries.ts +315 -0
- package/src/utils/graphql/conversationService/conversation-service.ts +93 -0
- package/src/utils/graphql/graphql-request.spec.ts +38 -0
- package/src/utils/graphql/graphql-request.ts +1 -1
- package/src/utils/graphql/preview-service.ts +6 -0
- package/src/utils/processData.ts +0 -1
- package/src/utils/processTrigger.spec.ts +19 -0
- package/src/utils/processTrigger.ts +1 -1
- package/src/utils/sessionInfoService.ts +0 -4
- package/src/utils.ts +0 -5
package/dist/tsembed-react.js
CHANGED
|
@@ -321,8 +321,7 @@
|
|
|
321
321
|
return false;
|
|
322
322
|
};
|
|
323
323
|
const getCustomisations = (embedConfig, viewConfig) => {
|
|
324
|
-
var _a, _b
|
|
325
|
-
const customCssUrlFromEmbedConfig = embedConfig.customCssUrl;
|
|
324
|
+
var _a, _b;
|
|
326
325
|
const customizationsFromViewConfig = viewConfig.customizations;
|
|
327
326
|
const customizationsFromEmbedConfig = embedConfig.customizations
|
|
328
327
|
|| embedConfig.customisations;
|
|
@@ -334,9 +333,6 @@
|
|
|
334
333
|
...(_a = customizationsFromEmbedConfig === null || customizationsFromEmbedConfig === void 0 ? void 0 : customizationsFromEmbedConfig.style) === null || _a === void 0 ? void 0 : _a.customCSS,
|
|
335
334
|
...(_b = customizationsFromViewConfig === null || customizationsFromViewConfig === void 0 ? void 0 : customizationsFromViewConfig.style) === null || _b === void 0 ? void 0 : _b.customCSS,
|
|
336
335
|
},
|
|
337
|
-
customCSSUrl: ((_c = customizationsFromViewConfig === null || customizationsFromViewConfig === void 0 ? void 0 : customizationsFromViewConfig.style) === null || _c === void 0 ? void 0 : _c.customCSSUrl)
|
|
338
|
-
|| ((_d = customizationsFromEmbedConfig === null || customizationsFromEmbedConfig === void 0 ? void 0 : customizationsFromEmbedConfig.style) === null || _d === void 0 ? void 0 : _d.customCSSUrl)
|
|
339
|
-
|| customCssUrlFromEmbedConfig,
|
|
340
336
|
},
|
|
341
337
|
content: {
|
|
342
338
|
...customizationsFromEmbedConfig === null || customizationsFromEmbedConfig === void 0 ? void 0 : customizationsFromEmbedConfig.content,
|
|
@@ -1901,28 +1897,23 @@
|
|
|
1901
1897
|
/**
|
|
1902
1898
|
* Trigger the **Make a copy** action on a Liveboard,
|
|
1903
1899
|
* visualization, or Answer page.
|
|
1904
|
-
*
|
|
1905
1900
|
* @example
|
|
1906
1901
|
* ```js
|
|
1907
1902
|
* liveboardEmbed.trigger(HostEvent.MakeACopy)
|
|
1908
1903
|
* ```
|
|
1909
|
-
*
|
|
1910
1904
|
* @example
|
|
1911
1905
|
* ```js
|
|
1912
1906
|
* liveboardEmbed.trigger(HostEvent.MakeACopy, {
|
|
1913
1907
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1914
1908
|
* ```
|
|
1915
|
-
*
|
|
1916
1909
|
* @example
|
|
1917
1910
|
* ```js
|
|
1918
1911
|
* vizEmbed.trigger(HostEvent.MakeACopy)
|
|
1919
1912
|
* ```
|
|
1920
|
-
*
|
|
1921
1913
|
* @example
|
|
1922
1914
|
* ```js
|
|
1923
1915
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
1924
1916
|
* ```
|
|
1925
|
-
*
|
|
1926
1917
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1927
1918
|
*/
|
|
1928
1919
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
@@ -1948,7 +1939,6 @@
|
|
|
1948
1939
|
/**
|
|
1949
1940
|
* Trigger the **Create alert** action on a KPI chart
|
|
1950
1941
|
* in a Liveboard or saved Answer.
|
|
1951
|
-
*
|
|
1952
1942
|
* @param - an object with `vizId` as a key
|
|
1953
1943
|
* @example
|
|
1954
1944
|
* ```js
|
|
@@ -1956,7 +1946,6 @@
|
|
|
1956
1946
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1957
1947
|
* })
|
|
1958
1948
|
* ```
|
|
1959
|
-
*
|
|
1960
1949
|
* @example
|
|
1961
1950
|
* ```js
|
|
1962
1951
|
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
@@ -1967,7 +1956,6 @@
|
|
|
1967
1956
|
/**
|
|
1968
1957
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
1969
1958
|
* in a visualization or saved Answer.
|
|
1970
|
-
*
|
|
1971
1959
|
* @param - an object with `vizId` as a key
|
|
1972
1960
|
* @example
|
|
1973
1961
|
* ```js
|
|
@@ -1975,12 +1963,10 @@
|
|
|
1975
1963
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
1976
1964
|
* })
|
|
1977
1965
|
* ```
|
|
1978
|
-
*
|
|
1979
1966
|
* @example
|
|
1980
1967
|
* ```js
|
|
1981
1968
|
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
1982
1969
|
* ```
|
|
1983
|
-
*
|
|
1984
1970
|
* @example
|
|
1985
1971
|
* ```js
|
|
1986
1972
|
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
@@ -2378,7 +2364,6 @@
|
|
|
2378
2364
|
/**
|
|
2379
2365
|
* Get the answer session for a Search or
|
|
2380
2366
|
* Liveboard visualization.
|
|
2381
|
-
*
|
|
2382
2367
|
* @example
|
|
2383
2368
|
* ```js
|
|
2384
2369
|
* const {session} = await embed.trigger(
|
|
@@ -2386,12 +2371,10 @@
|
|
|
2386
2371
|
* vizId: '123', // For Liveboard Visualization.
|
|
2387
2372
|
* })
|
|
2388
2373
|
* ```
|
|
2389
|
-
*
|
|
2390
2374
|
* @example
|
|
2391
2375
|
* ```js
|
|
2392
2376
|
* const {session} = await embed.trigger( HostEvent.GetAnswerSession )
|
|
2393
2377
|
* ```
|
|
2394
|
-
*
|
|
2395
2378
|
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
2396
2379
|
*/
|
|
2397
2380
|
HostEvent["GetAnswerSession"] = "getAnswerSession";
|
|
@@ -2505,7 +2488,6 @@
|
|
|
2505
2488
|
Param["ViewPortHeight"] = "viewPortHeight";
|
|
2506
2489
|
Param["ViewPortWidth"] = "viewPortWidth";
|
|
2507
2490
|
Param["VisibleActions"] = "visibleAction";
|
|
2508
|
-
Param["CustomCSSUrl"] = "customCssUrl";
|
|
2509
2491
|
Param["DisableLoginRedirect"] = "disableLoginRedirect";
|
|
2510
2492
|
Param["visibleVizs"] = "pinboardVisibleVizs";
|
|
2511
2493
|
Param["LiveboardV2Enabled"] = "isPinboardV2Enabled";
|
|
@@ -3090,7 +3072,6 @@
|
|
|
3090
3072
|
/**
|
|
3091
3073
|
* @deprecated
|
|
3092
3074
|
* Reports errors
|
|
3093
|
-
*
|
|
3094
3075
|
* @example
|
|
3095
3076
|
* ```js
|
|
3096
3077
|
* disabledActions: [Action.ReportError]
|
|
@@ -3320,14 +3301,12 @@
|
|
|
3320
3301
|
* ```js
|
|
3321
3302
|
* disabledActions: [Action.RequestVerification]
|
|
3322
3303
|
* ```
|
|
3323
|
-
*
|
|
3324
3304
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3325
3305
|
*/
|
|
3326
3306
|
Action["RequestVerification"] = "requestVerification";
|
|
3327
3307
|
/**
|
|
3328
3308
|
*
|
|
3329
|
-
*
|
|
3330
|
-
*
|
|
3309
|
+
*Allows users to mark a Liveboard as verified.
|
|
3331
3310
|
* @example
|
|
3332
3311
|
* ```js
|
|
3333
3312
|
* disabledActions: [Action.MarkAsVerified]
|
|
@@ -3338,7 +3317,6 @@
|
|
|
3338
3317
|
/**
|
|
3339
3318
|
* The **Add Tab** action on a Liveboard.
|
|
3340
3319
|
* Allows adding a new tab to a Liveboard view.
|
|
3341
|
-
*
|
|
3342
3320
|
* @example
|
|
3343
3321
|
* ```js
|
|
3344
3322
|
* disabledActions: [Action.AddTab]
|
|
@@ -3348,8 +3326,7 @@
|
|
|
3348
3326
|
Action["AddTab"] = "addTab";
|
|
3349
3327
|
/**
|
|
3350
3328
|
*
|
|
3351
|
-
*
|
|
3352
|
-
*
|
|
3329
|
+
*Initiates contextual change analysis on KPI charts.
|
|
3353
3330
|
* @example
|
|
3354
3331
|
* ```js
|
|
3355
3332
|
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
@@ -3363,7 +3340,6 @@
|
|
|
3363
3340
|
* ```js
|
|
3364
3341
|
* disabledActions: [Action.ShowSageQuery]
|
|
3365
3342
|
* ```
|
|
3366
|
-
*
|
|
3367
3343
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3368
3344
|
*/
|
|
3369
3345
|
Action["ShowSageQuery"] = "showSageQuery";
|
|
@@ -3378,8 +3354,7 @@
|
|
|
3378
3354
|
Action["EditSageAnswer"] = "editSageAnswer";
|
|
3379
3355
|
/**
|
|
3380
3356
|
*
|
|
3381
|
-
*
|
|
3382
|
-
*
|
|
3357
|
+
*This action allows users to send feedback on AI-generated Answers.
|
|
3383
3358
|
* @example
|
|
3384
3359
|
* ```js
|
|
3385
3360
|
* disabledActions: [Action.SageAnswerFeedback]
|
|
@@ -3456,7 +3431,6 @@
|
|
|
3456
3431
|
* hiddenAction: [Action.CreateLiveboard]
|
|
3457
3432
|
* disabledActions: [Action.CreateLiveboard]
|
|
3458
3433
|
* ```
|
|
3459
|
-
*
|
|
3460
3434
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3461
3435
|
*/
|
|
3462
3436
|
Action["CreateLiveboard"] = "createLiveboard";
|
|
@@ -3552,7 +3526,6 @@
|
|
|
3552
3526
|
Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
|
|
3553
3527
|
/**
|
|
3554
3528
|
* The **Manage Tags** action on Homepage Favourite Module.
|
|
3555
|
-
*
|
|
3556
3529
|
* @example
|
|
3557
3530
|
* ```js
|
|
3558
3531
|
* disabledActions: [Action.ManageTags]
|
|
@@ -6075,6 +6048,10 @@
|
|
|
6075
6048
|
|
|
6076
6049
|
let cachedAuthToken = null;
|
|
6077
6050
|
// This method can be used to get the authToken using the embedConfig
|
|
6051
|
+
/**
|
|
6052
|
+
*
|
|
6053
|
+
* @param embedConfig
|
|
6054
|
+
*/
|
|
6078
6055
|
async function getAuthenticationToken(embedConfig) {
|
|
6079
6056
|
// Since we don't have token validation enabled , we cannot tell if the
|
|
6080
6057
|
// cached token is valid or not. So we will always fetch a new token.
|
|
@@ -6159,7 +6136,6 @@
|
|
|
6159
6136
|
* Fetch wrapper that adds the authentication token to the request.
|
|
6160
6137
|
* Use this to call the ThoughtSpot APIs when using the visual embed sdk.
|
|
6161
6138
|
* The interface for this method is the same as Web `Fetch`.
|
|
6162
|
-
*
|
|
6163
6139
|
* @param input
|
|
6164
6140
|
* @param init
|
|
6165
6141
|
* @example
|
|
@@ -6383,7 +6359,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
6383
6359
|
isDiscoverable
|
|
6384
6360
|
isHidden
|
|
6385
6361
|
modifiedAt
|
|
6386
|
-
tags
|
|
6387
6362
|
}
|
|
6388
6363
|
visualizations {
|
|
6389
6364
|
... on TableViz {
|
|
@@ -6428,6 +6403,14 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
6428
6403
|
}
|
|
6429
6404
|
}
|
|
6430
6405
|
}
|
|
6406
|
+
`;
|
|
6407
|
+
const getSQLQuery = `
|
|
6408
|
+
mutation GetSQLQuery($session: BachSessionIdInput!) {
|
|
6409
|
+
Answer__getQuery(session: $session) {
|
|
6410
|
+
${bachSessionId}
|
|
6411
|
+
sql
|
|
6412
|
+
}
|
|
6413
|
+
}
|
|
6431
6414
|
`;
|
|
6432
6415
|
|
|
6433
6416
|
// eslint-disable-next-line no-shadow
|
|
@@ -6559,6 +6542,10 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
6559
6542
|
},
|
|
6560
6543
|
});
|
|
6561
6544
|
}
|
|
6545
|
+
async getSQLQuery() {
|
|
6546
|
+
const { sql } = await this.executeQuery(getSQLQuery, {});
|
|
6547
|
+
return sql;
|
|
6548
|
+
}
|
|
6562
6549
|
/**
|
|
6563
6550
|
* Fetch data from the answer.
|
|
6564
6551
|
* @param offset
|
|
@@ -13229,7 +13216,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13229
13216
|
}
|
|
13230
13217
|
/**
|
|
13231
13218
|
* Fetches the session info from the ThoughtSpot server.
|
|
13232
|
-
*
|
|
13233
13219
|
* @param thoughtspotHost
|
|
13234
13220
|
* @returns {Promise<any>}
|
|
13235
13221
|
* @example
|
|
@@ -13248,7 +13234,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13248
13234
|
}
|
|
13249
13235
|
/**
|
|
13250
13236
|
* Is active service to check if the user is logged in.
|
|
13251
|
-
*
|
|
13252
13237
|
* @param thoughtSpotHost
|
|
13253
13238
|
* @version SDK: 1.28.4 | ThoughtSpot: *
|
|
13254
13239
|
*/
|
|
@@ -13271,7 +13256,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13271
13256
|
* Returns the session info object and caches it for future use.
|
|
13272
13257
|
* Once fetched the session info object is cached and returned from the cache on
|
|
13273
13258
|
* subsequent calls.
|
|
13274
|
-
*
|
|
13275
13259
|
* @example ```js
|
|
13276
13260
|
* const sessionInfo = await getSessionInfo();
|
|
13277
13261
|
* console.log(sessionInfo);
|
|
@@ -13290,7 +13274,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13290
13274
|
}
|
|
13291
13275
|
/**
|
|
13292
13276
|
* Processes the session info response and returns the session info object.
|
|
13293
|
-
*
|
|
13294
13277
|
* @param sessionInfoResp {any} Response from the session info API.
|
|
13295
13278
|
* @returns {SessionInfo} The session info object.
|
|
13296
13279
|
* @example ```js
|
|
@@ -13433,7 +13416,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13433
13416
|
* Services to be called after the login is successful,
|
|
13434
13417
|
* This should be called after the cookie is set for cookie auth or
|
|
13435
13418
|
* after the token is set for cookieless.
|
|
13436
|
-
*
|
|
13437
13419
|
* @return {Promise<void>}
|
|
13438
13420
|
* @example
|
|
13439
13421
|
* ```js
|
|
@@ -13740,7 +13722,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13740
13722
|
}
|
|
13741
13723
|
/**
|
|
13742
13724
|
* Responds to AuthInit sent from host signifying successful authentication in host.
|
|
13743
|
-
*
|
|
13744
13725
|
* @param e
|
|
13745
13726
|
* @returns {any}
|
|
13746
13727
|
*/
|
|
@@ -13881,7 +13862,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13881
13862
|
});
|
|
13882
13863
|
}
|
|
13883
13864
|
|
|
13884
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.
|
|
13865
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.0";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 is-publish-allowed && npm run test && 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 dev","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"};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/mixpanel-browser":"^2.35.6","@types/lodash":"^4.17.0","@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};
|
|
13885
13866
|
|
|
13886
13867
|
/**
|
|
13887
13868
|
* Copyright (c) 2022
|
|
@@ -14153,7 +14134,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14153
14134
|
* @returns queryParams
|
|
14154
14135
|
*/
|
|
14155
14136
|
getBaseQueryParams(queryParams = {}) {
|
|
14156
|
-
var _a, _b, _c
|
|
14137
|
+
var _a, _b, _c;
|
|
14157
14138
|
let hostAppUrl = ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.host) || '';
|
|
14158
14139
|
// The below check is needed because TS Cloud firewall, blocks
|
|
14159
14140
|
// localhost/127.0.0.1 in any url param.
|
|
@@ -14196,11 +14177,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14196
14177
|
this.handleError('You cannot have both hidden Tabs and visible Tabs');
|
|
14197
14178
|
return queryParams;
|
|
14198
14179
|
}
|
|
14199
|
-
// TODO remove embedConfig.customCssUrl
|
|
14200
|
-
const cssUrlParam = ((_c = customizations === null || customizations === void 0 ? void 0 : customizations.style) === null || _c === void 0 ? void 0 : _c.customCSSUrl) || this.embedConfig.customCssUrl;
|
|
14201
|
-
if (cssUrlParam) {
|
|
14202
|
-
queryParams[Param.CustomCSSUrl] = cssUrlParam;
|
|
14203
|
-
}
|
|
14204
14180
|
if (disabledActions === null || disabledActions === void 0 ? void 0 : disabledActions.length) {
|
|
14205
14181
|
queryParams[Param.DisableActions] = disabledActions;
|
|
14206
14182
|
}
|
|
@@ -14229,7 +14205,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14229
14205
|
queryParams[Param.ContextMenuTrigger] = false;
|
|
14230
14206
|
}
|
|
14231
14207
|
const spriteUrl = (customizations === null || customizations === void 0 ? void 0 : customizations.iconSpriteUrl)
|
|
14232
|
-
|| ((
|
|
14208
|
+
|| ((_c = this.embedConfig.customizations) === null || _c === void 0 ? void 0 : _c.iconSpriteUrl);
|
|
14233
14209
|
if (spriteUrl) {
|
|
14234
14210
|
queryParams[Param.IconSpriteUrl] = spriteUrl.replace('https://', '');
|
|
14235
14211
|
}
|
|
@@ -14861,7 +14837,6 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
14861
14837
|
super(domSelector, viewConfig);
|
|
14862
14838
|
/**
|
|
14863
14839
|
* Only for testing purposes.
|
|
14864
|
-
*
|
|
14865
14840
|
* @hidden
|
|
14866
14841
|
*/
|
|
14867
14842
|
// eslint-disable-next-line camelcase
|
|
@@ -15495,6 +15470,12 @@ query GetEurekaVizSnapshots(
|
|
|
15495
15470
|
}
|
|
15496
15471
|
}
|
|
15497
15472
|
`;
|
|
15473
|
+
/**
|
|
15474
|
+
*
|
|
15475
|
+
* @param thoughtSpotHost
|
|
15476
|
+
* @param vizId
|
|
15477
|
+
* @param liveboardId
|
|
15478
|
+
*/
|
|
15498
15479
|
async function getPreview(thoughtSpotHost, vizId, liveboardId) {
|
|
15499
15480
|
return graphqlQuery({
|
|
15500
15481
|
query: getPreviewQuery,
|