This repository was archived by the owner on Dec 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtypes.ts
99 lines (86 loc) · 1.85 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
export interface IUploadResult {
upload_id: string;
message: string;
}
export interface ISaveItemRequest {
categories: string[];
description: string;
id: string;
is_adult: boolean;
is_editorial: boolean;
is_illustration: boolean;
keywords: string[];
releases: any[];
submitter_note: string;
}
export interface ISaveItemsResponse {
success: number;
saved: string[];
notSaved: any[];
}
export interface ISubmitItemsRequest {
media: ISubmitMedia[];
keywords_not_to_spellcheck: string[];
skip_spellcheck: string;
}
export interface ISubmitMedia {
media_type: string;
media_id: string;
}
// Generated by https://quicktype.io
export interface ISubmitItemsResponse {
data: ISubmitItemsResponse;
}
export interface ISubmitItemsResponse {
item_errors: any[];
success: ISubmitItemResult[];
first_submit_check: IFirstSubmitCheck;
}
export interface IFirstSubmitCheck {
code: string;
message: string;
original_code: string;
}
export interface ISubmitItemResult {
upload_id: string;
media_id: number;
media_type: string;
}
export interface IImagesToSubmitResponse {
data: IImageInfo[];
total_count: number;
errors: IImageError[];
}
export interface IImageInfo {
categories: any[];
created: string;
dependent_ids: any[];
description: string;
filename: string;
height: number;
id: string;
is_adult: boolean;
is_editorial: boolean;
is_illustration: boolean;
keywords: string[];
media_type: string;
original_filename: string;
releases: any[];
updated: string;
uploaded_filename: string;
watermark_placement: number;
width: number;
workflow_status: string;
thumbnail_url: string;
thumbnail_url_480: string;
contributor_id: number;
}
export interface IImageError {
id: string;
message: IImageMessage;
}
export interface IImageMessage {
filename: string;
code: string;
message: string;
}