@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
  }
@@ -4506,7 +4522,54 @@ export declare enum EmbedEvent {
4506
4522
  * ```
4507
4523
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
4508
4524
  */
4509
- RefreshAuthToken = "RefreshAuthToken"
4525
+ RefreshAuthToken = "RefreshAuthToken",
4526
+ /**
4527
+ * Triggered whenever the page context changes, returning the current context along with the navigation stack.
4528
+ * @example
4529
+ * ```js
4530
+ * embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
4531
+ * console.log('payload', payload);
4532
+ * })
4533
+ * ```
4534
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
4535
+ */
4536
+ EmbedPageContextChanged = "EmbedPageContextChanged",
4537
+ /**
4538
+ * Represents a special embed event that is triggered whenever any host event is subscribed.
4539
+ *
4540
+ * You can listen to this event when you need to dispatch a host event during load or render,
4541
+ * particularly in situations where timing issues may occur.
4542
+ *
4543
+ * @example
4544
+ * ```js
4545
+ * embed.on(`${HostEvent.Save} Subscribed`, () => {
4546
+ * // make action
4547
+ * });
4548
+ * ```
4549
+ *
4550
+ * @example
4551
+ * ```js
4552
+ * embed.on(subscribedEvent(HostEvent.Save), () => {
4553
+ * // make action
4554
+ * });
4555
+ * ```
4556
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
4557
+ */
4558
+ Subscribed = "Subscribed",
4559
+ /**
4560
+ * Emitted when a user clicks the **Send Test Email** button in the
4561
+ * Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
4562
+ * to be enabled.
4563
+ * @example
4564
+ * ```js
4565
+ * liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
4566
+ * console.log('Send test email', payload);
4567
+ * // payload: { liveboardId: string, sendToSelf: boolean }
4568
+ * })
4569
+ * ```
4570
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
4571
+ */
4572
+ SendTestScheduleEmail = "sendTestScheduleEmail"
4510
4573
  }
4511
4574
  /**
4512
4575
  * Event types that can be triggered by the host application
@@ -6204,7 +6267,8 @@ export declare enum HostEvent {
6204
6267
  * ```js
6205
6268
  * // Get parameters from liveboard context
