@thoughtspot/visual-embed-sdk 1.33.0-alpha.2 → 1.33.0-dc.1
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 +12 -28
- package/cjs/src/auth.d.ts +0 -1
- package/cjs/src/auth.d.ts.map +1 -1
- package/cjs/src/auth.js +1 -2
- package/cjs/src/auth.js.map +1 -1
- package/cjs/src/auth.spec.d.ts +1 -11
- package/cjs/src/auth.spec.d.ts.map +1 -1
- package/cjs/src/auth.spec.js +5 -14
- package/cjs/src/auth.spec.js.map +1 -1
- package/cjs/src/authToken.d.ts +4 -0
- package/cjs/src/authToken.d.ts.map +1 -1
- package/cjs/src/authToken.js +4 -0
- package/cjs/src/authToken.js.map +1 -1
- package/cjs/src/css-variables.d.ts +46 -3
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts +47 -14
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +10 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +32 -0
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/base.d.ts +35 -33
- package/cjs/src/embed/base.d.ts.map +1 -1
- package/cjs/src/embed/base.js +35 -33
- package/cjs/src/embed/base.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +26 -0
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -0
- package/cjs/src/embed/bodyless-conversation.js +70 -0
- package/cjs/src/embed/bodyless-conversation.js.map +1 -0
- package/cjs/src/embed/bodyless-conversation.spec.d.ts +2 -0
- package/cjs/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
- package/cjs/src/embed/bodyless-conversation.spec.js +125 -0
- package/cjs/src/embed/bodyless-conversation.spec.js.map +1 -0
- package/cjs/src/embed/conversation.d.ts +28 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -0
- package/cjs/src/embed/conversation.js +34 -0
- package/cjs/src/embed/conversation.js.map +1 -0
- package/cjs/src/embed/conversation.spec.d.ts +2 -0
- package/cjs/src/embed/conversation.spec.d.ts.map +1 -0
- package/cjs/src/embed/conversation.spec.js +32 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -0
- package/cjs/src/embed/embed.spec.js +0 -19
- package/cjs/src/embed/embed.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +49 -0
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +21 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +43 -0
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/search.d.ts +0 -13
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +3 -2
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +10 -13
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +0 -9
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/index.d.ts +4 -1
- package/cjs/src/index.d.ts.map +1 -1
- package/cjs/src/index.js +7 -1
- package/cjs/src/index.js.map +1 -1
- package/cjs/src/mixpanel-service.d.ts +4 -0
- package/cjs/src/mixpanel-service.d.ts.map +1 -1
- package/cjs/src/mixpanel-service.js +4 -0
- package/cjs/src/mixpanel-service.js.map +1 -1
- package/cjs/src/react/index.d.ts +39 -1
- package/cjs/src/react/index.d.ts.map +1 -1
- package/cjs/src/react/index.js +37 -1
- package/cjs/src/react/index.js.map +1 -1
- package/cjs/src/test/test-utils.d.ts +13 -0
- package/cjs/src/test/test-utils.d.ts.map +1 -1
- package/cjs/src/test/test-utils.js +41 -4
- package/cjs/src/test/test-utils.js.map +1 -1
- package/cjs/src/tokenizedFetch.d.ts.map +1 -1
- package/cjs/src/tokenizedFetch.js +5 -1
- package/cjs/src/tokenizedFetch.js.map +1 -1
- package/cjs/src/types.d.ts +166 -22
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +143 -12
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/answerService/answerService.d.ts +34 -0
- package/cjs/src/utils/answerService/answerService.d.ts.map +1 -0
- package/cjs/src/utils/answerService/answerService.js +142 -0
- package/cjs/src/utils/answerService/answerService.js.map +1 -0
- package/cjs/src/utils/answerService/answerService.spec.d.ts +1 -0
- package/cjs/src/utils/answerService/answerService.spec.d.ts.map +1 -0
- package/cjs/src/utils/answerService/answerService.spec.js +1 -0
- package/cjs/src/utils/answerService/answerService.spec.js.map +1 -0
- package/cjs/src/utils/answerService/graphql-queries.d.ts +6 -0
- package/cjs/src/utils/answerService/graphql-queries.d.ts.map +1 -0
- package/cjs/src/utils/answerService/graphql-queries.js +123 -0
- package/cjs/src/utils/answerService/graphql-queries.js.map +1 -0
- package/cjs/src/utils/answerService.d.ts +10 -0
- package/cjs/src/utils/answerService.d.ts.map +1 -0
- package/cjs/src/utils/answerService.js +61 -0
- package/cjs/src/utils/answerService.js.map +1 -0
- package/cjs/src/utils/answerService.spec.d.ts +2 -0
- package/cjs/src/utils/answerService.spec.d.ts.map +1 -0
- package/cjs/src/utils/answerService.spec.js +31 -0
- package/cjs/src/utils/answerService.spec.js.map +1 -0
- package/cjs/src/utils/authService/authService.spec.js +11 -2
- package/cjs/src/utils/authService/authService.spec.js.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts +0 -2
- package/cjs/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/cjs/src/utils/authService/tokenizedAuthService.js +0 -2
- package/cjs/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/cjs/src/utils/authService.d.ts +37 -0
- package/cjs/src/utils/authService.d.ts.map +1 -0
- package/cjs/src/utils/authService.js +106 -0
- package/cjs/src/utils/authService.js.map +1 -0
- package/cjs/src/utils/authService.spec.d.ts +2 -0
- package/cjs/src/utils/authService.spec.d.ts.map +1 -0
- package/cjs/src/utils/authService.spec.js +72 -0
- package/cjs/src/utils/authService.spec.js.map +1 -0
- package/cjs/src/utils/global-styles.spec.d.ts +2 -0
- package/cjs/src/utils/global-styles.spec.d.ts.map +1 -0
- package/cjs/src/utils/global-styles.spec.js +21 -0
- package/cjs/src/utils/global-styles.spec.js.map +1 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts +2 -0
- package/cjs/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answer-queries.js +32 -2
- package/cjs/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +23 -0
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +76 -8
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +109 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts +5 -0
- package/cjs/src/utils/graphql/answerService/graphql-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/answerService/graphql-queries.js +80 -0
- package/cjs/src/utils/graphql/answerService/graphql-queries.js.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.js +318 -0
- package/cjs/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.js +89 -0
- package/cjs/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
- package/cjs/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/cjs/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/cjs/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/cjs/src/utils/graphql/graphql-request.spec.js +48 -0
- package/cjs/src/utils/graphql/graphql-request.spec.js.map +1 -0
- package/cjs/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
- package/cjs/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/nlsService/conversation-queries.js +313 -0
- package/cjs/src/utils/graphql/nlsService/conversation-queries.js.map +1 -0
- package/cjs/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
- package/cjs/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
- package/cjs/src/utils/graphql/nlsService/conversation-service.js +75 -0
- package/cjs/src/utils/graphql/nlsService/conversation-service.js.map +1 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-queries.js +403 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-queries.js.map +1 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts +12 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.js +55 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.spec.js +33 -0
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.spec.js.map +1 -0
- package/cjs/src/utils/graphql/preview-service.d.ts +6 -0
- package/cjs/src/utils/graphql/preview-service.d.ts.map +1 -1
- package/cjs/src/utils/graphql/preview-service.js +6 -0
- package/cjs/src/utils/graphql/preview-service.js.map +1 -1
- package/cjs/src/utils/graphql/preview-service.spec.d.ts +2 -0
- package/cjs/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
- package/cjs/src/utils/graphql/preview-service.spec.js +20 -0
- package/cjs/src/utils/graphql/preview-service.spec.js.map +1 -0
- 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 +12 -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 +55 -0
- package/cjs/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
- package/cjs/src/utils/liveboardService/liveboardService.d.ts +3 -0
- package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
- package/cjs/src/utils/liveboardService/liveboardService.js +50 -0
- package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -0
- package/cjs/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
- package/cjs/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
- package/cjs/src/utils/liveboardService/liveboardService.spec.js +64 -0
- package/cjs/src/utils/liveboardService/liveboardService.spec.js.map +1 -0
- package/cjs/src/utils/processData.js +2 -2
- package/cjs/src/utils/processData.js.map +1 -1
- package/cjs/src/utils/processData.spec.js +15 -0
- package/cjs/src/utils/processData.spec.js.map +1 -1
- package/cjs/src/utils/processTrigger.d.ts +1 -0
- package/cjs/src/utils/processTrigger.d.ts.map +1 -1
- package/cjs/src/utils/processTrigger.js +3 -3
- package/cjs/src/utils/processTrigger.js.map +1 -1
- package/cjs/src/utils/processTrigger.spec.js +10 -0
- package/cjs/src/utils/processTrigger.spec.js.map +1 -1
- package/cjs/src/utils.d.ts.map +1 -1
- package/cjs/src/utils.js +1 -3
- package/cjs/src/utils.js.map +1 -1
- package/dist/src/auth.d.ts +0 -1
- package/dist/src/auth.d.ts.map +1 -1
- package/dist/src/auth.spec.d.ts +1 -11
- package/dist/src/auth.spec.d.ts.map +1 -1
- package/dist/src/authToken.d.ts +4 -0
- package/dist/src/authToken.d.ts.map +1 -1
- package/dist/src/css-variables.d.ts +46 -3
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +47 -14
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/base.d.ts +35 -33
- package/dist/src/embed/base.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +26 -0
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -0
- package/dist/src/embed/bodyless-conversation.spec.d.ts +2 -0
- package/dist/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
- package/dist/src/embed/conversation.d.ts +28 -0
- package/dist/src/embed/conversation.d.ts.map +1 -0
- package/dist/src/embed/conversation.spec.d.ts +2 -0
- package/dist/src/embed/conversation.spec.d.ts.map +1 -0
- package/dist/src/embed/liveboard.d.ts +49 -0
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +0 -13
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +3 -2
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/mixpanel-service.d.ts +4 -0
- package/dist/src/mixpanel-service.d.ts.map +1 -1
- package/dist/src/react/index.d.ts +39 -1
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/test/test-utils.d.ts +13 -0
- package/dist/src/test/test-utils.d.ts.map +1 -1
- package/dist/src/tokenizedFetch.d.ts.map +1 -1
- package/dist/src/types.d.ts +166 -22
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/authService/tokenizedAuthService.d.ts +0 -2
- package/dist/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/dist/src/utils/global-styles.spec.d.ts +2 -0
- package/dist/src/utils/global-styles.spec.d.ts.map +1 -0
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts +2 -0
- package/dist/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +23 -0
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/dist/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/dist/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/dist/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
- package/dist/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
- package/dist/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
- package/dist/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
- package/dist/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
- package/dist/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
- package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts +12 -0
- package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
- package/dist/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
- package/dist/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
- package/dist/src/utils/graphql/preview-service.d.ts +6 -0
- package/dist/src/utils/graphql/preview-service.d.ts.map +1 -1
- package/dist/src/utils/graphql/preview-service.spec.d.ts +2 -0
- package/dist/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
- package/dist/src/utils/liveboardService/liveboardService.d.ts +3 -0
- package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
- package/dist/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
- package/dist/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
- package/dist/src/utils/processTrigger.d.ts +1 -0
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +8087 -175
- package/dist/tsembed-react.js +8028 -170
- package/dist/tsembed.es.js +8981 -202
- package/dist/tsembed.js +8947 -221
- package/dist/visual-embed-sdk-react-full.d.ts +485 -98
- package/dist/visual-embed-sdk-react.d.ts +485 -98
- package/dist/visual-embed-sdk.d.ts +421 -97
- package/lib/package.json +12 -28
- package/lib/src/auth.d.ts +0 -1
- package/lib/src/auth.d.ts.map +1 -1
- package/lib/src/auth.js +1 -2
- package/lib/src/auth.js.map +1 -1
- package/lib/src/auth.spec.d.ts +1 -11
- package/lib/src/auth.spec.d.ts.map +1 -1
- package/lib/src/auth.spec.js +3 -12
- package/lib/src/auth.spec.js.map +1 -1
- package/lib/src/authToken.d.ts +4 -0
- package/lib/src/authToken.d.ts.map +1 -1
- package/lib/src/authToken.js +4 -0
- package/lib/src/authToken.js.map +1 -1
- package/lib/src/css-variables.d.ts +46 -3
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts +47 -14
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +10 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +32 -0
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/base.d.ts +35 -33
- package/lib/src/embed/base.d.ts.map +1 -1
- package/lib/src/embed/base.js +35 -33
- package/lib/src/embed/base.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +26 -0
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -0
- package/lib/src/embed/bodyless-conversation.js +66 -0
- package/lib/src/embed/bodyless-conversation.js.map +1 -0
- package/lib/src/embed/bodyless-conversation.spec.d.ts +2 -0
- package/lib/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
- package/lib/src/embed/bodyless-conversation.spec.js +122 -0
- package/lib/src/embed/bodyless-conversation.spec.js.map +1 -0
- package/lib/src/embed/conversation.d.ts +28 -0
- package/lib/src/embed/conversation.d.ts.map +1 -0
- package/lib/src/embed/conversation.js +30 -0
- package/lib/src/embed/conversation.js.map +1 -0
- package/lib/src/embed/conversation.spec.d.ts +2 -0
- package/lib/src/embed/conversation.spec.d.ts.map +1 -0
- package/lib/src/embed/conversation.spec.js +29 -0
- package/lib/src/embed/conversation.spec.js.map +1 -0
- package/lib/src/embed/embed.spec.js +0 -19
- package/lib/src/embed/embed.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +49 -0
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +21 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +43 -0
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/search.d.ts +0 -13
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +3 -2
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +10 -13
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +0 -9
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/index.d.ts +4 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/index.js +4 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/mixpanel-service.d.ts +4 -0
- package/lib/src/mixpanel-service.d.ts.map +1 -1
- package/lib/src/mixpanel-service.js +4 -0
- package/lib/src/mixpanel-service.js.map +1 -1
- package/lib/src/react/index.d.ts +39 -1
- package/lib/src/react/index.d.ts.map +1 -1
- package/lib/src/react/index.js +36 -0
- package/lib/src/react/index.js.map +1 -1
- package/lib/src/test/test-utils.d.ts +13 -0
- package/lib/src/test/test-utils.d.ts.map +1 -1
- package/lib/src/test/test-utils.js +38 -3
- package/lib/src/test/test-utils.js.map +1 -1
- package/lib/src/tokenizedFetch.d.ts.map +1 -1
- package/lib/src/tokenizedFetch.js +5 -1
- package/lib/src/tokenizedFetch.js.map +1 -1
- package/lib/src/types.d.ts +166 -22
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +143 -12
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/authService/authService.spec.js +11 -2
- package/lib/src/utils/authService/authService.spec.js.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.d.ts +0 -2
- package/lib/src/utils/authService/tokenizedAuthService.d.ts.map +1 -1
- package/lib/src/utils/authService/tokenizedAuthService.js +0 -2
- package/lib/src/utils/authService/tokenizedAuthService.js.map +1 -1
- package/lib/src/utils/global-styles.spec.d.ts +2 -0
- package/lib/src/utils/global-styles.spec.d.ts.map +1 -0
- package/lib/src/utils/global-styles.spec.js +19 -0
- package/lib/src/utils/global-styles.spec.js.map +1 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts +2 -0
- package/lib/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js +31 -1
- package/lib/src/utils/graphql/answerService/answer-queries.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +23 -0
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +76 -8
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +110 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts +3 -0
- package/lib/src/utils/graphql/conversationService/conversation-queries.d.ts.map +1 -0
- package/lib/src/utils/graphql/conversationService/conversation-queries.js +315 -0
- package/lib/src/utils/graphql/conversationService/conversation-queries.js.map +1 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.d.ts +12 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.d.ts.map +1 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.js +84 -0
- package/lib/src/utils/graphql/conversationService/conversation-service.js.map +1 -0
- package/lib/src/utils/graphql/graphql-request.d.ts.map +1 -1
- package/lib/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/lib/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/lib/src/utils/graphql/graphql-request.spec.js +45 -0
- package/lib/src/utils/graphql/graphql-request.spec.js.map +1 -0
- package/lib/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
- package/lib/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
- package/lib/src/utils/graphql/nlsService/conversation-queries.js +310 -0
- package/lib/src/utils/graphql/nlsService/conversation-queries.js.map +1 -0
- package/lib/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
- package/lib/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
- package/lib/src/utils/graphql/nlsService/conversation-service.js +70 -0
- package/lib/src/utils/graphql/nlsService/conversation-service.js.map +1 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-queries.js +400 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-queries.js.map +1 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts +12 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-service.js +50 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-service.spec.js +31 -0
- package/lib/src/utils/graphql/nlsService/nls-answer-service.spec.js.map +1 -0
- package/lib/src/utils/graphql/preview-service.d.ts +6 -0
- package/lib/src/utils/graphql/preview-service.d.ts.map +1 -1
- package/lib/src/utils/graphql/preview-service.js +6 -0
- package/lib/src/utils/graphql/preview-service.js.map +1 -1
- package/lib/src/utils/graphql/preview-service.spec.d.ts +2 -0
- package/lib/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
- package/lib/src/utils/graphql/preview-service.spec.js +18 -0
- package/lib/src/utils/graphql/preview-service.spec.js.map +1 -0
- 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 +12 -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 +50 -0
- package/lib/src/utils/graphql/spotterService/nls-answer-service.js.map +1 -0
- package/lib/src/utils/liveboardService/liveboardService.d.ts +3 -0
- package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
- package/lib/src/utils/liveboardService/liveboardService.js +46 -0
- package/lib/src/utils/liveboardService/liveboardService.js.map +1 -0
- package/lib/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
- package/lib/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
- package/lib/src/utils/liveboardService/liveboardService.spec.js +61 -0
- package/lib/src/utils/liveboardService/liveboardService.spec.js.map +1 -0
- package/lib/src/utils/processData.js +2 -2
- package/lib/src/utils/processData.js.map +1 -1
- package/lib/src/utils/processData.spec.js +15 -0
- package/lib/src/utils/processData.spec.js.map +1 -1
- package/lib/src/utils/processTrigger.d.ts +1 -0
- package/lib/src/utils/processTrigger.d.ts.map +1 -1
- package/lib/src/utils/processTrigger.js +1 -1
- package/lib/src/utils/processTrigger.js.map +1 -1
- package/lib/src/utils/processTrigger.spec.js +10 -0
- package/lib/src/utils/processTrigger.spec.js.map +1 -1
- package/lib/src/utils.d.ts.map +1 -1
- package/lib/src/utils.js +1 -3
- package/lib/src/utils.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +433 -97
- package/package.json +12 -28
- package/src/auth.spec.ts +3 -12
- package/src/auth.ts +1 -2
- package/src/authToken.ts +4 -0
- package/src/css-variables.ts +49 -3
- package/src/embed/app.spec.ts +47 -0
- package/src/embed/app.ts +54 -13
- package/src/embed/base.ts +35 -33
- package/src/embed/bodyless-conversation.spec.ts +141 -0
- package/src/embed/bodyless-conversation.ts +95 -0
- package/src/embed/conversation.spec.ts +46 -0
- package/src/embed/conversation.ts +58 -0
- package/src/embed/embed.spec.ts +0 -22
- package/src/embed/liveboard.spec.ts +62 -0
- package/src/embed/liveboard.ts +69 -0
- package/src/embed/search.ts +0 -13
- package/src/embed/ts-embed.spec.ts +0 -11
- package/src/embed/ts-embed.ts +13 -13
- package/src/index.ts +7 -0
- package/src/mixpanel-service.ts +4 -0
- package/src/react/index.tsx +89 -41
- package/src/test/test-utils.ts +46 -3
- package/src/tokenizedFetch.ts +5 -1
- package/src/types.ts +167 -21
- package/src/utils/authService/authService.spec.ts +11 -2
- package/src/utils/authService/tokenizedAuthService.ts +0 -2
- package/src/utils/global-styles.spec.ts +20 -0
- package/src/utils/graphql/answerService/answer-queries.ts +33 -1
- package/src/utils/graphql/answerService/answerService.spec.ts +131 -0
- package/src/utils/graphql/answerService/answerService.ts +102 -10
- package/src/utils/graphql/graphql-request.spec.ts +51 -0
- package/src/utils/graphql/graphql-request.ts +1 -1
- package/src/utils/graphql/nlsService/conversation-queries.ts +310 -0
- package/src/utils/graphql/nlsService/conversation-service.ts +81 -0
- package/src/utils/graphql/nlsService/nls-answer-queries.ts +399 -0
- package/src/utils/graphql/nlsService/nls-answer-service.spec.ts +35 -0
- package/src/utils/graphql/nlsService/nls-answer-service.ts +58 -0
- package/src/utils/graphql/preview-service.spec.ts +20 -0
- package/src/utils/graphql/preview-service.ts +6 -0
- package/src/utils/liveboardService/liveboardService.spec.ts +63 -0
- package/src/utils/liveboardService/liveboardService.ts +55 -0
- package/src/utils/processData.spec.ts +17 -0
- package/src/utils/processData.ts +2 -2
- package/src/utils/processTrigger.spec.ts +19 -0
- package/src/utils/processTrigger.ts +1 -1
- package/src/utils.ts +1 -3
- package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts +0 -2
- package/dist/src/embed/searchEmbed-basic-auth.spec.d.ts.map +0 -1
- package/src/embed/searchEmbed-basic-auth.spec.ts +0 -110
|
@@ -16,6 +16,7 @@ declare module '@thoughtspot/visual-embed-sdk' {
|
|
|
16
16
|
import { PinboardEmbed, LiveboardViewConfig, LiveboardEmbed } from '@thoughtspot/visual-embed-sdk/embed/liveboard';
|
|
17
17
|
import { SearchEmbed, SearchViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search';
|
|
18
18
|
import { SearchBarEmbed, SearchBarViewConfig } from '@thoughtspot/visual-embed-sdk/embed/search-bar';
|
|
19
|
+
import { BodylessConversation, BodylessConversationViewConfig } from '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation';
|
|
19
20
|
import { AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter } from '@thoughtspot/visual-embed-sdk/auth';
|
|
20
21
|
import { getSessionInfo } from '@thoughtspot/visual-embed-sdk/utils/sessionInfoService';
|
|
21
22
|
import { AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, EmbedConfig, PrefetchFeatures, FrameParams, DOMSelector, HomeLeftNavItem, HomepageModule, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, ContextMenuTriggerOptions, RuntimeParameter, LogLevel, VizPoint, CustomActionPayload } from '@thoughtspot/visual-embed-sdk/types';
|
|
@@ -25,7 +26,9 @@ declare module '@thoughtspot/visual-embed-sdk' {
|
|
|
25
26
|
import { getEmbedConfig } from '@thoughtspot/visual-embed-sdk/embed/embedConfig';
|
|
26
27
|
import { uploadMixpanelEvent, MIXPANEL_EVENT } from '@thoughtspot/visual-embed-sdk/mixpanel-service';
|
|
27
28
|
import { tokenizedFetch } from '@thoughtspot/visual-embed-sdk/tokenizedFetch';
|
|
28
|
-
|
|
29
|
+
import { getAnswerFromQuery } from '@thoughtspot/visual-embed-sdk/utils/graphql/nlsService/nls-answer-service';
|
|
30
|
+
import { createLiveboardWithAnswers } from '@thoughtspot/visual-embed-sdk/utils/liveboardService/liveboardService';
|
|
31
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, createLiveboardWithAnswers, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, BodylessConversation, BodylessConversationViewConfig, 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, };
|
|
29
32
|
export { resetCachedAuthToken } from '@thoughtspot/visual-embed-sdk/authToken';
|
|
30
33
|
}
|
|
31
34
|
|
|
@@ -72,7 +75,11 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
72
75
|
/**
|
|
73
76
|
* SpotIQ listing page
|
|
74
77
|
*/
|
|
75
|
-
SpotIQ = "insights"
|
|
78
|
+
SpotIQ = "insights",
|
|
79
|
+
/**
|
|
80
|
+
* Monitor Alerts Page
|
|
81
|
+
*/
|
|
82
|
+
Monitor = "monitor"
|
|
76
83
|
}
|
|
77
84
|
/**
|
|
78
85
|
* Define the initial state os column custom group accordions
|
|
@@ -283,19 +290,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
283
290
|
* ```
|
|
284
291
|
*/
|
|
285
292
|
fullHeight?: boolean;
|
|
286
|
-
/**
|
|
287
|
-
* Flag to control Data panel experience
|
|
288
|
-
* @default true
|
|
289
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
290
|
-
* @example
|
|
291
|
-
* ```js
|
|
292
|
-
* const embed = new AppEmbed('#tsEmbed', {
|
|
293
|
-
* ... // other options
|
|
294
|
-
* dataPanelV2: true,
|
|
295
|
-
* })
|
|
296
|
-
* ```
|
|
297
|
-
*/
|
|
298
|
-
dataPanelV2?: boolean;
|
|
299
293
|
/**
|
|
300
294
|
* Show or hide Liveboard header
|
|
301
295
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
@@ -429,6 +423,48 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
429
423
|
* @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
|
|
430
424
|
*/
|
|
431
425
|
homePageSearchBarMode?: HomePageSearchBarMode;
|
|
426
|
+
/**
|
|
427
|
+
* This flag is used to enable the compact header in liveboard
|
|
428
|
+
* @type {boolean}
|
|
429
|
+
* @default false
|
|
430
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
|
|
431
|
+
* @example
|
|
432
|
+
* ```js
|
|
433
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
434
|
+
* ... // other options
|
|
435
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
436
|
+
* })
|
|
437
|
+
* ```
|
|
438
|
+
*/
|
|
439
|
+
isLiveboardCompactHeaderEnabled?: boolean;
|
|
440
|
+
/**
|
|
441
|
+
* This flag is used to show/hide verified Icon in liveboard compact header
|
|
442
|
+
* @type {boolean}
|
|
443
|
+
* @default true
|
|
444
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
445
|
+
* @example
|
|
446
|
+
* ```js
|
|
447
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
448
|
+
* ... // other options
|
|
449
|
+
* showLiveboardVerifiedBadge: true,
|
|
450
|
+
* })
|
|
451
|
+
* ```
|
|
452
|
+
*/
|
|
453
|
+
showLiveboardVerifiedBadge?: boolean;
|
|
454
|
+
/**
|
|
455
|
+
* This flag is used to show/hide re-verify banner in liveboard compact header
|
|
456
|
+
* @type {boolean}
|
|
457
|
+
* @default true
|
|
458
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
459
|
+
* @example
|
|
460
|
+
* ```js
|
|
461
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
462
|
+
* ... // other options
|
|
463
|
+
* showLiveboardReverifyBanner: true,
|
|
464
|
+
* })
|
|
465
|
+
* ```
|
|
466
|
+
*/
|
|
467
|
+
showLiveboardReverifyBanner?: boolean;
|
|
432
468
|
}
|
|
433
469
|
/**
|
|
434
470
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -554,22 +590,23 @@ declare module '@thoughtspot/visual-embed-sdk/embed/base' {
|
|
|
554
590
|
/**
|
|
555
591
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
556
592
|
* @param data
|
|
593
|
+
* @returns imports TML data into ThoughtSpot
|
|
557
594
|
* @example
|
|
558
595
|
* ```js
|
|
559
|
-
*
|
|
560
|
-
* //Array of metadata Tmls
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}).then(result => {
|
|
568
|
-
|
|
569
|
-
}).catch(error => {
|
|
570
|
-
|
|
571
|
-
});
|
|
572
|
-
|
|
596
|
+
* executeTML({
|
|
597
|
+
* //Array of metadata Tmls in string format
|
|
598
|
+
* metadata_tmls: [
|
|
599
|
+
* "'\''{\"guid\":\"9bd202f5-d431-44bf-9a07-b4f7be372125\",
|
|
600
|
+
* \"liveboard\":{\"name\":\"Parameters Liveboard\"}}'\''"
|
|
601
|
+
* ],
|
|
602
|
+
* import_policy: 'PARTIAL', // Specifies the import policy for the TML import.
|
|
603
|
+
* create_new: false, // If selected, creates TML objects with new GUIDs.
|
|
604
|
+
* }).then(result => {
|
|
605
|
+
* console.log(result);
|
|
606
|
+
* }).catch(error => {
|
|
607
|
+
* console.error(error);
|
|
608
|
+
* });
|
|
609
|
+
*```
|
|
573
610
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
574
611
|
* @group Global methods
|
|
575
612
|
*/
|
|
@@ -578,27 +615,28 @@ declare module '@thoughtspot/visual-embed-sdk/embed/base' {
|
|
|
578
615
|
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
579
616
|
* format.
|
|
580
617
|
* @param data
|
|
618
|
+
* @returns exports TML data
|
|
581
619
|
* @example
|
|
582
620
|
* ```js
|
|
583
|
-
exportTML({
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
}).then(result => {
|
|
598
|
-
|
|
599
|
-
}).catch(error => {
|
|
600
|
-
|
|
601
|
-
});
|
|
621
|
+
* exportTML({
|
|
622
|
+
* metadata: [
|
|
623
|
+
* {
|
|
624
|
+
* type: "LIVEBOARD", //Metadata Type
|
|
625
|
+
* identifier: "9bd202f5-d431-44bf-9a07-b4f7be372125" //Metadata Id
|
|
626
|
+
* }
|
|
627
|
+
* ],
|
|
628
|
+
* export_associated: false,//indicates whether to export associated metadata objects
|
|
629
|
+
* export_fqn: false, //Adds FQNs of the referenced objects.For example, if you are
|
|
630
|
+
* //exporting a Liveboard and its associated objects, the API
|
|
631
|
+
* //returns the Liveboard TML data with the FQNs of the referenced
|
|
632
|
+
* //worksheet. If the exported TML data includes FQNs, you don't need
|
|
633
|
+
* //to manually add FQNs of the referenced objects during TML import.
|
|
634
|
+
* edoc_format: "JSON" //It takes JSON or YAML value
|
|
635
|
+
* }).then(result => {
|
|
636
|
+
* console.log(result);
|
|
637
|
+
* }).catch(error => {
|
|
638
|
+
* console.error(error);
|
|
639
|
+
* });
|
|
602
640
|
* ```
|
|
603
641
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
604
642
|
* @group Global methods
|
|
@@ -878,6 +916,48 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
878
916
|
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
879
917
|
*/
|
|
880
918
|
showPreviewLoader?: boolean;
|
|
919
|
+
/**
|
|
920
|
+
* This flag is used to enable the compact header in liveboard
|
|
921
|
+
* @type {boolean}
|
|
922
|
+
* @default false
|
|
923
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
|
|
924
|
+
* @example
|
|
925
|
+
* ```js
|
|
926
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
927
|
+
* ... // other options
|
|
928
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
929
|
+
* })
|
|
930
|
+
* ```
|
|
931
|
+
*/
|
|
932
|
+
isLiveboardCompactHeaderEnabled?: boolean;
|
|
933
|
+
/**
|
|
934
|
+
* This flag is used to show/hide verified Icon in liveboard compact header
|
|
935
|
+
* @type {boolean}
|
|
936
|
+
* @default true
|
|
937
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
938
|
+
* @example
|
|
939
|
+
* ```js
|
|
940
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
941
|
+
* ... // other options
|
|
942
|
+
* showLiveboardVerifiedBadge: true,
|
|
943
|
+
* })
|
|
944
|
+
* ```
|
|
945
|
+
*/
|
|
946
|
+
showLiveboardVerifiedBadge?: boolean;
|
|
947
|
+
/**
|
|
948
|
+
* This flag is used to show/hide re-verify banner in liveboard compact header
|
|
949
|
+
* @type {boolean}
|
|
950
|
+
* @default true
|
|
951
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
952
|
+
* @example
|
|
953
|
+
* ```js
|
|
954
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
955
|
+
* ... // other options
|
|
956
|
+
* showLiveboardReverifyBanner: true,
|
|
957
|
+
* })
|
|
958
|
+
* ```
|
|
959
|
+
*/
|
|
960
|
+
showLiveboardReverifyBanner?: boolean;
|
|
881
961
|
}
|
|
882
962
|
/**
|
|
883
963
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -917,6 +997,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
917
997
|
*/
|
|
918
998
|
render(): Promise<LiveboardEmbed>;
|
|
919
999
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
1000
|
+
/**
|
|
1001
|
+
* Returns the full url of the liveboard/viz which can be used to open
|
|
1002
|
+
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
1003
|
+
*
|
|
1004
|
+
* @returns url string
|
|
1005
|
+
*/
|
|
1006
|
+
getLiveboardUrl(): string;
|
|
920
1007
|
}
|
|
921
1008
|
/**
|
|
922
1009
|
* @hidden
|
|
@@ -1127,19 +1214,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
1127
1214
|
* ```
|
|
1128
1215
|
*/
|
|
1129
1216
|
hideSearchBar?: boolean;
|
|
1130
|
-
/**
|
|
1131
|
-
* Flag to control Data panel experience
|
|
1132
|
-
* @default true
|
|
1133
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1134
|
-
* @example
|
|
1135
|
-
* ```js
|
|
1136
|
-
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1137
|
-
* ... // other options
|
|
1138
|
-
* dataPanelV2:false,
|
|
1139
|
-
* })
|
|
1140
|
-
* ```
|
|
1141
|
-
*/
|
|
1142
|
-
dataPanelV2?: boolean;
|
|
1143
1217
|
/**
|
|
1144
1218
|
* Flag to set if last selected dataSource should be used
|
|
1145
1219
|
* @version: SDK: 1.24.0
|
|
@@ -1319,6 +1393,32 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
|
|
|
1319
1393
|
}
|
|
1320
1394
|
}
|
|
1321
1395
|
|
|
1396
|
+
declare module '@thoughtspot/visual-embed-sdk/embed/bodyless-conversation' {
|
|
1397
|
+
import { ViewConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
1398
|
+
export interface BodylessConversationViewConfig extends ViewConfig {
|
|
1399
|
+
/**
|
|
1400
|
+
* The ID of the worksheet to use for the conversation.
|
|
1401
|
+
*/
|
|
1402
|
+
worksheetId: string;
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* Create a conversation embed, which can be integrated inside
|
|
1406
|
+
* chatbots or other conversational interfaces.
|
|
1407
|
+
* @group Embed components
|
|
1408
|
+
* @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
|
|
1409
|
+
*/
|
|
1410
|
+
export class BodylessConversation {
|
|
1411
|
+
constructor(viewConfig: BodylessConversationViewConfig);
|
|
1412
|
+
sendMessage(userMessage: string): Promise<{
|
|
1413
|
+
error: any;
|
|
1414
|
+
container?: undefined;
|
|
1415
|
+
} | {
|
|
1416
|
+
container: HTMLDivElement;
|
|
1417
|
+
error?: undefined;
|
|
1418
|
+
}>;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1322
1422
|
declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
1323
1423
|
import EventEmitter from 'eventemitter3';
|
|
1324
1424
|
import { EmbedConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
@@ -1447,7 +1547,6 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
|
1447
1547
|
* Services to be called after the login is successful,
|
|
1448
1548
|
* This should be called after the cookie is set for cookie auth or
|
|
1449
1549
|
* after the token is set for cookieless.
|
|
1450
|
-
*
|
|
1451
1550
|
* @return {Promise<void>}
|
|
1452
1551
|
* @example
|
|
1453
1552
|
* ```js
|
|
@@ -1991,13 +2090,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1991
2090
|
* @default false
|
|
1992
2091
|
*/
|
|
1993
2092
|
queueMultiRenders?: boolean;
|
|
1994
|
-
/**
|
|
1995
|
-
* Dynamic CSS URL to be injected in the loaded application.
|
|
1996
|
-
* You would also need to set `style-src` in the CSP settings.
|
|
1997
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1998
|
-
* @default ''
|
|
1999
|
-
*/
|
|
2000
|
-
customCssUrl?: string;
|
|
2001
2093
|
/**
|
|
2002
2094
|
* [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
|
|
2003
2095
|
* additional call. This is slower and should be avoided. Listen to the
|
|
@@ -2126,6 +2218,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2126
2218
|
* @version SDK: 1.28.5 | Thoughtspot: *
|
|
2127
2219
|
*/
|
|
2128
2220
|
disableTokenVerification?: boolean;
|
|
2221
|
+
/**
|
|
2222
|
+
* This flag is used to disable showing the login failure page in the embedded app.
|
|
2223
|
+
*
|
|
2224
|
+
* @version SDK 1.32.3 | Thoughtspot: *
|
|
2225
|
+
*/
|
|
2226
|
+
disableLoginFailurePage?: boolean;
|
|
2129
2227
|
}
|
|
2130
2228
|
export interface LayoutConfig {
|
|
2131
2229
|
}
|
|
@@ -2248,11 +2346,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2248
2346
|
*/
|
|
2249
2347
|
visibleActions?: Action[];
|
|
2250
2348
|
/**
|
|
2251
|
-
* Show alert messages and toast messages in the embedded
|
|
2349
|
+
* Show alert messages and toast messages in the embedded
|
|
2350
|
+
* view in full app embed.
|
|
2252
2351
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2253
2352
|
* @example
|
|
2254
2353
|
* ```js
|
|
2255
|
-
* const embed = new
|
|
2354
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
2256
2355
|
* ... // other options
|
|
2257
2356
|
* showAlerts:true,
|
|
2258
2357
|
* })
|
|
@@ -2573,6 +2672,19 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2573
2672
|
* @version SDK: 1.32.1 | ThoughtSpot: 10.3.0.cl
|
|
2574
2673
|
*/
|
|
2575
2674
|
disableRedirectionLinksInNewTab?: boolean;
|
|
2675
|
+
/**
|
|
2676
|
+
* Flag to control Data panel experience
|
|
2677
|
+
* @default true
|
|
2678
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
2679
|
+
* @example
|
|
2680
|
+
* ```js
|
|
2681
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2682
|
+
* ... // other options
|
|
2683
|
+
* dataPanelV2: true,
|
|
2684
|
+
* })
|
|
2685
|
+
* ```
|
|
2686
|
+
*/
|
|
2687
|
+
dataPanelV2?: boolean;
|
|
2576
2688
|
}
|
|
2577
2689
|
/**
|
|
2578
2690
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -2769,6 +2881,28 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2769
2881
|
* console.log('Drilldown event', drilldown);
|
|
2770
2882
|
* }));
|
|
2771
2883
|
* ```
|
|
2884
|
+
*
|
|
2885
|
+
* If you are using React components for embedding, you can register to any
|
|
2886
|
+
* events from the `EmbedEvent` list by using the `on<EventName>` convention.
|
|
2887
|
+
* For example,`onAlert`, `onCopyToClipboard` and so on.
|
|
2888
|
+
*
|
|
2889
|
+
* @example
|
|
2890
|
+
* ```js
|
|
2891
|
+
* // ...
|
|
2892
|
+
* const MyComponent = ({ dataSources }) => {
|
|
2893
|
+
* const onLoad = () => {
|
|
2894
|
+
* console.log(EmbedEvent.Load, {});
|
|
2895
|
+
* };
|
|
2896
|
+
*
|
|
2897
|
+
* return (
|
|
2898
|
+
* <SearchEmbed
|
|
2899
|
+
* dataSources={dataSources}
|
|
2900
|
+
* onLoad = {logEvent("Load")}
|
|
2901
|
+
* />
|
|
2902
|
+
* );
|
|
2903
|
+
* };
|
|
2904
|
+
* ```
|
|
2905
|
+
*
|
|
2772
2906
|
* @group Events
|
|
2773
2907
|
*/
|
|
2774
2908
|
export enum EmbedEvent {
|
|
@@ -3637,21 +3771,61 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3637
3771
|
*/
|
|
3638
3772
|
Rename = "rename",
|
|
3639
3773
|
/**
|
|
3640
|
-
* Emitted
|
|
3774
|
+
* Emitted if the user wants to intercept the search execution
|
|
3775
|
+
* and implement logic to decide whether to run the search or not
|
|
3776
|
+
*
|
|
3777
|
+
* Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
|
|
3778
|
+
* for this embed event to get emitted.
|
|
3779
|
+
*
|
|
3780
|
+
* @param: payload
|
|
3781
|
+
* @param: responder
|
|
3782
|
+
* Contains elements that lets developers define whether ThoughtSpot
|
|
3783
|
+
* will run the search or not, and if not, which error message to provide.
|
|
3784
|
+
*
|
|
3785
|
+
* execute: When execute returns true, the search will be run.
|
|
3786
|
+
* When execute returns false, the search will not be executed.
|
|
3641
3787
|
*
|
|
3642
|
-
*
|
|
3643
|
-
*
|
|
3788
|
+
* error: Developers can customize the user facing message when execute is
|
|
3789
|
+
* set to false using the error parameter in responder
|
|
3644
3790
|
*
|
|
3791
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3792
|
+
*
|
|
3793
|
+
* @example
|
|
3645
3794
|
*```js
|
|
3646
|
-
*
|
|
3795
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
3647
3796
|
* (payload, responder) => {
|
|
3648
3797
|
* responder({
|
|
3649
3798
|
* data: {
|
|
3650
|
-
* execute:
|
|
3651
|
-
*
|
|
3799
|
+
* execute:false,
|
|
3800
|
+
* error: {
|
|
3801
|
+
* //Provide a custom error message to explain to your end user
|
|
3802
|
+
* //why their search did not run
|
|
3803
|
+
* errorText: "This search query cannot be run.
|
|
3804
|
+
* Please contact your administrator for more details."
|
|
3805
|
+
* }
|
|
3806
|
+
* }})
|
|
3807
|
+
* })
|
|
3808
|
+
* ```
|
|
3809
|
+
*
|
|
3810
|
+
*```js
|
|
3811
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
3812
|
+
* (payload, responder) => {
|
|
3813
|
+
* const query = payload.data.data.answer.search_query
|
|
3814
|
+
* responder({
|
|
3815
|
+
* data: {
|
|
3816
|
+
* // returns true as long as the query does not include
|
|
3817
|
+
* // both the 'sales' AND the 'county' column
|
|
3818
|
+
* execute: !(query.includes("sales")&&query.includes("county")),
|
|
3819
|
+
* error: {
|
|
3820
|
+
* //Provide a custom error message to explain to your end user
|
|
3821
|
+
* // why their search did not run, and which searches are accepted by your custom logic.
|
|
3822
|
+
* errorText: "You can't use this query :" + query + ".
|
|
3823
|
+
* The 'sales' measures can never be used at the 'county' level.
|
|
3824
|
+
* Please try another measure, or remove 'county' from your search."
|
|
3825
|
+
* }
|
|
3826
|
+
* }})
|
|
3652
3827
|
* })
|
|
3653
3828
|
*```
|
|
3654
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3655
3829
|
*/
|
|
3656
3830
|
OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
|
|
3657
3831
|
/**
|
|
@@ -3669,7 +3843,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3669
3843
|
}
|
|
3670
3844
|
/**
|
|
3671
3845
|
* Event types that can be triggered by the host application
|
|
3672
|
-
* to the embedded ThoughtSpot app
|
|
3846
|
+
* to the embedded ThoughtSpot app.
|
|
3673
3847
|
*
|
|
3674
3848
|
* To trigger an event use the corresponding
|
|
3675
3849
|
* {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
|
|
@@ -3686,6 +3860,40 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3686
3860
|
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
|
|
3687
3861
|
* ]);
|
|
3688
3862
|
* ```
|
|
3863
|
+
* @example
|
|
3864
|
+
* If using React components to embed, use the format shown in this example:
|
|
3865
|
+
*
|
|
3866
|
+
* ```js
|
|
3867
|
+
* const selectVizs = () => {
|
|
3868
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, [
|
|
3869
|
+
* "715e4613-c891-4884-be44-aa8d13701c06",
|
|
3870
|
+
* "3f84d633-e325-44b2-be25-c6650e5a49cf"
|
|
3871
|
+
* ]);
|
|
3872
|
+
* };
|
|
3873
|
+
* ```
|
|
3874
|
+
*
|
|
3875
|
+
*
|
|
3876
|
+
* You can also attach an Embed event to a Host event to trigger
|
|
3877
|
+
* a specific action as shown in this example:
|
|
3878
|
+
*
|
|
3879
|
+
* @example
|
|
3880
|
+
* ```js
|
|
3881
|
+
* const EmbeddedComponent = () => {
|
|
3882
|
+
* const embedRef = useRef(null); // import { useRef } from react
|
|
3883
|
+
* const onLiveboardRendered = () => {
|
|
3884
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
3885
|
+
* };
|
|
3886
|
+
*
|
|
3887
|
+
* return (
|
|
3888
|
+
* <LiveboardEmbed
|
|
3889
|
+
* ref={embedRef}
|
|
3890
|
+
* liveboardId="<liveboard-guid>"
|
|
3891
|
+
* onLiveboardRendered={onLiveboardRendered}
|
|
3892
|
+
* />
|
|
3893
|
+
* );
|
|
3894
|
+
* }
|
|
3895
|
+
* ```
|
|
3896
|
+
*
|
|
3689
3897
|
* @group Events
|
|
3690
3898
|
*/
|
|
3691
3899
|
export enum HostEvent {
|
|
@@ -3769,6 +3977,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3769
3977
|
* @hidden
|
|
3770
3978
|
*/
|
|
3771
3979
|
Reload = "reload",
|
|
3980
|
+
/**
|
|
3981
|
+
* Get current iframe src
|
|
3982
|
+
* @example
|
|
3983
|
+
* ```js
|
|
3984
|
+
* const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
|
|
3985
|
+
* ```
|
|
3986
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
3987
|
+
*/
|
|
3988
|
+
GetIframeUrl = "GetIframeUrl",
|
|
3772
3989
|
/**
|
|
3773
3990
|
* Display specific visualizations on a Liveboard.
|
|
3774
3991
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
@@ -4370,10 +4587,23 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4370
4587
|
* filter: {
|
|
4371
4588
|
* column: "item type",
|
|
4372
4589
|
* oper: "IN",
|
|
4373
|
-
* values: ["bags","shirts"]
|
|
4590
|
+
* values: ["bags","shirts"]
|
|
4591
|
+
* }
|
|
4592
|
+
* });
|
|
4593
|
+
* ```
|
|
4594
|
+
* @example
|
|
4595
|
+
* ```js
|
|
4596
|
+
*
|
|
4597
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
4598
|
+
* filter: {
|
|
4599
|
+
* column: "date",
|
|
4600
|
+
* oper: "EQ",
|
|
4601
|
+
* values: ["JULY","2023"],
|
|
4602
|
+
* type: "MONTH_YEAR"
|
|
4374
4603
|
* }
|
|
4375
4604
|
* });
|
|
4376
4605
|
* ```
|
|
4606
|
+
*
|
|
4377
4607
|
* @example
|
|
4378
4608
|
*
|
|
4379
4609
|
* ```js
|
|
@@ -4391,7 +4621,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4391
4621
|
* {
|
|
4392
4622
|
* column: "Date",
|
|
4393
4623
|
* oper: 'EQ',
|
|
4394
|
-
* values: ["
|
|
4624
|
+
* values: ["2023-07-31"],
|
|
4625
|
+
* types: "EXACT_DATE"
|
|
4395
4626
|
* }]
|
|
4396
4627
|
* });
|
|
4397
4628
|
* ```
|
|
@@ -4577,7 +4808,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4577
4808
|
ViewPortHeight = "viewPortHeight",
|
|
4578
4809
|
ViewPortWidth = "viewPortWidth",
|
|
4579
4810
|
VisibleActions = "visibleAction",
|
|
4580
|
-
CustomCSSUrl = "customCssUrl",
|
|
4581
4811
|
DisableLoginRedirect = "disableLoginRedirect",
|
|
4582
4812
|
visibleVizs = "pinboardVisibleVizs",
|
|
4583
4813
|
LiveboardV2Enabled = "isPinboardV2Enabled",
|
|
@@ -4634,7 +4864,10 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4634
4864
|
IsOnBeforeGetVizDataInterceptEnabled = "isOnBeforeGetVizDataInterceptEnabled",
|
|
4635
4865
|
FocusSearchBarOnRender = "focusSearchBarOnRender",
|
|
4636
4866
|
DisableRedirectionLinksInNewTab = "disableRedirectionLinksInNewTab",
|
|
4637
|
-
HomePageSearchBarMode = "homePageSearchBarMode"
|
|
4867
|
+
HomePageSearchBarMode = "homePageSearchBarMode",
|
|
4868
|
+
ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
|
|
4869
|
+
ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
|
|
4870
|
+
LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled"
|
|
4638
4871
|
}
|
|
4639
4872
|
/**
|
|
4640
4873
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -5556,7 +5789,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5556
5789
|
*
|
|
5557
5790
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
5558
5791
|
*/
|
|
5559
|
-
CreateLiveboard = "
|
|
5792
|
+
CreateLiveboard = "createLiveboard",
|
|
5560
5793
|
/**
|
|
5561
5794
|
* Action ID for to hide Verified Liveboard Banner
|
|
5562
5795
|
* @example
|
|
@@ -5647,6 +5880,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5647
5880
|
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5648
5881
|
*/
|
|
5649
5882
|
UnsubscribeScheduleHomepage = "unsubscribeScheduleHomepage",
|
|
5883
|
+
/**
|
|
5884
|
+
* The **Manage Tags** action on Homepage Favourite Module.
|
|
5885
|
+
*
|
|
5886
|
+
* @example
|
|
5887
|
+
* ```js
|
|
5888
|
+
* disabledActions: [Action.ManageTags]
|
|
5889
|
+
* ```
|
|
5890
|
+
* @version SDK : 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5891
|
+
*/
|
|
5892
|
+
ManageTags = "manageTags",
|
|
5650
5893
|
/**
|
|
5651
5894
|
* Action ID for delete schedule action on schedule on homepage
|
|
5652
5895
|
* @example
|
|
@@ -5822,9 +6065,12 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
5822
6065
|
*/
|
|
5823
6066
|
'--ts-var-root-text-transform'?: string;
|
|
5824
6067
|
/**
|
|
5825
|
-
*
|
|
5826
|
-
*
|
|
5827
|
-
*
|
|
6068
|
+
* Font color of the text on toggle buttons such as
|
|
6069
|
+
* **All**, **Answers**, and **Liveboards** on the Home page (Classic experience),
|
|
6070
|
+
* the text color of the chart and table tiles on Home page (New modular Homepage experience),
|
|
6071
|
+
* and title text on the AI-generated charts and tables.
|
|
6072
|
+
* The default color code is #2770EF.
|
|
6073
|
+
*
|
|
5828
6074
|
*/
|
|
5829
6075
|
'--ts-var-application-color'?: string;
|
|
5830
6076
|
/**
|
|
@@ -5935,6 +6181,10 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
5935
6181
|
* Background color of the primary buttons on hover.
|
|
5936
6182
|
*/
|
|
5937
6183
|
'--ts-var-button--primary--hover-background'?: string;
|
|
6184
|
+
/**
|
|
6185
|
+
* Backgroud color of the primary buttons when active.
|
|
6186
|
+
*/
|
|
6187
|
+
'--ts-var-button--primary--active-background'?: string;
|
|
5938
6188
|
/**
|
|
5939
6189
|
* Font color of the text on the secondary buttons.
|
|
5940
6190
|
*/
|
|
@@ -5951,6 +6201,10 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
5951
6201
|
* Background color of the secondary button on hover.
|
|
5952
6202
|
*/
|
|
5953
6203
|
'--ts-var-button--secondary--hover-background'?: string;
|
|
6204
|
+
/**
|
|
6205
|
+
* Backgroud color of the secondary buttons when active.
|
|
6206
|
+
*/
|
|
6207
|
+
'--ts-var-button--secondary--active-background'?: string;
|
|
5954
6208
|
/**
|
|
5955
6209
|
* Font color of the tertiary button. For example, the *Undo*, *Redo*, and *Reset*
|
|
5956
6210
|
* buttons on the *Search* page.
|
|
@@ -5964,6 +6218,10 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
5964
6218
|
* Background color of the tertiary button when a user hovers over these buttons.
|
|
5965
6219
|
*/
|
|
5966
6220
|
'--ts-var-button--tertiary--hover-background'?: string;
|
|
6221
|
+
/**
|
|
6222
|
+
* Backgroud color of the tertiary buttons when active.
|
|
6223
|
+
*/
|
|
6224
|
+
'--ts-var-button--tertiary--active-background'?: string;
|
|
5967
6225
|
/**
|
|
5968
6226
|
* Font color of the title text of a visualization or Answer.
|
|
5969
6227
|
*/
|
|
@@ -6139,6 +6397,34 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
6139
6397
|
* Background for favorite carousel find your favorites card in modular home.
|
|
6140
6398
|
*/
|
|
6141
6399
|
'--ts-var-home-favorite-suggestion-card-background'?: string;
|
|
6400
|
+
/**
|
|
6401
|
+
* Border color of checkbox in error state.
|
|
6402
|
+
*/
|
|
6403
|
+
'--ts-var-checkbox-error-border'?: string;
|
|
6404
|
+
/**
|
|
6405
|
+
* Border color of checkbox.
|
|
6406
|
+
*/
|
|
6407
|
+
'--ts-var-checkbox-border-color'?: string;
|
|
6408
|
+
/**
|
|
6409
|
+
* Border color of checkbox in hover state.
|
|
6410
|
+
*/
|
|
6411
|
+
'--ts-var-checkbox-hover-border'?: string;
|
|
6412
|
+
/**
|
|
6413
|
+
* Border and font color of checkbox in active state.
|
|
6414
|
+
*/
|
|
6415
|
+
'--ts-var-checkbox-active-color'?: string;
|
|
6416
|
+
/**
|
|
6417
|
+
* Border color and font color of checkbox in checked state.
|
|
6418
|
+
*/
|
|
6419
|
+
'--ts-var-checkbox-checked-color'?: string;
|
|
6420
|
+
/**
|
|
6421
|
+
* Border and font color of checkbox in disabled state.
|
|
6422
|
+
*/
|
|
6423
|
+
'--ts-var-checkbox-checked-disabled'?: string;
|
|
6424
|
+
/**
|
|
6425
|
+
* Background color of checkbox.
|
|
6426
|
+
*/
|
|
6427
|
+
'--ts-var-checkbox-background-color'?: string;
|
|
6142
6428
|
}
|
|
6143
6429
|
}
|
|
6144
6430
|
|
|
@@ -6387,6 +6673,7 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
6387
6673
|
* @returns
|
|
6388
6674
|
*/
|
|
6389
6675
|
addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter['values']): Promise<any>;
|
|
6676
|
+
getSQLQuery(): Promise<string>;
|
|
6390
6677
|
/**
|
|
6391
6678
|
* Fetch data from the answer.
|
|
6392
6679
|
* @param offset
|
|
@@ -6405,6 +6692,16 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
6405
6692
|
* @returns Response
|
|
6406
6693
|
*/
|
|
6407
6694
|
fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
|
|
6695
|
+
/**
|
|
6696
|
+
* Fetch the data for the answer as a PNG blob. This might be
|
|
6697
|
+
* quicker for larger data.
|
|
6698
|
+
* @param userLocale
|
|
6699
|
+
* @param includeInfo
|
|
6700
|
+
* @param omitBackground Omit the background in the PNG
|
|
6701
|
+
* @param deviceScaleFactor The scale factor for the PNG
|
|
6702
|
+
* @return Response
|
|
6703
|
+
*/
|
|
6704
|
+
fetchPNGBlob(userLocale?: string, includeInfo?: boolean, omitBackground?: boolean, deviceScaleFactor?: number): Promise<Response>;
|
|
6408
6705
|
/**
|
|
6409
6706
|
* Just get the internal URL for this answer's data
|
|
6410
6707
|
* as a CSV blob.
|
|
@@ -6413,6 +6710,14 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
6413
6710
|
* @returns
|
|
6414
6711
|
*/
|
|
6415
6712
|
getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
|
|
6713
|
+
/**
|
|
6714
|
+
* Just get the internal URL for this answer's data
|
|
6715
|
+
* as a PNG blob.
|
|
6716
|
+
* @param userLocale
|
|
6717
|
+
* @param omitBackground
|
|
6718
|
+
* @param deviceScaleFactor
|
|
6719
|
+
*/
|
|
6720
|
+
getFetchPNGBlobUrl(userLocale?: string, omitBackground?: boolean, deviceScaleFactor?: number): string;
|
|
6416
6721
|
/**
|
|
6417
6722
|
* Get underlying data given a point and the output column names.
|
|
6418
6723
|
* In case of a context menu action, the selectedPoints are
|
|
@@ -6444,6 +6749,9 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
6444
6749
|
*/
|
|
6445
6750
|
getSession(): SessionInterface;
|
|
6446
6751
|
getAnswer(): Promise<any>;
|
|
6752
|
+
getTML(): Promise<any>;
|
|
6753
|
+
addDisplayedVizToLiveboard(liveboardId: string): Promise<any>;
|
|
6754
|
+
setTMLOverride(override: any): void;
|
|
6447
6755
|
}
|
|
6448
6756
|
}
|
|
6449
6757
|
|
|
@@ -6471,6 +6779,10 @@ declare module '@thoughtspot/visual-embed-sdk/mixpanel-service' {
|
|
|
6471
6779
|
export const EndPoints: {
|
|
6472
6780
|
CONFIG: string;
|
|
6473
6781
|
};
|
|
6782
|
+
/**
|
|
6783
|
+
* Enum of mixpanel events
|
|
6784
|
+
* @hidden
|
|
6785
|
+
*/
|
|
6474
6786
|
export const MIXPANEL_EVENT: {
|
|
6475
6787
|
VISUAL_SDK_RENDER_START: string;
|
|
6476
6788
|
VISUAL_SDK_CALLED_INIT: string;
|
|
@@ -6519,18 +6831,41 @@ declare module '@thoughtspot/visual-embed-sdk/tokenizedFetch' {
|
|
|
6519
6831
|
export const tokenizedFetch: typeof fetch;
|
|
6520
6832
|
}
|
|
6521
6833
|
|
|
6834
|
+
declare module '@thoughtspot/visual-embed-sdk/utils/graphql/nlsService/nls-answer-service' {
|
|
6835
|
+
import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
|
|
6836
|
+
/**
|
|
6837
|
+
*
|
|
6838
|
+
* @param query string
|
|
6839
|
+
* @param worksheetId string
|
|
6840
|
+
* @returns answerService AnswerService
|
|
6841
|
+
*/
|
|
6842
|
+
export const getAnswerFromQuery: (query: string, worksheetId: string) => Promise<{
|
|
6843
|
+
answer: AnswerService;
|
|
6844
|
+
suggestion: any;
|
|
6845
|
+
}>;
|
|
6846
|
+
}
|
|
6847
|
+
|
|
6848
|
+
declare module '@thoughtspot/visual-embed-sdk/utils/liveboardService/liveboardService' {
|
|
6849
|
+
import { AnswerService } from '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answerService';
|
|
6850
|
+
export const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
|
|
6851
|
+
}
|
|
6852
|
+
|
|
6522
6853
|
declare module '@thoughtspot/visual-embed-sdk/authToken' {
|
|
6523
6854
|
import { EmbedConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
6855
|
+
/**
|
|
6856
|
+
*
|
|
6857
|
+
* @param embedConfig
|
|
6858
|
+
*/
|
|
6524
6859
|
export function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
6525
6860
|
/**
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6861
|
+
* Resets the auth token and a new token will be fetched on the next request.
|
|
6862
|
+
* @example
|
|
6863
|
+
* ```js
|
|
6864
|
+
* resetCachedAuthToken();
|
|
6865
|
+
* ```
|
|
6866
|
+
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
6867
|
+
* @group Authentication / Init
|
|
6868
|
+
*/
|
|
6534
6869
|
export const resetCachedAuthToken: () => void;
|
|
6535
6870
|
}
|
|
6536
6871
|
|
|
@@ -6729,7 +7064,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
6729
7064
|
* THOUGHTSPOT URL params starts with a prefix "ts-"
|
|
6730
7065
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
6731
7066
|
*/
|
|
6732
|
-
getThoughtSpotPostUrlParams(
|
|
7067
|
+
getThoughtSpotPostUrlParams(additionalParams?: {
|
|
7068
|
+
[key: string]: string | number;
|
|
7069
|
+
}): string;
|
|
6733
7070
|
/**
|
|
6734
7071
|
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
6735
7072
|
* @version SDK: 1.19.1 | ThoughtSpot: *
|
|
@@ -6820,7 +7157,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
6820
7157
|
on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
|
|
6821
7158
|
/**
|
|
6822
7159
|
* Only for testing purposes.
|
|
6823
|
-
*
|
|
6824
7160
|
* @hidden
|
|
6825
7161
|
*/
|
|
6826
7162
|
test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
|