@thoughtspot/visual-embed-sdk 1.47.1 → 1.47.3

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.
Files changed (159) hide show
  1. package/cjs/package.json +3 -3
  2. package/cjs/src/embed/app.d.ts +19 -1
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +7 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +141 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/conversation.d.ts +2 -1
  9. package/cjs/src/embed/conversation.d.ts.map +1 -1
  10. package/cjs/src/embed/conversation.js.map +1 -1
  11. package/cjs/src/embed/hostEventClient/contracts.d.ts +4 -1
  12. package/cjs/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  13. package/cjs/src/embed/hostEventClient/host-event-client.spec.js +2 -2
  14. package/cjs/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  15. package/cjs/src/embed/liveboard.d.ts +13 -0
  16. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  17. package/cjs/src/embed/liveboard.js +7 -1
  18. package/cjs/src/embed/liveboard.js.map +1 -1
  19. package/cjs/src/embed/liveboard.spec.js +54 -0
  20. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  21. package/cjs/src/embed/search.d.ts +24 -1
  22. package/cjs/src/embed/search.d.ts.map +1 -1
  23. package/cjs/src/embed/search.js +15 -2
  24. package/cjs/src/embed/search.js.map +1 -1
  25. package/cjs/src/embed/search.spec.js +99 -0
  26. package/cjs/src/embed/search.spec.js.map +1 -1
  27. package/cjs/src/embed/spotter-utils.d.ts +3 -0
  28. package/cjs/src/embed/spotter-utils.d.ts.map +1 -1
  29. package/cjs/src/embed/spotter-utils.js +11 -3
  30. package/cjs/src/embed/spotter-utils.js.map +1 -1
  31. package/cjs/src/embed/spotter-utils.spec.js +51 -0
  32. package/cjs/src/embed/spotter-utils.spec.js.map +1 -1
  33. package/cjs/src/embed/ts-embed.d.ts +14 -1
  34. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  35. package/cjs/src/embed/ts-embed.js +29 -3
  36. package/cjs/src/embed/ts-embed.js.map +1 -1
  37. package/cjs/src/embed/ts-embed.spec.js +139 -0
  38. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  39. package/cjs/src/index.d.ts +2 -2
  40. package/cjs/src/index.d.ts.map +1 -1
  41. package/cjs/src/index.js +8 -1
  42. package/cjs/src/index.js.map +1 -1
  43. package/cjs/src/mixpanel-service.d.ts.map +1 -1
  44. package/cjs/src/mixpanel-service.js +2 -0
  45. package/cjs/src/mixpanel-service.js.map +1 -1
  46. package/cjs/src/mixpanel-service.spec.js +2 -0
  47. package/cjs/src/mixpanel-service.spec.js.map +1 -1
  48. package/cjs/src/test/test-utils.d.ts +1 -0
  49. package/cjs/src/test/test-utils.d.ts.map +1 -1
  50. package/cjs/src/test/test-utils.js +26 -1
  51. package/cjs/src/test/test-utils.js.map +1 -1
  52. package/cjs/src/types.d.ts +532 -6
  53. package/cjs/src/types.d.ts.map +1 -1
  54. package/cjs/src/types.js +225 -3
  55. package/cjs/src/types.js.map +1 -1
  56. package/dist/{index-CUgxBnPm.js → index-DZq20cR6.js} +1 -1
  57. package/dist/src/embed/app.d.ts +19 -1
  58. package/dist/src/embed/app.d.ts.map +1 -1
  59. package/dist/src/embed/conversation.d.ts +2 -1
  60. package/dist/src/embed/conversation.d.ts.map +1 -1
  61. package/dist/src/embed/hostEventClient/contracts.d.ts +4 -1
  62. package/dist/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  63. package/dist/src/embed/liveboard.d.ts +13 -0
  64. package/dist/src/embed/liveboard.d.ts.map +1 -1
  65. package/dist/src/embed/search.d.ts +24 -1
  66. package/dist/src/embed/search.d.ts.map +1 -1
  67. package/dist/src/embed/spotter-utils.d.ts +3 -0
  68. package/dist/src/embed/spotter-utils.d.ts.map +1 -1
  69. package/dist/src/embed/ts-embed.d.ts +14 -1
  70. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  71. package/dist/src/index.d.ts +2 -2
  72. package/dist/src/index.d.ts.map +1 -1
  73. package/dist/src/mixpanel-service.d.ts.map +1 -1
  74. package/dist/src/test/test-utils.d.ts +1 -0
  75. package/dist/src/test/test-utils.d.ts.map +1 -1
  76. package/dist/src/types.d.ts +532 -6
  77. package/dist/src/types.d.ts.map +1 -1
  78. package/dist/tsembed-react.es.js +299 -17
  79. package/dist/tsembed-react.js +298 -16
  80. package/dist/tsembed.es.js +300 -18
  81. package/dist/tsembed.js +298 -16
  82. package/dist/visual-embed-sdk-react-full.d.ts +572 -6
  83. package/dist/visual-embed-sdk-react.d.ts +572 -6
  84. package/dist/visual-embed-sdk.d.ts +600 -6
  85. package/lib/package.json +3 -3
  86. package/lib/src/embed/app.d.ts +19 -1
  87. package/lib/src/embed/app.d.ts.map +1 -1
  88. package/lib/src/embed/app.js +7 -1
  89. package/lib/src/embed/app.js.map +1 -1
  90. package/lib/src/embed/app.spec.js +142 -1
  91. package/lib/src/embed/app.spec.js.map +1 -1
  92. package/lib/src/embed/conversation.d.ts +2 -1
  93. package/lib/src/embed/conversation.d.ts.map +1 -1
  94. package/lib/src/embed/conversation.js.map +1 -1
  95. package/lib/src/embed/hostEventClient/contracts.d.ts +4 -1
  96. package/lib/src/embed/hostEventClient/contracts.d.ts.map +1 -1
  97. package/lib/src/embed/hostEventClient/host-event-client.spec.js +2 -2
  98. package/lib/src/embed/hostEventClient/host-event-client.spec.js.map +1 -1
  99. package/lib/src/embed/liveboard.d.ts +13 -0
  100. package/lib/src/embed/liveboard.d.ts.map +1 -1
  101. package/lib/src/embed/liveboard.js +7 -1
  102. package/lib/src/embed/liveboard.js.map +1 -1
  103. package/lib/src/embed/liveboard.spec.js +54 -0
  104. package/lib/src/embed/liveboard.spec.js.map +1 -1
  105. package/lib/src/embed/search.d.ts +24 -1
  106. package/lib/src/embed/search.d.ts.map +1 -1
  107. package/lib/src/embed/search.js +15 -2
  108. package/lib/src/embed/search.js.map +1 -1
  109. package/lib/src/embed/search.spec.js +100 -1
  110. package/lib/src/embed/search.spec.js.map +1 -1
  111. package/lib/src/embed/spotter-utils.d.ts +3 -0
  112. package/lib/src/embed/spotter-utils.d.ts.map +1 -1
  113. package/lib/src/embed/spotter-utils.js +11 -3
  114. package/lib/src/embed/spotter-utils.js.map +1 -1
  115. package/lib/src/embed/spotter-utils.spec.js +51 -0
  116. package/lib/src/embed/spotter-utils.spec.js.map +1 -1
  117. package/lib/src/embed/ts-embed.d.ts +14 -1
  118. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  119. package/lib/src/embed/ts-embed.js +28 -2
  120. package/lib/src/embed/ts-embed.js.map +1 -1
  121. package/lib/src/embed/ts-embed.spec.js +139 -0
  122. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  123. package/lib/src/index.d.ts +2 -2
  124. package/lib/src/index.d.ts.map +1 -1
  125. package/lib/src/index.js +2 -2
  126. package/lib/src/index.js.map +1 -1
  127. package/lib/src/mixpanel-service.d.ts.map +1 -1
  128. package/lib/src/mixpanel-service.js +2 -0
  129. package/lib/src/mixpanel-service.js.map +1 -1
  130. package/lib/src/mixpanel-service.spec.js +2 -0
  131. package/lib/src/mixpanel-service.spec.js.map +1 -1
  132. package/lib/src/test/test-utils.d.ts +1 -0
  133. package/lib/src/test/test-utils.d.ts.map +1 -1
  134. package/lib/src/test/test-utils.js +25 -1
  135. package/lib/src/test/test-utils.js.map +1 -1
  136. package/lib/src/types.d.ts +532 -6
  137. package/lib/src/types.d.ts.map +1 -1
  138. package/lib/src/types.js +224 -2
  139. package/lib/src/types.js.map +1 -1
  140. package/lib/src/visual-embed-sdk.d.ts +600 -6
  141. package/package.json +3 -3
  142. package/src/embed/app.spec.ts +179 -0
  143. package/src/embed/app.ts +29 -0
  144. package/src/embed/conversation.ts +2 -1
  145. package/src/embed/hostEventClient/contracts.ts +2 -1
  146. package/src/embed/hostEventClient/host-event-client.spec.ts +2 -2
  147. package/src/embed/liveboard.spec.ts +73 -0
  148. package/src/embed/liveboard.ts +23 -0
  149. package/src/embed/search.spec.ts +118 -0
  150. package/src/embed/search.ts +43 -1
  151. package/src/embed/spotter-utils.spec.ts +52 -0
  152. package/src/embed/spotter-utils.ts +19 -3
  153. package/src/embed/ts-embed.spec.ts +185 -0
  154. package/src/embed/ts-embed.ts +29 -3
  155. package/src/index.ts +16 -0
  156. package/src/mixpanel-service.spec.ts +2 -0
  157. package/src/mixpanel-service.ts +2 -0
  158. package/src/test/test-utils.ts +33 -1
  159. package/src/types.ts +561 -2
