Skip to content

Commit 7548558

Browse files
committed
v1.10.0
1 parent b71712f commit 7548558

24 files changed

+1857
-4
lines changed

src/api.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { ColorsApi } from './apis/colors-api';
2323
import { ComponentsApi } from './apis/components-api';
2424
import { ConnectedComponentsApi } from './apis/connected-components-api';
2525
import { DesignTokensApi } from './apis/design-tokens-api';
26+
import { FlowsApi } from './apis/flows-api';
2627
import { NotificationsApi } from './apis/notifications-api';
2728
import { OrganizationsApi } from './apis/organizations-api';
2829
import { ProjectsApi } from './apis/projects-api';
@@ -43,6 +44,7 @@ export class ZeplinApi extends BaseAPI {
4344
components: ComponentsApi;
4445
connectedComponents: ConnectedComponentsApi;
4546
designTokens: DesignTokensApi;
47+
flows: FlowsApi;
4648
notifications: NotificationsApi;
4749
organizations: OrganizationsApi;
4850
projects: ProjectsApi;
@@ -63,6 +65,7 @@ export class ZeplinApi extends BaseAPI {
6365
this.components = new ComponentsApi(configuration, basePath, axios);
6466
this.connectedComponents = new ConnectedComponentsApi(configuration, basePath, axios);
6567
this.designTokens = new DesignTokensApi(configuration, basePath, axios);
68+
this.flows = new FlowsApi(configuration, basePath, axios);
6669
this.notifications = new NotificationsApi(configuration, basePath, axios);
6770
this.organizations = new OrganizationsApi(configuration, basePath, axios);
6871
this.projects = new ProjectsApi(configuration, basePath, axios);

src/apis/flows-api.ts

Lines changed: 737 additions & 0 deletions
Large diffs are not rendered by default.

src/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ export {
4848
EnabledRemPreferences,
4949
EntityReference,
5050
ErrorResponse,
51+
FlowBoard,
52+
FlowBoardConnection,
53+
FlowBoardConnectionPosition,
54+
FlowBoardConnector,
55+
FlowBoardConnectorLabel,
56+
FlowBoardGroup,
57+
FlowBoardNode,
58+
FlowBoardPosition,
59+
FlowBoardScreenNode,
60+
FlowBoardTextNode,
61+
FlowBoardVariantGroupNode,
5162
Gradient,
5263
Grid,
5364
HorizontalGrid,
@@ -96,6 +107,10 @@ export {
96107
ProjectComponentEventContext,
97108
ProjectComponentUpdatedEvent,
98109
ProjectComponentVersionCreatedEvent,
110+
ProjectFlowBoardBuiltEvent,
111+
ProjectFlowBoardBuiltEventResource,
112+
ProjectFlowBoardEvent,
113+
ProjectFlowBoardEventContext,
99114
ProjectMember,
100115
ProjectMemberEvent,
101116
ProjectMemberEventContext,
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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 transformFlowBoardConnectionPositionToJSON = function (value: FlowBoardConnectionPosition): any {
18+
return {
19+
dot_index: value.dotIndex,
20+
side: value.side
21+
}
22+
}
23+
24+
export const transformJSONToFlowBoardConnectionPosition = function (value: any): FlowBoardConnectionPosition {
25+
return {
26+
dotIndex: value.dot_index,
27+
side: value.side
28+
}
29+
}
30+
31+
/**
32+
*
33+
* @export
34+
* @interface FlowBoardConnectionPosition
35+
*/
36+
export interface FlowBoardConnectionPosition {
37+
/**
38+
*
39+
* @type {number}
40+
* @memberof FlowBoardConnectionPosition
41+
*/
42+
dotIndex: number;
43+
/**
44+
*
45+
* @type {string}
46+
* @memberof FlowBoardConnectionPosition
47+
*/
48+
side: 'left' | 'right' | 'bottom' | 'top';
49+
}
50+
51+
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
EntityReference,
17+
transformEntityReferenceToJSON,
18+
transformJSONToEntityReference
19+
} from './entity-reference';
20+
import {
21+
FlowBoardConnectionPosition,
22+
transformFlowBoardConnectionPositionToJSON,
23+
transformJSONToFlowBoardConnectionPosition
24+
} from './flow-board-connection-position';
25+
26+
27+
export const transformFlowBoardConnectionToJSON = function (value: FlowBoardConnection): any {
28+
return {
29+
node: transformEntityReferenceToJSON(value.node),
30+
style: value.style,
31+
layer_source_id: value.layerSourceId,
32+
connection_position: value.connectionPosition && transformFlowBoardConnectionPositionToJSON(value.connectionPosition)
33+
}
34+
}
35+
36+
export const transformJSONToFlowBoardConnection = function (value: any): FlowBoardConnection {
37+
return {
38+
node: transformJSONToEntityReference(value.node),
39+
style: value.style,
40+
layerSourceId: value.layer_source_id,
41+
connectionPosition: value.connection_position && transformJSONToFlowBoardConnectionPosition(value.connection_position)
42+
}
43+
}
44+
45+
/**
46+
*
47+
* @export
48+
* @interface FlowBoardConnection
49+
*/
50+
export interface FlowBoardConnection {
51+
/**
52+
*
53+
* @type {EntityReference}
54+
* @memberof FlowBoardConnection
55+
*/
56+
node: EntityReference;
57+
/**
58+
*
59+
* @type {string}
60+
* @memberof FlowBoardConnection
61+
*/
62+
style?: 'arrow' | 'point';
63+
/**
64+
* Layer\'s identifier in the design tool
65+
* @type {string}
66+
* @memberof FlowBoardConnection
67+
*/
68+
layerSourceId?: string;
69+
/**
70+
*
71+
* @type {FlowBoardConnectionPosition}
72+
* @memberof FlowBoardConnection
73+
*/
74+
connectionPosition?: FlowBoardConnectionPosition;
75+
}
76+
77+
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 transformFlowBoardConnectorLabelToJSON = function (value: FlowBoardConnectorLabel): any {
18+
return {
19+
text: value.text,
20+
position: value.position,
21+
width: value.width
22+
}
23+
}
24+
25+
export const transformJSONToFlowBoardConnectorLabel = function (value: any): FlowBoardConnectorLabel {
26+
return {
27+
text: value.text,
28+
position: value.position,
29+
width: value.width
30+
}
31+
}
32+
33+
/**
34+
*
35+
* @export
36+
* @interface FlowBoardConnectorLabel
37+
*/
38+
export interface FlowBoardConnectorLabel {
39+
/**
40+
* Text for the connector label
41+
* @type {string}
42+
* @memberof FlowBoardConnectorLabel
43+
*/
44+
text: string;
45+
/**
46+
* Percentage based position of the connector label
47+
* @type {number}
48+
* @memberof FlowBoardConnectorLabel
49+
*/
50+
position?: number;
51+
/**
52+
* Width of the connector label
53+
* @type {number}
54+
* @memberof FlowBoardConnectorLabel
55+
*/
56+
width?: number;
57+
}
58+
59+

src/models/flow-board-connector.ts

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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+
FlowBoardConnection,
17+
transformFlowBoardConnectionToJSON,
18+
transformJSONToFlowBoardConnection
19+
} from './flow-board-connection';
20+
import {
21+
FlowBoardConnectorLabel,
22+
transformFlowBoardConnectorLabelToJSON,
23+
transformJSONToFlowBoardConnectorLabel
24+
} from './flow-board-connector-label';
25+
26+
27+
export const transformFlowBoardConnectorToJSON = function (value: FlowBoardConnector): any {
28+
return {
29+
id: value.id,
30+
type: value.type,
31+
start: transformFlowBoardConnectionToJSON(value.start),
32+
end: transformFlowBoardConnectionToJSON(value.end),
33+
label: value.label && transformFlowBoardConnectorLabelToJSON(value.label),
34+
color: value.color
35+
}
36+
}
37+
38+
export const transformJSONToFlowBoardConnector = function (value: any): FlowBoardConnector {
39+
return {
40+
id: value.id,
41+
type: value.type,
42+
start: transformJSONToFlowBoardConnection(value.start),
43+
end: transformJSONToFlowBoardConnection(value.end),
44+
label: value.label && transformJSONToFlowBoardConnectorLabel(value.label),
45+
color: value.color
46+
}
47+
}
48+
49+
/**
50+
*
51+
* @export
52+
* @interface FlowBoardConnector
53+
*/
54+
export interface FlowBoardConnector {
55+
/**
56+
* The unique id of the connector
57+
* @type {string}
58+
* @memberof FlowBoardConnector
59+
*/
60+
id: string;
61+
/**
62+
*
63+
* @type {string}
64+
* @memberof FlowBoardConnector
65+
*/
66+
type: 'SolidLine' | 'DashedLine';
67+
/**
68+
*
69+
* @type {FlowBoardConnection}
70+
* @memberof FlowBoardConnector
71+
*/
72+
start: FlowBoardConnection;
73+
/**
74+
*
75+
* @type {FlowBoardConnection}
76+
* @memberof FlowBoardConnector
77+
*/
78+
end: FlowBoardConnection;
79+
/**
80+
*
81+
* @type {FlowBoardConnectorLabel}
82+
* @memberof FlowBoardConnector
83+
*/
84+
label?: FlowBoardConnectorLabel;
85+
/**
86+
* Color for the connector
87+
* @type {string}
88+
* @memberof FlowBoardConnector
89+
*/
90+
color?: 'yellow' | 'orange' | 'peach' | 'green' | 'turquoise';
91+
}
92+
93+

0 commit comments

Comments
 (0)