@wix/media 1.0.59 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/context.d.ts +4 -0
- package/build/cjs/context.js +31 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +2 -0
- package/build/cjs/index.js +3 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -0
- package/build/cjs/index.typings.js +3 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -0
- package/build/cjs/meta.js +3 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.d.ts +8 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.js +77 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.context.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.d.ts +16 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.js +245 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.http.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.meta.d.ts +24 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.meta.js +142 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.meta.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.public.d.ts +26 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.public.js +49 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.public.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.types.d.ts +221 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.types.js +22 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.types.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.universal.d.ts +315 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.universal.js +407 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-category.universal.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.d.ts +13 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.js +137 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.context.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.d.ts +29 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.js +446 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.http.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.meta.d.ts +33 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.meta.js +237 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.meta.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.public.d.ts +59 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.public.js +81 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.public.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.types.d.ts +949 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.types.js +27 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.types.js.map +1 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.universal.d.ts +907 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.universal.js +748 -0
- package/build/cjs/src/media-enterprise-public-media-v1-enterprise-item.universal.js.map +1 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.context.d.ts +18 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.context.js +197 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.context.js.map +1 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.d.ts +16 -17
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.js +6 -4
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.d.ts +2 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +6 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.d.ts +31 -24
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +6 -30
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.context.d.ts +11 -0
- package/build/cjs/src/media-site-media-v1-folder.context.js +113 -0
- package/build/cjs/src/media-site-media-v1-folder.context.js.map +1 -0
- package/build/cjs/src/media-site-media-v1-folder.http.d.ts +9 -10
- package/build/cjs/src/media-site-media-v1-folder.http.js +6 -4
- package/build/cjs/src/media-site-media-v1-folder.http.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.public.d.ts +2 -1
- package/build/cjs/src/media-site-media-v1-folder.public.js +5 -1
- package/build/cjs/src/media-site-media-v1-folder.public.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.universal.d.ts +30 -24
- package/build/cjs/src/media-site-media-v1-folder.universal.js +5 -23
- package/build/cjs/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/build/es/context.d.ts +4 -0
- package/build/es/context.js +5 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +2 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -1
- package/build/es/index.typings.d.ts +2 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -1
- package/build/es/meta.d.ts +2 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -1
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.d.ts +8 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.js +68 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.context.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.d.ts +16 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.js +236 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.http.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.meta.d.ts +24 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.meta.js +110 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.meta.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.public.d.ts +26 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.public.js +35 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.public.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.types.d.ts +221 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.types.js +19 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.types.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.universal.d.ts +315 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.universal.js +375 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-category.universal.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.d.ts +13 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.js +123 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.context.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.d.ts +29 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.js +432 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.http.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.meta.d.ts +33 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.meta.js +200 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.meta.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.public.d.ts +59 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.public.js +60 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.public.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.types.d.ts +949 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.types.js +24 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.types.js.map +1 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.universal.d.ts +907 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.universal.js +711 -0
- package/build/es/src/media-enterprise-public-media-v1-enterprise-item.universal.js.map +1 -0
- package/build/es/src/media-site-media-v1-file-descriptor.context.d.ts +18 -0
- package/build/es/src/media-site-media-v1-file-descriptor.context.js +178 -0
- package/build/es/src/media-site-media-v1-file-descriptor.context.js.map +1 -0
- package/build/es/src/media-site-media-v1-file-descriptor.http.d.ts +16 -17
- package/build/es/src/media-site-media-v1-file-descriptor.http.js +6 -4
- package/build/es/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.public.d.ts +2 -1
- package/build/es/src/media-site-media-v1-file-descriptor.public.js +1 -0
- package/build/es/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.universal.d.ts +31 -24
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js +5 -29
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.context.d.ts +11 -0
- package/build/es/src/media-site-media-v1-folder.context.js +101 -0
- package/build/es/src/media-site-media-v1-folder.context.js.map +1 -0
- package/build/es/src/media-site-media-v1-folder.http.d.ts +9 -10
- package/build/es/src/media-site-media-v1-folder.http.js +6 -4
- package/build/es/src/media-site-media-v1-folder.http.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.public.d.ts +2 -1
- package/build/es/src/media-site-media-v1-folder.public.js +1 -0
- package/build/es/src/media-site-media-v1-folder.public.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.universal.d.ts +30 -24
- package/build/es/src/media-site-media-v1-folder.universal.js +4 -22
- package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +7 -5
|
@@ -0,0 +1,949 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Duration for video fits better if there will be type specific media item.. however, is it ok to implement
|
|
3
|
+
* an additional one of field called details?
|
|
4
|
+
*/
|
|
5
|
+
export interface EnterpriseMediaItem {
|
|
6
|
+
/**
|
|
7
|
+
* Id of the item in public media
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Media type of the item
|
|
13
|
+
* @readonly
|
|
14
|
+
*/
|
|
15
|
+
mediaType?: MediaType;
|
|
16
|
+
/**
|
|
17
|
+
* Size of the uploaded file in bytes.
|
|
18
|
+
* @readonly
|
|
19
|
+
*/
|
|
20
|
+
sizeInBytes?: string | null;
|
|
21
|
+
/** The item title, part of searchable fields */
|
|
22
|
+
title?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The aspect ratio of the item
|
|
25
|
+
* An object containing urls for different views of the item
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
assets?: ItemAssets;
|
|
29
|
+
/** Tags describing the image, part of searchable fields */
|
|
30
|
+
displayTags?: string[] | null;
|
|
31
|
+
/** Tags for internal client use, part of searchable fields */
|
|
32
|
+
internalTags?: string[] | null;
|
|
33
|
+
/**
|
|
34
|
+
* Tags for filtering items in the search
|
|
35
|
+
* @readonly
|
|
36
|
+
*/
|
|
37
|
+
systemTags?: string[] | null;
|
|
38
|
+
/**
|
|
39
|
+
* Category ids this item belongs to
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
parentCategoryIds?: string[] | null;
|
|
43
|
+
/** Status of the item */
|
|
44
|
+
publishStatus?: PublishStatus;
|
|
45
|
+
/**
|
|
46
|
+
* Date and time the item was created.
|
|
47
|
+
* @readonly
|
|
48
|
+
*/
|
|
49
|
+
createdDate?: Date;
|
|
50
|
+
/**
|
|
51
|
+
* Date and time the item was updated.
|
|
52
|
+
* @readonly
|
|
53
|
+
*/
|
|
54
|
+
updatedDate?: Date;
|
|
55
|
+
/**
|
|
56
|
+
* An internal id used with different wix media systems
|
|
57
|
+
* @readonly
|
|
58
|
+
*/
|
|
59
|
+
internalId?: string | null;
|
|
60
|
+
}
|
|
61
|
+
export declare enum MediaType {
|
|
62
|
+
MIXED = "MIXED",
|
|
63
|
+
IMAGE = "IMAGE",
|
|
64
|
+
VIDEO = "VIDEO",
|
|
65
|
+
AUDIO = "AUDIO",
|
|
66
|
+
DOCUMENT = "DOCUMENT",
|
|
67
|
+
VECTOR = "VECTOR",
|
|
68
|
+
ARCHIVE = "ARCHIVE",
|
|
69
|
+
MODEL3D = "MODEL3D"
|
|
70
|
+
}
|
|
71
|
+
export interface ItemAssets extends ItemAssetsAssetsOneOf {
|
|
72
|
+
/** Assets for image media type */
|
|
73
|
+
image?: Image;
|
|
74
|
+
/** Assets for video media type */
|
|
75
|
+
video?: VideoV2;
|
|
76
|
+
/** Assets for vector media type */
|
|
77
|
+
vector?: Image;
|
|
78
|
+
/** Assets for audio media type */
|
|
79
|
+
audio?: Audio;
|
|
80
|
+
/** Assets for document media type */
|
|
81
|
+
document?: Document;
|
|
82
|
+
/** Information about the archive. */
|
|
83
|
+
archive?: Archive;
|
|
84
|
+
/** Information about the 3D Model. */
|
|
85
|
+
model3d?: Model3D;
|
|
86
|
+
}
|
|
87
|
+
/** @oneof */
|
|
88
|
+
export interface ItemAssetsAssetsOneOf {
|
|
89
|
+
/** Assets for image media type */
|
|
90
|
+
image?: Image;
|
|
91
|
+
/** Assets for video media type */
|
|
92
|
+
video?: VideoV2;
|
|
93
|
+
/** Assets for vector media type */
|
|
94
|
+
vector?: Image;
|
|
95
|
+
/** Assets for audio media type */
|
|
96
|
+
audio?: Audio;
|
|
97
|
+
/** Assets for document media type */
|
|
98
|
+
document?: Document;
|
|
99
|
+
/** Information about the archive. */
|
|
100
|
+
archive?: Archive;
|
|
101
|
+
/** Information about the 3D Model. */
|
|
102
|
+
model3d?: Model3D;
|
|
103
|
+
}
|
|
104
|
+
export interface Image {
|
|
105
|
+
/** WixMedia image ID. */
|
|
106
|
+
id?: string;
|
|
107
|
+
/** Image URL. */
|
|
108
|
+
url?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Original image height.
|
|
111
|
+
* @readonly
|
|
112
|
+
*/
|
|
113
|
+
height?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Original image width.
|
|
116
|
+
* @readonly
|
|
117
|
+
*/
|
|
118
|
+
width?: number;
|
|
119
|
+
/** Image alt text. */
|
|
120
|
+
altText?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Image filename.
|
|
123
|
+
* @readonly
|
|
124
|
+
*/
|
|
125
|
+
filename?: string | null;
|
|
126
|
+
}
|
|
127
|
+
export interface VideoV2 {
|
|
128
|
+
/** WixMedia ID. */
|
|
129
|
+
id?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Available resolutions for the video, starting with the optimal resolution.
|
|
132
|
+
* @readonly
|
|
133
|
+
*/
|
|
134
|
+
resolutions?: VideoResolution[];
|
|
135
|
+
/**
|
|
136
|
+
* Video filename.
|
|
137
|
+
* @readonly
|
|
138
|
+
*/
|
|
139
|
+
filename?: string | null;
|
|
140
|
+
}
|
|
141
|
+
export interface VideoResolution {
|
|
142
|
+
/** Video URL. */
|
|
143
|
+
url?: string;
|
|
144
|
+
/** Video height. */
|
|
145
|
+
height?: number;
|
|
146
|
+
/** Video width. */
|
|
147
|
+
width?: number;
|
|
148
|
+
/**
|
|
149
|
+
* Video format
|
|
150
|
+
* Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
|
|
151
|
+
* '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm' ]
|
|
152
|
+
*/
|
|
153
|
+
format?: string;
|
|
154
|
+
}
|
|
155
|
+
export interface Audio {
|
|
156
|
+
/** WixMedia ID. */
|
|
157
|
+
id?: string;
|
|
158
|
+
/** Audio URL. */
|
|
159
|
+
url?: string;
|
|
160
|
+
/**
|
|
161
|
+
* Audio filename.
|
|
162
|
+
* @readonly
|
|
163
|
+
*/
|
|
164
|
+
filename?: string | null;
|
|
165
|
+
}
|
|
166
|
+
export interface Document {
|
|
167
|
+
/** WixMedia ID. */
|
|
168
|
+
id?: string;
|
|
169
|
+
/** Document URL. */
|
|
170
|
+
url?: string;
|
|
171
|
+
/** Document filename. */
|
|
172
|
+
filename?: string | null;
|
|
173
|
+
}
|
|
174
|
+
export interface Archive {
|
|
175
|
+
/** WixMedia ID. */
|
|
176
|
+
id?: string;
|
|
177
|
+
/** Archive URL. */
|
|
178
|
+
url?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Archive URL expiration date (when relevant).
|
|
181
|
+
* @readonly
|
|
182
|
+
*/
|
|
183
|
+
urlExpirationDate?: Date;
|
|
184
|
+
/** Archive size in bytes. */
|
|
185
|
+
sizeInBytes?: string | null;
|
|
186
|
+
/** Archive filename. */
|
|
187
|
+
filename?: string | null;
|
|
188
|
+
}
|
|
189
|
+
export interface Model3D {
|
|
190
|
+
/** WixMedia 3D ID. */
|
|
191
|
+
id?: string;
|
|
192
|
+
/** 3D URL. */
|
|
193
|
+
url?: string;
|
|
194
|
+
/** 3D thumbnail Image */
|
|
195
|
+
thumbnail?: Image;
|
|
196
|
+
/** 3D alt text. */
|
|
197
|
+
altText?: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* 3D URL expiration date (when relevant).
|
|
200
|
+
* @readonly
|
|
201
|
+
*/
|
|
202
|
+
urlExpirationDate?: Date;
|
|
203
|
+
/**
|
|
204
|
+
* 3D filename.
|
|
205
|
+
* @readonly
|
|
206
|
+
*/
|
|
207
|
+
filename?: string | null;
|
|
208
|
+
/**
|
|
209
|
+
* 3D size in bytes.
|
|
210
|
+
* @readonly
|
|
211
|
+
*/
|
|
212
|
+
sizeInBytes?: string | null;
|
|
213
|
+
}
|
|
214
|
+
export declare enum PublishStatus {
|
|
215
|
+
UNDEFINED = "UNDEFINED",
|
|
216
|
+
UNPUBLISHED = "UNPUBLISHED",
|
|
217
|
+
PUBLISHED = "PUBLISHED",
|
|
218
|
+
WIX_ONLY = "WIX_ONLY"
|
|
219
|
+
}
|
|
220
|
+
export interface ItemCategoriesChanged {
|
|
221
|
+
/** A list of the current item categories */
|
|
222
|
+
itemCategoryIds?: string[] | null;
|
|
223
|
+
/** A list of the categories that where unlinked from the item */
|
|
224
|
+
unlinkedCategoryIds?: string[] | null;
|
|
225
|
+
/** A list of the categories that where linked to the item */
|
|
226
|
+
linkedCategoryIds?: string[] | null;
|
|
227
|
+
}
|
|
228
|
+
export interface ItemUploadCallbackRequest {
|
|
229
|
+
/** The item id of the created item */
|
|
230
|
+
itemId?: string;
|
|
231
|
+
/** The callback passed to the upload endpoint */
|
|
232
|
+
callbackToken?: string;
|
|
233
|
+
}
|
|
234
|
+
export interface ItemUploadCallbackResponse {
|
|
235
|
+
}
|
|
236
|
+
export interface GenerateFileUploadUrlRequest {
|
|
237
|
+
/** The uploaded original file name including the extension */
|
|
238
|
+
fileName?: string;
|
|
239
|
+
/** The file mime-type - will be used to identify the type of media */
|
|
240
|
+
contentType?: string;
|
|
241
|
+
/** The file size in bytes */
|
|
242
|
+
sizeInBytes?: number;
|
|
243
|
+
/**
|
|
244
|
+
* An optional list of categories to link the created item to
|
|
245
|
+
* The item will be linked to the account category automatically
|
|
246
|
+
*/
|
|
247
|
+
categoryIds?: string[] | null;
|
|
248
|
+
}
|
|
249
|
+
export interface GenerateFileUploadUrlResponse {
|
|
250
|
+
/** The upload url to upload the file to */
|
|
251
|
+
uploadUrl?: string;
|
|
252
|
+
}
|
|
253
|
+
export interface ImportFileRequest {
|
|
254
|
+
/** The url to the file to be imported */
|
|
255
|
+
url: string;
|
|
256
|
+
/** The uploaded original file name including the extension - will be used as the initial display name */
|
|
257
|
+
fileName?: string | null;
|
|
258
|
+
/** The file mime-type - will be used to identify the type of media */
|
|
259
|
+
contentType?: string | null;
|
|
260
|
+
/** The file size in bytes */
|
|
261
|
+
sizeInBytes?: number | null;
|
|
262
|
+
/**
|
|
263
|
+
* An optional list of categories to link the created item to
|
|
264
|
+
* The item will be linked to the account category automatically
|
|
265
|
+
*/
|
|
266
|
+
categoryIds?: string[] | null;
|
|
267
|
+
/** The media type of the uploaded file */
|
|
268
|
+
mediaType?: MediaType;
|
|
269
|
+
/**
|
|
270
|
+
* A unique identifier of the client that imported the file
|
|
271
|
+
* This information will exist in the system_tags field prefixed by '_external_uploader:{uploader_system_tag}'
|
|
272
|
+
*/
|
|
273
|
+
uploaderSystemTag?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* An additional container for external information
|
|
276
|
+
* mostly used to pass identifying information of related entities in external services
|
|
277
|
+
* This information will exist in the system_tags field prefixed by '_external_uploader_info:{uploader_info_system_tag}'
|
|
278
|
+
*/
|
|
279
|
+
uploaderInfoSystemTag?: string | null;
|
|
280
|
+
}
|
|
281
|
+
export interface ImportFileResponse {
|
|
282
|
+
/**
|
|
283
|
+
* Partial item - without the assets
|
|
284
|
+
* At this stage of implementation only the 'internal_id' will be filled
|
|
285
|
+
* all other required values will be fake values
|
|
286
|
+
*/
|
|
287
|
+
item?: EnterpriseMediaItem;
|
|
288
|
+
}
|
|
289
|
+
export interface SearchItemsRequest {
|
|
290
|
+
/** Items search query */
|
|
291
|
+
query?: Search;
|
|
292
|
+
}
|
|
293
|
+
export interface Search extends SearchPagingMethodOneOf {
|
|
294
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
295
|
+
paging?: Paging;
|
|
296
|
+
/** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
|
|
297
|
+
filter?: Record<string, any> | null;
|
|
298
|
+
/** free text to match in searchable fields */
|
|
299
|
+
search?: SearchDetails;
|
|
300
|
+
}
|
|
301
|
+
/** @oneof */
|
|
302
|
+
export interface SearchPagingMethodOneOf {
|
|
303
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
304
|
+
paging?: Paging;
|
|
305
|
+
}
|
|
306
|
+
export interface SearchDetails {
|
|
307
|
+
/** search term or expression */
|
|
308
|
+
expression?: string | null;
|
|
309
|
+
}
|
|
310
|
+
export interface Paging {
|
|
311
|
+
/** Number of items to load. */
|
|
312
|
+
limit?: number | null;
|
|
313
|
+
/** Number of items to skip in the current sort order. */
|
|
314
|
+
offset?: number | null;
|
|
315
|
+
}
|
|
316
|
+
export interface SearchItemsResponse {
|
|
317
|
+
/** A list of items matching the request */
|
|
318
|
+
items?: EnterpriseMediaItem[];
|
|
319
|
+
/** Information about the search results. */
|
|
320
|
+
pagingMetadata?: PagingMetadataV2;
|
|
321
|
+
}
|
|
322
|
+
export interface PagingMetadataV2 {
|
|
323
|
+
/** Number of items returned in the response. */
|
|
324
|
+
count?: number | null;
|
|
325
|
+
/** Offset that was requested. */
|
|
326
|
+
offset?: number | null;
|
|
327
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
328
|
+
total?: number | null;
|
|
329
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
330
|
+
cursors?: Cursors;
|
|
331
|
+
}
|
|
332
|
+
export interface Cursors {
|
|
333
|
+
/** Cursor pointing to next page in the list of results. */
|
|
334
|
+
next?: string | null;
|
|
335
|
+
}
|
|
336
|
+
export interface QueryItemsRequest {
|
|
337
|
+
/** Items query */
|
|
338
|
+
query?: QueryV2;
|
|
339
|
+
}
|
|
340
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
341
|
+
/** Paging options to limit and skip the number of items. */
|
|
342
|
+
paging?: Paging;
|
|
343
|
+
/**
|
|
344
|
+
* Filter object in the following format:
|
|
345
|
+
* `"filter" : {
|
|
346
|
+
* "fieldName1": "value1",
|
|
347
|
+
* "fieldName2":{"$operator":"value2"}
|
|
348
|
+
* }`
|
|
349
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
350
|
+
*/
|
|
351
|
+
filter?: Record<string, any> | null;
|
|
352
|
+
/**
|
|
353
|
+
* Sort object in the following format:
|
|
354
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
355
|
+
*/
|
|
356
|
+
sort?: Sorting[];
|
|
357
|
+
}
|
|
358
|
+
/** @oneof */
|
|
359
|
+
export interface QueryV2PagingMethodOneOf {
|
|
360
|
+
/** Paging options to limit and skip the number of items. */
|
|
361
|
+
paging?: Paging;
|
|
362
|
+
}
|
|
363
|
+
export interface Sorting {
|
|
364
|
+
/** Name of the field to sort by. */
|
|
365
|
+
fieldName?: string;
|
|
366
|
+
/** Sort order. */
|
|
367
|
+
order?: SortOrder;
|
|
368
|
+
}
|
|
369
|
+
export declare enum SortOrder {
|
|
370
|
+
ASC = "ASC",
|
|
371
|
+
DESC = "DESC"
|
|
372
|
+
}
|
|
373
|
+
export interface QueryItemsResponse {
|
|
374
|
+
/** A list of items matching the request */
|
|
375
|
+
items?: EnterpriseMediaItem[];
|
|
376
|
+
/** Information for the next request. */
|
|
377
|
+
pagingMetadata?: PagingMetadataV2;
|
|
378
|
+
}
|
|
379
|
+
export interface UpdateItemRequest {
|
|
380
|
+
/** The category object that will be created */
|
|
381
|
+
item: EnterpriseMediaItem;
|
|
382
|
+
}
|
|
383
|
+
export interface UpdateItemResponse {
|
|
384
|
+
/** Updated item info */
|
|
385
|
+
item?: EnterpriseMediaItem;
|
|
386
|
+
}
|
|
387
|
+
export interface PublishStatusChanged {
|
|
388
|
+
/** The new item status */
|
|
389
|
+
publishStatus?: PublishStatus;
|
|
390
|
+
}
|
|
391
|
+
export interface BulkUpdateItemRequest {
|
|
392
|
+
/** Requests to update individual item */
|
|
393
|
+
updateItemRequests: UpdateItemRequest[];
|
|
394
|
+
/** Should the response return the updated item */
|
|
395
|
+
returnEntity?: boolean;
|
|
396
|
+
}
|
|
397
|
+
export interface BulkUpdateItemResponse {
|
|
398
|
+
/** Requests to update individual item */
|
|
399
|
+
results?: BulkItemUpdateResult[];
|
|
400
|
+
/** Metadata of the operation */
|
|
401
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
402
|
+
}
|
|
403
|
+
export interface BulkItemUpdateResult {
|
|
404
|
+
/** updated item metadata */
|
|
405
|
+
itemMetadata?: ItemMetadata;
|
|
406
|
+
/** only returned if operation was successful and if returnEntity flag was on */
|
|
407
|
+
item?: EnterpriseMediaItem;
|
|
408
|
+
}
|
|
409
|
+
export interface ItemMetadata {
|
|
410
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
411
|
+
id?: string | null;
|
|
412
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
413
|
+
originalIndex?: number;
|
|
414
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
415
|
+
success?: boolean;
|
|
416
|
+
/** Details about the error in case of failure. */
|
|
417
|
+
error?: ApplicationError;
|
|
418
|
+
}
|
|
419
|
+
export interface ApplicationError {
|
|
420
|
+
/** Error code. */
|
|
421
|
+
code?: string;
|
|
422
|
+
/** Description of the error. */
|
|
423
|
+
description?: string;
|
|
424
|
+
/** Data related to the error. */
|
|
425
|
+
data?: Record<string, any> | null;
|
|
426
|
+
}
|
|
427
|
+
export interface BulkActionMetadata {
|
|
428
|
+
/** Number of items that were successfully processed. */
|
|
429
|
+
totalSuccesses?: number;
|
|
430
|
+
/** Number of items that couldn't be processed. */
|
|
431
|
+
totalFailures?: number;
|
|
432
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
433
|
+
undetailedFailures?: number;
|
|
434
|
+
}
|
|
435
|
+
export interface GetItemRequest {
|
|
436
|
+
/** Item id */
|
|
437
|
+
itemId: string;
|
|
438
|
+
}
|
|
439
|
+
export interface GetItemResponse {
|
|
440
|
+
/** item info */
|
|
441
|
+
item?: EnterpriseMediaItem;
|
|
442
|
+
}
|
|
443
|
+
export interface LinkItemToCategoriesRequest {
|
|
444
|
+
/** The item id */
|
|
445
|
+
itemId: string;
|
|
446
|
+
/** The category ids that the item will be linked to */
|
|
447
|
+
categoryIds?: string[];
|
|
448
|
+
}
|
|
449
|
+
export interface LinkItemToCategoriesResponse {
|
|
450
|
+
/** The linked category ids */
|
|
451
|
+
linkedCategoryIds?: string[] | null;
|
|
452
|
+
}
|
|
453
|
+
export interface UnlinkItemFromCategoriesRequest {
|
|
454
|
+
/** The item id */
|
|
455
|
+
itemId: string;
|
|
456
|
+
/** The category ids that the item will be unlinked from */
|
|
457
|
+
categoryIds?: string[];
|
|
458
|
+
}
|
|
459
|
+
export interface UnlinkItemFromCategoriesResponse {
|
|
460
|
+
/** The unlinked category ids */
|
|
461
|
+
unlinkedCategoryIds?: string[] | null;
|
|
462
|
+
}
|
|
463
|
+
export interface OverwriteItemCategoriesRequest {
|
|
464
|
+
/** The item id */
|
|
465
|
+
itemId: string;
|
|
466
|
+
/** The category ids the item will be linked to after this operation */
|
|
467
|
+
categoryIds?: string[];
|
|
468
|
+
}
|
|
469
|
+
export interface OverwriteItemCategoriesResponse {
|
|
470
|
+
/** The linked category ids */
|
|
471
|
+
linkedCategoryIds?: string[] | null;
|
|
472
|
+
/** The unlinked category ids */
|
|
473
|
+
unlinkedCategoryIds?: string[] | null;
|
|
474
|
+
}
|
|
475
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
476
|
+
createdEvent?: EntityCreatedEvent;
|
|
477
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
478
|
+
deletedEvent?: EntityDeletedEvent;
|
|
479
|
+
actionEvent?: ActionEvent;
|
|
480
|
+
/**
|
|
481
|
+
* Unique event ID.
|
|
482
|
+
* Allows clients to ignore duplicate webhooks.
|
|
483
|
+
*/
|
|
484
|
+
id?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Assumes actions are also always typed to an entity_type
|
|
487
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
488
|
+
*/
|
|
489
|
+
entityFqdn?: string;
|
|
490
|
+
/**
|
|
491
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
492
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
493
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
494
|
+
*/
|
|
495
|
+
slug?: string;
|
|
496
|
+
/** ID of the entity associated with the event. */
|
|
497
|
+
entityId?: string;
|
|
498
|
+
/** Event timestamp. */
|
|
499
|
+
eventTime?: Date;
|
|
500
|
+
/**
|
|
501
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
502
|
+
* (for example, GDPR).
|
|
503
|
+
*/
|
|
504
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
505
|
+
/** If present, indicates the action that triggered the event. */
|
|
506
|
+
originatedFrom?: string | null;
|
|
507
|
+
/**
|
|
508
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
509
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
510
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
511
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
512
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
513
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
514
|
+
*/
|
|
515
|
+
entityEventSequence?: string | null;
|
|
516
|
+
}
|
|
517
|
+
/** @oneof */
|
|
518
|
+
export interface DomainEventBodyOneOf {
|
|
519
|
+
createdEvent?: EntityCreatedEvent;
|
|
520
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
521
|
+
deletedEvent?: EntityDeletedEvent;
|
|
522
|
+
actionEvent?: ActionEvent;
|
|
523
|
+
}
|
|
524
|
+
export interface EntityCreatedEvent {
|
|
525
|
+
entityAsJson?: string;
|
|
526
|
+
}
|
|
527
|
+
export interface EntityUpdatedEvent {
|
|
528
|
+
/**
|
|
529
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
530
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
531
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
532
|
+
*/
|
|
533
|
+
currentEntityAsJson?: string;
|
|
534
|
+
}
|
|
535
|
+
export interface EntityDeletedEvent {
|
|
536
|
+
/** Entity that was deleted */
|
|
537
|
+
deletedEntityAsJson?: string | null;
|
|
538
|
+
}
|
|
539
|
+
export interface ActionEvent {
|
|
540
|
+
bodyAsJson?: string;
|
|
541
|
+
}
|
|
542
|
+
export interface GenerateFileUploadUrlResponseNonNullableFields {
|
|
543
|
+
uploadUrl: string;
|
|
544
|
+
}
|
|
545
|
+
export interface ImportFileResponseNonNullableFields {
|
|
546
|
+
item?: {
|
|
547
|
+
id: string;
|
|
548
|
+
mediaType: MediaType;
|
|
549
|
+
assets?: {
|
|
550
|
+
image?: {
|
|
551
|
+
id: string;
|
|
552
|
+
url: string;
|
|
553
|
+
height: number;
|
|
554
|
+
width: number;
|
|
555
|
+
};
|
|
556
|
+
video?: {
|
|
557
|
+
id: string;
|
|
558
|
+
url: string;
|
|
559
|
+
resolutions: {
|
|
560
|
+
url: string;
|
|
561
|
+
height: number;
|
|
562
|
+
width: number;
|
|
563
|
+
poster?: {
|
|
564
|
+
id: string;
|
|
565
|
+
url: string;
|
|
566
|
+
height: number;
|
|
567
|
+
width: number;
|
|
568
|
+
};
|
|
569
|
+
format: string;
|
|
570
|
+
}[];
|
|
571
|
+
posters: {
|
|
572
|
+
id: string;
|
|
573
|
+
url: string;
|
|
574
|
+
height: number;
|
|
575
|
+
width: number;
|
|
576
|
+
}[];
|
|
577
|
+
};
|
|
578
|
+
vector?: {
|
|
579
|
+
id: string;
|
|
580
|
+
url: string;
|
|
581
|
+
height: number;
|
|
582
|
+
width: number;
|
|
583
|
+
};
|
|
584
|
+
audio?: {
|
|
585
|
+
id: string;
|
|
586
|
+
url: string;
|
|
587
|
+
};
|
|
588
|
+
document?: {
|
|
589
|
+
id: string;
|
|
590
|
+
url: string;
|
|
591
|
+
};
|
|
592
|
+
archive?: {
|
|
593
|
+
id: string;
|
|
594
|
+
url: string;
|
|
595
|
+
};
|
|
596
|
+
model3d?: {
|
|
597
|
+
id: string;
|
|
598
|
+
url: string;
|
|
599
|
+
thumbnail?: {
|
|
600
|
+
id: string;
|
|
601
|
+
url: string;
|
|
602
|
+
height: number;
|
|
603
|
+
width: number;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
publishStatus: PublishStatus;
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
export interface SearchItemsResponseNonNullableFields {
|
|
611
|
+
items: {
|
|
612
|
+
id: string;
|
|
613
|
+
mediaType: MediaType;
|
|
614
|
+
assets?: {
|
|
615
|
+
image?: {
|
|
616
|
+
id: string;
|
|
617
|
+
url: string;
|
|
618
|
+
height: number;
|
|
619
|
+
width: number;
|
|
620
|
+
};
|
|
621
|
+
video?: {
|
|
622
|
+
id: string;
|
|
623
|
+
url: string;
|
|
624
|
+
resolutions: {
|
|
625
|
+
url: string;
|
|
626
|
+
height: number;
|
|
627
|
+
width: number;
|
|
628
|
+
poster?: {
|
|
629
|
+
id: string;
|
|
630
|
+
url: string;
|
|
631
|
+
height: number;
|
|
632
|
+
width: number;
|
|
633
|
+
};
|
|
634
|
+
format: string;
|
|
635
|
+
}[];
|
|
636
|
+
posters: {
|
|
637
|
+
id: string;
|
|
638
|
+
url: string;
|
|
639
|
+
height: number;
|
|
640
|
+
width: number;
|
|
641
|
+
}[];
|
|
642
|
+
};
|
|
643
|
+
vector?: {
|
|
644
|
+
id: string;
|
|
645
|
+
url: string;
|
|
646
|
+
height: number;
|
|
647
|
+
width: number;
|
|
648
|
+
};
|
|
649
|
+
audio?: {
|
|
650
|
+
id: string;
|
|
651
|
+
url: string;
|
|
652
|
+
};
|
|
653
|
+
document?: {
|
|
654
|
+
id: string;
|
|
655
|
+
url: string;
|
|
656
|
+
};
|
|
657
|
+
archive?: {
|
|
658
|
+
id: string;
|
|
659
|
+
url: string;
|
|
660
|
+
};
|
|
661
|
+
model3d?: {
|
|
662
|
+
id: string;
|
|
663
|
+
url: string;
|
|
664
|
+
thumbnail?: {
|
|
665
|
+
id: string;
|
|
666
|
+
url: string;
|
|
667
|
+
height: number;
|
|
668
|
+
width: number;
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
publishStatus: PublishStatus;
|
|
673
|
+
}[];
|
|
674
|
+
}
|
|
675
|
+
export interface QueryItemsResponseNonNullableFields {
|
|
676
|
+
items: {
|
|
677
|
+
id: string;
|
|
678
|
+
mediaType: MediaType;
|
|
679
|
+
assets?: {
|
|
680
|
+
image?: {
|
|
681
|
+
id: string;
|
|
682
|
+
url: string;
|
|
683
|
+
height: number;
|
|
684
|
+
width: number;
|
|
685
|
+
};
|
|
686
|
+
video?: {
|
|
687
|
+
id: string;
|
|
688
|
+
url: string;
|
|
689
|
+
resolutions: {
|
|
690
|
+
url: string;
|
|
691
|
+
height: number;
|
|
692
|
+
width: number;
|
|
693
|
+
poster?: {
|
|
694
|
+
id: string;
|
|
695
|
+
url: string;
|
|
696
|
+
height: number;
|
|
697
|
+
width: number;
|
|
698
|
+
};
|
|
699
|
+
format: string;
|
|
700
|
+
}[];
|
|
701
|
+
posters: {
|
|
702
|
+
id: string;
|
|
703
|
+
url: string;
|
|
704
|
+
height: number;
|
|
705
|
+
width: number;
|
|
706
|
+
}[];
|
|
707
|
+
};
|
|
708
|
+
vector?: {
|
|
709
|
+
id: string;
|
|
710
|
+
url: string;
|
|
711
|
+
height: number;
|
|
712
|
+
width: number;
|
|
713
|
+
};
|
|
714
|
+
audio?: {
|
|
715
|
+
id: string;
|
|
716
|
+
url: string;
|
|
717
|
+
};
|
|
718
|
+
document?: {
|
|
719
|
+
id: string;
|
|
720
|
+
url: string;
|
|
721
|
+
};
|
|
722
|
+
archive?: {
|
|
723
|
+
id: string;
|
|
724
|
+
url: string;
|
|
725
|
+
};
|
|
726
|
+
model3d?: {
|
|
727
|
+
id: string;
|
|
728
|
+
url: string;
|
|
729
|
+
thumbnail?: {
|
|
730
|
+
id: string;
|
|
731
|
+
url: string;
|
|
732
|
+
height: number;
|
|
733
|
+
width: number;
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
publishStatus: PublishStatus;
|
|
738
|
+
}[];
|
|
739
|
+
}
|
|
740
|
+
export interface UpdateItemResponseNonNullableFields {
|
|
741
|
+
item?: {
|
|
742
|
+
id: string;
|
|
743
|
+
mediaType: MediaType;
|
|
744
|
+
assets?: {
|
|
745
|
+
image?: {
|
|
746
|
+
id: string;
|
|
747
|
+
url: string;
|
|
748
|
+
height: number;
|
|
749
|
+
width: number;
|
|
750
|
+
};
|
|
751
|
+
video?: {
|
|
752
|
+
id: string;
|
|
753
|
+
url: string;
|
|
754
|
+
resolutions: {
|
|
755
|
+
url: string;
|
|
756
|
+
height: number;
|
|
757
|
+
width: number;
|
|
758
|
+
poster?: {
|
|
759
|
+
id: string;
|
|
760
|
+
url: string;
|
|
761
|
+
height: number;
|
|
762
|
+
width: number;
|
|
763
|
+
};
|
|
764
|
+
format: string;
|
|
765
|
+
}[];
|
|
766
|
+
posters: {
|
|
767
|
+
id: string;
|
|
768
|
+
url: string;
|
|
769
|
+
height: number;
|
|
770
|
+
width: number;
|
|
771
|
+
}[];
|
|
772
|
+
};
|
|
773
|
+
vector?: {
|
|
774
|
+
id: string;
|
|
775
|
+
url: string;
|
|
776
|
+
height: number;
|
|
777
|
+
width: number;
|
|
778
|
+
};
|
|
779
|
+
audio?: {
|
|
780
|
+
id: string;
|
|
781
|
+
url: string;
|
|
782
|
+
};
|
|
783
|
+
document?: {
|
|
784
|
+
id: string;
|
|
785
|
+
url: string;
|
|
786
|
+
};
|
|
787
|
+
archive?: {
|
|
788
|
+
id: string;
|
|
789
|
+
url: string;
|
|
790
|
+
};
|
|
791
|
+
model3d?: {
|
|
792
|
+
id: string;
|
|
793
|
+
url: string;
|
|
794
|
+
thumbnail?: {
|
|
795
|
+
id: string;
|
|
796
|
+
url: string;
|
|
797
|
+
height: number;
|
|
798
|
+
width: number;
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
};
|
|
802
|
+
publishStatus: PublishStatus;
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
export interface BulkUpdateItemResponseNonNullableFields {
|
|
806
|
+
results: {
|
|
807
|
+
itemMetadata?: {
|
|
808
|
+
originalIndex: number;
|
|
809
|
+
success: boolean;
|
|
810
|
+
error?: {
|
|
811
|
+
code: string;
|
|
812
|
+
description: string;
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
item?: {
|
|
816
|
+
id: string;
|
|
817
|
+
mediaType: MediaType;
|
|
818
|
+
assets?: {
|
|
819
|
+
image?: {
|
|
820
|
+
id: string;
|
|
821
|
+
url: string;
|
|
822
|
+
height: number;
|
|
823
|
+
width: number;
|
|
824
|
+
};
|
|
825
|
+
video?: {
|
|
826
|
+
id: string;
|
|
827
|
+
url: string;
|
|
828
|
+
resolutions: {
|
|
829
|
+
url: string;
|
|
830
|
+
height: number;
|
|
831
|
+
width: number;
|
|
832
|
+
poster?: {
|
|
833
|
+
id: string;
|
|
834
|
+
url: string;
|
|
835
|
+
height: number;
|
|
836
|
+
width: number;
|
|
837
|
+
};
|
|
838
|
+
format: string;
|
|
839
|
+
}[];
|
|
840
|
+
posters: {
|
|
841
|
+
id: string;
|
|
842
|
+
url: string;
|
|
843
|
+
height: number;
|
|
844
|
+
width: number;
|
|
845
|
+
}[];
|
|
846
|
+
};
|
|
847
|
+
vector?: {
|
|
848
|
+
id: string;
|
|
849
|
+
url: string;
|
|
850
|
+
height: number;
|
|
851
|
+
width: number;
|
|
852
|
+
};
|
|
853
|
+
audio?: {
|
|
854
|
+
id: string;
|
|
855
|
+
url: string;
|
|
856
|
+
};
|
|
857
|
+
document?: {
|
|
858
|
+
id: string;
|
|
859
|
+
url: string;
|
|
860
|
+
};
|
|
861
|
+
archive?: {
|
|
862
|
+
id: string;
|
|
863
|
+
url: string;
|
|
864
|
+
};
|
|
865
|
+
model3d?: {
|
|
866
|
+
id: string;
|
|
867
|
+
url: string;
|
|
868
|
+
thumbnail?: {
|
|
869
|
+
id: string;
|
|
870
|
+
url: string;
|
|
871
|
+
height: number;
|
|
872
|
+
width: number;
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
publishStatus: PublishStatus;
|
|
877
|
+
};
|
|
878
|
+
}[];
|
|
879
|
+
bulkActionMetadata?: {
|
|
880
|
+
totalSuccesses: number;
|
|
881
|
+
totalFailures: number;
|
|
882
|
+
undetailedFailures: number;
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
export interface GetItemResponseNonNullableFields {
|
|
886
|
+
item?: {
|
|
887
|
+
id: string;
|
|
888
|
+
mediaType: MediaType;
|
|
889
|
+
assets?: {
|
|
890
|
+
image?: {
|
|
891
|
+
id: string;
|
|
892
|
+
url: string;
|
|
893
|
+
height: number;
|
|
894
|
+
width: number;
|
|
895
|
+
};
|
|
896
|
+
video?: {
|
|
897
|
+
id: string;
|
|
898
|
+
url: string;
|
|
899
|
+
resolutions: {
|
|
900
|
+
url: string;
|
|
901
|
+
height: number;
|
|
902
|
+
width: number;
|
|
903
|
+
poster?: {
|
|
904
|
+
id: string;
|
|
905
|
+
url: string;
|
|
906
|
+
height: number;
|
|
907
|
+
width: number;
|
|
908
|
+
};
|
|
909
|
+
format: string;
|
|
910
|
+
}[];
|
|
911
|
+
posters: {
|
|
912
|
+
id: string;
|
|
913
|
+
url: string;
|
|
914
|
+
height: number;
|
|
915
|
+
width: number;
|
|
916
|
+
}[];
|
|
917
|
+
};
|
|
918
|
+
vector?: {
|
|
919
|
+
id: string;
|
|
920
|
+
url: string;
|
|
921
|
+
height: number;
|
|
922
|
+
width: number;
|
|
923
|
+
};
|
|
924
|
+
audio?: {
|
|
925
|
+
id: string;
|
|
926
|
+
url: string;
|
|
927
|
+
};
|
|
928
|
+
document?: {
|
|
929
|
+
id: string;
|
|
930
|
+
url: string;
|
|
931
|
+
};
|
|
932
|
+
archive?: {
|
|
933
|
+
id: string;
|
|
934
|
+
url: string;
|
|
935
|
+
};
|
|
936
|
+
model3d?: {
|
|
937
|
+
id: string;
|
|
938
|
+
url: string;
|
|
939
|
+
thumbnail?: {
|
|
940
|
+
id: string;
|
|
941
|
+
url: string;
|
|
942
|
+
height: number;
|
|
943
|
+
width: number;
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
publishStatus: PublishStatus;
|
|
948
|
+
};
|
|
949
|
+
}
|