@@ -2906,6 +2906,22 @@ export interface LiveboardAppEmbedViewConfig {
2906
2906
  * ```
2907
2907
  */
2908
2908
  isLiveboardMasterpiecesEnabled?: boolean;
2909
+ /**
2910
+ * Enable or disable Muze chart phase 1 GA
2911
+ *
2912
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
2913
+ * @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
2914
+ * @default false
2915
+ * @example
2916
+ * ```js
2917
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
2918
+ * const embed = new <EmbedComponent>('#tsEmbed', {
2919
+ * ... // other embed view config
2920
+ * newChartsLibrary: true,
2921
+ * })
2922
+ * ```
2923
+ */
2924
+ newChartsLibrary?: boolean;
2909
2925
  }
2910
2926
  export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
2911
2927
  }
@@ -4493,7 +4509,54 @@ export declare enum EmbedEvent {
4493
4509
  * ```
4494
4510
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
4495
4511
  */
4496
- RefreshAuthToken = "RefreshAuthToken"
4512
+ RefreshAuthToken = "RefreshAuthToken",
4513
+ /**
4514
+ * Triggered whenever the page context changes, returning the current context along with the navigation stack.
4515
+ * @example
4516
+ * ```js
4517
+ * embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
4518
+ * console.log('payload', payload);
4519
+ * })
4520
+ * ```
4521
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
4522
+ */
4523
+ EmbedPageContextChanged = "EmbedPageContextChanged",
4524
+ /**
4525
+ * Represents a special embed event that is triggered whenever any host event is subscribed.
4526
+ *
4527
+ * You can listen to this event when you need to dispatch a host event during load or render,
4528
+ * particularly in situations where timing issues may occur.
4529
+ *
4530
+ * @example
4531
+ * ```js
4532
+ * embed.on(`${HostEvent.Save} Subscribed`, () => {
4533
+ * // make action
4534
+ * });
4535
+ * ```
4536
+ *
4537
+ * @example
4538
+ * ```js
4539
+ * embed.on(subscribedEvent(HostEvent.Save), () => {
4540
+ * // make action
4541
+ * });
4542
+ * ```
4543
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
4544
+ */
4545
+ Subscribed = "Subscribed",
4546
+ /**
4547
+ * Emitted when a user clicks the **Send Test Email** button in the
4548
+ * Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
4549
+ * to be enabled.
4550
+ * @example
4551
+ * ```js
4552
+ * liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
4553
+ * console.log('Send test email', payload);
4554
+ * // payload: { liveboardId: string, sendToSelf: boolean }
4555
+ * })
4556
+ * ```
4557
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
4558
+ */
4559
+ SendTestScheduleEmail = "sendTestScheduleEmail"
4497
4560
  }
