Skip to content

Commit 46a31f2

Browse files
committed
v1.12.0
1 parent 8c5ebb0 commit 46a31f2

File tree

8 files changed

+204
-10
lines changed

8 files changed

+204
-10
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ export {
5555
FlowBoardConnectorLabel,
5656
FlowBoardGroup,
5757
FlowBoardNode,
58+
FlowBoardNodeColor,
5859
FlowBoardPosition,
5960
FlowBoardScreenNode,
61+
FlowBoardShapeNode,
6062
FlowBoardTextNode,
6163
FlowBoardVariantGroupNode,
6264
Gradient,
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Zeplin API
5+
* Access your resources in Zeplin
6+
*
7+
* Contact: [email protected]
8+
*
9+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10+
* https://openapi-generator.tech
11+
* Do not edit the class manually.
12+
*/
13+
14+
15+
16+
17+
export const transformFlowBoardNodeColorToJSON = function (value: FlowBoardNodeColor): any {
18+
return {
19+
r: value.r,
20+
g: value.g,
21+
b: value.b,
22+
a: value.a
23+
}
24+
}
25+
26+
export const transformJSONToFlowBoardNodeColor = function (value: any): FlowBoardNodeColor {
27+
return {
28+
r: value.r,
29+
g: value.g,
30+
b: value.b,
31+
a: value.a
32+
}
33+
}
34+
35+
/**
36+
*
37+
* @export
38+
* @interface FlowBoardNodeColor
39+
*/
40+
export interface FlowBoardNodeColor {
41+
/**
42+
* Red component of the color
43+
* @type {number}
44+
* @memberof FlowBoardNodeColor
45+
*/
46+
r: number;
47+
/**
48+
* Green component of the color
49+
* @type {number}
50+
* @memberof FlowBoardNodeColor
51+
*/
52+
g: number;
53+
/**
54+
* Blue component of the color
55+
* @type {number}
56+
* @memberof FlowBoardNodeColor
57+
*/
58+
b: number;
59+
/**
60+
* Alpha component of the color
61+
* @type {number}
62+
* @memberof FlowBoardNodeColor
63+
*/
64+
a: number;
65+
}
66+
67+

src/models/flow-board-node.ts

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ import {
1717
transformEntityReferenceToJSON,
1818
transformJSONToEntityReference
1919
} from './entity-reference';
20+
import {
21+
FlowBoardNodeColor,
22+
transformFlowBoardNodeColorToJSON,
23+
transformJSONToFlowBoardNodeColor
24+
} from './flow-board-node-color';
2025
import {
2126
FlowBoardPosition,
2227
transformFlowBoardPositionToJSON,
@@ -27,6 +32,11 @@ import {
2732
transformFlowBoardScreenNodeToJSON,
2833
transformJSONToFlowBoardScreenNode
2934
} from './flow-board-screen-node';
35+
import {
36+
FlowBoardShapeNode,
37+
transformFlowBoardShapeNodeToJSON,
38+
transformJSONToFlowBoardShapeNode
39+
} from './flow-board-shape-node';
3040
import {
3141
FlowBoardTextNode,
3242
transformFlowBoardTextNodeToJSON,
@@ -41,11 +51,13 @@ import {
4151

4252
export const transformJSONToFlowBoardNode = function (value: any): FlowBoardNode {
4353
switch (value.type) {
44-
case 'Screen':
54+
case 'ScreenNode':
4555
return transformJSONToFlowBoardScreenNode(value);
46-
case 'Text':
56+
case 'ShapeNode':
57+
return transformJSONToFlowBoardShapeNode(value);
58+
case 'TextLabelNode':
4759
return transformJSONToFlowBoardTextNode(value);
48-
case 'VariantGroup':
60+
case 'VariantGroupNode':
4961
return transformJSONToFlowBoardVariantGroupNode(value);
5062
default:
5163
throw new Error(`No variant of FlowBoardNode exists with 'type=${ value.type }'`);
@@ -54,11 +66,13 @@ export const transformJSONToFlowBoardNode = function (value: any): FlowBoardNode
5466

5567
export const transformFlowBoardNodeToJSON = function (value: FlowBoardNode): any {
5668
switch (value.type) {
57-
case 'Screen':
69+
case 'ScreenNode':
5870
return transformFlowBoardScreenNodeToJSON(value);
59-
case 'Text':
71+
case 'ShapeNode':
72+
return transformFlowBoardShapeNodeToJSON(value);
73+
case 'TextLabelNode':
6074
return transformFlowBoardTextNodeToJSON(value);
61-
case 'VariantGroup':
75+
case 'VariantGroupNode':
6276
return transformFlowBoardVariantGroupNodeToJSON(value);
6377
}
6478
}
@@ -67,6 +81,6 @@ export const transformFlowBoardNodeToJSON = function (value: FlowBoardNode): any
6781
* @type FlowBoardNode
6882
* @export
6983
*/
70-
export type FlowBoardNode = FlowBoardScreenNode | FlowBoardTextNode | FlowBoardVariantGroupNode;
84+
export type FlowBoardNode = FlowBoardScreenNode | FlowBoardShapeNode | FlowBoardTextNode | FlowBoardVariantGroupNode;
7185

7286

src/models/flow-board-screen-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface FlowBoardScreenNode {
5959
* @type {string}
6060
* @memberof FlowBoardScreenNode
6161
*/
62-
type: 'Screen';
62+
type: 'ScreenNode';
6363
/**
6464
*
6565
* @type {FlowBoardPosition}
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Zeplin API
5+
* Access your resources in Zeplin
6+
*
7+
* Contact: [email protected]
8+
*
9+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10+
* https://openapi-generator.tech
11+
* Do not edit the class manually.
12+
*/
13+
14+
15+
import {
16+
FlowBoardNodeColor,
17+
transformFlowBoardNodeColorToJSON,
18+
transformJSONToFlowBoardNodeColor
19+
} from './flow-board-node-color';
20+
import {
21+
FlowBoardPosition,
22+
transformFlowBoardPositionToJSON,
23+
transformJSONToFlowBoardPosition
24+
} from './flow-board-position';
25+
26+
27+
export const transformFlowBoardShapeNodeToJSON = function (value: FlowBoardShapeNode): any {
28+
return {
29+
id: value.id,
30+
type: value.type,
31+
shape_type: value.shapeType,
32+
position: transformFlowBoardPositionToJSON(value.position),
33+
text: value.text,
34+
width: value.width,
35+
height: value.height,
36+
color: transformFlowBoardNodeColorToJSON(value.color)
37+
}
38+
}
39+
40+
export const transformJSONToFlowBoardShapeNode = function (value: any): FlowBoardShapeNode {
41+
return {
42+
id: value.id,
43+
type: value.type,
44+
shapeType: value.shape_type,
45+
position: transformJSONToFlowBoardPosition(value.position),
46+
text: value.text,
47+
width: value.width,
48+
height: value.height,
49+
color: transformJSONToFlowBoardNodeColor(value.color)
50+
}
51+
}
52+
53+
/**
54+
*
55+
* @export
56+
* @interface FlowBoardShapeNode
57+
*/
58+
export interface FlowBoardShapeNode {
59+
/**
60+
* The unique id of the shape node
61+
* @type {string}
62+
* @memberof FlowBoardShapeNode
63+
*/
64+
id: string;
65+
/**
66+
*
67+
* @type {string}
68+
* @memberof FlowBoardShapeNode
69+
*/
70+
type: 'ShapeNode';
71+
/**
72+
*
73+
* @type {string}
74+
* @memberof FlowBoardShapeNode
75+
*/
76+
shapeType: 'rectangle' | 'pill' | 'diamond';
77+
/**
78+
*
79+
* @type {FlowBoardPosition}
80+
* @memberof FlowBoardShapeNode
81+
*/
82+
position: FlowBoardPosition;
83+
/**
84+
*
85+
* @type {string}
86+
* @memberof FlowBoardShapeNode
87+
*/
88+
text: string;
89+
/**
90+
*
91+
* @type {number}
92+
* @memberof FlowBoardShapeNode
93+
*/
94+
width: number;
95+
/**
96+
*
97+
* @type {number}
98+
* @memberof FlowBoardShapeNode
99+
*/
100+
height: number;
101+
/**
102+
*
103+
* @type {FlowBoardNodeColor}
104+
* @memberof FlowBoardShapeNode
105+
*/
106+
color: FlowBoardNodeColor;
107+
}
108+
109+

src/models/flow-board-text-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface FlowBoardTextNode {
5656
* @type {string}
5757
* @memberof FlowBoardTextNode
5858
*/
59-
type: 'Text';
59+
type: 'TextLabelNode';
6060
/**
6161
*
6262
* @type {FlowBoardPosition}

src/models/flow-board-variant-group-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface FlowBoardVariantGroupNode {
6161
* @type {string}
6262
* @memberof FlowBoardVariantGroupNode
6363
*/
64-
type: 'VariantGroup';
64+
type: 'VariantGroupNode';
6565
/**
6666
*
6767
* @type {FlowBoardPosition}

src/models/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ export * from './flow-board-connector';
4141
export * from './flow-board-connector-label';
4242
export * from './flow-board-group';
4343
export * from './flow-board-node';
44+
export * from './flow-board-node-color';
4445
export * from './flow-board-position';
4546
export * from './flow-board-screen-node';
47+
export * from './flow-board-shape-node';
4648
export * from './flow-board-text-node';
4749
export * from './flow-board-variant-group-node';
4850
export * from './gradient';

0 commit comments

Comments
 (0)