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