@wix/auto_sdk_pro-gallery_pro-gallery 1.0.0 → 1.0.2
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/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +2 -2
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js +2 -2
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +1 -1
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +1 -1
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js +56 -2
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +1 -1
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +1 -1
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +1 -1
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts +430 -183
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js +10 -10
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +1 -1
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +514 -209
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +23 -23
- package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +1 -1
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +2 -2
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.js +1 -1
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +1 -1
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +1 -1
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.js +56 -2
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +1 -1
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +1 -1
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +1 -1
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts +430 -183
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.js +9 -9
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +1 -1
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +514 -209
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +22 -22
- package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +1 -1
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +2 -2
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js +2 -2
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +1 -1
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +1 -1
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js +56 -2
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +1 -1
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +1 -1
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +1 -1
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts +430 -183
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js +10 -10
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +1 -1
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +514 -209
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +23 -23
- package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +1 -1
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +2 -2
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.js +1 -1
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +1 -1
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +1 -1
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.js +56 -2
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +1 -1
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +1 -1
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +1 -1
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts +430 -183
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.js +9 -9
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +1 -1
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +514 -209
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +22 -22
- package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +1 -1
- package/package.json +2 -2
@@ -2,6 +2,7 @@ export interface Gallery {
|
|
2
2
|
/**
|
3
3
|
* Gallery ID.
|
4
4
|
* @readonly
|
5
|
+
* @format GUID
|
5
6
|
*/
|
6
7
|
_id?: string | null;
|
7
8
|
/** Gallery name. */
|
@@ -35,6 +36,7 @@ export interface Item extends ItemMetadataOneOf {
|
|
35
36
|
/**
|
36
37
|
* Item ID.
|
37
38
|
* @readonly
|
39
|
+
* @format GUID
|
38
40
|
*/
|
39
41
|
_id?: string | null;
|
40
42
|
/**
|
@@ -138,7 +140,10 @@ export interface WixLinkLinkOneOf {
|
|
138
140
|
tpaPage?: TpaPageLink;
|
139
141
|
}
|
140
142
|
export interface ExternalLink {
|
141
|
-
/**
|
143
|
+
/**
|
144
|
+
* The url of the page
|
145
|
+
* @format WEB_URL
|
146
|
+
*/
|
142
147
|
url?: string;
|
143
148
|
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
144
149
|
target?: string | null;
|
@@ -165,7 +170,10 @@ export interface PageLink {
|
|
165
170
|
pageId?: string;
|
166
171
|
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
|
167
172
|
target?: string | null;
|
168
|
-
/**
|
173
|
+
/**
|
174
|
+
* rel of link
|
175
|
+
* @maxSize 20
|
176
|
+
*/
|
169
177
|
rel?: LinkRel[];
|
170
178
|
}
|
171
179
|
export interface AnchorLink {
|
@@ -175,7 +183,10 @@ export interface AnchorLink {
|
|
175
183
|
anchorDataId?: string;
|
176
184
|
/** The page id we want from the site */
|
177
185
|
pageId?: string;
|
178
|
-
/**
|
186
|
+
/**
|
187
|
+
* rel of link
|
188
|
+
* @maxSize 20
|
189
|
+
*/
|
179
190
|
rel?: LinkRel[];
|
180
191
|
}
|
181
192
|
export interface DynamicPageLink {
|
@@ -185,7 +196,10 @@ export interface DynamicPageLink {
|
|
185
196
|
innerRoute?: string;
|
186
197
|
/** The data id (from the JSON page) of the anchor that should be used */
|
187
198
|
anchorDataId?: string | null;
|
188
|
-
/**
|
199
|
+
/**
|
200
|
+
* rel of link
|
201
|
+
* @maxSize 20
|
202
|
+
*/
|
189
203
|
rel?: LinkRel[];
|
190
204
|
}
|
191
205
|
export interface DocumentLink {
|
@@ -197,7 +211,10 @@ export interface DocumentLink {
|
|
197
211
|
indexable?: boolean;
|
198
212
|
}
|
199
213
|
export interface EmailLink {
|
200
|
-
/**
|
214
|
+
/**
|
215
|
+
* The email we will be sending a message to
|
216
|
+
* @format EMAIL
|
217
|
+
*/
|
201
218
|
recipient?: string;
|
202
219
|
/** The subject of the email */
|
203
220
|
subject?: string | null;
|
@@ -205,7 +222,11 @@ export interface EmailLink {
|
|
205
222
|
body?: string | null;
|
206
223
|
}
|
207
224
|
export interface PhoneLink {
|
208
|
-
/**
|
225
|
+
/**
|
226
|
+
* The phone number we want to link to
|
227
|
+
* @format PHONE
|
228
|
+
* @maxLength 100
|
229
|
+
*/
|
209
230
|
phoneNumber?: string;
|
210
231
|
}
|
211
232
|
export interface AddressLink {
|
@@ -213,7 +234,10 @@ export interface AddressLink {
|
|
213
234
|
address?: string;
|
214
235
|
}
|
215
236
|
export interface WhatsAppLink {
|
216
|
-
/**
|
237
|
+
/**
|
238
|
+
* The whatsApp phone number we want to connect with
|
239
|
+
* @format PHONE
|
240
|
+
*/
|
217
241
|
phoneNumber?: string;
|
218
242
|
}
|
219
243
|
/** Link to a TPA page */
|
@@ -228,7 +252,10 @@ export interface TpaPageLink {
|
|
228
252
|
appDefinitionId?: string;
|
229
253
|
/** The relativepath of linked page */
|
230
254
|
path?: string;
|
231
|
-
/**
|
255
|
+
/**
|
256
|
+
* rel of link
|
257
|
+
* @maxSize 20
|
258
|
+
*/
|
232
259
|
rel?: LinkRel[];
|
233
260
|
}
|
234
261
|
export declare enum Type {
|
@@ -249,6 +276,8 @@ export interface Image {
|
|
249
276
|
*
|
250
277
|
* Min: `30` <br />
|
251
278
|
* Max: `100`
|
279
|
+
* @min 30
|
280
|
+
* @max 100
|
252
281
|
*/
|
253
282
|
quality?: number | null;
|
254
283
|
/** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
|
@@ -271,6 +300,7 @@ export interface UnsharpMasking {
|
|
271
300
|
*
|
272
301
|
* Min: `0` <br />
|
273
302
|
* Max: `5`
|
303
|
+
* @max 5
|
274
304
|
*/
|
275
305
|
amount?: number | null;
|
276
306
|
/** Unsharp masking radius in pixels. Controls the sharpening width. */
|
@@ -280,6 +310,7 @@ export interface UnsharpMasking {
|
|
280
310
|
*
|
281
311
|
* Min: `0` <br />
|
282
312
|
* Max: `1`
|
313
|
+
* @max 1
|
283
314
|
*/
|
284
315
|
threshold?: number | null;
|
285
316
|
}
|
@@ -351,9 +382,15 @@ export interface SecondaryMediaMetadataOneOf {
|
|
351
382
|
text?: Text;
|
352
383
|
}
|
353
384
|
export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
354
|
-
/**
|
385
|
+
/**
|
386
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
387
|
+
* @format GUID
|
388
|
+
*/
|
355
389
|
metaSiteId?: string;
|
356
|
-
/**
|
390
|
+
/**
|
391
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
392
|
+
* @format GUID
|
393
|
+
*/
|
357
394
|
siteId?: string;
|
358
395
|
/** Invalidate by App */
|
359
396
|
app?: App;
|
@@ -363,7 +400,10 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
363
400
|
uri?: URI;
|
364
401
|
/** Invalidate by file (for media files such as PDFs) */
|
365
402
|
file?: File;
|
366
|
-
/**
|
403
|
+
/**
|
404
|
+
* tell us why you're invalidating the cache. You don't need to add your app name
|
405
|
+
* @maxLength 256
|
406
|
+
*/
|
367
407
|
reason?: string | null;
|
368
408
|
/** Is local DS */
|
369
409
|
localDc?: boolean;
|
@@ -371,9 +411,15 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
371
411
|
}
|
372
412
|
/** @oneof */
|
373
413
|
export interface InvalidateCacheGetByOneOf {
|
374
|
-
/**
|
414
|
+
/**
|
415
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
416
|
+
* @format GUID
|
417
|
+
*/
|
375
418
|
metaSiteId?: string;
|
376
|
-
/**
|
419
|
+
/**
|
420
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
421
|
+
* @format GUID
|
422
|
+
*/
|
377
423
|
siteId?: string;
|
378
424
|
/** Invalidate by App */
|
379
425
|
app?: App;
|
@@ -385,33 +431,59 @@ export interface InvalidateCacheGetByOneOf {
|
|
385
431
|
file?: File;
|
386
432
|
}
|
387
433
|
export interface App {
|
388
|
-
/**
|
434
|
+
/**
|
435
|
+
* The AppDefId
|
436
|
+
* @minLength 1
|
437
|
+
*/
|
389
438
|
appDefId?: string;
|
390
|
-
/**
|
439
|
+
/**
|
440
|
+
* The instance Id
|
441
|
+
* @format GUID
|
442
|
+
*/
|
391
443
|
instanceId?: string;
|
392
444
|
}
|
393
445
|
export interface Page {
|
394
|
-
/**
|
446
|
+
/**
|
447
|
+
* the msid the page is on
|
448
|
+
* @format GUID
|
449
|
+
*/
|
395
450
|
metaSiteId?: string;
|
396
|
-
/**
|
451
|
+
/**
|
452
|
+
* Invalidate by Page ID
|
453
|
+
* @minLength 1
|
454
|
+
*/
|
397
455
|
pageId?: string;
|
398
456
|
}
|
399
457
|
export interface URI {
|
400
|
-
/**
|
458
|
+
/**
|
459
|
+
* the msid the URI is on
|
460
|
+
* @format GUID
|
461
|
+
*/
|
401
462
|
metaSiteId?: string;
|
402
|
-
/**
|
463
|
+
/**
|
464
|
+
* URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
|
465
|
+
* @minLength 1
|
466
|
+
*/
|
403
467
|
uriPath?: string;
|
404
468
|
}
|
405
469
|
export interface File {
|
406
|
-
/**
|
470
|
+
/**
|
471
|
+
* the msid the file is related to
|
472
|
+
* @format GUID
|
473
|
+
*/
|
407
474
|
metaSiteId?: string;
|
408
|
-
/**
|
475
|
+
/**
|
476
|
+
* Invalidate by filename (for media files such as PDFs)
|
477
|
+
* @minLength 1
|
478
|
+
* @maxLength 256
|
479
|
+
*/
|
409
480
|
fileName?: string;
|
410
481
|
}
|
411
482
|
export interface GalleryPublished {
|
412
483
|
/**
|
413
484
|
* id of the gallery that will be published
|
414
485
|
* @readonly
|
486
|
+
* @format GUID
|
415
487
|
*/
|
416
488
|
galleryId?: string;
|
417
489
|
isRc?: boolean;
|
@@ -421,9 +493,15 @@ export interface GalleryPublished {
|
|
421
493
|
oldRevision?: Date | null;
|
422
494
|
}
|
423
495
|
export interface CleanDeletedGalleriesEvent {
|
424
|
-
/**
|
496
|
+
/**
|
497
|
+
* @readonly
|
498
|
+
* @format GUID
|
499
|
+
*/
|
425
500
|
instanceId?: string;
|
426
|
-
/**
|
501
|
+
/**
|
502
|
+
* @readonly
|
503
|
+
* @format GUID
|
504
|
+
*/
|
427
505
|
metaSiteId?: string;
|
428
506
|
/** @readonly */
|
429
507
|
htmlSiteRevision?: string;
|
@@ -431,12 +509,16 @@ export interface CleanDeletedGalleriesEvent {
|
|
431
509
|
timeSitePublished?: Date | null;
|
432
510
|
}
|
433
511
|
export interface ProgallerypublisherPublishGalleryRequest {
|
434
|
-
/**
|
512
|
+
/**
|
513
|
+
* id of the gallery that will be published
|
514
|
+
* @format GUID
|
515
|
+
*/
|
435
516
|
galleryId?: string;
|
436
517
|
}
|
437
518
|
export interface ProgallerypublisherPublishGalleryResponse {
|
438
519
|
}
|
439
520
|
export interface GetActiveGalleryRevisionRequest {
|
521
|
+
/** @format GUID */
|
440
522
|
galleryId?: string;
|
441
523
|
}
|
442
524
|
export interface GetActiveGalleryRevisionResponse {
|
@@ -444,25 +526,41 @@ export interface GetActiveGalleryRevisionResponse {
|
|
444
526
|
htmlSiteRevision?: string | null;
|
445
527
|
}
|
446
528
|
export interface GetGalleryRevisionRequest {
|
529
|
+
/** @format GUID */
|
447
530
|
galleryId?: string;
|
448
531
|
revision?: Date | null;
|
449
532
|
}
|
450
533
|
export interface GetGalleryRevisionResponse {
|
451
534
|
htmlSiteRevision?: string | null;
|
535
|
+
/** @format GUID */
|
452
536
|
instanceId?: string | null;
|
453
537
|
}
|
454
538
|
export interface PublishGalleryItemRequest {
|
455
|
-
/**
|
539
|
+
/**
|
540
|
+
* id of the gallery that will be published
|
541
|
+
* @format GUID
|
542
|
+
*/
|
456
543
|
galleryId?: string;
|
457
|
-
/**
|
544
|
+
/**
|
545
|
+
* id of the item that will be published
|
546
|
+
* @format GUID
|
547
|
+
*/
|
458
548
|
itemId?: string;
|
459
549
|
}
|
460
550
|
export interface PublishGalleryItemResponse {
|
461
551
|
}
|
462
552
|
export interface PublishGalleryItemsRequest {
|
463
|
-
/**
|
553
|
+
/**
|
554
|
+
* id of the gallery that will be published
|
555
|
+
* @format GUID
|
556
|
+
*/
|
464
557
|
galleryId?: string;
|
465
|
-
/**
|
558
|
+
/**
|
559
|
+
* ids of the items that will be published
|
560
|
+
* @format GUID
|
561
|
+
* @minSize 1
|
562
|
+
* @maxSize 100
|
563
|
+
*/
|
466
564
|
itemIds?: string[];
|
467
565
|
}
|
468
566
|
export interface PublishGalleryItemsResponse {
|
@@ -470,15 +568,27 @@ export interface PublishGalleryItemsResponse {
|
|
470
568
|
export interface Empty {
|
471
569
|
}
|
472
570
|
export interface HtmlSitePublished {
|
473
|
-
/**
|
571
|
+
/**
|
572
|
+
* Application instance ID
|
573
|
+
* @maxLength 50
|
574
|
+
*/
|
474
575
|
appInstanceId?: string;
|
475
|
-
/**
|
576
|
+
/**
|
577
|
+
* Application type
|
578
|
+
* @maxLength 100
|
579
|
+
*/
|
476
580
|
appType?: string;
|
477
581
|
/** Revision */
|
478
582
|
revision?: string;
|
479
|
-
/**
|
583
|
+
/**
|
584
|
+
* MSID
|
585
|
+
* @maxLength 100
|
586
|
+
*/
|
480
587
|
metaSiteId?: string | null;
|
481
|
-
/**
|
588
|
+
/**
|
589
|
+
* optional branch id if publish is done from branch
|
590
|
+
* @format GUID
|
591
|
+
*/
|
482
592
|
branchId?: string | null;
|
483
593
|
/** The site's last transactionId */
|
484
594
|
lastTransactionId?: string | null;
|
@@ -488,15 +598,24 @@ export interface HtmlSitePublished {
|
|
488
598
|
publishDate?: string;
|
489
599
|
}
|
490
600
|
export interface EventsPage {
|
491
|
-
/**
|
601
|
+
/**
|
602
|
+
* Page's Id
|
603
|
+
* @maxLength 100
|
604
|
+
*/
|
492
605
|
_id?: string;
|
493
606
|
}
|
494
607
|
export interface HtmlSiteRCPublished {
|
495
|
-
/**
|
608
|
+
/**
|
609
|
+
* Application instance ID
|
610
|
+
* @maxLength 50
|
611
|
+
*/
|
496
612
|
appInstanceId?: string;
|
497
613
|
/** Revision */
|
498
614
|
revision?: string;
|
499
|
-
/**
|
615
|
+
/**
|
616
|
+
* Optional branch Id
|
617
|
+
* @format GUID
|
618
|
+
*/
|
500
619
|
branchId?: string | null;
|
501
620
|
/** Site's publish date */
|
502
621
|
publishDate?: string;
|
@@ -585,9 +704,15 @@ export interface ActionEvent {
|
|
585
704
|
body?: string;
|
586
705
|
}
|
587
706
|
export interface MessageEnvelope {
|
588
|
-
/**
|
707
|
+
/**
|
708
|
+
* App instance ID.
|
709
|
+
* @format GUID
|
710
|
+
*/
|
589
711
|
instanceId?: string | null;
|
590
|
-
/**
|
712
|
+
/**
|
713
|
+
* Event type.
|
714
|
+
* @maxLength 150
|
715
|
+
*/
|
591
716
|
eventType?: string;
|
592
717
|
/** The identification type and identity data. */
|
593
718
|
identity?: IdentificationData;
|
@@ -595,26 +720,50 @@ export interface MessageEnvelope {
|
|
595
720
|
data?: string;
|
596
721
|
}
|
597
722
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
598
|
-
/**
|
723
|
+
/**
|
724
|
+
* ID of a site visitor that has not logged in to the site.
|
725
|
+
* @format GUID
|
726
|
+
*/
|
599
727
|
anonymousVisitorId?: string;
|
600
|
-
/**
|
728
|
+
/**
|
729
|
+
* ID of a site visitor that has logged in to the site.
|
730
|
+
* @format GUID
|
731
|
+
*/
|
601
732
|
memberId?: string;
|
602
|
-
/**
|
733
|
+
/**
|
734
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
735
|
+
* @format GUID
|
736
|
+
*/
|
603
737
|
wixUserId?: string;
|
604
|
-
/**
|
738
|
+
/**
|
739
|
+
* ID of an app.
|
740
|
+
* @format GUID
|
741
|
+
*/
|
605
742
|
appId?: string;
|
606
743
|
/** @readonly */
|
607
744
|
identityType?: WebhookIdentityType;
|
608
745
|
}
|
609
746
|
/** @oneof */
|
610
747
|
export interface IdentificationDataIdOneOf {
|
611
|
-
/**
|
748
|
+
/**
|
749
|
+
* ID of a site visitor that has not logged in to the site.
|
750
|
+
* @format GUID
|
751
|
+
*/
|
612
752
|
anonymousVisitorId?: string;
|
613
|
-
/**
|
753
|
+
/**
|
754
|
+
* ID of a site visitor that has logged in to the site.
|
755
|
+
* @format GUID
|
756
|
+
*/
|
614
757
|
memberId?: string;
|
615
|
-
/**
|
758
|
+
/**
|
759
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
760
|
+
* @format GUID
|
761
|
+
*/
|
616
762
|
wixUserId?: string;
|
617
|
-
/**
|
763
|
+
/**
|
764
|
+
* ID of an app.
|
765
|
+
* @format GUID
|
766
|
+
*/
|
618
767
|
appId?: string;
|
619
768
|
}
|
620
769
|
export declare enum WebhookIdentityType {
|
@@ -624,129 +773,24 @@ export declare enum WebhookIdentityType {
|
|
624
773
|
WIX_USER = "WIX_USER",
|
625
774
|
APP = "APP"
|
626
775
|
}
|
627
|
-
export interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
|
628
|
-
/** insert/update documents */
|
629
|
-
update?: DocumentUpdateOperation;
|
630
|
-
/** delete by document ids */
|
631
|
-
deleteByIds?: DeleteByIdsOperation;
|
632
|
-
/** delete documents matching filter */
|
633
|
-
deleteByFilter?: DeleteByFilterOperation;
|
634
|
-
/** update documents matching filter */
|
635
|
-
updateByFilter?: UpdateByFilterOperation;
|
636
|
-
/** update only existing documents */
|
637
|
-
updateExisting?: UpdateExistingOperation;
|
638
|
-
/** application which owns documents */
|
639
|
-
appDefId?: string | null;
|
640
|
-
/** type of the documents */
|
641
|
-
documentType?: string | null;
|
642
|
-
/** language of the documents */
|
643
|
-
language?: string | null;
|
644
|
-
/** site documents belong to */
|
645
|
-
msId?: string | null;
|
646
|
-
}
|
647
|
-
/** @oneof */
|
648
|
-
export interface UpdateDocumentsEventOperationOneOf {
|
649
|
-
/** insert/update documents */
|
650
|
-
update?: DocumentUpdateOperation;
|
651
|
-
/** delete by document ids */
|
652
|
-
deleteByIds?: DeleteByIdsOperation;
|
653
|
-
/** delete documents matching filter */
|
654
|
-
deleteByFilter?: DeleteByFilterOperation;
|
655
|
-
/** update documents matching filter */
|
656
|
-
updateByFilter?: UpdateByFilterOperation;
|
657
|
-
/** update only existing documents */
|
658
|
-
updateExisting?: UpdateExistingOperation;
|
659
|
-
}
|
660
|
-
export interface DocumentUpdateOperation {
|
661
|
-
/** documents to index or update */
|
662
|
-
documents?: IndexDocument[];
|
663
|
-
}
|
664
|
-
export interface IndexDocument {
|
665
|
-
/** data bag with non-searchable fields (url, image) */
|
666
|
-
payload?: DocumentPayload;
|
667
|
-
/** what type of users should documents be visible to */
|
668
|
-
exposure?: Enum;
|
669
|
-
/** document with mandatory fields (id, title, description) and with fields specific to the type of the document */
|
670
|
-
document?: Record<string, any> | null;
|
671
|
-
/** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */
|
672
|
-
permittedMemberGroups?: string[];
|
673
|
-
/** if true SEO is disabled for this document */
|
674
|
-
seoHidden?: boolean | null;
|
675
|
-
/** if true the page is a lightbox popup */
|
676
|
-
isPopup?: boolean | null;
|
677
|
-
}
|
678
|
-
export interface DocumentPayload {
|
679
|
-
/** url of the page representing the document */
|
680
|
-
url?: string | null;
|
681
|
-
/** image which represents the document */
|
682
|
-
documentImage?: DocumentImage;
|
683
|
-
}
|
684
|
-
export interface DocumentImage {
|
685
|
-
/** the name of the image */
|
686
|
-
name?: string;
|
687
|
-
/** the width of the image */
|
688
|
-
width?: number;
|
689
|
-
/** the height of the image */
|
690
|
-
height?: number;
|
691
|
-
}
|
692
|
-
export declare enum Enum {
|
693
|
-
/** Default value. Means that permission not set */
|
694
|
-
UNKNOWN = "UNKNOWN",
|
695
|
-
/** Protected exposure. Exposed to members and owners */
|
696
|
-
PROTECTED = "PROTECTED",
|
697
|
-
/** Private exposure. Exposed to owners */
|
698
|
-
PRIVATE = "PRIVATE",
|
699
|
-
/** Public exposure. Visible to everyone */
|
700
|
-
PUBLIC = "PUBLIC",
|
701
|
-
/** Used for partial updates, to state that exposure is not changing */
|
702
|
-
UNCHANGED = "UNCHANGED",
|
703
|
-
/** Protected to members of permitted groups and owners */
|
704
|
-
GROUP_PROTECTED = "GROUP_PROTECTED"
|
705
|
-
}
|
706
|
-
export interface DeleteByIdsOperation {
|
707
|
-
/** ids of the documents to delete */
|
708
|
-
documentIds?: string[];
|
709
|
-
}
|
710
|
-
export interface DeleteByFilterOperation {
|
711
|
-
/** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
|
712
|
-
filter?: Record<string, any> | null;
|
713
|
-
}
|
714
|
-
export interface UpdateByFilterOperation {
|
715
|
-
/** documents matching this filter will be updated */
|
716
|
-
filter?: Record<string, any> | null;
|
717
|
-
/** partial document to apply */
|
718
|
-
document?: IndexDocument;
|
719
|
-
}
|
720
|
-
export interface UpdateExistingOperation {
|
721
|
-
/** documents to update */
|
722
|
-
documents?: IndexDocument[];
|
723
|
-
}
|
724
|
-
export interface SearchIndexingNotification {
|
725
|
-
/** new state of indexing for the site specified in ms_id */
|
726
|
-
indexState?: SearchIndexingNotificationState;
|
727
|
-
/** type of the document the notification is targeted for. Applies to all types if not provided */
|
728
|
-
documentType?: string | null;
|
729
|
-
/** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */
|
730
|
-
language?: string | null;
|
731
|
-
/** site for which notification is targeted */
|
732
|
-
msId?: string | null;
|
733
|
-
}
|
734
|
-
export declare enum SearchIndexingNotificationState {
|
735
|
-
/** default state */
|
736
|
-
Unknown = "Unknown",
|
737
|
-
/** metasite does not require site search indexing */
|
738
|
-
Off = "Off",
|
739
|
-
/** metasite requires site search indexing */
|
740
|
-
On = "On"
|
741
|
-
}
|
742
776
|
export interface ListGalleriesItemsRequest {
|
743
|
-
/**
|
777
|
+
/**
|
778
|
+
* IDs of the media items to retrieve.
|
779
|
+
* @minSize 1
|
780
|
+
* @maxSize 100
|
781
|
+
*/
|
744
782
|
itemsId?: ItemId[];
|
745
783
|
}
|
746
784
|
export interface ItemId {
|
747
|
-
/**
|
785
|
+
/**
|
786
|
+
* Gallery ID.
|
787
|
+
* @format GUID
|
788
|
+
*/
|
748
789
|
galleryId?: string;
|
749
|
-
/**
|
790
|
+
/**
|
791
|
+
* Item ID.
|
792
|
+
* @format GUID
|
793
|
+
*/
|
750
794
|
itemId?: string;
|
751
795
|
}
|
752
796
|
export interface ListGalleriesItemsResponse {
|
@@ -754,7 +798,10 @@ export interface ListGalleriesItemsResponse {
|
|
754
798
|
itemsInGalleries?: ItemsInGallery[];
|
755
799
|
}
|
756
800
|
export interface ItemsInGallery {
|
757
|
-
/**
|
801
|
+
/**
|
802
|
+
* Gallery ID.
|
803
|
+
* @format GUID
|
804
|
+
*/
|
758
805
|
galleryId?: string;
|
759
806
|
/** Retrieved media items. */
|
760
807
|
items?: Item[];
|
@@ -768,15 +815,26 @@ export interface GalleryItemUpdated {
|
|
768
815
|
updatedItem?: Item;
|
769
816
|
}
|
770
817
|
export interface GalleryItemDeleted {
|
771
|
-
/**
|
818
|
+
/**
|
819
|
+
* ID of the deleted gallery item.
|
820
|
+
* @format GUID
|
821
|
+
*/
|
772
822
|
itemId?: string;
|
773
823
|
}
|
774
824
|
export interface ListGalleriesRequest {
|
775
|
-
/**
|
825
|
+
/**
|
826
|
+
* Number of galleries to list. Defaults to `10`.
|
827
|
+
* @min 1
|
828
|
+
* @max 100
|
829
|
+
*/
|
776
830
|
itemLimit?: number | null;
|
777
831
|
/** Number of galleries to skip in the returns. Defaults to `0`. */
|
778
832
|
offset?: number | null;
|
779
|
-
/**
|
833
|
+
/**
|
834
|
+
* Number of galleries to list. Defaults to `10`.
|
835
|
+
* @min 1
|
836
|
+
* @max 10
|
837
|
+
*/
|
780
838
|
limit?: number | null;
|
781
839
|
}
|
782
840
|
export declare enum State {
|
@@ -794,7 +852,10 @@ export interface ListGalleriesResponse {
|
|
794
852
|
galleries?: Gallery[];
|
795
853
|
}
|
796
854
|
export interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {
|
797
|
-
/**
|
855
|
+
/**
|
856
|
+
* Gallery ID.
|
857
|
+
* @format GUID
|
858
|
+
*/
|
798
859
|
galleryId: string;
|
799
860
|
/** Number of media items to skip in the returns. Defaults to `0`. */
|
800
861
|
itemOffset?: number | null;
|
@@ -804,6 +865,8 @@ export interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {
|
|
804
865
|
* Min: `1` <br />
|
805
866
|
* Max: `100` <br />
|
806
867
|
* Default: `50`
|
868
|
+
* @min 1
|
869
|
+
* @max 200
|
807
870
|
*/
|
808
871
|
itemLimit?: number | null;
|
809
872
|
}
|
@@ -815,7 +878,10 @@ export interface GetGalleryResponse {
|
|
815
878
|
gallery?: Gallery;
|
816
879
|
}
|
817
880
|
export interface ListGalleryItemsRequest {
|
818
|
-
/**
|
881
|
+
/**
|
882
|
+
* Gallery ID.
|
883
|
+
* @format GUID
|
884
|
+
*/
|
819
885
|
galleryId: string;
|
820
886
|
/** Number of media items to skip in the returns. Defaults to `0`. */
|
821
887
|
itemOffset?: number | null;
|
@@ -825,6 +891,8 @@ export interface ListGalleryItemsRequest {
|
|
825
891
|
* Min: `1` <br />
|
826
892
|
* Max: `100` <br />
|
827
893
|
* Default: `50`
|
894
|
+
* @min 1
|
895
|
+
* @max 200
|
828
896
|
*/
|
829
897
|
itemLimit?: number | null;
|
830
898
|
}
|
@@ -833,9 +901,15 @@ export interface ListGalleryItemsResponse {
|
|
833
901
|
items?: Item[];
|
834
902
|
}
|
835
903
|
export interface GetGalleryItemRequest {
|
836
|
-
/**
|
904
|
+
/**
|
905
|
+
* Gallery ID.
|
906
|
+
* @format GUID
|
907
|
+
*/
|
837
908
|
galleryId: string;
|
838
|
-
/**
|
909
|
+
/**
|
910
|
+
* Item ID.
|
911
|
+
* @format GUID
|
912
|
+
*/
|
839
913
|
itemId: string;
|
840
914
|
}
|
841
915
|
export interface GetGalleryItemResponse {
|
@@ -845,7 +919,10 @@ export interface GetGalleryItemResponse {
|
|
845
919
|
export interface CreateGalleryRequest {
|
846
920
|
/** Gallery to create. */
|
847
921
|
gallery?: Gallery;
|
848
|
-
/**
|
922
|
+
/**
|
923
|
+
* Gallery ID to clone from.
|
924
|
+
* @format GUID
|
925
|
+
*/
|
849
926
|
cloneFromGalleryId?: string | null;
|
850
927
|
}
|
851
928
|
export interface CreateGalleryResponse {
|
@@ -861,20 +938,30 @@ export interface UpdateGalleryResponse {
|
|
861
938
|
gallery?: Gallery;
|
862
939
|
}
|
863
940
|
export interface DeleteGalleryRequest {
|
864
|
-
/**
|
941
|
+
/**
|
942
|
+
* ID of the gallery to delete.
|
943
|
+
* @format GUID
|
944
|
+
*/
|
865
945
|
galleryId: string;
|
866
946
|
}
|
867
947
|
export interface DeleteGalleryResponse {
|
868
948
|
/**
|
869
949
|
* ID of the deleted gallery.
|
870
950
|
* @readonly
|
951
|
+
* @format GUID
|
871
952
|
*/
|
872
953
|
galleryId?: string;
|
873
954
|
}
|
874
955
|
export interface DeleteGalleryItemsRequest {
|
875
|
-
/**
|
956
|
+
/**
|
957
|
+
* Gallery ID.
|
958
|
+
* @format GUID
|
959
|
+
*/
|
876
960
|
galleryId: string;
|
877
|
-
/**
|
961
|
+
/**
|
962
|
+
* ID of the media item to delete.
|
963
|
+
* @format GUID
|
964
|
+
*/
|
878
965
|
itemsIds?: string[];
|
879
966
|
}
|
880
967
|
export interface DeleteGalleryItemsResponse {
|
@@ -882,20 +969,32 @@ export interface DeleteGalleryItemsResponse {
|
|
882
969
|
gallery?: Gallery;
|
883
970
|
}
|
884
971
|
export interface BulkDeleteGalleryItemsRequest {
|
885
|
-
/**
|
972
|
+
/**
|
973
|
+
* Gallery ID.
|
974
|
+
* @format GUID
|
975
|
+
*/
|
886
976
|
galleryId: string;
|
887
|
-
/**
|
977
|
+
/**
|
978
|
+
* IDs of the media items to delete.
|
979
|
+
* @format GUID
|
980
|
+
* @minSize 1
|
981
|
+
* @maxSize 1000
|
982
|
+
*/
|
888
983
|
itemIds: string[];
|
889
984
|
}
|
890
985
|
export interface BulkDeleteGalleryItemsResponse {
|
891
986
|
/**
|
892
987
|
* IDs of the deleted media items.
|
893
988
|
* @readonly
|
989
|
+
* @format GUID
|
894
990
|
*/
|
895
991
|
itemIds?: string[];
|
896
992
|
}
|
897
993
|
export interface CreateGalleryItemRequest {
|
898
|
-
/**
|
994
|
+
/**
|
995
|
+
* Gallery ID.
|
996
|
+
* @format GUID
|
997
|
+
*/
|
899
998
|
galleryId: string;
|
900
999
|
/** Media item to create. */
|
901
1000
|
item: Item;
|
@@ -905,9 +1004,15 @@ export interface CreateGalleryItemResponse {
|
|
905
1004
|
item?: Item;
|
906
1005
|
}
|
907
1006
|
export interface CreateGalleryItemsRequest {
|
908
|
-
/**
|
1007
|
+
/**
|
1008
|
+
* Gallery ID.
|
1009
|
+
* @format GUID
|
1010
|
+
*/
|
909
1011
|
galleryId?: string;
|
910
|
-
/**
|
1012
|
+
/**
|
1013
|
+
* Media items to create.
|
1014
|
+
* @maxSize 50
|
1015
|
+
*/
|
911
1016
|
items?: Item[];
|
912
1017
|
}
|
913
1018
|
export interface CreateGalleryItemsResponse {
|
@@ -915,7 +1020,10 @@ export interface CreateGalleryItemsResponse {
|
|
915
1020
|
items?: Item[];
|
916
1021
|
}
|
917
1022
|
export interface UpdateGalleryItemRequest {
|
918
|
-
/**
|
1023
|
+
/**
|
1024
|
+
* Gallery ID.
|
1025
|
+
* @format GUID
|
1026
|
+
*/
|
919
1027
|
galleryId: string;
|
920
1028
|
/** The information for the media item being updated. */
|
921
1029
|
item: Item;
|
@@ -925,26 +1033,166 @@ export interface UpdateGalleryItemResponse {
|
|
925
1033
|
item?: Item;
|
926
1034
|
}
|
927
1035
|
export interface DeleteGalleryItemRequest {
|
928
|
-
/**
|
1036
|
+
/**
|
1037
|
+
* Gallery ID.
|
1038
|
+
* @format GUID
|
1039
|
+
*/
|
929
1040
|
galleryId: string;
|
930
|
-
/**
|
1041
|
+
/**
|
1042
|
+
* ID of the media item to delete.
|
1043
|
+
* @format GUID
|
1044
|
+
*/
|
931
1045
|
itemId: string;
|
932
1046
|
}
|
933
1047
|
export interface DeleteGalleryItemResponse {
|
934
1048
|
/**
|
935
1049
|
* ID of the deleted media item.
|
936
1050
|
* @readonly
|
1051
|
+
* @format GUID
|
937
1052
|
*/
|
938
1053
|
itemId?: string;
|
939
1054
|
}
|
940
1055
|
export interface PublishGalleryRequest {
|
941
|
-
/**
|
1056
|
+
/**
|
1057
|
+
* ID of the gallery to publish.
|
1058
|
+
* @format GUID
|
1059
|
+
*/
|
942
1060
|
galleryId?: string;
|
943
1061
|
}
|
944
1062
|
export interface PublishGalleryResponse {
|
945
1063
|
/** Published gallery. */
|
946
1064
|
gallery?: Gallery;
|
947
1065
|
}
|
1066
|
+
export interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
|
1067
|
+
/** insert/update documents */
|
1068
|
+
update?: DocumentUpdateOperation;
|
1069
|
+
/** delete by document ids */
|
1070
|
+
deleteByIds?: DeleteByIdsOperation;
|
1071
|
+
/** delete documents matching filter */
|
1072
|
+
deleteByFilter?: DeleteByFilterOperation;
|
1073
|
+
/** update documents matching filter */
|
1074
|
+
updateByFilter?: UpdateByFilterOperation;
|
1075
|
+
/** update only existing documents */
|
1076
|
+
updateExisting?: UpdateExistingOperation;
|
1077
|
+
/**
|
1078
|
+
* application which owns documents
|
1079
|
+
* @minLength 2
|
1080
|
+
*/
|
1081
|
+
appDefId?: string | null;
|
1082
|
+
/**
|
1083
|
+
* type of the documents
|
1084
|
+
* @minLength 2
|
1085
|
+
*/
|
1086
|
+
documentType?: string | null;
|
1087
|
+
/**
|
1088
|
+
* language of the documents
|
1089
|
+
* @minLength 2
|
1090
|
+
*/
|
1091
|
+
language?: string | null;
|
1092
|
+
/**
|
1093
|
+
* site documents belong to
|
1094
|
+
* @minLength 2
|
1095
|
+
*/
|
1096
|
+
msId?: string | null;
|
1097
|
+
}
|
1098
|
+
/** @oneof */
|
1099
|
+
export interface UpdateDocumentsEventOperationOneOf {
|
1100
|
+
/** insert/update documents */
|
1101
|
+
update?: DocumentUpdateOperation;
|
1102
|
+
/** delete by document ids */
|
1103
|
+
deleteByIds?: DeleteByIdsOperation;
|
1104
|
+
/** delete documents matching filter */
|
1105
|
+
deleteByFilter?: DeleteByFilterOperation;
|
1106
|
+
/** update documents matching filter */
|
1107
|
+
updateByFilter?: UpdateByFilterOperation;
|
1108
|
+
/** update only existing documents */
|
1109
|
+
updateExisting?: UpdateExistingOperation;
|
1110
|
+
}
|
1111
|
+
export interface DocumentUpdateOperation {
|
1112
|
+
/** documents to index or update */
|
1113
|
+
documents?: IndexDocument[];
|
1114
|
+
}
|
1115
|
+
export interface IndexDocument {
|
1116
|
+
/** data bag with non-searchable fields (url, image) */
|
1117
|
+
payload?: DocumentPayload;
|
1118
|
+
/** what type of users should documents be visible to */
|
1119
|
+
exposure?: Enum;
|
1120
|
+
/** document with mandatory fields (id, title, description) and with fields specific to the type of the document */
|
1121
|
+
document?: Record<string, any> | null;
|
1122
|
+
/** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */
|
1123
|
+
permittedMemberGroups?: string[];
|
1124
|
+
/** if true SEO is disabled for this document */
|
1125
|
+
seoHidden?: boolean | null;
|
1126
|
+
/** if true the page is a lightbox popup */
|
1127
|
+
isPopup?: boolean | null;
|
1128
|
+
}
|
1129
|
+
export interface DocumentPayload {
|
1130
|
+
/** url of the page representing the document */
|
1131
|
+
url?: string | null;
|
1132
|
+
/** image which represents the document */
|
1133
|
+
documentImage?: DocumentImage;
|
1134
|
+
}
|
1135
|
+
export interface DocumentImage {
|
1136
|
+
/** the name of the image */
|
1137
|
+
name?: string;
|
1138
|
+
/** the width of the image */
|
1139
|
+
width?: number;
|
1140
|
+
/** the height of the image */
|
1141
|
+
height?: number;
|
1142
|
+
}
|
1143
|
+
export declare enum Enum {
|
1144
|
+
/** Default value. Means that permission not set */
|
1145
|
+
UNKNOWN = "UNKNOWN",
|
1146
|
+
/** Protected exposure. Exposed to members and owners */
|
1147
|
+
PROTECTED = "PROTECTED",
|
1148
|
+
/** Private exposure. Exposed to owners */
|
1149
|
+
PRIVATE = "PRIVATE",
|
1150
|
+
/** Public exposure. Visible to everyone */
|
1151
|
+
PUBLIC = "PUBLIC",
|
1152
|
+
/** Used for partial updates, to state that exposure is not changing */
|
1153
|
+
UNCHANGED = "UNCHANGED",
|
1154
|
+
/** Protected to members of permitted groups and owners */
|
1155
|
+
GROUP_PROTECTED = "GROUP_PROTECTED"
|
1156
|
+
}
|
1157
|
+
export interface DeleteByIdsOperation {
|
1158
|
+
/** ids of the documents to delete */
|
1159
|
+
documentIds?: string[];
|
1160
|
+
}
|
1161
|
+
export interface DeleteByFilterOperation {
|
1162
|
+
/** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
|
1163
|
+
filter?: Record<string, any> | null;
|
1164
|
+
}
|
1165
|
+
export interface UpdateByFilterOperation {
|
1166
|
+
/** documents matching this filter will be updated */
|
1167
|
+
filter?: Record<string, any> | null;
|
1168
|
+
/** partial document to apply */
|
1169
|
+
document?: IndexDocument;
|
1170
|
+
}
|
1171
|
+
export interface UpdateExistingOperation {
|
1172
|
+
/** documents to update */
|
1173
|
+
documents?: IndexDocument[];
|
1174
|
+
}
|
1175
|
+
export interface SearchIndexingNotification {
|
1176
|
+
/** new state of indexing for the site specified in ms_id */
|
1177
|
+
indexState?: SearchIndexingNotificationState;
|
1178
|
+
/** type of the document the notification is targeted for. Applies to all types if not provided */
|
1179
|
+
documentType?: string | null;
|
1180
|
+
/** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */
|
1181
|
+
language?: string | null;
|
1182
|
+
/**
|
1183
|
+
* site for which notification is targeted
|
1184
|
+
* @minLength 2
|
1185
|
+
*/
|
1186
|
+
msId?: string | null;
|
1187
|
+
}
|
1188
|
+
export declare enum SearchIndexingNotificationState {
|
1189
|
+
/** default state */
|
1190
|
+
Unknown = "Unknown",
|
1191
|
+
/** metasite does not require site search indexing */
|
1192
|
+
Off = "Off",
|
1193
|
+
/** metasite requires site search indexing */
|
1194
|
+
On = "On"
|
1195
|
+
}
|
948
1196
|
interface PointNonNullableFields {
|
949
1197
|
x: number;
|
950
1198
|
y: number;
|
@@ -1071,9 +1319,15 @@ export interface DeleteGalleryItemResponseNonNullableFields {
|
|
1071
1319
|
itemId: string;
|
1072
1320
|
}
|
1073
1321
|
export interface BaseEventMetadata {
|
1074
|
-
/**
|
1322
|
+
/**
|
1323
|
+
* App instance ID.
|
1324
|
+
* @format GUID
|
1325
|
+
*/
|
1075
1326
|
instanceId?: string | null;
|
1076
|
-
/**
|
1327
|
+
/**
|
1328
|
+
* Event type.
|
1329
|
+
* @maxLength 150
|
1330
|
+
*/
|
1077
1331
|
eventType?: string;
|
1078
1332
|
/** The identification type and identity data. */
|
1079
1333
|
identity?: IdentificationData;
|
@@ -1132,6 +1386,8 @@ export interface GalleryCreatedEnvelope {
|
|
1132
1386
|
* @permissionId PRO_GALLERY.READ
|
1133
1387
|
* @webhook
|
1134
1388
|
* @eventType wix.pro_gallery.gallery_v2_created
|
1389
|
+
* @serviceIdentifier com.wixpress.exposure.progallery.ProGallery
|
1390
|
+
* @slug created
|
1135
1391
|
* @documentationMaturity preview
|
1136
1392
|
*/
|
1137
1393
|
export declare function onGalleryCreated(handler: (event: GalleryCreatedEnvelope) => void | Promise<void>): void;
|
@@ -1147,6 +1403,8 @@ export interface GalleryDeletedEnvelope {
|
|
1147
1403
|
* @permissionId PRO_GALLERY.READ
|
1148
1404
|
* @webhook
|
1149
1405
|
* @eventType wix.pro_gallery.gallery_v2_deleted
|
1406
|
+
* @serviceIdentifier com.wixpress.exposure.progallery.ProGallery
|
1407
|
+
* @slug deleted
|
1150
1408
|
* @documentationMaturity preview
|
1151
1409
|
*/
|
1152
1410
|
export declare function onGalleryDeleted(handler: (event: GalleryDeletedEnvelope) => void | Promise<void>): void;
|
@@ -1163,6 +1421,8 @@ export interface GalleryItemCreatedEnvelope {
|
|
1163
1421
|
* @permissionId PRO_GALLERY.READ
|
1164
1422
|
* @webhook
|
1165
1423
|
* @eventType wix.pro_gallery.gallery_v2_gallery_item_created
|
1424
|
+
* @serviceIdentifier com.wixpress.exposure.progallery.ProGallery
|
1425
|
+
* @slug gallery_item_created
|
1166
1426
|
* @documentationMaturity preview
|
1167
1427
|
*/
|
1168
1428
|
export declare function onGalleryItemCreated(handler: (event: GalleryItemCreatedEnvelope) => void | Promise<void>): void;
|
@@ -1182,6 +1442,8 @@ export interface GalleryItemDeletedEnvelope {
|
|
1182
1442
|
* @permissionId PRO_GALLERY.READ
|
1183
1443
|
* @webhook
|
1184
1444
|
* @eventType wix.pro_gallery.gallery_v2_gallery_item_deleted
|
1445
|
+
* @serviceIdentifier com.wixpress.exposure.progallery.ProGallery
|
1446
|
+
* @slug gallery_item_deleted
|
1185
1447
|
* @documentationMaturity preview
|
1186
1448
|
*/
|
1187
1449
|
export declare function onGalleryItemDeleted(handler: (event: GalleryItemDeletedEnvelope) => void | Promise<void>): void;
|
@@ -1198,6 +1460,8 @@ export interface GalleryItemUpdatedEnvelope {
|
|
1198
1460
|
* @permissionId PRO_GALLERY.READ
|
1199
1461
|
* @webhook
|
1200
1462
|
* @eventType wix.pro_gallery.gallery_v2_gallery_item_updated
|
1463
|
+
* @serviceIdentifier com.wixpress.exposure.progallery.ProGallery
|
1464
|
+
* @slug gallery_item_updated
|
1201
1465
|
* @documentationMaturity preview
|
1202
1466
|
*/
|
1203
1467
|
export declare function onGalleryItemUpdated(handler: (event: GalleryItemUpdatedEnvelope) => void | Promise<void>): void;
|
@@ -1217,6 +1481,8 @@ export interface GalleryUpdatedEnvelope {
|
|
1217
1481
|
* @permissionId PRO_GALLERY.READ
|
1218
1482
|
* @webhook
|
1219
1483
|
* @eventType wix.pro_gallery.gallery_v2_updated
|
1484
|
+
* @serviceIdentifier com.wixpress.exposure.progallery.ProGallery
|
1485
|
+
* @slug updated
|
1220
1486
|
* @documentationMaturity preview
|
1221
1487
|
*/
|
1222
1488
|
export declare function onGalleryUpdated(handler: (event: GalleryUpdatedEnvelope) => void | Promise<void>): void;
|
@@ -1238,11 +1504,19 @@ export declare function onGalleryUpdated(handler: (event: GalleryUpdatedEnvelope
|
|
1238
1504
|
*/
|
1239
1505
|
export declare function listGalleries(options?: ListGalleriesOptions): Promise<ListGalleriesResponse & ListGalleriesResponseNonNullableFields>;
|
1240
1506
|
export interface ListGalleriesOptions {
|
1241
|
-
/**
|
1507
|
+
/**
|
1508
|
+
* Number of galleries to list. Defaults to `10`.
|
1509
|
+
* @min 1
|
1510
|
+
* @max 100
|
1511
|
+
*/
|
1242
1512
|
itemLimit?: number | null;
|
1243
1513
|
/** Number of galleries to skip in the returns. Defaults to `0`. */
|
1244
1514
|
offset?: number | null;
|
1245
|
-
/**
|
1515
|
+
/**
|
1516
|
+
* Number of galleries to list. Defaults to `10`.
|
1517
|
+
* @min 1
|
1518
|
+
* @max 10
|
1519
|
+
*/
|
1246
1520
|
limit?: number | null;
|
1247
1521
|
}
|
1248
1522
|
/**
|
@@ -1263,7 +1537,7 @@ export interface ListGalleriesOptions {
|
|
1263
1537
|
* @fqn com.wixpress.exposure.progallery.ProGallery.GetGallery
|
1264
1538
|
*/
|
1265
1539
|
export declare function getGallery(galleryId: string, options?: GetGalleryOptions): Promise<Gallery & GalleryNonNullableFields>;
|
1266
|
-
export interface GetGalleryOptions extends
|
1540
|
+
export interface GetGalleryOptions extends GetGalleryOptionsVersionOneOf {
|
1267
1541
|
/** Number of media items to skip in the returns. Defaults to `0`. */
|
1268
1542
|
itemOffset?: number | null;
|
1269
1543
|
/**
|
@@ -1272,9 +1546,14 @@ export interface GetGalleryOptions extends GetGalleryRequestVersionOneOf {
|
|
1272
1546
|
* Min: `1` <br />
|
1273
1547
|
* Max: `100` <br />
|
1274
1548
|
* Default: `50`
|
1549
|
+
* @min 1
|
1550
|
+
* @max 200
|
1275
1551
|
*/
|
1276
1552
|
itemLimit?: number | null;
|
1277
1553
|
}
|
1554
|
+
/** @oneof */
|
1555
|
+
export interface GetGalleryOptionsVersionOneOf {
|
1556
|
+
}
|
1278
1557
|
/**
|
1279
1558
|
* Retrieves a list of media items in a specified gallery.
|
1280
1559
|
*
|
@@ -1303,6 +1582,8 @@ export interface ListGalleryItemsOptions {
|
|
1303
1582
|
* Min: `1` <br />
|
1304
1583
|
* Max: `100` <br />
|
1305
1584
|
* Default: `50`
|
1585
|
+
* @min 1
|
1586
|
+
* @max 200
|
1306
1587
|
*/
|
1307
1588
|
itemLimit?: number | null;
|
1308
1589
|
}
|
@@ -1326,9 +1607,15 @@ export interface ListGalleryItemsOptions {
|
|
1326
1607
|
*/
|
1327
1608
|
export declare function getGalleryItem(identifiers: GetGalleryItemIdentifiers): Promise<Item & ItemNonNullableFields>;
|
1328
1609
|
export interface GetGalleryItemIdentifiers {
|
1329
|
-
/**
|
1610
|
+
/**
|
1611
|
+
* Gallery ID.
|
1612
|
+
* @format GUID
|
1613
|
+
*/
|
1330
1614
|
galleryId: string;
|
1331
|
-
/**
|
1615
|
+
/**
|
1616
|
+
* Item ID.
|
1617
|
+
* @format GUID
|
1618
|
+
*/
|
1332
1619
|
itemId: string;
|
1333
1620
|
}
|
1334
1621
|
/**
|
@@ -1346,9 +1633,9 @@ export interface GetGalleryItemIdentifiers {
|
|
1346
1633
|
* </blockquote>
|
1347
1634
|
* @public
|
1348
1635
|
* @documentationMaturity preview
|
1349
|
-
* @requiredField options.gallery.items.image.imageInfo
|
1350
|
-
* @requiredField options.gallery.items.text.html
|
1351
|
-
* @requiredField options.gallery.items.video.videoInfo
|
1636
|
+
* @requiredField options.gallery.items.metadata.image.imageInfo
|
1637
|
+
* @requiredField options.gallery.items.metadata.text.html
|
1638
|
+
* @requiredField options.gallery.items.metadata.video.videoInfo
|
1352
1639
|
* @param options - Options to use when creating the gallery.
|
1353
1640
|
* @permissionId PRO_GALLERY.MANAGE
|
1354
1641
|
* @permissionScope Manage Galleries
|
@@ -1361,7 +1648,10 @@ export declare function createGallery(options?: CreateGalleryOptions): Promise<G
|
|
1361
1648
|
export interface CreateGalleryOptions {
|
1362
1649
|
/** Gallery to create. */
|
1363
1650
|
gallery?: Gallery;
|
1364
|
-
/**
|
1651
|
+
/**
|
1652
|
+
* Gallery ID to clone from.
|
1653
|
+
* @format GUID
|
1654
|
+
*/
|
1365
1655
|
cloneFromGalleryId?: string | null;
|
1366
1656
|
}
|
1367
1657
|
/**
|
@@ -1379,9 +1669,9 @@ export interface CreateGalleryOptions {
|
|
1379
1669
|
* @documentationMaturity preview
|
1380
1670
|
* @requiredField _id
|
1381
1671
|
* @requiredField gallery
|
1382
|
-
* @requiredField gallery.items.image.imageInfo
|
1383
|
-
* @requiredField gallery.items.text.html
|
1384
|
-
* @requiredField gallery.items.video.videoInfo
|
1672
|
+
* @requiredField gallery.items.metadata.image.imageInfo
|
1673
|
+
* @requiredField gallery.items.metadata.text.html
|
1674
|
+
* @requiredField gallery.items.metadata.video.videoInfo
|
1385
1675
|
* @param _id - ID of the gallery to update.
|
1386
1676
|
* @param gallery - The information for the gallery being updated.
|
1387
1677
|
* @permissionId PRO_GALLERY.MANAGE
|
@@ -1396,6 +1686,7 @@ export interface UpdateGallery {
|
|
1396
1686
|
/**
|
1397
1687
|
* Gallery ID.
|
1398
1688
|
* @readonly
|
1689
|
+
* @format GUID
|
1399
1690
|
*/
|
1400
1691
|
_id?: string | null;
|
1401
1692
|
/** Gallery name. */
|
@@ -1446,12 +1737,15 @@ export declare function deleteGallery(galleryId: string): Promise<DeleteGalleryR
|
|
1446
1737
|
* @applicableIdentity APP
|
1447
1738
|
* @fqn com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItems
|
1448
1739
|
* @deprecated
|
1449
|
-
* @replacedBy
|
1740
|
+
* @replacedBy wix.pro_gallery.v2.gallery.BulkDeleteGalleryItems
|
1450
1741
|
* @targetRemovalDate 2024-08-15
|
1451
1742
|
*/
|
1452
1743
|
export declare function deleteGalleryItems(galleryId: string, options?: DeleteGalleryItemsOptions): Promise<DeleteGalleryItemsResponse & DeleteGalleryItemsResponseNonNullableFields>;
|
1453
1744
|
export interface DeleteGalleryItemsOptions {
|
1454
|
-
/**
|
1745
|
+
/**
|
1746
|
+
* ID of the media item to delete.
|
1747
|
+
* @format GUID
|
1748
|
+
*/
|
1455
1749
|
itemsIds?: string[];
|
1456
1750
|
}
|
1457
1751
|
/**
|
@@ -1486,9 +1780,9 @@ export declare function bulkDeleteGalleryItems(galleryId: string, itemIds: strin
|
|
1486
1780
|
* @documentationMaturity preview
|
1487
1781
|
* @requiredField galleryId
|
1488
1782
|
* @requiredField item
|
1489
|
-
* @requiredField item.image.imageInfo
|
1490
|
-
* @requiredField item.text.html
|
1491
|
-
* @requiredField item.video.videoInfo
|
1783
|
+
* @requiredField item.metadata.image.imageInfo
|
1784
|
+
* @requiredField item.metadata.text.html
|
1785
|
+
* @requiredField item.metadata.video.videoInfo
|
1492
1786
|
* @permissionId PRO_GALLERY.MANAGE
|
1493
1787
|
* @permissionScope Manage Galleries
|
1494
1788
|
* @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES
|
@@ -1514,9 +1808,9 @@ export declare function createGalleryItem(galleryId: string, item: Item): Promis
|
|
1514
1808
|
* @requiredField identifiers.galleryId
|
1515
1809
|
* @requiredField identifiers.itemId
|
1516
1810
|
* @requiredField item
|
1517
|
-
* @requiredField item.image.imageInfo
|
1518
|
-
* @requiredField item.text.html
|
1519
|
-
* @requiredField item.video.videoInfo
|
1811
|
+
* @requiredField item.metadata.image.imageInfo
|
1812
|
+
* @requiredField item.metadata.text.html
|
1813
|
+
* @requiredField item.metadata.video.videoInfo
|
1520
1814
|
* @param item - The information for the gallery item being updated.
|
1521
1815
|
* @param identifiers - Gallery ID and Item ID.
|
1522
1816
|
* @permissionId PRO_GALLERY.MANAGE
|
@@ -1528,11 +1822,15 @@ export declare function createGalleryItem(galleryId: string, item: Item): Promis
|
|
1528
1822
|
*/
|
1529
1823
|
export declare function updateGalleryItem(identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item & ItemNonNullableFields>;
|
1530
1824
|
export interface UpdateGalleryItemIdentifiers {
|
1531
|
-
/**
|
1825
|
+
/**
|
1826
|
+
* ID of the gallery containing the item to update.
|
1827
|
+
* @format GUID
|
1828
|
+
*/
|
1532
1829
|
galleryId: string;
|
1533
1830
|
/**
|
1534
1831
|
* ID of the item to update.
|
1535
1832
|
* @readonly
|
1833
|
+
* @format GUID
|
1536
1834
|
*/
|
1537
1835
|
itemId?: string | null;
|
1538
1836
|
}
|
@@ -1546,6 +1844,7 @@ export interface UpdateGalleryItem {
|
|
1546
1844
|
/**
|
1547
1845
|
* Item ID.
|
1548
1846
|
* @readonly
|
1847
|
+
* @format GUID
|
1549
1848
|
*/
|
1550
1849
|
_id?: string | null;
|
1551
1850
|
/**
|
@@ -1598,9 +1897,15 @@ export interface UpdateGalleryItem {
|
|
1598
1897
|
*/
|
1599
1898
|
export declare function deleteGalleryItem(identifiers: DeleteGalleryItemIdentifiers): Promise<DeleteGalleryItemResponse & DeleteGalleryItemResponseNonNullableFields>;
|
1600
1899
|
export interface DeleteGalleryItemIdentifiers {
|
1601
|
-
/**
|
1900
|
+
/**
|
1901
|
+
* Gallery ID.
|
1902
|
+
* @format GUID
|
1903
|
+
*/
|
1602
1904
|
galleryId: string;
|
1603
|
-
/**
|
1905
|
+
/**
|
1906
|
+
* ID of the media item to delete.
|
1907
|
+
* @format GUID
|
1908
|
+
*/
|
1604
1909
|
itemId: string;
|
1605
1910
|
}
|
1606
1911
|
export {};
|