Skip to content

Commit

Permalink
v1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zeplin-dev committed Jan 26, 2022
1 parent b71712f commit 7548558
Show file tree
Hide file tree
Showing 24 changed files with 1,857 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { ColorsApi } from './apis/colors-api';
import { ComponentsApi } from './apis/components-api';
import { ConnectedComponentsApi } from './apis/connected-components-api';
import { DesignTokensApi } from './apis/design-tokens-api';
import { FlowsApi } from './apis/flows-api';
import { NotificationsApi } from './apis/notifications-api';
import { OrganizationsApi } from './apis/organizations-api';
import { ProjectsApi } from './apis/projects-api';
Expand All @@ -43,6 +44,7 @@ export class ZeplinApi extends BaseAPI {
components: ComponentsApi;
connectedComponents: ConnectedComponentsApi;
designTokens: DesignTokensApi;
flows: FlowsApi;
notifications: NotificationsApi;
organizations: OrganizationsApi;
projects: ProjectsApi;
Expand All @@ -63,6 +65,7 @@ export class ZeplinApi extends BaseAPI {
this.components = new ComponentsApi(configuration, basePath, axios);
this.connectedComponents = new ConnectedComponentsApi(configuration, basePath, axios);
this.designTokens = new DesignTokensApi(configuration, basePath, axios);
this.flows = new FlowsApi(configuration, basePath, axios);
this.notifications = new NotificationsApi(configuration, basePath, axios);
this.organizations = new OrganizationsApi(configuration, basePath, axios);
this.projects = new ProjectsApi(configuration, basePath, axios);
Expand Down
737 changes: 737 additions & 0 deletions src/apis/flows-api.ts

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ export {
EnabledRemPreferences,
EntityReference,
ErrorResponse,
FlowBoard,
FlowBoardConnection,
FlowBoardConnectionPosition,
FlowBoardConnector,
FlowBoardConnectorLabel,
FlowBoardGroup,
FlowBoardNode,
FlowBoardPosition,
FlowBoardScreenNode,
FlowBoardTextNode,
FlowBoardVariantGroupNode,
Gradient,
Grid,
HorizontalGrid,
Expand Down Expand Up @@ -96,6 +107,10 @@ export {
ProjectComponentEventContext,
ProjectComponentUpdatedEvent,
ProjectComponentVersionCreatedEvent,
ProjectFlowBoardBuiltEvent,
ProjectFlowBoardBuiltEventResource,
ProjectFlowBoardEvent,
ProjectFlowBoardEventContext,
ProjectMember,
ProjectMemberEvent,
ProjectMemberEventContext,
Expand Down
51 changes: 51 additions & 0 deletions src/models/flow-board-connection-position.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/* tslint:disable */
/* eslint-disable */
/**
* Zeplin API
* Access your resources in Zeplin
*
* Contact: support@zeplin.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/




export const transformFlowBoardConnectionPositionToJSON = function (value: FlowBoardConnectionPosition): any {
return {
dot_index: value.dotIndex,
side: value.side
}
}

export const transformJSONToFlowBoardConnectionPosition = function (value: any): FlowBoardConnectionPosition {
return {
dotIndex: value.dot_index,
side: value.side
}
}

/**
*
* @export
* @interface FlowBoardConnectionPosition
*/
export interface FlowBoardConnectionPosition {
/**
*
* @type {number}
* @memberof FlowBoardConnectionPosition
*/
dotIndex: number;
/**
*
* @type {string}
* @memberof FlowBoardConnectionPosition
*/
side: 'left' | 'right' | 'bottom' | 'top';
}


77 changes: 77 additions & 0 deletions src/models/flow-board-connection.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* tslint:disable */
/* eslint-disable */
/**
* Zeplin API
* Access your resources in Zeplin
*
* Contact: support@zeplin.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


import {
EntityReference,
transformEntityReferenceToJSON,
transformJSONToEntityReference
} from './entity-reference';
import {
FlowBoardConnectionPosition,
transformFlowBoardConnectionPositionToJSON,
transformJSONToFlowBoardConnectionPosition
} from './flow-board-connection-position';


export const transformFlowBoardConnectionToJSON = function (value: FlowBoardConnection): any {
return {
node: transformEntityReferenceToJSON(value.node),
style: value.style,
layer_source_id: value.layerSourceId,
connection_position: value.connectionPosition && transformFlowBoardConnectionPositionToJSON(value.connectionPosition)
}
}

export const transformJSONToFlowBoardConnection = function (value: any): FlowBoardConnection {
return {
node: transformJSONToEntityReference(value.node),
style: value.style,
layerSourceId: value.layer_source_id,
connectionPosition: value.connection_position && transformJSONToFlowBoardConnectionPosition(value.connection_position)
}
}

/**
*
* @export
* @interface FlowBoardConnection
*/
export interface FlowBoardConnection {
/**
*
* @type {EntityReference}
* @memberof FlowBoardConnection
*/
node: EntityReference;
/**
*
* @type {string}
* @memberof FlowBoardConnection
*/
style?: 'arrow' | 'point';
/**
* Layer\'s identifier in the design tool
* @type {string}
* @memberof FlowBoardConnection
*/
layerSourceId?: string;
/**
*
* @type {FlowBoardConnectionPosition}
* @memberof FlowBoardConnection
*/
connectionPosition?: FlowBoardConnectionPosition;
}


59 changes: 59 additions & 0 deletions src/models/flow-board-connector-label.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* tslint:disable */
/* eslint-disable */
/**
* Zeplin API
* Access your resources in Zeplin
*
* Contact: support@zeplin.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/




export const transformFlowBoardConnectorLabelToJSON = function (value: FlowBoardConnectorLabel): any {
return {
text: value.text,
position: value.position,
width: value.width
}
}

export const transformJSONToFlowBoardConnectorLabel = function (value: any): FlowBoardConnectorLabel {
return {
text: value.text,
position: value.position,
width: value.width
}
}

/**
*
* @export
* @interface FlowBoardConnectorLabel
*/
export interface FlowBoardConnectorLabel {
/**
* Text for the connector label
* @type {string}
* @memberof FlowBoardConnectorLabel
*/
text: string;
/**
* Percentage based position of the connector label
* @type {number}
* @memberof FlowBoardConnectorLabel
*/
position?: number;
/**
* Width of the connector label
* @type {number}
* @memberof FlowBoardConnectorLabel
*/
width?: number;
}


93 changes: 93 additions & 0 deletions src/models/flow-board-connector.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
* Zeplin API
* Access your resources in Zeplin
*
* Contact: support@zeplin.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


import {
FlowBoardConnection,
transformFlowBoardConnectionToJSON,
transformJSONToFlowBoardConnection
} from './flow-board-connection';
import {
FlowBoardConnectorLabel,
transformFlowBoardConnectorLabelToJSON,
transformJSONToFlowBoardConnectorLabel
} from './flow-board-connector-label';


export const transformFlowBoardConnectorToJSON = function (value: FlowBoardConnector): any {
return {
id: value.id,
type: value.type,
start: transformFlowBoardConnectionToJSON(value.start),
end: transformFlowBoardConnectionToJSON(value.end),
label: value.label && transformFlowBoardConnectorLabelToJSON(value.label),
color: value.color
}
}

export const transformJSONToFlowBoardConnector = function (value: any): FlowBoardConnector {
return {
id: value.id,
type: value.type,
start: transformJSONToFlowBoardConnection(value.start),
end: transformJSONToFlowBoardConnection(value.end),
label: value.label && transformJSONToFlowBoardConnectorLabel(value.label),
color: value.color
}
}

/**
*
* @export
* @interface FlowBoardConnector
*/
export interface FlowBoardConnector {
/**
* The unique id of the connector
* @type {string}
* @memberof FlowBoardConnector
*/
id: string;
/**
*
* @type {string}
* @memberof FlowBoardConnector
*/
type: 'SolidLine' | 'DashedLine';
/**
*
* @type {FlowBoardConnection}
* @memberof FlowBoardConnector
*/
start: FlowBoardConnection;
/**
*
* @type {FlowBoardConnection}
* @memberof FlowBoardConnector
*/
end: FlowBoardConnection;
/**
*
* @type {FlowBoardConnectorLabel}
* @memberof FlowBoardConnector
*/
label?: FlowBoardConnectorLabel;
/**
* Color for the connector
* @type {string}
* @memberof FlowBoardConnector
*/
color?: 'yellow' | 'orange' | 'peach' | 'green' | 'turquoise';
}


Loading

0 comments on commit 7548558

Please sign in to comment.