@thoughtspot/ts-chart-sdk 2.0.3 → 2.1.1
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.
- package/dist/ts-chart-sdk.d.ts +15 -10
- package/lib/types/chart-to-ts-event.types.d.ts +6 -1
- package/lib/types/chart-to-ts-event.types.d.ts.map +1 -1
- package/lib/types/chart-to-ts-event.types.js +1 -0
- package/lib/types/chart-to-ts-event.types.js.map +1 -1
- package/lib/types/visual-prop.types.d.ts +9 -9
- package/lib/types/visual-prop.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/chart-to-ts-event.types.ts +26 -0
- package/src/types/visual-prop.types.ts +9 -9
package/dist/ts-chart-sdk.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ type Value = string | boolean | number | object | any[];
|
|
|
201
201
|
type ElementProperties = {
|
|
202
202
|
[key: string]: Value;
|
|
203
203
|
} & {
|
|
204
|
-
labelTranslation?:
|
|
204
|
+
labelTranslation?: string;
|
|
205
205
|
};
|
|
206
206
|
export enum AnswerPropertyKeys {
|
|
207
207
|
NAME = "name",
|
|
@@ -330,7 +330,7 @@ export interface NumberInputFormDetail {
|
|
|
330
330
|
defaultValue?: number;
|
|
331
331
|
inputValidation?: InputValidation;
|
|
332
332
|
disabled?: boolean;
|
|
333
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
333
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
334
334
|
}
|
|
335
335
|
export interface ColorPickerFormDetail {
|
|
336
336
|
type: 'colorpicker';
|
|
@@ -338,7 +338,7 @@ export interface ColorPickerFormDetail {
|
|
|
338
338
|
label?: string;
|
|
339
339
|
selectorType?: 'FONT' | 'COLOR';
|
|
340
340
|
defaultValue?: string;
|
|
341
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
341
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
342
342
|
}
|
|
343
343
|
export interface ToggleFormDetail {
|
|
344
344
|
type: 'toggle';
|
|
@@ -346,7 +346,7 @@ export interface ToggleFormDetail {
|
|
|
346
346
|
label?: string;
|
|
347
347
|
defaultValue?: boolean;
|
|
348
348
|
disabled?: boolean;
|
|
349
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
349
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
350
350
|
}
|
|
351
351
|
export interface CheckboxFormDetail {
|
|
352
352
|
type: 'checkbox';
|
|
@@ -354,7 +354,7 @@ export interface CheckboxFormDetail {
|
|
|
354
354
|
label?: string;
|
|
355
355
|
defaultValue?: boolean;
|
|
356
356
|
disabled?: boolean;
|
|
357
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
357
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
358
358
|
}
|
|
359
359
|
export interface RadioButtonFormDetail {
|
|
360
360
|
type: 'radio';
|
|
@@ -363,7 +363,7 @@ export interface RadioButtonFormDetail {
|
|
|
363
363
|
defaultValue?: string | TranslatedValue;
|
|
364
364
|
values: string[] | TranslatedValue[];
|
|
365
365
|
disabled?: boolean;
|
|
366
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
366
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
367
367
|
}
|
|
368
368
|
export interface DropDownFormDetail {
|
|
369
369
|
type: 'dropdown';
|
|
@@ -372,7 +372,7 @@ export interface DropDownFormDetail {
|
|
|
372
372
|
defaultValue?: string | TranslatedValue;
|
|
373
373
|
values: string[] | TranslatedValue[];
|
|
374
374
|
disabled?: boolean;
|
|
375
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
375
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
376
376
|
}
|
|
377
377
|
export interface Section {
|
|
378
378
|
type: 'section';
|
|
@@ -383,7 +383,7 @@ export interface Section {
|
|
|
383
383
|
layoutType?: 'accordion' | 'tab' | 'none';
|
|
384
384
|
disabled?: boolean;
|
|
385
385
|
isAccordianExpanded?: boolean;
|
|
386
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
386
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
387
387
|
}
|
|
388
388
|
export interface NativeEditToolTip {
|
|
389
389
|
type: 'tooltipconfig';
|
|
@@ -391,7 +391,7 @@ export interface NativeEditToolTip {
|
|
|
391
391
|
defaultValue?: TSTooltipConfig;
|
|
392
392
|
label?: string;
|
|
393
393
|
disabled?: boolean;
|
|
394
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
394
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
395
395
|
}
|
|
396
396
|
export type PropElement = Section | TextInputFormDetail | NumberInputFormDetail | ColorPickerFormDetail | ToggleFormDetail | CheckboxFormDetail | RadioButtonFormDetail | DropDownFormDetail | NativeEditToolTip;
|
|
397
397
|
export interface ColumnProp {
|
|
@@ -552,7 +552,8 @@ export enum ChartToTSEvent {
|
|
|
552
552
|
GetDataForQuery = "GetDataForQuery",
|
|
553
553
|
ShowToolTip = "ShowToolTip",
|
|
554
554
|
HideToolTip = "HideToolTip",
|
|
555
|
-
GetBlinkFlags = "GetBlinkFlags"
|
|
555
|
+
GetBlinkFlags = "GetBlinkFlags",
|
|
556
|
+
GetLabelTranslation = "GetLabelTranslation"
|
|
556
557
|
}
|
|
557
558
|
export interface ChartToTSEventsPayloadMap {
|
|
558
559
|
[ChartToTSEvent.OpenContextMenu]: [OpenContextMenuEventPayload];
|
|
@@ -570,6 +571,7 @@ export interface ChartToTSEventsPayloadMap {
|
|
|
570
571
|
[ChartToTSEvent.OpenAxisMenu]: [OpenAxisMenuEventPayload];
|
|
571
572
|
[ChartToTSEvent.CloseAxisMenu]: [];
|
|
572
573
|
[ChartToTSEvent.GetBlinkFlags]: [GetBlinkFlagsPayload];
|
|
574
|
+
[ChartToTSEvent.GetLabelTranslation]: [GetLabelTranslationPayload];
|
|
573
575
|
}
|
|
574
576
|
export interface UpdateVisualPropsEventPayload {
|
|
575
577
|
visualProps: VisualProps;
|
|
@@ -580,6 +582,9 @@ export interface GetBlinkFlagsPayload {
|
|
|
580
582
|
export interface SetTMLStringEventPayload {
|
|
581
583
|
tmlString: string;
|
|
582
584
|
}
|
|
585
|
+
export interface GetLabelTranslationPayload {
|
|
586
|
+
msgIds: string[];
|
|
587
|
+
}
|
|
583
588
|
export interface PointVal {
|
|
584
589
|
columnId: string;
|
|
585
590
|
value: any;
|
|
@@ -15,7 +15,8 @@ export declare enum ChartToTSEvent {
|
|
|
15
15
|
GetDataForQuery = "GetDataForQuery",
|
|
16
16
|
ShowToolTip = "ShowToolTip",
|
|
17
17
|
HideToolTip = "HideToolTip",
|
|
18
|
-
GetBlinkFlags = "GetBlinkFlags"
|
|
18
|
+
GetBlinkFlags = "GetBlinkFlags",
|
|
19
|
+
GetLabelTranslation = "GetLabelTranslation"
|
|
19
20
|
}
|
|
20
21
|
export interface ChartToTSEventsPayloadMap {
|
|
21
22
|
[ChartToTSEvent.OpenContextMenu]: [OpenContextMenuEventPayload];
|
|
@@ -33,6 +34,7 @@ export interface ChartToTSEventsPayloadMap {
|
|
|
33
34
|
[ChartToTSEvent.OpenAxisMenu]: [OpenAxisMenuEventPayload];
|
|
34
35
|
[ChartToTSEvent.CloseAxisMenu]: [];
|
|
35
36
|
[ChartToTSEvent.GetBlinkFlags]: [GetBlinkFlagsPayload];
|
|
37
|
+
[ChartToTSEvent.GetLabelTranslation]: [GetLabelTranslationPayload];
|
|
36
38
|
}
|
|
37
39
|
export interface UpdateVisualPropsEventPayload {
|
|
38
40
|
visualProps: VisualProps;
|
|
@@ -43,6 +45,9 @@ export interface GetBlinkFlagsPayload {
|
|
|
43
45
|
export interface SetTMLStringEventPayload {
|
|
44
46
|
tmlString: string;
|
|
45
47
|
}
|
|
48
|
+
export interface GetLabelTranslationPayload {
|
|
49
|
+
msgIds: string[];
|
|
50
|
+
}
|
|
46
51
|
export interface PointVal {
|
|
47
52
|
columnId: string;
|
|
48
53
|
value: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-to-ts-event.types.d.ts","sourceRoot":"","sources":["../../src/types/chart-to-ts-event.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACH,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,EACR,MAAM,2BAA2B,CAAC;AAMnC,oBAAY,cAAc;IAItB,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IAKrC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAK/B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IAKjC,iBAAiB,sBAAsB;IAKvC,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAK7B,eAAe,oBAAoB;IAKnC,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAM3B,aAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"chart-to-ts-event.types.d.ts","sourceRoot":"","sources":["../../src/types/chart-to-ts-event.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACH,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,EACR,MAAM,2BAA2B,CAAC;AAMnC,oBAAY,cAAc;IAItB,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IAKrC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAK/B,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IAKjC,iBAAiB,sBAAsB;IAKvC,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAK7B,eAAe,oBAAoB;IAKnC,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAM3B,aAAa,kBAAkB;IAK/B,mBAAmB,wBAAwB;CAC9C;AAQD,MAAM,WAAW,yBAAyB;IA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oBAAoB;IAIjC,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,wBAAwB;IAIrC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;IAOjD,SAAS,EAAE,MAAM,EAAE,CAAC;IAMpB,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IAOpC,aAAa,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAC1C;AAMD,MAAM,WAAW,wBAAwB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC1D;AAMD,MAAM,WAAW,qBAAqB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CACvD"}
|
|
@@ -15,6 +15,7 @@ export var ChartToTSEvent;
|
|
|
15
15
|
ChartToTSEvent["ShowToolTip"] = "ShowToolTip";
|
|
16
16
|
ChartToTSEvent["HideToolTip"] = "HideToolTip";
|
|
17
17
|
ChartToTSEvent["GetBlinkFlags"] = "GetBlinkFlags";
|
|
18
|
+
ChartToTSEvent["GetLabelTranslation"] = "GetLabelTranslation";
|
|
18
19
|
})(ChartToTSEvent || (ChartToTSEvent = {}));
|
|
19
20
|
export var ErrorType;
|
|
20
21
|
(function (ErrorType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-to-ts-event.types.js","sourceRoot":"","sources":["../../src/types/chart-to-ts-event.types.ts"],"names":[],"mappings":"AAWA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"chart-to-ts-event.types.js","sourceRoot":"","sources":["../../src/types/chart-to-ts-event.types.ts"],"names":[],"mappings":"AAWA,MAAM,CAAN,IAAY,cAqDX;AArDD,WAAY,cAAc;IAItB,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IAKrC,+CAA6B,CAAA;IAC7B,iDAA+B,CAAA;IAK/B,yCAAuB,CAAA;IACvB,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,mDAAiC,CAAA;IAKjC,yDAAuC,CAAA;IAKvC,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAK7B,qDAAmC,CAAA;IAKnC,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAM3B,iDAA+B,CAAA;IAK/B,6DAA2C,CAAA;AAC/C,CAAC,EArDW,cAAc,KAAd,cAAc,QAqDzB;AA2OD,MAAM,CAAN,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,0EAA6D,CAAA;AACjE,CAAC,EAFW,SAAS,KAAT,SAAS,QAEpB;AAMD,MAAM,CAAN,IAAY,eAiDX;AAjDD,WAAY,eAAe;IAKvB,0CAAuB,CAAA;IAKvB,8CAA2B,CAAA;IAI3B,oCAAiB,CAAA;IAIjB,gCAAa,CAAA;IAeb,oCAAiB,CAAA;IAKjB,gCAAa,CAAA;IAKb,4DAAyC,CAAA;IAKzC,0CAAuB,CAAA;AAC3B,CAAC,EAjDW,eAAe,KAAf,eAAe,QAiD1B"}
|
|
@@ -12,7 +12,7 @@ type Value = string | boolean | number | object | any[];
|
|
|
12
12
|
type ElementProperties = {
|
|
13
13
|
[key: string]: Value;
|
|
14
14
|
} & {
|
|
15
|
-
labelTranslation?:
|
|
15
|
+
labelTranslation?: string;
|
|
16
16
|
};
|
|
17
17
|
export declare enum AnswerPropertyKeys {
|
|
18
18
|
NAME = "name",
|
|
@@ -141,7 +141,7 @@ export interface NumberInputFormDetail {
|
|
|
141
141
|
defaultValue?: number;
|
|
142
142
|
inputValidation?: InputValidation;
|
|
143
143
|
disabled?: boolean;
|
|
144
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
144
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
145
145
|
}
|
|
146
146
|
export interface ColorPickerFormDetail {
|
|
147
147
|
type: 'colorpicker';
|
|
@@ -149,7 +149,7 @@ export interface ColorPickerFormDetail {
|
|
|
149
149
|
label?: string;
|
|
150
150
|
selectorType?: 'FONT' | 'COLOR';
|
|
151
151
|
defaultValue?: string;
|
|
152
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
152
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
153
153
|
}
|
|
154
154
|
export interface ToggleFormDetail {
|
|
155
155
|
type: 'toggle';
|
|
@@ -157,7 +157,7 @@ export interface ToggleFormDetail {
|
|
|
157
157
|
label?: string;
|
|
158
158
|
defaultValue?: boolean;
|
|
159
159
|
disabled?: boolean;
|
|
160
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
160
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
161
161
|
}
|
|
162
162
|
export interface CheckboxFormDetail {
|
|
163
163
|
type: 'checkbox';
|
|
@@ -165,7 +165,7 @@ export interface CheckboxFormDetail {
|
|
|
165
165
|
label?: string;
|
|
166
166
|
defaultValue?: boolean;
|
|
167
167
|
disabled?: boolean;
|
|
168
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
168
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
169
169
|
}
|
|
170
170
|
export interface RadioButtonFormDetail {
|
|
171
171
|
type: 'radio';
|
|
@@ -174,7 +174,7 @@ export interface RadioButtonFormDetail {
|
|
|
174
174
|
defaultValue?: string | TranslatedValue;
|
|
175
175
|
values: string[] | TranslatedValue[];
|
|
176
176
|
disabled?: boolean;
|
|
177
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
177
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
178
178
|
}
|
|
179
179
|
export interface DropDownFormDetail {
|
|
180
180
|
type: 'dropdown';
|
|
@@ -183,7 +183,7 @@ export interface DropDownFormDetail {
|
|
|
183
183
|
defaultValue?: string | TranslatedValue;
|
|
184
184
|
values: string[] | TranslatedValue[];
|
|
185
185
|
disabled?: boolean;
|
|
186
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
186
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
187
187
|
}
|
|
188
188
|
export interface Section {
|
|
189
189
|
type: 'section';
|
|
@@ -194,7 +194,7 @@ export interface Section {
|
|
|
194
194
|
layoutType?: 'accordion' | 'tab' | 'none';
|
|
195
195
|
disabled?: boolean;
|
|
196
196
|
isAccordianExpanded?: boolean;
|
|
197
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
197
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
198
198
|
}
|
|
199
199
|
export interface NativeEditToolTip {
|
|
200
200
|
type: 'tooltipconfig';
|
|
@@ -202,7 +202,7 @@ export interface NativeEditToolTip {
|
|
|
202
202
|
defaultValue?: TSTooltipConfig;
|
|
203
203
|
label?: string;
|
|
204
204
|
disabled?: boolean;
|
|
205
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
205
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
206
206
|
}
|
|
207
207
|
export type PropElement = Section | TextInputFormDetail | NumberInputFormDetail | ColorPickerFormDetail | ToggleFormDetail | CheckboxFormDetail | RadioButtonFormDetail | DropDownFormDetail | NativeEditToolTip;
|
|
208
208
|
export interface ColumnProp {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visual-prop.types.d.ts","sourceRoot":"","sources":["../../src/types/visual-prop.types.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG;IAC1B,SAAS,EAAE,KAAK,CAAC,MAA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label translation events.
|
|
63
|
+
*/
|
|
64
|
+
GetLabelTranslation = 'GetLabelTranslation',
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
/**
|
|
@@ -156,6 +161,15 @@ export interface ChartToTSEventsPayloadMap {
|
|
|
156
161
|
* @version SDK: 0.0.1-alpha.7 | ThoughtSpot:
|
|
157
162
|
*/
|
|
158
163
|
[ChartToTSEvent.GetBlinkFlags]: [GetBlinkFlagsPayload];
|
|
164
|
+
/**
|
|
165
|
+
* Trigger this event to get the locale translated msg values based on the msgId provided.
|
|
166
|
+
* These msgIds corresponds to the msgIds defined in string.po file of ThoughtSpot.
|
|
167
|
+
* example:
|
|
168
|
+
* msgId: 'chart.tooltip.title'
|
|
169
|
+
* msg: 'Tooltip Title' // based on the locale of ThoughtSpot instance.
|
|
170
|
+
* @version SDK: 2.1.0 | ThoughtSpot:
|
|
171
|
+
*/
|
|
172
|
+
[ChartToTSEvent.GetLabelTranslation]: [GetLabelTranslationPayload];
|
|
159
173
|
}
|
|
160
174
|
|
|
161
175
|
/**
|
|
@@ -166,6 +180,10 @@ export interface UpdateVisualPropsEventPayload {
|
|
|
166
180
|
visualProps: VisualProps;
|
|
167
181
|
}
|
|
168
182
|
|
|
183
|
+
/**
|
|
184
|
+
* This payload is used to get the blink flags from the session service.
|
|
185
|
+
* @group Chart to ThoughtSpot Events
|
|
186
|
+
*/
|
|
169
187
|
export interface GetBlinkFlagsPayload {
|
|
170
188
|
flags: string[];
|
|
171
189
|
}
|
|
@@ -179,6 +197,14 @@ export interface SetTMLStringEventPayload {
|
|
|
179
197
|
tmlString: string;
|
|
180
198
|
}
|
|
181
199
|
|
|
200
|
+
/**
|
|
201
|
+
* This payload is used to get array of msgIds to get the locale translated msg values.
|
|
202
|
+
* @group Chart to ThoughtSpot Events
|
|
203
|
+
*/
|
|
204
|
+
export interface GetLabelTranslationPayload {
|
|
205
|
+
msgIds: string[];
|
|
206
|
+
}
|
|
207
|
+
|
|
182
208
|
/**
|
|
183
209
|
* @group Chart to ThoughtSpot Events / Context Menu
|
|
184
210
|
*/
|
|
@@ -39,7 +39,7 @@ type Value = string | boolean | number | object | any[];
|
|
|
39
39
|
type ElementProperties = {
|
|
40
40
|
[key: string]: Value;
|
|
41
41
|
} & {
|
|
42
|
-
labelTranslation?:
|
|
42
|
+
labelTranslation?: string;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -360,7 +360,7 @@ export interface NumberInputFormDetail {
|
|
|
360
360
|
*
|
|
361
361
|
* @version SDK: 0.2 | ThoughtSpot:
|
|
362
362
|
*/
|
|
363
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
363
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
/**
|
|
@@ -400,7 +400,7 @@ export interface ColorPickerFormDetail {
|
|
|
400
400
|
*
|
|
401
401
|
* @version SDK: 0.2 | ThoughtSpot:
|
|
402
402
|
*/
|
|
403
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
403
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
/**
|
|
@@ -439,7 +439,7 @@ export interface ToggleFormDetail {
|
|
|
439
439
|
*
|
|
440
440
|
* @version SDK: 0.2 | ThoughtSpot:
|
|
441
441
|
*/
|
|
442
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
442
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
/**
|
|
@@ -478,7 +478,7 @@ export interface CheckboxFormDetail {
|
|
|
478
478
|
*
|
|
479
479
|
* @version SDK: 0.2 | ThoughtSpot:
|
|
480
480
|
*/
|
|
481
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
481
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
/**
|
|
@@ -523,7 +523,7 @@ export interface RadioButtonFormDetail {
|
|
|
523
523
|
*
|
|
524
524
|
* @version SDK: 0.2 | ThoughtSpot:
|
|
525
525
|
*/
|
|
526
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
526
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
/**
|
|
@@ -568,7 +568,7 @@ export interface DropDownFormDetail {
|
|
|
568
568
|
*
|
|
569
569
|
* @version SDK: 0.2 | ThoughtSpot:
|
|
570
570
|
*/
|
|
571
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
571
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
572
572
|
}
|
|
573
573
|
|
|
574
574
|
/**
|
|
@@ -627,7 +627,7 @@ export interface Section {
|
|
|
627
627
|
*
|
|
628
628
|
* @version SDK: 0.2 | ThoughtSpot:
|
|
629
629
|
*/
|
|
630
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
630
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
/**
|
|
@@ -667,7 +667,7 @@ export interface NativeEditToolTip {
|
|
|
667
667
|
*
|
|
668
668
|
* @version SDK: 0.2 | ThoughtSpot:
|
|
669
669
|
*/
|
|
670
|
-
labelTranslation?: VisualPropComponentTranslationKeys;
|
|
670
|
+
labelTranslation?: VisualPropComponentTranslationKeys | string;
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
/**
|