4498
4561
  /**
4499
4562
  * Event types that can be triggered by the host application
@@ -6191,7 +6254,8 @@ export declare enum HostEvent {
6191
6254
  * ```js
6192
6255
  * // Get parameters from liveboard context
6193
6256
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
6194
- * liveboardEmbed.trigger(HostEvent.GetParameters, {}, ContextType.Liveboard).then((parameters) => {
6257
+ * liveboardEmbed.trigger(HostEvent.GetParameters, {},
6258
+ * ContextType.Liveboard).then((parameters) => {
6195
6259
  * console.log('parameters', parameters);
6196
6260
  * });
6197
6261
  * ```
@@ -6542,7 +6606,27 @@ export declare enum HostEvent {
6542
6606
  * ```
6543
6607
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
6544
6608
  */
6545
- GetPageContext = "GetPageContext"
6609
+ GetPageContext = "GetPageContext",
6610
+ /**
6611
+ * Trigger the **Send Test Email** action in the Liveboard schedule modal.
6612
+ * Sends a test schedule email to self or all recipients.
6613
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
6614
+ * @example
6615
+ * ```js
6616
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
6617
+ * sendToSelf: true,
6618
+ * })
6619
+ * ```
6620
+ * @example
6621
+ * ```js
6622
+ * // Send to all recipients
6623
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
6624
+ * sendToSelf: false,
6625
+ * })
6626
+ * ```
6627
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
6628
+ */
6629
+ SendTestScheduleEmail = "sendTestScheduleEmail"
6546
6630
  }
