@thoughtspot/visual-embed-sdk 1.32.4 → 1.32.6

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 (92) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/app.d.ts +42 -0
  3. package/cjs/src/embed/app.d.ts.map +1 -1
  4. package/cjs/src/embed/app.js +4 -1
  5. package/cjs/src/embed/app.js.map +1 -1
  6. package/cjs/src/embed/app.spec.js +30 -0
  7. package/cjs/src/embed/app.spec.js.map +1 -1
  8. package/cjs/src/embed/base.d.ts +1 -1
  9. package/cjs/src/embed/base.js +1 -1
  10. package/cjs/src/embed/liveboard.d.ts +42 -0
  11. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  12. package/cjs/src/embed/liveboard.js +4 -1
  13. package/cjs/src/embed/liveboard.js.map +1 -1
  14. package/cjs/src/embed/liveboard.spec.js +33 -0
  15. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  16. package/cjs/src/embed/ts-embed.d.ts +0 -1
  17. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  18. package/cjs/src/embed/ts-embed.js +1 -2
  19. package/cjs/src/embed/ts-embed.js.map +1 -1
  20. package/cjs/src/types.d.ts +62 -7
  21. package/cjs/src/types.d.ts.map +1 -1
  22. package/cjs/src/types.js +55 -6
  23. package/cjs/src/types.js.map +1 -1
  24. package/cjs/src/utils/graphql/answerService/answerService.d.ts +14 -0
  25. package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  26. package/cjs/src/utils/graphql/answerService/answerService.js +21 -0
  27. package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
  28. package/cjs/src/utils/processData.js +2 -2
  29. package/cjs/src/utils/processData.js.map +1 -1
  30. package/cjs/src/utils/processData.spec.js +14 -0
  31. package/cjs/src/utils/processData.spec.js.map +1 -1
  32. package/dist/src/embed/app.d.ts +42 -0
  33. package/dist/src/embed/app.d.ts.map +1 -1
  34. package/dist/src/embed/base.d.ts +1 -1
  35. package/dist/src/embed/liveboard.d.ts +42 -0
  36. package/dist/src/embed/liveboard.d.ts.map +1 -1
  37. package/dist/src/embed/ts-embed.d.ts +0 -1
  38. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  39. package/dist/src/types.d.ts +62 -7
  40. package/dist/src/types.d.ts.map +1 -1
  41. package/dist/src/utils/graphql/answerService/answerService.d.ts +14 -0
  42. package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  43. package/dist/tsembed-react.es.js +88 -13
  44. package/dist/tsembed-react.js +88 -13
  45. package/dist/tsembed.es.js +89 -14
  46. package/dist/tsembed.js +89 -14
  47. package/dist/visual-embed-sdk-react-full.d.ts +161 -9
  48. package/dist/visual-embed-sdk-react.d.ts +161 -9
  49. package/dist/visual-embed-sdk.d.ts +161 -9
  50. package/lib/package.json +1 -1
  51. package/lib/src/embed/app.d.ts +42 -0
  52. package/lib/src/embed/app.d.ts.map +1 -1
  53. package/lib/src/embed/app.js +4 -1
  54. package/lib/src/embed/app.js.map +1 -1
  55. package/lib/src/embed/app.spec.js +30 -0
  56. package/lib/src/embed/app.spec.js.map +1 -1
  57. package/lib/src/embed/base.d.ts +1 -1
  58. package/lib/src/embed/base.js +1 -1
  59. package/lib/src/embed/liveboard.d.ts +42 -0
  60. package/lib/src/embed/liveboard.d.ts.map +1 -1
  61. package/lib/src/embed/liveboard.js +4 -1
  62. package/lib/src/embed/liveboard.js.map +1 -1
  63. package/lib/src/embed/liveboard.spec.js +33 -0
  64. package/lib/src/embed/liveboard.spec.js.map +1 -1
  65. package/lib/src/embed/ts-embed.d.ts +0 -1
  66. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  67. package/lib/src/embed/ts-embed.js +1 -2
  68. package/lib/src/embed/ts-embed.js.map +1 -1
  69. package/lib/src/types.d.ts +62 -7
  70. package/lib/src/types.d.ts.map +1 -1
  71. package/lib/src/types.js +55 -6
  72. package/lib/src/types.js.map +1 -1
  73. package/lib/src/utils/graphql/answerService/answerService.d.ts +14 -0
  74. package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
  75. package/lib/src/utils/graphql/answerService/answerService.js +21 -0
  76. package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
  77. package/lib/src/utils/processData.js +2 -2
  78. package/lib/src/utils/processData.js.map +1 -1
  79. package/lib/src/utils/processData.spec.js +14 -0
  80. package/lib/src/utils/processData.spec.js.map +1 -1
  81. package/lib/src/visual-embed-sdk.d.ts +161 -9
  82. package/package.json +1 -1
  83. package/src/embed/app.spec.ts +45 -0
  84. package/src/embed/app.ts +48 -0
  85. package/src/embed/base.ts +1 -1
  86. package/src/embed/liveboard.spec.ts +48 -0
  87. package/src/embed/liveboard.ts +48 -0
  88. package/src/embed/ts-embed.ts +1 -2
  89. package/src/types.ts +62 -6
  90. package/src/utils/graphql/answerService/answerService.ts +27 -0
  91. package/src/utils/processData.spec.ts +16 -0
  92. package/src/utils/processData.ts +2 -2
