@wix/pro-gallery 1.0.33 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/context.d.ts +1 -0
- package/build/cjs/{index.typings.js → context.js} +2 -2
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +2 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/context/package.json +6 -0
- package/package.json +12 -8
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/pro-gallery-v2-gallery.http.d.ts +0 -130
- package/build/cjs/src/pro-gallery-v2-gallery.http.js +0 -823
- package/build/cjs/src/pro-gallery-v2-gallery.http.js.map +0 -1
- package/build/cjs/src/pro-gallery-v2-gallery.meta.d.ts +0 -41
- package/build/cjs/src/pro-gallery-v2-gallery.meta.js +0 -218
- package/build/cjs/src/pro-gallery-v2-gallery.meta.js.map +0 -1
- package/build/cjs/src/pro-gallery-v2-gallery.public.d.ts +0 -119
- package/build/cjs/src/pro-gallery-v2-gallery.public.js +0 -75
- package/build/cjs/src/pro-gallery-v2-gallery.public.js.map +0 -1
- package/build/cjs/src/pro-gallery-v2-gallery.types.d.ts +0 -1768
- package/build/cjs/src/pro-gallery-v2-gallery.types.js +0 -82
- package/build/cjs/src/pro-gallery-v2-gallery.types.js.map +0 -1
- package/build/cjs/src/pro-gallery-v2-gallery.universal.d.ts +0 -1389
- package/build/cjs/src/pro-gallery-v2-gallery.universal.js +0 -903
- package/build/cjs/src/pro-gallery-v2-gallery.universal.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/src/pro-gallery-v2-gallery.http.d.ts +0 -130
- package/build/es/src/pro-gallery-v2-gallery.http.js +0 -810
- package/build/es/src/pro-gallery-v2-gallery.http.js.map +0 -1
- package/build/es/src/pro-gallery-v2-gallery.meta.d.ts +0 -41
- package/build/es/src/pro-gallery-v2-gallery.meta.js +0 -182
- package/build/es/src/pro-gallery-v2-gallery.meta.js.map +0 -1
- package/build/es/src/pro-gallery-v2-gallery.public.d.ts +0 -119
- package/build/es/src/pro-gallery-v2-gallery.public.js +0 -54
- package/build/es/src/pro-gallery-v2-gallery.public.js.map +0 -1
- package/build/es/src/pro-gallery-v2-gallery.types.d.ts +0 -1768
- package/build/es/src/pro-gallery-v2-gallery.types.js +0 -79
- package/build/es/src/pro-gallery-v2-gallery.types.js.map +0 -1
- package/build/es/src/pro-gallery-v2-gallery.universal.d.ts +0 -1389
- package/build/es/src/pro-gallery-v2-gallery.universal.js +0 -867
- package/build/es/src/pro-gallery-v2-gallery.universal.js.map +0 -1
@@ -1,1389 +0,0 @@
|
|
1
|
-
export declare const __debug: {
|
2
|
-
verboseLogging: {
|
3
|
-
on: () => boolean;
|
4
|
-
off: () => boolean;
|
5
|
-
};
|
6
|
-
};
|
7
|
-
export interface Gallery {
|
8
|
-
/**
|
9
|
-
* Gallery ID.
|
10
|
-
* @readonly
|
11
|
-
*/
|
12
|
-
_id?: string | null;
|
13
|
-
/** Gallery name. */
|
14
|
-
name?: string | null;
|
15
|
-
/**
|
16
|
-
* Total number of items in the gallery.
|
17
|
-
* @readonly
|
18
|
-
*/
|
19
|
-
totalItems?: number | null;
|
20
|
-
/** Media items in the gallery. */
|
21
|
-
items?: Item[];
|
22
|
-
/**
|
23
|
-
* Index that determines which position a gallery is displayed on the site. <br />
|
24
|
-
*
|
25
|
-
* >**Note:** If you assign the same sort order index to more than one gallery, the function fails.
|
26
|
-
*/
|
27
|
-
sortOrder?: number | null;
|
28
|
-
/**
|
29
|
-
* Date and time the gallery was created.
|
30
|
-
* @readonly
|
31
|
-
*/
|
32
|
-
_createdDate?: Date;
|
33
|
-
}
|
34
|
-
export interface Item extends ItemMetadataOneOf {
|
35
|
-
/** Details about the image. */
|
36
|
-
image?: Image;
|
37
|
-
/** Details about the video. */
|
38
|
-
video?: Video;
|
39
|
-
/** Details about the text file. */
|
40
|
-
text?: Text;
|
41
|
-
/**
|
42
|
-
* Item ID.
|
43
|
-
* @readonly
|
44
|
-
*/
|
45
|
-
_id?: string | null;
|
46
|
-
/**
|
47
|
-
* Index that determines which position a media item is displayed in the gallery. <br />
|
48
|
-
*
|
49
|
-
* Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
|
50
|
-
*
|
51
|
-
* >**Note:** If you assign the same sort order index to more than one media item in a gallery, the function fails.
|
52
|
-
*/
|
53
|
-
sortOrder?: number | null;
|
54
|
-
/** Item title. */
|
55
|
-
title?: string | null;
|
56
|
-
/** Item description. */
|
57
|
-
description?: string | null;
|
58
|
-
/** Link from the item. You can link to Wix sites or external URLs. */
|
59
|
-
link?: Link;
|
60
|
-
/** @readonly */
|
61
|
-
type?: Type;
|
62
|
-
/**
|
63
|
-
* Date and time the item was created.
|
64
|
-
* @readonly
|
65
|
-
*/
|
66
|
-
_createdDate?: Date;
|
67
|
-
/**
|
68
|
-
* Date and time the item was last updated.
|
69
|
-
* @readonly
|
70
|
-
*/
|
71
|
-
_updatedDate?: Date;
|
72
|
-
/** Item tags. */
|
73
|
-
tags?: Tags;
|
74
|
-
}
|
75
|
-
/** @oneof */
|
76
|
-
export interface ItemMetadataOneOf {
|
77
|
-
/** Details about the image. */
|
78
|
-
image?: Image;
|
79
|
-
/** Details about the video. */
|
80
|
-
video?: Video;
|
81
|
-
/** Details about the text file. */
|
82
|
-
text?: Text;
|
83
|
-
}
|
84
|
-
export interface Link {
|
85
|
-
/** Display text of the link. */
|
86
|
-
text?: string | null;
|
87
|
-
/** Target URL of the link. */
|
88
|
-
url?: string | null;
|
89
|
-
}
|
90
|
-
export declare enum LinkType {
|
91
|
-
UNDEFINED = "UNDEFINED",
|
92
|
-
/** external link */
|
93
|
-
EXTERNAL = "EXTERNAL",
|
94
|
-
/** for internal usage using wixLinkData */
|
95
|
-
INTERNAL = "INTERNAL"
|
96
|
-
}
|
97
|
-
/** The link object generated by panels in the editor and used by applications in Wix */
|
98
|
-
export interface WixLink extends WixLinkLinkOneOf {
|
99
|
-
/** External link type */
|
100
|
-
external?: ExternalLink;
|
101
|
-
/** Page link type */
|
102
|
-
page?: PageLink;
|
103
|
-
/** Anchor link type */
|
104
|
-
anchor?: AnchorLink;
|
105
|
-
/** Dynamic page link type */
|
106
|
-
dynamicPage?: DynamicPageLink;
|
107
|
-
/** Document link type */
|
108
|
-
document?: DocumentLink;
|
109
|
-
/** Email link type */
|
110
|
-
email?: EmailLink;
|
111
|
-
/** Phone link type */
|
112
|
-
phone?: PhoneLink;
|
113
|
-
/** Address link type */
|
114
|
-
address?: AddressLink;
|
115
|
-
/** WhatsApp link type */
|
116
|
-
whatsApp?: WhatsAppLink;
|
117
|
-
/** TPA link type */
|
118
|
-
tpaPage?: TpaPageLink;
|
119
|
-
}
|
120
|
-
/** @oneof */
|
121
|
-
export interface WixLinkLinkOneOf {
|
122
|
-
/** External link type */
|
123
|
-
external?: ExternalLink;
|
124
|
-
/** Page link type */
|
125
|
-
page?: PageLink;
|
126
|
-
/** Anchor link type */
|
127
|
-
anchor?: AnchorLink;
|
128
|
-
/** Dynamic page link type */
|
129
|
-
dynamicPage?: DynamicPageLink;
|
130
|
-
/** Document link type */
|
131
|
-
document?: DocumentLink;
|
132
|
-
/** Email link type */
|
133
|
-
email?: EmailLink;
|
134
|
-
/** Phone link type */
|
135
|
-
phone?: PhoneLink;
|
136
|
-
/** Address link type */
|
137
|
-
address?: AddressLink;
|
138
|
-
/** WhatsApp link type */
|
139
|
-
whatsApp?: WhatsAppLink;
|
140
|
-
/** TPA link type */
|
141
|
-
tpaPage?: TpaPageLink;
|
142
|
-
}
|
143
|
-
export interface ExternalLink {
|
144
|
-
/** The url of the page */
|
145
|
-
url?: string;
|
146
|
-
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
147
|
-
target?: string | null;
|
148
|
-
}
|
149
|
-
export interface PageLink {
|
150
|
-
/** The page id we want from the site */
|
151
|
-
pageId?: string;
|
152
|
-
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
153
|
-
target?: string | null;
|
154
|
-
/** rel of link */
|
155
|
-
rel?: LinkRel[];
|
156
|
-
}
|
157
|
-
/**
|
158
|
-
* The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
|
159
|
-
* Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
|
160
|
-
* Following are the accepted 'rel' types by Wix applications.
|
161
|
-
*/
|
162
|
-
export declare enum LinkRel {
|
163
|
-
/** default (not implemented) */
|
164
|
-
unknown_link_rel = "unknown_link_rel",
|
165
|
-
/** Indicates that the current document's original author or publisher does not endorse the referenced document. */
|
166
|
-
nofollow = "nofollow",
|
167
|
-
/** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
|
168
|
-
noopener = "noopener",
|
169
|
-
/** No Referer header will be included. Additionally, has the same effect as noopener. */
|
170
|
-
noreferrer = "noreferrer",
|
171
|
-
/** Indicates a link that resulted from advertisements or paid placements. */
|
172
|
-
sponsored = "sponsored"
|
173
|
-
}
|
174
|
-
export interface AnchorLink {
|
175
|
-
/** The name of the anchor */
|
176
|
-
anchorName?: string;
|
177
|
-
/** The data id (from the JSON page) of the anchor that should be used */
|
178
|
-
anchorDataId?: string;
|
179
|
-
/** The page id we want from the site */
|
180
|
-
pageId?: string;
|
181
|
-
/** rel of link */
|
182
|
-
rel?: LinkRel[];
|
183
|
-
}
|
184
|
-
export interface DynamicPageLink {
|
185
|
-
/** The router that handles this link */
|
186
|
-
routerId?: string;
|
187
|
-
/** The path data we'd like */
|
188
|
-
innerRoute?: string;
|
189
|
-
/** The data id (from the JSON page) of the anchor that should be used */
|
190
|
-
anchorDataId?: string | null;
|
191
|
-
/** rel of link */
|
192
|
-
rel?: LinkRel[];
|
193
|
-
}
|
194
|
-
export interface DocumentLink {
|
195
|
-
/** The id of the document */
|
196
|
-
docId?: string;
|
197
|
-
/** The name of the document for download purposes */
|
198
|
-
name?: string | null;
|
199
|
-
/** If this document can be indexed by scrapers, default is false */
|
200
|
-
indexable?: boolean;
|
201
|
-
}
|
202
|
-
export interface EmailLink {
|
203
|
-
/** The email we will be sending a message to */
|
204
|
-
recipient?: string;
|
205
|
-
/** The subject of the email */
|
206
|
-
subject?: string | null;
|
207
|
-
/** The body of the email */
|
208
|
-
body?: string | null;
|
209
|
-
}
|
210
|
-
export interface PhoneLink {
|
211
|
-
/** The phone number we want to link to */
|
212
|
-
phoneNumber?: string;
|
213
|
-
}
|
214
|
-
export interface AddressLink {
|
215
|
-
/** An address that we can link to */
|
216
|
-
address?: string;
|
217
|
-
}
|
218
|
-
export interface WhatsAppLink {
|
219
|
-
/** The whatsApp phone number we want to connect with */
|
220
|
-
phoneNumber?: string;
|
221
|
-
}
|
222
|
-
/** Link to a TPA page */
|
223
|
-
export interface TpaPageLink {
|
224
|
-
/** Type of item (e.g. 'wix.stores.sub_pages.product') */
|
225
|
-
itemTypeIdentifier?: string;
|
226
|
-
/** Id of linked item */
|
227
|
-
itemId?: string;
|
228
|
-
/** Id of linked page */
|
229
|
-
pageId?: string;
|
230
|
-
/** Id of app being linked to (AppDefId) */
|
231
|
-
appDefinitionId?: string;
|
232
|
-
/** The relativepath of linked page */
|
233
|
-
path?: string;
|
234
|
-
/** rel of link */
|
235
|
-
rel?: LinkRel[];
|
236
|
-
}
|
237
|
-
export declare enum Type {
|
238
|
-
UNDEFINED = "UNDEFINED",
|
239
|
-
IMAGE = "IMAGE",
|
240
|
-
VIDEO = "VIDEO",
|
241
|
-
TEXT = "TEXT"
|
242
|
-
}
|
243
|
-
export interface Image {
|
244
|
-
/** The image's Wix media URL in the following format: `'wix:image://v1/<uri>/<filename>#originWidth=<width>&originHeight=<height>[&watermark=<watermark_manifest_string>]'`. */
|
245
|
-
imageInfo?: string;
|
246
|
-
/** Focal point of the image. */
|
247
|
-
focalPoint?: Point;
|
248
|
-
/** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
|
249
|
-
exif?: Record<string, any> | null;
|
250
|
-
/**
|
251
|
-
* Image compression level. <br />
|
252
|
-
*
|
253
|
-
* Min: `30` <br />
|
254
|
-
* Max: `100`
|
255
|
-
*/
|
256
|
-
quality?: number | null;
|
257
|
-
/** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
|
258
|
-
unsharpMasking?: UnsharpMasking;
|
259
|
-
}
|
260
|
-
export declare enum ImageType {
|
261
|
-
UNDEFINED = "UNDEFINED",
|
262
|
-
WIX_MEDIA = "WIX_MEDIA",
|
263
|
-
EXTERNAL = "EXTERNAL"
|
264
|
-
}
|
265
|
-
export interface Point {
|
266
|
-
/** X-coordinate of the focal point. */
|
267
|
-
x?: number;
|
268
|
-
/** Y-coordinate of the focal point. */
|
269
|
-
y?: number;
|
270
|
-
}
|
271
|
-
export interface UnsharpMasking {
|
272
|
-
/**
|
273
|
-
* Unsharp masking amount. Controls the sharpening strength. <br />
|
274
|
-
*
|
275
|
-
* Min: `0` <br />
|
276
|
-
* Max: `5`
|
277
|
-
*/
|
278
|
-
amount?: number | null;
|
279
|
-
/** Unsharp masking radius in pixels. Controls the sharpening width. */
|
280
|
-
radius?: number | null;
|
281
|
-
/**
|
282
|
-
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
|
283
|
-
*
|
284
|
-
* Min: `0` <br />
|
285
|
-
* Max: `1`
|
286
|
-
*/
|
287
|
-
threshold?: number | null;
|
288
|
-
}
|
289
|
-
export interface Video {
|
290
|
-
type?: VideoType;
|
291
|
-
/**
|
292
|
-
* The video's URL. Either a Wix media URL, or a supported https external URL in the following formats:
|
293
|
-
*
|
294
|
-
* Wix Media: `'wix:video://v1/6e6ea4_461425d7e7db4d5487a28e00c5ba6244/9e6ea4_461425d7e7db4d5487a28e00c5ba6277#posterUri=9e6ea4_461425d7e7db4d5487a28e00c5ba6277f000.jpg&posterWidth=960&posterHeight=540'`
|
295
|
-
*
|
296
|
-
* Vimeo: `'https://vimeo.com/378840916'`
|
297
|
-
*
|
298
|
-
* Youtube: `'https://www.youtube.com/results?search_query=uplifting+upbeat+music'`
|
299
|
-
*/
|
300
|
-
videoInfo?: string;
|
301
|
-
/** Manually defined video duration in milliseconds. */
|
302
|
-
durationInMillis?: number | null;
|
303
|
-
}
|
304
|
-
export declare enum VideoType {
|
305
|
-
UNDEFINED = "UNDEFINED",
|
306
|
-
WIX_MEDIA = "WIX_MEDIA",
|
307
|
-
YOUTUBE = "YOUTUBE",
|
308
|
-
VIMEO = "VIMEO"
|
309
|
-
}
|
310
|
-
export interface VideoResolution {
|
311
|
-
/** *Required.** Video URL. */
|
312
|
-
url?: string;
|
313
|
-
/** *Required.** Video height. */
|
314
|
-
height?: number;
|
315
|
-
/** *Required.** Video width. */
|
316
|
-
width?: number;
|
317
|
-
/** *Required.** Video format. For example, `mp4` or `hls`. */
|
318
|
-
format?: string;
|
319
|
-
/** Video quality. For example, `480p` or `720p`. */
|
320
|
-
quality?: string | null;
|
321
|
-
/** Video filename. */
|
322
|
-
filename?: string | null;
|
323
|
-
}
|
324
|
-
export interface Text {
|
325
|
-
/** Text in HTML format. */
|
326
|
-
html?: string | null;
|
327
|
-
/**
|
328
|
-
* Set of key-value pairs describing the [CSS style](https://en.wikipedia.org/wiki/CSS) of the text.
|
329
|
-
*
|
330
|
-
* __Note:__ The object structure is customizable. See the [List Gallery Items](https://dev.wix.com/api/rest/site-content/pro-gallery/list-gallery-items) code example for supported values.
|
331
|
-
*/
|
332
|
-
css?: Record<string, any> | null;
|
333
|
-
/** Reserved for internal use. */
|
334
|
-
editorHtml?: string | null;
|
335
|
-
/** Reserved for internal use. */
|
336
|
-
editorFontId?: string | null;
|
337
|
-
}
|
338
|
-
export interface Tags {
|
339
|
-
/** List of tags assigned to the media item. */
|
340
|
-
values?: string[];
|
341
|
-
}
|
342
|
-
export interface SecondaryMedia extends SecondaryMediaMetadataOneOf {
|
343
|
-
/** secondary media photo metadata (optional) */
|
344
|
-
image?: Image;
|
345
|
-
/** secondary media text metadata (optional) */
|
346
|
-
text?: Text;
|
347
|
-
}
|
348
|
-
/** @oneof */
|
349
|
-
export interface SecondaryMediaMetadataOneOf {
|
350
|
-
/** secondary media photo metadata (optional) */
|
351
|
-
image?: Image;
|
352
|
-
/** secondary media text metadata (optional) */
|
353
|
-
text?: Text;
|
354
|
-
}
|
355
|
-
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
356
|
-
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
357
|
-
metaSiteId?: string;
|
358
|
-
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
359
|
-
siteId?: string;
|
360
|
-
/** Invalidate by App */
|
361
|
-
app?: App;
|
362
|
-
/** Invalidate by page id */
|
363
|
-
page?: Page;
|
364
|
-
/** Invalidate by URI path */
|
365
|
-
uri?: URI;
|
366
|
-
/** tell us why you're invalidating the cache. You don't need to add your app name */
|
367
|
-
reason?: string | null;
|
368
|
-
/** Is local DS */
|
369
|
-
localDc?: boolean;
|
370
|
-
}
|
371
|
-
/** @oneof */
|
372
|
-
export interface InvalidateCacheGetByOneOf {
|
373
|
-
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
|
374
|
-
metaSiteId?: string;
|
375
|
-
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
|
376
|
-
siteId?: string;
|
377
|
-
/** Invalidate by App */
|
378
|
-
app?: App;
|
379
|
-
/** Invalidate by page id */
|
380
|
-
page?: Page;
|
381
|
-
/** Invalidate by URI path */
|
382
|
-
uri?: URI;
|
383
|
-
}
|
384
|
-
export interface App {
|
385
|
-
/** The AppDefId */
|
386
|
-
appDefId?: string;
|
387
|
-
/** The instance Id */
|
388
|
-
instanceId?: string;
|
389
|
-
}
|
390
|
-
export interface Page {
|
391
|
-
/** the msid the page is on */
|
392
|
-
metaSiteId?: string;
|
393
|
-
/** Invalidate by Page ID */
|
394
|
-
pageId?: string;
|
395
|
-
}
|
396
|
-
export interface URI {
|
397
|
-
/** the msid the URI is on */
|
398
|
-
metaSiteId?: string;
|
399
|
-
/** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
|
400
|
-
uriPath?: string;
|
401
|
-
}
|
402
|
-
export interface GalleryPublished {
|
403
|
-
/**
|
404
|
-
* id of the gallery that will be published
|
405
|
-
* @readonly
|
406
|
-
*/
|
407
|
-
galleryId?: string;
|
408
|
-
isRc?: boolean;
|
409
|
-
/** @readonly */
|
410
|
-
newRevision?: Date;
|
411
|
-
/** @readonly */
|
412
|
-
oldRevision?: Date;
|
413
|
-
}
|
414
|
-
export interface CleanDeletedGalleriesEvent {
|
415
|
-
/** @readonly */
|
416
|
-
instanceId?: string;
|
417
|
-
/** @readonly */
|
418
|
-
metaSiteId?: string;
|
419
|
-
/** @readonly */
|
420
|
-
htmlSiteRevision?: string;
|
421
|
-
/** @readonly */
|
422
|
-
timeSitePublished?: Date;
|
423
|
-
}
|
424
|
-
export interface ProgallerypublisherPublishGalleryRequest {
|
425
|
-
/** id of the gallery that will be published */
|
426
|
-
galleryId?: string;
|
427
|
-
}
|
428
|
-
export interface ProgallerypublisherPublishGalleryResponse {
|
429
|
-
}
|
430
|
-
export interface PublishGalleryItemRequest {
|
431
|
-
/** id of the gallery that will be published */
|
432
|
-
galleryId?: string;
|
433
|
-
/** id of the item that will be published */
|
434
|
-
itemId?: string;
|
435
|
-
}
|
436
|
-
export interface PublishGalleryItemResponse {
|
437
|
-
}
|
438
|
-
export interface PublishGalleryItemsRequest {
|
439
|
-
/** id of the gallery that will be published */
|
440
|
-
galleryId?: string;
|
441
|
-
/** ids of the items that will be published */
|
442
|
-
itemIds?: string[];
|
443
|
-
}
|
444
|
-
export interface PublishGalleryItemsResponse {
|
445
|
-
}
|
446
|
-
export interface Empty {
|
447
|
-
}
|
448
|
-
export interface HtmlSitePublished {
|
449
|
-
/** Application instance ID */
|
450
|
-
appInstanceId?: string;
|
451
|
-
/** Application type */
|
452
|
-
appType?: string;
|
453
|
-
/** Revision */
|
454
|
-
revision?: string;
|
455
|
-
/** MSID */
|
456
|
-
metaSiteId?: string | null;
|
457
|
-
/** optional branch id if publish is done from branch */
|
458
|
-
branchId?: string | null;
|
459
|
-
/** The site's last transactionId */
|
460
|
-
lastTransactionId?: string | null;
|
461
|
-
/** A list of the site's pages */
|
462
|
-
pages?: EventsPage[];
|
463
|
-
/** Site's publish date */
|
464
|
-
publishDate?: string;
|
465
|
-
}
|
466
|
-
export interface EventsPage {
|
467
|
-
/** Page's Id */
|
468
|
-
_id?: string;
|
469
|
-
}
|
470
|
-
export interface HtmlSiteRCPublished {
|
471
|
-
/** Application instance ID */
|
472
|
-
appInstanceId?: string;
|
473
|
-
/** Revision */
|
474
|
-
revision?: string;
|
475
|
-
/** Optional branch Id */
|
476
|
-
branchId?: string | null;
|
477
|
-
}
|
478
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
479
|
-
/** Information about a newly-created gallery. */
|
480
|
-
createdEvent?: EntityCreatedEvent;
|
481
|
-
updatedEvent?: EntityUpdatedEvent;
|
482
|
-
deletedEvent?: EntityDeletedEvent;
|
483
|
-
actionEvent?: ActionEvent;
|
484
|
-
/**
|
485
|
-
* Unique event ID.
|
486
|
-
* Allows clients to ignore duplicate webhooks.
|
487
|
-
*/
|
488
|
-
_id?: string;
|
489
|
-
/**
|
490
|
-
* Assumes actions are also always typed to an entity_type
|
491
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
492
|
-
*/
|
493
|
-
entityFqdn?: string;
|
494
|
-
/**
|
495
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
496
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
497
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
498
|
-
*/
|
499
|
-
slug?: string;
|
500
|
-
/** ID of the entity associated with the event. */
|
501
|
-
entityId?: string;
|
502
|
-
/** Event timestamp. */
|
503
|
-
eventTime?: Date;
|
504
|
-
/**
|
505
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
506
|
-
* (for example, GDPR).
|
507
|
-
*/
|
508
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
509
|
-
/** If present, indicates the action that triggered the event. */
|
510
|
-
originatedFrom?: string | null;
|
511
|
-
/**
|
512
|
-
* A sequence number defining the order of updates to the underlying entity.
|
513
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
514
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
515
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
516
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
517
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
518
|
-
*/
|
519
|
-
entityEventSequence?: string | null;
|
520
|
-
}
|
521
|
-
/** @oneof */
|
522
|
-
export interface DomainEventBodyOneOf {
|
523
|
-
createdEvent?: EntityCreatedEvent;
|
524
|
-
updatedEvent?: EntityUpdatedEvent;
|
525
|
-
deletedEvent?: EntityDeletedEvent;
|
526
|
-
actionEvent?: ActionEvent;
|
527
|
-
}
|
528
|
-
export interface EntityCreatedEvent {
|
529
|
-
entityAsJson?: string;
|
530
|
-
}
|
531
|
-
export interface EntityUpdatedEvent {
|
532
|
-
/**
|
533
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
534
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
535
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
536
|
-
*/
|
537
|
-
currentEntityAsJson?: string;
|
538
|
-
}
|
539
|
-
export interface EntityDeletedEvent {
|
540
|
-
/** Entity that was deleted */
|
541
|
-
deletedEntityAsJson?: string | null;
|
542
|
-
}
|
543
|
-
export interface ActionEvent {
|
544
|
-
bodyAsJson?: string;
|
545
|
-
}
|
546
|
-
export interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
|
547
|
-
/** insert/update documents */
|
548
|
-
update?: DocumentUpdateOperation;
|
549
|
-
/** delete by document ids */
|
550
|
-
deleteByIds?: DeleteByIdsOperation;
|
551
|
-
/** delete documents matching filter */
|
552
|
-
deleteByFilter?: DeleteByFilterOperation;
|
553
|
-
/** update documents matching filter */
|
554
|
-
updateByFilter?: UpdateByFilterOperation;
|
555
|
-
/** update only existing documents */
|
556
|
-
updateExisting?: UpdateExistingOperation;
|
557
|
-
/** application which owns documents */
|
558
|
-
appDefId?: string | null;
|
559
|
-
/** type of the documents */
|
560
|
-
documentType?: string | null;
|
561
|
-
/** language of the documents */
|
562
|
-
language?: string | null;
|
563
|
-
/** site documents belong to */
|
564
|
-
msId?: string | null;
|
565
|
-
}
|
566
|
-
/** @oneof */
|
567
|
-
export interface UpdateDocumentsEventOperationOneOf {
|
568
|
-
/** insert/update documents */
|
569
|
-
update?: DocumentUpdateOperation;
|
570
|
-
/** delete by document ids */
|
571
|
-
deleteByIds?: DeleteByIdsOperation;
|
572
|
-
/** delete documents matching filter */
|
573
|
-
deleteByFilter?: DeleteByFilterOperation;
|
574
|
-
/** update documents matching filter */
|
575
|
-
updateByFilter?: UpdateByFilterOperation;
|
576
|
-
/** update only existing documents */
|
577
|
-
updateExisting?: UpdateExistingOperation;
|
578
|
-
}
|
579
|
-
export interface DocumentUpdateOperation {
|
580
|
-
/** documents to index or update */
|
581
|
-
documents?: IndexDocument[];
|
582
|
-
}
|
583
|
-
export interface IndexDocument {
|
584
|
-
/** data bag with non-searchable fields (url, image) */
|
585
|
-
payload?: DocumentPayload;
|
586
|
-
/** what type of users should documents be visible to */
|
587
|
-
exposure?: Enum;
|
588
|
-
/** document with mandatory fields (id, title, description) and with fields specific to the type of the document */
|
589
|
-
document?: Record<string, any> | null;
|
590
|
-
/** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */
|
591
|
-
permittedMemberGroups?: string[];
|
592
|
-
/** if true SEO is disabled for this document */
|
593
|
-
seoHidden?: boolean | null;
|
594
|
-
/** if true the page is a lightbox popup */
|
595
|
-
isPopup?: boolean | null;
|
596
|
-
}
|
597
|
-
export interface DocumentPayload {
|
598
|
-
/** url of the page representing the document */
|
599
|
-
url?: string | null;
|
600
|
-
/** image which represents the document */
|
601
|
-
documentImage?: DocumentImage;
|
602
|
-
}
|
603
|
-
export interface DocumentImage {
|
604
|
-
/** the name of the image */
|
605
|
-
name?: string;
|
606
|
-
/** the width of the image */
|
607
|
-
width?: number;
|
608
|
-
/** the height of the image */
|
609
|
-
height?: number;
|
610
|
-
}
|
611
|
-
export declare enum Enum {
|
612
|
-
/** Default value. Means that permission not set */
|
613
|
-
UNKNOWN = "UNKNOWN",
|
614
|
-
/** Protected exposure. Exposed to members and owners */
|
615
|
-
PROTECTED = "PROTECTED",
|
616
|
-
/** Private exposure. Exposed to owners */
|
617
|
-
PRIVATE = "PRIVATE",
|
618
|
-
/** Public exposure. Visible to everyone */
|
619
|
-
PUBLIC = "PUBLIC",
|
620
|
-
/** Used for partial updates, to state that exposure is not changing */
|
621
|
-
UNCHANGED = "UNCHANGED",
|
622
|
-
/** Protected to members of permitted groups and owners */
|
623
|
-
GROUP_PROTECTED = "GROUP_PROTECTED"
|
624
|
-
}
|
625
|
-
export interface DeleteByIdsOperation {
|
626
|
-
/** ids of the documents to delete */
|
627
|
-
documentIds?: string[];
|
628
|
-
}
|
629
|
-
export interface DeleteByFilterOperation {
|
630
|
-
/** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
|
631
|
-
filter?: Record<string, any> | null;
|
632
|
-
}
|
633
|
-
export interface UpdateByFilterOperation {
|
634
|
-
/** documents matching this filter will be updated */
|
635
|
-
filter?: Record<string, any> | null;
|
636
|
-
/** partial document to apply */
|
637
|
-
document?: IndexDocument;
|
638
|
-
}
|
639
|
-
export interface UpdateExistingOperation {
|
640
|
-
/** documents to update */
|
641
|
-
documents?: IndexDocument[];
|
642
|
-
}
|
643
|
-
export interface SearchIndexingNotification {
|
644
|
-
/** new state of indexing for the site specified in ms_id */
|
645
|
-
indexState?: SearchIndexingNotificationState;
|
646
|
-
/** type of the document the notification is targeted for. Applies to all types if not provided */
|
647
|
-
documentType?: string | null;
|
648
|
-
/** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */
|
649
|
-
language?: string | null;
|
650
|
-
/** site for which notification is targeted */
|
651
|
-
msId?: string | null;
|
652
|
-
}
|
653
|
-
export declare enum SearchIndexingNotificationState {
|
654
|
-
/** default state */
|
655
|
-
Unknown = "Unknown",
|
656
|
-
/** metasite does not require site search indexing */
|
657
|
-
Off = "Off",
|
658
|
-
/** metasite requires site search indexing */
|
659
|
-
On = "On"
|
660
|
-
}
|
661
|
-
export interface ListGalleriesItemsRequest {
|
662
|
-
/** IDs of the media items to retrieve. */
|
663
|
-
itemsId?: ItemId[];
|
664
|
-
}
|
665
|
-
export interface ItemId {
|
666
|
-
/** Gallery ID. */
|
667
|
-
galleryId?: string;
|
668
|
-
/** Item ID. */
|
669
|
-
itemId?: string;
|
670
|
-
}
|
671
|
-
export interface ListGalleriesItemsResponse {
|
672
|
-
/** Retrieved media items. */
|
673
|
-
itemsInGalleries?: ItemsInGallery[];
|
674
|
-
}
|
675
|
-
export interface ItemsInGallery {
|
676
|
-
/** Gallery ID. */
|
677
|
-
galleryId?: string;
|
678
|
-
/** Retrieved media items. */
|
679
|
-
items?: Item[];
|
680
|
-
}
|
681
|
-
export interface GalleryItemCreated {
|
682
|
-
/** Created gallery item. */
|
683
|
-
item?: Item;
|
684
|
-
}
|
685
|
-
export interface GalleryItemUpdated {
|
686
|
-
/** Updated gallery item. */
|
687
|
-
updatedItem?: Item;
|
688
|
-
}
|
689
|
-
export interface GalleryItemDeleted {
|
690
|
-
/** ID of the deleted gallery item. */
|
691
|
-
itemId?: string;
|
692
|
-
}
|
693
|
-
export interface ListGalleriesRequest {
|
694
|
-
/** Number of galleries to list. Defaults to 10. */
|
695
|
-
itemLimit?: number | null;
|
696
|
-
/** Number of galleries to skip in the returns. Defaults to 0. */
|
697
|
-
offset?: number | null;
|
698
|
-
/** Number of galleries to list. Defaults to 10. */
|
699
|
-
limit?: number | null;
|
700
|
-
}
|
701
|
-
export declare enum State {
|
702
|
-
UNDEFINED = "UNDEFINED",
|
703
|
-
/** The gallery in the Editor segment */
|
704
|
-
SAVED = "SAVED",
|
705
|
-
/** The gallery in the LiveSite segment */
|
706
|
-
PUBLISHED = "PUBLISHED"
|
707
|
-
}
|
708
|
-
export interface ListGalleriesResponse {
|
709
|
-
/** Total number of galleries in the site. */
|
710
|
-
totalGalleries?: number | null;
|
711
|
-
/** List of galleries. Sorted by `_createdDate`. */
|
712
|
-
galleries?: Gallery[];
|
713
|
-
}
|
714
|
-
export interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {
|
715
|
-
/** Gallery ID. */
|
716
|
-
galleryId: string;
|
717
|
-
/** Number of media items to skip in the returns. Defaults to 0. */
|
718
|
-
itemOffset?: number | null;
|
719
|
-
/**
|
720
|
-
* Maximum number of media items to return. <br />
|
721
|
-
*
|
722
|
-
* Min: `1` <br />
|
723
|
-
* Max: `100` <br />
|
724
|
-
* Default: `50`
|
725
|
-
*/
|
726
|
-
itemLimit?: number | null;
|
727
|
-
}
|
728
|
-
/** @oneof */
|
729
|
-
export interface GetGalleryRequestVersionOneOf {
|
730
|
-
}
|
731
|
-
export interface GetGalleryResponse {
|
732
|
-
/** Returned gallery. */
|
733
|
-
gallery?: Gallery;
|
734
|
-
}
|
735
|
-
export interface ListGalleryItemsRequest {
|
736
|
-
/** Gallery ID. */
|
737
|
-
galleryId: string;
|
738
|
-
/** Number of media items to skip in the returns. Defaults to 0. */
|
739
|
-
itemOffset?: number | null;
|
740
|
-
/**
|
741
|
-
* Maximum number of media items to return. <br />
|
742
|
-
*
|
743
|
-
* Min: `1` <br />
|
744
|
-
* Max: `100` <br />
|
745
|
-
* Default: `50`
|
746
|
-
*/
|
747
|
-
itemLimit?: number | null;
|
748
|
-
}
|
749
|
-
export interface ListGalleryItemsResponse {
|
750
|
-
/** List of media items in the gallery. */
|
751
|
-
items?: Item[];
|
752
|
-
}
|
753
|
-
export interface GetGalleryItemRequest {
|
754
|
-
/** Gallery ID. */
|
755
|
-
galleryId: string;
|
756
|
-
/** Item ID. */
|
757
|
-
itemId: string;
|
758
|
-
}
|
759
|
-
export interface GetGalleryItemResponse {
|
760
|
-
/** Returned media item. */
|
761
|
-
item?: Item;
|
762
|
-
}
|
763
|
-
export interface CreateGalleryRequest {
|
764
|
-
/** Gallery to create. */
|
765
|
-
gallery?: Gallery;
|
766
|
-
/** Gallery ID to clone from. */
|
767
|
-
cloneFromGalleryId?: string | null;
|
768
|
-
}
|
769
|
-
export interface CreateGalleryResponse {
|
770
|
-
/** Created gallery. */
|
771
|
-
gallery?: Gallery;
|
772
|
-
}
|
773
|
-
export interface UpdateGalleryRequest {
|
774
|
-
/** Gallery to update. */
|
775
|
-
gallery: Gallery;
|
776
|
-
}
|
777
|
-
export interface UpdateGalleryResponse {
|
778
|
-
/** Updated gallery. */
|
779
|
-
gallery?: Gallery;
|
780
|
-
}
|
781
|
-
export interface DeleteGalleryRequest {
|
782
|
-
/** ID of the gallery to delete. */
|
783
|
-
galleryId: string;
|
784
|
-
}
|
785
|
-
export interface DeleteGalleryResponse {
|
786
|
-
/**
|
787
|
-
* ID of the deleted gallery.
|
788
|
-
* @readonly
|
789
|
-
*/
|
790
|
-
galleryId?: string;
|
791
|
-
}
|
792
|
-
export interface DeleteGalleryItemsRequest {
|
793
|
-
/** Gallery ID. */
|
794
|
-
galleryId?: string;
|
795
|
-
/** ID of the media item to delete. */
|
796
|
-
itemsIds?: string[];
|
797
|
-
}
|
798
|
-
export interface DeleteGalleryItemsResponse {
|
799
|
-
/** Gallery that previously included the deleted media item. */
|
800
|
-
gallery?: Gallery;
|
801
|
-
}
|
802
|
-
export interface CreateGalleryItemRequest {
|
803
|
-
/** Gallery ID. */
|
804
|
-
galleryId: string;
|
805
|
-
/** Media item to create. */
|
806
|
-
item: Item;
|
807
|
-
}
|
808
|
-
export interface CreateGalleryItemResponse {
|
809
|
-
/** Created media item. */
|
810
|
-
item?: Item;
|
811
|
-
}
|
812
|
-
export interface CreateGalleryItemsRequest {
|
813
|
-
/** Gallery ID. */
|
814
|
-
galleryId?: string;
|
815
|
-
/** Media items to create. */
|
816
|
-
items?: Item[];
|
817
|
-
}
|
818
|
-
export interface CreateGalleryItemsResponse {
|
819
|
-
/** Created media items. */
|
820
|
-
items?: Item[];
|
821
|
-
}
|
822
|
-
export interface UpdateGalleryItemRequest {
|
823
|
-
/** Gallery ID. */
|
824
|
-
galleryId: string;
|
825
|
-
/** The information for the media item being updated. */
|
826
|
-
item: Item;
|
827
|
-
}
|
828
|
-
export interface UpdateGalleryItemResponse {
|
829
|
-
/** Updated media item. */
|
830
|
-
item?: Item;
|
831
|
-
}
|
832
|
-
export interface DeleteGalleryItemRequest {
|
833
|
-
/** Gallery ID. */
|
834
|
-
galleryId: string;
|
835
|
-
/** ID of the media item to delete. */
|
836
|
-
itemId: string;
|
837
|
-
}
|
838
|
-
export interface DeleteGalleryItemResponse {
|
839
|
-
/**
|
840
|
-
* ID of the deleted media item.
|
841
|
-
* @readonly
|
842
|
-
*/
|
843
|
-
itemId?: string;
|
844
|
-
}
|
845
|
-
export interface PublishGalleryRequest {
|
846
|
-
/** ID of the gallery to publish. */
|
847
|
-
galleryId?: string;
|
848
|
-
}
|
849
|
-
export interface PublishGalleryResponse {
|
850
|
-
/** Published gallery. */
|
851
|
-
gallery?: Gallery;
|
852
|
-
}
|
853
|
-
export interface ListGalleriesResponseNonNullableFields {
|
854
|
-
galleries: {
|
855
|
-
items: {
|
856
|
-
image?: {
|
857
|
-
imageInfo: string;
|
858
|
-
focalPoint?: {
|
859
|
-
x: number;
|
860
|
-
y: number;
|
861
|
-
};
|
862
|
-
};
|
863
|
-
video?: {
|
864
|
-
type: VideoType;
|
865
|
-
videoInfo: string;
|
866
|
-
};
|
867
|
-
type: Type;
|
868
|
-
tags?: {
|
869
|
-
values: string[];
|
870
|
-
};
|
871
|
-
}[];
|
872
|
-
}[];
|
873
|
-
}
|
874
|
-
export interface GetGalleryResponseNonNullableFields {
|
875
|
-
gallery?: {
|
876
|
-
items: {
|
877
|
-
image?: {
|
878
|
-
imageInfo: string;
|
879
|
-
focalPoint?: {
|
880
|
-
x: number;
|
881
|
-
y: number;
|
882
|
-
};
|
883
|
-
};
|
884
|
-
video?: {
|
885
|
-
type: VideoType;
|
886
|
-
videoInfo: string;
|
887
|
-
};
|
888
|
-
type: Type;
|
889
|
-
tags?: {
|
890
|
-
values: string[];
|
891
|
-
};
|
892
|
-
}[];
|
893
|
-
};
|
894
|
-
}
|
895
|
-
export interface ListGalleryItemsResponseNonNullableFields {
|
896
|
-
items: {
|
897
|
-
image?: {
|
898
|
-
imageInfo: string;
|
899
|
-
focalPoint?: {
|
900
|
-
x: number;
|
901
|
-
y: number;
|
902
|
-
};
|
903
|
-
};
|
904
|
-
video?: {
|
905
|
-
type: VideoType;
|
906
|
-
videoInfo: string;
|
907
|
-
};
|
908
|
-
type: Type;
|
909
|
-
tags?: {
|
910
|
-
values: string[];
|
911
|
-
};
|
912
|
-
}[];
|
913
|
-
}
|
914
|
-
export interface GetGalleryItemResponseNonNullableFields {
|
915
|
-
item?: {
|
916
|
-
image?: {
|
917
|
-
imageInfo: string;
|
918
|
-
focalPoint?: {
|
919
|
-
x: number;
|
920
|
-
y: number;
|
921
|
-
};
|
922
|
-
};
|
923
|
-
video?: {
|
924
|
-
type: VideoType;
|
925
|
-
videoInfo: string;
|
926
|
-
};
|
927
|
-
type: Type;
|
928
|
-
tags?: {
|
929
|
-
values: string[];
|
930
|
-
};
|
931
|
-
};
|
932
|
-
}
|
933
|
-
export interface CreateGalleryResponseNonNullableFields {
|
934
|
-
gallery?: {
|
935
|
-
items: {
|
936
|
-
image?: {
|
937
|
-
imageInfo: string;
|
938
|
-
focalPoint?: {
|
939
|
-
x: number;
|
940
|
-
y: number;
|
941
|
-
};
|
942
|
-
};
|
943
|
-
video?: {
|
944
|
-
type: VideoType;
|
945
|
-
videoInfo: string;
|
946
|
-
};
|
947
|
-
type: Type;
|
948
|
-
tags?: {
|
949
|
-
values: string[];
|
950
|
-
};
|
951
|
-
}[];
|
952
|
-
};
|
953
|
-
}
|
954
|
-
export interface UpdateGalleryResponseNonNullableFields {
|
955
|
-
gallery?: {
|
956
|
-
items: {
|
957
|
-
image?: {
|
958
|
-
imageInfo: string;
|
959
|
-
focalPoint?: {
|
960
|
-
x: number;
|
961
|
-
y: number;
|
962
|
-
};
|
963
|
-
};
|
964
|
-
video?: {
|
965
|
-
type: VideoType;
|
966
|
-
videoInfo: string;
|
967
|
-
};
|
968
|
-
type: Type;
|
969
|
-
tags?: {
|
970
|
-
values: string[];
|
971
|
-
};
|
972
|
-
}[];
|
973
|
-
};
|
974
|
-
}
|
975
|
-
export interface DeleteGalleryResponseNonNullableFields {
|
976
|
-
galleryId: string;
|
977
|
-
}
|
978
|
-
export interface CreateGalleryItemResponseNonNullableFields {
|
979
|
-
item?: {
|
980
|
-
image?: {
|
981
|
-
imageInfo: string;
|
982
|
-
focalPoint?: {
|
983
|
-
x: number;
|
984
|
-
y: number;
|
985
|
-
};
|
986
|
-
};
|
987
|
-
video?: {
|
988
|
-
type: VideoType;
|
989
|
-
videoInfo: string;
|
990
|
-
};
|
991
|
-
type: Type;
|
992
|
-
tags?: {
|
993
|
-
values: string[];
|
994
|
-
};
|
995
|
-
};
|
996
|
-
}
|
997
|
-
export interface UpdateGalleryItemResponseNonNullableFields {
|
998
|
-
item?: {
|
999
|
-
image?: {
|
1000
|
-
imageInfo: string;
|
1001
|
-
focalPoint?: {
|
1002
|
-
x: number;
|
1003
|
-
y: number;
|
1004
|
-
};
|
1005
|
-
};
|
1006
|
-
video?: {
|
1007
|
-
type: VideoType;
|
1008
|
-
videoInfo: string;
|
1009
|
-
};
|
1010
|
-
type: Type;
|
1011
|
-
tags?: {
|
1012
|
-
values: string[];
|
1013
|
-
};
|
1014
|
-
};
|
1015
|
-
}
|
1016
|
-
export interface DeleteGalleryItemResponseNonNullableFields {
|
1017
|
-
itemId: string;
|
1018
|
-
}
|
1019
|
-
/**
|
1020
|
-
* Retrieves a list of galleries.
|
1021
|
-
*
|
1022
|
-
* The `listGalleries()` function returns a Promise that resolves to a list of up to 10 galleries at a given time. To list the next 10 galleries in your site's backend, use the `offset` parameter.
|
1023
|
-
* @public
|
1024
|
-
* @documentationMaturity preview
|
1025
|
-
* @param options - Options to use when getting the list of galleries.
|
1026
|
-
* @permissionScope Manage Galleries
|
1027
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1028
|
-
* @permissionScope Read Galleries
|
1029
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES
|
1030
|
-
* @applicableIdentity APP
|
1031
|
-
* @applicableIdentity MEMBER
|
1032
|
-
* @applicableIdentity VISITOR
|
1033
|
-
*/
|
1034
|
-
export declare function listGalleries(options?: ListGalleriesOptions): Promise<ListGalleriesResponse & ListGalleriesResponseNonNullableFields>;
|
1035
|
-
export interface ListGalleriesOptions {
|
1036
|
-
/** Number of galleries to list. Defaults to 10. */
|
1037
|
-
itemLimit?: number | null;
|
1038
|
-
/** Number of galleries to skip in the returns. Defaults to 0. */
|
1039
|
-
offset?: number | null;
|
1040
|
-
/** Number of galleries to list. Defaults to 10. */
|
1041
|
-
limit?: number | null;
|
1042
|
-
}
|
1043
|
-
/**
|
1044
|
-
* Gets a gallery by ID.
|
1045
|
-
*
|
1046
|
-
* The `getGallery()` function returns a Promise that resolves to a gallery whose ID matches the given ID.
|
1047
|
-
* @param galleryId - Gallery ID.
|
1048
|
-
* @public
|
1049
|
-
* @documentationMaturity preview
|
1050
|
-
* @requiredField galleryId
|
1051
|
-
* @param options - Options to use when getting the gallery.
|
1052
|
-
* @permissionScope Manage Galleries
|
1053
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1054
|
-
* @permissionScope Read Galleries
|
1055
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES
|
1056
|
-
* @applicableIdentity APP
|
1057
|
-
* @applicableIdentity MEMBER
|
1058
|
-
* @applicableIdentity VISITOR
|
1059
|
-
* @returns Returned gallery.
|
1060
|
-
*/
|
1061
|
-
export declare function getGallery(galleryId: string, options?: GetGalleryOptions): Promise<Gallery & NonNullable<GetGalleryResponseNonNullableFields>['gallery']>;
|
1062
|
-
export interface GetGalleryOptions extends GetGalleryRequestVersionOneOf {
|
1063
|
-
/** Number of media items to skip in the returns. Defaults to 0. */
|
1064
|
-
itemOffset?: number | null;
|
1065
|
-
/**
|
1066
|
-
* Maximum number of media items to return. <br />
|
1067
|
-
*
|
1068
|
-
* Min: `1` <br />
|
1069
|
-
* Max: `100` <br />
|
1070
|
-
* Default: `50`
|
1071
|
-
*/
|
1072
|
-
itemLimit?: number | null;
|
1073
|
-
}
|
1074
|
-
/**
|
1075
|
-
* Retrieves a list of media items in a specified gallery.
|
1076
|
-
*
|
1077
|
-
* The `listGalleryItems()` function returns a Promise that resolves to a list of up to 100 gallery items. The gallery items are listed by `sortOrder` in descending order.
|
1078
|
-
* @param galleryId - Gallery ID.
|
1079
|
-
* @public
|
1080
|
-
* @documentationMaturity preview
|
1081
|
-
* @requiredField galleryId
|
1082
|
-
* @param options - Options to use when getting the list of gallery items.
|
1083
|
-
* @permissionScope Manage Galleries
|
1084
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1085
|
-
* @permissionScope Read Galleries
|
1086
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES
|
1087
|
-
* @applicableIdentity APP
|
1088
|
-
* @applicableIdentity MEMBER
|
1089
|
-
* @applicableIdentity VISITOR
|
1090
|
-
*/
|
1091
|
-
export declare function listGalleryItems(galleryId: string, options?: ListGalleryItemsOptions): Promise<ListGalleryItemsResponse & ListGalleryItemsResponseNonNullableFields>;
|
1092
|
-
export interface ListGalleryItemsOptions {
|
1093
|
-
/** Number of media items to skip in the returns. Defaults to 0. */
|
1094
|
-
itemOffset?: number | null;
|
1095
|
-
/**
|
1096
|
-
* Maximum number of media items to return. <br />
|
1097
|
-
*
|
1098
|
-
* Min: `1` <br />
|
1099
|
-
* Max: `100` <br />
|
1100
|
-
* Default: `50`
|
1101
|
-
*/
|
1102
|
-
itemLimit?: number | null;
|
1103
|
-
}
|
1104
|
-
/**
|
1105
|
-
* Gets a gallery item by ID.
|
1106
|
-
*
|
1107
|
-
* The `getGalleryItem()` function returns a Promise that resolves to a media item in a specified gallery whose ID matches the given ID.
|
1108
|
-
* @public
|
1109
|
-
* @documentationMaturity preview
|
1110
|
-
* @requiredField identifiers
|
1111
|
-
* @requiredField identifiers.galleryId
|
1112
|
-
* @requiredField identifiers.itemId
|
1113
|
-
* @param identifiers - Gallery ID and Item ID.
|
1114
|
-
* @permissionScope Manage Galleries
|
1115
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1116
|
-
* @permissionScope Read Galleries
|
1117
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES
|
1118
|
-
* @applicableIdentity APP
|
1119
|
-
* @applicableIdentity MEMBER
|
1120
|
-
* @applicableIdentity VISITOR
|
1121
|
-
* @returns Returned media item.
|
1122
|
-
*/
|
1123
|
-
export declare function getGalleryItem(identifiers: GetGalleryItemIdentifiers): Promise<Item & NonNullable<GetGalleryItemResponseNonNullableFields>['item']>;
|
1124
|
-
export interface GetGalleryItemIdentifiers {
|
1125
|
-
/** Gallery ID. */
|
1126
|
-
galleryId: string;
|
1127
|
-
/** Item ID. */
|
1128
|
-
itemId: string;
|
1129
|
-
}
|
1130
|
-
/**
|
1131
|
-
* Creates a gallery.
|
1132
|
-
*
|
1133
|
-
* The `createGallery()` function returns a Promise that resolves to a newly-created gallery after it has successfully been created.
|
1134
|
-
*
|
1135
|
-
* You can create your own gallery by providing the gallery information, or clone an existing gallery using the ID of that existing gallery. When a gallery is cloned, the newly-created gallery includes the same properties as the existing gallery except for the gallery and item IDs, sort order, and created and updated dates.
|
1136
|
-
*
|
1137
|
-
* The newly-created gallery is only available on your backend, and doesn't appear on your live site. To display your backend gallery on your live site, you need to connect it to a gallery component on your live site. To do this, import the `createGallery()` function to your page code, and write code to convert the backend gallery object to the frontend gallery component object. Once converted, the newly created backend gallery is visible on your live site. For reference, check out the code example, "Create a gallery and display it on your live site". To learn more, see [Displaying a Pro Gallery on Your Site Using the Pro Gallery Backend API](https://support.wix.com/en/article/velo-tutorial-displaying-a-pro-gallery-on-your-site-using-the-pro-gallery-backend-api).
|
1138
|
-
*
|
1139
|
-
* <blockquote class="important">
|
1140
|
-
*
|
1141
|
-
* __Important:__
|
1142
|
-
* When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
|
1143
|
-
*
|
1144
|
-
* </blockquote>
|
1145
|
-
*
|
1146
|
-
* #### Override permissions
|
1147
|
-
* This function is restricted and only runs if you elevate permissions using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
1148
|
-
* <blockquote class='warning'>
|
1149
|
-
* <p><strong>Warning:</strong> Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.</p>
|
1150
|
-
* </blockquote>
|
1151
|
-
* @public
|
1152
|
-
* @documentationMaturity preview
|
1153
|
-
* @requiredField options.gallery.items.image.imageInfo
|
1154
|
-
* @requiredField options.gallery.items.text.html
|
1155
|
-
* @requiredField options.gallery.items.video.videoInfo
|
1156
|
-
* @param options - Options to use when creating the gallery.
|
1157
|
-
* @permissionScope Manage Galleries
|
1158
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1159
|
-
* @applicableIdentity APP
|
1160
|
-
* @returns Created gallery.
|
1161
|
-
*/
|
1162
|
-
export declare function createGallery(options?: CreateGalleryOptions): Promise<Gallery & NonNullable<CreateGalleryResponseNonNullableFields>['gallery']>;
|
1163
|
-
export interface CreateGalleryOptions {
|
1164
|
-
/** Gallery to create. */
|
1165
|
-
gallery?: Gallery;
|
1166
|
-
/** Gallery ID to clone from. */
|
1167
|
-
cloneFromGalleryId?: string | null;
|
1168
|
-
}
|
1169
|
-
/**
|
1170
|
-
* Updates a gallery.
|
1171
|
-
*
|
1172
|
-
* The `updateGallery()` function returns a Promise that resolves to an updated gallery. Only the fields in the `gallery` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.
|
1173
|
-
*
|
1174
|
-
* <blockquote class="important">
|
1175
|
-
*
|
1176
|
-
* __Important:__
|
1177
|
-
* When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
|
1178
|
-
*
|
1179
|
-
* </blockquote>
|
1180
|
-
*
|
1181
|
-
* #### Override permissions
|
1182
|
-
* This function is restricted and only runs if you elevate permissions using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
1183
|
-
* <blockquote class='warning'>
|
1184
|
-
* <p><strong>Warning:</strong> Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.</p>
|
1185
|
-
* </blockquote>
|
1186
|
-
* @public
|
1187
|
-
* @documentationMaturity preview
|
1188
|
-
* @requiredField _id
|
1189
|
-
* @requiredField gallery
|
1190
|
-
* @requiredField gallery.items.image.imageInfo
|
1191
|
-
* @requiredField gallery.items.text.html
|
1192
|
-
* @requiredField gallery.items.video.videoInfo
|
1193
|
-
* @param _id - ID of the gallery to update.
|
1194
|
-
* @param gallery - The information for the gallery being updated.
|
1195
|
-
* @permissionScope Manage Galleries
|
1196
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1197
|
-
* @applicableIdentity APP
|
1198
|
-
* @returns Updated gallery.
|
1199
|
-
*/
|
1200
|
-
export declare function updateGallery(_id: string | null, gallery: UpdateGallery): Promise<Gallery & NonNullable<UpdateGalleryResponseNonNullableFields>['gallery']>;
|
1201
|
-
export interface UpdateGallery {
|
1202
|
-
/**
|
1203
|
-
* Gallery ID.
|
1204
|
-
* @readonly
|
1205
|
-
*/
|
1206
|
-
_id?: string | null;
|
1207
|
-
/** Gallery name. */
|
1208
|
-
name?: string | null;
|
1209
|
-
/**
|
1210
|
-
* Total number of items in the gallery.
|
1211
|
-
* @readonly
|
1212
|
-
*/
|
1213
|
-
totalItems?: number | null;
|
1214
|
-
/** Media items in the gallery. */
|
1215
|
-
items?: Item[];
|
1216
|
-
/**
|
1217
|
-
* Index that determines which position a gallery is displayed on the site. <br />
|
1218
|
-
*
|
1219
|
-
* >**Note:** If you assign the same sort order index to more than one gallery, the function fails.
|
1220
|
-
*/
|
1221
|
-
sortOrder?: number | null;
|
1222
|
-
/**
|
1223
|
-
* Date and time the gallery was created.
|
1224
|
-
* @readonly
|
1225
|
-
*/
|
1226
|
-
_createdDate?: Date;
|
1227
|
-
}
|
1228
|
-
/**
|
1229
|
-
* Deletes a gallery.
|
1230
|
-
*
|
1231
|
-
* The `deleteGallery()` function returns a Promise that resolves to the ID of the deleted gallery. When a gallery is deleted, the deleted gallery is no longer returned when calling the [`listGalleries()`](#listgalleries) function.
|
1232
|
-
*
|
1233
|
-
* #### Override permissions
|
1234
|
-
* This function is restricted and only runs if you elevate permissions using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
1235
|
-
* <blockquote class='warning'>
|
1236
|
-
* <p><strong>Warning:</strong> Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.</p>
|
1237
|
-
* </blockquote>
|
1238
|
-
* @param galleryId - ID of the gallery to delete.
|
1239
|
-
* @public
|
1240
|
-
* @documentationMaturity preview
|
1241
|
-
* @requiredField galleryId
|
1242
|
-
* @permissionScope Manage Galleries
|
1243
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1244
|
-
* @applicableIdentity APP
|
1245
|
-
*/
|
1246
|
-
export declare function deleteGallery(galleryId: string): Promise<DeleteGalleryResponse & DeleteGalleryResponseNonNullableFields>;
|
1247
|
-
/**
|
1248
|
-
* Creates a media item in a specified gallery.
|
1249
|
-
*
|
1250
|
-
* The `createGalleryItem()` function returns a Promise that resolves to a newly-created gallery item after it has successfully been created.
|
1251
|
-
*
|
1252
|
-
* <blockquote class="important">
|
1253
|
-
*
|
1254
|
-
* __Important:__
|
1255
|
-
* When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
|
1256
|
-
*
|
1257
|
-
* </blockquote>
|
1258
|
-
*
|
1259
|
-
* #### Override permissions
|
1260
|
-
* This function is restricted and only runs if you elevate permissions using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
1261
|
-
* <blockquote class='warning'>
|
1262
|
-
* <p><strong>Warning:</strong> Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.</p>
|
1263
|
-
* </blockquote>
|
1264
|
-
* @param galleryId - Gallery ID.
|
1265
|
-
* @param item - Media item to create.
|
1266
|
-
* @public
|
1267
|
-
* @documentationMaturity preview
|
1268
|
-
* @requiredField galleryId
|
1269
|
-
* @requiredField item
|
1270
|
-
* @requiredField item.image.imageInfo
|
1271
|
-
* @requiredField item.text.html
|
1272
|
-
* @requiredField item.video.videoInfo
|
1273
|
-
* @permissionScope Manage Galleries
|
1274
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1275
|
-
* @applicableIdentity APP
|
1276
|
-
* @returns Created media item.
|
1277
|
-
*/
|
1278
|
-
export declare function createGalleryItem(galleryId: string, item: Item): Promise<Item & NonNullable<CreateGalleryItemResponseNonNullableFields>['item']>;
|
1279
|
-
/**
|
1280
|
-
* Updates a media item in a specified gallery.
|
1281
|
-
*
|
1282
|
-
* The `updateGalleryItem()` function returns a Promise that resolves to an updated gallery item. Only the fields in the `item` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.
|
1283
|
-
*
|
1284
|
-
* <blockquote class="important">
|
1285
|
-
*
|
1286
|
-
* __Important:__
|
1287
|
-
* When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
|
1288
|
-
*
|
1289
|
-
* </blockquote>
|
1290
|
-
*
|
1291
|
-
* #### Override permissions
|
1292
|
-
* This function is restricted and only runs if you elevate permissions using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
1293
|
-
* <blockquote class='warning'>
|
1294
|
-
* <p><strong>Warning:</strong> Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.</p>
|
1295
|
-
* </blockquote>
|
1296
|
-
* @public
|
1297
|
-
* @documentationMaturity preview
|
1298
|
-
* @requiredField identifiers
|
1299
|
-
* @requiredField identifiers.galleryId
|
1300
|
-
* @requiredField identifiers.itemId
|
1301
|
-
* @requiredField item
|
1302
|
-
* @requiredField item.image.imageInfo
|
1303
|
-
* @requiredField item.text.html
|
1304
|
-
* @requiredField item.video.videoInfo
|
1305
|
-
* @param item - The information for the gallery item being updated.
|
1306
|
-
* @param identifiers - Gallery ID and Item ID.
|
1307
|
-
* @permissionScope Manage Galleries
|
1308
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1309
|
-
* @applicableIdentity APP
|
1310
|
-
* @returns Updated media item.
|
1311
|
-
*/
|
1312
|
-
export declare function updateGalleryItem(identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item & NonNullable<UpdateGalleryItemResponseNonNullableFields>['item']>;
|
1313
|
-
export interface UpdateGalleryItemIdentifiers {
|
1314
|
-
/** ID of the gallery containing the item to update. */
|
1315
|
-
galleryId: string;
|
1316
|
-
/**
|
1317
|
-
* ID of the item to update.
|
1318
|
-
* @readonly
|
1319
|
-
*/
|
1320
|
-
itemId?: string | null;
|
1321
|
-
}
|
1322
|
-
export interface UpdateGalleryItem {
|
1323
|
-
/** Details about the image. */
|
1324
|
-
image?: Image;
|
1325
|
-
/** Details about the video. */
|
1326
|
-
video?: Video;
|
1327
|
-
/** Details about the text file. */
|
1328
|
-
text?: Text;
|
1329
|
-
/**
|
1330
|
-
* Item ID.
|
1331
|
-
* @readonly
|
1332
|
-
*/
|
1333
|
-
_id?: string | null;
|
1334
|
-
/**
|
1335
|
-
* Index that determines which position a media item is displayed in the gallery. <br />
|
1336
|
-
*
|
1337
|
-
* Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
|
1338
|
-
*
|
1339
|
-
* >**Note:** If you assign the same sort order index to more than one media item in a gallery, the function fails.
|
1340
|
-
*/
|
1341
|
-
sortOrder?: number | null;
|
1342
|
-
/** Item title. */
|
1343
|
-
title?: string | null;
|
1344
|
-
/** Item description. */
|
1345
|
-
description?: string | null;
|
1346
|
-
/** Link from the item. You can link to Wix sites or external URLs. */
|
1347
|
-
link?: Link;
|
1348
|
-
/** @readonly */
|
1349
|
-
type?: Type;
|
1350
|
-
/**
|
1351
|
-
* Date and time the item was created.
|
1352
|
-
* @readonly
|
1353
|
-
*/
|
1354
|
-
_createdDate?: Date;
|
1355
|
-
/**
|
1356
|
-
* Date and time the item was last updated.
|
1357
|
-
* @readonly
|
1358
|
-
*/
|
1359
|
-
_updatedDate?: Date;
|
1360
|
-
/** Item tags. */
|
1361
|
-
tags?: Tags;
|
1362
|
-
}
|
1363
|
-
/**
|
1364
|
-
* Deletes a media item from a gallery.
|
1365
|
-
*
|
1366
|
-
* The `deleteGalleryItem()` function returns a Promise that resolves to the ID of the deleted gallery item. When a gallery item is deleted, the deleted gallery item is no longer returned when calling the [`listGalleryItems()`](#listgalleryitems) function.
|
1367
|
-
*
|
1368
|
-
* #### Override permissions
|
1369
|
-
* This function is restricted and only runs if you elevate permissions using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
1370
|
-
* <blockquote class='warning'>
|
1371
|
-
* <p><strong>Warning:</strong> Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.</p>
|
1372
|
-
* </blockquote>
|
1373
|
-
* @public
|
1374
|
-
* @documentationMaturity preview
|
1375
|
-
* @requiredField identifiers
|
1376
|
-
* @requiredField identifiers.galleryId
|
1377
|
-
* @requiredField identifiers.itemId
|
1378
|
-
* @param identifiers - Gallery ID and Item ID.
|
1379
|
-
* @permissionScope Manage Galleries
|
1380
|
-
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
1381
|
-
* @applicableIdentity APP
|
1382
|
-
*/
|
1383
|
-
export declare function deleteGalleryItem(identifiers: DeleteGalleryItemIdentifiers): Promise<DeleteGalleryItemResponse & DeleteGalleryItemResponseNonNullableFields>;
|
1384
|
-
export interface DeleteGalleryItemIdentifiers {
|
1385
|
-
/** Gallery ID. */
|
1386
|
-
galleryId: string;
|
1387
|
-
/** ID of the media item to delete. */
|
1388
|
-
itemId: string;
|
1389
|
-
}
|