Skip to content

Commit 8e89ee4

Browse files
committed
v1.29.0
1 parent f8d2cbe commit 8e89ee4

File tree

5 files changed

+38
-38
lines changed

5 files changed

+38
-38
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ export {
6363
FlowBoardVariantGroupNode,
6464
Gradient,
6565
Grid,
66-
Group,
6766
HorizontalGrid,
6867
HotspotBoundingRectangle,
6968
LanguageEnum,
@@ -77,7 +76,6 @@ export {
7776
LayerTextStyleRange,
7877
Link,
7978
LinkDestination,
80-
Mode,
8179
Notification,
8280
NotificationActor,
8381
NotificationResource,
@@ -266,7 +264,9 @@ export {
266264
UserWebhookUpdateBody,
267265
Variable,
268266
VariableCollection,
267+
VariableGroup,
269268
VariableInfo,
269+
VariableMode,
270270
VariableValue,
271271
VariableValueTypeEnum,
272272
VersionCommit,

src/models/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export * from './flow-board-text-node';
4949
export * from './flow-board-variant-group-node';
5050
export * from './gradient';
5151
export * from './grid';
52-
export * from './group';
5352
export * from './horizontal-grid';
5453
export * from './hotspot-bounding-rectangle';
5554
export * from './language-enum';
@@ -63,7 +62,6 @@ export * from './layer-text-style';
6362
export * from './layer-text-style-range';
6463
export * from './link';
6564
export * from './link-destination';
66-
export * from './mode';
6765
export * from './notification';
6866
export * from './notification-actor';
6967
export * from './notification-resource';
@@ -252,7 +250,9 @@ export * from './user-webhook-event-enum';
252250
export * from './user-webhook-update-body';
253251
export * from './variable';
254252
export * from './variable-collection';
253+
export * from './variable-group';
255254
export * from './variable-info';
255+
export * from './variable-mode';
256256
export * from './variable-value';
257257
export * from './variable-value-type-enum';
258258
export * from './version-commit';

src/models/variable-collection.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
*/
1313

1414

15-
import {
16-
Group,
17-
transformGroupToJSON,
18-
transformJSONToGroup
19-
} from './group';
20-
import {
21-
Mode,
22-
transformModeToJSON,
23-
transformJSONToMode
24-
} from './mode';
2515
import {
2616
ResourceSource,
2717
transformResourceSourceToJSON,
2818
transformJSONToResourceSource
2919
} from './resource-source';
20+
import {
21+
VariableGroup,
22+
transformVariableGroupToJSON,
23+
transformJSONToVariableGroup
24+
} from './variable-group';
25+
import {
26+
VariableMode,
27+
transformVariableModeToJSON,
28+
transformJSONToVariableMode
29+
} from './variable-mode';
3030

3131

3232
export const transformVariableCollectionToJSON = function (value: VariableCollection): any {
@@ -35,8 +35,8 @@ export const transformVariableCollectionToJSON = function (value: VariableCollec
3535
created: value.created,
3636
name: value.name,
3737
description: value.description,
38-
modes: value.modes.map(transformModeToJSON),
39-
groups: value.groups.map(transformGroupToJSON),
38+
modes: value.modes.map(transformVariableModeToJSON),
39+
groups: value.groups.map(transformVariableGroupToJSON),
4040
source_id: value.sourceId,
4141
source: value.source && transformResourceSourceToJSON(value.source)
4242
}
@@ -48,8 +48,8 @@ export const transformJSONToVariableCollection = function (value: any): Variable
4848
created: value.created,
4949
name: value.name,
5050
description: value.description,
51-
modes: value.modes.map(transformJSONToMode),
52-
groups: value.groups.map(transformJSONToGroup),
51+
modes: value.modes.map(transformJSONToVariableMode),
52+
groups: value.groups.map(transformJSONToVariableGroup),
5353
sourceId: value.source_id,
5454
source: value.source && transformJSONToResourceSource(value.source)
5555
}
@@ -87,16 +87,16 @@ export interface VariableCollection {
8787
description?: string;
8888
/**
8989
*
90-
* @type {Array<Mode>}
90+
* @type {Array<VariableMode>}
9191
* @memberof VariableCollection
9292
*/
93-
modes: Array<Mode>;
93+
modes: Array<VariableMode>;
9494
/**
9595
*
96-
* @type {Array<Group>}
96+
* @type {Array<VariableGroup>}
9797
* @memberof VariableCollection
9898
*/
99-
groups: Array<Group>;
99+
groups: Array<VariableGroup>;
100100
/**
101101
* Variable collection\'s identifier in the design tool
102102
* @type {string}

src/models/group.ts renamed to src/models/variable-group.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
} from './variable';
2020

2121

22-
export const transformGroupToJSON = function (value: Group): any {
22+
export const transformVariableGroupToJSON = function (value: VariableGroup): any {
2323
return {
2424
id: value.id,
2525
name: value.name,
@@ -29,7 +29,7 @@ export const transformGroupToJSON = function (value: Group): any {
2929
}
3030
}
3131

32-
export const transformJSONToGroup = function (value: any): Group {
32+
export const transformJSONToVariableGroup = function (value: any): VariableGroup {
3333
return {
3434
id: value.id,
3535
name: value.name,
@@ -42,37 +42,37 @@ export const transformJSONToGroup = function (value: any): Group {
4242
/**
4343
*
4444
* @export
45-
* @interface Group
45+
* @interface VariableGroup
4646
*/
47-
export interface Group {
47+
export interface VariableGroup {
4848
/**
4949
* Identifier of the color
5050
* @type {string}
51-
* @memberof Group
51+
* @memberof VariableGroup
5252
*/
5353
id: string;
5454
/**
5555
* Name of the color
5656
* @type {string}
57-
* @memberof Group
57+
* @memberof VariableGroup
5858
*/
5959
name: string;
6060
/**
6161
* Description of the color
6262
* @type {string}
63-
* @memberof Group
63+
* @memberof VariableGroup
6464
*/
6565
description?: string;
6666
/**
6767
* Parent group of the group
6868
* @type {string}
69-
* @memberof Group
69+
* @memberof VariableGroup
7070
*/
7171
parent?: string;
7272
/**
7373
*
7474
* @type {Array<Variable>}
75-
* @memberof Group
75+
* @memberof VariableGroup
7676
*/
7777
variables: Array<Variable>;
7878
}

src/models/mode.ts renamed to src/models/variable-mode.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515

1616

17-
export const transformModeToJSON = function (value: Mode): any {
17+
export const transformVariableModeToJSON = function (value: VariableMode): any {
1818
return {
1919
id: value.id,
2020
name: value.name,
2121
mode_id: value.modeId
2222
}
2323
}
2424

25-
export const transformJSONToMode = function (value: any): Mode {
25+
export const transformJSONToVariableMode = function (value: any): VariableMode {
2626
return {
2727
id: value.id,
2828
name: value.name,
@@ -33,25 +33,25 @@ export const transformJSONToMode = function (value: any): Mode {
3333
/**
3434
*
3535
* @export
36-
* @interface Mode
36+
* @interface VariableMode
3737
*/
38-
export interface Mode {
38+
export interface VariableMode {
3939
/**
4040
* Identifier of the mode
4141
* @type {string}
42-
* @memberof Mode
42+
* @memberof VariableMode
4343
*/
4444
id: string;
4545
/**
4646
* Name of the mode
4747
* @type {string}
48-
* @memberof Mode
48+
* @memberof VariableMode
4949
*/
5050
name: string;
5151
/**
5252
* Mode\'s identifier in the design tool
5353
* @type {string}
54-
* @memberof Mode
54+
* @memberof VariableMode
5555
*/
5656
modeId: string;
5757
}

0 commit comments

Comments
 (0)