@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.
Files changed (71) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/conversation.js +2 -2
  3. package/cjs/src/embed/conversation.js.map +1 -1
  4. package/cjs/src/index.d.ts +2 -1
  5. package/cjs/src/index.d.ts.map +1 -1
  6. package/cjs/src/index.js +3 -1
  7. package/cjs/src/index.js.map +1 -1
  8. package/cjs/src/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
  9. package/cjs/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
  10. package/cjs/src/utils/graphql/spotterService/conversation-queries.js +318 -0
  11. package/cjs/src/utils/graphql/spotterService/conversation-queries.js.map +1 -0
  12. package/cjs/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
  13. package/cjs/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
  14. package/cjs/src/utils/graphql/spotterService/conversation-service.js +89 -0
  15. package/cjs/src/utils/graphql/spotterService/conversation-service.js.map +1 -0
  16. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
  17. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
  18. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.js +403 -0
  19. package/cjs/src/utils/graphql/spotterService/nls-answer-queries.js.map +1 -0
  20. package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts +9 -0
  21. package/cjs/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
  22. package/cjs/src/utils/graphql/spotterService/nls-answer-service.js +52 -0
  23. package/cjs/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
  24. package/dist/src/index.d.ts +2 -1
  25. package/dist/src/index.d.ts.map +1 -1
  26. package/dist/src/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
  27. package/dist/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
  28. package/dist/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
  29. package/dist/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
  30. package/dist/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
  31. package/dist/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
  32. package/dist/src/utils/graphql/spotterService/nls-answer-service.d.ts +9 -0
  33. package/dist/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
  34. package/dist/tsembed-react.es.js +1 -1
  35. package/dist/tsembed-react.js +1 -1
  36. package/dist/tsembed.es.js +446 -3
  37. package/dist/tsembed.js +446 -2
  38. package/dist/visual-embed-sdk-react-full.d.ts +9 -1
  39. package/dist/visual-embed-sdk-react.d.ts +9 -1
  40. package/dist/visual-embed-sdk.d.ts +9 -1
  41. package/lib/package.json +1 -1
  42. package/lib/src/embed/conversation.js +2 -2
  43. package/lib/src/embed/conversation.js.map +1 -1
  44. package/lib/src/index.d.ts +2 -1
  45. package/lib/src/index.d.ts.map +1 -1
  46. package/lib/src/index.js +2 -1
  47. package/lib/src/index.js.map +1 -1
  48. package/lib/src/utils/graphql/spotterService/conversation-queries.d.ts +3 -0
  49. package/lib/src/utils/graphql/spotterService/conversation-queries.d.ts.map +1 -0
  50. package/lib/src/utils/graphql/spotterService/conversation-queries.js +315 -0
  51. package/lib/src/utils/graphql/spotterService/conversation-queries.js.map +1 -0
  52. package/lib/src/utils/graphql/spotterService/conversation-service.d.ts +12 -0
  53. package/lib/src/utils/graphql/spotterService/conversation-service.d.ts.map +1 -0
  54. package/lib/src/utils/graphql/spotterService/conversation-service.js +84 -0
  55. package/lib/src/utils/graphql/spotterService/conversation-service.js.map +1 -0
  56. package/lib/src/utils/graphql/spotterService/nls-answer-queries.d.ts +2 -0
  57. package/lib/src/utils/graphql/spotterService/nls-answer-queries.d.ts.map +1 -0
  58. package/lib/src/utils/graphql/spotterService/nls-answer-queries.js +400 -0
  59. package/lib/src/utils/graphql/spotterService/nls-answer-queries.js.map +1 -0
  60. package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts +9 -0
  61. package/lib/src/utils/graphql/spotterService/nls-answer-service.d.ts.map +1 -0
  62. package/lib/src/utils/graphql/spotterService/nls-answer-service.js +47 -0
  63. package/lib/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
  64. package/lib/src/visual-embed-sdk.d.ts +13 -1
  65. package/package.json +1 -1
  66. package/src/embed/conversation.ts +2 -2
  67. package/src/index.ts +2 -0
  68. package/src/utils/graphql/spotterService/nls-answer-queries.ts +399 -0
  69. package/src/utils/graphql/spotterService/nls-answer-service.ts +55 -0
  70. /package/src/utils/graphql/{conversationService → spotterService}/conversation-queries.ts +0 -0
  71. /package/src/utils/graphql/{conversationService → spotterService}/conversation-service.ts +0 -0
