|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +/** |
| 4 | + * Zeplin API |
| 5 | + * Access your resources in Zeplin |
| 6 | + * |
| 7 | + |
| 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