@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
|
@@ -195,7 +195,44 @@ export const SageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & React.R
|
|
|
195
195
|
* ```
|
|
196
196
|
*/
|
|
197
197
|
export const PreRenderedSageEmbed: React.ForwardRefExoticComponent<SageEmbedProps & PreRenderProps & React.RefAttributes<_SageEmbed>>;
|
|
198
|
-
|
|
198
|
+
interface ConversationEmbedProps extends EmbedProps, ConversationViewConfig {
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* React component for LLM based conversation BI.
|
|
202
|
+
* @example
|
|
203
|
+
* ```tsx
|
|
204
|
+
* function Sage() {
|
|
205
|
+
* return <ConversationEmbed
|
|
206
|
+
* worksheetId="<worksheet-id-here>"
|
|
207
|
+
* searchOptions={{
|
|
208
|
+
* searchQuery: "<search query to start with>"
|
|
209
|
+
* }}
|
|
210
|
+
* ... other view config props or event listeners.
|
|
211
|
+
* />
|
|
212
|
+
* }
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
215
|
+
export const ConversationEmbed: React.ForwardRefExoticComponent<ConversationEmbedProps & React.RefAttributes<_ConversationEmbed>>;
|
|
216
|
+
/**
|
|
217
|
+
* React component for PreRendered Conversation embed.
|
|
218
|
+
*
|
|
219
|
+
* PreRenderedConversationEmbed will preRender the ConversationEmbed and will be hidden by
|
|
220
|
+
* default.
|
|
221
|
+
*
|
|
222
|
+
* SageEmbed with preRenderId passed will call showPreRender on the embed.
|
|
223
|
+
* @example
|
|
224
|
+
* ```tsx
|
|
225
|
+
* function LandingPageComponent() {
|
|
226
|
+
* return <PreRenderedConversationEmbed preRenderId="someId" worksheetId={"id-"} />
|
|
227
|
+
* }
|
|
228
|
+
* ```
|
|
229
|
+
* function MyComponent() {
|
|
230
|
+
* return <ConversationEmbed preRenderId="someId" worksheetId="id" />
|
|
231
|
+
* }
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
export const PreRenderedConversationEmbed: React.ForwardRefExoticComponent<SageEmbedProps & PreRenderProps & React.RefAttributes<_ConversationEmbed>>;
|
|
235
|
+
type EmbedComponent = typeof SearchEmbed | typeof AppEmbed | typeof LiveboardEmbed | typeof SearchBarEmbed | typeof SageEmbed | typeof ConversationEmbed;
|
|
199
236
|
/**
|
|
200
237
|
* Get a reference to the embed component to trigger events on the component.
|
|
201
238
|
* @example
|
|
@@ -504,6 +541,19 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
504
541
|
* ```
|
|
505
542
|
*/
|
|
506
543
|
collapseDataSources?: boolean;
|
|
544
|
+
/**
|
|
545
|
+
* If set to true, the data panel is collapsed on load,
|
|
546
|
+
* but can be expanded manually.
|
|
547
|
+
* @version: SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
|
|
548
|
+
* @example
|
|
549
|
+
* ```js
|
|
550
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
551
|
+
* ... // other options
|
|
552
|
+
* collapseDataPanel:true,
|
|
553
|
+
* })
|
|
554
|
+
* ```
|
|
555
|
+
*/
|
|
556
|
+
collapseDataPanel?: boolean;
|
|
507
557
|
/**
|
|
508
558
|
* Show or hide the data sources panel.
|
|
509
559
|
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
@@ -630,19 +680,6 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
630
680
|
* ```
|
|
631
681
|
*/
|
|
632
682
|
hideSearchBar?: boolean;
|
|
633
|
-
/**
|
|
634
|
-
* Flag to control Data panel experience
|
|
635
|
-
* @default false
|
|
636
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
637
|
-
* @example
|
|
638
|
-
* ```js
|
|
639
|
-
* const embed = new SearchEmbed('#tsEmbed', {
|
|
640
|
-
* ... // other options
|
|
641
|
-
* dataPanelV2:false,
|
|
642
|
-
* })
|
|
643
|
-
* ```
|
|
644
|
-
*/
|
|
645
|
-
dataPanelV2?: boolean;
|
|
646
683
|
/**
|
|
647
684
|
* Flag to set if last selected dataSource should be used
|
|
648
685
|
* @version: SDK: 1.24.0
|
|
@@ -652,6 +689,7 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
652
689
|
* To set the initial state of the search bar in case of saved-answers.
|
|
653
690
|
* @default false
|
|
654
691
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
692
|
+
* @deprecated Use {@link collapseSearchBar} instead
|
|
655
693
|
*/
|
|
656
694
|
collapseSearchBarInitially?: boolean;
|
|
657
695
|
/**
|
|
@@ -771,7 +809,11 @@ export declare enum Page {
|
|
|
771
809
|
/**
|
|
772
810
|
* SpotIQ listing page
|
|
773
811
|
*/
|
|
774
|
-
SpotIQ = "insights"
|
|
812
|
+
SpotIQ = "insights",
|
|
813
|
+
/**
|
|
814
|
+
* Monitor Alerts Page
|
|
815
|
+
*/
|
|
816
|
+
Monitor = "monitor"
|
|
775
817
|
}
|
|
776
818
|
/**
|
|
777
819
|
* Define the initial state os column custom group accordions
|
|
@@ -791,6 +833,11 @@ export declare enum DataPanelCustomColumnGroupsAccordionState {
|
|
|
791
833
|
*/
|
|
792
834
|
EXPAND_FIRST = "EXPAND_FIRST"
|
|
793
835
|
}
|
|
836
|
+
export declare enum HomePageSearchBarMode {
|
|
837
|
+
OBJECT_SEARCH = "objectSearch",
|
|
838
|
+
AI_ANSWER = "aiAnswer",
|
|
839
|
+
NONE = "none"
|
|
840
|
+
}
|
|
794
841
|
/**
|
|
795
842
|
* The view configuration for full app embedding.
|
|
796
843
|
* @group Embed components
|
|
@@ -977,19 +1024,6 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
977
1024
|
* ```
|
|
978
1025
|
*/
|
|
979
1026
|
fullHeight?: boolean;
|
|
980
|
-
/**
|
|
981
|
-
* Flag to control Data panel experience
|
|
982
|
-
* @default false
|
|
983
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
984
|
-
* @example
|
|
985
|
-
* ```js
|
|
986
|
-
* const embed = new AppEmbed('#tsEmbed', {
|
|
987
|
-
* ... // other options
|
|
988
|
-
* dataPanelV2: true,
|
|
989
|
-
* })
|
|
990
|
-
* ```
|
|
991
|
-
*/
|
|
992
|
-
dataPanelV2?: boolean;
|
|
993
1027
|
/**
|
|
994
1028
|
* Show or hide Liveboard header
|
|
995
1029
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
@@ -1064,6 +1098,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1064
1098
|
* To set the initial state of the search bar in case of saved-answers.
|
|
1065
1099
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
1066
1100
|
* @default false
|
|
1101
|
+
* @deprecated Use {@link collapseSearchBar} instead
|
|
1067
1102
|
*/
|
|
1068
1103
|
collapseSearchBarInitially?: boolean;
|
|
1069
1104
|
/**
|
|
@@ -1117,6 +1152,53 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1117
1152
|
* @version SDK : 1.29.0 | Thoughtspot : 10.1.0.cl
|
|
1118
1153
|
*/
|
|
1119
1154
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* Flag to use home page search bar mode
|
|
1157
|
+
* @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
|
|
1158
|
+
*/
|
|
1159
|
+
homePageSearchBarMode?: HomePageSearchBarMode;
|
|
1160
|
+
/**
|
|
1161
|
+
* This flag is used to enable the compact header in liveboard
|
|
1162
|
+
* @type {boolean}
|
|
1163
|
+
* @default false
|
|
1164
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
|
|
1165
|
+
* @example
|
|
1166
|
+
* ```js
|
|
1167
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1168
|
+
* ... // other options
|
|
1169
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
1170
|
+
* })
|
|
1171
|
+
* ```
|
|
1172
|
+
*/
|
|
1173
|
+
isLiveboardCompactHeaderEnabled?: boolean;
|
|
1174
|
+
/**
|
|
1175
|
+
* This flag is used to show/hide verified Icon in liveboard compact header
|
|
1176
|
+
* @type {boolean}
|
|
1177
|
+
* @default true
|
|
1178
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
1179
|
+
* @example
|
|
1180
|
+
* ```js
|
|
1181
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1182
|
+
* ... // other options
|
|
1183
|
+
* showLiveboardVerifiedBadge: true,
|
|
1184
|
+
* })
|
|
1185
|
+
* ```
|
|
1186
|
+
*/
|
|
1187
|
+
showLiveboardVerifiedBadge?: boolean;
|
|
1188
|
+
/**
|
|
1189
|
+
* This flag is used to show/hide re-verify banner in liveboard compact header
|
|
1190
|
+
* @type {boolean}
|
|
1191
|
+
* @default true
|
|
1192
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
1193
|
+
* @example
|
|
1194
|
+
* ```js
|
|
1195
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1196
|
+
* ... // other options
|
|
1197
|
+
* showLiveboardReverifyBanner: true,
|
|
1198
|
+
* })
|
|
1199
|
+
* ```
|
|
1200
|
+
*/
|
|
1201
|
+
showLiveboardReverifyBanner?: boolean;
|
|
1120
1202
|
}
|
|
1121
1203
|
/**
|
|
1122
1204
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -1426,6 +1508,48 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1426
1508
|
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
1427
1509
|
*/
|
|
1428
1510
|
showPreviewLoader?: boolean;
|
|
1511
|
+
/**
|
|
1512
|
+
* This flag is used to enable the compact header in liveboard
|
|
1513
|
+
* @type {boolean}
|
|
1514
|
+
* @default false
|
|
1515
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
|
|
1516
|
+
* @example
|
|
1517
|
+
* ```js
|
|
1518
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1519
|
+
* ... // other options
|
|
1520
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
1521
|
+
* })
|
|
1522
|
+
* ```
|
|
1523
|
+
*/
|
|
1524
|
+
isLiveboardCompactHeaderEnabled?: boolean;
|
|
1525
|
+
/**
|
|
1526
|
+
* This flag is used to show/hide verified Icon in liveboard compact header
|
|
1527
|
+
* @type {boolean}
|
|
1528
|
+
* @default true
|
|
1529
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
1530
|
+
* @example
|
|
1531
|
+
* ```js
|
|
1532
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1533
|
+
* ... // other options
|
|
1534
|
+
* showLiveboardVerifiedBadge: true,
|
|
1535
|
+
* })
|
|
1536
|
+
* ```
|
|
1537
|
+
*/
|
|
1538
|
+
showLiveboardVerifiedBadge?: boolean;
|
|
1539
|
+
/**
|
|
1540
|
+
* This flag is used to show/hide re-verify banner in liveboard compact header
|
|
1541
|
+
* @type {boolean}
|
|
1542
|
+
* @default true
|
|
1543
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
1544
|
+
* @example
|
|
1545
|
+
* ```js
|
|
1546
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1547
|
+
* ... // other options
|
|
1548
|
+
* showLiveboardReverifyBanner: true,
|
|
1549
|
+
* })
|
|
1550
|
+
* ```
|
|
1551
|
+
*/
|
|
1552
|
+
showLiveboardReverifyBanner?: boolean;
|
|
1429
1553
|
}
|
|
1430
1554
|
/**
|
|
1431
1555
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -1465,6 +1589,13 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
1465
1589
|
*/
|
|
1466
1590
|
render(): Promise<LiveboardEmbed>;
|
|
1467
1591
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
1592
|
+
/**
|
|
1593
|
+
* Returns the full url of the liveboard/viz which can be used to open
|
|
1594
|
+
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
1595
|
+
*
|
|
1596
|
+
* @returns url string
|
|
1597
|
+
*/
|
|
1598
|
+
getLiveboardUrl(): string;
|
|
1468
1599
|
}
|
|
1469
1600
|
/**
|
|
1470
1601
|
* @hidden
|
|
@@ -1490,6 +1621,32 @@ export interface ViewConfigAndListeners<T extends ViewConfig> {
|
|
|
1490
1621
|
*/
|
|
1491
1622
|
export function getViewPropsAndListeners<T extends EmbedProps, U extends ViewConfig>(props: T): ViewConfigAndListeners<U>;
|
|
1492
1623
|
|
|
1624
|
+
/**
|
|
1625
|
+
* Configuration for search options
|
|
1626
|
+
*/
|
|
1627
|
+
export interface SearchOptions {
|
|
1628
|
+
/**
|
|
1629
|
+
* The query string to pass to start the Conversation.
|
|
1630
|
+
*/
|
|
1631
|
+
searchQuery: string;
|
|
1632
|
+
}
|
|
1633
|
+
export interface ConversationViewConfig extends ViewConfig {
|
|
1634
|
+
/**
|
|
1635
|
+
* The ID of the worksheet to use for the conversation.
|
|
1636
|
+
*/
|
|
1637
|
+
worksheetId: string;
|
|
1638
|
+
/**
|
|
1639
|
+
* Ability to pass a starting search query to the conversation.
|
|
1640
|
+
*/
|
|
1641
|
+
searchOptions?: SearchOptions;
|
|
1642
|
+
}
|
|
1643
|
+
export declare class ConversationEmbed extends TsEmbed {
|
|
1644
|
+
protected viewConfig: ConversationViewConfig;
|
|
1645
|
+
constructor(container: HTMLElement, viewConfig: ConversationViewConfig);
|
|
1646
|
+
getIframeSrc(): string;
|
|
1647
|
+
render(): Promise<ConversationEmbed>;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1493
1650
|
/**
|
|
1494
1651
|
* Copyright (c) 2023
|
|
1495
1652
|
*
|
|
@@ -1498,7 +1655,7 @@ export function getViewPropsAndListeners<T extends EmbedProps, U extends ViewCon
|
|
|
1498
1655
|
* @summary ThoughtSpot Visual Embed SDK
|
|
1499
1656
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
1500
1657
|
*/
|
|
1501
|
-
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, };
|
|
1658
|
+
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, };
|
|
1502
1659
|
|
|
1503
1660
|
/**
|
|
1504
1661
|
* Copyright (c) 2023
|
|
@@ -1696,7 +1853,11 @@ export declare enum HomeLeftNavItem {
|
|
|
1696
1853
|
/**
|
|
1697
1854
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
1698
1855
|
*/
|
|
1699
|
-
SpotIQAnalysis = "spotiq-analysis"
|
|
1856
|
+
SpotIQAnalysis = "spotiq-analysis",
|
|
1857
|
+
/**
|
|
1858
|
+
* @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
|
|
1859
|
+
*/
|
|
1860
|
+
LiveboardSchedules = "liveboard-schedules"
|
|
1700
1861
|
}
|
|
1701
1862
|
export type DOMSelector = string | HTMLElement;
|
|
1702
1863
|
/**
|
|
@@ -1923,13 +2084,6 @@ export interface EmbedConfig {
|
|
|
1923
2084
|
* @default false
|
|
1924
2085
|
*/
|
|
1925
2086
|
queueMultiRenders?: boolean;
|
|
1926
|
-
/**
|
|
1927
|
-
* Dynamic CSS URL to be injected in the loaded application.
|
|
1928
|
-
* You would also need to set `style-src` in the CSP settings.
|
|
1929
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
1930
|
-
* @default ''
|
|
1931
|
-
*/
|
|
1932
|
-
customCssUrl?: string;
|
|
1933
2087
|
/**
|
|
1934
2088
|
* [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
|
|
1935
2089
|
* additional call. This is slower and should be avoided. Listen to the
|
|
@@ -2058,6 +2212,12 @@ export interface EmbedConfig {
|
|
|
2058
2212
|
* @version SDK: 1.28.5 | Thoughtspot: *
|
|
2059
2213
|
*/
|
|
2060
2214
|
disableTokenVerification?: boolean;
|
|
2215
|
+
/**
|
|
2216
|
+
* This flag is used to disable showing the login failure page in the embedded app.
|
|
2217
|
+
*
|
|
2218
|
+
* @version SDK 1.32.3 | Thoughtspot: *
|
|
2219
|
+
*/
|
|
2220
|
+
disableLoginFailurePage?: boolean;
|
|
2061
2221
|
}
|
|
2062
2222
|
export interface LayoutConfig {
|
|
2063
2223
|
}
|
|
@@ -2180,11 +2340,12 @@ export interface ViewConfig {
|
|
|
2180
2340
|
*/
|
|
2181
2341
|
visibleActions?: Action[];
|
|
2182
2342
|
/**
|
|
2183
|
-
* Show alert messages and toast messages in the embedded
|
|
2343
|
+
* Show alert messages and toast messages in the embedded
|
|
2344
|
+
* view in full app embed.
|
|
2184
2345
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2185
2346
|
* @example
|
|
2186
2347
|
* ```js
|
|
2187
|
-
* const embed = new
|
|
2348
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
2188
2349
|
* ... // other options
|
|
2189
2350
|
* showAlerts:true,
|
|
2190
2351
|
* })
|
|
@@ -2481,6 +2642,43 @@ export interface ViewConfig {
|
|
|
2481
2642
|
* @version SDK: 1.31.2 | ThoughtSpot: 10.0.0.cl
|
|
2482
2643
|
*/
|
|
2483
2644
|
enableV2Shell_experimental?: boolean;
|
|
2645
|
+
/**
|
|
2646
|
+
* To set the initial state of the search bar in case of saved-answers.
|
|
2647
|
+
* @default true
|
|
2648
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
2649
|
+
* @example
|
|
2650
|
+
* ```js
|
|
2651
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2652
|
+
* liveboardId: '123',
|
|
2653
|
+
* collapseSearchBar: true
|
|
2654
|
+
* });
|
|
2655
|
+
*/
|
|
2656
|
+
collapseSearchBar?: boolean;
|
|
2657
|
+
/**
|
|
2658
|
+
* This flag can be used to disable links inside the embedded app,
|
|
2659
|
+
* and disables redirection of links in a new tab.
|
|
2660
|
+
* @example
|
|
2661
|
+
* ```js
|
|
2662
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
2663
|
+
* disableRedirectionLinksInNewTab: true
|
|
2664
|
+
* });
|
|
2665
|
+
* ```
|
|
2666
|
+
* @version SDK: 1.32.1 | ThoughtSpot: 10.3.0.cl
|
|
2667
|
+
*/
|
|
2668
|
+
disableRedirectionLinksInNewTab?: boolean;
|
|
2669
|
+
/**
|
|
2670
|
+
* Flag to control Data panel experience
|
|
2671
|
+
* @default true
|
|
2672
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
2673
|
+
* @example
|
|
2674
|
+
* ```js
|
|
2675
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
2676
|
+
* ... // other options
|
|
2677
|
+
* dataPanelV2: true,
|
|
2678
|
+
* })
|
|
2679
|
+
* ```
|
|
2680
|
+
*/
|
|
2681
|
+
dataPanelV2?: boolean;
|
|
2484
2682
|
}
|
|
2485
2683
|
/**
|
|
2486
2684
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -2677,6 +2875,28 @@ export interface RuntimeParameter {
|
|
|
2677
2875
|
* console.log('Drilldown event', drilldown);
|
|
2678
2876
|
* }));
|
|
2679
2877
|
* ```
|
|
2878
|
+
*
|
|
2879
|
+
* If you are using React components for embedding, you can register to any
|
|
2880
|
+
* events from the `EmbedEvent` list by using the `on<EventName>` convention.
|
|
2881
|
+
* For example,`onAlert`, `onCopyToClipboard` and so on.
|
|
2882
|
+
*
|
|
2883
|
+
* @example
|
|
2884
|
+
* ```js
|
|
2885
|
+
* // ...
|
|
2886
|
+
* const MyComponent = ({ dataSources }) => {
|
|
2887
|
+
* const onLoad = () => {
|
|
2888
|
+
* console.log(EmbedEvent.Load, {});
|
|
2889
|
+
* };
|
|
2890
|
+
*
|
|
2891
|
+
* return (
|
|
2892
|
+
* <SearchEmbed
|
|
2893
|
+
* dataSources={dataSources}
|
|
2894
|
+
* onLoad = {logEvent("Load")}
|
|
2895
|
+
* />
|
|
2896
|
+
* );
|
|
2897
|
+
* };
|
|
2898
|
+
* ```
|
|
2899
|
+
*
|
|
2680
2900
|
* @group Events
|
|
2681
2901
|
*/
|
|
2682
2902
|
export declare enum EmbedEvent {
|
|
@@ -3545,21 +3765,61 @@ export declare enum EmbedEvent {
|
|
|
3545
3765
|
*/
|
|
3546
3766
|
Rename = "rename",
|
|
3547
3767
|
/**
|
|
3548
|
-
* Emitted
|
|
3768
|
+
* Emitted if the user wants to intercept the search execution
|
|
3769
|
+
* and implement logic to decide whether to run the search or not
|
|
3770
|
+
*
|
|
3771
|
+
* Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
|
|
3772
|
+
* for this embed event to get emitted.
|
|
3773
|
+
*
|
|
3774
|
+
* @param: payload
|
|
3775
|
+
* @param: responder
|
|
3776
|
+
* Contains elements that lets developers define whether ThoughtSpot
|
|
3777
|
+
* will run the search or not, and if not, which error message to provide.
|
|
3549
3778
|
*
|
|
3550
|
-
*
|
|
3551
|
-
*
|
|
3779
|
+
* execute: When execute returns true, the search will be run.
|
|
3780
|
+
* When execute returns false, the search will not be executed.
|
|
3781
|
+
*
|
|
3782
|
+
* error: Developers can customize the user facing message when execute is
|
|
3783
|
+
* set to false using the error parameter in responder
|
|
3784
|
+
*
|
|
3785
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3552
3786
|
*
|
|
3787
|
+
* @example
|
|
3553
3788
|
*```js
|
|
3554
|
-
*
|
|
3789
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
3555
3790
|
* (payload, responder) => {
|
|
3556
3791
|
* responder({
|
|
3557
3792
|
* data: {
|
|
3558
|
-
* execute:
|
|
3559
|
-
*
|
|
3793
|
+
* execute:false,
|
|
3794
|
+
* error: {
|
|
3795
|
+
* //Provide a custom error message to explain to your end user
|
|
3796
|
+
* //why their search did not run
|
|
3797
|
+
* errorText: "This search query cannot be run.
|
|
3798
|
+
* Please contact your administrator for more details."
|
|
3799
|
+
* }
|
|
3800
|
+
* }})
|
|
3801
|
+
* })
|
|
3802
|
+
* ```
|
|
3803
|
+
*
|
|
3804
|
+
*```js
|
|
3805
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
3806
|
+
* (payload, responder) => {
|
|
3807
|
+
* const query = payload.data.data.answer.search_query
|
|
3808
|
+
* responder({
|
|
3809
|
+
* data: {
|
|
3810
|
+
* // returns true as long as the query does not include
|
|
3811
|
+
* // both the 'sales' AND the 'county' column
|
|
3812
|
+
* execute: !(query.includes("sales")&&query.includes("county")),
|
|
3813
|
+
* error: {
|
|
3814
|
+
* //Provide a custom error message to explain to your end user
|
|
3815
|
+
* // why their search did not run, and which searches are accepted by your custom logic.
|
|
3816
|
+
* errorText: "You can't use this query :" + query + ".
|
|
3817
|
+
* The 'sales' measures can never be used at the 'county' level.
|
|
3818
|
+
* Please try another measure, or remove 'county' from your search."
|
|
3819
|
+
* }
|
|
3820
|
+
* }})
|
|
3560
3821
|
* })
|
|
3561
3822
|
*```
|
|
3562
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3563
3823
|
*/
|
|
3564
3824
|
OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
|
|
3565
3825
|
/**
|
|
@@ -3577,7 +3837,7 @@ export declare enum EmbedEvent {
|
|
|
3577
3837
|
}
|
|
3578
3838
|
/**
|
|
3579
3839
|
* Event types that can be triggered by the host application
|
|
3580
|
-
* to the embedded ThoughtSpot app
|
|
3840
|
+
* to the embedded ThoughtSpot app.
|
|
3581
3841
|
*
|
|
3582
3842
|
* To trigger an event use the corresponding
|
|
3583
3843
|
* {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
|
|
@@ -3594,6 +3854,40 @@ export declare enum EmbedEvent {
|
|
|
3594
3854
|
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
|
|
3595
3855
|
* ]);
|
|
3596
3856
|
* ```
|
|
3857
|
+
* @example
|
|
3858
|
+
* If using React components to embed, use the format shown in this example:
|
|
3859
|
+
*
|
|
3860
|
+
* ```js
|
|
3861
|
+
* const selectVizs = () => {
|
|
3862
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, [
|
|
3863
|
+
* "715e4613-c891-4884-be44-aa8d13701c06",
|
|
3864
|
+
* "3f84d633-e325-44b2-be25-c6650e5a49cf"
|
|
3865
|
+
* ]);
|
|
3866
|
+
* };
|
|
3867
|
+
* ```
|
|
3868
|
+
*
|
|
3869
|
+
*
|
|
3870
|
+
* You can also attach an Embed event to a Host event to trigger
|
|
3871
|
+
* a specific action as shown in this example:
|
|
3872
|
+
*
|
|
3873
|
+
* @example
|
|
3874
|
+
* ```js
|
|
3875
|
+
* const EmbeddedComponent = () => {
|
|
3876
|
+
* const embedRef = useRef(null); // import { useRef } from react
|
|
3877
|
+
* const onLiveboardRendered = () => {
|
|
3878
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
3879
|
+
* };
|
|
3880
|
+
*
|
|
3881
|
+
* return (
|
|
3882
|
+
* <LiveboardEmbed
|
|
3883
|
+
* ref={embedRef}
|
|
3884
|
+
* liveboardId="<liveboard-guid>"
|
|
3885
|
+
* onLiveboardRendered={onLiveboardRendered}
|
|
3886
|
+
* />
|
|
3887
|
+
* );
|
|
3888
|
+
* }
|
|
3889
|
+
* ```
|
|
3890
|
+
*
|
|
3597
3891
|
* @group Events
|
|
3598
3892
|
*/
|
|
3599
3893
|
export declare enum HostEvent {
|
|
@@ -3677,6 +3971,15 @@ export declare enum HostEvent {
|
|
|
3677
3971
|
* @hidden
|
|
3678
3972
|
*/
|
|
3679
3973
|
Reload = "reload",
|
|
3974
|
+
/**
|
|
3975
|
+
* Get current iframe src
|
|
3976
|
+
* @example
|
|
3977
|
+
* ```js
|
|
3978
|
+
* const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
|
|
3979
|
+
* ```
|
|
3980
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
3981
|
+
*/
|
|
3982
|
+
GetIframeUrl = "GetIframeUrl",
|
|
3680
3983
|
/**
|
|
3681
3984
|
* Display specific visualizations on a Liveboard.
|
|
3682
3985
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
@@ -3943,13 +4246,15 @@ export declare enum HostEvent {
|
|
|
3943
4246
|
*
|
|
3944
4247
|
* @example
|
|
3945
4248
|
* ```js
|
|
3946
|
-
*
|
|
4249
|
+
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
3947
4250
|
* ```
|
|
3948
4251
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3949
4252
|
*/
|
|
3950
4253
|
CreateMonitor = "createMonitor",
|
|
3951
4254
|
/**
|
|
3952
|
-
* Trigger the **Manage alerts** action on a
|
|
4255
|
+
* Trigger the **Manage alerts** action on a KPI chart
|
|
4256
|
+
* in a visualization or saved Answer.
|
|
4257
|
+
*
|
|
3953
4258
|
* @param - an object with `vizId` as a key
|
|
3954
4259
|
* @example
|
|
3955
4260
|
* ```js
|
|
@@ -3957,6 +4262,16 @@ export declare enum HostEvent {
|
|
|
3957
4262
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
3958
4263
|
* })
|
|
3959
4264
|
* ```
|
|
4265
|
+
*
|
|
4266
|
+
* @example
|
|
4267
|
+
* ```js
|
|
4268
|
+
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
4269
|
+
* ```
|
|
4270
|
+
*
|
|
4271
|
+
* @example
|
|
4272
|
+
* ```js
|
|
4273
|
+
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
4274
|
+
* ```
|
|
3960
4275
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
3961
4276
|
*/
|
|
3962
4277
|
ManageMonitor = "manageMonitor",
|
|
@@ -4266,10 +4581,23 @@ export declare enum HostEvent {
|
|
|
4266
4581
|
* filter: {
|
|
4267
4582
|
* column: "item type",
|
|
4268
4583
|
* oper: "IN",
|
|
4269
|
-
* values: ["bags","shirts"]
|
|
4584
|
+
* values: ["bags","shirts"]
|
|
4585
|
+
* }
|
|
4586
|
+
* });
|
|
4587
|
+
* ```
|
|
4588
|
+
* @example
|
|
4589
|
+
* ```js
|
|
4590
|
+
*
|
|
4591
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
4592
|
+
* filter: {
|
|
4593
|
+
* column: "date",
|
|
4594
|
+
* oper: "EQ",
|
|
4595
|
+
* values: ["JULY","2023"],
|
|
4596
|
+
* type: "MONTH_YEAR"
|
|
4270
4597
|
* }
|
|
4271
4598
|
* });
|
|
4272
4599
|
* ```
|
|
4600
|
+
*
|
|
4273
4601
|
* @example
|
|
4274
4602
|
*
|
|
4275
4603
|
* ```js
|
|
@@ -4287,7 +4615,8 @@ export declare enum HostEvent {
|
|
|
4287
4615
|
* {
|
|
4288
4616
|
* column: "Date",
|
|
4289
4617
|
* oper: 'EQ',
|
|
4290
|
-
* values: ["
|
|
4618
|
+
* values: ["2023-07-31"],
|
|
4619
|
+
* types: "EXACT_DATE"
|
|
4291
4620
|
* }]
|
|
4292
4621
|
* });
|
|
4293
4622
|
* ```
|
|
@@ -4473,7 +4802,6 @@ export declare enum Param {
|
|
|
4473
4802
|
ViewPortHeight = "viewPortHeight",
|
|
4474
4803
|
ViewPortWidth = "viewPortWidth",
|
|
4475
4804
|
VisibleActions = "visibleAction",
|
|
4476
|
-
CustomCSSUrl = "customCssUrl",
|
|
4477
4805
|
DisableLoginRedirect = "disableLoginRedirect",
|
|
4478
4806
|
visibleVizs = "pinboardVisibleVizs",
|
|
4479
4807
|
LiveboardV2Enabled = "isPinboardV2Enabled",
|
|
@@ -4528,7 +4856,12 @@ export declare enum Param {
|
|
|
4528
4856
|
Enable2ColumnLayout = "enable2ColumnLayout",
|
|
4529
4857
|
IsFullAppEmbed = "isFullAppEmbed",
|
|
4530
4858
|
IsOnBeforeGetVizDataInterceptEnabled = "isOnBeforeGetVizDataInterceptEnabled",
|
|
4531
|
-
FocusSearchBarOnRender = "focusSearchBarOnRender"
|
|
4859
|
+
FocusSearchBarOnRender = "focusSearchBarOnRender",
|
|
4860
|
+
DisableRedirectionLinksInNewTab = "disableRedirectionLinksInNewTab",
|
|
4861
|
+
HomePageSearchBarMode = "homePageSearchBarMode",
|
|
4862
|
+
ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
|
|
4863
|
+
ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
|
|
4864
|
+
LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled"
|
|
4532
4865
|
}
|
|
4533
4866
|
/**
|
|
4534
4867
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -4677,6 +5010,7 @@ export declare enum Action {
|
|
|
4677
5010
|
*/
|
|
4678
5011
|
ConfigureFilter = "configureFilter",
|
|
4679
5012
|
CollapseDataSources = "collapseDataSources",
|
|
5013
|
+
CollapseDataPanel = "collapseDataPanel",
|
|
4680
5014
|
/**
|
|
4681
5015
|
* The **Choose sources** button on Search page.
|
|
4682
5016
|
* Allows selecting data sources for search queries.
|
|
@@ -5072,12 +5406,15 @@ export declare enum Action {
|
|
|
5072
5406
|
* The Create alert action on KPI charts.
|
|
5073
5407
|
* @example
|
|
5074
5408
|
* ```js
|
|
5075
|
-
* disabledActions: [Action.CreateMonitor
|
|
5409
|
+
* disabledActions: [Action.CreateMonitor]
|
|
5076
5410
|
* ```
|
|
5077
5411
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
5078
5412
|
*/
|
|
5079
5413
|
CreateMonitor = "createMonitor",
|
|
5080
5414
|
/**
|
|
5415
|
+
* @deprecated
|
|
5416
|
+
* Reports errors
|
|
5417
|
+
*
|
|
5081
5418
|
* @example
|
|
5082
5419
|
* ```js
|
|
5083
5420
|
* disabledActions: [Action.ReportError]
|
|
@@ -5302,35 +5639,84 @@ export declare enum Action {
|
|
|
5302
5639
|
*/
|
|
5303
5640
|
RenameModalTitleDescription = "renameModalTitleDescription",
|
|
5304
5641
|
/**
|
|
5642
|
+
*
|
|
5643
|
+
* @example
|
|
5644
|
+
* ```js
|
|
5645
|
+
* disabledActions: [Action.RequestVerification]
|
|
5646
|
+
* ```
|
|
5305
5647
|
*
|
|
5306
5648
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5307
5649
|
*/
|
|
5308
5650
|
RequestVerification = "requestVerification",
|
|
5309
5651
|
/**
|
|
5652
|
+
*
|
|
5653
|
+
* Allows users to mark a Liveboard as verified.
|
|
5654
|
+
*
|
|
5655
|
+
* @example
|
|
5656
|
+
* ```js
|
|
5657
|
+
* disabledActions: [Action.MarkAsVerified]
|
|
5658
|
+
* ```
|
|
5310
5659
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5311
5660
|
*/
|
|
5312
5661
|
MarkAsVerified = "markAsVerified",
|
|
5313
5662
|
/**
|
|
5663
|
+
* The **Add Tab** action on a Liveboard.
|
|
5664
|
+
* Allows adding a new tab to a Liveboard view.
|
|
5665
|
+
*
|
|
5666
|
+
* @example
|
|
5667
|
+
* ```js
|
|
5668
|
+
* disabledActions: [Action.AddTab]
|
|
5669
|
+
* ```
|
|
5314
5670
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5315
5671
|
*/
|
|
5316
5672
|
AddTab = "addTab",
|
|
5317
5673
|
/**
|
|
5674
|
+
*
|
|
5675
|
+
* Initiates contextual change analysis on KPI charts.
|
|
5676
|
+
*
|
|
5677
|
+
* @example
|
|
5678
|
+
* ```js
|
|
5679
|
+
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
5680
|
+
* ```
|
|
5318
5681
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5319
5682
|
*/
|
|
5320
5683
|
EnableContextualChangeAnalysis = "enableContextualChangeAnalysis",
|
|
5321
5684
|
/**
|
|
5685
|
+
*
|
|
5686
|
+
* @example
|
|
5687
|
+
* ```js
|
|
5688
|
+
* disabledActions: [Action.ShowSageQuery]
|
|
5689
|
+
* ```
|
|
5690
|
+
*
|
|
5322
5691
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5323
5692
|
*/
|
|
5324
5693
|
ShowSageQuery = "showSageQuery",
|
|
5325
5694
|
/**
|
|
5695
|
+
*
|
|
5696
|
+
* @example
|
|
5697
|
+
* ```js
|
|
5698
|
+
* disabledActions: [Action.EditSageAnswer]
|
|
5699
|
+
* ```
|
|
5326
5700
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5327
5701
|
*/
|
|
5328
5702
|
EditSageAnswer = "editSageAnswer",
|
|
5329
5703
|
/**
|
|
5704
|
+
*
|
|
5705
|
+
* This action allows users to send feedback on AI-generated Answers.
|
|
5706
|
+
*
|
|
5707
|
+
* @example
|
|
5708
|
+
* ```js
|
|
5709
|
+
* disabledActions: [Action.SageAnswerFeedback]
|
|
5710
|
+
* ```
|
|
5330
5711
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5331
5712
|
*/
|
|
5332
5713
|
SageAnswerFeedback = "sageAnswerFeedback",
|
|
5333
5714
|
/**
|
|
5715
|
+
*
|
|
5716
|
+
* @example
|
|
5717
|
+
* ```js
|
|
5718
|
+
* disabledActions: [Action.ModifySageAnswer]
|
|
5719
|
+
* ```
|
|
5334
5720
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5335
5721
|
*/
|
|
5336
5722
|
ModifySageAnswer = "modifySageAnswer",
|
|
@@ -5397,7 +5783,7 @@ export declare enum Action {
|
|
|
5397
5783
|
*
|
|
5398
5784
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
5399
5785
|
*/
|
|
5400
|
-
CreateLiveboard = "
|
|
5786
|
+
CreateLiveboard = "createLiveboard",
|
|
5401
5787
|
/**
|
|
5402
5788
|
* Action ID for to hide Verified Liveboard Banner
|
|
5403
5789
|
* @example
|
|
@@ -5451,7 +5837,71 @@ export declare enum Action {
|
|
|
5451
5837
|
* ```
|
|
5452
5838
|
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
5453
5839
|
*/
|
|
5454
|
-
AIHighlights = "AIHighlights"
|
|
5840
|
+
AIHighlights = "AIHighlights",
|
|
5841
|
+
/**
|
|
5842
|
+
* Action ID for edit schedule action on schedule on homepage
|
|
5843
|
+
* @example
|
|
5844
|
+
* ```js
|
|
5845
|
+
* disabledActions: [Action.EditScheduleHomepage]
|
|
5846
|
+
* ```
|
|
5847
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5848
|
+
*/
|
|
5849
|
+
EditScheduleHomepage = "editScheduleHomepage",
|
|
5850
|
+
/**
|
|
5851
|
+
* Action ID for pause schedule action on schedule on homepage
|
|
5852
|
+
* @example
|
|
5853
|
+
* ```js
|
|
5854
|
+
* disabledActions: [Action.PauseScheduleHomepage]
|
|
5855
|
+
* ```
|
|
5856
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5857
|
+
*/
|
|
5858
|
+
PauseScheduleHomepage = "pauseScheduleHomepage",
|
|
5859
|
+
/**
|
|
5860
|
+
* Action ID for view schedule run action on schedule on homepage
|
|
5861
|
+
* @example
|
|
5862
|
+
* ```js
|
|
5863
|
+
* disabledActions: [Action.ViewScheduleRunHomepage]
|
|
5864
|
+
* ```
|
|
5865
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5866
|
+
*/
|
|
5867
|
+
ViewScheduleRunHomepage = "viewScheduleRunHomepage",
|
|
5868
|
+
/**
|
|
5869
|
+
* Action ID for unsubscribe schedule action on schedule on homepage
|
|
5870
|
+
* @example
|
|
5871
|
+
* ```js
|
|
5872
|
+
* disabledActions: [Action.UnsubscribeScheduleHomepage]
|
|
5873
|
+
* ```
|
|
5874
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5875
|
+
*/
|
|
5876
|
+
UnsubscribeScheduleHomepage = "unsubscribeScheduleHomepage",
|
|
5877
|
+
/**
|
|
5878
|
+
* The **Manage Tags** action on Homepage Favourite Module.
|
|
5879
|
+
*
|
|
5880
|
+
* @example
|
|
5881
|
+
* ```js
|
|
5882
|
+
* disabledActions: [Action.ManageTags]
|
|
5883
|
+
* ```
|
|
5884
|
+
* @version SDK : 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5885
|
+
*/
|
|
5886
|
+
ManageTags = "manageTags",
|
|
5887
|
+
/**
|
|
5888
|
+
* Action ID for delete schedule action on schedule on homepage
|
|
5889
|
+
* @example
|
|
5890
|
+
* ```js
|
|
5891
|
+
* disabledActions: [Action.DeleteScheduleHomepage]
|
|
5892
|
+
* ```
|
|
5893
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5894
|
+
*/
|
|
5895
|
+
DeleteScheduleHomepage = "deleteScheduleHomepage",
|
|
5896
|
+
/**
|
|
5897
|
+
* The **Analyze CTA** action on KPI chart.
|
|
5898
|
+
* @example
|
|
5899
|
+
* ```js
|
|
5900
|
+
* disabledActions: [Action.KPIAnalysisCTA]
|
|
5901
|
+
* ```
|
|
5902
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
5903
|
+
*/
|
|
5904
|
+
KPIAnalysisCTA = "kpiAnalysisCTA"
|
|
5455
5905
|
}
|
|
5456
5906
|
export interface AnswerServiceType {
|
|
5457
5907
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -5650,7 +6100,7 @@ export declare class TsEmbed {
|
|
|
5650
6100
|
* @param queryParams
|
|
5651
6101
|
* @returns queryParams
|
|
5652
6102
|
*/
|
|
5653
|
-
protected getBaseQueryParams(queryParams?:
|
|
6103
|
+
protected getBaseQueryParams(queryParams?: Record<any, any>): Record<any, any>;
|
|
5654
6104
|
/**
|
|
5655
6105
|
* Constructs the base URL string to load v1 of the ThoughtSpot app.
|
|
5656
6106
|
* This is used for embedding Liveboards, visualizations, and full application.
|
|
@@ -5777,7 +6227,9 @@ export declare class TsEmbed {
|
|
|
5777
6227
|
* THOUGHTSPOT URL params starts with a prefix "ts-"
|
|
5778
6228
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
5779
6229
|
*/
|
|
5780
|
-
getThoughtSpotPostUrlParams(
|
|
6230
|
+
getThoughtSpotPostUrlParams(additionalParams?: {
|
|
6231
|
+
[key: string]: string | number;
|
|
6232
|
+
}): string;
|
|
5781
6233
|
/**
|
|
5782
6234
|
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
5783
6235
|
* @version SDK: 1.19.1 | ThoughtSpot: *
|
|
@@ -5868,7 +6320,6 @@ export declare class V1Embed extends TsEmbed {
|
|
|
5868
6320
|
on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
|
|
5869
6321
|
/**
|
|
5870
6322
|
* Only for testing purposes.
|
|
5871
|
-
*
|
|
5872
6323
|
* @hidden
|
|
5873
6324
|
*/
|
|
5874
6325
|
test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
|
|
@@ -5951,22 +6402,23 @@ export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise
|
|
|
5951
6402
|
/**
|
|
5952
6403
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
5953
6404
|
* @param data
|
|
6405
|
+
* @returns imports TML data into ThoughtSpot
|
|
5954
6406
|
* @example
|
|
5955
6407
|
* ```js
|
|
5956
|
-
*
|
|
5957
|
-
* //Array of metadata Tmls
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
}).then(result => {
|
|
5965
|
-
|
|
5966
|
-
}).catch(error => {
|
|
5967
|
-
|
|
5968
|
-
});
|
|
5969
|
-
|
|
6408
|
+
* executeTML({
|
|
6409
|
+
* //Array of metadata Tmls in string format
|
|
6410
|
+
* metadata_tmls: [
|
|
6411
|
+
* "'\''{\"guid\":\"9bd202f5-d431-44bf-9a07-b4f7be372125\",
|
|
6412
|
+
* \"liveboard\":{\"name\":\"Parameters Liveboard\"}}'\''"
|
|
6413
|
+
* ],
|
|
6414
|
+
* import_policy: 'PARTIAL', // Specifies the import policy for the TML import.
|
|
6415
|
+
* create_new: false, // If selected, creates TML objects with new GUIDs.
|
|
6416
|
+
* }).then(result => {
|
|
6417
|
+
* console.log(result);
|
|
6418
|
+
* }).catch(error => {
|
|
6419
|
+
* console.error(error);
|
|
6420
|
+
* });
|
|
6421
|
+
*```
|
|
5970
6422
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
5971
6423
|
* @group Global methods
|
|
5972
6424
|
*/
|
|
@@ -5975,27 +6427,28 @@ export declare const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
|
5975
6427
|
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
5976
6428
|
* format.
|
|
5977
6429
|
* @param data
|
|
6430
|
+
* @returns exports TML data
|
|
5978
6431
|
* @example
|
|
5979
6432
|
* ```js
|
|
5980
|
-
exportTML({
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
}).then(result => {
|
|
5995
|
-
|
|
5996
|
-
}).catch(error => {
|
|
5997
|
-
|
|
5998
|
-
});
|
|
6433
|
+
* exportTML({
|
|
6434
|
+
* metadata: [
|
|
6435
|
+
* {
|
|
6436
|
+
* type: "LIVEBOARD", //Metadata Type
|
|
6437
|
+
* identifier: "9bd202f5-d431-44bf-9a07-b4f7be372125" //Metadata Id
|
|
6438
|
+
* }
|
|
6439
|
+
* ],
|
|
6440
|
+
* export_associated: false,//indicates whether to export associated metadata objects
|
|
6441
|
+
* export_fqn: false, //Adds FQNs of the referenced objects.For example, if you are
|
|
6442
|
+
* //exporting a Liveboard and its associated objects, the API
|
|
6443
|
+
* //returns the Liveboard TML data with the FQNs of the referenced
|
|
6444
|
+
* //worksheet. If the exported TML data includes FQNs, you don't need
|
|
6445
|
+
* //to manually add FQNs of the referenced objects during TML import.
|
|
6446
|
+
* edoc_format: "JSON" //It takes JSON or YAML value
|
|
6447
|
+
* }).then(result => {
|
|
6448
|
+
* console.log(result);
|
|
6449
|
+
* }).catch(error => {
|
|
6450
|
+
* console.error(error);
|
|
6451
|
+
* });
|
|
5999
6452
|
* ```
|
|
6000
6453
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
6001
6454
|
* @group Global methods
|
|
@@ -6006,6 +6459,29 @@ export declare const exportTML: (data: exportTMLInput) => Promise<any>;
|
|
|
6006
6459
|
*/
|
|
6007
6460
|
export declare function reset(): void;
|
|
6008
6461
|
|
|
6462
|
+
export interface BodylessConversationViewConfig extends ViewConfig {
|
|
6463
|
+
/**
|
|
6464
|
+
* The ID of the worksheet to use for the conversation.
|
|
6465
|
+
*/
|
|
6466
|
+
worksheetId: string;
|
|
6467
|
+
}
|
|
6468
|
+
/**
|
|
6469
|
+
* Create a conversation embed, which can be integrated inside
|
|
6470
|
+
* chatbots or other conversational interfaces.
|
|
6471
|
+
* @group Embed components
|
|
6472
|
+
* @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
|
|
6473
|
+
*/
|
|
6474
|
+
export declare class BodylessConversation {
|
|
6475
|
+
constructor(viewConfig: BodylessConversationViewConfig);
|
|
6476
|
+
sendMessage(userMessage: string): Promise<{
|
|
6477
|
+
error: any;
|
|
6478
|
+
container?: undefined;
|
|
6479
|
+
} | {
|
|
6480
|
+
container: HTMLDivElement;
|
|
6481
|
+
error?: undefined;
|
|
6482
|
+
}>;
|
|
6483
|
+
}
|
|
6484
|
+
|
|
6009
6485
|
export declare let loggedInStatus: boolean;
|
|
6010
6486
|
export declare let samlAuthWindow: Window;
|
|
6011
6487
|
export declare let samlCompletionPromise: Promise<void>;
|
|
@@ -6131,7 +6607,6 @@ export declare function notifyLogout(): void;
|
|
|
6131
6607
|
* Services to be called after the login is successful,
|
|
6132
6608
|
* This should be called after the cookie is set for cookie auth or
|
|
6133
6609
|
* after the token is set for cookieless.
|
|
6134
|
-
*
|
|
6135
6610
|
* @return {Promise<void>}
|
|
6136
6611
|
* @example
|
|
6137
6612
|
* ```js
|
|
@@ -6264,9 +6739,12 @@ export interface CustomCssVariables {
|
|
|
6264
6739
|
*/
|
|
6265
6740
|
'--ts-var-root-text-transform'?: string;
|
|
6266
6741
|
/**
|
|
6267
|
-
*
|
|
6268
|
-
*
|
|
6269
|
-
*
|
|
6742
|
+
* Font color of the text on toggle buttons such as
|
|
6743
|
+
* **All**, **Answers**, and **Liveboards** on the Home page (Classic experience),
|
|
6744
|
+
* the text color of the chart and table tiles on Home page (New modular Homepage experience),
|
|
6745
|
+
* and title text on the AI-generated charts and tables.
|
|
6746
|
+
* The default color code is #2770EF.
|
|
6747
|
+
*
|
|
6270
6748
|
*/
|
|
6271
6749
|
'--ts-var-application-color'?: string;
|
|
6272
6750
|
/**
|
|
@@ -6377,6 +6855,10 @@ export interface CustomCssVariables {
|
|
|
6377
6855
|
* Background color of the primary buttons on hover.
|
|
6378
6856
|
*/
|
|
6379
6857
|
'--ts-var-button--primary--hover-background'?: string;
|
|
6858
|
+
/**
|
|
6859
|
+
* Backgroud color of the primary buttons when active.
|
|
6860
|
+
*/
|
|
6861
|
+
'--ts-var-button--primary--active-background'?: string;
|
|
6380
6862
|
/**
|
|
6381
6863
|
* Font color of the text on the secondary buttons.
|
|
6382
6864
|
*/
|
|
@@ -6393,6 +6875,10 @@ export interface CustomCssVariables {
|
|
|
6393
6875
|
* Background color of the secondary button on hover.
|
|
6394
6876
|
*/
|
|
6395
6877
|
'--ts-var-button--secondary--hover-background'?: string;
|
|
6878
|
+
/**
|
|
6879
|
+
* Backgroud color of the secondary buttons when active.
|
|
6880
|
+
*/
|
|
6881
|
+
'--ts-var-button--secondary--active-background'?: string;
|
|
6396
6882
|
/**
|
|
6397
6883
|
* Font color of the tertiary button. For example, the *Undo*, *Redo*, and *Reset*
|
|
6398
6884
|
* buttons on the *Search* page.
|
|
@@ -6406,6 +6892,10 @@ export interface CustomCssVariables {
|
|
|
6406
6892
|
* Background color of the tertiary button when a user hovers over these buttons.
|
|
6407
6893
|
*/
|
|
6408
6894
|
'--ts-var-button--tertiary--hover-background'?: string;
|
|
6895
|
+
/**
|
|
6896
|
+
* Backgroud color of the tertiary buttons when active.
|
|
6897
|
+
*/
|
|
6898
|
+
'--ts-var-button--tertiary--active-background'?: string;
|
|
6409
6899
|
/**
|
|
6410
6900
|
* Font color of the title text of a visualization or Answer.
|
|
6411
6901
|
*/
|
|
@@ -6581,6 +7071,34 @@ export interface CustomCssVariables {
|
|
|
6581
7071
|
* Background for favorite carousel find your favorites card in modular home.
|
|
6582
7072
|
*/
|
|
6583
7073
|
'--ts-var-home-favorite-suggestion-card-background'?: string;
|
|
7074
|
+
/**
|
|
7075
|
+
* Border color of checkbox in error state.
|
|
7076
|
+
*/
|
|
7077
|
+
'--ts-var-checkbox-error-border'?: string;
|
|
7078
|
+
/**
|
|
7079
|
+
* Border color of checkbox.
|
|
7080
|
+
*/
|
|
7081
|
+
'--ts-var-checkbox-border-color'?: string;
|
|
7082
|
+
/**
|
|
7083
|
+
* Border color of checkbox in hover state.
|
|
7084
|
+
*/
|
|
7085
|
+
'--ts-var-checkbox-hover-border'?: string;
|
|
7086
|
+
/**
|
|
7087
|
+
* Border and font color of checkbox in active state.
|
|
7088
|
+
*/
|
|
7089
|
+
'--ts-var-checkbox-active-color'?: string;
|
|
7090
|
+
/**
|
|
7091
|
+
* Border color and font color of checkbox in checked state.
|
|
7092
|
+
*/
|
|
7093
|
+
'--ts-var-checkbox-checked-color'?: string;
|
|
7094
|
+
/**
|
|
7095
|
+
* Border and font color of checkbox in disabled state.
|
|
7096
|
+
*/
|
|
7097
|
+
'--ts-var-checkbox-checked-disabled'?: string;
|
|
7098
|
+
/**
|
|
7099
|
+
* Background color of checkbox.
|
|
7100
|
+
*/
|
|
7101
|
+
'--ts-var-checkbox-background-color'?: string;
|
|
6584
7102
|
}
|
|
6585
7103
|
|
|
6586
7104
|
export interface SessionInterface {
|
|
@@ -6676,6 +7194,7 @@ export declare class AnswerService {
|
|
|
6676
7194
|
* @returns
|
|
6677
7195
|
*/
|
|
6678
7196
|
addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter['values']): Promise<any>;
|
|
7197
|
+
getSQLQuery(): Promise<string>;
|
|
6679
7198
|
/**
|
|
6680
7199
|
* Fetch data from the answer.
|
|
6681
7200
|
* @param offset
|
|
@@ -6694,6 +7213,16 @@ export declare class AnswerService {
|
|
|
6694
7213
|
* @returns Response
|
|
6695
7214
|
*/
|
|
6696
7215
|
fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
|
|
7216
|
+
/**
|
|
7217
|
+
* Fetch the data for the answer as a PNG blob. This might be
|
|
7218
|
+
* quicker for larger data.
|
|
7219
|
+
* @param userLocale
|
|
7220
|
+
* @param includeInfo
|
|
7221
|
+
* @param omitBackground Omit the background in the PNG
|
|
7222
|
+
* @param deviceScaleFactor The scale factor for the PNG
|
|
7223
|
+
* @return Response
|
|
7224
|
+
*/
|
|
7225
|
+
fetchPNGBlob(userLocale?: string, includeInfo?: boolean, omitBackground?: boolean, deviceScaleFactor?: number): Promise<Response>;
|
|
6697
7226
|
/**
|
|
6698
7227
|
* Just get the internal URL for this answer's data
|
|
6699
7228
|
* as a CSV blob.
|
|
@@ -6702,6 +7231,14 @@ export declare class AnswerService {
|
|
|
6702
7231
|
* @returns
|
|
6703
7232
|
*/
|
|
6704
7233
|
getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
|
|
7234
|
+
/**
|
|
7235
|
+
* Just get the internal URL for this answer's data
|
|
7236
|
+
* as a PNG blob.
|
|
7237
|
+
* @param userLocale
|
|
7238
|
+
* @param omitBackground
|
|
7239
|
+
* @param deviceScaleFactor
|
|
7240
|
+
*/
|
|
7241
|
+
getFetchPNGBlobUrl(userLocale?: string, omitBackground?: boolean, deviceScaleFactor?: number): string;
|
|
6705
7242
|
/**
|
|
6706
7243
|
* Get underlying data given a point and the output column names.
|
|
6707
7244
|
* In case of a context menu action, the selectedPoints are
|
|
@@ -6733,6 +7270,9 @@ export declare class AnswerService {
|
|
|
6733
7270
|
*/
|
|
6734
7271
|
getSession(): SessionInterface;
|
|
6735
7272
|
getAnswer(): Promise<any>;
|
|
7273
|
+
getTML(): Promise<any>;
|
|
7274
|
+
addDisplayedVizToLiveboard(liveboardId: string): Promise<any>;
|
|
7275
|
+
setTMLOverride(override: any): void;
|
|
6736
7276
|
}
|
|
6737
7277
|
|
|
6738
7278
|
/**
|
|
@@ -6754,6 +7294,10 @@ export declare const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
|
|
|
6754
7294
|
export declare const EndPoints: {
|
|
6755
7295
|
CONFIG: string;
|
|
6756
7296
|
};
|
|
7297
|
+
/**
|
|
7298
|
+
* Enum of mixpanel events
|
|
7299
|
+
* @hidden
|
|
7300
|
+
*/
|
|
6757
7301
|
export declare const MIXPANEL_EVENT: {
|
|
6758
7302
|
VISUAL_SDK_RENDER_START: string;
|
|
6759
7303
|
VISUAL_SDK_CALLED_INIT: string;
|
|
@@ -6799,15 +7343,32 @@ export declare function testResetMixpanel(): void;
|
|
|
6799
7343
|
*/
|
|
6800
7344
|
export declare const tokenizedFetch: typeof fetch;
|
|
6801
7345
|
|
|
6802
|
-
export declare function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
6803
7346
|
/**
|
|
6804
|
-
*
|
|
6805
|
-
* @
|
|
6806
|
-
*
|
|
6807
|
-
*
|
|
6808
|
-
* ```
|
|
6809
|
-
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
6810
|
-
* @group Authentication / Init
|
|
7347
|
+
*
|
|
7348
|
+
* @param query string
|
|
7349
|
+
* @param worksheetId string
|
|
7350
|
+
* @returns answerService AnswerService
|
|
6811
7351
|
*/
|
|
7352
|
+
export declare const getAnswerFromQuery: (query: string, worksheetId: string) => Promise<{
|
|
7353
|
+
answer: AnswerService;
|
|
7354
|
+
suggestion: any;
|
|
7355
|
+
}>;
|
|
7356
|
+
|
|
7357
|
+
export declare const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
|
|
7358
|
+
|
|
7359
|
+
/**
|
|
7360
|
+
*
|
|
7361
|
+
* @param embedConfig
|
|
7362
|
+
*/
|
|
7363
|
+
export declare function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
7364
|
+
/**
|
|
7365
|
+
* Resets the auth token and a new token will be fetched on the next request.
|
|
7366
|
+
* @example
|
|
7367
|
+
* ```js
|
|
7368
|
+
* resetCachedAuthToken();
|
|
7369
|
+
* ```
|
|
7370
|
+
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
7371
|
+
* @group Authentication / Init
|
|
7372
|
+
*/
|
|
6812
7373
|
export declare const resetCachedAuthToken: () => void;
|
|
6813
7374
|
|