6547
6631
  /**
6548
6632
  * The different visual modes that the data sources panel within
@@ -6881,7 +6965,7 @@ export declare enum Action {
6881
6965
  * ```js
6882
6966
  * disabledActions: [Action.DownloadLiveboard]
6883
6967
  * ```
6884
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
6968
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6885
6969
  */
6886
6970
  DownloadLiveboard = "downloadLiveboard",
6887
6971
  /**
@@ -6894,6 +6978,26 @@ export declare enum Action {
6894
6978
  * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6895
6979
  */
6896
6980
  DownloadLiveboardAsContinuousPDF = "downloadLiveboardAsContinuousPDF",
6981
+ /**
6982
+ * The **Download Liveboard as XLSX** menu action on a Liveboard.
6983
+ * Allows downloading the entire Liveboard as an XLSX file.
6984
+ * @example
6985
+ * ```js
6986
+ * disabledActions: [Action.DownloadLiveboardAsXlsx]
6987
+ * ```
6988
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6989
+ */
6990
+ DownloadLiveboardAsXlsx = "downloadLiveboardAsXlsx",
6991
+ /**
6992
+ * The **Download Liveboard as CSV** menu action on a Liveboard.
6993
+ * Allows downloading the entire Liveboard as a CSV file.
6994
+ * @example
6995
+ * ```js
6996
+ * disabledActions: [Action.DownloadLiveboardAsCsv]
6997
+ * ```
6998
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6999
+ */
7000
+ DownloadLiveboardAsCsv = "downloadLiveboardAsCsv",
6897
7001
  /**
6898
7002
  * @hidden
6899
7003
  */
