Skip to content

Commit c2da3fd

Browse files
worksheet terminology update, SCAL-278257 fix (#334)
1 parent 9575d29 commit c2da3fd

File tree

5 files changed

+3344
-3271
lines changed

5 files changed

+3344
-3271
lines changed

src/embed/bodyless-conversation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getQueryParamString } from '../utils';
1010
*/
1111
export interface SpotterAgentEmbedViewConfig extends Omit<BaseViewConfig, 'primaryAction'> {
1212
/**
13-
* The ID of the worksheet to use for the conversation.
13+
* The ID of the Model to use for the conversation.
1414
*/
1515
worksheetId: string;
1616
}

src/embed/sage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ export interface SageViewConfig
6969
*/
7070
hideSageAnswerHeader?: boolean;
7171
/**
72-
* Disable the worksheet selection option.
72+
* Disable the data source selection option.
7373
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
7474
*/
7575
disableWorksheetChange?: boolean;
7676
/**
77-
* Hide the worksheet selection panel.
77+
* Hide the data source selection panel.
7878
* @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw
7979
*/
8080
hideWorksheetSelector?: boolean;
@@ -92,7 +92,7 @@ export interface SageViewConfig
9292
showObjectSuggestions?: boolean;
9393
/**
9494
* Show or hide sample questions.
95-
* The sample questions are autogenerated based on the worksheet
95+
* The sample questions are autogenerated based on the data Model.
9696
* selected for the search operation.
9797
*
9898
* Supported embed types: `SageEmbed`
@@ -107,7 +107,7 @@ export interface SageViewConfig
107107
*/
108108
hideSampleQuestions?: boolean;
109109
/**
110-
* The data source GUID (Worksheet GUID) to set on load.
110+
* The data source GUID (Model GUID) to set on load.
111111
*/
112112
dataSource?: string;
113113
/**

src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const ERROR_MESSAGE = {
22
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
3-
SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started',
3+
SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a Model to get started',
44
LIVEBOARD_VIZ_ID_VALIDATION: 'Please select a Liveboard to embed.',
55
TRIGGER_TIMED_OUT: 'Trigger timed-out in getting a response',
66
SEARCHEMBED_BETA_WRANING_MESSAGE: 'SearchEmbed is in Beta in this release.',

src/types.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,7 +2807,7 @@ export enum EmbedEvent {
28072807
* the table visualization.
28082808
*
28092809
* If the Row-Level Security (RLS) rules are applied on the
2810-
* Worksheet or Model, exercise caution when changing column
2810+
* Model, exercise caution when changing column
28112811
* or table cell values to maintain data security.
28122812
*
28132813
* @example
@@ -2865,7 +2865,7 @@ export enum EmbedEvent {
28652865
*/
28662866
SpotterData = 'SpotterData',
28672867
/**
2868-
* Emitted when user opens up the worksheet preview modal in Spotter embed.
2868+
* Emitted when user opens up the data source preview modal in Spotter embed.
28692869
* @example
28702870
* ```js
28712871
* spotterEmbed.on(EmbedEvent.PreviewSpotterData, (payload) => {
@@ -3092,9 +3092,7 @@ export enum HostEvent {
30923092
*/
30933093
Reload = 'reload',
30943094
/**
3095-
* Get iframe URL for the current embed view on the playground.
3096-
* Developers can use this URL to embed a ThoughtSpot object
3097-
* in apps like Salesforce or Sharepoint.
3095+
* Get iframe URL for the current embed view.
30983096
* @example
30993097
* ```js
31003098
* const url = embed.trigger(HostEvent.GetIframeUrl);
@@ -4166,7 +4164,7 @@ export enum HostEvent {
41664164
*/
41674165
EditLastPrompt = 'EditLastPrompt',
41684166
/**
4169-
* Opens the Worksheet preview modal in Spotter Embed.
4167+
* Opens the data source preview modal in Spotter Embed.
41704168
* @example
41714169
* ```js
41724170
* spotterEmbed.trigger(HostEvent.PreviewSpotterData);
@@ -4516,7 +4514,7 @@ export enum Action {
45164514
*/
45174515
SchedulesList = 'schedule-list',
45184516
/**
4519-
* The **Share** action on a Liveboard, Answer, or Worksheet.
4517+
* The **Share** action on a Liveboard, Answer, or Model.
45204518
* Allows users to share an object with other users and groups.
45214519
* @example
45224520
* ```js
@@ -4975,7 +4973,7 @@ export enum Action {
49754973
AnswerChartSwitcher = 'answerChartSwitcher',
49764974
/**
49774975
* The Favorites icon (*) for Answers,
4978-
* Liveboard, and data objects like Worksheet, Model,
4976+
* Liveboard, and data objects like Model,
49794977
* Tables and Views.
49804978
* Allows adding an object to the user's favorites list.
49814979
* @example

0 commit comments

Comments
 (0)