@thoughtspot/visual-embed-sdk 1.32.4-dc.2 → 1.32.4-dc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/embed/conversation.js +2 -2
- package/cjs/src/embed/conversation.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/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
- package/cjs/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/spotterService/conversation-queries.js +318 -0
- package/cjs/src/utils/graphql/spotterService/conversation-queries.js.map +1 -0
- package/cjs/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
- package/cjs/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
- package/cjs/src/utils/graphql/spotterService/conversation-service.js +89 -0
- package/cjs/src/utils/graphql/spotterService/conversation-service.js.map +1 -0
- package/cjs/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
- package/cjs/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/spotterService/nls-answer-queries.js +403 -0
- package/cjs/src/utils/graphql/spotterService/nls-answer-queries.js.map +1 -0
- package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts +9 -0
- package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
- package/cjs/src/utils/graphql/spotterService/nls-answer-service.js +52 -0
- package/cjs/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
- package/dist/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
- package/dist/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
- package/dist/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
- package/dist/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
- package/dist/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
- package/dist/src/utils/graphql/spotterService/nls-answer-service.d.ts +9 -0
- package/dist/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
- package/dist/tsembed-react.es.js +1 -1
- package/dist/tsembed-react.js +1 -1
- package/dist/tsembed.es.js +446 -3
- package/dist/tsembed.js +446 -2
- package/dist/visual-embed-sdk-react-full.d.ts +9 -1
- package/dist/visual-embed-sdk-react.d.ts +9 -1
- package/dist/visual-embed-sdk.d.ts +9 -1
- package/lib/package.json +1 -1
- package/lib/src/embed/conversation.js +2 -2
- package/lib/src/embed/conversation.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/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
- package/lib/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
- package/lib/src/utils/graphql/spotterService/conversation-queries.js +315 -0
- package/lib/src/utils/graphql/spotterService/conversation-queries.js.map +1 -0
- package/lib/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
- package/lib/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
- package/lib/src/utils/graphql/spotterService/conversation-service.js +84 -0
- package/lib/src/utils/graphql/spotterService/conversation-service.js.map +1 -0
- package/lib/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
- package/lib/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
- package/lib/src/utils/graphql/spotterService/nls-answer-queries.js +400 -0
- package/lib/src/utils/graphql/spotterService/nls-answer-queries.js.map +1 -0
- package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts +9 -0
- package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
- package/lib/src/utils/graphql/spotterService/nls-answer-service.js +47 -0
- package/lib/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
- package/lib/src/visual-embed-sdk.d.ts +13 -1
- package/package.json +1 -1
- package/src/embed/conversation.ts +2 -2
- package/src/index.ts +2 -0
- package/src/utils/graphql/spotterService/nls-answer-queries.ts +399 -0
- package/src/utils/graphql/spotterService/nls-answer-service.ts +55 -0
- /package/src/utils/graphql/{conversationService → spotterService}/conversation-queries.ts +0 -0
- /package/src/utils/graphql/{conversationService → spotterService}/conversation-service.ts +0 -0
package/dist/tsembed-react.js
CHANGED
|
@@ -13862,7 +13862,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
|
|
|
13862
13862
|
});
|
|
13863
13863
|
}
|
|
13864
13864
|
|
|
13865
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
13865
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.4";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"};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};
|
|
13866
13866
|
|
|
13867
13867
|
/**
|
|
13868
13868
|
* Copyright (c) 2022
|
package/dist/tsembed.es.js
CHANGED
|
@@ -14183,7 +14183,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
14183
14183
|
});
|
|
14184
14184
|
}
|
|
14185
14185
|
|
|
14186
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
14186
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.4";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"};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,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};
|
|
14187
14187
|
|
|
14188
14188
|
/**
|
|
14189
14189
|
* Copyright (c) 2022
|
|
@@ -16465,7 +16465,7 @@ class Conversation$1 {
|
|
|
16465
16465
|
sessionId: data.sessionId,
|
|
16466
16466
|
genNo: data.genNo,
|
|
16467
16467
|
acSessionId: data.stateKey.transactionId,
|
|
16468
|
-
acGenNo: data.stateKey.
|
|
16468
|
+
acGenNo: data.stateKey.generationNumber,
|
|
16469
16469
|
});
|
|
16470
16470
|
embed.render();
|
|
16471
16471
|
return { container };
|
|
@@ -16548,4 +16548,447 @@ class SageEmbed extends V1Embed {
|
|
|
16548
16548
|
}
|
|
16549
16549
|
}
|
|
16550
16550
|
|
|
16551
|
-
|
|
16551
|
+
const getAnswerSessionFromQuery = `
|
|
16552
|
+
query GetEurekaResults($params: Input_eureka_SearchRequest) {
|
|
16553
|
+
queryRequest(request: $params) {
|
|
16554
|
+
...eurekaResults
|
|
16555
|
+
__typename
|
|
16556
|
+
}
|
|
16557
|
+
}
|
|
16558
|
+
|
|
16559
|
+
fragment eurekaResults on eureka_SearchResponse {
|
|
16560
|
+
facets {
|
|
16561
|
+
facetType
|
|
16562
|
+
facetValue
|
|
16563
|
+
facetValues {
|
|
16564
|
+
id
|
|
16565
|
+
resultCount
|
|
16566
|
+
name
|
|
16567
|
+
__typename
|
|
16568
|
+
}
|
|
16569
|
+
__typename
|
|
16570
|
+
}
|
|
16571
|
+
requestIdentifiers {
|
|
16572
|
+
apiRequestId
|
|
16573
|
+
appActivityId
|
|
16574
|
+
__typename
|
|
16575
|
+
}
|
|
16576
|
+
sageQuerySuggestions {
|
|
16577
|
+
llmReasoning {
|
|
16578
|
+
assumptions
|
|
16579
|
+
clarifications
|
|
16580
|
+
interpretation
|
|
16581
|
+
__typename
|
|
16582
|
+
}
|
|
16583
|
+
tokens
|
|
16584
|
+
tmlTokens
|
|
16585
|
+
worksheetId
|
|
16586
|
+
description
|
|
16587
|
+
title
|
|
16588
|
+
tmlTokens
|
|
16589
|
+
formulaInfo {
|
|
16590
|
+
name
|
|
16591
|
+
expression
|
|
16592
|
+
__typename
|
|
16593
|
+
}
|
|
16594
|
+
tmlPhrases
|
|
16595
|
+
ambiguousPhrases {
|
|
16596
|
+
alternativePhrases {
|
|
16597
|
+
phraseType
|
|
16598
|
+
token {
|
|
16599
|
+
token
|
|
16600
|
+
dataType
|
|
16601
|
+
typeEnum
|
|
16602
|
+
guid
|
|
16603
|
+
tokenMetadata {
|
|
16604
|
+
name
|
|
16605
|
+
__typename
|
|
16606
|
+
}
|
|
16607
|
+
__typename
|
|
16608
|
+
}
|
|
16609
|
+
__typename
|
|
16610
|
+
}
|
|
16611
|
+
ambiguityType
|
|
16612
|
+
token {
|
|
16613
|
+
token
|
|
16614
|
+
dataType
|
|
16615
|
+
typeEnum
|
|
16616
|
+
guid
|
|
16617
|
+
tokenMetadata {
|
|
16618
|
+
name
|
|
16619
|
+
__typename
|
|
16620
|
+
}
|
|
16621
|
+
__typename
|
|
16622
|
+
}
|
|
16623
|
+
__typename
|
|
16624
|
+
}
|
|
16625
|
+
ambiguousTokens {
|
|
16626
|
+
alternativeTokens {
|
|
16627
|
+
token
|
|
16628
|
+
dataType
|
|
16629
|
+
typeEnum
|
|
16630
|
+
guid
|
|
16631
|
+
tokenMetadata {
|
|
16632
|
+
name
|
|
16633
|
+
deprecatedTableGuid
|
|
16634
|
+
deprecatedTableName
|
|
16635
|
+
isFormula
|
|
16636
|
+
rootTables {
|
|
16637
|
+
created
|
|
16638
|
+
description
|
|
16639
|
+
guid
|
|
16640
|
+
indexVersion
|
|
16641
|
+
modified
|
|
16642
|
+
name
|
|
16643
|
+
__typename
|
|
16644
|
+
}
|
|
16645
|
+
schemaTableUserDefinedName
|
|
16646
|
+
table {
|
|
16647
|
+
created
|
|
16648
|
+
description
|
|
16649
|
+
guid
|
|
16650
|
+
indexVersion
|
|
16651
|
+
modified
|
|
16652
|
+
name
|
|
16653
|
+
__typename
|
|
16654
|
+
}
|
|
16655
|
+
__typename
|
|
16656
|
+
}
|
|
16657
|
+
__typename
|
|
16658
|
+
}
|
|
16659
|
+
ambiguityType
|
|
16660
|
+
token {
|
|
16661
|
+
token
|
|
16662
|
+
dataType
|
|
16663
|
+
typeEnum
|
|
16664
|
+
guid
|
|
16665
|
+
tokenMetadata {
|
|
16666
|
+
name
|
|
16667
|
+
__typename
|
|
16668
|
+
}
|
|
16669
|
+
__typename
|
|
16670
|
+
}
|
|
16671
|
+
__typename
|
|
16672
|
+
}
|
|
16673
|
+
sessionId
|
|
16674
|
+
genNo
|
|
16675
|
+
stateKey {
|
|
16676
|
+
generationNumber
|
|
16677
|
+
transactionId
|
|
16678
|
+
__typename
|
|
16679
|
+
}
|
|
16680
|
+
subQueries {
|
|
16681
|
+
tokens
|
|
16682
|
+
cohortConfig {
|
|
16683
|
+
anchorColumnId
|
|
16684
|
+
cohortAnswerGuid
|
|
16685
|
+
cohortGroupingType
|
|
16686
|
+
cohortGuid
|
|
16687
|
+
cohortType
|
|
16688
|
+
combineNonGroupValues
|
|
16689
|
+
description
|
|
16690
|
+
groupExcludedQueryValues
|
|
16691
|
+
hideExcludedQueryValues
|
|
16692
|
+
isEditable
|
|
16693
|
+
name
|
|
16694
|
+
nullOutputValue
|
|
16695
|
+
returnColumnId
|
|
16696
|
+
__typename
|
|
16697
|
+
}
|
|
16698
|
+
formulas {
|
|
16699
|
+
name
|
|
16700
|
+
expression
|
|
16701
|
+
__typename
|
|
16702
|
+
}
|
|
16703
|
+
__typename
|
|
16704
|
+
}
|
|
16705
|
+
visualizationSuggestion {
|
|
16706
|
+
chartType
|
|
16707
|
+
displayMode
|
|
16708
|
+
axisConfigs {
|
|
16709
|
+
category
|
|
16710
|
+
color
|
|
16711
|
+
hidden
|
|
16712
|
+
size
|
|
16713
|
+
sort
|
|
16714
|
+
x
|
|
16715
|
+
y
|
|
16716
|
+
__typename
|
|
16717
|
+
}
|
|
16718
|
+
usersVizIntentApplied
|
|
16719
|
+
customChartConfigs {
|
|
16720
|
+
dimensions {
|
|
16721
|
+
columns
|
|
16722
|
+
key
|
|
16723
|
+
__typename
|
|
16724
|
+
}
|
|
16725
|
+
key
|
|
16726
|
+
__typename
|
|
16727
|
+
}
|
|
16728
|
+
customChartGuid
|
|
16729
|
+
__typename
|
|
16730
|
+
}
|
|
16731
|
+
tableData {
|
|
16732
|
+
columnDataLite {
|
|
16733
|
+
columnId
|
|
16734
|
+
columnDataType
|
|
16735
|
+
dataValue
|
|
16736
|
+
columnName
|
|
16737
|
+
__typename
|
|
16738
|
+
}
|
|
16739
|
+
__typename
|
|
16740
|
+
}
|
|
16741
|
+
warningType
|
|
16742
|
+
cached
|
|
16743
|
+
warningDetails {
|
|
16744
|
+
warningType
|
|
16745
|
+
__typename
|
|
16746
|
+
}
|
|
16747
|
+
__typename
|
|
16748
|
+
}
|
|
16749
|
+
results {
|
|
16750
|
+
objectSecurityInfo {
|
|
16751
|
+
objectType
|
|
16752
|
+
objectId
|
|
16753
|
+
objectIdForDeletionCheck
|
|
16754
|
+
objectTypeForDeletionCheck
|
|
16755
|
+
isD13ySourced
|
|
16756
|
+
offset
|
|
16757
|
+
__typename
|
|
16758
|
+
}
|
|
16759
|
+
searchAnswer {
|
|
16760
|
+
...eurekaAnswer
|
|
16761
|
+
__typename
|
|
16762
|
+
}
|
|
16763
|
+
searchPinboardViz {
|
|
16764
|
+
answer {
|
|
16765
|
+
...eurekaAnswer
|
|
16766
|
+
__typename
|
|
16767
|
+
}
|
|
16768
|
+
pinboardHeader {
|
|
16769
|
+
id
|
|
16770
|
+
title
|
|
16771
|
+
__typename
|
|
16772
|
+
}
|
|
16773
|
+
__typename
|
|
16774
|
+
}
|
|
16775
|
+
searchPinboard {
|
|
16776
|
+
header {
|
|
16777
|
+
...header
|
|
16778
|
+
__typename
|
|
16779
|
+
}
|
|
16780
|
+
usageInfo {
|
|
16781
|
+
...usageInfo
|
|
16782
|
+
__typename
|
|
16783
|
+
}
|
|
16784
|
+
answers {
|
|
16785
|
+
...eurekaAnswer
|
|
16786
|
+
__typename
|
|
16787
|
+
}
|
|
16788
|
+
vizCount {
|
|
16789
|
+
charts
|
|
16790
|
+
metrics
|
|
16791
|
+
tables
|
|
16792
|
+
__typename
|
|
16793
|
+
}
|
|
16794
|
+
__typename
|
|
16795
|
+
}
|
|
16796
|
+
snippetInfo {
|
|
16797
|
+
titleSnippet {
|
|
16798
|
+
snippetString
|
|
16799
|
+
highlights {
|
|
16800
|
+
start
|
|
16801
|
+
end
|
|
16802
|
+
__typename
|
|
16803
|
+
}
|
|
16804
|
+
__typename
|
|
16805
|
+
}
|
|
16806
|
+
descriptionSnippet {
|
|
16807
|
+
snippetString
|
|
16808
|
+
highlights {
|
|
16809
|
+
start
|
|
16810
|
+
end
|
|
16811
|
+
__typename
|
|
16812
|
+
}
|
|
16813
|
+
__typename
|
|
16814
|
+
}
|
|
16815
|
+
sageQuerySnippet {
|
|
16816
|
+
phrase {
|
|
16817
|
+
isCompletePhrase
|
|
16818
|
+
numTokens
|
|
16819
|
+
phraseType
|
|
16820
|
+
startIndex
|
|
16821
|
+
__typename
|
|
16822
|
+
}
|
|
16823
|
+
token {
|
|
16824
|
+
token
|
|
16825
|
+
dataType
|
|
16826
|
+
typeEnum
|
|
16827
|
+
__typename
|
|
16828
|
+
}
|
|
16829
|
+
__typename
|
|
16830
|
+
}
|
|
16831
|
+
sageQuerySnippetWithHighlights {
|
|
16832
|
+
highlights {
|
|
16833
|
+
start
|
|
16834
|
+
end
|
|
16835
|
+
__typename
|
|
16836
|
+
}
|
|
16837
|
+
phraseType
|
|
16838
|
+
phraseValue
|
|
16839
|
+
__typename
|
|
16840
|
+
}
|
|
16841
|
+
__typename
|
|
16842
|
+
}
|
|
16843
|
+
score
|
|
16844
|
+
debugInfo
|
|
16845
|
+
resultType
|
|
16846
|
+
sageQuery
|
|
16847
|
+
__typename
|
|
16848
|
+
}
|
|
16849
|
+
version
|
|
16850
|
+
nextPageOffset
|
|
16851
|
+
batchSizeRequired
|
|
16852
|
+
isFinalPage
|
|
16853
|
+
totalResults
|
|
16854
|
+
totalFacetResultCount
|
|
16855
|
+
errorCode
|
|
16856
|
+
debugInfo {
|
|
16857
|
+
fewShotExamples {
|
|
16858
|
+
chartType
|
|
16859
|
+
formulas {
|
|
16860
|
+
name
|
|
16861
|
+
expression
|
|
16862
|
+
__typename
|
|
16863
|
+
}
|
|
16864
|
+
id
|
|
16865
|
+
mappingId
|
|
16866
|
+
nlQuery
|
|
16867
|
+
nlQueryConcepts
|
|
16868
|
+
sageQuery
|
|
16869
|
+
scope
|
|
16870
|
+
sql
|
|
16871
|
+
tml
|
|
16872
|
+
feedbackType
|
|
16873
|
+
__typename
|
|
16874
|
+
}
|
|
16875
|
+
__typename
|
|
16876
|
+
}
|
|
16877
|
+
__typename
|
|
16878
|
+
}
|
|
16879
|
+
|
|
16880
|
+
fragment eurekaAnswer on eureka_AnswerResult {
|
|
16881
|
+
header {
|
|
16882
|
+
...header
|
|
16883
|
+
__typename
|
|
16884
|
+
}
|
|
16885
|
+
usageInfo {
|
|
16886
|
+
...usageInfo
|
|
16887
|
+
__typename
|
|
16888
|
+
}
|
|
16889
|
+
preferredViz {
|
|
16890
|
+
...visualizationMetadata
|
|
16891
|
+
__typename
|
|
16892
|
+
}
|
|
16893
|
+
worksheetInfo {
|
|
16894
|
+
...worksheetInfo
|
|
16895
|
+
__typename
|
|
16896
|
+
}
|
|
16897
|
+
formatted {
|
|
16898
|
+
phrase {
|
|
16899
|
+
isCompletePhrase
|
|
16900
|
+
numTokens
|
|
16901
|
+
phraseType
|
|
16902
|
+
startIndex
|
|
16903
|
+
__typename
|
|
16904
|
+
}
|
|
16905
|
+
token {
|
|
16906
|
+
token
|
|
16907
|
+
typeEnum
|
|
16908
|
+
__typename
|
|
16909
|
+
}
|
|
16910
|
+
__typename
|
|
16911
|
+
}
|
|
16912
|
+
__typename
|
|
16913
|
+
}
|
|
16914
|
+
|
|
16915
|
+
fragment header on eureka_Header {
|
|
16916
|
+
id
|
|
16917
|
+
title
|
|
16918
|
+
description
|
|
16919
|
+
authorGuid
|
|
16920
|
+
authorName
|
|
16921
|
+
createdOn
|
|
16922
|
+
tagIds
|
|
16923
|
+
__typename
|
|
16924
|
+
}
|
|
16925
|
+
|
|
16926
|
+
fragment usageInfo on eureka_UsageInfo {
|
|
16927
|
+
favouriteCount
|
|
16928
|
+
viewCount
|
|
16929
|
+
__typename
|
|
16930
|
+
}
|
|
16931
|
+
|
|
16932
|
+
fragment visualizationMetadata on eureka_VisualizationMetadata {
|
|
16933
|
+
vizType
|
|
16934
|
+
chartType
|
|
16935
|
+
vizSnapshotRequestData {
|
|
16936
|
+
parentReportbookGuid
|
|
16937
|
+
parentType
|
|
16938
|
+
version
|
|
16939
|
+
vizGuid
|
|
16940
|
+
__typename
|
|
16941
|
+
}
|
|
16942
|
+
__typename
|
|
16943
|
+
}
|
|
16944
|
+
|
|
16945
|
+
fragment worksheetInfo on eureka_WorksheetInfo {
|
|
16946
|
+
id
|
|
16947
|
+
name
|
|
16948
|
+
__typename
|
|
16949
|
+
}`;
|
|
16950
|
+
|
|
16951
|
+
/**
|
|
16952
|
+
*
|
|
16953
|
+
* @param query string
|
|
16954
|
+
* @param worksheetId string
|
|
16955
|
+
* @returns answerService AnswerService
|
|
16956
|
+
*/
|
|
16957
|
+
const getAnswerFromQuery = async (query, worksheetId) => {
|
|
16958
|
+
const embedConfig = getEmbedConfig();
|
|
16959
|
+
const resp = await graphqlQuery({
|
|
16960
|
+
query: getAnswerSessionFromQuery,
|
|
16961
|
+
variables: {
|
|
16962
|
+
params: {
|
|
16963
|
+
facetSelections: [],
|
|
16964
|
+
filterSelections: [
|
|
16965
|
+
{
|
|
16966
|
+
facetType: 'WORKSHEETS',
|
|
16967
|
+
facetValue: [
|
|
16968
|
+
worksheetId,
|
|
16969
|
+
],
|
|
16970
|
+
},
|
|
16971
|
+
],
|
|
16972
|
+
query,
|
|
16973
|
+
worksheetFacetPayload: {
|
|
16974
|
+
worksheetId,
|
|
16975
|
+
},
|
|
16976
|
+
searchOption: 'AI_ANSWER',
|
|
16977
|
+
},
|
|
16978
|
+
},
|
|
16979
|
+
thoughtSpotHost: embedConfig.thoughtSpotHost,
|
|
16980
|
+
isCompositeQuery: false,
|
|
16981
|
+
});
|
|
16982
|
+
const suggestion = resp.sageQuerySuggestions[0];
|
|
16983
|
+
const answerSession = {
|
|
16984
|
+
sessionId: suggestion.sessionId,
|
|
16985
|
+
genNo: suggestion.genNo,
|
|
16986
|
+
acSession: {
|
|
16987
|
+
sessionId: suggestion.stateKey.transactionId,
|
|
16988
|
+
genNo: suggestion.stateKey.generationNo,
|
|
16989
|
+
},
|
|
16990
|
+
};
|
|
16991
|
+
return new AnswerService(answerSession, null, embedConfig.thoughtSpotHost);
|
|
16992
|
+
};
|
|
16993
|
+
|
|
16994
|
+
export { Action, AnswerService, AppEmbed, AuthEvent, AuthFailureType, AuthStatus, AuthType, ContextMenuTriggerOptions, Conversation$1 as Conversation, DataSourceVisualMode, EmbedEvent, HomeLeftNavItem, HomepageModule, HostEvent, LiveboardEmbed, LogLevel, MIXPANEL_EVENT, Page, PinboardEmbed, PrefetchFeatures, RuntimeFilterOp, SageEmbed, SearchBarEmbed, SearchEmbed, executeTML, exportTML, getAnswerFromQuery, getEmbedConfig as getInitConfig, getSessionInfo, init, logout$1 as logout, prefetch, resetCachedAuthToken, tokenizedFetch, uploadMixpanelEvent };
|