@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
|
@@ -12,7 +12,7 @@ import EventEmitter from 'eventemitter3';
|
|
|
12
12
|
* @summary ThoughtSpot Visual Embed SDK
|
|
13
13
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
14
14
|
*/
|
|
15
|
-
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, SearchEmbed, SearchBarEmbed, PinboardEmbed, LiveboardEmbed, SageEmbed, AppEmbed, AuthFailureType, AuthStatus, AuthEvent, AuthEventEmitter, AnswerService, SessionInterface, UnderlyingDataPoint, Page, AuthType, RuntimeFilter, RuntimeFilterOp, EmbedEvent, HostEvent, DataSourceVisualMode, Action, ContextMenuTriggerOptions, EmbedConfig, SearchViewConfig, SearchBarViewConfig, LiveboardViewConfig, SageViewConfig, AppViewConfig, PrefetchFeatures, FrameParams, HomeLeftNavItem, HomepageModule, DOMSelector, MessageOptions, MessageCallback, MessagePayload, CustomisationsInterface, CustomStyles, customCssInterface, CustomCssVariables, RuntimeParameter, LogLevel, uploadMixpanelEvent, MIXPANEL_EVENT, VizPoint, CustomActionPayload, };
|
|
15
|
+
export { init, logout, prefetch, executeTML, exportTML, executeTMLInput, exportTMLInput, getEmbedConfig as getInitConfig, getSessionInfo, tokenizedFetch, getAnswerFromQuery, 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, };
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Copyright (c) 2022
|
|
@@ -54,7 +54,11 @@ export enum Page {
|
|
|
54
54
|
/**
|
|
55
55
|
* SpotIQ listing page
|
|
56
56
|
*/
|
|
57
|
-
SpotIQ = "insights"
|
|
57
|
+
SpotIQ = "insights",
|
|
58
|
+
/**
|
|
59
|
+
* Monitor Alerts Page
|
|
60
|
+
*/
|
|
61
|
+
Monitor = "monitor"
|
|
58
62
|
}
|
|
59
63
|
/**
|
|
60
64
|
* Define the initial state os column custom group accordions
|
|
@@ -74,6 +78,11 @@ export enum DataPanelCustomColumnGroupsAccordionState {
|
|
|
74
78
|
*/
|
|
75
79
|
EXPAND_FIRST = "EXPAND_FIRST"
|
|
76
80
|
}
|
|
81
|
+
export enum HomePageSearchBarMode {
|
|
82
|
+
OBJECT_SEARCH = "objectSearch",
|
|
83
|
+
AI_ANSWER = "aiAnswer",
|
|
84
|
+
NONE = "none"
|
|
85
|
+
}
|
|
77
86
|
/**
|
|
78
87
|
* The view configuration for full app embedding.
|
|
79
88
|
* @group Embed components
|
|
@@ -260,19 +269,6 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
260
269
|
* ```
|
|
261
270
|
*/
|
|
262
271
|
fullHeight?: boolean;
|
|
263
|
-
/**
|
|
264
|
-
* Flag to control Data panel experience
|
|
265
|
-
* @default false
|
|
266
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
267
|
-
* @example
|
|
268
|
-
* ```js
|
|
269
|
-
* const embed = new AppEmbed('#tsEmbed', {
|
|
270
|
-
* ... // other options
|
|
271
|
-
* dataPanelV2: true,
|
|
272
|
-
* })
|
|
273
|
-
* ```
|
|
274
|
-
*/
|
|
275
|
-
dataPanelV2?: boolean;
|
|
276
272
|
/**
|
|
277
273
|
* Show or hide Liveboard header
|
|
278
274
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
@@ -347,6 +343,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
347
343
|
* To set the initial state of the search bar in case of saved-answers.
|
|
348
344
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
349
345
|
* @default false
|
|
346
|
+
* @deprecated Use {@link collapseSearchBar} instead
|
|
350
347
|
*/
|
|
351
348
|
collapseSearchBarInitially?: boolean;
|
|
352
349
|
/**
|
|
@@ -400,6 +397,53 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
400
397
|
* @version SDK : 1.29.0 | Thoughtspot : 10.1.0.cl
|
|
401
398
|
*/
|
|
402
399
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
400
|
+
/**
|
|
401
|
+
* Flag to use home page search bar mode
|
|
402
|
+
* @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
|
|
403
|
+
*/
|
|
404
|
+
homePageSearchBarMode?: HomePageSearchBarMode;
|
|
405
|
+
/**
|
|
406
|
+
* This flag is used to enable the compact header in liveboard
|
|
407
|
+
* @type {boolean}
|
|
408
|
+
* @default false
|
|
409
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
|
|
410
|
+
* @example
|
|
411
|
+
* ```js
|
|
412
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
413
|
+
* ... // other options
|
|
414
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
415
|
+
* })
|
|
416
|
+
* ```
|
|
417
|
+
*/
|
|
418
|
+
isLiveboardCompactHeaderEnabled?: boolean;
|
|
419
|
+
/**
|
|
420
|
+
* This flag is used to show/hide verified Icon in liveboard compact header
|
|
421
|
+
* @type {boolean}
|
|
422
|
+
* @default true
|
|
423
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
424
|
+
* @example
|
|
425
|
+
* ```js
|
|
426
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
427
|
+
* ... // other options
|
|
428
|
+
* showLiveboardVerifiedBadge: true,
|
|
429
|
+
* })
|
|
430
|
+
* ```
|
|
431
|
+
*/
|
|
432
|
+
showLiveboardVerifiedBadge?: boolean;
|
|
433
|
+
/**
|
|
434
|
+
* This flag is used to show/hide re-verify banner in liveboard compact header
|
|
435
|
+
* @type {boolean}
|
|
436
|
+
* @default true
|
|
437
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
438
|
+
* @example
|
|
439
|
+
* ```js
|
|
440
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
441
|
+
* ... // other options
|
|
442
|
+
* showLiveboardReverifyBanner: true,
|
|
443
|
+
* })
|
|
444
|
+
* ```
|
|
445
|
+
*/
|
|
446
|
+
showLiveboardReverifyBanner?: boolean;
|
|
403
447
|
}
|
|
404
448
|
/**
|
|
405
449
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -521,22 +565,23 @@ export const renderInQueue: (fn: (next?: (val?: any) => void) => Promise<any>) =
|
|
|
521
565
|
/**
|
|
522
566
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
523
567
|
* @param data
|
|
568
|
+
* @returns imports TML data into ThoughtSpot
|
|
524
569
|
* @example
|
|
525
570
|
* ```js
|
|
526
|
-
*
|
|
527
|
-
* //Array of metadata Tmls
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}).then(result => {
|
|
535
|
-
|
|
536
|
-
}).catch(error => {
|
|
537
|
-
|
|
538
|
-
});
|
|
539
|
-
|
|
571
|
+
* executeTML({
|
|
572
|
+
* //Array of metadata Tmls in string format
|
|
573
|
+
* metadata_tmls: [
|
|
574
|
+
* "'\''{\"guid\":\"9bd202f5-d431-44bf-9a07-b4f7be372125\",
|
|
575
|
+
* \"liveboard\":{\"name\":\"Parameters Liveboard\"}}'\''"
|
|
576
|
+
* ],
|
|
577
|
+
* import_policy: 'PARTIAL', // Specifies the import policy for the TML import.
|
|
578
|
+
* create_new: false, // If selected, creates TML objects with new GUIDs.
|
|
579
|
+
* }).then(result => {
|
|
580
|
+
* console.log(result);
|
|
581
|
+
* }).catch(error => {
|
|
582
|
+
* console.error(error);
|
|
583
|
+
* });
|
|
584
|
+
*```
|
|
540
585
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
541
586
|
* @group Global methods
|
|
542
587
|
*/
|
|
@@ -545,27 +590,28 @@ export const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
|
545
590
|
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
546
591
|
* format.
|
|
547
592
|
* @param data
|
|
593
|
+
* @returns exports TML data
|
|
548
594
|
* @example
|
|
549
595
|
* ```js
|
|
550
|
-
exportTML({
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}).then(result => {
|
|
565
|
-
|
|
566
|
-
}).catch(error => {
|
|
567
|
-
|
|
568
|
-
});
|
|
596
|
+
* exportTML({
|
|
597
|
+
* metadata: [
|
|
598
|
+
* {
|
|
599
|
+
* type: "LIVEBOARD", //Metadata Type
|
|
600
|
+
* identifier: "9bd202f5-d431-44bf-9a07-b4f7be372125" //Metadata Id
|
|
601
|
+
* }
|
|
602
|
+
* ],
|
|
603
|
+
* export_associated: false,//indicates whether to export associated metadata objects
|
|
604
|
+
* export_fqn: false, //Adds FQNs of the referenced objects.For example, if you are
|
|
605
|
+
* //exporting a Liveboard and its associated objects, the API
|
|
606
|
+
* //returns the Liveboard TML data with the FQNs of the referenced
|
|
607
|
+
* //worksheet. If the exported TML data includes FQNs, you don't need
|
|
608
|
+
* //to manually add FQNs of the referenced objects during TML import.
|
|
609
|
+
* edoc_format: "JSON" //It takes JSON or YAML value
|
|
610
|
+
* }).then(result => {
|
|
611
|
+
* console.log(result);
|
|
612
|
+
* }).catch(error => {
|
|
613
|
+
* console.error(error);
|
|
614
|
+
* });
|
|
569
615
|
* ```
|
|
570
616
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
571
617
|
* @group Global methods
|
|
@@ -841,6 +887,48 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
841
887
|
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
842
888
|
*/
|
|
843
889
|
showPreviewLoader?: boolean;
|
|
890
|
+
/**
|
|
891
|
+
* This flag is used to enable the compact header in liveboard
|
|
892
|
+
* @type {boolean}
|
|
893
|
+
* @default false
|
|
894
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
|
|
895
|
+
* @example
|
|
896
|
+
* ```js
|
|
897
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
898
|
+
* ... // other options
|
|
899
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
900
|
+
* })
|
|
901
|
+
* ```
|
|
902
|
+
*/
|
|
903
|
+
isLiveboardCompactHeaderEnabled?: boolean;
|
|
904
|
+
/**
|
|
905
|
+
* This flag is used to show/hide verified Icon in liveboard compact header
|
|
906
|
+
* @type {boolean}
|
|
907
|
+
* @default true
|
|
908
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
909
|
+
* @example
|
|
910
|
+
* ```js
|
|
911
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
912
|
+
* ... // other options
|
|
913
|
+
* showLiveboardVerifiedBadge: true,
|
|
914
|
+
* })
|
|
915
|
+
* ```
|
|
916
|
+
*/
|
|
917
|
+
showLiveboardVerifiedBadge?: boolean;
|
|
918
|
+
/**
|
|
919
|
+
* This flag is used to show/hide re-verify banner in liveboard compact header
|
|
920
|
+
* @type {boolean}
|
|
921
|
+
* @default true
|
|
922
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
923
|
+
* @example
|
|
924
|
+
* ```js
|
|
925
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
926
|
+
* ... // other options
|
|
927
|
+
* showLiveboardReverifyBanner: true,
|
|
928
|
+
* })
|
|
929
|
+
* ```
|
|
930
|
+
*/
|
|
931
|
+
showLiveboardReverifyBanner?: boolean;
|
|
844
932
|
}
|
|
845
933
|
/**
|
|
846
934
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -880,6 +968,13 @@ export class LiveboardEmbed extends V1Embed {
|
|
|
880
968
|
*/
|
|
881
969
|
render(): Promise<LiveboardEmbed>;
|
|
882
970
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
971
|
+
/**
|
|
972
|
+
* Returns the full url of the liveboard/viz which can be used to open
|
|
973
|
+
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
974
|
+
*
|
|
975
|
+
* @returns url string
|
|
976
|
+
*/
|
|
977
|
+
getLiveboardUrl(): string;
|
|
883
978
|
}
|
|
884
979
|
/**
|
|
885
980
|
* @hidden
|
|
@@ -947,6 +1042,19 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
947
1042
|
* ```
|
|
948
1043
|
*/
|
|
949
1044
|
collapseDataSources?: boolean;
|
|
1045
|
+
/**
|
|
1046
|
+
* If set to true, the data panel is collapsed on load,
|
|
1047
|
+
* but can be expanded manually.
|
|
1048
|
+
* @version: SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
|
|
1049
|
+
* @example
|
|
1050
|
+
* ```js
|
|
1051
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1052
|
+
* ... // other options
|
|
1053
|
+
* collapseDataPanel:true,
|
|
1054
|
+
* })
|
|
1055
|
+
* ```
|
|
1056
|
+
*/
|
|
1057
|
+
collapseDataPanel?: boolean;
|
|
950
1058
|
/**
|
|
951
1059
|
* Show or hide the data sources panel.
|
|
952
1060
|
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
@@ -1073,19 +1181,6 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
1073
1181
|
* ```
|
|
1074
1182
|
*/
|
|
1075
1183
|
hideSearchBar?: boolean;
|
|
1076
|
-
/**
|
|
1077
|
-
* Flag to control Data panel experience
|
|
1078
|
-
* @default false
|
|
1079
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
1080
|
-
* @example
|
|
1081
|
-
* ```js
|
|
1082
|
-
* const embed = new SearchEmbed('#tsEmbed', {
|
|
1083
|
-
* ... // other options
|
|
1084
|
-
* dataPanelV2:false,
|
|
1085
|
-
* })
|
|
1086
|
-
* ```
|
|
1087
|
-
*/
|
|
1088
|
-
dataPanelV2?: boolean;
|
|
1089
1184
|
/**
|
|
1090
1185
|
* Flag to set if last selected dataSource should be used
|
|
1091
1186
|
* @version: SDK: 1.24.0
|
|
@@ -1095,6 +1190,7 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
1095
1190
|
* To set the initial state of the search bar in case of saved-answers.
|
|
1096
1191
|
* @default false
|
|
1097
1192
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
1193
|
+
* @deprecated Use {@link collapseSearchBar} instead
|
|
1098
1194
|
*/
|
|
1099
1195
|
collapseSearchBarInitially?: boolean;
|
|
1100
1196
|
/**
|
|
@@ -1258,6 +1354,29 @@ export class SearchBarEmbed extends TsEmbed {
|
|
|
1258
1354
|
render(): Promise<SearchBarEmbed>;
|
|
1259
1355
|
}
|
|
1260
1356
|
|
|
1357
|
+
export interface BodylessConversationViewConfig extends ViewConfig {
|
|
1358
|
+
/**
|
|
1359
|
+
* The ID of the worksheet to use for the conversation.
|
|
1360
|
+
*/
|
|
1361
|
+
worksheetId: string;
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Create a conversation embed, which can be integrated inside
|
|
1365
|
+
* chatbots or other conversational interfaces.
|
|
1366
|
+
* @group Embed components
|
|
1367
|
+
* @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
|
|
1368
|
+
*/
|
|
1369
|
+
export class BodylessConversation {
|
|
1370
|
+
constructor(viewConfig: BodylessConversationViewConfig);
|
|
1371
|
+
sendMessage(userMessage: string): Promise<{
|
|
1372
|
+
error: any;
|
|
1373
|
+
container?: undefined;
|
|
1374
|
+
} | {
|
|
1375
|
+
container: HTMLDivElement;
|
|
1376
|
+
error?: undefined;
|
|
1377
|
+
}>;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1261
1380
|
export let loggedInStatus: boolean;
|
|
1262
1381
|
export let samlAuthWindow: Window;
|
|
1263
1382
|
export let samlCompletionPromise: Promise<void>;
|
|
@@ -1383,7 +1502,6 @@ export function notifyLogout(): void;
|
|
|
1383
1502
|
* Services to be called after the login is successful,
|
|
1384
1503
|
* This should be called after the cookie is set for cookie auth or
|
|
1385
1504
|
* after the token is set for cookieless.
|
|
1386
|
-
*
|
|
1387
1505
|
* @return {Promise<void>}
|
|
1388
1506
|
* @example
|
|
1389
1507
|
* ```js
|
|
@@ -1690,7 +1808,11 @@ export enum HomeLeftNavItem {
|
|
|
1690
1808
|
/**
|
|
1691
1809
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1692
1810
|
*/
|
|
1693
|
-
SpotIQAnalysis = "spotiq-analysis"
|
|
1811
|
+
SpotIQAnalysis = "spotiq-analysis",
|
|
1812
|
+
/**
|
|
1813
|
+
* @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
|
|
1814
|
+
*/
|
|
1815
|
+
LiveboardSchedules = "liveboard-schedules"
|
|
1694
1816
|
}
|
|
1695
1817
|
export type DOMSelector = string | HTMLElement;
|
|
1696
1818
|
/**
|
|
@@ -1917,13 +2039,6 @@ export interface EmbedConfig {
|
|
|
1917
2039
|
* @default false
|
|
1918
2040
|
*/
|
|
1919
2041
|
queueMultiRenders?: boolean;
|
|
1920
|
-
/**
|
|
1921
|
-
* Dynamic CSS URL to be injected in the loaded application.
|
|
1922
|
-
* You would also need to set `style-src` in the CSP settings.
|
|
1923
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1924
|
-
* @default ''
|
|
1925
|
-
*/
|
|
1926
|
-
customCssUrl?: string;
|
|
1927
2042
|
/**
|
|
1928
2043
|
* [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
|
|
1929
2044
|
* additional call. This is slower and should be avoided. Listen to the
|
|
@@ -2052,6 +2167,12 @@ export interface EmbedConfig {
|
|
|
2052
2167
|
* @version SDK: 1.28.5 | Thoughtspot: *
|
|
2053
2168
|
*/
|
|
2054
2169
|
disableTokenVerification?: boolean;
|
|
2170
|
+
/**
|
|
2171
|
+
* This flag is used to disable showing the login failure page in the embedded app.
|
|
2172
|
+
*
|
|
2173
|
+
* @version SDK 1.32.3 | Thoughtspot: *
|
|
2174
|
+
*/
|
|
2175
|
+
disableLoginFailurePage?: boolean;
|
|
2055
2176
|
}
|
|
2056
2177
|
export interface LayoutConfig {
|
|
2057
2178
|
}
|
|
@@ -2174,11 +2295,12 @@ export interface ViewConfig {
|
|
|
2174
2295
|
*/
|
|
2175
2296
|
visibleActions?: Action[];
|
|
2176
2297
|
/**
|
|
2177
|
-
* Show alert messages and toast messages in the embedded
|
|
2298
|
+
* Show alert messages and toast messages in the embedded
|
|
2299
|
+
* view in full app embed.
|
|
2178
2300
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2179
2301
|
* @example
|
|
2180
2302
|
* ```js
|
|
2181
|
-
* const embed = new
|
|
2303
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
2182
2304
|
* ... // other options
|
|
2183
2305
|
* showAlerts:true,
|
|
2184
2306
|
* })
|
|
@@ -2475,6 +2597,43 @@ export interface ViewConfig {
|
|
|
2475
2597
|
* @version SDK: 1.31.2 | ThoughtSpot: 10.0.0.cl
|
|
2476
2598
|
*/
|
|
2477
2599
|
enableV2Shell_experimental?: boolean;
|
|
2600
|
+
/**
|
|
2601
|
+
* To set the initial state of the search bar in case of saved-answers.
|
|
2602
|
+
* @default true
|
|
2603
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
2604
|
+
* @example
|
|
2605
|
+
* ```js
|
|
2606
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2607
|
+
* liveboardId: '123',
|
|
2608
|
+
* collapseSearchBar: true
|
|
2609
|
+
* });
|
|
2610
|
+
*/
|
|
2611
|
+
collapseSearchBar?: boolean;
|
|
2612
|
+
/**
|
|
2613
|
+
* This flag can be used to disable links inside the embedded app,
|
|
2614
|
+
* and disables redirection of links in a new tab.
|
|
2615
|
+
* @example
|
|
2616
|
+
* ```js
|
|
2617
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2618
|
+
* disableRedirectionLinksInNewTab: true
|
|
2619
|
+
* });
|
|
2620
|
+
* ```
|
|
2621
|
+
* @version SDK: 1.32.1 | ThoughtSpot: 10.3.0.cl
|
|
2622
|
+
*/
|
|
2623
|
+
disableRedirectionLinksInNewTab?: boolean;
|
|
2624
|
+
/**
|
|
2625
|
+
* Flag to control Data panel experience
|
|
2626
|
+
* @default true
|
|
2627
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
2628
|
+
* @example
|
|
2629
|
+
* ```js
|
|
2630
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2631
|
+
* ... // other options
|
|
2632
|
+
* dataPanelV2: true,
|
|
2633
|
+
* })
|
|
2634
|
+
* ```
|
|
2635
|
+
*/
|
|
2636
|
+
dataPanelV2?: boolean;
|
|
2478
2637
|
}
|
|
2479
2638
|
/**
|
|
2480
2639
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -2671,6 +2830,28 @@ export interface RuntimeParameter {
|
|
|
2671
2830
|
* console.log('Drilldown event', drilldown);
|
|
2672
2831
|
* }));
|
|
2673
2832
|
* ```
|
|
2833
|
+
*
|
|
2834
|
+
* If you are using React components for embedding, you can register to any
|
|
2835
|
+
* events from the `EmbedEvent` list by using the `on<EventName>` convention.
|
|
2836
|
+
* For example,`onAlert`, `onCopyToClipboard` and so on.
|
|
2837
|
+
*
|
|
2838
|
+
* @example
|
|
2839
|
+
* ```js
|
|
2840
|
+
* // ...
|
|
2841
|
+
* const MyComponent = ({ dataSources }) => {
|
|
2842
|
+
* const onLoad = () => {
|
|
2843
|
+
* console.log(EmbedEvent.Load, {});
|
|
2844
|
+
* };
|
|
2845
|
+
*
|
|
2846
|
+
* return (
|
|
2847
|
+
* <SearchEmbed
|
|
2848
|
+
* dataSources={dataSources}
|
|
2849
|
+
* onLoad = {logEvent("Load")}
|
|
2850
|
+
* />
|
|
2851
|
+
* );
|
|
2852
|
+
* };
|
|
2853
|
+
* ```
|
|
2854
|
+
*
|
|
2674
2855
|
* @group Events
|
|
2675
2856
|
*/
|
|
2676
2857
|
export enum EmbedEvent {
|
|
@@ -3539,21 +3720,61 @@ export enum EmbedEvent {
|
|
|
3539
3720
|
*/
|
|
3540
3721
|
Rename = "rename",
|
|
3541
3722
|
/**
|
|
3542
|
-
* Emitted
|
|
3723
|
+
* Emitted if the user wants to intercept the search execution
|
|
3724
|
+
* and implement logic to decide whether to run the search or not
|
|
3725
|
+
*
|
|
3726
|
+
* Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
|
|
3727
|
+
* for this embed event to get emitted.
|
|
3728
|
+
*
|
|
3729
|
+
* @param: payload
|
|
3730
|
+
* @param: responder
|
|
3731
|
+
* Contains elements that lets developers define whether ThoughtSpot
|
|
3732
|
+
* will run the search or not, and if not, which error message to provide.
|
|
3543
3733
|
*
|
|
3544
|
-
*
|
|
3545
|
-
*
|
|
3734
|
+
* execute: When execute returns true, the search will be run.
|
|
3735
|
+
* When execute returns false, the search will not be executed.
|
|
3546
3736
|
*
|
|
3737
|
+
* error: Developers can customize the user facing message when execute is
|
|
3738
|
+
* set to false using the error parameter in responder
|
|
3739
|
+
*
|
|
3740
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3741
|
+
*
|
|
3742
|
+
* @example
|
|
3547
3743
|
*```js
|
|
3548
|
-
*
|
|
3744
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
3549
3745
|
* (payload, responder) => {
|
|
3550
3746
|
* responder({
|
|
3551
3747
|
* data: {
|
|
3552
|
-
* execute:
|
|
3553
|
-
*
|
|
3748
|
+
* execute:false,
|
|
3749
|
+
* error: {
|
|
3750
|
+
* //Provide a custom error message to explain to your end user
|
|
3751
|
+
* //why their search did not run
|
|
3752
|
+
* errorText: "This search query cannot be run.
|
|
3753
|
+
* Please contact your administrator for more details."
|
|
3754
|
+
* }
|
|
3755
|
+
* }})
|
|
3756
|
+
* })
|
|
3757
|
+
* ```
|
|
3758
|
+
*
|
|
3759
|
+
*```js
|
|
3760
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
3761
|
+
* (payload, responder) => {
|
|
3762
|
+
* const query = payload.data.data.answer.search_query
|
|
3763
|
+
* responder({
|
|
3764
|
+
* data: {
|
|
3765
|
+
* // returns true as long as the query does not include
|
|
3766
|
+
* // both the 'sales' AND the 'county' column
|
|
3767
|
+
* execute: !(query.includes("sales")&&query.includes("county")),
|
|
3768
|
+
* error: {
|
|
3769
|
+
* //Provide a custom error message to explain to your end user
|
|
3770
|
+
* // why their search did not run, and which searches are accepted by your custom logic.
|
|
3771
|
+
* errorText: "You can't use this query :" + query + ".
|
|
3772
|
+
* The 'sales' measures can never be used at the 'county' level.
|
|
3773
|
+
* Please try another measure, or remove 'county' from your search."
|
|
3774
|
+
* }
|
|
3775
|
+
* }})
|
|
3554
3776
|
* })
|
|
3555
3777
|
*```
|
|
3556
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3557
3778
|
*/
|
|
3558
3779
|
OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
|
|
3559
3780
|
/**
|
|
@@ -3571,7 +3792,7 @@ export enum EmbedEvent {
|
|
|
3571
3792
|
}
|
|
3572
3793
|
/**
|
|
3573
3794
|
* Event types that can be triggered by the host application
|
|
3574
|
-
* to the embedded ThoughtSpot app
|
|
3795
|
+
* to the embedded ThoughtSpot app.
|
|
3575
3796
|
*
|
|
3576
3797
|
* To trigger an event use the corresponding
|
|
3577
3798
|
* {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
|
|
@@ -3588,6 +3809,40 @@ export enum EmbedEvent {
|
|
|
3588
3809
|
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
|
|
3589
3810
|
* ]);
|
|
3590
3811
|
* ```
|
|
3812
|
+
* @example
|
|
3813
|
+
* If using React components to embed, use the format shown in this example:
|
|
3814
|
+
*
|
|
3815
|
+
* ```js
|
|
3816
|
+
* const selectVizs = () => {
|
|
3817
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, [
|
|
3818
|
+
* "715e4613-c891-4884-be44-aa8d13701c06",
|
|
3819
|
+
* "3f84d633-e325-44b2-be25-c6650e5a49cf"
|
|
3820
|
+
* ]);
|
|
3821
|
+
* };
|
|
3822
|
+
* ```
|
|
3823
|
+
*
|
|
3824
|
+
*
|
|
3825
|
+
* You can also attach an Embed event to a Host event to trigger
|
|
3826
|
+
* a specific action as shown in this example:
|
|
3827
|
+
*
|
|
3828
|
+
* @example
|
|
3829
|
+
* ```js
|
|
3830
|
+
* const EmbeddedComponent = () => {
|
|
3831
|
+
* const embedRef = useRef(null); // import { useRef } from react
|
|
3832
|
+
* const onLiveboardRendered = () => {
|
|
3833
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
3834
|
+
* };
|
|
3835
|
+
*
|
|
3836
|
+
* return (
|
|
3837
|
+
* <LiveboardEmbed
|
|
3838
|
+
* ref={embedRef}
|
|
3839
|
+
* liveboardId="<liveboard-guid>"
|
|
3840
|
+
* onLiveboardRendered={onLiveboardRendered}
|
|
3841
|
+
* />
|
|
3842
|
+
* );
|
|
3843
|
+
* }
|
|
3844
|
+
* ```
|
|
3845
|
+
*
|
|
3591
3846
|
* @group Events
|
|
3592
3847
|
*/
|
|
3593
3848
|
export enum HostEvent {
|
|
@@ -3671,6 +3926,15 @@ export enum HostEvent {
|
|
|
3671
3926
|
* @hidden
|
|
3672
3927
|
*/
|
|
3673
3928
|
Reload = "reload",
|
|
3929
|
+
/**
|
|
3930
|
+
* Get current iframe src
|
|
3931
|
+
* @example
|
|
3932
|
+
* ```js
|
|
3933
|
+
* const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
|
|
3934
|
+
* ```
|
|
3935
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
3936
|
+
*/
|
|
3937
|
+
GetIframeUrl = "GetIframeUrl",
|
|
3674
3938
|
/**
|
|
3675
3939
|
* Display specific visualizations on a Liveboard.
|
|
3676
3940
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
@@ -3937,13 +4201,15 @@ export enum HostEvent {
|
|
|
3937
4201
|
*
|
|
3938
4202
|
* @example
|
|
3939
4203
|
* ```js
|
|
3940
|
-
*
|
|
4204
|
+
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
3941
4205
|
* ```
|
|
3942
4206
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3943
4207
|
*/
|
|
3944
4208
|
CreateMonitor = "createMonitor",
|
|
3945
4209
|
/**
|
|
3946
|
-
* Trigger the **Manage alerts** action on a
|
|
4210
|
+
* Trigger the **Manage alerts** action on a KPI chart
|
|
4211
|
+
* in a visualization or saved Answer.
|
|
4212
|
+
*
|
|
3947
4213
|
* @param - an object with `vizId` as a key
|
|
3948
4214
|
* @example
|
|
3949
4215
|
* ```js
|
|
@@ -3951,6 +4217,16 @@ export enum HostEvent {
|
|
|
3951
4217
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
3952
4218
|
* })
|
|
3953
4219
|
* ```
|
|
4220
|
+
*
|
|
4221
|
+
* @example
|
|
4222
|
+
* ```js
|
|
4223
|
+
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
4224
|
+
* ```
|
|
4225
|
+
*
|
|
4226
|
+
* @example
|
|
4227
|
+
* ```js
|
|
4228
|
+
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
4229
|
+
* ```
|
|
3954
4230
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3955
4231
|
*/
|
|
3956
4232
|
ManageMonitor = "manageMonitor",
|
|
@@ -4260,11 +4536,24 @@ export enum HostEvent {
|
|
|
4260
4536
|
* filter: {
|
|
4261
4537
|
* column: "item type",
|
|
4262
4538
|
* oper: "IN",
|
|
4263
|
-
* values: ["bags","shirts"]
|
|
4539
|
+
* values: ["bags","shirts"]
|
|
4264
4540
|
* }
|
|
4265
4541
|
* });
|
|
4266
4542
|
* ```
|
|
4267
4543
|
* @example
|
|
4544
|
+
* ```js
|
|
4545
|
+
*
|
|
4546
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
4547
|
+
* filter: {
|
|
4548
|
+
* column: "date",
|
|
4549
|
+
* oper: "EQ",
|
|
4550
|
+
* values: ["JULY","2023"],
|
|
4551
|
+
* type: "MONTH_YEAR"
|
|
4552
|
+
* }
|
|
4553
|
+
* });
|
|
4554
|
+
* ```
|
|
4555
|
+
*
|
|
4556
|
+
* @example
|
|
4268
4557
|
*
|
|
4269
4558
|
* ```js
|
|
4270
4559
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
@@ -4281,7 +4570,8 @@ export enum HostEvent {
|
|
|
4281
4570
|
* {
|
|
4282
4571
|
* column: "Date",
|
|
4283
4572
|
* oper: 'EQ',
|
|
4284
|
-
* values: ["
|
|
4573
|
+
* values: ["2023-07-31"],
|
|
4574
|
+
* types: "EXACT_DATE"
|
|
4285
4575
|
* }]
|
|
4286
4576
|
* });
|
|
4287
4577
|
* ```
|
|
@@ -4467,7 +4757,6 @@ export enum Param {
|
|
|
4467
4757
|
ViewPortHeight = "viewPortHeight",
|
|
4468
4758
|
ViewPortWidth = "viewPortWidth",
|
|
4469
4759
|
VisibleActions = "visibleAction",
|
|
4470
|
-
CustomCSSUrl = "customCssUrl",
|
|
4471
4760
|
DisableLoginRedirect = "disableLoginRedirect",
|
|
4472
4761
|
visibleVizs = "pinboardVisibleVizs",
|
|
4473
4762
|
LiveboardV2Enabled = "isPinboardV2Enabled",
|
|
@@ -4522,7 +4811,12 @@ export enum Param {
|
|
|
4522
4811
|
Enable2ColumnLayout = "enable2ColumnLayout",
|
|
4523
4812
|
IsFullAppEmbed = "isFullAppEmbed",
|
|
4524
4813
|
IsOnBeforeGetVizDataInterceptEnabled = "isOnBeforeGetVizDataInterceptEnabled",
|
|
4525
|
-
FocusSearchBarOnRender = "focusSearchBarOnRender"
|
|
4814
|
+
FocusSearchBarOnRender = "focusSearchBarOnRender",
|
|
4815
|
+
DisableRedirectionLinksInNewTab = "disableRedirectionLinksInNewTab",
|
|
4816
|
+
HomePageSearchBarMode = "homePageSearchBarMode",
|
|
4817
|
+
ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
|
|
4818
|
+
ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
|
|
4819
|
+
LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled"
|
|
4526
4820
|
}
|
|
4527
4821
|
/**
|
|
4528
4822
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4671,6 +4965,7 @@ export enum Action {
|
|
|
4671
4965
|
*/
|
|
4672
4966
|
ConfigureFilter = "configureFilter",
|
|
4673
4967
|
CollapseDataSources = "collapseDataSources",
|
|
4968
|
+
CollapseDataPanel = "collapseDataPanel",
|
|
4674
4969
|
/**
|
|
4675
4970
|
* The **Choose sources** button on Search page.
|
|
4676
4971
|
* Allows selecting data sources for search queries.
|
|
@@ -5066,12 +5361,15 @@ export enum Action {
|
|
|
5066
5361
|
* The Create alert action on KPI charts.
|
|
5067
5362
|
* @example
|
|
5068
5363
|
* ```js
|
|
5069
|
-
* disabledActions: [Action.CreateMonitor
|
|
5364
|
+
* disabledActions: [Action.CreateMonitor]
|
|
5070
5365
|
* ```
|
|
5071
5366
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
5072
5367
|
*/
|
|
5073
5368
|
CreateMonitor = "createMonitor",
|
|
5074
5369
|
/**
|
|
5370
|
+
* @deprecated
|
|
5371
|
+
* Reports errors
|
|
5372
|
+
*
|
|
5075
5373
|
* @example
|
|
5076
5374
|
* ```js
|
|
5077
5375
|
* disabledActions: [Action.ReportError]
|
|
@@ -5296,35 +5594,84 @@ export enum Action {
|
|
|
5296
5594
|
*/
|
|
5297
5595
|
RenameModalTitleDescription = "renameModalTitleDescription",
|
|
5298
5596
|
/**
|
|
5597
|
+
*
|
|
5598
|
+
* @example
|
|
5599
|
+
* ```js
|
|
5600
|
+
* disabledActions: [Action.RequestVerification]
|
|
5601
|
+
* ```
|
|
5299
5602
|
*
|
|
5300
5603
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5301
5604
|
*/
|
|
5302
5605
|
RequestVerification = "requestVerification",
|
|
5303
5606
|
/**
|
|
5607
|
+
*
|
|
5608
|
+
* Allows users to mark a Liveboard as verified.
|
|
5609
|
+
*
|
|
5610
|
+
* @example
|
|
5611
|
+
* ```js
|
|
5612
|
+
* disabledActions: [Action.MarkAsVerified]
|
|
5613
|
+
* ```
|
|
5304
5614
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5305
5615
|
*/
|
|
5306
5616
|
MarkAsVerified = "markAsVerified",
|
|
5307
5617
|
/**
|
|
5618
|
+
* The **Add Tab** action on a Liveboard.
|
|
5619
|
+
* Allows adding a new tab to a Liveboard view.
|
|
5620
|
+
*
|
|
5621
|
+
* @example
|
|
5622
|
+
* ```js
|
|
5623
|
+
* disabledActions: [Action.AddTab]
|
|
5624
|
+
* ```
|
|
5308
5625
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5309
5626
|
*/
|
|
5310
5627
|
AddTab = "addTab",
|
|
5311
5628
|
/**
|
|
5629
|
+
*
|
|
5630
|
+
* Initiates contextual change analysis on KPI charts.
|
|
5631
|
+
*
|
|
5632
|
+
* @example
|
|
5633
|
+
* ```js
|
|
5634
|
+
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
5635
|
+
* ```
|
|
5312
5636
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5313
5637
|
*/
|
|
5314
5638
|
EnableContextualChangeAnalysis = "enableContextualChangeAnalysis",
|
|
5315
5639
|
/**
|
|
5640
|
+
*
|
|
5641
|
+
* @example
|
|
5642
|
+
* ```js
|
|
5643
|
+
* disabledActions: [Action.ShowSageQuery]
|
|
5644
|
+
* ```
|
|
5645
|
+
*
|
|
5316
5646
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5317
5647
|
*/
|
|
5318
5648
|
ShowSageQuery = "showSageQuery",
|
|
5319
5649
|
/**
|
|
5650
|
+
*
|
|
5651
|
+
* @example
|
|
5652
|
+
* ```js
|
|
5653
|
+
* disabledActions: [Action.EditSageAnswer]
|
|
5654
|
+
* ```
|
|
5320
5655
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5321
5656
|
*/
|
|
5322
5657
|
EditSageAnswer = "editSageAnswer",
|
|
5323
5658
|
/**
|
|
5659
|
+
*
|
|
5660
|
+
* This action allows users to send feedback on AI-generated Answers.
|
|
5661
|
+
*
|
|
5662
|
+
* @example
|
|
5663
|
+
* ```js
|
|
5664
|
+
* disabledActions: [Action.SageAnswerFeedback]
|
|
5665
|
+
* ```
|
|
5324
5666
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5325
5667
|
*/
|
|
5326
5668
|
SageAnswerFeedback = "sageAnswerFeedback",
|
|
5327
5669
|
/**
|
|
5670
|
+
*
|
|
5671
|
+
* @example
|
|
5672
|
+
* ```js
|
|
5673
|
+
* disabledActions: [Action.ModifySageAnswer]
|
|
5674
|
+
* ```
|
|
5328
5675
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5329
5676
|
*/
|
|
5330
5677
|
ModifySageAnswer = "modifySageAnswer",
|
|
@@ -5391,7 +5738,7 @@ export enum Action {
|
|
|
5391
5738
|
*
|
|
5392
5739
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
5393
5740
|
*/
|
|
5394
|
-
CreateLiveboard = "
|
|
5741
|
+
CreateLiveboard = "createLiveboard",
|
|
5395
5742
|
/**
|
|
5396
5743
|
* Action ID for to hide Verified Liveboard Banner
|
|
5397
5744
|
* @example
|
|
@@ -5445,7 +5792,71 @@ export enum Action {
|
|
|
5445
5792
|
* ```
|
|
5446
5793
|
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
5447
5794
|
*/
|
|
5448
|
-
AIHighlights = "AIHighlights"
|
|
5795
|
+
AIHighlights = "AIHighlights",
|
|
5796
|
+
/**
|
|
5797
|
+
* Action ID for edit schedule action on schedule on homepage
|
|
5798
|
+
* @example
|
|
5799
|
+
* ```js
|
|
5800
|
+
* disabledActions: [Action.EditScheduleHomepage]
|
|
5801
|
+
* ```
|
|
5802
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5803
|
+
*/
|
|
5804
|
+
EditScheduleHomepage = "editScheduleHomepage",
|
|
5805
|
+
/**
|
|
5806
|
+
* Action ID for pause schedule action on schedule on homepage
|
|
5807
|
+
* @example
|
|
5808
|
+
* ```js
|
|
5809
|
+
* disabledActions: [Action.PauseScheduleHomepage]
|
|
5810
|
+
* ```
|
|
5811
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5812
|
+
*/
|
|
5813
|
+
PauseScheduleHomepage = "pauseScheduleHomepage",
|
|
5814
|
+
/**
|
|
5815
|
+
* Action ID for view schedule run action on schedule on homepage
|
|
5816
|
+
* @example
|
|
5817
|
+
* ```js
|
|
5818
|
+
* disabledActions: [Action.ViewScheduleRunHomepage]
|
|
5819
|
+
* ```
|
|
5820
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5821
|
+
*/
|
|
5822
|
+
ViewScheduleRunHomepage = "viewScheduleRunHomepage",
|
|
5823
|
+
/**
|
|
5824
|
+
* Action ID for unsubscribe schedule action on schedule on homepage
|
|
5825
|
+
* @example
|
|
5826
|
+
* ```js
|
|
5827
|
+
* disabledActions: [Action.UnsubscribeScheduleHomepage]
|
|
5828
|
+
* ```
|
|
5829
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5830
|
+
*/
|
|
5831
|
+
UnsubscribeScheduleHomepage = "unsubscribeScheduleHomepage",
|
|
5832
|
+
/**
|
|
5833
|
+
* The **Manage Tags** action on Homepage Favourite Module.
|
|
5834
|
+
*
|
|
5835
|
+
* @example
|
|
5836
|
+
* ```js
|
|
5837
|
+
* disabledActions: [Action.ManageTags]
|
|
5838
|
+
* ```
|
|
5839
|
+
* @version SDK : 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5840
|
+
*/
|
|
5841
|
+
ManageTags = "manageTags",
|
|
5842
|
+
/**
|
|
5843
|
+
* Action ID for delete schedule action on schedule on homepage
|
|
5844
|
+
* @example
|
|
5845
|
+
* ```js
|
|
5846
|
+
* disabledActions: [Action.DeleteScheduleHomepage]
|
|
5847
|
+
* ```
|
|
5848
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5849
|
+
*/
|
|
5850
|
+
DeleteScheduleHomepage = "deleteScheduleHomepage",
|
|
5851
|
+
/**
|
|
5852
|
+
* The **Analyze CTA** action on KPI chart.
|
|
5853
|
+
* @example
|
|
5854
|
+
* ```js
|
|
5855
|
+
* disabledActions: [Action.KPIAnalysisCTA]
|
|
5856
|
+
* ```
|
|
5857
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5858
|
+
*/
|
|
5859
|
+
KPIAnalysisCTA = "kpiAnalysisCTA"
|
|
5449
5860
|
}
|
|
5450
5861
|
export interface AnswerServiceType {
|
|
5451
5862
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -5601,9 +6012,12 @@ export interface CustomCssVariables {
|
|
|
5601
6012
|
*/
|
|
5602
6013
|
'--ts-var-root-text-transform'?: string;
|
|
5603
6014
|
/**
|
|
5604
|
-
*
|
|
5605
|
-
*
|
|
5606
|
-
*
|
|
6015
|
+
* Font color of the text on toggle buttons such as
|
|
6016
|
+
* **All**, **Answers**, and **Liveboards** on the Home page (Classic experience),
|
|
6017
|
+
* the text color of the chart and table tiles on Home page (New modular Homepage experience),
|
|
6018
|
+
* and title text on the AI-generated charts and tables.
|
|
6019
|
+
* The default color code is #2770EF.
|
|
6020
|
+
*
|
|
5607
6021
|
*/
|
|
5608
6022
|
'--ts-var-application-color'?: string;
|
|
5609
6023
|
/**
|
|
@@ -5714,6 +6128,10 @@ export interface CustomCssVariables {
|
|
|
5714
6128
|
* Background color of the primary buttons on hover.
|
|
5715
6129
|
*/
|
|
5716
6130
|
'--ts-var-button--primary--hover-background'?: string;
|
|
6131
|
+
/**
|
|
6132
|
+
* Backgroud color of the primary buttons when active.
|
|
6133
|
+
*/
|
|
6134
|
+
'--ts-var-button--primary--active-background'?: string;
|
|
5717
6135
|
/**
|
|
5718
6136
|
* Font color of the text on the secondary buttons.
|
|
5719
6137
|
*/
|
|
@@ -5730,6 +6148,10 @@ export interface CustomCssVariables {
|
|
|
5730
6148
|
* Background color of the secondary button on hover.
|
|
5731
6149
|
*/
|
|
5732
6150
|
'--ts-var-button--secondary--hover-background'?: string;
|
|
6151
|
+
/**
|
|
6152
|
+
* Backgroud color of the secondary buttons when active.
|
|
6153
|
+
*/
|
|
6154
|
+
'--ts-var-button--secondary--active-background'?: string;
|
|
5733
6155
|
/**
|
|
5734
6156
|
* Font color of the tertiary button. For example, the *Undo*, *Redo*, and *Reset*
|
|
5735
6157
|
* buttons on the *Search* page.
|
|
@@ -5743,6 +6165,10 @@ export interface CustomCssVariables {
|
|
|
5743
6165
|
* Background color of the tertiary button when a user hovers over these buttons.
|
|
5744
6166
|
*/
|
|
5745
6167
|
'--ts-var-button--tertiary--hover-background'?: string;
|
|
6168
|
+
/**
|
|
6169
|
+
* Backgroud color of the tertiary buttons when active.
|
|
6170
|
+
*/
|
|
6171
|
+
'--ts-var-button--tertiary--active-background'?: string;
|
|
5746
6172
|
/**
|
|
5747
6173
|
* Font color of the title text of a visualization or Answer.
|
|
5748
6174
|
*/
|
|
@@ -5918,6 +6344,34 @@ export interface CustomCssVariables {
|
|
|
5918
6344
|
* Background for favorite carousel find your favorites card in modular home.
|
|
5919
6345
|
*/
|
|
5920
6346
|
'--ts-var-home-favorite-suggestion-card-background'?: string;
|
|
6347
|
+
/**
|
|
6348
|
+
* Border color of checkbox in error state.
|
|
6349
|
+
*/
|
|
6350
|
+
'--ts-var-checkbox-error-border'?: string;
|
|
6351
|
+
/**
|
|
6352
|
+
* Border color of checkbox.
|
|
6353
|
+
*/
|
|
6354
|
+
'--ts-var-checkbox-border-color'?: string;
|
|
6355
|
+
/**
|
|
6356
|
+
* Border color of checkbox in hover state.
|
|
6357
|
+
*/
|
|
6358
|
+
'--ts-var-checkbox-hover-border'?: string;
|
|
6359
|
+
/**
|
|
6360
|
+
* Border and font color of checkbox in active state.
|
|
6361
|
+
*/
|
|
6362
|
+
'--ts-var-checkbox-active-color'?: string;
|
|
6363
|
+
/**
|
|
6364
|
+
* Border color and font color of checkbox in checked state.
|
|
6365
|
+
*/
|
|
6366
|
+
'--ts-var-checkbox-checked-color'?: string;
|
|
6367
|
+
/**
|
|
6368
|
+
* Border and font color of checkbox in disabled state.
|
|
6369
|
+
*/
|
|
6370
|
+
'--ts-var-checkbox-checked-disabled'?: string;
|
|
6371
|
+
/**
|
|
6372
|
+
* Background color of checkbox.
|
|
6373
|
+
*/
|
|
6374
|
+
'--ts-var-checkbox-background-color'?: string;
|
|
5921
6375
|
}
|
|
5922
6376
|
|
|
5923
6377
|
/**
|
|
@@ -6159,6 +6613,7 @@ export class AnswerService {
|
|
|
6159
6613
|
* @returns
|
|
6160
6614
|
*/
|
|
6161
6615
|
addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter['values']): Promise<any>;
|
|
6616
|
+
getSQLQuery(): Promise<string>;
|
|
6162
6617
|
/**
|
|
6163
6618
|
* Fetch data from the answer.
|
|
6164
6619
|
* @param offset
|
|
@@ -6177,6 +6632,16 @@ export class AnswerService {
|
|
|
6177
6632
|
* @returns Response
|
|
6178
6633
|
*/
|
|
6179
6634
|
fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
|
|
6635
|
+
/**
|
|
6636
|
+
* Fetch the data for the answer as a PNG blob. This might be
|
|
6637
|
+
* quicker for larger data.
|
|
6638
|
+
* @param userLocale
|
|
6639
|
+
* @param includeInfo
|
|
6640
|
+
* @param omitBackground Omit the background in the PNG
|
|
6641
|
+
* @param deviceScaleFactor The scale factor for the PNG
|
|
6642
|
+
* @return Response
|
|
6643
|
+
*/
|
|
6644
|
+
fetchPNGBlob(userLocale?: string, includeInfo?: boolean, omitBackground?: boolean, deviceScaleFactor?: number): Promise<Response>;
|
|
6180
6645
|
/**
|
|
6181
6646
|
* Just get the internal URL for this answer's data
|
|
6182
6647
|
* as a CSV blob.
|
|
@@ -6185,6 +6650,14 @@ export class AnswerService {
|
|
|
6185
6650
|
* @returns
|
|
6186
6651
|
*/
|
|
6187
6652
|
getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
|
|
6653
|
+
/**
|
|
6654
|
+
* Just get the internal URL for this answer's data
|
|
6655
|
+
* as a PNG blob.
|
|
6656
|
+
* @param userLocale
|
|
6657
|
+
* @param omitBackground
|
|
6658
|
+
* @param deviceScaleFactor
|
|
6659
|
+
*/
|
|
6660
|
+
getFetchPNGBlobUrl(userLocale?: string, omitBackground?: boolean, deviceScaleFactor?: number): string;
|
|
6188
6661
|
/**
|
|
6189
6662
|
* Get underlying data given a point and the output column names.
|
|
6190
6663
|
* In case of a context menu action, the selectedPoints are
|
|
@@ -6216,6 +6689,9 @@ export class AnswerService {
|
|
|
6216
6689
|
*/
|
|
6217
6690
|
getSession(): SessionInterface;
|
|
6218
6691
|
getAnswer(): Promise<any>;
|
|
6692
|
+
getTML(): Promise<any>;
|
|
6693
|
+
addDisplayedVizToLiveboard(liveboardId: string): Promise<any>;
|
|
6694
|
+
setTMLOverride(override: any): void;
|
|
6219
6695
|
}
|
|
6220
6696
|
|
|
6221
6697
|
/**
|
|
@@ -6237,6 +6713,10 @@ export const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
|
|
|
6237
6713
|
export const EndPoints: {
|
|
6238
6714
|
CONFIG: string;
|
|
6239
6715
|
};
|
|
6716
|
+
/**
|
|
6717
|
+
* Enum of mixpanel events
|
|
6718
|
+
* @hidden
|
|
6719
|
+
*/
|
|
6240
6720
|
export const MIXPANEL_EVENT: {
|
|
6241
6721
|
VISUAL_SDK_RENDER_START: string;
|
|
6242
6722
|
VISUAL_SDK_CALLED_INIT: string;
|
|
@@ -6282,16 +6762,33 @@ export function testResetMixpanel(): void;
|
|
|
6282
6762
|
*/
|
|
6283
6763
|
export const tokenizedFetch: typeof fetch;
|
|
6284
6764
|
|
|
6285
|
-
export function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
6286
6765
|
/**
|
|
6287
|
-
*
|
|
6288
|
-
* @
|
|
6289
|
-
*
|
|
6290
|
-
*
|
|
6291
|
-
* ```
|
|
6292
|
-
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
6293
|
-
* @group Authentication / Init
|
|
6766
|
+
*
|
|
6767
|
+
* @param query string
|
|
6768
|
+
* @param worksheetId string
|
|
6769
|
+
* @returns answerService AnswerService
|
|
6294
6770
|
*/
|
|
6771
|
+
export const getAnswerFromQuery: (query: string, worksheetId: string) => Promise<{
|
|
6772
|
+
answer: AnswerService;
|
|
6773
|
+
suggestion: any;
|
|
6774
|
+
}>;
|
|
6775
|
+
|
|
6776
|
+
export const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
|
|
6777
|
+
|
|
6778
|
+
/**
|
|
6779
|
+
*
|
|
6780
|
+
* @param embedConfig
|
|
6781
|
+
*/
|
|
6782
|
+
export function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
6783
|
+
/**
|
|
6784
|
+
* Resets the auth token and a new token will be fetched on the next request.
|
|
6785
|
+
* @example
|
|
6786
|
+
* ```js
|
|
6787
|
+
* resetCachedAuthToken();
|
|
6788
|
+
* ```
|
|
6789
|
+
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
6790
|
+
* @group Authentication / Init
|
|
6791
|
+
*/
|
|
6295
6792
|
export const resetCachedAuthToken: () => void;
|
|
6296
6793
|
|
|
6297
6794
|
/**
|
|
@@ -6359,7 +6856,7 @@ export class TsEmbed {
|
|
|
6359
6856
|
* @param queryParams
|
|
6360
6857
|
* @returns queryParams
|
|
6361
6858
|
*/
|
|
6362
|
-
protected getBaseQueryParams(queryParams?:
|
|
6859
|
+
protected getBaseQueryParams(queryParams?: Record<any, any>): Record<any, any>;
|
|
6363
6860
|
/**
|
|
6364
6861
|
* Constructs the base URL string to load v1 of the ThoughtSpot app.
|
|
6365
6862
|
* This is used for embedding Liveboards, visualizations, and full application.
|
|
@@ -6486,7 +6983,9 @@ export class TsEmbed {
|
|
|
6486
6983
|
* THOUGHTSPOT URL params starts with a prefix "ts-"
|
|
6487
6984
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
6488
6985
|
*/
|
|
6489
|
-
getThoughtSpotPostUrlParams(
|
|
6986
|
+
getThoughtSpotPostUrlParams(additionalParams?: {
|
|
6987
|
+
[key: string]: string | number;
|
|
6988
|
+
}): string;
|
|
6490
6989
|
/**
|
|
6491
6990
|
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
6492
6991
|
* @version SDK: 1.19.1 | ThoughtSpot: *
|
|
@@ -6577,7 +7076,6 @@ export class V1Embed extends TsEmbed {
|
|
|
6577
7076
|
on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
|
|
6578
7077
|
/**
|
|
6579
7078
|
* Only for testing purposes.
|
|
6580
|
-
*
|
|
6581
7079
|
* @hidden
|
|
6582
7080
|
*/
|
|
6583
7081
|
test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
|