@@ -1130,6 +1130,48 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
1130
1130
  * @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
1131
1131
  */
1132
1132
  homePageSearchBarMode?: HomePageSearchBarMode;
1133
+ /**
1134
+ * This flag is used to enable the compact header in liveboard
1135
+ * @type {boolean}
1136
+ * @default false
1137
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
1138
+ * @example
1139
+ * ```js
1140
+ * const embed = new AppEmbed('#embed-container', {
1141
+ * ... // other options
1142
+ * isLiveboardCompactHeaderEnabled: true,
1143
+ * })
1144
+ * ```
1145
+ */
1146
+ isLiveboardCompactHeaderEnabled?: boolean;
1147
+ /**
1148
+ * This flag is used to show/hide verified Icon in liveboard compact header
1149
+ * @type {boolean}
1150
+ * @default true
1151
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1152
+ * @example
1153
+ * ```js
1154
+ * const embed = new AppEmbed('#embed-container', {
1155
+ * ... // other options
1156
+ * showLiveboardVerifiedBadge: true,
1157
+ * })
1158
+ * ```
1159
+ */
1160
+ showLiveboardVerifiedBadge?: boolean;
1161
+ /**
1162
+ * This flag is used to show/hide re-verify banner in liveboard compact header
1163
+ * @type {boolean}
1164
+ * @default true
1165
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1166
+ * @example
1167
+ * ```js
1168
+ * const embed = new AppEmbed('#embed-container', {
1169
+ * ... // other options
1170
+ * showLiveboardReverifyBanner: true,
1171
+ * })
1172
+ * ```
1173
+ */
1174
+ showLiveboardReverifyBanner?: boolean;
1133
1175
  }
1134
1176
  /**
1135
1177
  * Embeds full ThoughtSpot experience in a host application.
@@ -1439,6 +1481,48 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
1439
1481
  * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
1440
1482
  */
1441
1483
  showPreviewLoader?: boolean;
1484
+ /**
1485
+ * This flag is used to enable the compact header in liveboard
1486
+ * @type {boolean}
1487
+ * @default false
1488
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
1489
+ * @example
1490
+ * ```js
1491
+ * const embed = new LiveboardEmbed('#embed-container', {
1492
+ * ... // other options
1493
+ * isLiveboardCompactHeaderEnabled: true,
1494
+ * })
1495
+ * ```
1496
+ */
1497
+ isLiveboardCompactHeaderEnabled?: boolean;
1498
+ /**
1499
+ * This flag is used to show/hide verified Icon in liveboard compact header
1500
+ * @type {boolean}
1501
+ * @default true
1502
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1503
+ * @example
1504
+ * ```js
1505
+ * const embed = new LiveboardEmbed('#embed-container', {
1506
+ * ... // other options
1507
+ * showLiveboardVerifiedBadge: true,
1508
+ * })
1509
+ * ```
1510
+ */
1511
+ showLiveboardVerifiedBadge?: boolean;
1512
+ /**
1513
+ * This flag is used to show/hide re-verify banner in liveboard compact header
1514
+ * @type {boolean}
1515
+ * @default true
1516
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1517
+ * @example
1518
+ * ```js
1519
+ * const embed = new LiveboardEmbed('#embed-container', {
1520
+ * ... // other options
1521
+ * showLiveboardReverifyBanner: true,
1522
+ * })
1523
+ * ```
1524
+ */
1525
+ showLiveboardReverifyBanner?: boolean;
1442
1526
  }