@@ -8153,7 +8257,19 @@ export declare enum Action {
8153
8257
  * ```
8154
8258
  * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
8155
8259
  */
8156
- IncludeCurrentPeriod = "includeCurrentPeriod"
8260
+ IncludeCurrentPeriod = "includeCurrentPeriod",
8261
+ /**
8262
+ * The **Send Test Email** button in the Liveboard schedule modal.
8263
+ * Allows sending a test schedule email to self or all recipients.
8264
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
8265
+ * @example
8266
+ * ```js
8267
+ * disabledActions: [Action.SendTestScheduleEmail]
8268
+ * hiddenActions: [Action.SendTestScheduleEmail]
8269
+ * ```
8270
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
8271
+ */
8272
+ SendTestScheduleEmail = "sendTestScheduleEmail"
8157
8273
  }
8158
8274
  export declare enum PrefetchFeatures {
8159
8275
  FullApp = "FullApp",
@@ -8613,6 +8729,385 @@ export interface ContextObject {
8613
8729
  objectIds: ObjectIds;
8614
8730
  };
8615
8731
  }
8732
+ export interface FontProperties {
8733
+ color?: string;
8734
+ bold?: boolean;
8735
+ italic?: boolean;
8736
+ strikeThrough?: boolean;
8737
+ underline?: boolean;
8738
+ }
8739
+ export interface SolidBackgroundAttrs {
8740
+ color?: string;
8741
+ }
8742
+ export interface GradientBackgroundAttrs {
8743
+ backgroundFormatMidpoint?: number;
8744
+ colors?: string[];
8745
+ backgroundFormatRange?: number[];
8746
+ isAutoScaled?: boolean;
8747
+ }
8748
+ declare enum DataLabelFilterOperator {
8749
+ /** Greater than */
8750
+ GreaterThan = "GREATER_THAN",
8751
+ /** Less than */
8752
+ LessThan = "LESS_THAN",
8753
+ /** Greater than or equal to */
8754
+ GreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO",
8755
+ /** Less than or equal to */
8756
+ LessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO",
8757
+ /** Equal to */
8758
+ EqualTo = "EQUAL_TO",
8759
+ /** Not equal to */
8760
+ NotEqualTo = "NOT_EQUAL_TO"
8761
+ }
8762
+ declare enum ConditionalFormattingOperator {
8763
+ /** Is equal to */
8764
+ Is = "IS",
8765
+ /** Is not equal to */
8766
+ IsNot = "IS_NOT",
8767
+ /** Contains */
8768
+ Contains = "CONTAINS",
8769
+ /** Does not contain */
8770
+ DoesNotContain = "DOES_NOT_CONTAIN",
8771
+ /** Starts with */
8772
+ StartsWith = "STARTS_WITH",
8773
+ /** Ends with */
8774
+ EndsWith = "ENDS_WITH",
8775
+ /** Greater than */
8776
+ GreaterThan = "GREATER_THAN",
8777
+ /** Less than */
8778
+ LessThan = "LESS_THAN",
8779
+ /** Greater than or equal to */
8780
+ GreaterThanEqualTo = "GREATER_THAN_EQUAL_TO",
8781
+ /** Less than or equal to */
8782
+ LessThanEqualTo = "LESS_THAN_EQUAL_TO",
8783
+ /** Equal to */
8784
+ EqualTo = "EQUAL_TO",
8785
+ /** Not equal to */
8786
+ NotEqualTo = "NOT_EQUAL_TO",
8787
+ /** Is between */
8788
+ IsBetween = "IS_BETWEEN",
8789
+ /** Is null */
8790
+ IsNull = "IS_NULL",
8791
+ /** Is not null */
8792
+ IsNotNull = "IS_NOT_NULL"
8793
+ }
8794
+ declare enum BackgroundFormatType {
8795
+ /** Solid color background */
8796
+ Solid = "SOLID",
8797
+ /** Gradient background */
8798
+ Gradient = "GRADIENT"
8799
+ }
8800
+ declare enum ConditionalFormattingComparisonType {
8801
+ /** Value-based comparison */
8802
+ ValueBased = "VALUE_BASED",
8803
+ /** Column-based comparison */
8804
+ ColumnBased = "COLUMN_BASED",
8805
+ /** Parameter-based comparison */
8806
+ ParameterBased = "PARAMETER_BASED"
8807
+ }
8808
+ /**
8809
+ * A single conditional formatting rule row
8810
+ * @group Visual Overrides
8811
+ */
8812
+ export interface ConditionalFormattingRow {
8813
+ /** Comparison operator */
8814
+ operator: ConditionalFormattingOperator | string;
8815
+ /** Value to compare against */
8816
+ value?: string;
8817
+ /** Range values for range-based comparisons */
8818
+ rangeValues?: {
8819
+ min: number;
8820
+ max: number;
8821
+ };
8822
+ /** Plot the formatting as a band/area */
8823
+ plotAsBand?: boolean;
8824
+ /** Highlight this row if the condition is met */
8825
+ isHighlightRow?: boolean;
8826
+ /** Type of comparison: value-based, column-based, or parameter-based */
8827
+ comparisonType?: ConditionalFormattingComparisonType | string;
8828
+ /** Column ID to apply the formatting to (left-hand side) */
8829
+ lhsColumnId?: string;
8830
+ /** Column name to compare against (right-hand side) */
8831
+ columnToCompare?: string;
8832
+ /** Parameter ID to compare against */
8833
+ comparisonParameterId?: string;
8834
+ /** Font properties to apply (color, bold, italic, etc.) */
8835
+ fontProperties?: FontProperties;
8836
+ /** Background format type: solid color or gradient */
8837
+ backgroundFormatType?: BackgroundFormatType | string;
8838
+ /** Solid background color attributes */
8839
+ solidBackgroundAttrs?: SolidBackgroundAttrs;
8840
+ /** Gradient background attributes */
8841
+ gradientBackgroundAttrs?: GradientBackgroundAttrs;
8842
+ }
8843
+ /**
8844
+ * Conditional formatting configuration
8845
+ * @group Visual Overrides
8846
+ */
8847
+ export interface ConditionalFormatting {
8848
+ /** Array of conditional formatting rules */
8849
+ rows?: ConditionalFormattingRow[];
8850
+ }
8851
+ /**
8852
+ * Color palette for charts
8853
+ * @group Visual Overrides
8854
+ */
8855
+ export interface ColorPalette {
8856
+ /** Array of color values (hex codes or color names) */
8857
+ colors?: string[];
8858
+ }
8859
+ declare enum LegendPosition {
8860
+ /** Position legend at the top */
8861
+ Top = "top",
8862
+ /** Position legend at the bottom */
8863
+ Bottom = "bottom",
8864
+ /** Position legend on the left */
8865
+ Left = "left",
8866
+ /** Position legend on the right */
8867
+ Right = "right"
8868
+ }
8869
+ declare enum TableTheme {
8870
+ /** Outline theme */
8871
+ Outline = "OUTLINE",
8872
+ /** Row theme */
8873
+ Row = "ROW",
8874
+ /** Zebra theme */
8875
+ Zebra = "ZEBRA"
8876
+ }
8877
+ declare enum TableContentDensity {
8878
+ /** Regular density */
8879
+ Regular = "REGULAR",
8880
+ /** Compact density */
8881
+ Compact = "COMPACT"
8882
+ }
8883
+ /**
8884
+ * Chart legend configuration
8885
+ * @group Visual Overrides
8886
+ */
8887
+ export interface ChartLegend {
8888
+ /** Show or hide the legend */
8889
+ show?: boolean;
8890
+ /** Position of the legend */
8891
+ position?: LegendPosition | string;
8892
+ /** Color palette to use for legend colors */
8893
+ colorPalette?: ColorPalette;
8894
+ }
8895
+ /**
8896
+ * Filter for data labels
8897
+ * @group Visual Overrides
8898
+ */
8899
+ export interface DataLabelFilter {
8900
+ /** Filter threshold value */
8901
+ value?: number;
8902
+ /** Filter operator */
8903
+ operator?: DataLabelFilterOperator | string;
8904
+ }
8905
+ /**
8906
+ * Data label configuration for a specific column
8907
+ * @group Visual Overrides
8908
+ */
8909
+ export interface ColumnDataLabel {
8910
+ /** Column name to apply data label overrides to */
8911
+ name: string;
8912
+ /** Show or hide data labels for this column */
8913
+ visible?: boolean;
8914
+ /** Filter to apply to data labels */
8915
+ filter?: DataLabelFilter | null;
8916
+ }
8917
+ /**
8918
+ * Chart data label configuration
8919
+ * @group Visual Overrides
8920
+ */
8921
+ export interface ChartDataLabel {
8922
+ /** Show labels for all data points */
8923
+ allLabels?: boolean;
8924
+ /** Show labels for stacked values */
8925
+ stackLabels?: boolean;
8926
+ /** Per-column data label configurations */
8927
+ columnDataLabel?: ColumnDataLabel[];
8928
+ }
8929
+ /**
8930
+ * Chart summaries and totals configuration
8931
+ * @group Visual Overrides
8932
+ */
8933
+ export interface ChartSummaries {
8934
+ /** Show row totals */
8935
+ showRowTotals?: boolean;
8936
+ /** Show column totals */
8937
+ showColumnTotals?: boolean;
8938
+ /** Show row grand totals */
8939
+ showRowGrandTotals?: boolean;
8940
+ /** Show column grand totals */
8941
+ showColumnGrandTotals?: boolean;
8942
+ }
8943
+ /**
8944
+ * Gridline configuration
8945
+ * @group Visual Overrides
8946
+ */
8947
+ export interface GridLine {
8948
+ /** Show vertical gridlines */
8949
+ x?: boolean;
8950
+ /** Show horizontal gridlines */
8951
+ y?: boolean;
8952
+ }
8953
+ /**
8954
+ * Chart display configuration
8955
+ * @group Visual Overrides
8956
+ */
8957
+ export interface ChartDisplay {
8958
+ /** Summary and totals configuration */
8959
+ summaries?: ChartSummaries;
8960
+ /** Show regression line on chart */
8961
+ regressionLine?: boolean;
8962
+ /** Gridline visibility configuration */
8963
+ gridLine?: GridLine;
8964
+ }
8965
+ /**
8966
+ * Y-axis range configuration
8967
+ * @group Visual Overrides
8968
+ */
8969
+ export interface YAxisRange {
8970
+ /** Minimum value for Y-axis */
8971
+ min?: number;
8972
+ /** Maximum value for Y-axis */
8973
+ max?: number;
8974
+ }
8975
+ /**
8976
+ * Chart axis configuration
8977
+ * @group Visual Overrides
8978
+ */
8979
+ export interface ChartAxis {
8980
+ /** Column names to link to this axis */
8981
+ linkedColumns?: string[];
8982
+ /** Show the axis name */
8983
+ showName?: boolean;
8984
+ /** Show the axis label values */
8985
+ showLabelValue?: boolean;
8986
+ /** Y-axis range configuration */
8987
+ yAxisRange?: YAxisRange;
8988
+ }
8989
+ /**
8990
+ * Chart column override configuration
8991
+ * @group Visual Overrides
8992
+ */
8993
+ export interface ChartColumn {
8994
+ /** Column name to apply overrides to */
8995
+ name: string;
8996
+ /** Color for the column (hex code) */
8997
+ color?: string;
8998
+ /** Conditional formatting rules to apply to the column */
8999
+ conditionalFormatting?: ConditionalFormatting;
9000
+ }
9001
+ /**
9002
+ * Chart visualization overrides
9003
+ * @group Visual Overrides
9004
+ */
9005
+ export interface ChartOverrides {
9006
+ /** Legend configuration */
9007
+ legend?: ChartLegend;
9008
+ /** Data label configuration */
9009
+ dataLabel?: ChartDataLabel;
9010
+ /** Display properties (summaries, regression line, gridlines) */
9011
+ display?: ChartDisplay;
9012
+ /** Per-axis configurations */
9013
+ axis?: ChartAxis[];
9014
+ /** Per-column configurations */
9015
+ columns?: ChartColumn[];
9016
+ /** Update mask paths for partial updates */
9017
+ updateMaskPaths?: string[];
9018
+ }
9019
+ /**
9020
+ * Table column override configuration
9021
+ * @group Visual Overrides
9022
+ */
9023
+ export interface TableColumn {
9024
+ /**
9025
+ * Name of the column to apply overrides to
9026
+ */
9027
+ name: string;
9028
+ /**
9029
+ * Enable or disable text wrapping for the column
9030
+ */
9031
+ wrapText?: boolean;
9032
+ /**
9033
+ * Show or hide the column
9034
+ */
9035
+ show?: boolean;
9036
+ /**
9037
+ * Conditional formatting rules to apply to the column
9038
+ */
9039
+ conditionalFormatting?: ConditionalFormatting;
9040
+ }
9041
+ /**
9042
+ * Table display configuration
9043
+ * @group Visual Overrides
9044
+ */
9045
+ export interface TableDisplay {
9046
+ /** Table theme */
9047
+ tableTheme?: TableTheme | string;
9048
+ /** Table content density */
9049
+ tableContentDensity?: TableContentDensity | string;
9050
+ }
9051
+ /**
9052
+ * Column summary visibility configuration
9053
+ * @group Visual Overrides
9054
+ */
9055
+ export interface ColumnSummaryVisibility {
9056
+ /** Column ID to control summary visibility for */
9057
+ columnId: string;
9058
+ /** Show or hide summary for this column */
9059
+ visible: boolean;
9060
+ }
9061
+ /**
9062
+ * Display summary configuration
9063
+ * @group Visual Overrides
9064
+ */
9065
+ export interface DisplaySummaryConfig {
9066
+ /** Show all column summaries by default */
9067
+ showAllSummaries?: boolean;
9068
+ /** Per-column summary visibility overrides */
9069
+ columnVisibility?: ColumnSummaryVisibility[];
9070
+ }
9071
+ /**
9072
+ * Table visualization overrides
9073
+ * @group Visual Overrides
9074
+ */
9075
+ export interface TableOverrides {
9076
+ /** Per-column configurations (properties, conditional formatting) */
9077
+ columns?: TableColumn[];
9078
+ /** Table display properties (theme, density) */
9079
+ display?: TableDisplay;
9080
+ /** Summary/headline column visibility configuration */
9081
+ displaySummaryConfig?: DisplaySummaryConfig;
9082
+ /** Update mask paths for partial updates */
9083
+ updateMaskPaths?: string[];
9084
+ }
9085
+ /**
9086
+ * Visualization overrides to customize chart and table rendering
9087
+ * within embedded ThoughtSpot components.
9088
+ *
9089
+ * @group Visual Overrides
9090
+ * @example
9091
+ * ```js
9092
+ * const embed = new AppEmbed('#tsEmbed', {
9093
+ * visualOverrides: {
9094
+ * chart: {
9095
+ * legend: { show: true, position: 'bottom' },
9096
+ * columns: [{ name: 'Revenue', color: '#1f77b4' }],
9097
+ * },
9098
+ * table: {
9099
+ * display: { tableTheme: 'ZEBRA', tableContentDensity: 'COMPACT' },
9100
+ * },
9101
+ * },
9102
+ * });
9103
+ * ```
9104
+ */
9105
+ export interface VisualizationOverrides {
9106
+ /** Chart visualization overrides */
9107
+ chart?: ChartOverrides;
9108
+ /** Table visualization overrides */
9109
+ table?: TableOverrides;
9110
+ }
8616
9111
  /**
8617
9112
  * Enum for auth failure types.
8618
9113
  * This value is passed to the listener for {@link AuthStatus.FAILURE}.
@@ -8907,7 +9402,10 @@ export type UIPassthroughContractBase = {
8907
9402
  [UIPassthroughEvent.GetExportRequestForCurrentPinboard]: {
8908
9403
  request: Record<string, never>;
8909
9404
  response: {
8910
- v2Content: string;
9405
+ data: {
9406
+ v2Content: string;
9407
+ };
9408
+ type: UIPassthroughEvent.GetExportRequestForCurrentPinboard;
8911
9409
  };
8912
9410
  };
8913
9411
  [UIPassthroughEvent.UpdateFilters]: {
@@ -9241,6 +9739,7 @@ declare class TsEmbed {
9241
9739
  * @returns
9242
9740
  */
9243
9741
  protected createEmbedEventResponder: (eventPort: MessagePort | void, eventType: EmbedEvent) => (payload: any) => void;
9742
+ private shouldSkipEvent;
9244
9743
  /**
9245
9744
  * Executes all registered event handlers for a particular event type
9246
9745
  * @param eventType The event type
@@ -9410,6 +9909,18 @@ declare class TsEmbed {
9410
9909
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
9411
9910
  */
9412
9911
  getCurrentContext(): Promise<ContextObject>;
9912
+ /**
9913
+ * Generates the event name for a "Subscribed" embed event.
9914
+ *
9915
+ * This helper appends the "Subscribed" suffix to a given host or action event,
9916
+ * allowing you to listen for subscription lifecycle events in a consistent format.
9917
+ *
9918
+ * @param eventName - The host or action event to generate the subscribed event name for.
9919
+ * @returns The formatted event name (e.g., "Save Subscribed").
9920
+ *
9921
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
9922
+ */
9923
+ subscribedEvent(eventName: HostEvent | Action): string;
9413
9924
  /**
9414
9925
  * Creates the preRender shell
9415
9926
  * @param showPreRenderByDefault - Show the preRender after render, hidden by default
@@ -9803,9 +10314,32 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
9803
10314
  * ```
9804
10315
  */
9805
10316
  focusSearchBarOnRender?: boolean;
10317
+ /**
10318
+ * Enable or disable Muze chart phase 1 GA
10319
+ *
10320
+ * Supported embed types: `SearchEmbed`
10321
+ * @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
10322
+ * @default false
10323
+ * @example
10324
+ * ```js
10325
+ * const embed = new SearchEmbed('#tsEmbed', {
10326
+ * ... // other embed view config
10327
+ * newChartsLibrary: true,
10328
+ * })
10329
+ * ```
10330
+ */
10331
+ newChartsLibrary?: boolean;
10332
+ /**
10333
+ * Visual overrides to customize the chart or table properties.
10334
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
10335
+ */
10336
+ visualOverrides?: VisualizationOverrides;
9806
10337
  }
