@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
|
|
@@ -222,7 +259,7 @@ export function useEmbedRef<T extends EmbedComponent>(): React.MutableRefObject<
|
|
|
222
259
|
* @summary ThoughtSpot Visual Embed SDK
|
|
223
260
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
224
261
|
*/
|
|
225
|
-
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, };
|
|
262
|
+
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, };
|
|
226
263
|
|
|
227
264
|
/**
|
|
228
265
|
* @group Embed components
|
|
@@ -514,6 +551,19 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
514
551
|
* ```
|
|
515
552
|
*/
|
|
516
553
|
collapseDataSources?: boolean;
|
|
554
|
+
/**
|
|
555
|
+
* If set to true, the data panel is collapsed on load,
|
|
556
|
+
* but can be expanded manually.
|
|
557
|
+
* @version: SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
|
|
558
|
+
* @example
|
|
559
|
+
* ```js
|
|
560
|
+
* const embed = new SearchEmbed('#tsEmbed', {
|
|
561
|
+
* ... // other options
|
|
562
|
+
* collapseDataPanel:true,
|
|
563
|
+
* })
|
|
564
|
+
* ```
|
|
565
|
+
*/
|
|
566
|
+
collapseDataPanel?: boolean;
|
|
517
567
|
/**
|
|
518
568
|
* Show or hide the data sources panel.
|
|
519
569
|
* @version: SDK: 1.2.0 | ThoughtSpot: 9.1.0.sw
|
|
@@ -640,19 +690,6 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
640
690
|
* ```
|
|
641
691
|
*/
|
|
642
692
|
hideSearchBar?: boolean;
|
|
643
|
-
/**
|
|
644
|
-
* Flag to control Data panel experience
|
|
645
|
-
* @default false
|
|
646
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
647
|
-
* @example
|
|
648
|
-
* ```js
|
|
649
|
-
* const embed = new SearchEmbed('#tsEmbed', {
|
|
650
|
-
* ... // other options
|
|
651
|
-
* dataPanelV2:false,
|
|
652
|
-
* })
|
|
653
|
-
* ```
|
|
654
|
-
*/
|
|
655
|
-
dataPanelV2?: boolean;
|
|
656
693
|
/**
|
|
657
694
|
* Flag to set if last selected dataSource should be used
|
|
658
695
|
* @version: SDK: 1.24.0
|
|
@@ -662,6 +699,7 @@ export interface SearchViewConfig extends Omit<ViewConfig, 'hiddenHomepageModule
|
|
|
662
699
|
* To set the initial state of the search bar in case of saved-answers.
|
|
663
700
|
* @default false
|
|
664
701
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
702
|
+
* @deprecated Use {@link collapseSearchBar} instead
|
|
665
703
|
*/
|
|
666
704
|
collapseSearchBarInitially?: boolean;
|
|
667
705
|
/**
|
|
@@ -781,7 +819,11 @@ export declare enum Page {
|
|
|
781
819
|
/**
|
|
782
820
|
* SpotIQ listing page
|
|
783
821
|
*/
|
|
784
|
-
SpotIQ = "insights"
|
|
822
|
+
SpotIQ = "insights",
|
|
823
|
+
/**
|
|
824
|
+
* Monitor Alerts Page
|
|
825
|
+
*/
|
|
826
|
+
Monitor = "monitor"
|
|
785
827
|
}
|
|
786
828
|
/**
|
|
787
829
|
* Define the initial state os column custom group accordions
|
|
@@ -801,6 +843,11 @@ export declare enum DataPanelCustomColumnGroupsAccordionState {
|
|
|
801
843
|
*/
|
|
802
844
|
EXPAND_FIRST = "EXPAND_FIRST"
|
|
803
845
|
}
|
|
846
|
+
export declare enum HomePageSearchBarMode {
|
|
847
|
+
OBJECT_SEARCH = "objectSearch",
|
|
848
|
+
AI_ANSWER = "aiAnswer",
|
|
849
|
+
NONE = "none"
|
|
850
|
+
}
|
|
804
851
|
/**
|
|
805
852
|
* The view configuration for full app embedding.
|
|
806
853
|
* @group Embed components
|
|
@@ -987,19 +1034,6 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
987
1034
|
* ```
|
|
988
1035
|
*/
|
|
989
1036
|
fullHeight?: boolean;
|
|
990
|
-
/**
|
|
991
|
-
* Flag to control Data panel experience
|
|
992
|
-
* @default false
|
|
993
|
-
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
994
|
-
* @example
|
|
995
|
-
* ```js
|
|
996
|
-
* const embed = new AppEmbed('#tsEmbed', {
|
|
997
|
-
* ... // other options
|
|
998
|
-
* dataPanelV2: true,
|
|
999
|
-
* })
|
|
1000
|
-
* ```
|
|
1001
|
-
*/
|
|
1002
|
-
dataPanelV2?: boolean;
|
|
1003
1037
|
/**
|
|
1004
1038
|
* Show or hide Liveboard header
|
|
1005
1039
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
@@ -1074,6 +1108,7 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1074
1108
|
* To set the initial state of the search bar in case of saved-answers.
|
|
1075
1109
|
* @version SDK: 1.32.0 | Thoughtspot: 10.0.0.cl
|
|
1076
1110
|
* @default false
|
|
1111
|
+
* @deprecated Use {@link collapseSearchBar} instead
|
|
1077
1112
|
*/
|
|
1078
1113
|
collapseSearchBarInitially?: boolean;
|
|
1079
1114
|
/**
|
|
@@ -1127,6 +1162,53 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
|
|
|
1127
1162
|
* @version SDK : 1.29.0 | Thoughtspot : 10.1.0.cl
|
|
1128
1163
|
*/
|
|
1129
1164
|
isOnBeforeGetVizDataInterceptEnabled?: boolean;
|
|
1165
|
+
/**
|
|
1166
|
+
* Flag to use home page search bar mode
|
|
1167
|
+
* @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
|
|
1168
|
+
*/
|
|
1169
|
+
homePageSearchBarMode?: HomePageSearchBarMode;
|
|
1170
|
+
/**
|
|
1171
|
+
* This flag is used to enable the compact header in liveboard
|
|
1172
|
+
* @type {boolean}
|
|
1173
|
+
* @default false
|
|
1174
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
|
|
1175
|
+
* @example
|
|
1176
|
+
* ```js
|
|
1177
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1178
|
+
* ... // other options
|
|
1179
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
1180
|
+
* })
|
|
1181
|
+
* ```
|
|
1182
|
+
*/
|
|
1183
|
+
isLiveboardCompactHeaderEnabled?: boolean;
|
|
1184
|
+
/**
|
|
1185
|
+
* This flag is used to show/hide verified Icon in liveboard compact header
|
|
1186
|
+
* @type {boolean}
|
|
1187
|
+
* @default true
|
|
1188
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
1189
|
+
* @example
|
|
1190
|
+
* ```js
|
|
1191
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1192
|
+
* ... // other options
|
|
1193
|
+
* showLiveboardVerifiedBadge: true,
|
|
1194
|
+
* })
|
|
1195
|
+
* ```
|
|
1196
|
+
*/
|
|
1197
|
+
showLiveboardVerifiedBadge?: boolean;
|
|
1198
|
+
/**
|
|
1199
|
+
* This flag is used to show/hide re-verify banner in liveboard compact header
|
|
1200
|
+
* @type {boolean}
|
|
1201
|
+
* @default true
|
|
1202
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
1203
|
+
* @example
|
|
1204
|
+
* ```js
|
|
1205
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
1206
|
+
* ... // other options
|
|
1207
|
+
* showLiveboardReverifyBanner: true,
|
|
1208
|
+
* })
|
|
1209
|
+
* ```
|
|
1210
|
+
*/
|
|
1211
|
+
showLiveboardReverifyBanner?: boolean;
|
|
1130
1212
|
}
|
|
1131
1213
|
/**
|
|
1132
1214
|
* Embeds full ThoughtSpot experience in a host application.
|
|
@@ -1436,6 +1518,48 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
|
|
|
1436
1518
|
* @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
|
|
1437
1519
|
*/
|
|
1438
1520
|
showPreviewLoader?: boolean;
|
|
1521
|
+
/**
|
|
1522
|
+
* This flag is used to enable the compact header in liveboard
|
|
1523
|
+
* @type {boolean}
|
|
1524
|
+
* @default false
|
|
1525
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
|
|
1526
|
+
* @example
|
|
1527
|
+
* ```js
|
|
1528
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1529
|
+
* ... // other options
|
|
1530
|
+
* isLiveboardCompactHeaderEnabled: true,
|
|
1531
|
+
* })
|
|
1532
|
+
* ```
|
|
1533
|
+
*/
|
|
1534
|
+
isLiveboardCompactHeaderEnabled?: boolean;
|
|
1535
|
+
/**
|
|
1536
|
+
* This flag is used to show/hide verified Icon in liveboard compact header
|
|
1537
|
+
* @type {boolean}
|
|
1538
|
+
* @default true
|
|
1539
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
1540
|
+
* @example
|
|
1541
|
+
* ```js
|
|
1542
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1543
|
+
* ... // other options
|
|
1544
|
+
* showLiveboardVerifiedBadge: true,
|
|
1545
|
+
* })
|
|
1546
|
+
* ```
|
|
1547
|
+
*/
|
|
1548
|
+
showLiveboardVerifiedBadge?: boolean;
|
|
1549
|
+
/**
|
|
1550
|
+
* This flag is used to show/hide re-verify banner in liveboard compact header
|
|
1551
|
+
* @type {boolean}
|
|
1552
|
+
* @default true
|
|
1553
|
+
* @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
|
|
1554
|
+
* @example
|
|
1555
|
+
* ```js
|
|
1556
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
1557
|
+
* ... // other options
|
|
1558
|
+
* showLiveboardReverifyBanner: true,
|
|
1559
|
+
* })
|
|
1560
|
+
* ```
|
|
1561
|
+
*/
|
|
1562
|
+
showLiveboardReverifyBanner?: boolean;
|
|
1439
1563
|
}
|
|
1440
1564
|
/**
|
|
1441
1565
|
* Embed a ThoughtSpot Liveboard or visualization. When rendered it already
|
|
@@ -1475,6 +1599,13 @@ export declare class LiveboardEmbed extends V1Embed {
|
|
|
1475
1599
|
*/
|
|
1476
1600
|
render(): Promise<LiveboardEmbed>;
|
|
1477
1601
|
navigateToLiveboard(liveboardId: string, vizId?: string, activeTabId?: string): void;
|
|
1602
|
+
/**
|
|
1603
|
+
* Returns the full url of the liveboard/viz which can be used to open
|
|
1604
|
+
* this liveboard inside the full Thoughtspot application in a new tab.
|
|
1605
|
+
*
|
|
1606
|
+
* @returns url string
|
|
1607
|
+
*/
|
|
1608
|
+
getLiveboardUrl(): string;
|
|
1478
1609
|
}
|
|
1479
1610
|
/**
|
|
1480
1611
|
* @hidden
|
|
@@ -1500,6 +1631,32 @@ export interface ViewConfigAndListeners<T extends ViewConfig> {
|
|
|
1500
1631
|
*/
|
|
1501
1632
|
export function getViewPropsAndListeners<T extends EmbedProps, U extends ViewConfig>(props: T): ViewConfigAndListeners<U>;
|
|
1502
1633
|
|
|
1634
|
+
/**
|
|
1635
|
+
* Configuration for search options
|
|
1636
|
+
*/
|
|
1637
|
+
export interface SearchOptions {
|
|
1638
|
+
/**
|
|
1639
|
+
* The query string to pass to start the Conversation.
|
|
1640
|
+
*/
|
|
1641
|
+
searchQuery: string;
|
|
1642
|
+
}
|
|
1643
|
+
export interface ConversationViewConfig extends ViewConfig {
|
|
1644
|
+
/**
|
|
1645
|
+
* The ID of the worksheet to use for the conversation.
|
|
1646
|
+
*/
|
|
1647
|
+
worksheetId: string;
|
|
1648
|
+
/**
|
|
1649
|
+
* Ability to pass a starting search query to the conversation.
|
|
1650
|
+
*/
|
|
1651
|
+
searchOptions?: SearchOptions;
|
|
1652
|
+
}
|
|
1653
|
+
export declare class ConversationEmbed extends TsEmbed {
|
|
1654
|
+
protected viewConfig: ConversationViewConfig;
|
|
1655
|
+
constructor(container: HTMLElement, viewConfig: ConversationViewConfig);
|
|
1656
|
+
getIframeSrc(): string;
|
|
1657
|
+
render(): Promise<ConversationEmbed>;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1503
1660
|
export interface executeTMLInput {
|
|
1504
1661
|
metadata_tmls: string[];
|
|
1505
1662
|
import_policy?: 'PARTIAL' | 'ALL_OR_NONE' | 'VALIDATE_ONLY';
|
|
@@ -1577,22 +1734,23 @@ export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise
|
|
|
1577
1734
|
/**
|
|
1578
1735
|
* Imports TML representation of the metadata objects into ThoughtSpot.
|
|
1579
1736
|
* @param data
|
|
1737
|
+
* @returns imports TML data into ThoughtSpot
|
|
1580
1738
|
* @example
|
|
1581
1739
|
* ```js
|
|
1582
|
-
*
|
|
1583
|
-
* //Array of metadata Tmls
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
}).then(result => {
|
|
1591
|
-
|
|
1592
|
-
}).catch(error => {
|
|
1593
|
-
|
|
1594
|
-
});
|
|
1595
|
-
|
|
1740
|
+
* executeTML({
|
|
1741
|
+
* //Array of metadata Tmls in string format
|
|
1742
|
+
* metadata_tmls: [
|
|
1743
|
+
* "'\''{\"guid\":\"9bd202f5-d431-44bf-9a07-b4f7be372125\",
|
|
1744
|
+
* \"liveboard\":{\"name\":\"Parameters Liveboard\"}}'\''"
|
|
1745
|
+
* ],
|
|
1746
|
+
* import_policy: 'PARTIAL', // Specifies the import policy for the TML import.
|
|
1747
|
+
* create_new: false, // If selected, creates TML objects with new GUIDs.
|
|
1748
|
+
* }).then(result => {
|
|
1749
|
+
* console.log(result);
|
|
1750
|
+
* }).catch(error => {
|
|
1751
|
+
* console.error(error);
|
|
1752
|
+
* });
|
|
1753
|
+
*```
|
|
1596
1754
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
1597
1755
|
* @group Global methods
|
|
1598
1756
|
*/
|
|
@@ -1601,27 +1759,28 @@ export declare const executeTML: (data: executeTMLInput) => Promise<any>;
|
|
|
1601
1759
|
* Exports TML representation of the metadata objects from ThoughtSpot in JSON or YAML
|
|
1602
1760
|
* format.
|
|
1603
1761
|
* @param data
|
|
1762
|
+
* @returns exports TML data
|
|
1604
1763
|
* @example
|
|
1605
1764
|
* ```js
|
|
1606
|
-
exportTML({
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
}).then(result => {
|
|
1621
|
-
|
|
1622
|
-
}).catch(error => {
|
|
1623
|
-
|
|
1624
|
-
});
|
|
1765
|
+
* exportTML({
|
|
1766
|
+
* metadata: [
|
|
1767
|
+
* {
|
|
1768
|
+
* type: "LIVEBOARD", //Metadata Type
|
|
1769
|
+
* identifier: "9bd202f5-d431-44bf-9a07-b4f7be372125" //Metadata Id
|
|
1770
|
+
* }
|
|
1771
|
+
* ],
|
|
1772
|
+
* export_associated: false,//indicates whether to export associated metadata objects
|
|
1773
|
+
* export_fqn: false, //Adds FQNs of the referenced objects.For example, if you are
|
|
1774
|
+
* //exporting a Liveboard and its associated objects, the API
|
|
1775
|
+
* //returns the Liveboard TML data with the FQNs of the referenced
|
|
1776
|
+
* //worksheet. If the exported TML data includes FQNs, you don't need
|
|
1777
|
+
* //to manually add FQNs of the referenced objects during TML import.
|
|
1778
|
+
* edoc_format: "JSON" //It takes JSON or YAML value
|
|
1779
|
+
* }).then(result => {
|
|
1780
|
+
* console.log(result);
|
|
1781
|
+
* }).catch(error => {
|
|
1782
|
+
* console.error(error);
|
|
1783
|
+
* });
|
|
1625
1784
|
* ```
|
|
1626
1785
|
* @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
|
|
1627
1786
|
* @group Global methods
|
|
@@ -1632,6 +1791,29 @@ export declare const exportTML: (data: exportTMLInput) => Promise<any>;
|
|
|
1632
1791
|
*/
|
|
1633
1792
|
export declare function reset(): void;
|
|
1634
1793
|
|
|
1794
|
+
export interface BodylessConversationViewConfig extends ViewConfig {
|
|
1795
|
+
/**
|
|
1796
|
+
* The ID of the worksheet to use for the conversation.
|
|
1797
|
+
*/
|
|
1798
|
+
worksheetId: string;
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* Create a conversation embed, which can be integrated inside
|
|
1802
|
+
* chatbots or other conversational interfaces.
|
|
1803
|
+
* @group Embed components
|
|
1804
|
+
* @version SDK: 1.34.0 | ThoughtSpot: 10.3.0.cl
|
|
1805
|
+
*/
|
|
1806
|
+
export declare class BodylessConversation {
|
|
1807
|
+
constructor(viewConfig: BodylessConversationViewConfig);
|
|
1808
|
+
sendMessage(userMessage: string): Promise<{
|
|
1809
|
+
error: any;
|
|
1810
|
+
container?: undefined;
|
|
1811
|
+
} | {
|
|
1812
|
+
container: HTMLDivElement;
|
|
1813
|
+
error?: undefined;
|
|
1814
|
+
}>;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1635
1817
|
export declare let loggedInStatus: boolean;
|
|
1636
1818
|
export declare let samlAuthWindow: Window;
|
|
1637
1819
|
export declare let samlCompletionPromise: Promise<void>;
|
|
@@ -1757,7 +1939,6 @@ export declare function notifyLogout(): void;
|
|
|
1757
1939
|
* Services to be called after the login is successful,
|
|
1758
1940
|
* This should be called after the cookie is set for cookie auth or
|
|
1759
1941
|
* after the token is set for cookieless.
|
|
1760
|
-
*
|
|
1761
1942
|
* @return {Promise<void>}
|
|
1762
1943
|
* @example
|
|
1763
1944
|
* ```js
|
|
@@ -2064,7 +2245,11 @@ export declare enum HomeLeftNavItem {
|
|
|
2064
2245
|
/**
|
|
2065
2246
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
2066
2247
|
*/
|
|
2067
|
-
SpotIQAnalysis = "spotiq-analysis"
|
|
2248
|
+
SpotIQAnalysis = "spotiq-analysis",
|
|
2249
|
+
/**
|
|
2250
|
+
* @version SDK: 1.34.0| ThoughtSpot: 10.3.0.cl
|
|
2251
|
+
*/
|
|
2252
|
+
LiveboardSchedules = "liveboard-schedules"
|
|
2068
2253
|
}
|
|
2069
2254
|
export type DOMSelector = string | HTMLElement;
|
|
2070
2255
|
/**
|
|
@@ -2291,13 +2476,6 @@ export interface EmbedConfig {
|
|
|
2291
2476
|
* @default false
|
|
2292
2477
|
*/
|
|
2293
2478
|
queueMultiRenders?: boolean;
|
|
2294
|
-
/**
|
|
2295
|
-
* Dynamic CSS URL to be injected in the loaded application.
|
|
2296
|
-
* You would also need to set `style-src` in the CSP settings.
|
|
2297
|
-
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
2298
|
-
* @default ''
|
|
2299
|
-
*/
|
|
2300
|
-
customCssUrl?: string;
|
|
2301
2479
|
/**
|
|
2302
2480
|
* [AuthServer|Basic] Detect if third-party party cookies are enabled by doing an
|
|
2303
2481
|
* additional call. This is slower and should be avoided. Listen to the
|
|
@@ -2426,6 +2604,12 @@ export interface EmbedConfig {
|
|
|
2426
2604
|
* @version SDK: 1.28.5 | Thoughtspot: *
|
|
2427
2605
|
*/
|
|
2428
2606
|
disableTokenVerification?: boolean;
|
|
2607
|
+
/**
|
|
2608
|
+
* This flag is used to disable showing the login failure page in the embedded app.
|
|
2609
|
+
*
|
|
2610
|
+
* @version SDK 1.32.3 | Thoughtspot: *
|
|
2611
|
+
*/
|
|
2612
|
+
disableLoginFailurePage?: boolean;
|
|
2429
2613
|
}
|
|
2430
2614
|
export interface LayoutConfig {
|
|
2431
2615
|
}
|
|
@@ -2548,11 +2732,12 @@ export interface ViewConfig {
|
|
|
2548
2732
|
*/
|
|
2549
2733
|
visibleActions?: Action[];
|
|
2550
2734
|
/**
|
|
2551
|
-
* Show alert messages and toast messages in the embedded
|
|
2735
|
+
* Show alert messages and toast messages in the embedded
|
|
2736
|
+
* view in full app embed.
|
|
2552
2737
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
2553
2738
|
* @example
|
|
2554
2739
|
* ```js
|
|
2555
|
-
* const embed = new
|
|
2740
|
+
* const embed = new AppEmbed('#embed-container', {
|
|
2556
2741
|
* ... // other options
|
|
2557
2742
|
* showAlerts:true,
|
|
2558
2743
|
* })
|
|
@@ -2849,6 +3034,43 @@ export interface ViewConfig {
|
|
|
2849
3034
|
* @version SDK: 1.31.2 | ThoughtSpot: 10.0.0.cl
|
|
2850
3035
|
*/
|
|
2851
3036
|
enableV2Shell_experimental?: boolean;
|
|
3037
|
+
/**
|
|
3038
|
+
* To set the initial state of the search bar in case of saved-answers.
|
|
3039
|
+
* @default true
|
|
3040
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3041
|
+
* @example
|
|
3042
|
+
* ```js
|
|
3043
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
3044
|
+
* liveboardId: '123',
|
|
3045
|
+
* collapseSearchBar: true
|
|
3046
|
+
* });
|
|
3047
|
+
*/
|
|
3048
|
+
collapseSearchBar?: boolean;
|
|
3049
|
+
/**
|
|
3050
|
+
* This flag can be used to disable links inside the embedded app,
|
|
3051
|
+
* and disables redirection of links in a new tab.
|
|
3052
|
+
* @example
|
|
3053
|
+
* ```js
|
|
3054
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
3055
|
+
* disableRedirectionLinksInNewTab: true
|
|
3056
|
+
* });
|
|
3057
|
+
* ```
|
|
3058
|
+
* @version SDK: 1.32.1 | ThoughtSpot: 10.3.0.cl
|
|
3059
|
+
*/
|
|
3060
|
+
disableRedirectionLinksInNewTab?: boolean;
|
|
3061
|
+
/**
|
|
3062
|
+
* Flag to control Data panel experience
|
|
3063
|
+
* @default true
|
|
3064
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
3065
|
+
* @example
|
|
3066
|
+
* ```js
|
|
3067
|
+
* const embed = new AppEmbed('#tsEmbed', {
|
|
3068
|
+
* ... // other options
|
|
3069
|
+
* dataPanelV2: true,
|
|
3070
|
+
* })
|
|
3071
|
+
* ```
|
|
3072
|
+
*/
|
|
3073
|
+
dataPanelV2?: boolean;
|
|
2852
3074
|
}
|
|
2853
3075
|
/**
|
|
2854
3076
|
* MessagePayload: Embed event payload: message type, data and status (start/end)
|
|
@@ -3045,6 +3267,28 @@ export interface RuntimeParameter {
|
|
|
3045
3267
|
* console.log('Drilldown event', drilldown);
|
|
3046
3268
|
* }));
|
|
3047
3269
|
* ```
|
|
3270
|
+
*
|
|
3271
|
+
* If you are using React components for embedding, you can register to any
|
|
3272
|
+
* events from the `EmbedEvent` list by using the `on<EventName>` convention.
|
|
3273
|
+
* For example,`onAlert`, `onCopyToClipboard` and so on.
|
|
3274
|
+
*
|
|
3275
|
+
* @example
|
|
3276
|
+
* ```js
|
|
3277
|
+
* // ...
|
|
3278
|
+
* const MyComponent = ({ dataSources }) => {
|
|
3279
|
+
* const onLoad = () => {
|
|
3280
|
+
* console.log(EmbedEvent.Load, {});
|
|
3281
|
+
* };
|
|
3282
|
+
*
|
|
3283
|
+
* return (
|
|
3284
|
+
* <SearchEmbed
|
|
3285
|
+
* dataSources={dataSources}
|
|
3286
|
+
* onLoad = {logEvent("Load")}
|
|
3287
|
+
* />
|
|
3288
|
+
* );
|
|
3289
|
+
* };
|
|
3290
|
+
* ```
|
|
3291
|
+
*
|
|
3048
3292
|
* @group Events
|
|
3049
3293
|
*/
|
|
3050
3294
|
export declare enum EmbedEvent {
|
|
@@ -3913,21 +4157,61 @@ export declare enum EmbedEvent {
|
|
|
3913
4157
|
*/
|
|
3914
4158
|
Rename = "rename",
|
|
3915
4159
|
/**
|
|
3916
|
-
* Emitted
|
|
4160
|
+
* Emitted if the user wants to intercept the search execution
|
|
4161
|
+
* and implement logic to decide whether to run the search or not
|
|
4162
|
+
*
|
|
4163
|
+
* Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
|
|
4164
|
+
* for this embed event to get emitted.
|
|
4165
|
+
*
|
|
4166
|
+
* @param: payload
|
|
4167
|
+
* @param: responder
|
|
4168
|
+
* Contains elements that lets developers define whether ThoughtSpot
|
|
4169
|
+
* will run the search or not, and if not, which error message to provide.
|
|
3917
4170
|
*
|
|
3918
|
-
*
|
|
3919
|
-
*
|
|
4171
|
+
* execute: When execute returns true, the search will be run.
|
|
4172
|
+
* When execute returns false, the search will not be executed.
|
|
4173
|
+
*
|
|
4174
|
+
* error: Developers can customize the user facing message when execute is
|
|
4175
|
+
* set to false using the error parameter in responder
|
|
4176
|
+
*
|
|
4177
|
+
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3920
4178
|
*
|
|
4179
|
+
* @example
|
|
3921
4180
|
*```js
|
|
3922
|
-
*
|
|
4181
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
3923
4182
|
* (payload, responder) => {
|
|
3924
4183
|
* responder({
|
|
3925
4184
|
* data: {
|
|
3926
|
-
* execute:
|
|
3927
|
-
*
|
|
4185
|
+
* execute:false,
|
|
4186
|
+
* error: {
|
|
4187
|
+
* //Provide a custom error message to explain to your end user
|
|
4188
|
+
* //why their search did not run
|
|
4189
|
+
* errorText: "This search query cannot be run.
|
|
4190
|
+
* Please contact your administrator for more details."
|
|
4191
|
+
* }
|
|
4192
|
+
* }})
|
|
4193
|
+
* })
|
|
4194
|
+
* ```
|
|
4195
|
+
*
|
|
4196
|
+
*```js
|
|
4197
|
+
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
4198
|
+
* (payload, responder) => {
|
|
4199
|
+
* const query = payload.data.data.answer.search_query
|
|
4200
|
+
* responder({
|
|
4201
|
+
* data: {
|
|
4202
|
+
* // returns true as long as the query does not include
|
|
4203
|
+
* // both the 'sales' AND the 'county' column
|
|
4204
|
+
* execute: !(query.includes("sales")&&query.includes("county")),
|
|
4205
|
+
* error: {
|
|
4206
|
+
* //Provide a custom error message to explain to your end user
|
|
4207
|
+
* // why their search did not run, and which searches are accepted by your custom logic.
|
|
4208
|
+
* errorText: "You can't use this query :" + query + ".
|
|
4209
|
+
* The 'sales' measures can never be used at the 'county' level.
|
|
4210
|
+
* Please try another measure, or remove 'county' from your search."
|
|
4211
|
+
* }
|
|
4212
|
+
* }})
|
|
3928
4213
|
* })
|
|
3929
4214
|
*```
|
|
3930
|
-
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
3931
4215
|
*/
|
|
3932
4216
|
OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
|
|
3933
4217
|
/**
|
|
@@ -3945,7 +4229,7 @@ export declare enum EmbedEvent {
|
|
|
3945
4229
|
}
|
|
3946
4230
|
/**
|
|
3947
4231
|
* Event types that can be triggered by the host application
|
|
3948
|
-
* to the embedded ThoughtSpot app
|
|
4232
|
+
* to the embedded ThoughtSpot app.
|
|
3949
4233
|
*
|
|
3950
4234
|
* To trigger an event use the corresponding
|
|
3951
4235
|
* {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
|
|
@@ -3962,6 +4246,40 @@ export declare enum EmbedEvent {
|
|
|
3962
4246
|
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
|
|
3963
4247
|
* ]);
|
|
3964
4248
|
* ```
|
|
4249
|
+
* @example
|
|
4250
|
+
* If using React components to embed, use the format shown in this example:
|
|
4251
|
+
*
|
|
4252
|
+
* ```js
|
|
4253
|
+
* const selectVizs = () => {
|
|
4254
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, [
|
|
4255
|
+
* "715e4613-c891-4884-be44-aa8d13701c06",
|
|
4256
|
+
* "3f84d633-e325-44b2-be25-c6650e5a49cf"
|
|
4257
|
+
* ]);
|
|
4258
|
+
* };
|
|
4259
|
+
* ```
|
|
4260
|
+
*
|
|
4261
|
+
*
|
|
4262
|
+
* You can also attach an Embed event to a Host event to trigger
|
|
4263
|
+
* a specific action as shown in this example:
|
|
4264
|
+
*
|
|
4265
|
+
* @example
|
|
4266
|
+
* ```js
|
|
4267
|
+
* const EmbeddedComponent = () => {
|
|
4268
|
+
* const embedRef = useRef(null); // import { useRef } from react
|
|
4269
|
+
* const onLiveboardRendered = () => {
|
|
4270
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
4271
|
+
* };
|
|
4272
|
+
*
|
|
4273
|
+
* return (
|
|
4274
|
+
* <LiveboardEmbed
|
|
4275
|
+
* ref={embedRef}
|
|
4276
|
+
* liveboardId="<liveboard-guid>"
|
|
4277
|
+
* onLiveboardRendered={onLiveboardRendered}
|
|
4278
|
+
* />
|
|
4279
|
+
* );
|
|
4280
|
+
* }
|
|
4281
|
+
* ```
|
|
4282
|
+
*
|
|
3965
4283
|
* @group Events
|
|
3966
4284
|
*/
|
|
3967
4285
|
export declare enum HostEvent {
|
|
@@ -4045,6 +4363,15 @@ export declare enum HostEvent {
|
|
|
4045
4363
|
* @hidden
|
|
4046
4364
|
*/
|
|
4047
4365
|
Reload = "reload",
|
|
4366
|
+
/**
|
|
4367
|
+
* Get current iframe src
|
|
4368
|
+
* @example
|
|
4369
|
+
* ```js
|
|
4370
|
+
* const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
|
|
4371
|
+
* ```
|
|
4372
|
+
* @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
|
|
4373
|
+
*/
|
|
4374
|
+
GetIframeUrl = "GetIframeUrl",
|
|
4048
4375
|
/**
|
|
4049
4376
|
* Display specific visualizations on a Liveboard.
|
|
4050
4377
|
* @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
|
|
@@ -4311,13 +4638,15 @@ export declare enum HostEvent {
|
|
|
4311
4638
|
*
|
|
4312
4639
|
* @example
|
|
4313
4640
|
* ```js
|
|
4314
|
-
*
|
|
4641
|
+
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
4315
4642
|
* ```
|
|
4316
4643
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
4317
4644
|
*/
|
|
4318
4645
|
CreateMonitor = "createMonitor",
|
|
4319
4646
|
/**
|
|
4320
|
-
* Trigger the **Manage alerts** action on a
|
|
4647
|
+
* Trigger the **Manage alerts** action on a KPI chart
|
|
4648
|
+
* in a visualization or saved Answer.
|
|
4649
|
+
*
|
|
4321
4650
|
* @param - an object with `vizId` as a key
|
|
4322
4651
|
* @example
|
|
4323
4652
|
* ```js
|
|
@@ -4325,6 +4654,16 @@ export declare enum HostEvent {
|
|
|
4325
4654
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
4326
4655
|
* })
|
|
4327
4656
|
* ```
|
|
4657
|
+
*
|
|
4658
|
+
* @example
|
|
4659
|
+
* ```js
|
|
4660
|
+
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
4661
|
+
* ```
|
|
4662
|
+
*
|
|
4663
|
+
* @example
|
|
4664
|
+
* ```js
|
|
4665
|
+
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
4666
|
+
* ```
|
|
4328
4667
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
4329
4668
|
*/
|
|
4330
4669
|
ManageMonitor = "manageMonitor",
|
|
@@ -4634,11 +4973,24 @@ export declare enum HostEvent {
|
|
|
4634
4973
|
* filter: {
|
|
4635
4974
|
* column: "item type",
|
|
4636
4975
|
* oper: "IN",
|
|
4637
|
-
* values: ["bags","shirts"]
|
|
4976
|
+
* values: ["bags","shirts"]
|
|
4638
4977
|
* }
|
|
4639
4978
|
* });
|
|
4640
4979
|
* ```
|
|
4641
4980
|
* @example
|
|
4981
|
+
* ```js
|
|
4982
|
+
*
|
|
4983
|
+
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
4984
|
+
* filter: {
|
|
4985
|
+
* column: "date",
|
|
4986
|
+
* oper: "EQ",
|
|
4987
|
+
* values: ["JULY","2023"],
|
|
4988
|
+
* type: "MONTH_YEAR"
|
|
4989
|
+
* }
|
|
4990
|
+
* });
|
|
4991
|
+
* ```
|
|
4992
|
+
*
|
|
4993
|
+
* @example
|
|
4642
4994
|
*
|
|
4643
4995
|
* ```js
|
|
4644
4996
|
* liveboardEmbed.trigger(HostEvent.UpdateFilters, {
|
|
@@ -4655,7 +5007,8 @@ export declare enum HostEvent {
|
|
|
4655
5007
|
* {
|
|
4656
5008
|
* column: "Date",
|
|
4657
5009
|
* oper: 'EQ',
|
|
4658
|
-
* values: ["
|
|
5010
|
+
* values: ["2023-07-31"],
|
|
5011
|
+
* types: "EXACT_DATE"
|
|
4659
5012
|
* }]
|
|
4660
5013
|
* });
|
|
4661
5014
|
* ```
|
|
@@ -4841,7 +5194,6 @@ export declare enum Param {
|
|
|
4841
5194
|
ViewPortHeight = "viewPortHeight",
|
|
4842
5195
|
ViewPortWidth = "viewPortWidth",
|
|
4843
5196
|
VisibleActions = "visibleAction",
|
|
4844
|
-
CustomCSSUrl = "customCssUrl",
|
|
4845
5197
|
DisableLoginRedirect = "disableLoginRedirect",
|
|
4846
5198
|
visibleVizs = "pinboardVisibleVizs",
|
|
4847
5199
|
LiveboardV2Enabled = "isPinboardV2Enabled",
|
|
@@ -4896,7 +5248,12 @@ export declare enum Param {
|
|
|
4896
5248
|
Enable2ColumnLayout = "enable2ColumnLayout",
|
|
4897
5249
|
IsFullAppEmbed = "isFullAppEmbed",
|
|
4898
5250
|
IsOnBeforeGetVizDataInterceptEnabled = "isOnBeforeGetVizDataInterceptEnabled",
|
|
4899
|
-
FocusSearchBarOnRender = "focusSearchBarOnRender"
|
|
5251
|
+
FocusSearchBarOnRender = "focusSearchBarOnRender",
|
|
5252
|
+
DisableRedirectionLinksInNewTab = "disableRedirectionLinksInNewTab",
|
|
5253
|
+
HomePageSearchBarMode = "homePageSearchBarMode",
|
|
5254
|
+
ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
|
|
5255
|
+
ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
|
|
5256
|
+
LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled"
|
|
4900
5257
|
}
|
|
4901
5258
|
/**
|
|
4902
5259
|
* ThoughtSpot application pages include actions and menu commands
|
|
@@ -5045,6 +5402,7 @@ export declare enum Action {
|
|
|
5045
5402
|
*/
|
|
5046
5403
|
ConfigureFilter = "configureFilter",
|
|
5047
5404
|
CollapseDataSources = "collapseDataSources",
|
|
5405
|
+
CollapseDataPanel = "collapseDataPanel",
|
|
5048
5406
|
/**
|
|
5049
5407
|
* The **Choose sources** button on Search page.
|
|
5050
5408
|
* Allows selecting data sources for search queries.
|
|
@@ -5440,12 +5798,15 @@ export declare enum Action {
|
|
|
5440
5798
|
* The Create alert action on KPI charts.
|
|
5441
5799
|
* @example
|
|
5442
5800
|
* ```js
|
|
5443
|
-
* disabledActions: [Action.CreateMonitor
|
|
5801
|
+
* disabledActions: [Action.CreateMonitor]
|
|
5444
5802
|
* ```
|
|
5445
5803
|
* @version SDK: 1.11.0 | ThoughtSpot: 8.3.0.cl, 8.4.1.sw
|
|
5446
5804
|
*/
|
|
5447
5805
|
CreateMonitor = "createMonitor",
|
|
5448
5806
|
/**
|
|
5807
|
+
* @deprecated
|
|
5808
|
+
* Reports errors
|
|
5809
|
+
*
|
|
5449
5810
|
* @example
|
|
5450
5811
|
* ```js
|
|
5451
5812
|
* disabledActions: [Action.ReportError]
|
|
@@ -5670,35 +6031,84 @@ export declare enum Action {
|
|
|
5670
6031
|
*/
|
|
5671
6032
|
RenameModalTitleDescription = "renameModalTitleDescription",
|
|
5672
6033
|
/**
|
|
6034
|
+
*
|
|
6035
|
+
* @example
|
|
6036
|
+
* ```js
|
|
6037
|
+
* disabledActions: [Action.RequestVerification]
|
|
6038
|
+
* ```
|
|
5673
6039
|
*
|
|
5674
6040
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5675
6041
|
*/
|
|
5676
6042
|
RequestVerification = "requestVerification",
|
|
5677
6043
|
/**
|
|
6044
|
+
*
|
|
6045
|
+
* Allows users to mark a Liveboard as verified.
|
|
6046
|
+
*
|
|
6047
|
+
* @example
|
|
6048
|
+
* ```js
|
|
6049
|
+
* disabledActions: [Action.MarkAsVerified]
|
|
6050
|
+
* ```
|
|
5678
6051
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5679
6052
|
*/
|
|
5680
6053
|
MarkAsVerified = "markAsVerified",
|
|
5681
6054
|
/**
|
|
6055
|
+
* The **Add Tab** action on a Liveboard.
|
|
6056
|
+
* Allows adding a new tab to a Liveboard view.
|
|
6057
|
+
*
|
|
6058
|
+
* @example
|
|
6059
|
+
* ```js
|
|
6060
|
+
* disabledActions: [Action.AddTab]
|
|
6061
|
+
* ```
|
|
5682
6062
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5683
6063
|
*/
|
|
5684
6064
|
AddTab = "addTab",
|
|
5685
6065
|
/**
|
|
6066
|
+
*
|
|
6067
|
+
* Initiates contextual change analysis on KPI charts.
|
|
6068
|
+
*
|
|
6069
|
+
* @example
|
|
6070
|
+
* ```js
|
|
6071
|
+
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
6072
|
+
* ```
|
|
5686
6073
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
5687
6074
|
*/
|
|
5688
6075
|
EnableContextualChangeAnalysis = "enableContextualChangeAnalysis",
|
|
5689
6076
|
/**
|
|
6077
|
+
*
|
|
6078
|
+
* @example
|
|
6079
|
+
* ```js
|
|
6080
|
+
* disabledActions: [Action.ShowSageQuery]
|
|
6081
|
+
* ```
|
|
6082
|
+
*
|
|
5690
6083
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5691
6084
|
*/
|
|
5692
6085
|
ShowSageQuery = "showSageQuery",
|
|
5693
6086
|
/**
|
|
6087
|
+
*
|
|
6088
|
+
* @example
|
|
6089
|
+
* ```js
|
|
6090
|
+
* disabledActions: [Action.EditSageAnswer]
|
|
6091
|
+
* ```
|
|
5694
6092
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5695
6093
|
*/
|
|
5696
6094
|
EditSageAnswer = "editSageAnswer",
|
|
5697
6095
|
/**
|
|
6096
|
+
*
|
|
6097
|
+
* This action allows users to send feedback on AI-generated Answers.
|
|
6098
|
+
*
|
|
6099
|
+
* @example
|
|
6100
|
+
* ```js
|
|
6101
|
+
* disabledActions: [Action.SageAnswerFeedback]
|
|
6102
|
+
* ```
|
|
5698
6103
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5699
6104
|
*/
|
|
5700
6105
|
SageAnswerFeedback = "sageAnswerFeedback",
|
|
5701
6106
|
/**
|
|
6107
|
+
*
|
|
6108
|
+
* @example
|
|
6109
|
+
* ```js
|
|
6110
|
+
* disabledActions: [Action.ModifySageAnswer]
|
|
6111
|
+
* ```
|
|
5702
6112
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
5703
6113
|
*/
|
|
5704
6114
|
ModifySageAnswer = "modifySageAnswer",
|
|
@@ -5765,7 +6175,7 @@ export declare enum Action {
|
|
|
5765
6175
|
*
|
|
5766
6176
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
5767
6177
|
*/
|
|
5768
|
-
CreateLiveboard = "
|
|
6178
|
+
CreateLiveboard = "createLiveboard",
|
|
5769
6179
|
/**
|
|
5770
6180
|
* Action ID for to hide Verified Liveboard Banner
|
|
5771
6181
|
* @example
|
|
@@ -5819,7 +6229,71 @@ export declare enum Action {
|
|
|
5819
6229
|
* ```
|
|
5820
6230
|
* @version SDK: 1.27.10 | Thoughtspot: 9.12.5.cl
|
|
5821
6231
|
*/
|
|
5822
|
-
AIHighlights = "AIHighlights"
|
|
6232
|
+
AIHighlights = "AIHighlights",
|
|
6233
|
+
/**
|
|
6234
|
+
* Action ID for edit schedule action on schedule on homepage
|
|
6235
|
+
* @example
|
|
6236
|
+
* ```js
|
|
6237
|
+
* disabledActions: [Action.EditScheduleHomepage]
|
|
6238
|
+
* ```
|
|
6239
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
6240
|
+
*/
|
|
6241
|
+
EditScheduleHomepage = "editScheduleHomepage",
|
|
6242
|
+
/**
|
|
6243
|
+
* Action ID for pause schedule action on schedule on homepage
|
|
6244
|
+
* @example
|
|
6245
|
+
* ```js
|
|
6246
|
+
* disabledActions: [Action.PauseScheduleHomepage]
|
|
6247
|
+
* ```
|
|
6248
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
6249
|
+
*/
|
|
6250
|
+
PauseScheduleHomepage = "pauseScheduleHomepage",
|
|
6251
|
+
/**
|
|
6252
|
+
* Action ID for view schedule run action on schedule on homepage
|
|
6253
|
+
* @example
|
|
6254
|
+
* ```js
|
|
6255
|
+
* disabledActions: [Action.ViewScheduleRunHomepage]
|
|
6256
|
+
* ```
|
|
6257
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
6258
|
+
*/
|
|
6259
|
+
ViewScheduleRunHomepage = "viewScheduleRunHomepage",
|
|
6260
|
+
/**
|
|
6261
|
+
* Action ID for unsubscribe schedule action on schedule on homepage
|
|
6262
|
+
* @example
|
|
6263
|
+
* ```js
|
|
6264
|
+
* disabledActions: [Action.UnsubscribeScheduleHomepage]
|
|
6265
|
+
* ```
|
|
6266
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
6267
|
+
*/
|
|
6268
|
+
UnsubscribeScheduleHomepage = "unsubscribeScheduleHomepage",
|
|
6269
|
+
/**
|
|
6270
|
+
* The **Manage Tags** action on Homepage Favourite Module.
|
|
6271
|
+
*
|
|
6272
|
+
* @example
|
|
6273
|
+
* ```js
|
|
6274
|
+
* disabledActions: [Action.ManageTags]
|
|
6275
|
+
* ```
|
|
6276
|
+
* @version SDK : 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
6277
|
+
*/
|
|
6278
|
+
ManageTags = "manageTags",
|
|
6279
|
+
/**
|
|
6280
|
+
* Action ID for delete schedule action on schedule on homepage
|
|
6281
|
+
* @example
|
|
6282
|
+
* ```js
|
|
6283
|
+
* disabledActions: [Action.DeleteScheduleHomepage]
|
|
6284
|
+
* ```
|
|
6285
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
6286
|
+
*/
|
|
6287
|
+
DeleteScheduleHomepage = "deleteScheduleHomepage",
|
|
6288
|
+
/**
|
|
6289
|
+
* The **Analyze CTA** action on KPI chart.
|
|
6290
|
+
* @example
|
|
6291
|
+
* ```js
|
|
6292
|
+
* disabledActions: [Action.KPIAnalysisCTA]
|
|
6293
|
+
* ```
|
|
6294
|
+
* @version SDK: 1.34.0 | Thoughtspot: 10.3.0.cl
|
|
6295
|
+
*/
|
|
6296
|
+
KPIAnalysisCTA = "kpiAnalysisCTA"
|
|
5823
6297
|
}
|
|
5824
6298
|
export interface AnswerServiceType {
|
|
5825
6299
|
getAnswer?: (offset: number, batchSize: number) => any;
|
|
@@ -5975,9 +6449,12 @@ export interface CustomCssVariables {
|
|
|
5975
6449
|
*/
|
|
5976
6450
|
'--ts-var-root-text-transform'?: string;
|
|
5977
6451
|
/**
|
|
5978
|
-
*
|
|
5979
|
-
*
|
|
5980
|
-
*
|
|
6452
|
+
* Font color of the text on toggle buttons such as
|
|
6453
|
+
* **All**, **Answers**, and **Liveboards** on the Home page (Classic experience),
|
|
6454
|
+
* the text color of the chart and table tiles on Home page (New modular Homepage experience),
|
|
6455
|
+
* and title text on the AI-generated charts and tables.
|
|
6456
|
+
* The default color code is #2770EF.
|
|
6457
|
+
*
|
|
5981
6458
|
*/
|
|
5982
6459
|
'--ts-var-application-color'?: string;
|
|
5983
6460
|
/**
|
|
@@ -6088,6 +6565,10 @@ export interface CustomCssVariables {
|
|
|
6088
6565
|
* Background color of the primary buttons on hover.
|
|
6089
6566
|
*/
|
|
6090
6567
|
'--ts-var-button--primary--hover-background'?: string;
|
|
6568
|
+
/**
|
|
6569
|
+
* Backgroud color of the primary buttons when active.
|
|
6570
|
+
*/
|
|
6571
|
+
'--ts-var-button--primary--active-background'?: string;
|
|
6091
6572
|
/**
|
|
6092
6573
|
* Font color of the text on the secondary buttons.
|
|
6093
6574
|
*/
|
|
@@ -6104,6 +6585,10 @@ export interface CustomCssVariables {
|
|
|
6104
6585
|
* Background color of the secondary button on hover.
|
|
6105
6586
|
*/
|
|
6106
6587
|
'--ts-var-button--secondary--hover-background'?: string;
|
|
6588
|
+
/**
|
|
6589
|
+
* Backgroud color of the secondary buttons when active.
|
|
6590
|
+
*/
|
|
6591
|
+
'--ts-var-button--secondary--active-background'?: string;
|
|
6107
6592
|
/**
|
|
6108
6593
|
* Font color of the tertiary button. For example, the *Undo*, *Redo*, and *Reset*
|
|
6109
6594
|
* buttons on the *Search* page.
|
|
@@ -6117,6 +6602,10 @@ export interface CustomCssVariables {
|
|
|
6117
6602
|
* Background color of the tertiary button when a user hovers over these buttons.
|
|
6118
6603
|
*/
|
|
6119
6604
|
'--ts-var-button--tertiary--hover-background'?: string;
|
|
6605
|
+
/**
|
|
6606
|
+
* Backgroud color of the tertiary buttons when active.
|
|
6607
|
+
*/
|
|
6608
|
+
'--ts-var-button--tertiary--active-background'?: string;
|
|
6120
6609
|
/**
|
|
6121
6610
|
* Font color of the title text of a visualization or Answer.
|
|
6122
6611
|
*/
|
|
@@ -6292,6 +6781,34 @@ export interface CustomCssVariables {
|
|
|
6292
6781
|
* Background for favorite carousel find your favorites card in modular home.
|
|
6293
6782
|
*/
|
|
6294
6783
|
'--ts-var-home-favorite-suggestion-card-background'?: string;
|
|
6784
|
+
/**
|
|
6785
|
+
* Border color of checkbox in error state.
|
|
6786
|
+
*/
|
|
6787
|
+
'--ts-var-checkbox-error-border'?: string;
|
|
6788
|
+
/**
|
|
6789
|
+
* Border color of checkbox.
|
|
6790
|
+
*/
|
|
6791
|
+
'--ts-var-checkbox-border-color'?: string;
|
|
6792
|
+
/**
|
|
6793
|
+
* Border color of checkbox in hover state.
|
|
6794
|
+
*/
|
|
6795
|
+
'--ts-var-checkbox-hover-border'?: string;
|
|
6796
|
+
/**
|
|
6797
|
+
* Border and font color of checkbox in active state.
|
|
6798
|
+
*/
|
|
6799
|
+
'--ts-var-checkbox-active-color'?: string;
|
|
6800
|
+
/**
|
|
6801
|
+
* Border color and font color of checkbox in checked state.
|
|
6802
|
+
*/
|
|
6803
|
+
'--ts-var-checkbox-checked-color'?: string;
|
|
6804
|
+
/**
|
|
6805
|
+
* Border and font color of checkbox in disabled state.
|
|
6806
|
+
*/
|
|
6807
|
+
'--ts-var-checkbox-checked-disabled'?: string;
|
|
6808
|
+
/**
|
|
6809
|
+
* Background color of checkbox.
|
|
6810
|
+
*/
|
|
6811
|
+
'--ts-var-checkbox-background-color'?: string;
|
|
6295
6812
|
}
|
|
6296
6813
|
|
|
6297
6814
|
export interface SessionInterface {
|
|
@@ -6387,6 +6904,7 @@ export declare class AnswerService {
|
|
|
6387
6904
|
* @returns
|
|
6388
6905
|
*/
|
|
6389
6906
|
addFilter(columnName: string, operator: RuntimeFilterOp, values: RuntimeFilter['values']): Promise<any>;
|
|
6907
|
+
getSQLQuery(): Promise<string>;
|
|
6390
6908
|
/**
|
|
6391
6909
|
* Fetch data from the answer.
|
|
6392
6910
|
* @param offset
|
|
@@ -6405,6 +6923,16 @@ export declare class AnswerService {
|
|
|
6405
6923
|
* @returns Response
|
|
6406
6924
|
*/
|
|
6407
6925
|
fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
|
|
6926
|
+
/**
|
|
6927
|
+
* Fetch the data for the answer as a PNG blob. This might be
|
|
6928
|
+
* quicker for larger data.
|
|
6929
|
+
* @param userLocale
|
|
6930
|
+
* @param includeInfo
|
|
6931
|
+
* @param omitBackground Omit the background in the PNG
|
|
6932
|
+
* @param deviceScaleFactor The scale factor for the PNG
|
|
6933
|
+
* @return Response
|
|
6934
|
+
*/
|
|
6935
|
+
fetchPNGBlob(userLocale?: string, includeInfo?: boolean, omitBackground?: boolean, deviceScaleFactor?: number): Promise<Response>;
|
|
6408
6936
|
/**
|
|
6409
6937
|
* Just get the internal URL for this answer's data
|
|
6410
6938
|
* as a CSV blob.
|
|
@@ -6413,6 +6941,14 @@ export declare class AnswerService {
|
|
|
6413
6941
|
* @returns
|
|
6414
6942
|
*/
|
|
6415
6943
|
getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
|
|
6944
|
+
/**
|
|
6945
|
+
* Just get the internal URL for this answer's data
|
|
6946
|
+
* as a PNG blob.
|
|
6947
|
+
* @param userLocale
|
|
6948
|
+
* @param omitBackground
|
|
6949
|
+
* @param deviceScaleFactor
|
|
6950
|
+
*/
|
|
6951
|
+
getFetchPNGBlobUrl(userLocale?: string, omitBackground?: boolean, deviceScaleFactor?: number): string;
|
|
6416
6952
|
/**
|
|
6417
6953
|
* Get underlying data given a point and the output column names.
|
|
6418
6954
|
* In case of a context menu action, the selectedPoints are
|
|
@@ -6444,6 +6980,9 @@ export declare class AnswerService {
|
|
|
6444
6980
|
*/
|
|
6445
6981
|
getSession(): SessionInterface;
|
|
6446
6982
|
getAnswer(): Promise<any>;
|
|
6983
|
+
getTML(): Promise<any>;
|
|
6984
|
+
addDisplayedVizToLiveboard(liveboardId: string): Promise<any>;
|
|
6985
|
+
setTMLOverride(override: any): void;
|
|
6447
6986
|
}
|
|
6448
6987
|
|
|
6449
6988
|
/**
|
|
@@ -6465,6 +7004,10 @@ export declare const setEmbedConfig: (newConfig: EmbedConfig) => EmbedConfig;
|
|
|
6465
7004
|
export declare const EndPoints: {
|
|
6466
7005
|
CONFIG: string;
|
|
6467
7006
|
};
|
|
7007
|
+
/**
|
|
7008
|
+
* Enum of mixpanel events
|
|
7009
|
+
* @hidden
|
|
7010
|
+
*/
|
|
6468
7011
|
export declare const MIXPANEL_EVENT: {
|
|
6469
7012
|
VISUAL_SDK_RENDER_START: string;
|
|
6470
7013
|
VISUAL_SDK_CALLED_INIT: string;
|
|
@@ -6510,16 +7053,33 @@ export declare function testResetMixpanel(): void;
|
|
|
6510
7053
|
*/
|
|
6511
7054
|
export declare const tokenizedFetch: typeof fetch;
|
|
6512
7055
|
|
|
6513
|
-
export declare function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
6514
7056
|
/**
|
|
6515
|
-
*
|
|
6516
|
-
* @
|
|
6517
|
-
*
|
|
6518
|
-
*
|
|
6519
|
-
* ```
|
|
6520
|
-
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
6521
|
-
* @group Authentication / Init
|
|
7057
|
+
*
|
|
7058
|
+
* @param query string
|
|
7059
|
+
* @param worksheetId string
|
|
7060
|
+
* @returns answerService AnswerService
|
|
6522
7061
|
*/
|
|
7062
|
+
export declare const getAnswerFromQuery: (query: string, worksheetId: string) => Promise<{
|
|
7063
|
+
answer: AnswerService;
|
|
7064
|
+
suggestion: any;
|
|
7065
|
+
}>;
|
|
7066
|
+
|
|
7067
|
+
export declare const createLiveboardWithAnswers: (answers: AnswerService[], name: string) => Promise<any>;
|
|
7068
|
+
|
|
7069
|
+
/**
|
|
7070
|
+
*
|
|
7071
|
+
* @param embedConfig
|
|
7072
|
+
*/
|
|
7073
|
+
export declare function getAuthenticationToken(embedConfig: EmbedConfig): Promise<string>;
|
|
7074
|
+
/**
|
|
7075
|
+
* Resets the auth token and a new token will be fetched on the next request.
|
|
7076
|
+
* @example
|
|
7077
|
+
* ```js
|
|
7078
|
+
* resetCachedAuthToken();
|
|
7079
|
+
* ```
|
|
7080
|
+
* @version SDK: 1.28.0 | ThoughtSpot: *
|
|
7081
|
+
* @group Authentication / Init
|
|
7082
|
+
*/
|
|
6523
7083
|
export declare const resetCachedAuthToken: () => void;
|
|
6524
7084
|
|
|
6525
7085
|
/**
|
|
@@ -6587,7 +7147,7 @@ export declare class TsEmbed {
|
|
|
6587
7147
|
* @param queryParams
|
|
6588
7148
|
* @returns queryParams
|
|
6589
7149
|
*/
|
|
6590
|
-
protected getBaseQueryParams(queryParams?:
|
|
7150
|
+
protected getBaseQueryParams(queryParams?: Record<any, any>): Record<any, any>;
|
|
6591
7151
|
/**
|
|
6592
7152
|
* Constructs the base URL string to load v1 of the ThoughtSpot app.
|
|
6593
7153
|
* This is used for embedding Liveboards, visualizations, and full application.
|
|
@@ -6714,7 +7274,9 @@ export declare class TsEmbed {
|
|
|
6714
7274
|
* THOUGHTSPOT URL params starts with a prefix "ts-"
|
|
6715
7275
|
* @version SDK: 1.14.0 | ThoughtSpot: 8.4.0.cl, 8.4.1-sw
|
|
6716
7276
|
*/
|
|
6717
|
-
getThoughtSpotPostUrlParams(
|
|
7277
|
+
getThoughtSpotPostUrlParams(additionalParams?: {
|
|
7278
|
+
[key: string]: string | number;
|
|
7279
|
+
}): string;
|
|
6718
7280
|
/**
|
|
6719
7281
|
* Destroys the ThoughtSpot embed, and remove any nodes from the DOM.
|
|
6720
7282
|
* @version SDK: 1.19.1 | ThoughtSpot: *
|
|
@@ -6805,7 +7367,6 @@ export declare class V1Embed extends TsEmbed {
|
|
|
6805
7367
|
on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
|
|
6806
7368
|
/**
|
|
6807
7369
|
* Only for testing purposes.
|
|
6808
|
-
*
|
|
6809
7370
|
* @hidden
|
|
6810
7371
|
*/
|
|
6811
7372
|
test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
|