@thoughtspot/visual-embed-sdk 1.35.5-hostEvent.1 → 1.35.5-hostEvent.2
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/embed/hostEventClient/contracts.d.ts +6 -12
- package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/contracts.js +0 -1
- package/cjs/src/embed/hostEventClient/contracts.js.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts +3 -6
- package/cjs/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/cjs/src/embed/hostEventClient/host-event-client.js +22 -22
- package/cjs/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +3 -3
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +11 -11
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/types.d.ts +1 -1
- package/cjs/src/types.js +1 -1
- package/dist/index-DFwi_pV_.js +7370 -0
- package/dist/src/embed/hostEventClient/contracts.d.ts +6 -12
- package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/dist/src/embed/hostEventClient/host-event-client.d.ts +3 -6
- package/dist/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +3 -3
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/tsembed-react.es.js +37 -38
- package/dist/tsembed-react.js +36 -37
- package/dist/tsembed.es.js +37 -38
- package/dist/tsembed.js +36 -37
- package/dist/visual-embed-sdk-react-full.d.ts +10 -19
- package/dist/visual-embed-sdk-react.d.ts +10 -19
- package/dist/visual-embed-sdk.d.ts +10 -19
- package/lib/package.json +1 -1
- package/lib/src/embed/hostEventClient/contracts.d.ts +6 -12
- package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/contracts.js +0 -1
- package/lib/src/embed/hostEventClient/contracts.js.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.d.ts +3 -6
- package/lib/src/embed/hostEventClient/host-event-client.d.ts.map +1 -1
- package/lib/src/embed/hostEventClient/host-event-client.js +22 -22
- package/lib/src/embed/hostEventClient/host-event-client.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +3 -3
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +11 -11
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/types.d.ts +1 -1
- package/lib/src/types.js +1 -1
- package/lib/src/visual-embed-sdk.d.ts +13 -22
- package/package.json +1 -1
- package/src/embed/hostEventClient/contracts.ts +4 -10
- package/src/embed/hostEventClient/host-event-client.ts +31 -34
- package/src/embed/ts-embed.ts +13 -4
- package/src/types.ts +1 -1
package/dist/tsembed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @thoughtspot/visual-embed-sdk version 1.35.5-hostEvent.
|
|
1
|
+
/* @thoughtspot/visual-embed-sdk version 1.35.5-hostEvent.2 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -2556,7 +2556,7 @@
|
|
|
2556
2556
|
HostEvent["UpdatePersonalisedView"] = "UpdatePersonalisedView";
|
|
2557
2557
|
/**
|
|
2558
2558
|
* Triggers the action to get the current view of the liveboard
|
|
2559
|
-
* @version SDK: 1.
|
|
2559
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
2560
2560
|
*/
|
|
2561
2561
|
HostEvent["SaveAnswer"] = "saveAnswer";
|
|
2562
2562
|
/**
|
|
@@ -14751,7 +14751,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14751
14751
|
return e;
|
|
14752
14752
|
}
|
|
14753
14753
|
|
|
14754
|
-
var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.5-hostEvent.
|
|
14754
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.35.5-hostEvent.2";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",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.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",crypto:"^1.0.1","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","eslint-plugin-comment-length":"1.7.3","eslint-plugin-jsdoc":"^46.9.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:"4.24.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$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.es.js",limit:"31 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};
|
|
14755
14755
|
|
|
14756
14756
|
/**
|
|
14757
14757
|
* Reloads the ThoughtSpot iframe.
|
|
@@ -14820,35 +14820,34 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14820
14820
|
UiPassthroughEvent["getAvailableUiPassthroughs"] = "getAvailableUiPassthroughs";
|
|
14821
14821
|
UiPassthroughEvent["getAnswerPageConfig"] = "getAnswerPageConfig";
|
|
14822
14822
|
UiPassthroughEvent["getPinboardPageConfig"] = "getPinboardPageConfig";
|
|
14823
|
-
UiPassthroughEvent["UiPassthroughEventNotFound"] = "UiPassthroughEventNotFound";
|
|
14824
14823
|
})(exports.UiPassthroughEvent || (exports.UiPassthroughEvent = {}));
|
|
14825
14824
|
|
|
14826
14825
|
class HostEventClient {
|
|
14827
14826
|
constructor(thoughtSpotHost) {
|
|
14828
|
-
this.executeUiPassthroughApi = async (iFrame, apiName, parameters) => {
|
|
14829
|
-
const res = await processTrigger(iFrame, exports.HostEvent.UiPassthrough, this.thoughtSpotHost, {
|
|
14830
|
-
type: apiName,
|
|
14831
|
-
parameters,
|
|
14832
|
-
});
|
|
14833
|
-
return res;
|
|
14834
|
-
};
|
|
14835
|
-
this.handleUiPassthroughForHostEvent = async (iFrame, apiName, parameters) => {
|
|
14836
|
-
var _a, _b, _c;
|
|
14837
|
-
const response = (_b = (_a = (await this.executeUiPassthroughApi(iFrame, apiName, parameters))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
|
|
14838
|
-
if (!response) {
|
|
14839
|
-
const error = `No answer found${parameters.vizId ? ` for vizId: ${parameters.vizId}` : ''}.`;
|
|
14840
|
-
// eslint-disable-next-line no-throw-literal
|
|
14841
|
-
throw { error };
|
|
14842
|
-
}
|
|
14843
|
-
const errors = response.error || ((_c = response.value) === null || _c === void 0 ? void 0 : _c.errors);
|
|
14844
|
-
if (errors) {
|
|
14845
|
-
// eslint-disable-next-line no-throw-literal
|
|
14846
|
-
throw { error: response.error };
|
|
14847
|
-
}
|
|
14848
|
-
return { ...response.value };
|
|
14849
|
-
};
|
|
14850
14827
|
this.thoughtSpotHost = thoughtSpotHost;
|
|
14851
14828
|
}
|
|
14829
|
+
async executeUiPassthroughApi(iFrame, apiName, parameters) {
|
|
14830
|
+
const res = await processTrigger(iFrame, exports.HostEvent.UiPassthrough, this.thoughtSpotHost, {
|
|
14831
|
+
type: apiName,
|
|
14832
|
+
parameters,
|
|
14833
|
+
});
|
|
14834
|
+
return res;
|
|
14835
|
+
}
|
|
14836
|
+
async handleUiPassthroughForHostEvent(iFrame, apiName, parameters) {
|
|
14837
|
+
var _a, _b, _c;
|
|
14838
|
+
const response = (_b = (_a = (await this.executeUiPassthroughApi(iFrame, apiName, parameters))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
|
|
14839
|
+
if (!response) {
|
|
14840
|
+
const error = `No answer found${parameters.vizId ? ` for vizId: ${parameters.vizId}` : ''}.`;
|
|
14841
|
+
// eslint-disable-next-line no-throw-literal
|
|
14842
|
+
throw { error };
|
|
14843
|
+
}
|
|
14844
|
+
const errors = response.error || ((_c = response.value) === null || _c === void 0 ? void 0 : _c.errors);
|
|
14845
|
+
if (errors) {
|
|
14846
|
+
// eslint-disable-next-line no-throw-literal
|
|
14847
|
+
throw { error: response.error };
|
|
14848
|
+
}
|
|
14849
|
+
return { ...response.value };
|
|
14850
|
+
}
|
|
14852
14851
|
async hostEventFallback(iFrame, hostEvent, data) {
|
|
14853
14852
|
return processTrigger(iFrame, hostEvent, this.thoughtSpotHost, data);
|
|
14854
14853
|
}
|
|
@@ -14979,17 +14978,6 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14979
14978
|
this.on(exports.EmbedEvent.AuthExpire, this.updateAuthToken, { start: false }, true);
|
|
14980
14979
|
};
|
|
14981
14980
|
this.showPreRenderByDefault = false;
|
|
14982
|
-
/**
|
|
14983
|
-
* Triggers an event to the embedded app, skipping the UI flow.
|
|
14984
|
-
* @param {UiPassthroughEvent} apiName - The name of the API to be triggered.
|
|
14985
|
-
* @param {UiPassthroughRequest} parameters - The parameters to be passed to the API.
|
|
14986
|
-
* @returns {Promise<UiPassthroughRequest>} - A promise that resolves with the response
|
|
14987
|
-
* from the embedded app.
|
|
14988
|
-
*/
|
|
14989
|
-
// eslint-disable-next-line arrow-body-style
|
|
14990
|
-
this.triggerUiPassThrough = (apiName, parameters) => {
|
|
14991
|
-
return this.hostEventClient.executeUiPassthroughApi(this.iFrame, apiName, parameters);
|
|
14992
|
-
};
|
|
14993
14981
|
this.validatePreRenderViewConfig = (viewConfig) => {
|
|
14994
14982
|
var _a;
|
|
14995
14983
|
const preRenderAllowedKeys = ['preRenderId', 'vizId', 'liveboardId'];
|
|
@@ -15664,6 +15652,17 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15664
15652
|
}
|
|
15665
15653
|
return this.hostEventClient.executeHostEvent(this.iFrame, messageType, data);
|
|
15666
15654
|
}
|
|
15655
|
+
/**
|
|
15656
|
+
* Triggers an event to the embedded app, skipping the UI flow.
|
|
15657
|
+
* @param {UiPassthroughEvent} apiName - The name of the API to be triggered.
|
|
15658
|
+
* @param {UiPassthroughRequest} parameters - The parameters to be passed to the API.
|
|
15659
|
+
* @returns {Promise<UiPassthroughRequest>} - A promise that resolves with the response
|
|
15660
|
+
* from the embedded app.
|
|
15661
|
+
*/
|
|
15662
|
+
// eslint-disable-next-line arrow-body-style
|
|
15663
|
+
triggerUiPassThrough(apiName, parameters) {
|
|
15664
|
+
return this.hostEventClient.executeUiPassthroughApi(this.iFrame, apiName, parameters);
|
|
15665
|
+
}
|
|
15667
15666
|
/**
|
|
15668
15667
|
* Marks the ThoughtSpot object to have been rendered
|
|
15669
15668
|
* Needs to be overridden by subclasses to do the actual
|
|
@@ -5306,7 +5306,7 @@ export declare enum HostEvent {
|
|
|
5306
5306
|
UpdatePersonalisedView = "UpdatePersonalisedView",
|
|
5307
5307
|
/**
|
|
5308
5308
|
* Triggers the action to get the current view of the liveboard
|
|
5309
|
-
* @version SDK: 1.
|
|
5309
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
5310
5310
|
*/
|
|
5311
5311
|
SaveAnswer = "saveAnswer",
|
|
5312
5312
|
/**
|
|
@@ -7333,8 +7333,7 @@ export declare enum UiPassthroughEvent {
|
|
|
7333
7333
|
getDiscoverabilityStatus = "getDiscoverabilityStatus",
|
|
7334
7334
|
getAvailableUiPassthroughs = "getAvailableUiPassthroughs",
|
|
7335
7335
|
getAnswerPageConfig = "getAnswerPageConfig",
|
|
7336
|
-
getPinboardPageConfig = "getPinboardPageConfig"
|
|
7337
|
-
UiPassthroughEventNotFound = "UiPassthroughEventNotFound"
|
|
7336
|
+
getPinboardPageConfig = "getPinboardPageConfig"
|
|
7338
7337
|
}
|
|
7339
7338
|
export type UiPassthroughContractBase = {
|
|
7340
7339
|
[UiPassthroughEvent.addVizToPinboard]: {
|
|
@@ -7397,13 +7396,12 @@ export type UiPassthroughContractBase = {
|
|
|
7397
7396
|
request: any;
|
|
7398
7397
|
response: any;
|
|
7399
7398
|
};
|
|
7400
|
-
[UiPassthroughEvent.UiPassthroughEventNotFound]: {
|
|
7401
|
-
request: any;
|
|
7402
|
-
response: any;
|
|
7403
|
-
};
|
|
7404
7399
|
};
|
|
7405
|
-
export type
|
|
7406
|
-
|
|
7400
|
+
export type FlattenType<T> = T extends infer R ? {
|
|
7401
|
+
[K in keyof R]: R[K];
|
|
7402
|
+
} : never;
|
|
7403
|
+
export type UiPassthroughRequest<T extends keyof UiPassthroughContractBase> = FlattenType<UiPassthroughContractBase[T]['request']>;
|
|
7404
|
+
export type UiPassthroughResponse<T extends keyof UiPassthroughContractBase> = FlattenType<UiPassthroughContractBase[T]['response']>;
|
|
7407
7405
|
export type UiPassthroughArrayResponse<ApiName extends keyof UiPassthroughContractBase> = Promise<Array<{
|
|
7408
7406
|
redId?: string;
|
|
7409
7407
|
value?: UiPassthroughResponse<ApiName>;
|
|
@@ -7412,11 +7410,7 @@ export type UiPassthroughArrayResponse<ApiName extends keyof UiPassthroughContra
|
|
|
7412
7410
|
export type EmbedApiHostEventMapping = {
|
|
7413
7411
|
[HostEvent.Pin]: UiPassthroughEvent.addVizToPinboard;
|
|
7414
7412
|
[HostEvent.SaveAnswer]: UiPassthroughEvent.saveAnswer;
|
|
7415
|
-
'hostEventNotMapped': UiPassthroughEvent.UiPassthroughEventNotFound;
|
|
7416
7413
|
};
|
|
7417
|
-
export type FlattenType<T> = T extends infer R ? {
|
|
7418
|
-
[K in keyof R]: R[K];
|
|
7419
|
-
} : never;
|
|
7420
7414
|
export type HostEventRequest<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? FlattenType<UiPassthroughRequest<EmbedApiHostEventMapping[HostEventT]>> : any;
|
|
7421
7415
|
export type HostEventResponse<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? {
|
|
7422
7416
|
value?: UiPassthroughResponse<EmbedApiHostEventMapping[HostEventT]>;
|
|
@@ -7619,7 +7613,7 @@ export declare class TsEmbed {
|
|
|
7619
7613
|
* @returns {Promise<UiPassthroughRequest>} - A promise that resolves with the response
|
|
7620
7614
|
* from the embedded app.
|
|
7621
7615
|
*/
|
|
7622
|
-
triggerUiPassThrough:
|
|
7616
|
+
triggerUiPassThrough<UiPassthroughEventT extends UiPassthroughEvent>(apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7623
7617
|
/**
|
|
7624
7618
|
* Marks the ThoughtSpot object to have been rendered
|
|
7625
7619
|
* Needs to be overridden by subclasses to do the actual
|
|
@@ -7738,15 +7732,12 @@ export declare class V1Embed extends TsEmbed {
|
|
|
7738
7732
|
test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
|
|
7739
7733
|
}
|
|
7740
7734
|
|
|
7741
|
-
type UiPassthroughHandlerWithIframe = <UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: FlattenType<UiPassthroughRequest<UiPassthroughEventT>>) => UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7742
|
-
export type UiPassthroughHandler = <UiPassthroughEventT extends UiPassthroughEvent>(apiName: UiPassthroughEventT, parameters: FlattenType<UiPassthroughRequest<UiPassthroughEventT>>) => UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7743
7735
|
export declare class HostEventClient {
|
|
7744
7736
|
thoughtSpotHost: string;
|
|
7745
7737
|
constructor(thoughtSpotHost: string);
|
|
7746
|
-
executeUiPassthroughApi:
|
|
7747
|
-
handleUiPassthroughForHostEvent:
|
|
7738
|
+
executeUiPassthroughApi<UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7739
|
+
handleUiPassthroughForHostEvent<UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): Promise<UiPassthroughResponse<UiPassthroughEventT>>;
|
|
7748
7740
|
hostEventFallback(iFrame: HTMLIFrameElement, hostEvent: HostEvent, data: any): Promise<any>;
|
|
7749
7741
|
executeHostEvent<T extends HostEvent>(iFrame: HTMLIFrameElement, hostEvent: HostEvent, payload?: HostEventRequest<T>): Promise<HostEventResponse<HostEvent>>;
|
|
7750
7742
|
}
|
|
7751
|
-
export {};
|
|
7752
7743
|
|
|
@@ -4898,7 +4898,7 @@ export declare enum HostEvent {
|
|
|
4898
4898
|
UpdatePersonalisedView = "UpdatePersonalisedView",
|
|
4899
4899
|
/**
|
|
4900
4900
|
* Triggers the action to get the current view of the liveboard
|
|
4901
|
-
* @version SDK: 1.
|
|
4901
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
4902
4902
|
*/
|
|
4903
4903
|
SaveAnswer = "saveAnswer",
|
|
4904
4904
|
/**
|
|
@@ -6443,7 +6443,7 @@ export declare class TsEmbed {
|
|
|
6443
6443
|
* @returns {Promise<UiPassthroughRequest>} - A promise that resolves with the response
|
|
6444
6444
|
* from the embedded app.
|
|
6445
6445
|
*/
|
|
6446
|
-
triggerUiPassThrough:
|
|
6446
|
+
triggerUiPassThrough<UiPassthroughEventT extends UiPassthroughEvent>(apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
6447
6447
|
/**
|
|
6448
6448
|
* Marks the ThoughtSpot object to have been rendered
|
|
6449
6449
|
* Needs to be overridden by subclasses to do the actual
|
|
@@ -6569,8 +6569,7 @@ export declare enum UiPassthroughEvent {
|
|
|
6569
6569
|
getDiscoverabilityStatus = "getDiscoverabilityStatus",
|
|
6570
6570
|
getAvailableUiPassthroughs = "getAvailableUiPassthroughs",
|
|
6571
6571
|
getAnswerPageConfig = "getAnswerPageConfig",
|
|
6572
|
-
getPinboardPageConfig = "getPinboardPageConfig"
|
|
6573
|
-
UiPassthroughEventNotFound = "UiPassthroughEventNotFound"
|
|
6572
|
+
getPinboardPageConfig = "getPinboardPageConfig"
|
|
6574
6573
|
}
|
|
6575
6574
|
export type UiPassthroughContractBase = {
|
|
6576
6575
|
[UiPassthroughEvent.addVizToPinboard]: {
|
|
@@ -6633,13 +6632,12 @@ export type UiPassthroughContractBase = {
|
|
|
6633
6632
|
request: any;
|
|
6634
6633
|
response: any;
|
|
6635
6634
|
};
|
|
6636
|
-
[UiPassthroughEvent.UiPassthroughEventNotFound]: {
|
|
6637
|
-
request: any;
|
|
6638
|
-
response: any;
|
|
6639
|
-
};
|
|
6640
6635
|
};
|
|
6641
|
-
export type
|
|
6642
|
-
|
|
6636
|
+
export type FlattenType<T> = T extends infer R ? {
|
|
6637
|
+
[K in keyof R]: R[K];
|
|
6638
|
+
} : never;
|
|
6639
|
+
export type UiPassthroughRequest<T extends keyof UiPassthroughContractBase> = FlattenType<UiPassthroughContractBase[T]['request']>;
|
|
6640
|
+
export type UiPassthroughResponse<T extends keyof UiPassthroughContractBase> = FlattenType<UiPassthroughContractBase[T]['response']>;
|
|
6643
6641
|
export type UiPassthroughArrayResponse<ApiName extends keyof UiPassthroughContractBase> = Promise<Array<{
|
|
6644
6642
|
redId?: string;
|
|
6645
6643
|
value?: UiPassthroughResponse<ApiName>;
|
|
@@ -6648,11 +6646,7 @@ export type UiPassthroughArrayResponse<ApiName extends keyof UiPassthroughContra
|
|
|
6648
6646
|
export type EmbedApiHostEventMapping = {
|
|
6649
6647
|
[HostEvent.Pin]: UiPassthroughEvent.addVizToPinboard;
|
|
6650
6648
|
[HostEvent.SaveAnswer]: UiPassthroughEvent.saveAnswer;
|
|
6651
|
-
'hostEventNotMapped': UiPassthroughEvent.UiPassthroughEventNotFound;
|
|
6652
6649
|
};
|
|
6653
|
-
export type FlattenType<T> = T extends infer R ? {
|
|
6654
|
-
[K in keyof R]: R[K];
|
|
6655
|
-
} : never;
|
|
6656
6650
|
export type HostEventRequest<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? FlattenType<UiPassthroughRequest<EmbedApiHostEventMapping[HostEventT]>> : any;
|
|
6657
6651
|
export type HostEventResponse<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? {
|
|
6658
6652
|
value?: UiPassthroughResponse<EmbedApiHostEventMapping[HostEventT]>;
|
|
@@ -7738,15 +7732,12 @@ export declare function getAuthenticationToken(embedConfig: EmbedConfig): Promis
|
|
|
7738
7732
|
*/
|
|
7739
7733
|
export declare const resetCachedAuthToken: () => void;
|
|
7740
7734
|
|
|
7741
|
-
type UiPassthroughHandlerWithIframe = <UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: FlattenType<UiPassthroughRequest<UiPassthroughEventT>>) => UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7742
|
-
export type UiPassthroughHandler = <UiPassthroughEventT extends UiPassthroughEvent>(apiName: UiPassthroughEventT, parameters: FlattenType<UiPassthroughRequest<UiPassthroughEventT>>) => UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7743
7735
|
export declare class HostEventClient {
|
|
7744
7736
|
thoughtSpotHost: string;
|
|
7745
7737
|
constructor(thoughtSpotHost: string);
|
|
7746
|
-
executeUiPassthroughApi:
|
|
7747
|
-
handleUiPassthroughForHostEvent:
|
|
7738
|
+
executeUiPassthroughApi<UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7739
|
+
handleUiPassthroughForHostEvent<UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): Promise<UiPassthroughResponse<UiPassthroughEventT>>;
|
|
7748
7740
|
hostEventFallback(iFrame: HTMLIFrameElement, hostEvent: HostEvent, data: any): Promise<any>;
|
|
7749
7741
|
executeHostEvent<T extends HostEvent>(iFrame: HTMLIFrameElement, hostEvent: HostEvent, payload?: HostEventRequest<T>): Promise<HostEventResponse<HostEvent>>;
|
|
7750
7742
|
}
|
|
7751
|
-
export {};
|
|
7752
7743
|
|
|
@@ -4895,7 +4895,7 @@ export enum HostEvent {
|
|
|
4895
4895
|
UpdatePersonalisedView = "UpdatePersonalisedView",
|
|
4896
4896
|
/**
|
|
4897
4897
|
* Triggers the action to get the current view of the liveboard
|
|
4898
|
-
* @version SDK: 1.
|
|
4898
|
+
* @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
|
|
4899
4899
|
*/
|
|
4900
4900
|
SaveAnswer = "saveAnswer",
|
|
4901
4901
|
/**
|
|
@@ -7068,8 +7068,7 @@ export enum UiPassthroughEvent {
|
|
|
7068
7068
|
getDiscoverabilityStatus = "getDiscoverabilityStatus",
|
|
7069
7069
|
getAvailableUiPassthroughs = "getAvailableUiPassthroughs",
|
|
7070
7070
|
getAnswerPageConfig = "getAnswerPageConfig",
|
|
7071
|
-
getPinboardPageConfig = "getPinboardPageConfig"
|
|
7072
|
-
UiPassthroughEventNotFound = "UiPassthroughEventNotFound"
|
|
7071
|
+
getPinboardPageConfig = "getPinboardPageConfig"
|
|
7073
7072
|
}
|
|
7074
7073
|
export type UiPassthroughContractBase = {
|
|
7075
7074
|
[UiPassthroughEvent.addVizToPinboard]: {
|
|
@@ -7132,13 +7131,12 @@ export type UiPassthroughContractBase = {
|
|
|
7132
7131
|
request: any;
|
|
7133
7132
|
response: any;
|
|
7134
7133
|
};
|
|
7135
|
-
[UiPassthroughEvent.UiPassthroughEventNotFound]: {
|
|
7136
|
-
request: any;
|
|
7137
|
-
response: any;
|
|
7138
|
-
};
|
|
7139
7134
|
};
|
|
7140
|
-
export type
|
|
7141
|
-
|
|
7135
|
+
export type FlattenType<T> = T extends infer R ? {
|
|
7136
|
+
[K in keyof R]: R[K];
|
|
7137
|
+
} : never;
|
|
7138
|
+
export type UiPassthroughRequest<T extends keyof UiPassthroughContractBase> = FlattenType<UiPassthroughContractBase[T]['request']>;
|
|
7139
|
+
export type UiPassthroughResponse<T extends keyof UiPassthroughContractBase> = FlattenType<UiPassthroughContractBase[T]['response']>;
|
|
7142
7140
|
export type UiPassthroughArrayResponse<ApiName extends keyof UiPassthroughContractBase> = Promise<Array<{
|
|
7143
7141
|
redId?: string;
|
|
7144
7142
|
value?: UiPassthroughResponse<ApiName>;
|
|
@@ -7147,11 +7145,7 @@ export type UiPassthroughArrayResponse<ApiName extends keyof UiPassthroughContra
|
|
|
7147
7145
|
export type EmbedApiHostEventMapping = {
|
|
7148
7146
|
[HostEvent.Pin]: UiPassthroughEvent.addVizToPinboard;
|
|
7149
7147
|
[HostEvent.SaveAnswer]: UiPassthroughEvent.saveAnswer;
|
|
7150
|
-
'hostEventNotMapped': UiPassthroughEvent.UiPassthroughEventNotFound;
|
|
7151
7148
|
};
|
|
7152
|
-
export type FlattenType<T> = T extends infer R ? {
|
|
7153
|
-
[K in keyof R]: R[K];
|
|
7154
|
-
} : never;
|
|
7155
7149
|
export type HostEventRequest<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? FlattenType<UiPassthroughRequest<EmbedApiHostEventMapping[HostEventT]>> : any;
|
|
7156
7150
|
export type HostEventResponse<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? {
|
|
7157
7151
|
value?: UiPassthroughResponse<EmbedApiHostEventMapping[HostEventT]>;
|
|
@@ -7354,7 +7348,7 @@ export class TsEmbed {
|
|
|
7354
7348
|
* @returns {Promise<UiPassthroughRequest>} - A promise that resolves with the response
|
|
7355
7349
|
* from the embedded app.
|
|
7356
7350
|
*/
|
|
7357
|
-
triggerUiPassThrough:
|
|
7351
|
+
triggerUiPassThrough<UiPassthroughEventT extends UiPassthroughEvent>(apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7358
7352
|
/**
|
|
7359
7353
|
* Marks the ThoughtSpot object to have been rendered
|
|
7360
7354
|
* Needs to be overridden by subclasses to do the actual
|
|
@@ -7473,15 +7467,12 @@ export class V1Embed extends TsEmbed {
|
|
|
7473
7467
|
test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
|
|
7474
7468
|
}
|
|
7475
7469
|
|
|
7476
|
-
type UiPassthroughHandlerWithIframe = <UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: FlattenType<UiPassthroughRequest<UiPassthroughEventT>>) => UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7477
|
-
export type UiPassthroughHandler = <UiPassthroughEventT extends UiPassthroughEvent>(apiName: UiPassthroughEventT, parameters: FlattenType<UiPassthroughRequest<UiPassthroughEventT>>) => UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7478
7470
|
export class HostEventClient {
|
|
7479
7471
|
thoughtSpotHost: string;
|
|
7480
7472
|
constructor(thoughtSpotHost: string);
|
|
7481
|
-
executeUiPassthroughApi:
|
|
7482
|
-
handleUiPassthroughForHostEvent:
|
|
7473
|
+
executeUiPassthroughApi<UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7474
|
+
handleUiPassthroughForHostEvent<UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): Promise<UiPassthroughResponse<UiPassthroughEventT>>;
|
|
7483
7475
|
hostEventFallback(iFrame: HTMLIFrameElement, hostEvent: HostEvent, data: any): Promise<any>;
|
|
7484
7476
|
executeHostEvent<T extends HostEvent>(iFrame: HTMLIFrameElement, hostEvent: HostEvent, payload?: HostEventRequest<T>): Promise<HostEventResponse<HostEvent>>;
|
|
7485
7477
|
}
|
|
7486
|
-
export {};
|
|
7487
7478
|
|
package/lib/package.json
CHANGED
|
@@ -6,8 +6,7 @@ export declare enum UiPassthroughEvent {
|
|
|
6
6
|
getDiscoverabilityStatus = "getDiscoverabilityStatus",
|
|
7
7
|
getAvailableUiPassthroughs = "getAvailableUiPassthroughs",
|
|
8
8
|
getAnswerPageConfig = "getAnswerPageConfig",
|
|
9
|
-
getPinboardPageConfig = "getPinboardPageConfig"
|
|
10
|
-
UiPassthroughEventNotFound = "UiPassthroughEventNotFound"
|
|
9
|
+
getPinboardPageConfig = "getPinboardPageConfig"
|
|
11
10
|
}
|
|
12
11
|
export type UiPassthroughContractBase = {
|
|
13
12
|
[UiPassthroughEvent.addVizToPinboard]: {
|
|
@@ -70,13 +69,12 @@ export type UiPassthroughContractBase = {
|
|
|
70
69
|
request: any;
|
|
71
70
|
response: any;
|
|
72
71
|
};
|
|
73
|
-
[UiPassthroughEvent.UiPassthroughEventNotFound]: {
|
|
74
|
-
request: any;
|
|
75
|
-
response: any;
|
|
76
|
-
};
|
|
77
72
|
};
|
|
78
|
-
export type
|
|
79
|
-
|
|
73
|
+
export type FlattenType<T> = T extends infer R ? {
|
|
74
|
+
[K in keyof R]: R[K];
|
|
75
|
+
} : never;
|
|
76
|
+
export type UiPassthroughRequest<T extends keyof UiPassthroughContractBase> = FlattenType<UiPassthroughContractBase[T]['request']>;
|
|
77
|
+
export type UiPassthroughResponse<T extends keyof UiPassthroughContractBase> = FlattenType<UiPassthroughContractBase[T]['response']>;
|
|
80
78
|
export type UiPassthroughArrayResponse<ApiName extends keyof UiPassthroughContractBase> = Promise<Array<{
|
|
81
79
|
redId?: string;
|
|
82
80
|
value?: UiPassthroughResponse<ApiName>;
|
|
@@ -85,11 +83,7 @@ export type UiPassthroughArrayResponse<ApiName extends keyof UiPassthroughContra
|
|
|
85
83
|
export type EmbedApiHostEventMapping = {
|
|
86
84
|
[HostEvent.Pin]: UiPassthroughEvent.addVizToPinboard;
|
|
87
85
|
[HostEvent.SaveAnswer]: UiPassthroughEvent.saveAnswer;
|
|
88
|
-
'hostEventNotMapped': UiPassthroughEvent.UiPassthroughEventNotFound;
|
|
89
86
|
};
|
|
90
|
-
export type FlattenType<T> = T extends infer R ? {
|
|
91
|
-
[K in keyof R]: R[K];
|
|
92
|
-
} : never;
|
|
93
87
|
export type HostEventRequest<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? FlattenType<UiPassthroughRequest<EmbedApiHostEventMapping[HostEventT]>> : any;
|
|
94
88
|
export type HostEventResponse<HostEventT extends HostEvent> = HostEventT extends keyof EmbedApiHostEventMapping ? {
|
|
95
89
|
value?: UiPassthroughResponse<EmbedApiHostEventMapping[HostEventT]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../../src/embed/hostEventClient/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,oBAAY,kBAAkB;IAC5B,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,oBAAoB,yBAAyB;IAC7C,wBAAwB,6BAA6B;IACrD,0BAA0B,+BAA+B;IACzD,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA0B;
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../../src/embed/hostEventClient/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,oBAAY,kBAAkB;IAC5B,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,oBAAoB,yBAAyB;IAC7C,wBAAwB,6BAA6B;IACrD,0BAA0B,+BAA+B;IACzD,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA0B;CAChD;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,EAAE;QACrC,OAAO,EAAE;YACP,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,UAAU,EAAE,MAAM,CAAC;YACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;YAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;QACF,QAAQ,EAAE;YACR,UAAU,EAAE,MAAM,CAAC;YACnB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;KACH,CAAC;IACF,CAAC,kBAAkB,CAAC,UAAU,CAAC,EAAE;QAC/B,OAAO,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;YACb,WAAW,EAAE,MAAM,CAAC;YACpB,KAAK,EAAE,MAAM,CAAC;YACd,cAAc,CAAC,EAAE,OAAO,CAAC;SAC1B,CAAC;QACF,QAAQ,EAAE;YACR,QAAQ,EAAE,MAAM,CAAC;YACjB,MAAM,CAAC,EAAE,GAAG,CAAC;SACd,CAAC;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,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAErI,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,MAAM,yBAAyB,IACpF,OAAO,CAAC,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACvC,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC,CAAC,CAAA;AAEL,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC;IACrD,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC;CACvD,CAAA;AAED,MAAM,MAAM,gBAAgB,CAAC,UAAU,SAAS,SAAS,IACvD,UAAU,SAAS,MAAM,wBAAwB,GACjD,WAAW,CAAC,oBAAoB,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AAEhF,MAAM,MAAM,iBAAiB,CAAC,UAAU,SAAS,SAAS,IACxD,UAAU,SAAS,MAAM,wBAAwB,GACjD;IACE,KAAK,CAAC,EAAE,qBAAqB,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAA;CACpE,GACC,GAAG,CAAC"}
|
|
@@ -8,6 +8,5 @@ export var UiPassthroughEvent;
|
|
|
8
8
|
UiPassthroughEvent["getAvailableUiPassthroughs"] = "getAvailableUiPassthroughs";
|
|
9
9
|
UiPassthroughEvent["getAnswerPageConfig"] = "getAnswerPageConfig";
|
|
10
10
|
UiPassthroughEvent["getPinboardPageConfig"] = "getPinboardPageConfig";
|
|
11
|
-
UiPassthroughEvent["UiPassthroughEventNotFound"] = "UiPassthroughEventNotFound";
|
|
12
11
|
})(UiPassthroughEvent || (UiPassthroughEvent = {}));
|
|
13
12
|
//# sourceMappingURL=contracts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../src/embed/hostEventClient/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../src/embed/hostEventClient/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAN,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,2DAAqC,CAAA;IACrC,+CAAyB,CAAA;IACzB,mEAA6C,CAAA;IAC7C,2EAAqD,CAAA;IACrD,+EAAyD,CAAA;IACzD,iEAA2C,CAAA;IAC3C,qEAA+C,CAAA;AACjD,CAAC,EARW,kBAAkB,KAAlB,kBAAkB,QAQ7B"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { HostEvent } from '../../types';
|
|
2
|
-
import { UiPassthroughArrayResponse, UiPassthroughEvent, HostEventRequest, HostEventResponse, UiPassthroughRequest,
|
|
3
|
-
type UiPassthroughHandlerWithIframe = <UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: FlattenType<UiPassthroughRequest<UiPassthroughEventT>>) => UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
4
|
-
export type UiPassthroughHandler = <UiPassthroughEventT extends UiPassthroughEvent>(apiName: UiPassthroughEventT, parameters: FlattenType<UiPassthroughRequest<UiPassthroughEventT>>) => UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
2
|
+
import { UiPassthroughArrayResponse, UiPassthroughEvent, HostEventRequest, HostEventResponse, UiPassthroughRequest, UiPassthroughResponse } from './contracts';
|
|
5
3
|
export declare class HostEventClient {
|
|
6
4
|
thoughtSpotHost: string;
|
|
7
5
|
constructor(thoughtSpotHost: string);
|
|
8
|
-
executeUiPassthroughApi:
|
|
9
|
-
handleUiPassthroughForHostEvent:
|
|
6
|
+
executeUiPassthroughApi<UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
7
|
+
handleUiPassthroughForHostEvent<UiPassthroughEventT extends UiPassthroughEvent>(iFrame: HTMLIFrameElement, apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): Promise<UiPassthroughResponse<UiPassthroughEventT>>;
|
|
10
8
|
hostEventFallback(iFrame: HTMLIFrameElement, hostEvent: HostEvent, data: any): Promise<any>;
|
|
11
9
|
executeHostEvent<T extends HostEvent>(iFrame: HTMLIFrameElement, hostEvent: HostEvent, payload?: HostEventRequest<T>): Promise<HostEventResponse<HostEvent>>;
|
|
12
10
|
}
|
|
13
|
-
export {};
|
|
14
11
|
//# sourceMappingURL=host-event-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-event-client.d.ts","sourceRoot":"","sources":["../../../../src/embed/hostEventClient/host-event-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EACH,0BAA0B,EAC1B,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,EACvD,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"host-event-client.d.ts","sourceRoot":"","sources":["../../../../src/embed/hostEventClient/host-event-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EACH,0BAA0B,EAC1B,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,EACvD,oBAAoB,EACpB,qBAAqB,EACxB,MAAM,aAAa,CAAC;AAErB,qBAAa,eAAe;IAC1B,eAAe,EAAE,MAAM,CAAC;gBAEZ,eAAe,EAAE,MAAM;IAItB,uBAAuB,CAAC,mBAAmB,SAAS,kBAAkB,EAC/E,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,GACtD,0BAA0B,CAAC,mBAAmB,CAAC;IASrC,+BAA+B,CAAC,mBAAmB,SAAS,kBAAkB,EACvF,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,GACtD,OAAO,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;IAmBzC,iBAAiB,CAC1B,MAAM,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,GAC3D,OAAO,CAAC,GAAG,CAAC;IAIF,gBAAgB,CAAC,CAAC,SAAS,SAAS,EAC7C,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAC9B,OAAO,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;CAezC"}
|
|
@@ -3,30 +3,30 @@ import { processTrigger } from '../../utils/processTrigger';
|
|
|
3
3
|
import { UiPassthroughEvent, } from './contracts';
|
|
4
4
|
export class HostEventClient {
|
|
5
5
|
constructor(thoughtSpotHost) {
|
|
6
|
-
this.executeUiPassthroughApi = async (iFrame, apiName, parameters) => {
|
|
7
|
-
const res = await processTrigger(iFrame, HostEvent.UiPassthrough, this.thoughtSpotHost, {
|
|
8
|
-
type: apiName,
|
|
9
|
-
parameters,
|
|
10
|
-
});
|
|
11
|
-
return res;
|
|
12
|
-
};
|
|
13
|
-
this.handleUiPassthroughForHostEvent = async (iFrame, apiName, parameters) => {
|
|
14
|
-
var _a, _b, _c;
|
|
15
|
-
const response = (_b = (_a = (await this.executeUiPassthroughApi(iFrame, apiName, parameters))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
|
|
16
|
-
if (!response) {
|
|
17
|
-
const error = `No answer found${parameters.vizId ? ` for vizId: ${parameters.vizId}` : ''}.`;
|
|
18
|
-
// eslint-disable-next-line no-throw-literal
|
|
19
|
-
throw { error };
|
|
20
|
-
}
|
|
21
|
-
const errors = response.error || ((_c = response.value) === null || _c === void 0 ? void 0 : _c.errors);
|
|
22
|
-
if (errors) {
|
|
23
|
-
// eslint-disable-next-line no-throw-literal
|
|
24
|
-
throw { error: response.error };
|
|
25
|
-
}
|
|
26
|
-
return { ...response.value };
|
|
27
|
-
};
|
|
28
6
|
this.thoughtSpotHost = thoughtSpotHost;
|
|
29
7
|
}
|
|
8
|
+
async executeUiPassthroughApi(iFrame, apiName, parameters) {
|
|
9
|
+
const res = await processTrigger(iFrame, HostEvent.UiPassthrough, this.thoughtSpotHost, {
|
|
10
|
+
type: apiName,
|
|
11
|
+
parameters,
|
|
12
|
+
});
|
|
13
|
+
return res;
|
|
14
|
+
}
|
|
15
|
+
async handleUiPassthroughForHostEvent(iFrame, apiName, parameters) {
|
|
16
|
+
var _a, _b, _c;
|
|
17
|
+
const response = (_b = (_a = (await this.executeUiPassthroughApi(iFrame, apiName, parameters))) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.call(_a, (r) => r.error || r.value)[0];
|
|
18
|
+
if (!response) {
|
|
19
|
+
const error = `No answer found${parameters.vizId ? ` for vizId: ${parameters.vizId}` : ''}.`;
|
|
20
|
+
// eslint-disable-next-line no-throw-literal
|
|
21
|
+
throw { error };
|
|
22
|
+
}
|
|
23
|
+
const errors = response.error || ((_c = response.value) === null || _c === void 0 ? void 0 : _c.errors);
|
|
24
|
+
if (errors) {
|
|
25
|
+
// eslint-disable-next-line no-throw-literal
|
|
26
|
+
throw { error: response.error };
|
|
27
|
+
}
|
|
28
|
+
return { ...response.value };
|
|
29
|
+
}
|
|
30
30
|
async hostEventFallback(iFrame, hostEvent, data) {
|
|
31
31
|
return processTrigger(iFrame, hostEvent, this.thoughtSpotHost, data);
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-event-client.js","sourceRoot":"","sources":["../../../../src/embed/hostEventClient/host-event-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAEH,kBAAkB,GAGrB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"host-event-client.js","sourceRoot":"","sources":["../../../../src/embed/hostEventClient/host-event-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAEH,kBAAkB,GAGrB,MAAM,aAAa,CAAC;AAErB,MAAM,OAAO,eAAe;IAG1B,YAAY,eAAuB;QAC/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IAC3C,CAAC;IAEM,KAAK,CAAC,uBAAuB,CAChC,MAAyB,EACzB,OAA4B,EAC5B,UAAqD;QAErD,MAAM,GAAG,GAAG,MAAM,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,eAAe,EAAE;YACpF,IAAI,EAAE,OAAO;YACb,UAAU;SACb,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;IACf,CAAC;IAEM,KAAK,CAAC,+BAA+B,CACxC,MAAyB,EACzB,OAA4B,EAC5B,UAAqD;;QAErD,MAAM,QAAQ,GAAG,MAAA,MAAA,CAAC,MAAM,IAAI,CAAC,uBAAuB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,0CAC5E,MAAM,mDAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAE7C,IAAI,CAAC,QAAQ,EAAE;YACX,MAAM,K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MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* @summary Base classes
|
|
6
6
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
7
7
|
*/
|
|
8
|
-
import { HostEventRequest, HostEventResponse } from './hostEventClient/contracts';
|
|
8
|
+
import { HostEventRequest, HostEventResponse, UiPassthroughArrayResponse, UiPassthroughEvent, UiPassthroughRequest } from './hostEventClient/contracts';
|
|
9
9
|
import { AnswerService } from '../utils/graphql/answerService/answerService';
|
|
10
10
|
import { DOMSelector, HostEvent, EmbedEvent, MessageCallback, EmbedConfig, MessageOptions, ViewConfig } from '../types';
|
|
11
|
-
import { HostEventClient
|
|
11
|
+
import { HostEventClient } from './hostEventClient/host-event-client';
|
|
12
12
|
/**
|
|
13
13
|
* Global prefix for all Thoughtspot postHash Params.
|
|
14
14
|
*/
|
|
@@ -264,7 +264,7 @@ export declare class TsEmbed {
|
|
|
264
264
|
* @returns {Promise<UiPassthroughRequest>} - A promise that resolves with the response
|
|
265
265
|
* from the embedded app.
|
|
266
266
|
*/
|
|
267
|
-
triggerUiPassThrough:
|
|
267
|
+
triggerUiPassThrough<UiPassthroughEventT extends UiPassthroughEvent>(apiName: UiPassthroughEventT, parameters: UiPassthroughRequest<UiPassthroughEventT>): UiPassthroughArrayResponse<UiPassthroughEventT>;
|
|
268
268
|
/**
|
|
269
269
|
* Marks the ThoughtSpot object to have been rendered
|
|
270
270
|
* Needs to be overridden by subclasses to do the actual
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-embed.d.ts","sourceRoot":"","sources":["../../../src/embed/ts-embed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,
|
|
1
|
+
{"version":3,"file":"ts-embed.d.ts","sourceRoot":"","sources":["../../../src/embed/ts-embed.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EACH,g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