@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
@@ -1949,6 +1949,22 @@ export interface LiveboardAppEmbedViewConfig {
1949
1949
  * ```
1950
1950
  */
1951
1951
  isLiveboardMasterpiecesEnabled?: boolean;
1952
+ /**
1953
+ * Enable or disable Muze chart phase 1 GA
1954
+ *
1955
+ * Supported embed types: `AppEmbed`, `LiveboardEmbed`
1956
+ * @version SDK: 1.49.0 | ThoughtSpot Cloud: 26.6.0.cl
1957
+ * @default false
1958
+ * @example
1959
+ * ```js
1960
+ * // Replace <EmbedComponent> with embed component name. For example, AppEmbed or LiveboardEmbed
1961
+ * const embed = new <EmbedComponent>('#tsEmbed', {
1962
+ * ... // other embed view config
1963
+ * newChartsLibrary: true,
1964
+ * })
1965
+ * ```
1966
+ */
1967
+ newChartsLibrary?: boolean;
1952
1968
  }
1953
1969
  export interface AllEmbedViewConfig extends BaseViewConfig, SearchLiveboardCommonViewConfig, HomePageConfig, LiveboardAppEmbedViewConfig {
1954
1970
  }
@@ -3564,7 +3580,54 @@ export declare enum EmbedEvent {
3564
3580
  * ```
3565
3581
  * @version SDK: 1.45.2 | ThoughtSpot: 26.3.0.cl
3566
3582
  */
3567
- RefreshAuthToken = "RefreshAuthToken"
3583
+ RefreshAuthToken = "RefreshAuthToken",
3584
+ /**
3585
+ * Triggered whenever the page context changes, returning the current context along with the navigation stack.
3586
+ * @example
3587
+ * ```js
3588
+ * embed.on(EmbedEvent.EmbedPageContextChanged, (payload) => {
3589
+ * console.log('payload', payload);
3590
+ * })
3591
+ * ```
3592
+ * @version SDK: 1.47.2 | ThoughtSpot: 26.3.0.cl
3593
+ */
3594
+ EmbedPageContextChanged = "EmbedPageContextChanged",
3595
+ /**
3596
+ * Represents a special embed event that is triggered whenever any host event is subscribed.
3597
+ *
3598
+ * You can listen to this event when you need to dispatch a host event during load or render,
3599
+ * particularly in situations where timing issues may occur.
3600
+ *
3601
+ * @example
3602
+ * ```js
3603
+ * embed.on(`${HostEvent.Save} Subscribed`, () => {
3604
+ * // make action
3605
+ * });
3606
+ * ```
3607
+ *
3608
+ * @example
3609
+ * ```js
3610
+ * embed.on(subscribedEvent(HostEvent.Save), () => {
3611
+ * // make action
3612
+ * });
3613
+ * ```
3614
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.4.0.cl
3615
+ */
3616
+ Subscribed = "Subscribed",
3617
+ /**
3618
+ * Emitted when a user clicks the **Send Test Email** button in the
3619
+ * Liveboard schedule modal. Requires `isSendNowLiveboardSchedulingEnabled`
3620
+ * to be enabled.
3621
+ * @example
3622
+ * ```js
3623
+ * liveboardEmbed.on(EmbedEvent.SendTestScheduleEmail, (payload) => {
3624
+ * console.log('Send test email', payload);
3625
+ * // payload: { liveboardId: string, sendToSelf: boolean }
3626
+ * })
3627
+ * ```
3628
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
3629
+ */
3630
+ SendTestScheduleEmail = "sendTestScheduleEmail"
3568
3631
  }
3569
3632
  /**
3570
3633
  * Event types that can be triggered by the host application
@@ -5262,7 +5325,8 @@ export declare enum HostEvent {
5262
5325
  * ```js
5263
5326
  * // Get parameters from liveboard context
5264
5327
  * import { ContextType } from '@thoughtspot/visual-embed-sdk';
5265
- * liveboardEmbed.trigger(HostEvent.GetParameters, {}, ContextType.Liveboard).then((parameters) => {
5328
+ * liveboardEmbed.trigger(HostEvent.GetParameters, {},
5329
+ * ContextType.Liveboard).then((parameters) => {
5266
5330
  * console.log('parameters', parameters);
5267
5331
  * });
5268
5332
  * ```
@@ -5613,7 +5677,27 @@ export declare enum HostEvent {
5613
5677
  * ```
5614
5678
  * @version SDK: 1.45.0 | ThoughtSpot: 26.2.0.cl
5615
5679
  */
