@thoughtspot/visual-embed-sdk 1.33.0-alpha.1 → 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 +7 -7
- 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 +9 -7
- 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 +58 -14
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +22 -4
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +62 -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 +37 -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 +14 -13
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +6 -4
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/search.spec.js +9 -9
- package/cjs/src/embed/search.spec.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +4 -3
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +20 -19
- 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/errors.d.ts +11 -0
- package/cjs/src/errors.d.ts.map +1 -1
- package/cjs/src/errors.js +11 -0
- package/cjs/src/errors.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 +6 -1
- 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/react/index.spec.js +1 -1
- package/cjs/src/react/index.spec.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 +320 -27
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +271 -15
- 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.d.ts.map +1 -1
- package/cjs/src/utils/processData.js +4 -3
- 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/reporting.d.ts +16 -0
- package/cjs/src/utils/reporting.d.ts.map +1 -0
- package/cjs/src/utils/reporting.js +68 -0
- package/cjs/src/utils/reporting.js.map +1 -0
- package/cjs/src/utils/reporting.spec.d.ts +2 -0
- package/cjs/src/utils/reporting.spec.d.ts.map +1 -0
- package/cjs/src/utils/reporting.spec.js +76 -0
- package/cjs/src/utils/reporting.spec.js.map +1 -0
- 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 +58 -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 +14 -13
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +4 -3
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/errors.d.ts +11 -0
- package/dist/src/errors.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 +320 -27
- 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/processData.d.ts.map +1 -1
- package/dist/src/utils/processTrigger.d.ts +1 -0
- package/dist/src/utils/processTrigger.d.ts.map +1 -1
- package/dist/src/utils/reporting.d.ts +16 -0
- package/dist/src/utils/reporting.d.ts.map +1 -0
- package/dist/src/utils/reporting.spec.d.ts +2 -0
- package/dist/src/utils/reporting.spec.d.ts.map +1 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +8268 -202
- package/dist/tsembed-react.js +8216 -204
- package/dist/tsembed.es.js +9217 -238
- package/dist/tsembed.js +9162 -236
- package/dist/visual-embed-sdk-react-full.d.ts +665 -104
- package/dist/visual-embed-sdk-react.d.ts +665 -104
- package/dist/visual-embed-sdk.d.ts +601 -103
- 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 +7 -7
- 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 +9 -7
- 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 +58 -14
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +21 -3
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +63 -1
- 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 +37 -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 +14 -13
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +6 -4
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/search.spec.js +9 -9
- package/lib/src/embed/search.spec.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +4 -3
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +20 -19
- 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/errors.d.ts +11 -0
- package/lib/src/errors.d.ts.map +1 -1
- package/lib/src/errors.js +11 -0
- package/lib/src/errors.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 +6 -1
- 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/react/index.spec.js +1 -1
- package/lib/src/react/index.spec.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 +320 -27
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +271 -15
- 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.d.ts.map +1 -1
- package/lib/src/utils/processData.js +4 -3
- 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/reporting.d.ts +16 -0
- package/lib/src/utils/reporting.d.ts.map +1 -0
- package/lib/src/utils/reporting.js +62 -0
- package/lib/src/utils/reporting.js.map +1 -0
- package/lib/src/utils/reporting.spec.d.ts +2 -0
- package/lib/src/utils/reporting.spec.d.ts.map +1 -0
- package/lib/src/utils/reporting.spec.js +74 -0
- package/lib/src/utils/reporting.spec.js.map +1 -0
- 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 +613 -103
- package/package.json +12 -28
- package/src/auth.spec.ts +3 -12
- package/src/auth.ts +7 -7
- package/src/authToken.ts +9 -9
- package/src/css-variables.ts +49 -3
- package/src/embed/app.spec.ts +93 -0
- package/src/embed/app.ts +73 -15
- package/src/embed/base.ts +38 -34
- 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.spec.ts +9 -9
- package/src/embed/search.ts +20 -16
- package/src/embed/ts-embed.spec.ts +0 -11
- package/src/embed/ts-embed.ts +26 -19
- package/src/errors.ts +11 -0
- package/src/index.ts +7 -0
- package/src/mixpanel-service.ts +6 -1
- package/src/react/index.spec.tsx +1 -1
- 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 +325 -24
- 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 +4 -5
- package/src/utils/processTrigger.spec.ts +19 -0
- package/src/utils/processTrigger.ts +1 -1
- package/src/utils/reporting.spec.ts +91 -0
- package/src/utils/reporting.ts +71 -0
- 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
|
|
@@ -92,6 +99,11 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
92
99
|
*/
|
|
93
100
|
EXPAND_FIRST = "EXPAND_FIRST"
|
|
94
101
|
}
|
|
102
|
+
export enum HomePageSearchBarMode {
|
|
103
|
+
OBJECT_SEARCH = "objectSearch",
|
|
104
|
+
AI_ANSWER = "aiAnswer",
|
|
105
|
+
NONE = "none"
|
|
106
|
+
}
|
|
95
107
|
/**
|
|
96
108
|
* The view configuration for full app embedding.
|
|
97
109
|
* @group Embed components
|
|
@@ -278,19 +290,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
278
290
|
* ```
|
|
279
291
|
*/
|
|
280
292
|
fullHeight?: boolean;
|
|
281
|
-
/**
|
|
282
|
-
* Flag to control Data panel experience
|
|
283
|
-
* @default false
|
|
284
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
285
|
-
* @example
|
|
286
|
-
* ```js
|
|
287
|
-
* const embed = new AppEmbed('#tsEmbed', {
|
|
288
|
-
* ... // other options
|
|
289
|
-
* dataPanelV2: true,
|
|
290
|
-
* })
|
|
291
|
-
* ```
|
|
292
|
-
*/
|
|
293
|
-
dataPanelV2?: boolean;
|
|
294
293
|
/**
|
|
295
294
|
* Show or hide Liveboard header
|
|
296
295
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
@@ -365,6 +364,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
365
364
|
* To set the initial state of the search bar in case of saved-answers.
|
|
366
365
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
367
366
|
* @default false
|
|
367
|
+
* @deprecated Use {@link collapseSearchBar} instead
|
|
368
368
|
*/
|
|
369
369
|
collapseSearchBarInitially?: boolean;
|
|
370
370
|
/**
|
|
@@ -418,6 +418,53 @@ declare module '@thoughtspot/visual-embed-sdk/embed/app' {
|
|
|
418
418
|
* @version SDK : 1.29.0 | Thoughtspot : 10.1.0.cl
|
|
419
419
|
*/
|
|
420
420
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
421
|
+
/**
|
|
422
|
+
* Flag to use home page search bar mode
|
|
423
|
+
* @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
|
|
424
|
+
*/
|
|
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;
|
|
421
468
|
}
|
|
422
469
|
/**
|
|
423
470
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -543,22 +590,23 @@ declare module '@thoughtspot/visual-embed-sdk/embed/base' {
|
|
|
543
590
|
/**
|
|
544
591
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
545
592
|
* @param data
|
|
593
|
+
* @returns imports TML data into ThoughtSpot
|
|
546
594
|
* @example
|
|
547
595
|
* ```js
|
|
548
|
-
*
|
|
549
|
-
* //Array of metadata Tmls
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
}).then(result => {
|
|
557
|
-
|
|
558
|
-
}).catch(error => {
|
|
559
|
-
|
|
560
|
-
});
|
|
561
|
-
|
|
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
|
+
*```
|
|
562
610
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
563
611
|
* @group Global methods
|
|
564
612
|
*/
|
|
@@ -567,27 +615,28 @@ declare module '@thoughtspot/visual-embed-sdk/embed/base' {
|
|
|
567
615
|
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
568
616
|
* format.
|
|
569
617
|
* @param data
|
|
618
|
+
* @returns exports TML data
|
|
570
619
|
* @example
|
|
571
620
|
* ```js
|
|
572
|
-
exportTML({
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}).then(result => {
|
|
587
|
-
|
|
588
|
-
}).catch(error => {
|
|
589
|
-
|
|
590
|
-
});
|
|
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
|
+
* });
|
|
591
640
|
* ```
|
|
592
641
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
593
642
|
* @group Global methods
|
|
@@ -867,6 +916,48 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
867
916
|
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
868
917
|
*/
|
|
869
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;
|
|
870
961
|
}
|
|
871
962
|
/**
|
|
872
963
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -906,6 +997,13 @@ declare module '@thoughtspot/visual-embed-sdk/embed/liveboard' {
|
|
|
906
997
|
*/
|
|
907
998
|
render(): Promise<LiveboardEmbed>;
|
|
908
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;
|
|
909
1007
|
}
|
|
910
1008
|
/**
|
|
911
1009
|
* @hidden
|
|
@@ -977,6 +1075,19 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
977
1075
|
* ```
|
|
978
1076
|
*/
|
|
979
1077
|
collapseDataSources?: boolean;
|
|
1078
|
+
/**
|
|
1079
|
+
* If set to true, the data panel is collapsed on load,
|
|
1080
|
+
* but can be expanded manually.
|
|
1081
|
+
* @version: SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
|
|
1082
|
+
* @example
|
|
1083
|
+
* ```js
|
|
1084
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1085
|
+
* ... // other options
|
|
1086
|
+
* collapseDataPanel:true,
|
|
1087
|
+
* })
|
|
1088
|
+
* ```
|
|
1089
|
+
*/
|
|
1090
|
+
collapseDataPanel?: boolean;
|
|
980
1091
|
/**
|
|
981
1092
|
* Show or hide the data sources panel.
|
|
982
1093
|
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
@@ -1103,19 +1214,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
1103
1214
|
* ```
|
|
1104
1215
|
*/
|
|
1105
1216
|
hideSearchBar?: boolean;
|
|
1106
|
-
/**
|
|
1107
|
-
* Flag to control Data panel experience
|
|
1108
|
-
* @default false
|
|
1109
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1110
|
-
* @example
|
|
1111
|
-
* ```js
|
|
1112
|
-
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1113
|
-
* ... // other options
|
|
1114
|
-
* dataPanelV2:false,
|
|
1115
|
-
* })
|
|
1116
|
-
* ```
|
|
1117
|
-
*/
|
|
1118
|
-
dataPanelV2?: boolean;
|
|
1119
1217
|
/**
|
|
1120
1218
|
* Flag to set if last selected dataSource should be used
|
|
1121
1219
|
* @version: SDK: 1.24.0
|
|
@@ -1125,6 +1223,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search' {
|
|
|
1125
1223
|
* To set the initial state of the search bar in case of saved-answers.
|
|
1126
1224
|
* @default false
|
|
1127
1225
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
1226
|
+
* @deprecated Use {@link collapseSearchBar} instead
|
|
1128
1227
|
*/
|
|
1129
1228
|
collapseSearchBarInitially?: boolean;
|
|
1130
1229
|
/**
|
|
@@ -1294,6 +1393,32 @@ declare module '@thoughtspot/visual-embed-sdk/embed/search-bar' {
|
|
|
1294
1393
|
}
|
|
1295
1394
|
}
|
|
1296
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
|
+
|
|
1297
1422
|
declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
1298
1423
|
import EventEmitter from 'eventemitter3';
|
|
1299
1424
|
import { EmbedConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
@@ -1422,7 +1547,6 @@ declare module '@thoughtspot/visual-embed-sdk/auth' {
|
|
|
1422
1547
|
* Services to be called after the login is successful,
|
|
1423
1548
|
* This should be called after the cookie is set for cookie auth or
|
|
1424
1549
|
* after the token is set for cookieless.
|
|
1425
|
-
*
|
|
1426
1550
|
* @return {Promise<void>}
|
|
1427
1551
|
* @example
|
|
1428
1552
|
* ```js
|
|
@@ -1735,7 +1859,11 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1735
1859
|
/**
|
|
1736
1860
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1737
1861
|
*/
|
|
1738
|
-
SpotIQAnalysis = "spotiq-analysis"
|
|
1862
|
+
SpotIQAnalysis = "spotiq-analysis",
|
|
1863
|
+
/**
|
|
1864
|
+
* @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
|
|
1865
|
+
*/
|
|
1866
|
+
LiveboardSchedules = "liveboard-schedules"
|
|
1739
1867
|
}
|
|
1740
1868
|
export type DOMSelector = string | HTMLElement;
|
|
1741
1869
|
/**
|
|
@@ -1962,13 +2090,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
1962
2090
|
* @default false
|
|
1963
2091
|
*/
|
|
1964
2092
|
queueMultiRenders?: boolean;
|
|
1965
|
-
/**
|
|
1966
|
-
* Dynamic CSS URL to be injected in the loaded application.
|
|
1967
|
-
* You would also need to set `style-src` in the CSP settings.
|
|
1968
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1969
|
-
* @default ''
|
|
1970
|
-
*/
|
|
1971
|
-
customCssUrl?: string;
|
|
1972
2093
|
/**
|
|
1973
2094
|
* [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
|
|
1974
2095
|
* additional call. This is slower and should be avoided. Listen to the
|
|
@@ -2097,6 +2218,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2097
2218
|
* @version SDK: 1.28.5 | Thoughtspot: *
|
|
2098
2219
|
*/
|
|
2099
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;
|
|
2100
2227
|
}
|
|
2101
2228
|
export interface LayoutConfig {
|
|
2102
2229
|
}
|
|
@@ -2219,11 +2346,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2219
2346
|
*/
|
|
2220
2347
|
visibleActions?: Action[];
|
|
2221
2348
|
/**
|
|
2222
|
-
* 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.
|
|
2223
2351
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2224
2352
|
* @example
|
|
2225
2353
|
* ```js
|
|
2226
|
-
* const embed = new
|
|
2354
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
2227
2355
|
* ... // other options
|
|
2228
2356
|
* showAlerts:true,
|
|
2229
2357
|
* })
|
|
@@ -2520,6 +2648,43 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2520
2648
|
* @version SDK: 1.31.2 | ThoughtSpot: 10.0.0.cl
|
|
2521
2649
|
*/
|
|
2522
2650
|
enableV2Shell_experimental?: boolean;
|
|
2651
|
+
/**
|
|
2652
|
+
* To set the initial state of the search bar in case of saved-answers.
|
|
2653
|
+
* @default true
|
|
2654
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
2655
|
+
* @example
|
|
2656
|
+
* ```js
|
|
2657
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2658
|
+
* liveboardId: '123',
|
|
2659
|
+
* collapseSearchBar: true
|
|
2660
|
+
* });
|
|
2661
|
+
*/
|
|
2662
|
+
collapseSearchBar?: boolean;
|
|
2663
|
+
/**
|
|
2664
|
+
* This flag can be used to disable links inside the embedded app,
|
|
2665
|
+
* and disables redirection of links in a new tab.
|
|
2666
|
+
* @example
|
|
2667
|
+
* ```js
|
|
2668
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2669
|
+
* disableRedirectionLinksInNewTab: true
|
|
2670
|
+
* });
|
|
2671
|
+
* ```
|
|
2672
|
+
* @version SDK: 1.32.1 | ThoughtSpot: 10.3.0.cl
|
|
2673
|
+
*/
|
|
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;
|
|
2523
2688
|
}
|
|
2524
2689
|
/**
|
|
2525
2690
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -2716,6 +2881,28 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
2716
2881
|
* console.log('Drilldown event', drilldown);
|
|
2717
2882
|
* }));
|
|
2718
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
|
+
*
|
|
2719
2906
|
* @group Events
|
|
2720
2907
|
*/
|
|
2721
2908
|
export enum EmbedEvent {
|
|
@@ -3584,21 +3771,61 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3584
3771
|
*/
|
|
3585
3772
|
Rename = "rename",
|
|
3586
3773
|
/**
|
|
3587
|
-
* 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.
|
|
3588
3787
|
*
|
|
3589
|
-
*
|
|
3590
|
-
*
|
|
3788
|
+
* error: Developers can customize the user facing message when execute is
|
|
3789
|
+
* set to false using the error parameter in responder
|
|
3591
3790
|
*
|
|
3791
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3792
|
+
*
|
|
3793
|
+
* @example
|
|
3592
3794
|
*```js
|
|
3593
|
-
*
|
|
3795
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
3594
3796
|
* (payload, responder) => {
|
|
3595
3797
|
* responder({
|
|
3596
3798
|
* data: {
|
|
3597
|
-
* execute:
|
|
3598
|
-
*
|
|
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
|
+
* }})
|
|
3599
3827
|
* })
|
|
3600
3828
|
*```
|
|
3601
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3602
3829
|
*/
|
|
3603
3830
|
OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
|
|
3604
3831
|
/**
|
|
@@ -3616,7 +3843,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3616
3843
|
}
|
|
3617
3844
|
/**
|
|
3618
3845
|
* Event types that can be triggered by the host application
|
|
3619
|
-
* to the embedded ThoughtSpot app
|
|
3846
|
+
* to the embedded ThoughtSpot app.
|
|
3620
3847
|
*
|
|
3621
3848
|
* To trigger an event use the corresponding
|
|
3622
3849
|
* {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
|
|
@@ -3633,6 +3860,40 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3633
3860
|
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
|
|
3634
3861
|
* ]);
|
|
3635
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
|
+
*
|
|
3636
3897
|
* @group Events
|
|
3637
3898
|
*/
|
|
3638
3899
|
export enum HostEvent {
|
|
@@ -3716,6 +3977,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3716
3977
|
* @hidden
|
|
3717
3978
|
*/
|
|
3718
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",
|
|
3719
3989
|
/**
|
|
3720
3990
|
* Display specific visualizations on a Liveboard.
|
|
3721
3991
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
@@ -3982,13 +4252,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3982
4252
|
*
|
|
3983
4253
|
* @example
|
|
3984
4254
|
* ```js
|
|
3985
|
-
*
|
|
4255
|
+
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
3986
4256
|
* ```
|
|
3987
4257
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3988
4258
|
*/
|
|
3989
4259
|
CreateMonitor = "createMonitor",
|
|
3990
4260
|
/**
|
|
3991
|
-
* Trigger the **Manage alerts** action on a
|
|
4261
|
+
* Trigger the **Manage alerts** action on a KPI chart
|
|
4262
|
+
* in a visualization or saved Answer.
|
|
4263
|
+
*
|
|
3992
4264
|
* @param - an object with `vizId` as a key
|
|
3993
4265
|
* @example
|
|
3994
4266
|
* ```js
|
|
@@ -3996,6 +4268,16 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
3996
4268
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
3997
4269
|
* })
|
|
3998
4270
|
* ```
|
|
4271
|
+
*
|
|
4272
|
+
* @example
|
|
4273
|
+
* ```js
|
|
4274
|
+
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
4275
|
+
* ```
|
|
4276
|
+
*
|
|
4277
|
+
* @example
|
|
4278
|
+
* ```js
|
|
4279
|
+
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
4280
|
+
* ```
|
|
3999
4281
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
4000
4282
|
*/
|
|
4001
4283
|
ManageMonitor = "manageMonitor",
|
|
@@ -4305,11 +4587,24 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4305
4587
|
* filter: {
|
|
4306
4588
|
* column: "item type",
|
|
4307
4589
|
* oper: "IN",
|
|
4308
|
-
* values: ["bags","shirts"]
|
|
4590
|
+
* values: ["bags","shirts"]
|
|
4309
4591
|
* }
|
|
4310
4592
|
* });
|
|
4311
4593
|
* ```
|
|
4312
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"
|
|
4603
|
+
* }
|
|
4604
|
+
* });
|
|
4605
|
+
* ```
|
|
4606
|
+
*
|
|
4607
|
+
* @example
|
|
4313
4608
|
*
|
|
4314
4609
|
* ```js
|
|
4315
4610
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
@@ -4326,7 +4621,8 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4326
4621
|
* {
|
|
4327
4622
|
* column: "Date",
|
|
4328
4623
|
* oper: 'EQ',
|
|
4329
|
-
* values: ["
|
|
4624
|
+
* values: ["2023-07-31"],
|
|
4625
|
+
* types: "EXACT_DATE"
|
|
4330
4626
|
* }]
|
|
4331
4627
|
* });
|
|
4332
4628
|
* ```
|
|
@@ -4512,7 +4808,6 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4512
4808
|
ViewPortHeight = "viewPortHeight",
|
|
4513
4809
|
ViewPortWidth = "viewPortWidth",
|
|
4514
4810
|
VisibleActions = "visibleAction",
|
|
4515
|
-
CustomCSSUrl = "customCssUrl",
|
|
4516
4811
|
DisableLoginRedirect = "disableLoginRedirect",
|
|
4517
4812
|
visibleVizs = "pinboardVisibleVizs",
|
|
4518
4813
|
LiveboardV2Enabled = "isPinboardV2Enabled",
|
|
@@ -4567,7 +4862,12 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4567
4862
|
Enable2ColumnLayout = "enable2ColumnLayout",
|
|
4568
4863
|
IsFullAppEmbed = "isFullAppEmbed",
|
|
4569
4864
|
IsOnBeforeGetVizDataInterceptEnabled = "isOnBeforeGetVizDataInterceptEnabled",
|
|
4570
|
-
FocusSearchBarOnRender = "focusSearchBarOnRender"
|
|
4865
|
+
FocusSearchBarOnRender = "focusSearchBarOnRender",
|
|
4866
|
+
DisableRedirectionLinksInNewTab = "disableRedirectionLinksInNewTab",
|
|
4867
|
+
HomePageSearchBarMode = "homePageSearchBarMode",
|
|
4868
|
+
ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
|
|
4869
|
+
ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
|
|
4870
|
+
LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled"
|
|
4571
4871
|
}
|
|
4572
4872
|
/**
|
|
4573
4873
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4716,6 +5016,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
4716
5016
|
*/
|
|
4717
5017
|
ConfigureFilter = "configureFilter",
|
|
4718
5018
|
CollapseDataSources = "collapseDataSources",
|
|
5019
|
+
CollapseDataPanel = "collapseDataPanel",
|
|
4719
5020
|
/**
|
|
4720
5021
|
* The **Choose sources** button on Search page.
|
|
4721
5022
|
* Allows selecting data sources for search queries.
|
|
@@ -5111,12 +5412,15 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5111
5412
|
* The Create alert action on KPI charts.
|
|
5112
5413
|
* @example
|
|
5113
5414
|
* ```js
|
|
5114
|
-
* disabledActions: [Action.CreateMonitor
|
|
5415
|
+
* disabledActions: [Action.CreateMonitor]
|
|
5115
5416
|
* ```
|
|
5116
5417
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
5117
5418
|
*/
|
|
5118
5419
|
CreateMonitor = "createMonitor",
|
|
5119
5420
|
/**
|
|
5421
|
+
* @deprecated
|
|
5422
|
+
* Reports errors
|
|
5423
|
+
*
|
|
5120
5424
|
* @example
|
|
5121
5425
|
* ```js
|
|
5122
5426
|
* disabledActions: [Action.ReportError]
|
|
@@ -5341,35 +5645,84 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5341
5645
|
*/
|
|
5342
5646
|
RenameModalTitleDescription = "renameModalTitleDescription",
|
|
5343
5647
|
/**
|
|
5648
|
+
*
|
|
5649
|
+
* @example
|
|
5650
|
+
* ```js
|
|
5651
|
+
* disabledActions: [Action.RequestVerification]
|
|
5652
|
+
* ```
|
|
5344
5653
|
*
|
|
5345
5654
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5346
5655
|
*/
|
|
5347
5656
|
RequestVerification = "requestVerification",
|
|
5348
5657
|
/**
|
|
5658
|
+
*
|
|
5659
|
+
* Allows users to mark a Liveboard as verified.
|
|
5660
|
+
*
|
|
5661
|
+
* @example
|
|
5662
|
+
* ```js
|
|
5663
|
+
* disabledActions: [Action.MarkAsVerified]
|
|
5664
|
+
* ```
|
|
5349
5665
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5350
5666
|
*/
|
|
5351
5667
|
MarkAsVerified = "markAsVerified",
|
|
5352
5668
|
/**
|
|
5669
|
+
* The **Add Tab** action on a Liveboard.
|
|
5670
|
+
* Allows adding a new tab to a Liveboard view.
|
|
5671
|
+
*
|
|
5672
|
+
* @example
|
|
5673
|
+
* ```js
|
|
5674
|
+
* disabledActions: [Action.AddTab]
|
|
5675
|
+
* ```
|
|
5353
5676
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5354
5677
|
*/
|
|
5355
5678
|
AddTab = "addTab",
|
|
5356
5679
|
/**
|
|
5680
|
+
*
|
|
5681
|
+
* Initiates contextual change analysis on KPI charts.
|
|
5682
|
+
*
|
|
5683
|
+
* @example
|
|
5684
|
+
* ```js
|
|
5685
|
+
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
5686
|
+
* ```
|
|
5357
5687
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5358
5688
|
*/
|
|
5359
5689
|
EnableContextualChangeAnalysis = "enableContextualChangeAnalysis",
|
|
5360
5690
|
/**
|
|
5691
|
+
*
|
|
5692
|
+
* @example
|
|
5693
|
+
* ```js
|
|
5694
|
+
* disabledActions: [Action.ShowSageQuery]
|
|
5695
|
+
* ```
|
|
5696
|
+
*
|
|
5361
5697
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5362
5698
|
*/
|
|
5363
5699
|
ShowSageQuery = "showSageQuery",
|
|
5364
5700
|
/**
|
|
5701
|
+
*
|
|
5702
|
+
* @example
|
|
5703
|
+
* ```js
|
|
5704
|
+
* disabledActions: [Action.EditSageAnswer]
|
|
5705
|
+
* ```
|
|
5365
5706
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5366
5707
|
*/
|
|
5367
5708
|
EditSageAnswer = "editSageAnswer",
|
|
5368
5709
|
/**
|
|
5710
|
+
*
|
|
5711
|
+
* This action allows users to send feedback on AI-generated Answers.
|
|
5712
|
+
*
|
|
5713
|
+
* @example
|
|
5714
|
+
* ```js
|
|
5715
|
+
* disabledActions: [Action.SageAnswerFeedback]
|
|
5716
|
+
* ```
|
|
5369
5717
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5370
5718
|
*/
|
|
5371
5719
|
SageAnswerFeedback = "sageAnswerFeedback",
|
|
5372
5720
|
/**
|
|
5721
|
+
*
|
|
5722
|
+
* @example
|
|
5723
|
+
* ```js
|
|
5724
|
+
* disabledActions: [Action.ModifySageAnswer]
|
|
5725
|
+
* ```
|
|
5373
5726
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5374
5727
|
*/
|
|
5375
5728
|
ModifySageAnswer = "modifySageAnswer",
|
|
@@ -5436,7 +5789,7 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5436
5789
|
*
|
|
5437
5790
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
5438
5791
|
*/
|
|
5439
|
-
CreateLiveboard = "
|
|
5792
|
+
CreateLiveboard = "createLiveboard",
|
|
5440
5793
|
/**
|
|
5441
5794
|
* Action ID for to hide Verified Liveboard Banner
|
|
5442
5795
|
* @example
|
|
@@ -5490,7 +5843,71 @@ declare module '@thoughtspot/visual-embed-sdk/types' {
|
|
|
5490
5843
|
* ```
|
|
5491
5844
|
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
5492
5845
|
*/
|
|
5493
|
-
AIHighlights = "AIHighlights"
|
|
5846
|
+
AIHighlights = "AIHighlights",
|
|
5847
|
+
/**
|
|
5848
|
+
* Action ID for edit schedule action on schedule on homepage
|
|
5849
|
+
* @example
|
|
5850
|
+
* ```js
|
|
5851
|
+
* disabledActions: [Action.EditScheduleHomepage]
|
|
5852
|
+
* ```
|
|
5853
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5854
|
+
*/
|
|
5855
|
+
EditScheduleHomepage = "editScheduleHomepage",
|
|
5856
|
+
/**
|
|
5857
|
+
* Action ID for pause schedule action on schedule on homepage
|
|
5858
|
+
* @example
|
|
5859
|
+
* ```js
|
|
5860
|
+
* disabledActions: [Action.PauseScheduleHomepage]
|
|
5861
|
+
* ```
|
|
5862
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5863
|
+
*/
|
|
5864
|
+
PauseScheduleHomepage = "pauseScheduleHomepage",
|
|
5865
|
+
/**
|
|
5866
|
+
* Action ID for view schedule run action on schedule on homepage
|
|
5867
|
+
* @example
|
|
5868
|
+
* ```js
|
|
5869
|
+
* disabledActions: [Action.ViewScheduleRunHomepage]
|
|
5870
|
+
* ```
|
|
5871
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5872
|
+
*/
|
|
5873
|
+
ViewScheduleRunHomepage = "viewScheduleRunHomepage",
|
|
5874
|
+
/**
|
|
5875
|
+
* Action ID for unsubscribe schedule action on schedule on homepage
|
|
5876
|
+
* @example
|
|
5877
|
+
* ```js
|
|
5878
|
+
* disabledActions: [Action.UnsubscribeScheduleHomepage]
|
|
5879
|
+
* ```
|
|
5880
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5881
|
+
*/
|
|
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",
|
|
5893
|
+
/**
|
|
5894
|
+
* Action ID for delete schedule action on schedule on homepage
|
|
5895
|
+
* @example
|
|
5896
|
+
* ```js
|
|
5897
|
+
* disabledActions: [Action.DeleteScheduleHomepage]
|
|
5898
|
+
* ```
|
|
5899
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5900
|
+
*/
|
|
5901
|
+
DeleteScheduleHomepage = "deleteScheduleHomepage",
|
|
5902
|
+
/**
|
|
5903
|
+
* The **Analyze CTA** action on KPI chart.
|
|
5904
|
+
* @example
|
|
5905
|
+
* ```js
|
|
5906
|
+
* disabledActions: [Action.KPIAnalysisCTA]
|
|
5907
|
+
* ```
|
|
5908
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5909
|
+
*/
|
|
5910
|
+
KPIAnalysisCTA = "kpiAnalysisCTA"
|
|
5494
5911
|
}
|
|
5495
5912
|
export interface AnswerServiceType {
|
|
5496
5913
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -5648,9 +6065,12 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
5648
6065
|
*/
|
|
5649
6066
|
'--ts-var-root-text-transform'?: string;
|
|
5650
6067
|
/**
|
|
5651
|
-
*
|
|
5652
|
-
*
|
|
5653
|
-
*
|
|
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
|
+
*
|
|
5654
6074
|
*/
|
|
5655
6075
|
'--ts-var-application-color'?: string;
|
|
5656
6076
|
/**
|
|
@@ -5761,6 +6181,10 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
5761
6181
|
* Background color of the primary buttons on hover.
|
|
5762
6182
|
*/
|
|
5763
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;
|
|
5764
6188
|
/**
|
|
5765
6189
|
* Font color of the text on the secondary buttons.
|
|
5766
6190
|
*/
|
|
@@ -5777,6 +6201,10 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
5777
6201
|
* Background color of the secondary button on hover.
|
|
5778
6202
|
*/
|
|
5779
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;
|
|
5780
6208
|
/**
|
|
5781
6209
|
* Font color of the tertiary button. For example, the *Undo*, *Redo*, and *Reset*
|
|
5782
6210
|
* buttons on the *Search* page.
|
|
@@ -5790,6 +6218,10 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
5790
6218
|
* Background color of the tertiary button when a user hovers over these buttons.
|
|
5791
6219
|
*/
|
|
5792
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;
|
|
5793
6225
|
/**
|
|
5794
6226
|
* Font color of the title text of a visualization or Answer.
|
|
5795
6227
|
*/
|
|
@@ -5965,6 +6397,34 @@ declare module '@thoughtspot/visual-embed-sdk/css-variables' {
|
|
|
5965
6397
|
* Background for favorite carousel find your favorites card in modular home.
|
|
5966
6398
|
*/
|
|
5967
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;
|
|
5968
6428
|
}
|
|
5969
6429
|
}
|
|
5970
6430
|
|
|
@@ -6213,6 +6673,7 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
6213
6673
|
* @returns
|
|
6214
6674
|
*/
|
|
6215
6675
|
addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter['values']): Promise<any>;
|
|
6676
|
+
getSQLQuery(): Promise<string>;
|
|
6216
6677
|
/**
|
|
6217
6678
|
* Fetch data from the answer.
|
|
6218
6679
|
* @param offset
|
|
@@ -6231,6 +6692,16 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
6231
6692
|
* @returns Response
|
|
6232
6693
|
*/
|
|
6233
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>;
|
|
6234
6705
|
/**
|
|
6235
6706
|
* Just get the internal URL for this answer's data
|
|
6236
6707
|
* as a CSV blob.
|
|
@@ -6239,6 +6710,14 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
6239
6710
|
* @returns
|
|
6240
6711
|
*/
|
|
6241
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;
|
|
6242
6721
|
/**
|
|
6243
6722
|
* Get underlying data given a point and the output column names.
|
|
6244
6723
|
* In case of a context menu action, the selectedPoints are
|
|
@@ -6270,6 +6749,9 @@ declare module '@thoughtspot/visual-embed-sdk/utils/graphql/answerService/answer
|
|
|
6270
6749
|
*/
|
|
6271
6750
|
getSession(): SessionInterface;
|
|
6272
6751
|
getAnswer(): Promise<any>;
|
|
6752
|
+
getTML(): Promise<any>;
|
|
6753
|
+
addDisplayedVizToLiveboard(liveboardId: string): Promise<any>;
|
|
6754
|
+
setTMLOverride(override: any): void;
|
|
6273
6755
|
}
|
|
6274
6756
|
}
|
|
6275
6757
|
|
|
@@ -6297,6 +6779,10 @@ declare module '@thoughtspot/visual-embed-sdk/mixpanel-service' {
|
|
|
6297
6779
|
export const EndPoints: {
|
|
6298
6780
|
CONFIG: string;
|
|
6299
6781
|
};
|
|
6782
|
+
/**
|
|
6783
|
+
* Enum of mixpanel events
|
|
6784
|
+
* @hidden
|
|
6785
|
+
*/
|
|
6300
6786
|
export const MIXPANEL_EVENT: {
|
|
6301
6787
|
VISUAL_SDK_RENDER_START: string;
|
|
6302
6788
|
VISUAL_SDK_CALLED_INIT: string;
|
|
@@ -6345,18 +6831,41 @@ declare module '@thoughtspot/visual-embed-sdk/tokenizedFetch' {
|
|
|
6345
6831
|
export const tokenizedFetch: typeof fetch;
|
|
6346
6832
|
}
|
|
6347
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
|
+
|
|
6348
6853
|
declare module '@thoughtspot/visual-embed-sdk/authToken' {
|
|
6349
6854
|
import { EmbedConfig } from '@thoughtspot/visual-embed-sdk/types';
|
|
6855
|
+
/**
|
|
6856
|
+
*
|
|
6857
|
+
* @param embedConfig
|
|
6858
|
+
*/
|
|
6350
6859
|
export function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
6351
6860
|
/**
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
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
|
+
*/
|
|
6360
6869
|
export const resetCachedAuthToken: () => void;
|
|
6361
6870
|
}
|
|
6362
6871
|
|
|
@@ -6428,7 +6937,7 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
6428
6937
|
* @param queryParams
|
|
6429
6938
|
* @returns queryParams
|
|
6430
6939
|
*/
|
|
6431
|
-
protected getBaseQueryParams(queryParams?:
|
|
6940
|
+
protected getBaseQueryParams(queryParams?: Record<any, any>): Record<any, any>;
|
|
6432
6941
|
/**
|
|
6433
6942
|
* Constructs the base URL string to load v1 of the ThoughtSpot app.
|
|
6434
6943
|
* This is used for embedding Liveboards, visualizations, and full application.
|
|
@@ -6555,7 +7064,9 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
6555
7064
|
* THOUGHTSPOT URL params starts with a prefix "ts-"
|
|
6556
7065
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
6557
7066
|
*/
|
|
6558
|
-
getThoughtSpotPostUrlParams(
|
|
7067
|
+
getThoughtSpotPostUrlParams(additionalParams?: {
|
|
7068
|
+
[key: string]: string | number;
|
|
7069
|
+
}): string;
|
|
6559
7070
|
/**
|
|
6560
7071
|
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
6561
7072
|
* @version SDK: 1.19.1 | ThoughtSpot: *
|
|
@@ -6646,7 +7157,6 @@ declare module '@thoughtspot/visual-embed-sdk/embed/ts-embed' {
|
|
|
6646
7157
|
on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
|
|
6647
7158
|
/**
|
|
6648
7159
|
* Only for testing purposes.
|
|
6649
|
-
*
|
|
6650
7160
|
* @hidden
|
|
6651
7161
|
*/
|
|
6652
7162
|
test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
|