package/dist/tsembed.js CHANGED
@@ -14059,7 +14059,7 @@ mutation RemoveColumns($session: BachSessionIdInput!, $logicalColumnIds: [GUID!]
14059
14059
  });
14060
14060
  }
14061
14061
 
14062
- var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.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 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};
14062
+ 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};
14063
14063
 
14064
14064
  /**
14065
14065
  * Copyright (c) 2022
@@ -16336,7 +16336,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
16336
16336
  sessionId: data.sessionId,
16337
16337
  genNo: data.genNo,
16338
16338
  acSessionId: data.stateKey.transactionId,
16339
- acGenNo: data.stateKey.generationNo,
16339
+ acGenNo: data.stateKey.generationNumber,
16340
16340
  });
16341
16341
  embed.render();
16342
16342
  return { container };
@@ -16419,6 +16419,449 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
16419
16419
  }
16420
16420
  }
16421
16421
 
16422
+ const getAnswerSessionFromQuery = `
16423
+ query GetEurekaResults($params: Input_eureka_SearchRequest) {
16424
+ queryRequest(request: $params) {
16425
+ ...eurekaResults
16426
+ __typename
16427
+ }
16428
+ }
16429
+
16430
+ fragment eurekaResults on eureka_SearchResponse {
16431
+ facets {
16432
+ facetType
16433
+ facetValue
16434
+ facetValues {
16435
+ id
16436
+ resultCount
16437
+ name
16438
+ __typename
16439
+ }
16440
+ __typename
16441
+ }
16442
+ requestIdentifiers {
16443
+ apiRequestId
16444
+ appActivityId
16445
+ __typename
16446
+ }
16447
+ sageQuerySuggestions {
16448
+ llmReasoning {
16449
+ assumptions
16450
+ clarifications
16451
+ interpretation
16452
+ __typename
16453
+ }
16454
+ tokens
16455
+ tmlTokens
16456
+ worksheetId
16457
+ description
16458
+ title
16459
+ tmlTokens
16460
+ formulaInfo {
16461
+ name
16462
+ expression
16463
+ __typename
16464
+ }
16465
+ tmlPhrases
16466
+ ambiguousPhrases {
16467
+ alternativePhrases {
16468
+ phraseType
16469
+ token {
16470
+ token
16471
+ dataType
16472
+ typeEnum
16473
+ guid
16474
+ tokenMetadata {
16475
+ name
16476
+ __typename
16477
+ }
16478
+ __typename
16479
+ }
16480
+ __typename
16481
+ }
16482
+ ambiguityType
16483
+ token {
16484
+ token
16485
+ dataType
16486
+ typeEnum
16487
+ guid
16488
+ tokenMetadata {
16489
+ name
16490
+ __typename
16491
+ }
16492
+ __typename
16493
+ }
16494
+ __typename
16495
+ }
16496
+ ambiguousTokens {
16497
+ alternativeTokens {
16498
+ token
16499
+ dataType
16500
+ typeEnum
16501
+ guid
16502
+ tokenMetadata {
16503
+ name
16504
+ deprecatedTableGuid
16505
+ deprecatedTableName
16506
+ isFormula
16507
+ rootTables {
16508
+ created
16509
+ description
16510
+ guid
16511
+ indexVersion
16512
+ modified
16513
+ name
16514
+ __typename
16515
+ }
16516
+ schemaTableUserDefinedName
16517
+ table {
16518
+ created
16519
+ description
16520
+ guid
16521
+ indexVersion
16522
+ modified
16523
+ name
16524
+ __typename
16525
+ }
16526
+ __typename
16527
+ }
16528
+ __typename
16529
+ }
16530
+ ambiguityType
16531
+ token {
16532
+ token
16533
+ dataType
16534
+ typeEnum
16535
+ guid
16536
+ tokenMetadata {
16537
+ name
16538
+ __typename
16539
+ }
16540
+ __typename
16541
+ }
16542
+ __typename
16543
+ }
16544
+ sessionId
16545
+ genNo
16546
+ stateKey {
16547
+ generationNumber
16548
+ transactionId
16549
+ __typename
16550
+ }
16551
+ subQueries {
16552
+ tokens
16553
+ cohortConfig {
16554
+ anchorColumnId
16555
+ cohortAnswerGuid
16556
+ cohortGroupingType
16557
+ cohortGuid
16558
+ cohortType
16559
+ combineNonGroupValues
16560
+ description
16561
+ groupExcludedQueryValues
16562
+ hideExcludedQueryValues
16563
+ isEditable
16564
+ name
16565
+ nullOutputValue
16566
+ returnColumnId
16567
+ __typename
16568
+ }
16569
+ formulas {
16570
+ name
16571
+ expression
16572
+ __typename
16573
+ }
16574
+ __typename
16575
+ }
16576
+ visualizationSuggestion {
16577
+ chartType
16578
+ displayMode
16579
+ axisConfigs {
16580
+ category
16581
+ color
16582
+ hidden
16583
+ size
16584
+ sort
16585
+ x
16586
+ y
16587
+ __typename
16588
+ }
16589
+ usersVizIntentApplied
16590
+ customChartConfigs {
16591
+ dimensions {
16592
+ columns
16593
+ key
16594
+ __typename
16595
+ }
16596
+ key
16597
+ __typename
16598
+ }
16599
+ customChartGuid
16600
+ __typename
16601
+ }
16602
+ tableData {
16603
+ columnDataLite {
16604
+ columnId
16605
+ columnDataType
16606
+ dataValue
16607
+ columnName
16608
+ __typename
16609
+ }
16610
+ __typename
16611
+ }
16612
+ warningType
16613
+ cached
16614
+ warningDetails {
16615
+ warningType
16616
+ __typename
16617
+ }
16618
+ __typename
16619
+ }
16620
+ results {
16621
+ objectSecurityInfo {
16622
+ objectType
16623
+ objectId
16624
+ objectIdForDeletionCheck
16625
+ objectTypeForDeletionCheck
16626
+ isD13ySourced
16627
+ offset
16628
+ __typename
16629
+ }
16630
+ searchAnswer {
16631
+ ...eurekaAnswer
16632
+ __typename
16633
+ }
16634
+ searchPinboardViz {
16635
+ answer {
16636
+ ...eurekaAnswer
16637
+ __typename
16638
+ }
16639
+ pinboardHeader {
16640
+ id
16641
+ title
16642
+ __typename
16643
+ }
16644
+ __typename
16645
+ }
16646
+ searchPinboard {
16647
+ header {
16648
+ ...header
16649
+ __typename
16650
+ }
16651
+ usageInfo {
16652
+ ...usageInfo
16653
+ __typename
16654
+ }
16655
+ answers {
16656
+ ...eurekaAnswer
16657
+ __typename
16658
+ }
16659
+ vizCount {
16660
+ charts
16661
+ metrics
16662
+ tables
16663
+ __typename
16664
+ }
16665
+ __typename
16666
+ }
16667
+ snippetInfo {
16668
+ titleSnippet {
16669
+ snippetString
16670
+ highlights {
16671
+ start
16672
+ end
16673
+ __typename
16674
+ }
16675
+ __typename
16676
+ }
16677
+ descriptionSnippet {
16678
+ snippetString
16679
+ highlights {
16680
+ start
16681
+ end
16682
+ __typename
16683
+ }
16684
+ __typename
16685
+ }
16686
+ sageQuerySnippet {
16687
+ phrase {
16688
+ isCompletePhrase
16689
+ numTokens
16690
+ phraseType
16691
+ startIndex
16692
+ __typename
16693
+ }
16694
+ token {
16695
+ token
16696
+ dataType
16697
+ typeEnum
16698
+ __typename
16699
+ }
16700
+ __typename
16701
+ }
16702
+ sageQuerySnippetWithHighlights {
16703
+ highlights {
16704
+ start
16705
+ end
16706
+ __typename
16707
+ }
16708
+ phraseType
16709
+ phraseValue
16710
+ __typename
16711
+ }
16712
+ __typename
16713
+ }
16714
+ score
16715
+ debugInfo
16716
+ resultType
16717
+ sageQuery
16718
+ __typename
16719
+ }
16720
+ version
16721
+ nextPageOffset
16722
+ batchSizeRequired
16723
+ isFinalPage
16724
+ totalResults
16725
+ totalFacetResultCount
16726
+ errorCode
16727
+ debugInfo {
16728
+ fewShotExamples {
16729
+ chartType
16730
+ formulas {
16731
+ name
16732
+ expression
16733
+ __typename
16734
+ }
16735
+ id
16736
+ mappingId
16737
+ nlQuery
16738
+ nlQueryConcepts
16739
+ sageQuery
16740
+ scope
16741
+ sql
16742
+ tml
16743
+ feedbackType
16744
+ __typename
16745
+ }
16746
+ __typename
16747
+ }
16748
+ __typename
16749
+ }
16750
+
16751
+ fragment eurekaAnswer on eureka_AnswerResult {
16752
+ header {
16753
+ ...header
16754
+ __typename
16755
+ }
16756
+ usageInfo {
16757
+ ...usageInfo
16758
+ __typename
16759
+ }
16760
+ preferredViz {
16761
+ ...visualizationMetadata
16762
+ __typename
16763
+ }
16764
+ worksheetInfo {
16765
+ ...worksheetInfo
16766
+ __typename
16767
+ }
16768
+ formatted {
16769
+ phrase {
16770
+ isCompletePhrase
16771
+ numTokens
16772
+ phraseType
16773
+ startIndex
16774
+ __typename
16775
+ }
16776
+ token {
16777
+ token
16778
+ typeEnum
16779
+ __typename
16780
+ }
16781
+ __typename
16782
+ }
16783
+ __typename
16784
+ }
16785
+
16786
+ fragment header on eureka_Header {
16787
+ id
16788
+ title
16789
+ description
16790
+ authorGuid
16791
+ authorName
16792
+ createdOn
16793
+ tagIds
16794
+ __typename
16795
+ }
16796
+
16797
+ fragment usageInfo on eureka_UsageInfo {
16798
+ favouriteCount
16799
+ viewCount
16800
+ __typename
16801
+ }
16802
+
16803
+ fragment visualizationMetadata on eureka_VisualizationMetadata {
16804
+ vizType
16805
+ chartType
16806
+ vizSnapshotRequestData {
16807
+ parentReportbookGuid
16808
+ parentType
16809
+ version
16810
+ vizGuid
16811
+ __typename
16812
+ }
16813
+ __typename
16814
+ }
16815
+
16816
+ fragment worksheetInfo on eureka_WorksheetInfo {
16817
+ id
16818
+ name
16819
+ __typename
16820
+ }`;
16821
+
16822
+ /**
16823
+ *
16824
+ * @param query string
16825
+ * @param worksheetId string
16826
+ * @returns answerService AnswerService
16827
+ */
16828
+ const getAnswerFromQuery = async (query, worksheetId) => {
16829
+ const embedConfig = getEmbedConfig();
16830
+ const resp = await graphqlQuery({
16831
+ query: getAnswerSessionFromQuery,
16832
+ variables: {
16833
+ params: {
16834
+ facetSelections: [],
16835
+ filterSelections: [
16836
+ {
16837
+ facetType: 'WORKSHEETS',
16838
+ facetValue: [
16839
+ worksheetId,
16840
+ ],
16841
+ },
16842
+ ],
16843
+ query,
16844
+ worksheetFacetPayload: {
16845
+ worksheetId,
16846
+ },
16847
+ searchOption: 'AI_ANSWER',
16848
+ },
16849
+ },
16850
+ thoughtSpotHost: embedConfig.thoughtSpotHost,
16851
+ isCompositeQuery: false,
16852
+ });
16853
+ const suggestion = resp.sageQuerySuggestions[0];
16854
+ const answerSession = {
16855
+ sessionId: suggestion.sessionId,
16856
+ genNo: suggestion.genNo,
16857
+ acSession: {
16858
+ sessionId: suggestion.stateKey.transactionId,
16859
+ genNo: suggestion.stateKey.generationNo,
16860
+ },
16861
+ };
16862
+ return new AnswerService(answerSession, null, embedConfig.thoughtSpotHost);
16863
+ };
16864
+
16422
16865
  exports.AnswerService = AnswerService;
