|
| 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 | + 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 | + |
0 commit comments