Skip to content

Commit 3bbee29

Browse files
committed
v1.35.0
1 parent 514d99b commit 3bbee29

File tree

4 files changed

+147
-1
lines changed

4 files changed

+147
-1
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export {
4949
EntityReference,
5050
ErrorResponse,
5151
FlowBoard,
52+
FlowBoardAnnotationNode,
5253
FlowBoardConnection,
5354
FlowBoardConnectionPosition,
5455
FlowBoardConnector,
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
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+
import {
26+
ScreenAnnotationNoteType,
27+
transformScreenAnnotationNoteTypeToJSON,
28+
transformJSONToScreenAnnotationNoteType
29+
} from './screen-annotation-note-type';
30+
31+
32+
export const transformFlowBoardAnnotationNodeToJSON = function (value: FlowBoardAnnotationNode): any {
33+
return {
34+
id: value.id,
35+
type: value.type,
36+
position: transformFlowBoardPositionToJSON(value.position),
37+
width: value.width,
38+
height: value.height,
39+
color: transformFlowBoardNodeColorToJSON(value.color),
40+
font_size: value.fontSize,
41+
font_type: value.fontType,
42+
text: value.text,
43+
note_type: value.noteType && transformScreenAnnotationNoteTypeToJSON(value.noteType)
44+
}
45+
}
46+
47+
export const transformJSONToFlowBoardAnnotationNode = function (value: any): FlowBoardAnnotationNode {
48+
return {
49+
id: value.id,
50+
type: value.type,
51+
position: transformJSONToFlowBoardPosition(value.position),
52+
width: value.width,
53+
height: value.height,
54+
color: transformJSONToFlowBoardNodeColor(value.color),
55+
fontSize: value.font_size,
56+
fontType: value.font_type,
57+
text: value.text,
58+
noteType: value.note_type && transformJSONToScreenAnnotationNoteType(value.note_type)
59+
}
60+
}
61+
62+
/**
63+
*
64+
* @export
65+
* @interface FlowBoardAnnotationNode
66+
*/
67+
export interface FlowBoardAnnotationNode {
68+
/**
69+
* The unique id of the screen node
70+
* @type {string}
71+
* @memberof FlowBoardAnnotationNode
72+
*/
73+
id: string;
74+
/**
75+
*
76+
* @type {string}
77+
* @memberof FlowBoardAnnotationNode
78+
*/
79+
type: 'AnnotationNode';
80+
/**
81+
*
82+
* @type {FlowBoardPosition}
83+
* @memberof FlowBoardAnnotationNode
84+
*/
85+
position: FlowBoardPosition;
86+
/**
87+
*
88+
* @type {number}
89+
* @memberof FlowBoardAnnotationNode
90+
*/
91+
width: number;
92+
/**
93+
*
94+
* @type {number}
95+
* @memberof FlowBoardAnnotationNode
96+
*/
97+
height: number;
98+
/**
99+
*
100+
* @type {FlowBoardNodeColor}
101+
* @memberof FlowBoardAnnotationNode
102+
*/
103+
color: FlowBoardNodeColor;
104+
/**
105+
*
106+
* @type {string}
107+
* @memberof FlowBoardAnnotationNode
108+
*/
109+
fontSize: 'small' | 'medium' | 'large' | 'xlarge';
110+
/**
111+
*
112+
* @type {string}
113+
* @memberof FlowBoardAnnotationNode
114+
*/
115+
fontType: 'simple' | 'book-style' | 'technical' | 'handwritten';
116+
/**
117+
* The text content of the annotation
118+
* @type {string}
119+
* @memberof FlowBoardAnnotationNode
120+
*/
121+
text: string;
122+
/**
123+
*
124+
* @type {ScreenAnnotationNoteType}
125+
* @memberof FlowBoardAnnotationNode
126+
*/
127+
noteType?: ScreenAnnotationNoteType;
128+
}
129+
130+

src/models/flow-board-node.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ import {
1717
transformEntityReferenceToJSON,
1818
transformJSONToEntityReference
1919
} from './entity-reference';
20+
import {
21+
FlowBoardAnnotationNode,
22+
transformFlowBoardAnnotationNodeToJSON,
23+
transformJSONToFlowBoardAnnotationNode
24+
} from './flow-board-annotation-node';
2025
import {
2126
FlowBoardNodeColor,
2227
transformFlowBoardNodeColorToJSON,
@@ -47,10 +52,17 @@ import {
4752
transformFlowBoardVariantGroupNodeToJSON,
4853
transformJSONToFlowBoardVariantGroupNode
4954
} from './flow-board-variant-group-node';
55+
import {
56+
ScreenAnnotationNoteType,
57+
transformScreenAnnotationNoteTypeToJSON,
58+
transformJSONToScreenAnnotationNoteType
59+
} from './screen-annotation-note-type';
5060

5161

5262
export const transformJSONToFlowBoardNode = function (value: any): FlowBoardNode {
5363
switch (value.type) {
64+
case 'AnnotationNode':
65+
return transformJSONToFlowBoardAnnotationNode(value);
5466
case 'ScreenNode':
5567
return transformJSONToFlowBoardScreenNode(value);
5668
case 'ShapeNode':
@@ -66,6 +78,8 @@ export const transformJSONToFlowBoardNode = function (value: any): FlowBoardNode
6678

6779
export const transformFlowBoardNodeToJSON = function (value: FlowBoardNode): any {
6880
switch (value.type) {
81+
case 'AnnotationNode':
82+
return transformFlowBoardAnnotationNodeToJSON(value);
6983
case 'ScreenNode':
7084
return transformFlowBoardScreenNodeToJSON(value);
7185
case 'ShapeNode':
@@ -81,6 +95,6 @@ export const transformFlowBoardNodeToJSON = function (value: FlowBoardNode): any
8195
* @type FlowBoardNode
8296
* @export
8397
*/
84-
export type FlowBoardNode = FlowBoardScreenNode | FlowBoardShapeNode | FlowBoardTextNode | FlowBoardVariantGroupNode;
98+
export type FlowBoardNode = FlowBoardAnnotationNode | FlowBoardScreenNode | FlowBoardShapeNode | FlowBoardTextNode | FlowBoardVariantGroupNode;
8599

86100

src/models/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export * from './enabled-rem-preferences';
3535
export * from './entity-reference';
3636
export * from './error-response';
3737
export * from './flow-board';
38+
export * from './flow-board-annotation-node';
3839
export * from './flow-board-connection';
3940
export * from './flow-board-connection-position';
4041
export * from './flow-board-connector';

0 commit comments

Comments
 (0)