@wix/auto_sdk_media-collections_media-collections 1.0.0
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/collections-v1-collection-media-collections.context.d.ts +21 -0
- package/build/cjs/src/collections-v1-collection-media-collections.context.js +33 -0
- package/build/cjs/src/collections-v1-collection-media-collections.context.js.map +1 -0
- package/build/cjs/src/collections-v1-collection-media-collections.http.d.ts +25 -0
- package/build/cjs/src/collections-v1-collection-media-collections.http.js +490 -0
- package/build/cjs/src/collections-v1-collection-media-collections.http.js.map +1 -0
- package/build/cjs/src/collections-v1-collection-media-collections.meta.d.ts +48 -0
- package/build/cjs/src/collections-v1-collection-media-collections.meta.js +278 -0
- package/build/cjs/src/collections-v1-collection-media-collections.meta.js.map +1 -0
- package/build/cjs/src/collections-v1-collection-media-collections.public.d.ts +104 -0
- package/build/cjs/src/collections-v1-collection-media-collections.public.js +123 -0
- package/build/cjs/src/collections-v1-collection-media-collections.public.js.map +1 -0
- package/build/cjs/src/collections-v1-collection-media-collections.types.d.ts +951 -0
- package/build/cjs/src/collections-v1-collection-media-collections.types.js +94 -0
- package/build/cjs/src/collections-v1-collection-media-collections.types.js.map +1 -0
- package/build/cjs/src/collections-v1-collection-media-collections.universal.d.ts +1210 -0
- package/build/cjs/src/collections-v1-collection-media-collections.universal.js +574 -0
- package/build/cjs/src/collections-v1-collection-media-collections.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/collections-v1-collection-media-collections.context.d.ts +21 -0
- package/build/es/src/collections-v1-collection-media-collections.context.js +21 -0
- package/build/es/src/collections-v1-collection-media-collections.context.js.map +1 -0
- package/build/es/src/collections-v1-collection-media-collections.http.d.ts +25 -0
- package/build/es/src/collections-v1-collection-media-collections.http.js +474 -0
- package/build/es/src/collections-v1-collection-media-collections.http.js.map +1 -0
- package/build/es/src/collections-v1-collection-media-collections.meta.d.ts +48 -0
- package/build/es/src/collections-v1-collection-media-collections.meta.js +239 -0
- package/build/es/src/collections-v1-collection-media-collections.meta.js.map +1 -0
- package/build/es/src/collections-v1-collection-media-collections.public.d.ts +104 -0
- package/build/es/src/collections-v1-collection-media-collections.public.js +98 -0
- package/build/es/src/collections-v1-collection-media-collections.public.js.map +1 -0
- package/build/es/src/collections-v1-collection-media-collections.types.d.ts +951 -0
- package/build/es/src/collections-v1-collection-media-collections.types.js +91 -0
- package/build/es/src/collections-v1-collection-media-collections.types.js.map +1 -0
- package/build/es/src/collections-v1-collection-media-collections.universal.d.ts +1210 -0
- package/build/es/src/collections-v1-collection-media-collections.universal.js +535 -0
- package/build/es/src/collections-v1-collection-media-collections.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.context.d.ts +21 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.context.js +33 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.context.js.map +1 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.http.d.ts +25 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.http.js +490 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.http.js.map +1 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.meta.d.ts +48 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.meta.js +278 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.meta.js.map +1 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.public.d.ts +104 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.public.js +123 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.public.js.map +1 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.types.d.ts +951 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.types.js +94 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.types.js.map +1 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.d.ts +1210 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.js +574 -0
- package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.context.d.ts +21 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.context.js +21 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.context.js.map +1 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.http.d.ts +25 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.http.js +474 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.http.js.map +1 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.meta.d.ts +48 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.meta.js +239 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.meta.js.map +1 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.public.d.ts +104 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.public.js +98 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.public.js.map +1 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.types.d.ts +951 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.types.js +91 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.types.js.map +1 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.universal.d.ts +1210 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.universal.js +535 -0
- package/build/internal/es/src/collections-v1-collection-media-collections.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,1210 @@
|
|
|
1
|
+
export interface MediaCollection {
|
|
2
|
+
/**
|
|
3
|
+
* Collection id
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
_id?: string;
|
|
7
|
+
/** Collection name */
|
|
8
|
+
name?: string;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* total count of MediaCollection members
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
membersCount?: number;
|
|
15
|
+
/**
|
|
16
|
+
* the member who created the MediaCollection
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
creator?: CollectionMember;
|
|
20
|
+
/**
|
|
21
|
+
* when MediaCollection was created
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
_createdDate?: Date | null;
|
|
25
|
+
/** Items in the collection */
|
|
26
|
+
items?: MediaCollectionItem[];
|
|
27
|
+
/**
|
|
28
|
+
* total count of items
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
itemsCount?: number;
|
|
32
|
+
/** Privacy settings */
|
|
33
|
+
privacySettings?: PrivacySettings;
|
|
34
|
+
/** If true, the collection is locked and should not be updated */
|
|
35
|
+
locked?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface CollectionMember {
|
|
38
|
+
/**
|
|
39
|
+
* Member id
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
memberId?: string;
|
|
43
|
+
/** Member nickname */
|
|
44
|
+
nickname?: string | null;
|
|
45
|
+
/** Member slug */
|
|
46
|
+
slug?: string | null;
|
|
47
|
+
/** Member photo url */
|
|
48
|
+
photoUrl?: string | null;
|
|
49
|
+
}
|
|
50
|
+
export interface MediaCollectionItem extends MediaCollectionItemMetadataOneOf {
|
|
51
|
+
/** Photo metadata */
|
|
52
|
+
photoMetadata?: PhotoMetadata;
|
|
53
|
+
/** Video metadata */
|
|
54
|
+
videoMetadata?: VideoMetadata;
|
|
55
|
+
/** Text metadata */
|
|
56
|
+
textMetadata?: TextMetadata;
|
|
57
|
+
/**
|
|
58
|
+
* item id
|
|
59
|
+
* @readonly
|
|
60
|
+
*/
|
|
61
|
+
_id?: string | null;
|
|
62
|
+
/** item url for photos or video */
|
|
63
|
+
mediaUrl?: string | null;
|
|
64
|
+
/** if not present in an update it mean the item will be added as currentTimestamp */
|
|
65
|
+
sortOrder?: number | null;
|
|
66
|
+
/** item's original filename */
|
|
67
|
+
name?: string | null;
|
|
68
|
+
/** item's title */
|
|
69
|
+
title?: string | null;
|
|
70
|
+
/** item's description */
|
|
71
|
+
description?: string | null;
|
|
72
|
+
/** a link from the item to something else */
|
|
73
|
+
link?: Link;
|
|
74
|
+
/** item type: text, photo or video */
|
|
75
|
+
dataType?: DataType;
|
|
76
|
+
/**
|
|
77
|
+
* When the item was added to the collection
|
|
78
|
+
* @readonly
|
|
79
|
+
*/
|
|
80
|
+
addedDate?: Date | null;
|
|
81
|
+
/**
|
|
82
|
+
* When the item was last updated
|
|
83
|
+
* @readonly
|
|
84
|
+
*/
|
|
85
|
+
_updatedDate?: Date | null;
|
|
86
|
+
/** The owner of the media */
|
|
87
|
+
mediaOwner?: MediaOwner;
|
|
88
|
+
/** Tags for media */
|
|
89
|
+
tags?: string[];
|
|
90
|
+
/** Token for media */
|
|
91
|
+
token?: string | null;
|
|
92
|
+
/** Gallery id */
|
|
93
|
+
galleryId?: string;
|
|
94
|
+
}
|
|
95
|
+
/** @oneof */
|
|
96
|
+
export interface MediaCollectionItemMetadataOneOf {
|
|
97
|
+
/** Photo metadata */
|
|
98
|
+
photoMetadata?: PhotoMetadata;
|
|
99
|
+
/** Video metadata */
|
|
100
|
+
videoMetadata?: VideoMetadata;
|
|
101
|
+
/** Text metadata */
|
|
102
|
+
textMetadata?: TextMetadata;
|
|
103
|
+
}
|
|
104
|
+
export interface Link {
|
|
105
|
+
type?: Type;
|
|
106
|
+
/** Link text */
|
|
107
|
+
text?: string | null;
|
|
108
|
+
/** Link url */
|
|
109
|
+
url?: string | null;
|
|
110
|
+
/** Link target */
|
|
111
|
+
target?: string | null;
|
|
112
|
+
/** Data on how to construct the link from wix editor inputs */
|
|
113
|
+
wixLinkData?: WixLink;
|
|
114
|
+
}
|
|
115
|
+
export declare enum Type {
|
|
116
|
+
/** Undefined */
|
|
117
|
+
Undefined = "Undefined",
|
|
118
|
+
/** external link */
|
|
119
|
+
External = "External",
|
|
120
|
+
/** link to wix pages */
|
|
121
|
+
Internal = "Internal"
|
|
122
|
+
}
|
|
123
|
+
/** The link object generated by panels in the editor and used by applications in Wix */
|
|
124
|
+
export interface WixLink extends WixLinkLinkOneOf {
|
|
125
|
+
/** External link type */
|
|
126
|
+
external?: ExternalLink;
|
|
127
|
+
/** Page link type */
|
|
128
|
+
page?: PageLink;
|
|
129
|
+
/** Anchor link type */
|
|
130
|
+
anchor?: AnchorLink;
|
|
131
|
+
/** Dynamic page link type */
|
|
132
|
+
dynamicPage?: DynamicPageLink;
|
|
133
|
+
/** Document link type */
|
|
134
|
+
document?: DocumentLink;
|
|
135
|
+
/** Email link type */
|
|
136
|
+
email?: EmailLink;
|
|
137
|
+
/** Phone link type */
|
|
138
|
+
phone?: PhoneLink;
|
|
139
|
+
/** Address link type */
|
|
140
|
+
address?: AddressLink;
|
|
141
|
+
/** WhatsApp link type */
|
|
142
|
+
whatsApp?: WhatsAppLink;
|
|
143
|
+
/** TPA link type */
|
|
144
|
+
tpaPage?: TpaPageLink;
|
|
145
|
+
}
|
|
146
|
+
/** @oneof */
|
|
147
|
+
export interface WixLinkLinkOneOf {
|
|
148
|
+
/** External link type */
|
|
149
|
+
external?: ExternalLink;
|
|
150
|
+
/** Page link type */
|
|
151
|
+
page?: PageLink;
|
|
152
|
+
/** Anchor link type */
|
|
153
|
+
anchor?: AnchorLink;
|
|
154
|
+
/** Dynamic page link type */
|
|
155
|
+
dynamicPage?: DynamicPageLink;
|
|
156
|
+
/** Document link type */
|
|
157
|
+
document?: DocumentLink;
|
|
158
|
+
/** Email link type */
|
|
159
|
+
email?: EmailLink;
|
|
160
|
+
/** Phone link type */
|
|
161
|
+
phone?: PhoneLink;
|
|
162
|
+
/** Address link type */
|
|
163
|
+
address?: AddressLink;
|
|
164
|
+
/** WhatsApp link type */
|
|
165
|
+
whatsApp?: WhatsAppLink;
|
|
166
|
+
/** TPA link type */
|
|
167
|
+
tpaPage?: TpaPageLink;
|
|
168
|
+
}
|
|
169
|
+
export interface ExternalLink {
|
|
170
|
+
/** The url of the page */
|
|
171
|
+
url?: string;
|
|
172
|
+
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
|
173
|
+
target?: string | null;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
|
|
177
|
+
* Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
|
|
178
|
+
* Following are the accepted 'rel' types by Wix applications.
|
|
179
|
+
*/
|
|
180
|
+
export declare enum LinkRel {
|
|
181
|
+
/** default (not implemented) */
|
|
182
|
+
unknown_link_rel = "unknown_link_rel",
|
|
183
|
+
/** Indicates that the current document's original author or publisher does not endorse the referenced document. */
|
|
184
|
+
nofollow = "nofollow",
|
|
185
|
+
/** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
|
|
186
|
+
noopener = "noopener",
|
|
187
|
+
/** No Referer header will be included. Additionally, has the same effect as noopener. */
|
|
188
|
+
noreferrer = "noreferrer",
|
|
189
|
+
/** Indicates a link that resulted from advertisements or paid placements. */
|
|
190
|
+
sponsored = "sponsored"
|
|
191
|
+
}
|
|
192
|
+
export interface PageLink {
|
|
193
|
+
/** The page id we want from the site */
|
|
194
|
+
pageId?: string;
|
|
195
|
+
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
|
196
|
+
target?: string | null;
|
|
197
|
+
/** rel of link */
|
|
198
|
+
rel?: LinkRel[];
|
|
199
|
+
}
|
|
200
|
+
export interface AnchorLink {
|
|
201
|
+
/** The name of the anchor */
|
|
202
|
+
anchorName?: string;
|
|
203
|
+
/** The data id (from the JSON page) of the anchor that should be used */
|
|
204
|
+
anchorDataId?: string;
|
|
205
|
+
/** The page id we want from the site */
|
|
206
|
+
pageId?: string;
|
|
207
|
+
/** rel of link */
|
|
208
|
+
rel?: LinkRel[];
|
|
209
|
+
}
|
|
210
|
+
export interface DynamicPageLink {
|
|
211
|
+
/** The router that handles this link */
|
|
212
|
+
routerId?: string;
|
|
213
|
+
/** The path data we'd like */
|
|
214
|
+
innerRoute?: string;
|
|
215
|
+
/** The data id (from the JSON page) of the anchor that should be used */
|
|
216
|
+
anchorDataId?: string | null;
|
|
217
|
+
/** rel of link */
|
|
218
|
+
rel?: LinkRel[];
|
|
219
|
+
}
|
|
220
|
+
export interface DocumentLink {
|
|
221
|
+
/** The id of the document */
|
|
222
|
+
docId?: string;
|
|
223
|
+
/** The name of the document for download purposes */
|
|
224
|
+
name?: string | null;
|
|
225
|
+
/** If this document can be indexed by scrapers, default is false */
|
|
226
|
+
indexable?: boolean;
|
|
227
|
+
}
|
|
228
|
+
export interface EmailLink {
|
|
229
|
+
/** The email we will be sending a message to */
|
|
230
|
+
recipient?: string;
|
|
231
|
+
/** The subject of the email */
|
|
232
|
+
subject?: string | null;
|
|
233
|
+
/** The body of the email */
|
|
234
|
+
body?: string | null;
|
|
235
|
+
}
|
|
236
|
+
export interface PhoneLink {
|
|
237
|
+
/** The phone number we want to link to */
|
|
238
|
+
phoneNumber?: string;
|
|
239
|
+
}
|
|
240
|
+
export interface AddressLink {
|
|
241
|
+
/** An address that we can link to */
|
|
242
|
+
address?: string;
|
|
243
|
+
}
|
|
244
|
+
export interface WhatsAppLink {
|
|
245
|
+
/** The whatsApp phone number we want to connect with */
|
|
246
|
+
phoneNumber?: string;
|
|
247
|
+
}
|
|
248
|
+
/** Link to a TPA page */
|
|
249
|
+
export interface TpaPageLink {
|
|
250
|
+
/** Type of item (e.g. 'wix.stores.sub_pages.product') */
|
|
251
|
+
itemTypeIdentifier?: string;
|
|
252
|
+
/** Id of linked item */
|
|
253
|
+
itemId?: string;
|
|
254
|
+
/** Id of linked page */
|
|
255
|
+
pageId?: string;
|
|
256
|
+
/** Id of app being linked to (AppDefId) */
|
|
257
|
+
appDefinitionId?: string;
|
|
258
|
+
/** The relativepath of linked page */
|
|
259
|
+
path?: string;
|
|
260
|
+
/** rel of link */
|
|
261
|
+
rel?: LinkRel[];
|
|
262
|
+
}
|
|
263
|
+
export declare enum DataType {
|
|
264
|
+
Undefined = "Undefined",
|
|
265
|
+
Photo = "Photo",
|
|
266
|
+
Video = "Video",
|
|
267
|
+
Text = "Text"
|
|
268
|
+
}
|
|
269
|
+
export interface PhotoMetadata {
|
|
270
|
+
/** Photo width */
|
|
271
|
+
width?: number | null;
|
|
272
|
+
/** Photo height */
|
|
273
|
+
height?: number | null;
|
|
274
|
+
/** The focal point of the image */
|
|
275
|
+
focalPoint?: Point;
|
|
276
|
+
/** aka Exchangeable image file format */
|
|
277
|
+
exif?: Record<string, any> | null;
|
|
278
|
+
/** the image quality */
|
|
279
|
+
quality?: number | null;
|
|
280
|
+
/** photo sharpening */
|
|
281
|
+
unsharpMasking?: UnsharpMasking;
|
|
282
|
+
/** id in WixMedia */
|
|
283
|
+
mediaId?: string | null;
|
|
284
|
+
}
|
|
285
|
+
export interface Point {
|
|
286
|
+
/** x coordinate */
|
|
287
|
+
x?: number;
|
|
288
|
+
/** y coordinate */
|
|
289
|
+
y?: number;
|
|
290
|
+
}
|
|
291
|
+
export interface UnsharpMasking {
|
|
292
|
+
/** number controls the amount of contrast that is added at the edges. */
|
|
293
|
+
amount?: number | null;
|
|
294
|
+
/** number in pixels. The size of the edges to be enhanced */
|
|
295
|
+
radius?: number | null;
|
|
296
|
+
/** The minimal level of brightness change that will be sharpened */
|
|
297
|
+
threshold?: number | null;
|
|
298
|
+
}
|
|
299
|
+
export interface VideoMetadata {
|
|
300
|
+
/** Video width */
|
|
301
|
+
width?: number | null;
|
|
302
|
+
/** Video height */
|
|
303
|
+
height?: number | null;
|
|
304
|
+
/** Video duration in milliseconds */
|
|
305
|
+
duration?: string | null;
|
|
306
|
+
/** Video source */
|
|
307
|
+
source?: Source;
|
|
308
|
+
/** Video posters */
|
|
309
|
+
posters?: Thumbnail[];
|
|
310
|
+
/** Video resolutions */
|
|
311
|
+
resolutions?: Resolution[];
|
|
312
|
+
/** External source's representation for this video's id */
|
|
313
|
+
externalId?: string | null;
|
|
314
|
+
}
|
|
315
|
+
export declare enum Source {
|
|
316
|
+
/** Undefined */
|
|
317
|
+
Undefined = "Undefined",
|
|
318
|
+
/** Youtube */
|
|
319
|
+
Youtube = "Youtube",
|
|
320
|
+
/** Vimeo */
|
|
321
|
+
Vimeo = "Vimeo",
|
|
322
|
+
/** Custom */
|
|
323
|
+
Custom = "Custom"
|
|
324
|
+
}
|
|
325
|
+
export interface Thumbnail {
|
|
326
|
+
/** Thumbnail url */
|
|
327
|
+
url?: string | null;
|
|
328
|
+
/** Thumbnail width */
|
|
329
|
+
width?: number | null;
|
|
330
|
+
/** Thumbnail height */
|
|
331
|
+
height?: number | null;
|
|
332
|
+
/** Is this the default thumbnail */
|
|
333
|
+
default?: boolean | null;
|
|
334
|
+
/** The focal point of the image */
|
|
335
|
+
focalPoint?: Point;
|
|
336
|
+
}
|
|
337
|
+
export interface Resolution {
|
|
338
|
+
/** eg 720p, 1024p etc */
|
|
339
|
+
videoMode?: string | null;
|
|
340
|
+
/** Video width */
|
|
341
|
+
width?: number | null;
|
|
342
|
+
/** Video height */
|
|
343
|
+
height?: number | null;
|
|
344
|
+
/** Map representing the file format (eg mp4) to the url. In case of an external source the format can be youtube, vimeo, etc. */
|
|
345
|
+
urls?: Record<string, string>;
|
|
346
|
+
}
|
|
347
|
+
export interface TextMetadata {
|
|
348
|
+
/** text data */
|
|
349
|
+
html?: string | null;
|
|
350
|
+
/** css style info for container */
|
|
351
|
+
style?: Record<string, any> | null;
|
|
352
|
+
/** populated via progallery app only (ck editor format) */
|
|
353
|
+
editorHtml?: string | null;
|
|
354
|
+
/** the wix editor's font Id used to display the text data */
|
|
355
|
+
editorFontId?: string | null;
|
|
356
|
+
}
|
|
357
|
+
export declare enum MediaOwner {
|
|
358
|
+
/** Undefined */
|
|
359
|
+
Undefined = "Undefined",
|
|
360
|
+
/** Wix */
|
|
361
|
+
Wix = "Wix",
|
|
362
|
+
/** DeviantArt */
|
|
363
|
+
DeviantArt = "DeviantArt",
|
|
364
|
+
/** Custom */
|
|
365
|
+
Custom = "Custom"
|
|
366
|
+
}
|
|
367
|
+
export declare enum PrivacySettings {
|
|
368
|
+
/** Undefined */
|
|
369
|
+
Undefined = "Undefined",
|
|
370
|
+
/** Public */
|
|
371
|
+
Public = "Public",
|
|
372
|
+
/** Secret */
|
|
373
|
+
Secret = "Secret"
|
|
374
|
+
}
|
|
375
|
+
export interface PermanentSiteDeletedResponse {
|
|
376
|
+
requestId?: string;
|
|
377
|
+
uniqueServiceIdentifier?: string;
|
|
378
|
+
status?: Status;
|
|
379
|
+
/** @readonly */
|
|
380
|
+
_createdDate?: Date | null;
|
|
381
|
+
}
|
|
382
|
+
export declare enum Status {
|
|
383
|
+
UNKNOWN = "UNKNOWN",
|
|
384
|
+
HANDLED = "HANDLED",
|
|
385
|
+
NOTHING_TO_HANDLE = "NOTHING_TO_HANDLE"
|
|
386
|
+
}
|
|
387
|
+
export interface Empty {
|
|
388
|
+
}
|
|
389
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
390
|
+
createdEvent?: EntityCreatedEvent;
|
|
391
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
392
|
+
deletedEvent?: EntityDeletedEvent;
|
|
393
|
+
actionEvent?: ActionEvent;
|
|
394
|
+
/**
|
|
395
|
+
* Unique event ID.
|
|
396
|
+
* Allows clients to ignore duplicate webhooks.
|
|
397
|
+
*/
|
|
398
|
+
_id?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Assumes actions are also always typed to an entity_type
|
|
401
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
402
|
+
*/
|
|
403
|
+
entityFqdn?: string;
|
|
404
|
+
/**
|
|
405
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
406
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
407
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
408
|
+
*/
|
|
409
|
+
slug?: string;
|
|
410
|
+
/** ID of the entity associated with the event. */
|
|
411
|
+
entityId?: string;
|
|
412
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
413
|
+
eventTime?: Date | null;
|
|
414
|
+
/**
|
|
415
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
416
|
+
* (for example, GDPR).
|
|
417
|
+
*/
|
|
418
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
419
|
+
/** If present, indicates the action that triggered the event. */
|
|
420
|
+
originatedFrom?: string | null;
|
|
421
|
+
/**
|
|
422
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
423
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
424
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
425
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
426
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
427
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
428
|
+
*/
|
|
429
|
+
entityEventSequence?: string | null;
|
|
430
|
+
}
|
|
431
|
+
/** @oneof */
|
|
432
|
+
export interface DomainEventBodyOneOf {
|
|
433
|
+
createdEvent?: EntityCreatedEvent;
|
|
434
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
435
|
+
deletedEvent?: EntityDeletedEvent;
|
|
436
|
+
actionEvent?: ActionEvent;
|
|
437
|
+
}
|
|
438
|
+
export interface EntityCreatedEvent {
|
|
439
|
+
entity?: string;
|
|
440
|
+
}
|
|
441
|
+
export interface RestoreInfo {
|
|
442
|
+
deletedDate?: Date | null;
|
|
443
|
+
}
|
|
444
|
+
export interface EntityUpdatedEvent {
|
|
445
|
+
/**
|
|
446
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
447
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
448
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
449
|
+
*/
|
|
450
|
+
currentEntity?: string;
|
|
451
|
+
}
|
|
452
|
+
export interface EntityDeletedEvent {
|
|
453
|
+
/** Entity that was deleted */
|
|
454
|
+
deletedEntity?: string | null;
|
|
455
|
+
}
|
|
456
|
+
export interface ActionEvent {
|
|
457
|
+
body?: string;
|
|
458
|
+
}
|
|
459
|
+
export interface MessageEnvelope {
|
|
460
|
+
/** App instance ID. */
|
|
461
|
+
instanceId?: string | null;
|
|
462
|
+
/** Event type. */
|
|
463
|
+
eventType?: string;
|
|
464
|
+
/** The identification type and identity data. */
|
|
465
|
+
identity?: IdentificationData;
|
|
466
|
+
/** Stringify payload. */
|
|
467
|
+
data?: string;
|
|
468
|
+
}
|
|
469
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
470
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
471
|
+
anonymousVisitorId?: string;
|
|
472
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
473
|
+
memberId?: string;
|
|
474
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
475
|
+
wixUserId?: string;
|
|
476
|
+
/** ID of an app. */
|
|
477
|
+
appId?: string;
|
|
478
|
+
/** @readonly */
|
|
479
|
+
identityType?: WebhookIdentityType;
|
|
480
|
+
}
|
|
481
|
+
/** @oneof */
|
|
482
|
+
export interface IdentificationDataIdOneOf {
|
|
483
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
484
|
+
anonymousVisitorId?: string;
|
|
485
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
486
|
+
memberId?: string;
|
|
487
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
488
|
+
wixUserId?: string;
|
|
489
|
+
/** ID of an app. */
|
|
490
|
+
appId?: string;
|
|
491
|
+
}
|
|
492
|
+
export declare enum WebhookIdentityType {
|
|
493
|
+
UNKNOWN = "UNKNOWN",
|
|
494
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
495
|
+
MEMBER = "MEMBER",
|
|
496
|
+
WIX_USER = "WIX_USER",
|
|
497
|
+
APP = "APP"
|
|
498
|
+
}
|
|
499
|
+
export interface CollectionEvent extends CollectionEventEventTypeOneOf {
|
|
500
|
+
/** Collection created */
|
|
501
|
+
collectionCreated?: CollectionCreated;
|
|
502
|
+
/** Items added to collection */
|
|
503
|
+
itemsAddedToCollection?: ItemsAddedToCollection;
|
|
504
|
+
/** Items removed from collection */
|
|
505
|
+
itemsRemovedFromCollection?: ItemsRemovedFromCollection;
|
|
506
|
+
/** Member joined to collection */
|
|
507
|
+
memberJoinedToCollection?: MemberJoinedToCollection;
|
|
508
|
+
/** Member left collection */
|
|
509
|
+
memberLeftCollection?: MemberLeftCollection;
|
|
510
|
+
}
|
|
511
|
+
/** @oneof */
|
|
512
|
+
export interface CollectionEventEventTypeOneOf {
|
|
513
|
+
/** Collection created */
|
|
514
|
+
collectionCreated?: CollectionCreated;
|
|
515
|
+
/** Items added to collection */
|
|
516
|
+
itemsAddedToCollection?: ItemsAddedToCollection;
|
|
517
|
+
/** Items removed from collection */
|
|
518
|
+
itemsRemovedFromCollection?: ItemsRemovedFromCollection;
|
|
519
|
+
/** Member joined to collection */
|
|
520
|
+
memberJoinedToCollection?: MemberJoinedToCollection;
|
|
521
|
+
/** Member left collection */
|
|
522
|
+
memberLeftCollection?: MemberLeftCollection;
|
|
523
|
+
}
|
|
524
|
+
export interface CollectionItemId {
|
|
525
|
+
/** Id of the gallery in ProGallery */
|
|
526
|
+
galleryId?: string;
|
|
527
|
+
/** Id of the item in ProGallery */
|
|
528
|
+
itemId?: string;
|
|
529
|
+
}
|
|
530
|
+
export interface CollectionCreated {
|
|
531
|
+
/** Collection id */
|
|
532
|
+
_id?: string;
|
|
533
|
+
/** Collection name */
|
|
534
|
+
name?: string;
|
|
535
|
+
/** Collection description */
|
|
536
|
+
description?: string | null;
|
|
537
|
+
/** Id of the member who created the collection */
|
|
538
|
+
creatorMemberId?: string;
|
|
539
|
+
/** When the collection was created */
|
|
540
|
+
_createdDate?: Date | null;
|
|
541
|
+
/** Privacy settings */
|
|
542
|
+
privacySettings?: PrivacySettings;
|
|
543
|
+
}
|
|
544
|
+
export interface ItemsAddedToCollection {
|
|
545
|
+
/** Id of the collection */
|
|
546
|
+
collectionId?: string;
|
|
547
|
+
/** Id of the member who added items */
|
|
548
|
+
addedByMember?: string;
|
|
549
|
+
/** Ids of the items that were added */
|
|
550
|
+
collectionItemIds?: CollectionItemId[];
|
|
551
|
+
/** When the items were added */
|
|
552
|
+
addedDate?: Date | null;
|
|
553
|
+
}
|
|
554
|
+
export interface ItemsRemovedFromCollection {
|
|
555
|
+
/** Id of the collection */
|
|
556
|
+
collectionId?: string;
|
|
557
|
+
/** Id of the member who removed items */
|
|
558
|
+
removedByMember?: string;
|
|
559
|
+
/** Ids of the items that were removed */
|
|
560
|
+
itemIds?: string[];
|
|
561
|
+
/** When the items were removed */
|
|
562
|
+
removedDate?: Date | null;
|
|
563
|
+
}
|
|
564
|
+
export interface MemberJoinedToCollection {
|
|
565
|
+
/** Id of the collection */
|
|
566
|
+
collectionId?: string;
|
|
567
|
+
/** Id of the member who joined */
|
|
568
|
+
memberId?: string;
|
|
569
|
+
/** When the member was joined */
|
|
570
|
+
joinedDate?: Date | null;
|
|
571
|
+
}
|
|
572
|
+
export interface MemberLeftCollection {
|
|
573
|
+
/** Id of the collection */
|
|
574
|
+
collectionId?: string;
|
|
575
|
+
/** Id of the member who left */
|
|
576
|
+
memberId?: string;
|
|
577
|
+
/** When the member left */
|
|
578
|
+
leftDate?: Date | null;
|
|
579
|
+
}
|
|
580
|
+
export interface GetMediaCollectionRequest {
|
|
581
|
+
/** Collection id */
|
|
582
|
+
mediaCollectionId: string;
|
|
583
|
+
/** number of items to skip in the current sort order, default is 0 */
|
|
584
|
+
offset?: number | null;
|
|
585
|
+
/** The amount of items per response, default is 50 */
|
|
586
|
+
limit?: number | null;
|
|
587
|
+
}
|
|
588
|
+
export interface GetMediaCollectionResponse {
|
|
589
|
+
/** The collection */
|
|
590
|
+
mediaCollection?: MediaCollection;
|
|
591
|
+
/** The member's status in the collection */
|
|
592
|
+
memberStatus?: MemberStatus;
|
|
593
|
+
}
|
|
594
|
+
export declare enum MemberStatus {
|
|
595
|
+
/** Undefined */
|
|
596
|
+
UNDEFINED = "UNDEFINED",
|
|
597
|
+
/** Not a member */
|
|
598
|
+
NOT_MEMBER = "NOT_MEMBER",
|
|
599
|
+
/** Member */
|
|
600
|
+
MEMBER = "MEMBER",
|
|
601
|
+
/** Admin */
|
|
602
|
+
ADMIN = "ADMIN"
|
|
603
|
+
}
|
|
604
|
+
export interface ListCollectionsForItemRequest {
|
|
605
|
+
/** Gallery id */
|
|
606
|
+
galleryId?: string;
|
|
607
|
+
/** Item id */
|
|
608
|
+
itemId: string;
|
|
609
|
+
}
|
|
610
|
+
export interface ListCollectionsForItemResponse {
|
|
611
|
+
/** The collections that the item belongs to */
|
|
612
|
+
itemInCollections?: ItemInCollection[];
|
|
613
|
+
}
|
|
614
|
+
export interface ItemInCollection {
|
|
615
|
+
/** Collection id */
|
|
616
|
+
mediaCollectionId?: string;
|
|
617
|
+
/** Collection name */
|
|
618
|
+
name?: string;
|
|
619
|
+
/** Is the item in the collection */
|
|
620
|
+
isItemInCollection?: boolean;
|
|
621
|
+
/** Is the collection locked */
|
|
622
|
+
isLocked?: boolean;
|
|
623
|
+
/** Member's role in the collection */
|
|
624
|
+
role?: MemberStatus;
|
|
625
|
+
/** Total count of items in the collection */
|
|
626
|
+
totalItemsCount?: number | null;
|
|
627
|
+
/** The first item in the collection */
|
|
628
|
+
firstItem?: MediaCollectionItem;
|
|
629
|
+
/** The creator's nickname */
|
|
630
|
+
creatorNickname?: string | null;
|
|
631
|
+
}
|
|
632
|
+
export interface GetCollectionItemRequest {
|
|
633
|
+
/** Collection id */
|
|
634
|
+
mediaCollectionId: string;
|
|
635
|
+
/** Item id */
|
|
636
|
+
itemId: string;
|
|
637
|
+
}
|
|
638
|
+
export interface GetCollectionItemResponse {
|
|
639
|
+
/** The item */
|
|
640
|
+
item?: MediaCollectionItem;
|
|
641
|
+
}
|
|
642
|
+
export interface ListMediaCollectionsRequest {
|
|
643
|
+
/** the amount of collections per response, default is 1000 */
|
|
644
|
+
limit?: number | null;
|
|
645
|
+
/** number of collections to skip in the current sort order, default is 0 */
|
|
646
|
+
offset?: number | null;
|
|
647
|
+
/**
|
|
648
|
+
* If empty, no filter will be applied
|
|
649
|
+
* Else, will return only collections that the member has those roles on them. Currently supporting: MEMBER, ADMIN.
|
|
650
|
+
*/
|
|
651
|
+
filterByRoles?: FilterByRoles;
|
|
652
|
+
}
|
|
653
|
+
export interface FilterByRoles {
|
|
654
|
+
roles?: MemberStatus[];
|
|
655
|
+
}
|
|
656
|
+
export interface ListMediaCollectionsResponse {
|
|
657
|
+
/** The collections and the member's role in them */
|
|
658
|
+
collectionsStatus?: CollectionAndStatus[];
|
|
659
|
+
/**
|
|
660
|
+
* total count of MediaCollection members
|
|
661
|
+
* @readonly
|
|
662
|
+
*/
|
|
663
|
+
totalCollectionsCount?: number | null;
|
|
664
|
+
}
|
|
665
|
+
export interface CollectionAndStatus {
|
|
666
|
+
/** The Media Collection */
|
|
667
|
+
mediaCollection?: MediaCollection;
|
|
668
|
+
/** The member's status in the collection */
|
|
669
|
+
memberStatus?: MemberStatus;
|
|
670
|
+
}
|
|
671
|
+
export interface CreateMediaCollectionRequest {
|
|
672
|
+
/** Name of the collection */
|
|
673
|
+
name: string;
|
|
674
|
+
/** Description of the collection */
|
|
675
|
+
description?: string | null;
|
|
676
|
+
/** Privacy settings of the collection */
|
|
677
|
+
privacySettings?: PrivacySettings;
|
|
678
|
+
/** Items to add to the collection */
|
|
679
|
+
items?: AddItem[];
|
|
680
|
+
}
|
|
681
|
+
export interface AddItem {
|
|
682
|
+
/** Gallery id */
|
|
683
|
+
galleryId?: string;
|
|
684
|
+
/** Item id */
|
|
685
|
+
itemId?: string;
|
|
686
|
+
/** Order index of the item */
|
|
687
|
+
orderIndex?: number | null;
|
|
688
|
+
}
|
|
689
|
+
export interface CreateMediaCollectionResponse {
|
|
690
|
+
/** id of the collection that was created */
|
|
691
|
+
mediaCollectionId?: string;
|
|
692
|
+
}
|
|
693
|
+
export interface PartiallyUpdateMediaCollectionRequest {
|
|
694
|
+
/** Collection to update */
|
|
695
|
+
mediaCollection: MediaCollection;
|
|
696
|
+
/**
|
|
697
|
+
* fields to update
|
|
698
|
+
* supported fields: name, description, privacy_settings
|
|
699
|
+
*/
|
|
700
|
+
fieldMask: string[];
|
|
701
|
+
}
|
|
702
|
+
export interface PartiallyUpdateMediaCollectionResponse {
|
|
703
|
+
}
|
|
704
|
+
export interface UpdateCollectionLockRequest {
|
|
705
|
+
/** Collection to lock */
|
|
706
|
+
mediaCollectionId?: string;
|
|
707
|
+
/** Lock status */
|
|
708
|
+
locked?: boolean;
|
|
709
|
+
}
|
|
710
|
+
export interface UpdateCollectionLockResponse {
|
|
711
|
+
}
|
|
712
|
+
export interface DeleteMediaCollectionRequest {
|
|
713
|
+
/** the collection to delete */
|
|
714
|
+
mediaCollectionId: string;
|
|
715
|
+
}
|
|
716
|
+
export interface DeleteMediaCollectionResponse {
|
|
717
|
+
}
|
|
718
|
+
export interface ListCollectionMembersRequest {
|
|
719
|
+
/** the collection to get its members */
|
|
720
|
+
mediaCollectionId: string;
|
|
721
|
+
/** Filter the members by their role in the collection */
|
|
722
|
+
filterBy?: FilterBy;
|
|
723
|
+
}
|
|
724
|
+
export interface FilterBy {
|
|
725
|
+
/** Member's status in the collection */
|
|
726
|
+
memberStatus?: MemberStatus;
|
|
727
|
+
}
|
|
728
|
+
export interface ListCollectionMembersResponse {
|
|
729
|
+
/** The collection's members and their roles */
|
|
730
|
+
membersRoles?: MemberAndStatus[];
|
|
731
|
+
}
|
|
732
|
+
export interface MemberAndStatus {
|
|
733
|
+
/** The member */
|
|
734
|
+
member?: CollectionMember;
|
|
735
|
+
/** The member's role in the collection */
|
|
736
|
+
memberStatus?: MemberStatus;
|
|
737
|
+
}
|
|
738
|
+
export interface AddItemsRequest {
|
|
739
|
+
/** Collection to add items */
|
|
740
|
+
mediaCollectionId: string;
|
|
741
|
+
/** Items to add */
|
|
742
|
+
items?: AddItem[];
|
|
743
|
+
}
|
|
744
|
+
export interface AddItemsResponse {
|
|
745
|
+
}
|
|
746
|
+
export interface RemoveItemsRequest {
|
|
747
|
+
/** Collection to remove items from */
|
|
748
|
+
mediaCollectionId: string;
|
|
749
|
+
/** Items to remove */
|
|
750
|
+
itemsIds?: string[];
|
|
751
|
+
}
|
|
752
|
+
export interface RemoveItemsResponse {
|
|
753
|
+
}
|
|
754
|
+
export interface UpdateItemsRequest {
|
|
755
|
+
/** Collection to update items */
|
|
756
|
+
mediaCollectionId?: string;
|
|
757
|
+
items?: UpdateItem[];
|
|
758
|
+
}
|
|
759
|
+
export interface UpdateItem {
|
|
760
|
+
/** Item to update */
|
|
761
|
+
itemId?: string;
|
|
762
|
+
/** New order index of the item */
|
|
763
|
+
orderIndex?: number;
|
|
764
|
+
}
|
|
765
|
+
export interface UpdateItemsResponse {
|
|
766
|
+
}
|
|
767
|
+
export interface JoinToCollectionRequest {
|
|
768
|
+
/** Collection to join */
|
|
769
|
+
mediaCollectionId: string;
|
|
770
|
+
}
|
|
771
|
+
export interface JoinToCollectionResponse {
|
|
772
|
+
}
|
|
773
|
+
export interface RemoveMemberFromCollectionRequest {
|
|
774
|
+
/** Collection the member will be removed from being a member */
|
|
775
|
+
mediaCollectionId?: string;
|
|
776
|
+
/** Member id to remove from the collection */
|
|
777
|
+
memberId?: string;
|
|
778
|
+
}
|
|
779
|
+
export interface RemoveMemberFromCollectionResponse {
|
|
780
|
+
}
|
|
781
|
+
export interface LeaveCollectionRequest {
|
|
782
|
+
/** Collection the member will be leaving */
|
|
783
|
+
mediaCollectionId: string;
|
|
784
|
+
}
|
|
785
|
+
export interface LeaveCollectionResponse {
|
|
786
|
+
}
|
|
787
|
+
export interface ListCollectionItemsRequest {
|
|
788
|
+
/** Collection to get its items */
|
|
789
|
+
mediaCollectionId: string;
|
|
790
|
+
}
|
|
791
|
+
export interface ListCollectionItemsResponse {
|
|
792
|
+
/** The collection's items */
|
|
793
|
+
collectionItems?: CollectionItem[];
|
|
794
|
+
}
|
|
795
|
+
export interface CollectionItem {
|
|
796
|
+
/** Gallery id */
|
|
797
|
+
galleryId?: string;
|
|
798
|
+
/** Item id */
|
|
799
|
+
itemId?: string;
|
|
800
|
+
/** Order index of the item */
|
|
801
|
+
orderIndex?: number | null;
|
|
802
|
+
/** Date the item was added to the collection */
|
|
803
|
+
addedDate?: Date | null;
|
|
804
|
+
}
|
|
805
|
+
export interface ListAllItemsBelongToCollectionRequest {
|
|
806
|
+
}
|
|
807
|
+
export interface ListAllItemsBelongToCollectionResponse {
|
|
808
|
+
/** List of the item ids that belong to one or more collection */
|
|
809
|
+
itemIds?: string[];
|
|
810
|
+
}
|
|
811
|
+
interface CollectionMemberNonNullableFields {
|
|
812
|
+
memberId: string;
|
|
813
|
+
}
|
|
814
|
+
interface PointNonNullableFields {
|
|
815
|
+
x: number;
|
|
816
|
+
y: number;
|
|
817
|
+
}
|
|
818
|
+
interface PhotoMetadataNonNullableFields {
|
|
819
|
+
focalPoint?: PointNonNullableFields;
|
|
820
|
+
}
|
|
821
|
+
interface ThumbnailNonNullableFields {
|
|
822
|
+
focalPoint?: PointNonNullableFields;
|
|
823
|
+
}
|
|
824
|
+
interface VideoMetadataNonNullableFields {
|
|
825
|
+
source: Source;
|
|
826
|
+
posters: ThumbnailNonNullableFields[];
|
|
827
|
+
}
|
|
828
|
+
interface ExternalLinkNonNullableFields {
|
|
829
|
+
url: string;
|
|
830
|
+
rel: LinkRel[];
|
|
831
|
+
}
|
|
832
|
+
interface PageLinkNonNullableFields {
|
|
833
|
+
pageId: string;
|
|
834
|
+
rel: LinkRel[];
|
|
835
|
+
}
|
|
836
|
+
interface AnchorLinkNonNullableFields {
|
|
837
|
+
anchorName: string;
|
|
838
|
+
anchorDataId: string;
|
|
839
|
+
pageId: string;
|
|
840
|
+
rel: LinkRel[];
|
|
841
|
+
}
|
|
842
|
+
interface DynamicPageLinkNonNullableFields {
|
|
843
|
+
routerId: string;
|
|
844
|
+
innerRoute: string;
|
|
845
|
+
rel: LinkRel[];
|
|
846
|
+
}
|
|
847
|
+
interface DocumentLinkNonNullableFields {
|
|
848
|
+
docId: string;
|
|
849
|
+
indexable: boolean;
|
|
850
|
+
}
|
|
851
|
+
interface EmailLinkNonNullableFields {
|
|
852
|
+
recipient: string;
|
|
853
|
+
}
|
|
854
|
+
interface PhoneLinkNonNullableFields {
|
|
855
|
+
phoneNumber: string;
|
|
856
|
+
}
|
|
857
|
+
interface AddressLinkNonNullableFields {
|
|
858
|
+
address: string;
|
|
859
|
+
}
|
|
860
|
+
interface WhatsAppLinkNonNullableFields {
|
|
861
|
+
phoneNumber: string;
|
|
862
|
+
}
|
|
863
|
+
interface TpaPageLinkNonNullableFields {
|
|
864
|
+
itemTypeIdentifier: string;
|
|
865
|
+
itemId: string;
|
|
866
|
+
pageId: string;
|
|
867
|
+
appDefinitionId: string;
|
|
868
|
+
path: string;
|
|
869
|
+
rel: LinkRel[];
|
|
870
|
+
}
|
|
871
|
+
interface WixLinkNonNullableFields {
|
|
872
|
+
external?: ExternalLinkNonNullableFields;
|
|
873
|
+
page?: PageLinkNonNullableFields;
|
|
874
|
+
anchor?: AnchorLinkNonNullableFields;
|
|
875
|
+
dynamicPage?: DynamicPageLinkNonNullableFields;
|
|
876
|
+
document?: DocumentLinkNonNullableFields;
|
|
877
|
+
email?: EmailLinkNonNullableFields;
|
|
878
|
+
phone?: PhoneLinkNonNullableFields;
|
|
879
|
+
address?: AddressLinkNonNullableFields;
|
|
880
|
+
whatsApp?: WhatsAppLinkNonNullableFields;
|
|
881
|
+
tpaPage?: TpaPageLinkNonNullableFields;
|
|
882
|
+
}
|
|
883
|
+
interface LinkNonNullableFields {
|
|
884
|
+
type: Type;
|
|
885
|
+
wixLinkData?: WixLinkNonNullableFields;
|
|
886
|
+
}
|
|
887
|
+
interface MediaCollectionItemNonNullableFields {
|
|
888
|
+
photoMetadata?: PhotoMetadataNonNullableFields;
|
|
889
|
+
videoMetadata?: VideoMetadataNonNullableFields;
|
|
890
|
+
link?: LinkNonNullableFields;
|
|
891
|
+
dataType: DataType;
|
|
892
|
+
secure: boolean;
|
|
893
|
+
mediaOwner: MediaOwner;
|
|
894
|
+
tags: string[];
|
|
895
|
+
galleryId: string;
|
|
896
|
+
}
|
|
897
|
+
export interface MediaCollectionNonNullableFields {
|
|
898
|
+
_id: string;
|
|
899
|
+
name: string;
|
|
900
|
+
membersCount: number;
|
|
901
|
+
creator?: CollectionMemberNonNullableFields;
|
|
902
|
+
items: MediaCollectionItemNonNullableFields[];
|
|
903
|
+
itemsCount: number;
|
|
904
|
+
privacySettings: PrivacySettings;
|
|
905
|
+
locked: boolean;
|
|
906
|
+
}
|
|
907
|
+
export interface GetMediaCollectionResponseNonNullableFields {
|
|
908
|
+
mediaCollection?: MediaCollectionNonNullableFields;
|
|
909
|
+
memberStatus: MemberStatus;
|
|
910
|
+
}
|
|
911
|
+
interface ItemInCollectionNonNullableFields {
|
|
912
|
+
mediaCollectionId: string;
|
|
913
|
+
name: string;
|
|
914
|
+
isItemInCollection: boolean;
|
|
915
|
+
isLocked: boolean;
|
|
916
|
+
role: MemberStatus;
|
|
917
|
+
firstItem?: MediaCollectionItemNonNullableFields;
|
|
918
|
+
}
|
|
919
|
+
export interface ListCollectionsForItemResponseNonNullableFields {
|
|
920
|
+
itemInCollections: ItemInCollectionNonNullableFields[];
|
|
921
|
+
}
|
|
922
|
+
export interface GetCollectionItemResponseNonNullableFields {
|
|
923
|
+
item?: MediaCollectionItemNonNullableFields;
|
|
924
|
+
}
|
|
925
|
+
interface CollectionAndStatusNonNullableFields {
|
|
926
|
+
mediaCollection?: MediaCollectionNonNullableFields;
|
|
927
|
+
memberStatus: MemberStatus;
|
|
928
|
+
}
|
|
929
|
+
export interface ListMediaCollectionsResponseNonNullableFields {
|
|
930
|
+
collectionsStatus: CollectionAndStatusNonNullableFields[];
|
|
931
|
+
}
|
|
932
|
+
export interface CreateMediaCollectionResponseNonNullableFields {
|
|
933
|
+
mediaCollectionId: string;
|
|
934
|
+
}
|
|
935
|
+
interface MemberAndStatusNonNullableFields {
|
|
936
|
+
member?: CollectionMemberNonNullableFields;
|
|
937
|
+
memberStatus: MemberStatus;
|
|
938
|
+
}
|
|
939
|
+
export interface ListCollectionMembersResponseNonNullableFields {
|
|
940
|
+
membersRoles: MemberAndStatusNonNullableFields[];
|
|
941
|
+
}
|
|
942
|
+
interface CollectionItemNonNullableFields {
|
|
943
|
+
galleryId: string;
|
|
944
|
+
itemId: string;
|
|
945
|
+
}
|
|
946
|
+
export interface ListCollectionItemsResponseNonNullableFields {
|
|
947
|
+
collectionItems: CollectionItemNonNullableFields[];
|
|
948
|
+
}
|
|
949
|
+
export interface BaseEventMetadata {
|
|
950
|
+
/** App instance ID. */
|
|
951
|
+
instanceId?: string | null;
|
|
952
|
+
/** Event type. */
|
|
953
|
+
eventType?: string;
|
|
954
|
+
/** The identification type and identity data. */
|
|
955
|
+
identity?: IdentificationData;
|
|
956
|
+
}
|
|
957
|
+
export interface EventMetadata extends BaseEventMetadata {
|
|
958
|
+
/**
|
|
959
|
+
* Unique event ID.
|
|
960
|
+
* Allows clients to ignore duplicate webhooks.
|
|
961
|
+
*/
|
|
962
|
+
_id?: string;
|
|
963
|
+
/**
|
|
964
|
+
* Assumes actions are also always typed to an entity_type
|
|
965
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
966
|
+
*/
|
|
967
|
+
entityFqdn?: string;
|
|
968
|
+
/**
|
|
969
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
970
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
971
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
972
|
+
*/
|
|
973
|
+
slug?: string;
|
|
974
|
+
/** ID of the entity associated with the event. */
|
|
975
|
+
entityId?: string;
|
|
976
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
977
|
+
eventTime?: Date | null;
|
|
978
|
+
/**
|
|
979
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
980
|
+
* (for example, GDPR).
|
|
981
|
+
*/
|
|
982
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
983
|
+
/** If present, indicates the action that triggered the event. */
|
|
984
|
+
originatedFrom?: string | null;
|
|
985
|
+
/**
|
|
986
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
987
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
988
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
989
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
990
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
991
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
992
|
+
*/
|
|
993
|
+
entityEventSequence?: string | null;
|
|
994
|
+
}
|
|
995
|
+
export interface CollectionCreatedEnvelope {
|
|
996
|
+
entity: MediaCollection;
|
|
997
|
+
metadata: EventMetadata;
|
|
998
|
+
}
|
|
999
|
+
/** @webhook
|
|
1000
|
+
* @eventType wix.collections.collection_created
|
|
1001
|
+
* @documentationMaturity preview
|
|
1002
|
+
*/
|
|
1003
|
+
export declare function onCollectionCreated(handler: (event: CollectionCreatedEnvelope) => void | Promise<void>): void;
|
|
1004
|
+
/**
|
|
1005
|
+
* Get a specific collection by its id
|
|
1006
|
+
* @param mediaCollectionId - Collection id
|
|
1007
|
+
* @public
|
|
1008
|
+
* @documentationMaturity preview
|
|
1009
|
+
* @requiredField mediaCollectionId
|
|
1010
|
+
* @returns The collection
|
|
1011
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.Get
|
|
1012
|
+
*/
|
|
1013
|
+
export declare function get(mediaCollectionId: string, options?: GetOptions): Promise<MediaCollection & MediaCollectionNonNullableFields>;
|
|
1014
|
+
export interface GetOptions {
|
|
1015
|
+
/** number of items to skip in the current sort order, default is 0 */
|
|
1016
|
+
offset?: number | null;
|
|
1017
|
+
/** The amount of items per response, default is 50 */
|
|
1018
|
+
limit?: number | null;
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* List all collections that the member has a role in them
|
|
1022
|
+
* @param itemId - Item id
|
|
1023
|
+
* @public
|
|
1024
|
+
* @documentationMaturity preview
|
|
1025
|
+
* @requiredField itemId
|
|
1026
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionsForItem
|
|
1027
|
+
*/
|
|
1028
|
+
export declare function listCollectionsForItem(itemId: string, options?: ListCollectionsForItemOptions): Promise<ListCollectionsForItemResponse & ListCollectionsForItemResponseNonNullableFields>;
|
|
1029
|
+
export interface ListCollectionsForItemOptions {
|
|
1030
|
+
/** Gallery id */
|
|
1031
|
+
galleryId?: string;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Get a specific item from a collection
|
|
1035
|
+
* @public
|
|
1036
|
+
* @documentationMaturity preview
|
|
1037
|
+
* @requiredField identifiers
|
|
1038
|
+
* @requiredField identifiers.itemId
|
|
1039
|
+
* @requiredField identifiers.mediaCollectionId
|
|
1040
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.GetCollectionItem
|
|
1041
|
+
*/
|
|
1042
|
+
export declare function getCollectionItem(identifiers: GetCollectionItemIdentifiers): Promise<GetCollectionItemResponse & GetCollectionItemResponseNonNullableFields>;
|
|
1043
|
+
export interface GetCollectionItemIdentifiers {
|
|
1044
|
+
/** Collection id */
|
|
1045
|
+
mediaCollectionId: string;
|
|
1046
|
+
/** Item id */
|
|
1047
|
+
itemId: string;
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* List all collections that the item belongs to
|
|
1051
|
+
* @public
|
|
1052
|
+
* @documentationMaturity preview
|
|
1053
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.List
|
|
1054
|
+
*/
|
|
1055
|
+
export declare function list(options?: ListOptions): Promise<ListMediaCollectionsResponse & ListMediaCollectionsResponseNonNullableFields>;
|
|
1056
|
+
export interface ListOptions {
|
|
1057
|
+
/** the amount of collections per response, default is 1000 */
|
|
1058
|
+
limit?: number | null;
|
|
1059
|
+
/** number of collections to skip in the current sort order, default is 0 */
|
|
1060
|
+
offset?: number | null;
|
|
1061
|
+
/**
|
|
1062
|
+
* If empty, no filter will be applied
|
|
1063
|
+
* Else, will return only collections that the member has those roles on them. Currently supporting: MEMBER, ADMIN.
|
|
1064
|
+
*/
|
|
1065
|
+
filterByRoles?: FilterByRoles;
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* Create a new collection
|
|
1069
|
+
* @param name - Name of the collection
|
|
1070
|
+
* @public
|
|
1071
|
+
* @documentationMaturity preview
|
|
1072
|
+
* @requiredField name
|
|
1073
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.Create
|
|
1074
|
+
*/
|
|
1075
|
+
export declare function create(name: string, options?: CreateOptions): Promise<CreateMediaCollectionResponse & CreateMediaCollectionResponseNonNullableFields>;
|
|
1076
|
+
export interface CreateOptions {
|
|
1077
|
+
/** Description of the collection */
|
|
1078
|
+
description?: string | null;
|
|
1079
|
+
/** Privacy settings of the collection */
|
|
1080
|
+
privacySettings?: PrivacySettings;
|
|
1081
|
+
/** Items to add to the collection */
|
|
1082
|
+
items?: AddItem[];
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Update a collection
|
|
1086
|
+
* @param _id - Collection id
|
|
1087
|
+
* @public
|
|
1088
|
+
* @documentationMaturity preview
|
|
1089
|
+
* @requiredField _id
|
|
1090
|
+
* @requiredField mediaCollection
|
|
1091
|
+
* @requiredField options
|
|
1092
|
+
* @requiredField options.fieldMask
|
|
1093
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.PartiallyUpdate
|
|
1094
|
+
*/
|
|
1095
|
+
export declare function partiallyUpdate(_id: string, mediaCollection: PartiallyUpdateMediaCollection, options: PartiallyUpdateOptions): Promise<void>;
|
|
1096
|
+
export interface PartiallyUpdateMediaCollection {
|
|
1097
|
+
/**
|
|
1098
|
+
* Collection id
|
|
1099
|
+
* @readonly
|
|
1100
|
+
*/
|
|
1101
|
+
_id?: string;
|
|
1102
|
+
/** Collection name */
|
|
1103
|
+
name?: string;
|
|
1104
|
+
description?: string | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* total count of MediaCollection members
|
|
1107
|
+
* @readonly
|
|
1108
|
+
*/
|
|
1109
|
+
membersCount?: number;
|
|
1110
|
+
/**
|
|
1111
|
+
* the member who created the MediaCollection
|
|
1112
|
+
* @readonly
|
|
1113
|
+
*/
|
|
1114
|
+
creator?: CollectionMember;
|
|
1115
|
+
/**
|
|
1116
|
+
* when MediaCollection was created
|
|
1117
|
+
* @readonly
|
|
1118
|
+
*/
|
|
1119
|
+
_createdDate?: Date | null;
|
|
1120
|
+
/** Items in the collection */
|
|
1121
|
+
items?: MediaCollectionItem[];
|
|
1122
|
+
/**
|
|
1123
|
+
* total count of items
|
|
1124
|
+
* @readonly
|
|
1125
|
+
*/
|
|
1126
|
+
itemsCount?: number;
|
|
1127
|
+
/** Privacy settings */
|
|
1128
|
+
privacySettings?: PrivacySettings;
|
|
1129
|
+
/** If true, the collection is locked and should not be updated */
|
|
1130
|
+
locked?: boolean;
|
|
1131
|
+
}
|
|
1132
|
+
export interface PartiallyUpdateOptions {
|
|
1133
|
+
/**
|
|
1134
|
+
* fields to update
|
|
1135
|
+
* supported fields: name, description, privacy_settings
|
|
1136
|
+
*/
|
|
1137
|
+
fieldMask: string[];
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Delete a collection
|
|
1141
|
+
* @param mediaCollectionId - the collection to delete
|
|
1142
|
+
* @public
|
|
1143
|
+
* @documentationMaturity preview
|
|
1144
|
+
* @requiredField mediaCollectionId
|
|
1145
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService._delete
|
|
1146
|
+
*/
|
|
1147
|
+
export declare function _delete(mediaCollectionId: string): Promise<void>;
|
|
1148
|
+
/**
|
|
1149
|
+
* List all members of a collection
|
|
1150
|
+
* @param mediaCollectionId - the collection to get its members
|
|
1151
|
+
* @public
|
|
1152
|
+
* @documentationMaturity preview
|
|
1153
|
+
* @requiredField mediaCollectionId
|
|
1154
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionMembers
|
|
1155
|
+
*/
|
|
1156
|
+
export declare function listCollectionMembers(mediaCollectionId: string, options?: ListCollectionMembersOptions): Promise<ListCollectionMembersResponse & ListCollectionMembersResponseNonNullableFields>;
|
|
1157
|
+
export interface ListCollectionMembersOptions {
|
|
1158
|
+
/** Filter the members by their role in the collection */
|
|
1159
|
+
filterBy?: FilterBy;
|
|
1160
|
+
}
|
|
1161
|
+
/**
|
|
1162
|
+
* Add items to a collection
|
|
1163
|
+
* @param mediaCollectionId - Collection to add items
|
|
1164
|
+
* @public
|
|
1165
|
+
* @documentationMaturity preview
|
|
1166
|
+
* @requiredField mediaCollectionId
|
|
1167
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.AddItems
|
|
1168
|
+
*/
|
|
1169
|
+
export declare function addItems(mediaCollectionId: string, options?: AddItemsOptions): Promise<void>;
|
|
1170
|
+
export interface AddItemsOptions {
|
|
1171
|
+
/** Items to add */
|
|
1172
|
+
items?: AddItem[];
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Remove items from a collection
|
|
1176
|
+
* @param mediaCollectionId - Collection to remove items from
|
|
1177
|
+
* @public
|
|
1178
|
+
* @documentationMaturity preview
|
|
1179
|
+
* @requiredField mediaCollectionId
|
|
1180
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.RemoveItems
|
|
1181
|
+
*/
|
|
1182
|
+
export declare function removeItems(mediaCollectionId: string, options?: RemoveItemsOptions): Promise<void>;
|
|
1183
|
+
export interface RemoveItemsOptions {
|
|
1184
|
+
/** Items to remove */
|
|
1185
|
+
itemsIds?: string[];
|
|
1186
|
+
}
|
|
1187
|
+
/**
|
|
1188
|
+
* Join to a collection
|
|
1189
|
+
* @param mediaCollectionId - Collection to join
|
|
1190
|
+
* @public
|
|
1191
|
+
* @documentationMaturity preview
|
|
1192
|
+
* @requiredField mediaCollectionId
|
|
1193
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.JoinToCollection
|
|
1194
|
+
*/
|
|
1195
|
+
export declare function joinToCollection(mediaCollectionId: string): Promise<void>;
|
|
1196
|
+
/** @param mediaCollectionId - Collection the member will be leaving
|
|
1197
|
+
* @public
|
|
1198
|
+
* @documentationMaturity preview
|
|
1199
|
+
* @requiredField mediaCollectionId
|
|
1200
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.LeaveCollection
|
|
1201
|
+
*/
|
|
1202
|
+
export declare function leaveCollection(mediaCollectionId: string): Promise<void>;
|
|
1203
|
+
/** @param mediaCollectionId - Collection to get its items
|
|
1204
|
+
* @public
|
|
1205
|
+
* @documentationMaturity preview
|
|
1206
|
+
* @requiredField mediaCollectionId
|
|
1207
|
+
* @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionItems
|
|
1208
|
+
*/
|
|
1209
|
+
export declare function listCollectionItems(mediaCollectionId: string): Promise<ListCollectionItemsResponse & ListCollectionItemsResponseNonNullableFields>;
|
|
1210
|
+
export {};
|