5616
- GetPageContext = "GetPageContext"
5680
+ GetPageContext = "GetPageContext",
5681
+ /**
5682
+ * Trigger the **Send Test Email** action in the Liveboard schedule modal.
5683
+ * Sends a test schedule email to self or all recipients.
5684
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
5685
+ * @example
5686
+ * ```js
5687
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
5688
+ * sendToSelf: true,
5689
+ * })
5690
+ * ```
5691
+ * @example
5692
+ * ```js
5693
+ * // Send to all recipients
5694
+ * liveboardEmbed.trigger(HostEvent.SendTestScheduleEmail, {
5695
+ * sendToSelf: false,
5696
+ * })
5697
+ * ```
5698
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
5699
+ */
5700
+ SendTestScheduleEmail = "sendTestScheduleEmail"
5617
5701
  }
5618
5702
  /**
5619
5703
  * The different visual modes that the data sources panel within
@@ -5705,6 +5789,7 @@ export declare enum Param {
5705
5789
  ShowLiveboardTitle = "showLiveboardTitle",
5706
5790
  ShowMaskedFilterChip = "showMaskedFilterChip",
5707
5791
  IsLiveboardMasterpiecesEnabled = "isLiveboardMasterpiecesEnabled",
5792
+ EnableNewChartLibrary = "muzeChartPhase1EnabledGA",
5708
5793
  HiddenTabs = "hideTabs",
5709
5794
  VisibleTabs = "visibleTabs",
5710
5795
  HideTabPanel = "hideTabPanel",
@@ -5760,6 +5845,7 @@ export declare enum Param {
5760
5845
  IsWYSIWYGLiveboardPDFEnabled = "isWYSIWYGLiveboardPDFEnabled",
5761
5846
  isLiveboardXLSXCSVDownloadEnabled = "isLiveboardXLSXCSVDownloadEnabled",
5762
5847
  isGranularXLSXCSVSchedulesEnabled = "isGranularXLSXCSVSchedulesEnabled",
5848
+ isSendNowLiveboardSchedulingEnabled = "isSendNowLiveboardSchedulingEnabled",
5763
5849
  isCentralizedLiveboardFilterUXEnabled = "isCentralizedLiveboardFilterUXEnabled",
5764
5850
  isLinkParametersEnabled = "isLinkParametersEnabled",
5765
5851
  EnablePastConversationsSidebar = "enablePastConversationsSidebar",
@@ -5778,7 +5864,8 @@ export declare enum Param {
5778
5864
  IsThisPeriodInDateFiltersEnabled = "isThisPeriodInDateFiltersEnabled",
5779
5865
  HideToolResponseCardBranding = "hideToolResponseCardBranding",
5780
5866
  ToolResponseCardBrandingLabel = "toolResponseCardBrandingLabel",
5781
- EnableHomepageAnnouncement = "enableHomepageAnnouncement"
5867
+ EnableHomepageAnnouncement = "enableHomepageAnnouncement",
5868
+ EnableLiveboardDataCache = "enableLiveboardDataCache"
5782
5869
  }
5783
5870
  /**
5784
5871
  * ThoughtSpot application pages include actions and menu commands
@@ -6099,7 +6186,7 @@ export declare enum Action {
6099
6186
  * ```js
6100
6187
  * disabledActions: [Action.DownloadLiveboard]
6101
6188
  * ```
6102
- * @version SDK: 1.46.0 | ThoughtSpot: 26.3.0.cl
6189
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6103
6190
  */
6104
6191
  DownloadLiveboard = "downloadLiveboard",
6105
6192
  /**
@@ -6112,6 +6199,26 @@ export declare enum Action {
6112
6199
  * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6113
6200
  */
6114
6201
  DownloadLiveboardAsContinuousPDF = "downloadLiveboardAsContinuousPDF",