1443
1527
  /**
1444
1528
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
@@ -1595,7 +1679,7 @@ export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise
1595
1679
  }).catch(error => {
1596
1680
  console.error(error);
1597
1681
  });
1598
- *
1682
+ *```
1599
1683
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
1600
1684
  * @group Global methods
1601
1685
  */
@@ -2425,6 +2509,12 @@ export interface EmbedConfig {
2425
2509
  * @version SDK: 1.28.5 | Thoughtspot: *
2426
2510
  */
2427
2511
  disableTokenVerification?: boolean;
2512
+ /**
2513
+ * This flag is used to disable showing the login failure page in the embedded app.
2514
+ *
2515
+ * @version SDK 1.32.3 | Thoughtspot: *
2516
+ */
2517
+ disableLoginFailurePage?: boolean;
2428
2518
  }
2429
2519
  export interface LayoutConfig {
2430
2520
  }
@@ -3949,20 +4039,57 @@ export declare enum EmbedEvent {
3949
4039
  */
3950
4040
  Rename = "rename",
3951
4041
  /**
3952
- * Emitted when user wants to intercept the search execution
4042
+ * Emitted if the user wants to intercept the search execution
4043
+ * and implement logic to decide whether to run the search or not
3953
4044
  *
3954
- * Set IsOnBeforeGetVizDataInterceptEnabled : true to use
3955
- * this embed event
4045
+ * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
4046
+ * for this embed event to get emitted.
4047
+ *
4048
+ * Parameter: payload
4049
+ * Parameter: responder
4050
+ * Contains elements that lets developers define whether ThoughtSpot
4051
+ * will run the search or not, and if not, which error message to provide.
4052
+ * execute: When execute returns true, the search will be run.
4053
+ * When execute returns false, the search will not be executed.
4054
+ * error: Developers can customize the user facing message when execute is
4055
+ * set to false using the error parameter in responder
3956
4056
  *
3957
4057
  *```js
3958
- * searchEmbed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
4058
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
3959
4059
  * (payload, responder) => {
3960
4060
  * responder({
3961
4061
  * data: {
3962
- * execute: true,
3963
- * }})
4062
+ * execute:false,
4063
+ * error: {
4064
+ * //Provide a custom error message to explain to your end user
4065
+ * //why their search did not run
4066
+ * errorText: "This search query cannot be run.
4067
+ * Please contact your administrator for more details."
4068
+ * }
4069
+ * }})
4070
+ * })
4071
+ * ```
4072
+ *
4073
+ *```js
4074
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
4075
+ * (payload, responder) => {
4076
+ * const query = payload.data.data.answer.search_query
4077
+ * responder({
4078
+ * data: {
4079
+ * // returns true as long as the query does not include
4080
+ * // both the 'sales' AND the 'county' column
4081
+ * execute: !(query.includes("sales")&&query.includes("county")),
4082
+ * error: {
4083
+ * //Provide a custom error message to explain to your end user
4084
+ * // why their search did not run, and which searches are accepted by your custom logic.
4085
+ * errorText: "You can't use this query :" + query + ".
4086
+ * The 'sales' measures can never be used at the 'county' level.
4087
+ * Please try another measure, or remove 'county' from your search."
4088
+ * }
4089
+ * }})
3964
4090
  * })
3965
4091
  *```
4092
+ *
3966
4093
  * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
3967
4094
  */
3968
4095
  OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
@@ -4081,6 +4208,15 @@ export declare enum HostEvent {
4081
4208
  * @hidden
4082
4209
  */
4083
4210
  Reload = "reload",
4211
+ /**
4212
+ * Get current iframe src
4213
+ * @example
4214
+ * ```js
4215
+ * const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
4216
+ * ```
4217
+ * @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
4218
+ */
4219
+ GetIframeUrl = "GetIframeUrl",
4084
4220
  /**
4085
4221
  * Display specific visualizations on a Liveboard.
4086
4222
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
@@ -4945,7 +5081,10 @@ export declare enum Param {
4945
5081
  IsOnBeforeGetVizDataInterceptEnabled = "isOnBeforeGetVizDataInterceptEnabled",
4946
5082
  FocusSearchBarOnRender = "focusSearchBarOnRender",
4947
5083
  DisableRedirectionLinksInNewTab = "disableRedirectionLinksInNewTab",
4948
- HomePageSearchBarMode = "homePageSearchBarMode"
5084
+ HomePageSearchBarMode = "homePageSearchBarMode",
5085
+ ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
5086
+ ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
5087
+ LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled"
4949
5088
  }
4950
5089
  /**
4951
5090
  * ThoughtSpot application pages include actions and menu commands
@@ -6600,6 +6739,15 @@ export declare class AnswerService {
6600
6739
  * @returns Response
6601
6740
  */
6602
6741
  fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
6742
+ /**
6743
+ * Fetch the data for the answer as a PNG blob. This might be
6744
+ * quicker for larger data.
6745
+ * @param userLocale
6746
+ * @param omitBackground Omit the background in the PNG
6747
+ * @param deviceScaleFactor The scale factor for the PNG
6748
+ * @return Response
6749
+ */
6750
+ fetchPNGBlob(userLocale?: string, includeInfo?: boolean, omitBackground?: boolean, deviceScaleFactor?: number): Promise<Response>;
6603
6751
  /**
6604
6752
  * Just get the internal URL for this answer's data
6605
6753
  * as a CSV blob.
@@ -6608,6 +6756,11 @@ export declare class AnswerService {
6608
6756
  * @returns
6609
6757
  */
6610
6758
  getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
6759
+ /**
6760
+ * Just get the internal URL for this answer's data
6761
+ * as a PNG blob.
6762
+ */
6763
+ getFetchPNGBlobUrl(userLocale?: string, omitBackground?: boolean, deviceScaleFactor?: number): string;
6611
6764
  /**
6612
6765
  * Get underlying data given a point and the output column names.
6613
6766
  * In case of a context menu action, the selectedPoints are
@@ -7004,7 +7157,6 @@ export declare class V1Embed extends TsEmbed {
7004
7157
  on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
7005
7158
  /**
7006
7159
  * Only for testing purposes.
7007
- *
7008
7160
  * @hidden
7009
7161
  */
7010
7162
  test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
@@ -1120,6 +1120,48 @@ export interface AppViewConfig extends Omit<ViewConfig, 'visibleTabs'> {
1120
1120
  * @version SDK : 1.33.0 | Thoughtspot : 10.2.0.cl
1121
1121
  */
1122
1122
  homePageSearchBarMode?: HomePageSearchBarMode;
1123
+ /**
1124
+ * This flag is used to enable the compact header in liveboard
1125
+ * @type {boolean}
1126
+ * @default false
1127
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
1128
+ * @example
1129
+ * ```js
1130
+ * const embed = new AppEmbed('#embed-container', {
1131
+ * ... // other options
1132
+ * isLiveboardCompactHeaderEnabled: true,
1133
+ * })
1134
+ * ```
1135
+ */
1136
+ isLiveboardCompactHeaderEnabled?: boolean;
1137
+ /**
1138
+ * This flag is used to show/hide verified Icon in liveboard compact header
1139
+ * @type {boolean}
1140
+ * @default true
1141
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1142
+ * @example
1143
+ * ```js
1144
+ * const embed = new AppEmbed('#embed-container', {
1145
+ * ... // other options
1146
+ * showLiveboardVerifiedBadge: true,
1147
+ * })
1148
+ * ```
1149
+ */
1150
+ showLiveboardVerifiedBadge?: boolean;
1151
+ /**
1152
+ * This flag is used to show/hide re-verify banner in liveboard compact header
1153
+ * @type {boolean}
1154
+ * @default true
1155
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1156
+ * @example
1157
+ * ```js
1158
+ * const embed = new AppEmbed('#embed-container', {
1159
+ * ... // other options
1160
+ * showLiveboardReverifyBanner: true,
1161
+ * })
1162
+ * ```
1163
+ */
1164
+ showLiveboardReverifyBanner?: boolean;
1123
1165
  }
1124
1166
  /**
1125
1167
  * Embeds full ThoughtSpot experience in a host application.
@@ -1429,6 +1471,48 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
1429
1471
  * @version SDK: 1.32.0 | ThoughtSpot: 10.0.0.cl
1430
1472
  */
1431
1473
  showPreviewLoader?: boolean;
1474
+ /**
1475
+ * This flag is used to enable the compact header in liveboard
1476
+ * @type {boolean}
1477
+ * @default false
1478
+ * @version SDK: 1.35.0 | ThoughtSpot:10.3.0.cl
1479
+ * @example
1480
+ * ```js
1481
+ * const embed = new LiveboardEmbed('#embed-container', {
1482
+ * ... // other options
1483
+ * isLiveboardCompactHeaderEnabled: true,
1484
+ * })
1485
+ * ```
1486
+ */
1487
+ isLiveboardCompactHeaderEnabled?: boolean;
1488
+ /**
1489
+ * This flag is used to show/hide verified Icon in liveboard compact header
1490
+ * @type {boolean}
1491
+ * @default true
1492
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1493
+ * @example
1494
+ * ```js
1495
+ * const embed = new LiveboardEmbed('#embed-container', {
1496
+ * ... // other options
1497
+ * showLiveboardVerifiedBadge: true,
1498
+ * })
1499
+ * ```
1500
+ */
1501
+ showLiveboardVerifiedBadge?: boolean;
1502
+ /**
1503
+ * This flag is used to show/hide re-verify banner in liveboard compact header
1504
+ * @type {boolean}
1505
+ * @default true
1506
+ * @version SDK: 1.35.0 | ThoughtSpot:10.4.0.cl
1507
+ * @example
1508
+ * ```js
1509
+ * const embed = new LiveboardEmbed('#embed-container', {
1510
+ * ... // other options
1511
+ * showLiveboardReverifyBanner: true,
1512
+ * })
1513
+ * ```
1514
+ */
1515
+ showLiveboardReverifyBanner?: boolean;
1432
1516
  }
1433
1517
  /**
1434
1518
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
@@ -2057,6 +2141,12 @@ export interface EmbedConfig {
2057
2141
  * @version SDK: 1.28.5 | Thoughtspot: *
2058
2142
  */
2059
2143
  disableTokenVerification?: boolean;
2144
+ /**
2145
+ * This flag is used to disable showing the login failure page in the embedded app.
2146
+ *
2147
+ * @version SDK 1.32.3 | Thoughtspot: *
2148
+ */
2149
+ disableLoginFailurePage?: boolean;
2060
2150
  }