6206
6269
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
6207
- * liveboardEmbed.trigger(HostEvent.GetParameters, {}, ContextType.Liveboard).then((parameters) => {
6270
+ * liveboardEmbed.trigger(HostEvent.GetParameters, {},
6271
+ * ContextType.Liveboard).then((parameters) => {
6208
6272
  * console.log('parameters', parameters);
6209
6273
  * });
6210
6274
  * ```
@@ -6555,7 +6619,27 @@ export declare enum HostEvent {
6555
6619
  * ```
6556
6620
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
6557
6621
  */
6558
- GetPageContext = "GetPageContext"
6622
+ GetPageContext = "GetPageContext",
6623
+ /**
6624
+ * Trigger the **Send Test Email** action in the Liveboard schedule modal.
6625
+ * Sends a test schedule email to self or all recipients.
6626
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
6627
+ * @example
6628
+ * ```js
6629
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
6630
+ * sendToSelf: true,
6631
+ * })
6632
+ * ```
6633
+ * @example
6634
+ * ```js
6635
+ * // Send to all recipients
6636
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
6637
+ * sendToSelf: false,
6638
+ * })
6639
+ * ```
6640
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
6641
+ */
6642
+ SendTestScheduleEmail = "sendTestScheduleEmail"
6559
6643
  }
6560
6644
  /**
6561
6645
  * ThoughtSpot application pages include actions and menu commands
@@ -6876,7 +6960,7 @@ export declare enum Action {
6876
6960
  * ```js
6877
6961
  * disabledActions: [Action.DownloadLiveboard]
6878
6962
  * ```
6879
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
6963
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6880
6964
  */
6881
6965
  DownloadLiveboard = "downloadLiveboard",
6882
6966
  /**
@@ -6889,6 +6973,26 @@ export declare enum Action {
6889
6973
  * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6890
6974
  */
6891
6975
  DownloadLiveboardAsContinuousPDF = "downloadLiveboardAsContinuousPDF",
6976
+ /**
6977
+ * The **Download Liveboard as XLSX** menu action on a Liveboard.
6978
+ * Allows downloading the entire Liveboard as an XLSX file.
6979
+ * @example
6980
+ * ```js
6981
+ * disabledActions: [Action.DownloadLiveboardAsXlsx]
6982
+ * ```
6983
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6984
+ */
6985
+ DownloadLiveboardAsXlsx = "downloadLiveboardAsXlsx",
6986
+ /**
6987
+ * The **Download Liveboard as CSV** menu action on a Liveboard.
6988
+ * Allows downloading the entire Liveboard as a CSV file.
6989
+ * @example
6990
+ * ```js
6991
+ * disabledActions: [Action.DownloadLiveboardAsCsv]
6992
+ * ```
6993
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6994
+ */
6995
+ DownloadLiveboardAsCsv = "downloadLiveboardAsCsv",
6892
6996
  /**
6893
6997
  * @hidden
6894
6998
  */
@@ -8148,7 +8252,19 @@ export declare enum Action {
8148
8252
  * ```
8149
8253
  * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
8150
8254
  */
8151
- IncludeCurrentPeriod = "includeCurrentPeriod"
8255
+ IncludeCurrentPeriod = "includeCurrentPeriod",
8256
+ /**
8257
+ * The **Send Test Email** button in the Liveboard schedule modal.
8258
+ * Allows sending a test schedule email to self or all recipients.
8259
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
8260
+ * @example
8261
+ * ```js
8262
+ * disabledActions: [Action.SendTestScheduleEmail]
8263
+ * hiddenActions: [Action.SendTestScheduleEmail]
8264
+ * ```
8265
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
8266
+ */
8267
+ SendTestScheduleEmail = "sendTestScheduleEmail"
8152
8268
  }
8153
8269
  declare enum ContextMenuTriggerOptions {
8154
8270
  LEFT_CLICK = "left-click",
@@ -8599,6 +8715,385 @@ export interface ContextObject {
8599
8715
  objectIds: ObjectIds;
8600
8716
  };
8601
8717
  }
8718
+ export interface FontProperties {
8719
+ color?: string;
8720
+ bold?: boolean;
8721
+ italic?: boolean;
8722
+ strikeThrough?: boolean;
8723
+ underline?: boolean;
8724
+ }
8725
+ export interface SolidBackgroundAttrs {
8726
+ color?: string;
8727
+ }
8728
+ export interface GradientBackgroundAttrs {
8729
+ backgroundFormatMidpoint?: number;
8730
+ colors?: string[];
8731
+ backgroundFormatRange?: number[];
8732
+ isAutoScaled?: boolean;
8733
+ }
8734
+ declare enum DataLabelFilterOperator {
8735
+ /** Greater than */
8736
+ GreaterThan = "GREATER_THAN",
8737
+ /** Less than */
8738
+ LessThan = "LESS_THAN",
8739
+ /** Greater than or equal to */
8740
+ GreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO",
8741
+ /** Less than or equal to */
8742
+ LessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO",
8743
+ /** Equal to */
8744
+ EqualTo = "EQUAL_TO",
8745
+ /** Not equal to */
8746
+ NotEqualTo = "NOT_EQUAL_TO"
8747
+ }
8748
+ declare enum ConditionalFormattingOperator {
8749
+ /** Is equal to */
8750
+ Is = "IS",
8751
+ /** Is not equal to */
8752
+ IsNot = "IS_NOT",
8753
+ /** Contains */
8754
+ Contains = "CONTAINS",
8755
+ /** Does not contain */
8756
+ DoesNotContain = "DOES_NOT_CONTAIN",
8757
+ /** Starts with */
8758
+ StartsWith = "STARTS_WITH",
8759
+ /** Ends with */
8760
+ EndsWith = "ENDS_WITH",
8761
+ /** Greater than */
8762
+ GreaterThan = "GREATER_THAN",
8763
+ /** Less than */
8764
+ LessThan = "LESS_THAN",
8765
+ /** Greater than or equal to */
8766
+ GreaterThanEqualTo = "GREATER_THAN_EQUAL_TO",
8767
+ /** Less than or equal to */
8768
+ LessThanEqualTo = "LESS_THAN_EQUAL_TO",
8769
+ /** Equal to */
8770
+ EqualTo = "EQUAL_TO",
8771
+ /** Not equal to */
8772
+ NotEqualTo = "NOT_EQUAL_TO",
8773
+ /** Is between */
8774
+ IsBetween = "IS_BETWEEN",
8775
+ /** Is null */
8776
+ IsNull = "IS_NULL",
8777
+ /** Is not null */
8778
+ IsNotNull = "IS_NOT_NULL"
8779
+ }
8780
+ declare enum BackgroundFormatType {
8781
+ /** Solid color background */
8782
+ Solid = "SOLID",
8783
+ /** Gradient background */
8784
+ Gradient = "GRADIENT"
8785
+ }
8786
+ declare enum ConditionalFormattingComparisonType {
8787
+ /** Value-based comparison */
8788
+ ValueBased = "VALUE_BASED",
8789
+ /** Column-based comparison */
8790
+ ColumnBased = "COLUMN_BASED",
8791
+ /** Parameter-based comparison */
8792
+ ParameterBased = "PARAMETER_BASED"
8793
+ }
8794
+ /**
8795
+ * A single conditional formatting rule row
8796
+ * @group Visual Overrides
8797
+ */
8798
+ export interface ConditionalFormattingRow {
8799
+ /** Comparison operator */
8800
+ operator: ConditionalFormattingOperator | string;
8801
+ /** Value to compare against */
8802
+ value?: string;
8803
+ /** Range values for range-based comparisons */
8804
+ rangeValues?: {
8805
+ min: number;
8806
+ max: number;
8807
+ };
8808
+ /** Plot the formatting as a band/area */
8809
+ plotAsBand?: boolean;
8810
+ /** Highlight this row if the condition is met */
8811
+ isHighlightRow?: boolean;
8812
+ /** Type of comparison: value-based, column-based, or parameter-based */
8813
+ comparisonType?: ConditionalFormattingComparisonType | string;
8814
+ /** Column ID to apply the formatting to (left-hand side) */
8815
+ lhsColumnId?: string;
8816
+ /** Column name to compare against (right-hand side) */
8817
+ columnToCompare?: string;
8818
+ /** Parameter ID to compare against */
8819
+ comparisonParameterId?: string;
8820
+ /** Font properties to apply (color, bold, italic, etc.) */
8821
+ fontProperties?: FontProperties;
8822
+ /** Background format type: solid color or gradient */
8823
+ backgroundFormatType?: BackgroundFormatType | string;
8824
+ /** Solid background color attributes */
8825
+ solidBackgroundAttrs?: SolidBackgroundAttrs;
8826
+ /** Gradient background attributes */
8827
+ gradientBackgroundAttrs?: GradientBackgroundAttrs;
8828
+ }
8829
+ /**
8830
+ * Conditional formatting configuration
8831
+ * @group Visual Overrides
8832
+ */
8833
+ export interface ConditionalFormatting {
8834
+ /** Array of conditional formatting rules */
8835
+ rows?: ConditionalFormattingRow[];
8836
+ }
8837
+ /**
8838
+ * Color palette for charts
8839
+ * @group Visual Overrides
8840
+ */
8841
+ export interface ColorPalette {
8842
+ /** Array of color values (hex codes or color names) */
8843
+ colors?: string[];
8844
+ }
8845
+ declare enum LegendPosition {
8846
+ /** Position legend at the top */
8847
+ Top = "top",
8848
+ /** Position legend at the bottom */
8849
+ Bottom = "bottom",
8850
+ /** Position legend on the left */
8851
+ Left = "left",
8852
+ /** Position legend on the right */
8853
+ Right = "right"
8854
+ }
8855
+ declare enum TableTheme {
8856
+ /** Outline theme */
8857
+ Outline = "OUTLINE",
8858
+ /** Row theme */
8859
+ Row = "ROW",
8860
+ /** Zebra theme */
8861
+ Zebra = "ZEBRA"
8862
+ }
8863
+ declare enum TableContentDensity {
8864
+ /** Regular density */
8865
+ Regular = "REGULAR",
8866
+ /** Compact density */
8867
+ Compact = "COMPACT"
8868
+ }
8869
+ /**
8870
+ * Chart legend configuration
8871
+ * @group Visual Overrides
8872
+ */
8873
+ export interface ChartLegend {
8874
+ /** Show or hide the legend */
8875
+ show?: boolean;
8876
+ /** Position of the legend */
8877
+ position?: LegendPosition | string;
8878
+ /** Color palette to use for legend colors */
8879
+ colorPalette?: ColorPalette;
8880
+ }
8881
+ /**
8882
+ * Filter for data labels
8883
+ * @group Visual Overrides
8884
+ */
8885
+ export interface DataLabelFilter {
8886
+ /** Filter threshold value */
8887
+ value?: number;
8888
+ /** Filter operator */
8889
+ operator?: DataLabelFilterOperator | string;
8890
+ }
8891
+ /**
8892
+ * Data label configuration for a specific column
8893
+ * @group Visual Overrides
8894
+ */
8895
+ export interface ColumnDataLabel {
8896
+ /** Column name to apply data label overrides to */
8897
+ name: string;
8898
+ /** Show or hide data labels for this column */
8899
+ visible?: boolean;
8900
+ /** Filter to apply to data labels */
8901
+ filter?: DataLabelFilter | null;
8902
+ }
8903
+ /**
8904
+ * Chart data label configuration
8905
+ * @group Visual Overrides
8906
+ */
8907
+ export interface ChartDataLabel {
8908
+ /** Show labels for all data points */
8909
+ allLabels?: boolean;
8910
+ /** Show labels for stacked values */
8911
+ stackLabels?: boolean;
8912
+ /** Per-column data label configurations */
8913
+ columnDataLabel?: ColumnDataLabel[];
8914
+ }
8915
+ /**
8916
+ * Chart summaries and totals configuration
8917
+ * @group Visual Overrides
8918
+ */
8919
+ export interface ChartSummaries {
8920
+ /** Show row totals */
8921
+ showRowTotals?: boolean;
8922
+ /** Show column totals */
8923
+ showColumnTotals?: boolean;
8924
+ /** Show row grand totals */
8925
+ showRowGrandTotals?: boolean;
8926
+ /** Show column grand totals */
8927
+ showColumnGrandTotals?: boolean;
8928
+ }
8929
+ /**
8930
+ * Gridline configuration
8931
+ * @group Visual Overrides
8932
+ */
8933
+ export interface GridLine {
8934
+ /** Show vertical gridlines */
8935
+ x?: boolean;
8936
+ /** Show horizontal gridlines */
8937
+ y?: boolean;
8938
+ }
8939
+ /**
8940
+ * Chart display configuration
8941
+ * @group Visual Overrides
8942
+ */
8943
+ export interface ChartDisplay {
8944
+ /** Summary and totals configuration */
8945
+ summaries?: ChartSummaries;
8946
+ /** Show regression line on chart */
8947
+ regressionLine?: boolean;
8948
+ /** Gridline visibility configuration */
8949
+ gridLine?: GridLine;
8950
+ }
8951
+ /**
8952
+ * Y-axis range configuration
8953
+ * @group Visual Overrides
8954
+ */
8955
+ export interface YAxisRange {
8956
+ /** Minimum value for Y-axis */
8957
+ min?: number;
8958
+ /** Maximum value for Y-axis */
8959
+ max?: number;
8960
+ }
8961
+ /**
8962
+ * Chart axis configuration
8963
+ * @group Visual Overrides
8964
+ */
8965
+ export interface ChartAxis {
8966
+ /** Column names to link to this axis */
8967
+ linkedColumns?: string[];
8968
+ /** Show the axis name */
8969
+ showName?: boolean;
8970
+ /** Show the axis label values */
8971
+ showLabelValue?: boolean;
8972
+ /** Y-axis range configuration */
8973
+ yAxisRange?: YAxisRange;
8974
+ }
8975
+ /**
8976
+ * Chart column override configuration
8977
+ * @group Visual Overrides
8978
+ */
8979
+ export interface ChartColumn {
8980
+ /** Column name to apply overrides to */
8981
+ name: string;
8982
+ /** Color for the column (hex code) */
8983
+ color?: string;
8984
+ /** Conditional formatting rules to apply to the column */
8985
+ conditionalFormatting?: ConditionalFormatting;
8986
+ }
8987
+ /**
8988
+ * Chart visualization overrides
8989
+ * @group Visual Overrides
8990
+ */
8991
+ export interface ChartOverrides {
8992
+ /** Legend configuration */
8993
+ legend?: ChartLegend;
8994
+ /** Data label configuration */
8995
+ dataLabel?: ChartDataLabel;
8996
+ /** Display properties (summaries, regression line, gridlines) */
8997
+ display?: ChartDisplay;
8998
+ /** Per-axis configurations */
8999
+ axis?: ChartAxis[];
9000
+ /** Per-column configurations */
9001
+ columns?: ChartColumn[];
9002
+ /** Update mask paths for partial updates */
9003
+ updateMaskPaths?: string[];
9004
+ }
9005
+ /**
9006
+ * Table column override configuration
9007
+ * @group Visual Overrides
9008
+ */
9009
+ export interface TableColumn {
9010
+ /**
9011
+ * Name of the column to apply overrides to
9012
+ */
9013
+ name: string;
9014
+ /**
9015
+ * Enable or disable text wrapping for the column
9016
+ */
9017
+ wrapText?: boolean;
9018
+ /**
9019
+ * Show or hide the column
9020
+ */
9021
+ show?: boolean;
9022
+ /**
9023
+ * Conditional formatting rules to apply to the column
9024
+ */
9025
+ conditionalFormatting?: ConditionalFormatting;
9026
+ }
9027
+ /**
9028
+ * Table display configuration
9029
+ * @group Visual Overrides
9030
+ */
9031
+ export interface TableDisplay {
9032
+ /** Table theme */
9033
+ tableTheme?: TableTheme | string;
9034
+ /** Table content density */
9035
+ tableContentDensity?: TableContentDensity | string;
9036
+ }
9037
+ /**
9038
+ * Column summary visibility configuration
9039
+ * @group Visual Overrides
9040
+ */
9041
+ export interface ColumnSummaryVisibility {
9042
+ /** Column ID to control summary visibility for */
9043
+ columnId: string;
9044
+ /** Show or hide summary for this column */
9045
+ visible: boolean;
9046
+ }
9047
+ /**
9048
+ * Display summary configuration
9049
+ * @group Visual Overrides
9050
+ */
9051
+ export interface DisplaySummaryConfig {
9052
+ /** Show all column summaries by default */
9053
+ showAllSummaries?: boolean;
9054
+ /** Per-column summary visibility overrides */
9055
+ columnVisibility?: ColumnSummaryVisibility[];
9056
+ }
9057
+ /**
9058
+ * Table visualization overrides
9059
+ * @group Visual Overrides
9060
+ */
9061
+ export interface TableOverrides {
9062
+ /** Per-column configurations (properties, conditional formatting) */
9063
+ columns?: TableColumn[];
9064
+ /** Table display properties (theme, density) */
9065
+ display?: TableDisplay;
9066
+ /** Summary/headline column visibility configuration */
9067
+ displaySummaryConfig?: DisplaySummaryConfig;
9068
+ /** Update mask paths for partial updates */
9069
+ updateMaskPaths?: string[];
9070
+ }
9071
+ /**
9072
+ * Visualization overrides to customize chart and table rendering
9073
+ * within embedded ThoughtSpot components.
9074
+ *
9075
+ * @group Visual Overrides
9076
+ * @example
9077
+ * ```js
9078
+ * const embed = new AppEmbed('#tsEmbed', {
9079
+ * visualOverrides: {
9080
+ * chart: {
9081
+ * legend: { show: true, position: 'bottom' },
9082
+ * columns: [{ name: 'Revenue', color: '#1f77b4' }],
9083
+ * },
9084
+ * table: {
9085
+ * display: { tableTheme: 'ZEBRA', tableContentDensity: 'COMPACT' },
9086
+ * },
9087
+ * },
9088
+ * });
9089
+ * ```
9090
+ */
9091
+ export interface VisualizationOverrides {
9092
+ /** Chart visualization overrides */
9093
+ chart?: ChartOverrides;
9094
+ /** Table visualization overrides */
9095
+ table?: TableOverrides;
9096
+ }
8602
9097
  declare enum AuthFailureType {
8603
9098
  /**
8604
9099
  * Authentication failed in the SDK authentication flow.
@@ -8880,7 +9375,10 @@ export type UIPassthroughContractBase = {
8880
9375
  [UIPassthroughEvent.GetExportRequestForCurrentPinboard]: {
8881
9376
  request: Record<string, never>;
8882
9377
  response: {
8883
- v2Content: string;
9378
+ data: {
9379
+ v2Content: string;
9380
+ };
9381
+ type: UIPassthroughEvent.GetExportRequestForCurrentPinboard;
8884
9382
  };
8885
9383
  };
8886
9384
  [UIPassthroughEvent.UpdateFilters]: {
@@ -9214,6 +9712,7 @@ declare class TsEmbed {
9214
9712
  * @returns
9215
9713
  */
9216
9714
  protected createEmbedEventResponder: (eventPort: MessagePort | void, eventType: EmbedEvent) => (payload: any) => void;
9715
+ private shouldSkipEvent;
9217
9716
  /**
9218
9717
  * Executes all registered event handlers for a particular event type
9219
9718
  * @param eventType The event type
@@ -9383,6 +9882,18 @@ declare class TsEmbed {
9383
9882
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
9384
9883
  */
9385
9884
  getCurrentContext(): Promise<ContextObject>;
9885
+ /**
9886
+ * Generates the event name for a "Subscribed" embed event.
9887
+ *
9888
+ * This helper appends the "Subscribed" suffix to a given host or action event,
9889
+ * allowing you to listen for subscription lifecycle events in a consistent format.
9890
+ *
9891
+ * @param eventName - The host or action event to generate the subscribed event name for.
9892
+ * @returns The formatted event name (e.g., "Save Subscribed").
9893
+ *
9894
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
9895
+ */
9896
+ subscribedEvent(eventName: HostEvent | Action): string;
9386
9897
  /**
9387
9898
  * Creates the preRender shell
9388
9899
  * @param showPreRenderByDefault - Show the preRender after render, hidden by default
@@ -9776,9 +10287,32 @@ export interface SearchViewConfig extends SearchLiveboardCommonViewConfig, Omit<
9776
10287
  * ```
9777
10288
  */
9778
10289
  focusSearchBarOnRender?: boolean;
10290
+ /**
10291
+ * Enable or disable Muze chart phase 1 GA
10292
+ *
10293
+ * Supported embed types: `SearchEmbed`
10294
+ * @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
10295
+ * @default false
10296
+ * @example
10297
+ * ```js
10298
+ * const embed = new SearchEmbed('#tsEmbed', {
10299
+ * ... // other embed view config
10300
+ * newChartsLibrary: true,
10301
+ * })
10302
+ * ```
10303
+ */
10304
+ newChartsLibrary?: boolean;
10305
+ /**
10306
+ * Visual overrides to customize the chart or table properties.
10307
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
10308
+ */
10309
+ visualOverrides?: VisualizationOverrides;
9779
10310
  }
9780
10311
  export interface SearchAppInitData extends DefaultAppInitData {
9781
10312
  searchOptions?: SearchOptions;
10313
+ embedParams?: {
10314
+ visualOverridesParams?: VisualizationOverrides | null;
10315
+ };
9782
10316
  }
9783
10317
  declare class SearchEmbed extends TsEmbed {
9784
10318
  /**
@@ -10276,6 +10810,7 @@ export interface ConversationViewConfig extends SpotterEmbedViewConfig {
10276
10810
  export interface SpotterAppInitData extends DefaultAppInitData {
10277
10811
  embedParams?: {
10278
10812
  spotterSidebarConfig?: SpotterSidebarViewConfig;
10813
+ visualOverridesParams?: VisualizationOverrides | null;
10279
10814
  };
10280
10815
  }
10281
10816
  declare class SpotterEmbed extends TsEmbed {
@@ -11032,6 +11567,24 @@ export interface AppViewConfig extends AllEmbedViewConfig {
11032
11567
  * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
11033
11568
  */
11034
11569
  enableHomepageAnnouncement?: boolean;
11570
+ /**
11571
+ * If set to true, enables visualization data caching on the Liveboard.
11572
+ * @type {boolean}
11573
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
11574
+ * @example
11575
+ * ```js
11576
+ * const embed = new AppEmbed('#tsEmbed', {
11577
+ * ... // other options
11578
+ * enableLiveboardDataCache: true,
11579
+ * })
11580
+ * ```
11581
+ */
11582
+ enableLiveboardDataCache?: boolean;
11583
+ /**
11584
+ * Visual overrides to customize the chart or table properties.
11585
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
11586
+ */
11587
+ visualOverrides?: VisualizationOverrides;
11035
11588
  }
11036
11589
  /**
11037
11590
  * APP_INIT data shape for AppEmbed.
@@ -11623,6 +12176,19 @@ export interface LiveboardViewConfig extends BaseViewConfig, SearchLiveboardComm
11623
12176
  * ```
11624
12177
  */
11625
12178
  spotterChatConfig?: SpotterChatViewConfig;
12179
+ /**
12180
+ * If set to true, enables visualization data caching on the Liveboard.
12181
+ * @type {boolean}
12182
+ * @version SDK: 1.49.0 | ThoughtSpot: 26.6.0.cl
12183
+ * @example
12184
+ * ```js
12185
+ * const embed = new LiveboardEmbed('#embed-container', {
12186
+ * ... // other options
12187
+ * enableLiveboardDataCache: true,
12188
+ * })
12189
+ * ```
12190
+ */
12191
+ enableLiveboardDataCache?: boolean;
11626
12192
  }
11627
12193
  declare class LiveboardEmbed extends V1Embed {
11628
12194
  protected viewConfig: LiveboardViewConfig;