6202
+ /**
6203
+ * The **Download Liveboard as XLSX** menu action on a Liveboard.
6204
+ * Allows downloading the entire Liveboard as an XLSX file.
6205
+ * @example
6206
+ * ```js
6207
+ * disabledActions: [Action.DownloadLiveboardAsXlsx]
6208
+ * ```
6209
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6210
+ */
6211
+ DownloadLiveboardAsXlsx = "downloadLiveboardAsXlsx",
6212
+ /**
6213
+ * The **Download Liveboard as CSV** menu action on a Liveboard.
6214
+ * Allows downloading the entire Liveboard as a CSV file.
6215
+ * @example
6216
+ * ```js
6217
+ * disabledActions: [Action.DownloadLiveboardAsCsv]
6218
+ * ```
6219
+ * @version SDK: 1.48.0 | ThoughtSpot: 26.5.0.cl
6220
+ */
6221
+ DownloadLiveboardAsCsv = "downloadLiveboardAsCsv",
6115
6222
  /**
6116
6223
  * @hidden
6117
6224
  */
@@ -7371,7 +7478,19 @@ export declare enum Action {
7371
7478
  * ```
7372
7479
  * @version SDK: 1.45.0 | ThoughtSpot: 26.4.0.cl
7373
7480
  */
7374
- IncludeCurrentPeriod = "includeCurrentPeriod"
7481
+ IncludeCurrentPeriod = "includeCurrentPeriod",
7482
+ /**
7483
+ * The **Send Test Email** button in the Liveboard schedule modal.
7484
+ * Allows sending a test schedule email to self or all recipients.
7485
+ * Requires `isSendNowLiveboardSchedulingEnabled` to be enabled.
7486
+ * @example
7487
+ * ```js
7488
+ * disabledActions: [Action.SendTestScheduleEmail]
7489
+ * hiddenActions: [Action.SendTestScheduleEmail]
7490
+ * ```
7491
+ * @version SDK: 1.48.0 | ThoughtSpot Cloud: 26.5.0.cl
7492
+ */
7493
+ SendTestScheduleEmail = "sendTestScheduleEmail"
7375
7494
  }
7376
7495
  export interface AnswerServiceType {
7377
7496
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -7943,4 +8062,411 @@ export interface ContextObject {
7943
8062
  objectIds: ObjectIds;
7944
8063
  };
7945
8064
  }
8065
+ export interface FontProperties {
8066
+ color?: string;
8067
+ bold?: boolean;
8068
+ italic?: boolean;
8069
+ strikeThrough?: boolean;
8070
+ underline?: boolean;
8071
+ }
8072
+ export interface SolidBackgroundAttrs {
8073
+ color?: string;
8074
+ }
8075
+ export interface GradientBackgroundAttrs {
8076
+ backgroundFormatMidpoint?: number;
8077
+ colors?: string[];
8078
+ backgroundFormatRange?: number[];
8079
+ isAutoScaled?: boolean;
8080
+ }
8081
+ /**
8082
+ * Data label filter operators
8083
+ * @group Visual Overrides
8084
+ */
8085
+ export declare enum DataLabelFilterOperator {
8086
+ /** Greater than */
8087
+ GreaterThan = "GREATER_THAN",
8088
+ /** Less than */
8089
+ LessThan = "LESS_THAN",
8090
+ /** Greater than or equal to */
8091
+ GreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO",
8092
+ /** Less than or equal to */
8093
+ LessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO",
8094
+ /** Equal to */
8095
+ EqualTo = "EQUAL_TO",
8096
+ /** Not equal to */
8097
+ NotEqualTo = "NOT_EQUAL_TO"
8098
+ }
8099
+ /**
8100
+ * Conditional formatting operators
8101
+ * @group Visual Overrides
8102
+ */
8103
+ export declare enum ConditionalFormattingOperator {
8104
+ /** Is equal to */
8105
+ Is = "IS",
8106
+ /** Is not equal to */
8107
+ IsNot = "IS_NOT",
8108
+ /** Contains */
8109
+ Contains = "CONTAINS",
8110
+ /** Does not contain */
8111
+ DoesNotContain = "DOES_NOT_CONTAIN",
8112
+ /** Starts with */
8113
+ StartsWith = "STARTS_WITH",
8114
+ /** Ends with */
8115
+ EndsWith = "ENDS_WITH",
8116
+ /** Greater than */
8117
+ GreaterThan = "GREATER_THAN",
8118
+ /** Less than */
8119
+ LessThan = "LESS_THAN",
8120
+ /** Greater than or equal to */
8121
+ GreaterThanEqualTo = "GREATER_THAN_EQUAL_TO",
8122
+ /** Less than or equal to */
8123
+ LessThanEqualTo = "LESS_THAN_EQUAL_TO",
8124
+ /** Equal to */
8125
+ EqualTo = "EQUAL_TO",
8126
+ /** Not equal to */
8127
+ NotEqualTo = "NOT_EQUAL_TO",
8128
+ /** Is between */
8129
+ IsBetween = "IS_BETWEEN",
8130
+ /** Is null */
8131
+ IsNull = "IS_NULL",
8132
+ /** Is not null */
8133
+ IsNotNull = "IS_NOT_NULL"
8134
+ }
8135
+ /**
8136
+ * Background format types for conditional formatting
8137
+ * @group Visual Overrides
8138
+ */
8139
+ export declare enum BackgroundFormatType {
8140
+ /** Solid color background */
8141
+ Solid = "SOLID",
8142
+ /** Gradient background */
8143
+ Gradient = "GRADIENT"
8144
+ }
8145
+ /**
8146
+ * Comparison types for conditional formatting
8147
+ * @group Visual Overrides
8148
+ */
8149
+ export declare enum ConditionalFormattingComparisonType {
8150
+ /** Value-based comparison */
8151
+ ValueBased = "VALUE_BASED",
8152
+ /** Column-based comparison */
8153
+ ColumnBased = "COLUMN_BASED",
8154
+ /** Parameter-based comparison */
8155
+ ParameterBased = "PARAMETER_BASED"
8156
+ }
8157
+ /**
8158
+ * A single conditional formatting rule row
8159
+ * @group Visual Overrides
8160
+ */
8161
+ export interface ConditionalFormattingRow {
8162
+ /** Comparison operator */
8163
+ operator: ConditionalFormattingOperator | string;
8164
+ /** Value to compare against */
8165
+ value?: string;
8166
+ /** Range values for range-based comparisons */
8167
+ rangeValues?: {
8168
+ min: number;
8169
+ max: number;
8170
+ };
8171
+ /** Plot the formatting as a band/area */
8172
+ plotAsBand?: boolean;
8173
+ /** Highlight this row if the condition is met */
8174
+ isHighlightRow?: boolean;
8175
+ /** Type of comparison: value-based, column-based, or parameter-based */
8176
+ comparisonType?: ConditionalFormattingComparisonType | string;
8177
+ /** Column ID to apply the formatting to (left-hand side) */
8178
+ lhsColumnId?: string;
8179
+ /** Column name to compare against (right-hand side) */
8180
+ columnToCompare?: string;
8181
+ /** Parameter ID to compare against */
8182
+ comparisonParameterId?: string;
8183
+ /** Font properties to apply (color, bold, italic, etc.) */
8184
+ fontProperties?: FontProperties;
8185
+ /** Background format type: solid color or gradient */
8186
+ backgroundFormatType?: BackgroundFormatType | string;
8187
+ /** Solid background color attributes */
8188
+ solidBackgroundAttrs?: SolidBackgroundAttrs;
8189
+ /** Gradient background attributes */
8190
+ gradientBackgroundAttrs?: GradientBackgroundAttrs;
8191
+ }
8192
+ /**
8193
+ * Conditional formatting configuration
8194
+ * @group Visual Overrides
8195
+ */
8196
+ export interface ConditionalFormatting {
8197
+ /** Array of conditional formatting rules */
8198
+ rows?: ConditionalFormattingRow[];
8199
+ }
8200
+ /**
8201
+ * Color palette for charts
8202
+ * @group Visual Overrides
8203
+ */
8204
+ export interface ColorPalette {
8205
+ /** Array of color values (hex codes or color names) */
8206
+ colors?: string[];
8207
+ }
8208
+ /**
8209
+ * Legend position options
8210
+ * @group Visual Overrides
8211
+ */
8212
+ export declare enum LegendPosition {
8213
+ /** Position legend at the top */
8214
+ Top = "top",
8215
+ /** Position legend at the bottom */
8216
+ Bottom = "bottom",
8217
+ /** Position legend on the left */
8218
+ Left = "left",
8219
+ /** Position legend on the right */
8220
+ Right = "right"
8221
+ }
8222
+ /**
8223
+ * Table theme options
8224
+ * @group Visual Overrides
8225
+ */
8226
+ export declare enum TableTheme {
8227
+ /** Outline theme */
8228
+ Outline = "OUTLINE",
8229
+ /** Row theme */
8230
+ Row = "ROW",
8231
+ /** Zebra theme */
8232
+ Zebra = "ZEBRA"
8233
+ }
8234
+ /**
8235
+ * Table content density options
8236
+ * @group Visual Overrides
8237
+ */
8238
+ export declare enum TableContentDensity {
8239
+ /** Regular density */
8240
+ Regular = "REGULAR",
8241
+ /** Compact density */
8242
+ Compact = "COMPACT"
8243
+ }
8244
+ /**
8245
+ * Chart legend configuration
8246
+ * @group Visual Overrides
8247
+ */
8248
+ export interface ChartLegend {
8249
+ /** Show or hide the legend */
8250
+ show?: boolean;
8251
+ /** Position of the legend */
8252
+ position?: LegendPosition | string;
8253
+ /** Color palette to use for legend colors */
8254
+ colorPalette?: ColorPalette;
8255
+ }
8256
+ /**
8257
+ * Filter for data labels
8258
+ * @group Visual Overrides
8259
+ */
8260
+ export interface DataLabelFilter {
8261
+ /** Filter threshold value */
8262
+ value?: number;
8263
+ /** Filter operator */
8264
+ operator?: DataLabelFilterOperator | string;
8265
+ }
8266
+ /**
8267
+ * Data label configuration for a specific column
8268
+ * @group Visual Overrides
8269
+ */
8270
+ export interface ColumnDataLabel {
8271
+ /** Column name to apply data label overrides to */
8272
+ name: string;
8273
+ /** Show or hide data labels for this column */
8274
+ visible?: boolean;
8275
+ /** Filter to apply to data labels */
8276
+ filter?: DataLabelFilter | null;
8277
+ }
8278
+ /**
8279
+ * Chart data label configuration
8280
+ * @group Visual Overrides
8281
+ */
8282
+ export interface ChartDataLabel {
8283
+ /** Show labels for all data points */
8284
+ allLabels?: boolean;
8285
+ /** Show labels for stacked values */
8286
+ stackLabels?: boolean;
8287
+ /** Per-column data label configurations */
8288
+ columnDataLabel?: ColumnDataLabel[];
8289
+ }
8290
+ /**
8291
+ * Chart summaries and totals configuration
8292
+ * @group Visual Overrides
8293
+ */
8294
+ export interface ChartSummaries {
8295
+ /** Show row totals */
8296
+ showRowTotals?: boolean;
8297
+ /** Show column totals */
8298
+ showColumnTotals?: boolean;
8299
+ /** Show row grand totals */
8300
+ showRowGrandTotals?: boolean;
8301
+ /** Show column grand totals */
8302
+ showColumnGrandTotals?: boolean;
8303
+ }
8304
+ /**
8305
+ * Gridline configuration
8306
+ * @group Visual Overrides
8307
+ */
8308
+ export interface GridLine {
8309
+ /** Show vertical gridlines */
8310
+ x?: boolean;
8311
+ /** Show horizontal gridlines */
8312
+ y?: boolean;
8313
+ }
8314
+ /**
8315
+ * Chart display configuration
8316
+ * @group Visual Overrides
8317
+ */
8318
+ export interface ChartDisplay {
8319
+ /** Summary and totals configuration */
8320
+ summaries?: ChartSummaries;
8321
+ /** Show regression line on chart */
8322
+ regressionLine?: boolean;
8323
+ /** Gridline visibility configuration */
8324
+ gridLine?: GridLine;
8325
+ }
8326
+ /**
8327
+ * Y-axis range configuration
8328
+ * @group Visual Overrides
8329
+ */
8330
+ export interface YAxisRange {
8331
+ /** Minimum value for Y-axis */
8332
+ min?: number;
8333
+ /** Maximum value for Y-axis */
8334
+ max?: number;
8335
+ }
8336
+ /**
8337
+ * Chart axis configuration
8338
+ * @group Visual Overrides
8339
+ */
8340
+ export interface ChartAxis {
8341
+ /** Column names to link to this axis */
8342
+ linkedColumns?: string[];
8343
+ /** Show the axis name */
8344
+ showName?: boolean;
8345
+ /** Show the axis label values */
8346
+ showLabelValue?: boolean;
8347
+ /** Y-axis range configuration */
8348
+ yAxisRange?: YAxisRange;
8349
+ }
8350
+ /**
8351
+ * Chart column override configuration
8352
+ * @group Visual Overrides
8353
+ */
8354
+ export interface ChartColumn {
8355
+ /** Column name to apply overrides to */
8356
+ name: string;
8357
+ /** Color for the column (hex code) */
8358
+ color?: string;
8359
+ /** Conditional formatting rules to apply to the column */
8360
+ conditionalFormatting?: ConditionalFormatting;
8361
+ }
8362
+ /**
8363
+ * Chart visualization overrides
8364
+ * @group Visual Overrides
8365
+ */
8366
+ export interface ChartOverrides {
8367
+ /** Legend configuration */
8368
+ legend?: ChartLegend;
8369
+ /** Data label configuration */
8370
+ dataLabel?: ChartDataLabel;
8371
+ /** Display properties (summaries, regression line, gridlines) */
8372
+ display?: ChartDisplay;
8373
+ /** Per-axis configurations */
8374
+ axis?: ChartAxis[];
8375
+ /** Per-column configurations */
8376
+ columns?: ChartColumn[];
8377
+ /** Update mask paths for partial updates */
8378
+ updateMaskPaths?: string[];
8379
+ }
8380
+ /**
8381
+ * Table column override configuration
8382
+ * @group Visual Overrides
8383
+ */
8384
+ export interface TableColumn {
8385
+ /**
8386
+ * Name of the column to apply overrides to
8387
+ */
8388
+ name: string;
8389
+ /**
8390
+ * Enable or disable text wrapping for the column
8391
+ */
8392
+ wrapText?: boolean;
8393
+ /**
8394
+ * Show or hide the column
8395
+ */
8396
+ show?: boolean;
8397
+ /**
8398
+ * Conditional formatting rules to apply to the column
8399
+ */
8400
+ conditionalFormatting?: ConditionalFormatting;
8401
+ }
8402
+ /**
8403
+ * Table display configuration
8404
+ * @group Visual Overrides
8405
+ */
8406
+ export interface TableDisplay {
8407
+ /** Table theme */
8408
+ tableTheme?: TableTheme | string;
8409
+ /** Table content density */
8410
+ tableContentDensity?: TableContentDensity | string;
8411
+ }
8412
+ /**
8413
+ * Column summary visibility configuration
8414
+ * @group Visual Overrides
8415
+ */
8416
+ export interface ColumnSummaryVisibility {
8417
+ /** Column ID to control summary visibility for */
8418
+ columnId: string;
8419
+ /** Show or hide summary for this column */
8420
+ visible: boolean;
8421
+ }
8422
+ /**
8423
+ * Display summary configuration
8424
+ * @group Visual Overrides
8425
+ */
8426
+ export interface DisplaySummaryConfig {
8427
+ /** Show all column summaries by default */
8428
+ showAllSummaries?: boolean;
8429
+ /** Per-column summary visibility overrides */
8430
+ columnVisibility?: ColumnSummaryVisibility[];
8431
+ }
8432
+ /**
8433
+ * Table visualization overrides
8434
+ * @group Visual Overrides
8435
+ */
8436
+ export interface TableOverrides {
8437
+ /** Per-column configurations (properties, conditional formatting) */
8438
+ columns?: TableColumn[];
8439
+ /** Table display properties (theme, density) */
8440
+ display?: TableDisplay;
8441
+ /** Summary/headline column visibility configuration */
8442
+ displaySummaryConfig?: DisplaySummaryConfig;
8443
+ /** Update mask paths for partial updates */
8444
+ updateMaskPaths?: string[];
8445
+ }
8446
+ /**
8447
+ * Visualization overrides to customize chart and table rendering
8448
+ * within embedded ThoughtSpot components.
8449
+ *
8450
+ * @group Visual Overrides
8451
+ * @example
8452
+ * ```js
8453
+ * const embed = new AppEmbed('#tsEmbed', {
8454
+ * visualOverrides: {
8455
+ * chart: {
8456
+ * legend: { show: true, position: 'bottom' },
8457
+ * columns: [{ name: 'Revenue', color: '#1f77b4' }],
8458
+ * },
8459
+ * table: {
8460
+ * display: { tableTheme: 'ZEBRA', tableContentDensity: 'COMPACT' },
8461
+ * },
8462
+ * },
8463
+ * });
8464
+ * ```
8465
+ */
8466
+ export interface VisualizationOverrides {
8467
+ /** Chart visualization overrides */
8468
+ chart?: ChartOverrides;
8469
+ /** Table visualization overrides */
8470
+ table?: TableOverrides;
8471
+ }
7946
8472
  //# sourceMappingURL=types.d.ts.map