9807
10338
  export interface SearchAppInitData extends DefaultAppInitData {
9808
10339
  searchOptions?: SearchOptions;
10340
+ embedParams?: {
10341
+ visualOverridesParams?: VisualizationOverrides | null;
10342
+ };
9809
10343
  }
9810
10344
  declare class SearchEmbed extends TsEmbed {
9811
10345
  /**
@@ -10303,6 +10837,7 @@ export interface ConversationViewConfig extends SpotterEmbedViewConfig {
10303
10837
  export interface SpotterAppInitData extends DefaultAppInitData {
10304
10838
  embedParams?: {
10305
10839
  spotterSidebarConfig?: SpotterSidebarViewConfig;
10840
+ visualOverridesParams?: VisualizationOverrides | null;
10306
10841
  };
10307
10842
  }
10308
10843
  declare class SpotterEmbed extends TsEmbed {
@@ -11063,6 +11598,24 @@ export interface AppViewConfig extends AllEmbedViewConfig {
11063
11598
  * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
11064
11599
  */
11065
11600
  enableHomepageAnnouncement?: boolean;
11601
+ /**
11602
+ * If set to true, enables visualization data caching on the Liveboard.
11603
+ * @type {boolean}
11604
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
11605
+ * @example
11606
+ * ```js
11607
+ * const embed = new AppEmbed('#tsEmbed', {
11608
+ * ... // other options
11609
+ * enableLiveboardDataCache: true,
11610
+ * })
11611
+ * ```
11612
+ */
11613
+ enableLiveboardDataCache?: boolean;
11614
+ /**
11615
+ * Visual overrides to customize the chart or table properties.
11616
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
11617
+ */
11618
+ visualOverrides?: VisualizationOverrides;
11066
11619
  }
11067
11620
  /**
11068
11621
  * APP_INIT data shape for AppEmbed.
@@ -11654,6 +12207,19 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
11654
12207
  * ```
11655
12208
  */
11656
12209
  spotterChatConfig?: SpotterChatViewConfig;
12210
+ /**
12211
+ * If set to true, enables visualization data caching on the Liveboard.
12212
+ * @type {boolean}
12213
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
12214
+ * @example
12215
+ * ```js
12216
+ * const embed = new LiveboardEmbed('#embed-container', {
12217
+ * ... // other options
12218
+ * enableLiveboardDataCache: true,
12219
+ * })
12220
+ * ```
12221
+ */
12222
+ enableLiveboardDataCache?: boolean;
11657
12223
  }
11658
12224
  declare class LiveboardEmbed extends V1Embed {
11659
12225
  protected viewConfig: LiveboardViewConfig;