2061
2151
  export interface LayoutConfig {
2062
2152
  }
@@ -3581,20 +3671,57 @@ export declare enum EmbedEvent {
3581
3671
  */
3582
3672
  Rename = "rename",
3583
3673
  /**
3584
- * Emitted when user wants to intercept the search execution
3674
+ * Emitted if the user wants to intercept the search execution
3675
+ * and implement logic to decide whether to run the search or not
3676
+ *
3677
+ * Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
3678
+ * for this embed event to get emitted.
3585
3679
  *
3586
- * Set IsOnBeforeGetVizDataInterceptEnabled : true to use
3587
- * this embed event
3680
+ * Parameter: payload
3681
+ * Parameter: responder
3682
+ * Contains elements that lets developers define whether ThoughtSpot
3683
+ * will run the search or not, and if not, which error message to provide.
3684
+ * execute: When execute returns true, the search will be run.
3685
+ * When execute returns false, the search will not be executed.
3686
+ * error: Developers can customize the user facing message when execute is
3687
+ * set to false using the error parameter in responder
3588
3688
  *
3589
3689
  *```js
3590
- * searchEmbed.on(EmbedEvent.OnBeforeGetVizDataIntercept,
3690
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
3591
3691
  * (payload, responder) => {
3592
3692
  * responder({
3593
3693
  * data: {
3594
- * execute: true,
3595
- * }})
3694
+ * execute:false,
3695
+ * error: {
3696
+ * //Provide a custom error message to explain to your end user
3697
+ * //why their search did not run
3698
+ * errorText: "This search query cannot be run.
3699
+ * Please contact your administrator for more details."
3700
+ * }
3701
+ * }})
3702
+ * })
3703
+ * ```
3704
+ *
3705
+ *```js
3706
+ * .on(EmbedEvent.OnBeforeGetVizDataIntercept,
3707
+ * (payload, responder) => {
3708
+ * const query = payload.data.data.answer.search_query
3709
+ * responder({
3710
+ * data: {
3711
+ * // returns true as long as the query does not include
3712
+ * // both the 'sales' AND the 'county' column
3713
+ * execute: !(query.includes("sales")&&query.includes("county")),
3714
+ * error: {
3715
+ * //Provide a custom error message to explain to your end user
3716
+ * // why their search did not run, and which searches are accepted by your custom logic.
3717
+ * errorText: "You can't use this query :" + query + ".
3718
+ * The 'sales' measures can never be used at the 'county' level.
3719
+ * Please try another measure, or remove 'county' from your search."
3720
+ * }
3721
+ * }})
3596
3722
  * })
3597
3723
  *```
3724
+ *
3598
3725
  * @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
3599
3726
  */
3600
3727
  OnBeforeGetVizDataIntercept = "onBeforeGetVizDataIntercept",
@@ -3713,6 +3840,15 @@ export declare enum HostEvent {
3713
3840
  * @hidden
3714
3841
  */
3715
3842
  Reload = "reload",
3843
+ /**
3844
+ * Get current iframe src
3845
+ * @example
3846
+ * ```js
3847
+ * const frameUrl = AppEmbed.trigger(HostEvent.GetIframeUrl)
3848
+ * ```
3849
+ * @version SDK: 1.35.0 | Thoughtspot: 10.4.0.cl
3850
+ */
3851
+ GetIframeUrl = "GetIframeUrl",
3716
3852
  /**
3717
3853
  * Display specific visualizations on a Liveboard.
3718
3854
  * @param - An array of GUIDs of the visualization to show. The visualization IDs not passed
@@ -4577,7 +4713,10 @@ export declare enum Param {
4577
4713
  IsOnBeforeGetVizDataInterceptEnabled = "isOnBeforeGetVizDataInterceptEnabled",
4578
4714
  FocusSearchBarOnRender = "focusSearchBarOnRender",
4579
4715
  DisableRedirectionLinksInNewTab = "disableRedirectionLinksInNewTab",
4580
- HomePageSearchBarMode = "homePageSearchBarMode"
4716
+ HomePageSearchBarMode = "homePageSearchBarMode",
4717
+ ShowLiveboardVerifiedBadge = "showLiveboardVerifiedBadge",
4718
+ ShowLiveboardReverifyBanner = "showLiveboardReverifyBanner",
4719
+ LiveboardHeaderV2 = "isLiveboardHeaderV2Enabled"
4581
4720
  }
4582
4721
  /**
4583
4722
  * ThoughtSpot application pages include actions and menu commands
@@ -6034,7 +6173,6 @@ export declare class V1Embed extends TsEmbed {
6034
6173
  on(messageType: EmbedEvent, callback: MessageCallback, options?: MessageOptions): typeof TsEmbed.prototype;
6035
6174
  /**
6036
6175
  * Only for testing purposes.
6037
- *
6038
6176
  * @hidden
6039
6177
  */
6040
6178
  test__executeCallbacks: (eventType: EmbedEvent, data: any, eventPort?: void | MessagePort) => void;
@@ -6132,7 +6270,7 @@ export declare const renderInQueue: (fn: (next?: (val?: any) => void) => Promise
6132
6270
  }).catch(error => {
6133
6271
  console.error(error);
6134
6272
  });
6135
- *
6273
+ *```
6136
6274
  * @version SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl
6137
6275
  * @group Global methods
6138
6276
  */
@@ -6889,6 +7027,15 @@ export declare class AnswerService {
6889
7027
  * @returns Response
6890
7028
  */
6891
7029
  fetchCSVBlob(userLocale?: string, includeInfo?: boolean): Promise<Response>;
7030
+ /**
7031
+ * Fetch the data for the answer as a PNG blob. This might be
7032
+ * quicker for larger data.
7033
+ * @param userLocale
7034
+ * @param omitBackground Omit the background in the PNG
7035
+ * @param deviceScaleFactor The scale factor for the PNG
7036
+ * @return Response
7037
+ */
7038
+ fetchPNGBlob(userLocale?: string, includeInfo?: boolean, omitBackground?: boolean, deviceScaleFactor?: number): Promise<Response>;
6892
7039
  /**
6893
7040
  * Just get the internal URL for this answer's data
6894
7041
  * as a CSV blob.
@@ -6897,6 +7044,11 @@ export declare class AnswerService {
6897
7044
  * @returns
6898
7045
  */
6899
7046
  getFetchCSVBlobUrl(userLocale?: string, includeInfo?: boolean): string;
7047
+ /**
7048
+ * Just get the internal URL for this answer's data
7049
+ * as a PNG blob.
7050
+ */
7051
+ getFetchPNGBlobUrl(userLocale?: string, omitBackground?: boolean, deviceScaleFactor?: number): string;
6900
7052
  /**
6901
7053
  * Get underlying data given a point and the output column names.
6902
7054
  * In case of a context menu action, the selectedPoints are