Skip to content

Commit 25d0d41

Browse files
committed
v1.18.0
1 parent 9a21b1b commit 25d0d41

10 files changed

+1029
-0
lines changed

src/apis/screens-api.ts

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

src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,13 @@ export {
176176
ResourceSource,
177177
ResourceStyleguideSource,
178178
Screen,
179+
ScreenAnnotation,
180+
ScreenAnnotationColor,
181+
ScreenAnnotationCreateBody,
182+
ScreenAnnotationNoteType,
183+
ScreenAnnotationNoteTypeEnum,
184+
ScreenAnnotationPosition,
185+
ScreenAnnotationUpdateBody,
179186
ScreenNote,
180187
ScreenNoteColor,
181188
ScreenNoteColorNameEnum,

src/models/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ export * from './resource-project-source';
162162
export * from './resource-source';
163163
export * from './resource-styleguide-source';
164164
export * from './screen';
165+
export * from './screen-annotation';
166+
export * from './screen-annotation-color';
167+
export * from './screen-annotation-create-body';
168+
export * from './screen-annotation-note-type';
169+
export * from './screen-annotation-note-type-enum';
170+
export * from './screen-annotation-position';
171+
export * from './screen-annotation-update-body';
165172
export * from './screen-note';
166173
export * from './screen-note-color';
167174
export * from './screen-note-color-name-enum';
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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 transformScreenAnnotationColorToJSON = function (value: ScreenAnnotationColor): any {
18+
return {
19+
name: value.name,
20+
r: value.r,
21+
g: value.g,
22+
b: value.b,
23+
a: value.a
24+
}
25+
}
26+
27+
export const transformJSONToScreenAnnotationColor = function (value: any): ScreenAnnotationColor {
28+
return {
29+
name: value.name,
30+
r: value.r,
31+
g: value.g,
32+
b: value.b,
33+
a: value.a
34+
}
35+
}
36+
37+
/**
38+
*
39+
* @export
40+
* @interface ScreenAnnotationColor
41+
*/
42+
export interface ScreenAnnotationColor {
43+
/**
44+
* Name of the color
45+
* @type {string}
46+
* @memberof ScreenAnnotationColor
47+
*/
48+
name?: string;
49+
/**
50+
* Red component of the color
51+
* @type {number}
52+
* @memberof ScreenAnnotationColor
53+
*/
54+
r: number;
55+
/**
56+
* Green component of the color
57+
* @type {number}
58+
* @memberof ScreenAnnotationColor
59+
*/
60+
g: number;
61+
/**
62+
* Blue component of the color
63+
* @type {number}
64+
* @memberof ScreenAnnotationColor
65+
*/
66+
b: number;
67+
/**
68+
* Alpha component of the color
69+
* @type {number}
70+
* @memberof ScreenAnnotationColor
71+
*/
72+
a: number;
73+
}
74+
75+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
ScreenAnnotationPosition,
17+
transformScreenAnnotationPositionToJSON,
18+
transformJSONToScreenAnnotationPosition
19+
} from './screen-annotation-position';
20+
21+
22+
export const transformScreenAnnotationCreateBodyToJSON = function (value: ScreenAnnotationCreateBody): any {
23+
return {
24+
content: value.content,
25+
position: transformScreenAnnotationPositionToJSON(value.position),
26+
type: value.type
27+
}
28+
}
29+
30+
export const transformJSONToScreenAnnotationCreateBody = function (value: any): ScreenAnnotationCreateBody {
31+
return {
32+
content: value.content,
33+
position: transformJSONToScreenAnnotationPosition(value.position),
34+
type: value.type
35+
}
36+
}
37+
38+
/**
39+
*
40+
* @export
41+
* @interface ScreenAnnotationCreateBody
42+
*/
43+
export interface ScreenAnnotationCreateBody {
44+
/**
45+
* Content of the annotation
46+
* @type {string}
47+
* @memberof ScreenAnnotationCreateBody
48+
*/
49+
content: string;
50+
/**
51+
*
52+
* @type {ScreenAnnotationPosition}
53+
* @memberof ScreenAnnotationCreateBody
54+
*/
55+
position: ScreenAnnotationPosition;
56+
/**
57+
* The unique id of the annotation type
58+
* @type {string}
59+
* @memberof ScreenAnnotationCreateBody
60+
*/
61+
type?: string;
62+
}
63+
64+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 transformScreenAnnotationNoteTypeEnumToJSON = function (value: ScreenAnnotationNoteTypeEnum): any {
18+
return value;
19+
}
20+
21+
export const transformJSONToScreenAnnotationNoteTypeEnum = function (value: any): ScreenAnnotationNoteTypeEnum {
22+
return value;
23+
}
24+
25+
/**
26+
* Type of the annotation note
27+
* @export
28+
* @enum {string}
29+
*/
30+
export enum ScreenAnnotationNoteTypeEnum {
31+
BEHAVIOR = 'Behavior',
32+
REQUIREMENT = 'Requirement',
33+
ANIMATION = 'Animation',
34+
ACCESSIBILITY = 'Accessibility',
35+
API = 'API',
36+
TRACKING = 'Tracking'
37+
}
38+
39+
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
ScreenAnnotationColor,
17+
transformScreenAnnotationColorToJSON,
18+
transformJSONToScreenAnnotationColor
19+
} from './screen-annotation-color';
20+
import {
21+
ScreenAnnotationNoteTypeEnum,
22+
transformScreenAnnotationNoteTypeEnumToJSON,
23+
transformJSONToScreenAnnotationNoteTypeEnum
24+
} from './screen-annotation-note-type-enum';
25+
26+
27+
export const transformScreenAnnotationNoteTypeToJSON = function (value: ScreenAnnotationNoteType): any {
28+
return {
29+
id: value.id,
30+
name: transformScreenAnnotationNoteTypeEnumToJSON(value.name),
31+
color: transformScreenAnnotationColorToJSON(value.color)
32+
}
33+
}
34+
35+
export const transformJSONToScreenAnnotationNoteType = function (value: any): ScreenAnnotationNoteType {
36+
return {
37+
id: value.id,
38+
name: transformJSONToScreenAnnotationNoteTypeEnum(value.name),
39+
color: transformJSONToScreenAnnotationColor(value.color)
40+
}
41+
}
42+
43+
/**
44+
*
45+
* @export
46+
* @interface ScreenAnnotationNoteType
47+
*/
48+
export interface ScreenAnnotationNoteType {
49+
/**
50+
* The unique id of the annotation
51+
* @type {string}
52+
* @memberof ScreenAnnotationNoteType
53+
*/
54+
id: string;
55+
/**
56+
*
57+
* @type {ScreenAnnotationNoteTypeEnum}
58+
* @memberof ScreenAnnotationNoteType
59+
*/
60+
name: ScreenAnnotationNoteTypeEnum;
61+
/**
62+
*
63+
* @type {ScreenAnnotationColor}
64+
* @memberof ScreenAnnotationNoteType
65+
*/
66+
color: ScreenAnnotationColor;
67+
}
68+
69+
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 transformScreenAnnotationPositionToJSON = function (value: ScreenAnnotationPosition): any {
18+
return {
19+
x: value.x,
20+
y: value.y
21+
}
22+
}
23+
24+
export const transformJSONToScreenAnnotationPosition = function (value: any): ScreenAnnotationPosition {
25+
return {
26+
x: value.x,
27+
y: value.y
28+
}
29+
}
30+
31+
/**
32+
* Position of the annotation with respect to top left corner. Values are normalized in [0, 1]
33+
* @export
34+
* @interface ScreenAnnotationPosition
35+
*/
36+
export interface ScreenAnnotationPosition {
37+
/**
38+
*
39+
* @type {number}
40+
* @memberof ScreenAnnotationPosition
41+
*/
42+
x: number;
43+
/**
44+
*
45+
* @type {number}
46+
* @memberof ScreenAnnotationPosition
47+
*/
48+
y: number;
49+
}
50+
51+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
ScreenAnnotationPosition,
17+
transformScreenAnnotationPositionToJSON,
18+
transformJSONToScreenAnnotationPosition
19+
} from './screen-annotation-position';
20+
21+
22+
export const transformScreenAnnotationUpdateBodyToJSON = function (value: ScreenAnnotationUpdateBody): any {
23+
return {
24+
content: value.content,
25+
position: value.position && transformScreenAnnotationPositionToJSON(value.position),
26+
type: value.type
27+
}
28+
}
29+
30+
export const transformJSONToScreenAnnotationUpdateBody = function (value: any): ScreenAnnotationUpdateBody {
31+
return {
32+
content: value.content,
33+
position: value.position && transformJSONToScreenAnnotationPosition(value.position),
34+
type: value.type
35+
}
36+
}
37+
38+
/**
39+
*
40+
* @export
41+
* @interface ScreenAnnotationUpdateBody
42+
*/
43+
export interface ScreenAnnotationUpdateBody {
44+
/**
45+
* Content of the annotation
46+
* @type {string}
47+
* @memberof ScreenAnnotationUpdateBody
48+
*/
49+
content?: string;
50+
/**
51+
*
52+
* @type {ScreenAnnotationPosition}
53+
* @memberof ScreenAnnotationUpdateBody
54+
*/
55+
position?: ScreenAnnotationPosition;
56+
/**
57+
* The unique id of the annotation type
58+
* @type {string}
59+
* @memberof ScreenAnnotationUpdateBody
60+
*/
61+
type?: string;
62+
}
63+
64+

0 commit comments

Comments
 (0)