16423
16866
  exports.AppEmbed = AppEmbed;
16424
16867
  exports.Conversation = Conversation$1;
@@ -16430,6 +16873,7 @@ query SendMessage($params: Input_convassist_SendMessageRequest) {
16430
16873
  exports.SearchEmbed = SearchEmbed;
16431
16874
  exports.executeTML = executeTML;
16432
16875
  exports.exportTML = exportTML;
16876
+ exports.getAnswerFromQuery = getAnswerFromQuery;
16433
16877
  exports.getInitConfig = getEmbedConfig;
16434
16878
  exports.getSessionInfo = getSessionInfo;
16435
16879
  exports.init = init;
@@ -222,7 +222,7 @@ export function useEmbedRef<T extends EmbedComponent>(): React.MutableRefObject<
222
222
  * @summary ThoughtSpot Visual Embed SDK
223
223
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
224
224
  */
225
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
225
+ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
226
226
 
227
227
  /**
228
228
  * @group Embed components
@@ -6702,6 +6702,14 @@ export declare function testResetMixpanel(): void;
6702
6702
  */
6703
6703
  export declare const tokenizedFetch: typeof fetch;
6704
6704
 
6705
+ /**
6706
+ *
6707
+ * @param query string
6708
+ * @param worksheetId string
6709
+ * @returns answerService AnswerService
6710
+ */
6711
+ export declare const getAnswerFromQuery: (query: string, worksheetId: string) => Promise<AnswerService>;
6712
+
6705
6713
  /**
6706
6714
  *
6707
6715
  * @param embedConfig
@@ -1499,7 +1499,7 @@ export function getViewPropsAndListeners<T extends EmbedProps, U extends ViewCon
1499
1499
  * @summary ThoughtSpot Visual Embed SDK
1500
1500
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
1501
1501
  */
1502
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
1502
+ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
1503
1503
 
1504
1504
  /**
1505
1505
  * Copyright (c) 2023
@@ -6992,6 +6992,14 @@ export declare function testResetMixpanel(): void;
6992
6992
  */
6993
6993
  export declare const tokenizedFetch: typeof fetch;
6994
6994
 
6995
+ /**
6996
+ *
6997
+ * @param query string
6998
+ * @param worksheetId string
6999
+ * @returns answerService AnswerService
7000
+ */
7001
+ export declare const getAnswerFromQuery: (query: string, worksheetId: string) => Promise<AnswerService>;
7002
+
6995
7003
  /**
6996
7004
  *
6997
7005
  * @param embedConfig
@@ -12,7 +12,7 @@ import EventEmitter from 'eventemitter3';
12
12
  * @summary ThoughtSpot Visual Embed SDK
13
13
  * @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
14
14
  */
15
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
15
+ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
16
16
 
17
17
  /**
18
18
  * Copyright (c) 2022
@@ -6474,6 +6474,14 @@ export function testResetMixpanel(): void;
6474
6474
  */
6475
6475
  export const tokenizedFetch: typeof fetch;
6476
6476
 
6477
+ /**
6478
+ *
6479
+ * @param query string
6480
+ * @param worksheetId string
6481
+ * @returns answerService AnswerService
6482
+ */
6483
+ export const getAnswerFromQuery: (query: string, worksheetId: string) => Promise<AnswerService>;
6484
+
6477
6485
  /**
6478
6486
  *
6479
6487
  * @param embedConfig
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.32.4-dc.2",
3
+ "version": "1.32.4-dc.4",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -1,6 +1,6 @@
1
1
  import { Param } from '../types';
2
2
  import { TsEmbed } from './ts-embed';
3
- import { Conversation as ConversationService } from '../utils/graphql/conversationService/conversation-service';
3
+ import { Conversation as ConversationService } from '../utils/graphql/spotterService/conversation-service';
4
4
  import { getEmbedConfig } from './embedConfig';
5
5
  import { getQueryParamString } from '../utils';
6
6
  class ConversationMessage extends TsEmbed {
@@ -57,7 +57,7 @@ export class Conversation {
57
57
  sessionId: data.sessionId,
58
58
  genNo: data.genNo,
59
59
  acSessionId: data.stateKey.transactionId,
60
- acGenNo: data.stateKey.generationNo,
60
+ acGenNo: data.stateKey.generationNumber,
61
61
  });
62
62
  embed.render();
63
63
  return { container };
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAChH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAgB/C,MAAM,mBAAoB,SAAQ,OAAO;IACrC,YAAY,SAAsB,EAAY,UAAyC;QACnF,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QADa,eAAU,GAAV,UAAU,CAA+B;IAEvF,CAAC;IAEM,YAAY;;QACf,MAAM,EACF,SAAS,EACT,KAAK,EACL,WAAW,EACX,OAAO,GACV,GAAG,IAAI,CAAC,UAAU,CAAC;QACpB,MAAM,IAAI,GAAG,oBAAoB,CAAC;QAClC,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAE9C,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,MAAA,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,mCAAI,EAAE,CAAC,CAAC,CAAC;QAC7E,IAAI,KAAK,GAAG,EAA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,IAAI,CAAC,QAAQ,CAAC,gBAAgB;SAC1C,CAAC,CAAC;QACH,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,OAAO,EAAE,SAAS,EAAE,CAAC;IACzB,CAAC;CACJ"}
@@ -21,6 +21,7 @@ import { AnswerService, SessionInterface, UnderlyingDataPoint } from './utils/gr
21
21
  import { getEmbedConfig } from './embed/embedConfig';
22
22
  import { uploadMixpanelEvent, MIXPANEL_EVENT } from './mixpanel-service';
23
23
  import { tokenizedFetch } from './tokenizedFetch';
24
- export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
24
+ import { getAnswerFromQuery } from './utils/graphql/spotterService/nls-answer-service';
25
+ export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, ConversationViewConfig, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
25
26
  export { resetCachedAuthToken } from './authToken';
26
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,UAAU,EACV,SAAS,EACT,eAAe,EACf,cAAc,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EACH,eAAe,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAC3D,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACH,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,EACd,cAAc,EACd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,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACnH,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAEvF,OAAO,EACH,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,eAAe,EACf,cAAc,EACd,cAAc,IAAI,aAAa,EAC/B,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,aAAa,EACb,cAAc,EACd,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,aAAa,EAEb,gBAAgB,EAChB,mBAAmB,EACnB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,MAAM,EACN,yBAAyB,EACzB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,QAAQ,EACR,mBAAmB,GACtB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
package/lib/src/index.js CHANGED
@@ -20,6 +20,7 @@ import { AnswerService } from './utils/graphql/answerService/answerService';
20
20
  import { getEmbedConfig } from './embed/embedConfig';
21
21
  import { uploadMixpanelEvent, MIXPANEL_EVENT } from './mixpanel-service';
22
22
  import { tokenizedFetch } from './tokenizedFetch';
23
- export { init, logout, prefetch, executeTML, exportTML, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, AuthFailureType, AuthStatus, AuthEvent, AnswerService, Page, AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, PrefetchFeatures, HomeLeftNavItem, HomepageModule, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, };
23
+ import { getAnswerFromQuery } from './utils/graphql/spotterService/nls-answer-service';
24
+ export { init, logout, prefetch, executeTML, exportTML, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, Conversation, AuthFailureType, AuthStatus, AuthEvent, AnswerService, Page, AuthType, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, PrefetchFeatures, HomeLeftNavItem, HomepageModule, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, };
24
25
  export { resetCachedAuthToken } from './authToken';
25
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,aAAa,CAAC;AAC5D,OAAO,EACH,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,UAAU,EACV,SAAS,GAGZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAuB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAoB,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAuB,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,YAAY,EAA0B,MAAM,sBAA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