@wix/auto_sdk_pro-gallery_pro-gallery 1.0.1 → 1.0.3

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.
Files changed (57) hide show
  1. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +2 -2
  2. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js +2 -2
  3. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +1 -1
  4. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +1 -1
  5. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js +56 -2
  6. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +1 -1
  7. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +1 -1
  8. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +1 -1
  9. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts +445 -182
  10. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js +10 -10
  11. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +1 -1
  12. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +505 -196
  13. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +11 -11
  14. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +1 -1
  15. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +2 -2
  16. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.js +1 -1
  17. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +1 -1
  18. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +1 -1
  19. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.js +56 -2
  20. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +1 -1
  21. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +1 -1
  22. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +1 -1
  23. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts +445 -182
  24. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.js +9 -9
  25. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +1 -1
  26. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +505 -196
  27. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +10 -10
  28. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +1 -1
  29. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +2 -2
  30. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js +2 -2
  31. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +1 -1
  32. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +1 -1
  33. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js +56 -2
  34. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +1 -1
  35. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +1 -1
  36. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +1 -1
  37. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts +445 -182
  38. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js +10 -10
  39. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +1 -1
  40. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +505 -196
  41. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +11 -11
  42. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +1 -1
  43. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +2 -2
  44. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.js +1 -1
  45. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +1 -1
  46. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +1 -1
  47. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.js +56 -2
  48. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +1 -1
  49. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +1 -1
  50. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +1 -1
  51. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts +445 -182
  52. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.js +9 -9
  53. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +1 -1
  54. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +505 -196
  55. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +10 -10
  56. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +1 -1
  57. 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
- /** The url of the page */
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
- /** rel of link */
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
- /** rel of link */
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
- /** rel of link */
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
- /** The email we will be sending a message to */
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
- /** The phone number we want to link to */
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
- /** The whatsApp phone number we want to connect with */
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
- /** rel of link */
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. */
@@ -288,6 +317,7 @@ export interface UnsharpMasking {
288
317
  *
289
318
  * Min: `0` <br />
290
319
  * Max: `5`
320
+ * @max 5
291
321
  */
292
322
  amount?: number | null;
293
323
  /** Unsharp masking radius in pixels. Controls the sharpening width. */
@@ -297,6 +327,7 @@ export interface UnsharpMasking {
297
327
  *
298
328
  * Min: `0` <br />
299
329
  * Max: `1`
330
+ * @max 1
300
331
  */
301
332
  threshold?: number | null;
302
333
  }
@@ -319,7 +350,10 @@ export interface VideoV2 {
319
350
  id?: string;
320
351
  /** Video URL. Required when associating a video from an external source. Supported sources: YouTube, Vimeo. */
321
352
  url?: string;
322
- /** Available resolutions for the video, starting with the optimal resolution. */
353
+ /**
354
+ * Available resolutions for the video, starting with the optimal resolution.
355
+ * @maxSize 100
356
+ */
323
357
  resolutions?: VideoResolution[];
324
358
  /** Video filename. */
325
359
  filename?: string | null;
@@ -372,9 +406,15 @@ export interface SecondaryMediaMetadataOneOf {
372
406
  text?: Text;
373
407
  }
374
408
  export interface InvalidateCache extends InvalidateCacheGetByOneOf {
375
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
409
+ /**
410
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
411
+ * @format GUID
412
+ */
376
413
  metaSiteId?: string;
377
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
414
+ /**
415
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
416
+ * @format GUID
417
+ */
378
418
  siteId?: string;
379
419
  /** Invalidate by App */
380
420
  app?: App;
@@ -384,7 +424,10 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
384
424
  uri?: URI;
385
425
  /** Invalidate by file (for media files such as PDFs) */
386
426
  file?: File;
387
- /** tell us why you're invalidating the cache. You don't need to add your app name */
427
+ /**
428
+ * tell us why you're invalidating the cache. You don't need to add your app name
429
+ * @maxLength 256
430
+ */
388
431
  reason?: string | null;
389
432
  /** Is local DS */
390
433
  localDc?: boolean;
@@ -392,9 +435,15 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
392
435
  }
393
436
  /** @oneof */
394
437
  export interface InvalidateCacheGetByOneOf {
395
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
438
+ /**
439
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
440
+ * @format GUID
441
+ */
396
442
  metaSiteId?: string;
397
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
443
+ /**
444
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
445
+ * @format GUID
446
+ */
398
447
  siteId?: string;
399
448
  /** Invalidate by App */
400
449
  app?: App;
@@ -406,33 +455,59 @@ export interface InvalidateCacheGetByOneOf {
406
455
  file?: File;
407
456
  }
408
457
  export interface App {
409
- /** The AppDefId */
458
+ /**
459
+ * The AppDefId
460
+ * @minLength 1
461
+ */
410
462
  appDefId?: string;
411
- /** The instance Id */
463
+ /**
464
+ * The instance Id
465
+ * @format GUID
466
+ */
412
467
  instanceId?: string;
413
468
  }
414
469
  export interface Page {
415
- /** the msid the page is on */
470
+ /**
471
+ * the msid the page is on
472
+ * @format GUID
473
+ */
416
474
  metaSiteId?: string;
417
- /** Invalidate by Page ID */
475
+ /**
476
+ * Invalidate by Page ID
477
+ * @minLength 1
478
+ */
418
479
  pageId?: string;
419
480
  }
420
481
  export interface URI {
421
- /** the msid the URI is on */
482
+ /**
483
+ * the msid the URI is on
484
+ * @format GUID
485
+ */
422
486
  metaSiteId?: string;
423
- /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
487
+ /**
488
+ * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
489
+ * @minLength 1
490
+ */
424
491
  uriPath?: string;
425
492
  }
426
493
  export interface File {
427
- /** the msid the file is related to */
494
+ /**
495
+ * the msid the file is related to
496
+ * @format GUID
497
+ */
428
498
  metaSiteId?: string;
429
- /** Invalidate by filename (for media files such as PDFs) */
499
+ /**
500
+ * Invalidate by filename (for media files such as PDFs)
501
+ * @minLength 1
502
+ * @maxLength 256
503
+ */
430
504
  fileName?: string;
431
505
  }
432
506
  export interface GalleryPublished {
433
507
  /**
434
508
  * id of the gallery that will be published
435
509
  * @readonly
510
+ * @format GUID
436
511
  */
437
512
  galleryId?: string;
438
513
  isRc?: boolean;
@@ -442,9 +517,15 @@ export interface GalleryPublished {
442
517
  oldRevision?: Date | null;
443
518
  }
444
519
  export interface CleanDeletedGalleriesEvent {
445
- /** @readonly */
520
+ /**
521
+ * @readonly
522
+ * @format GUID
523
+ */
446
524
  instanceId?: string;
447
- /** @readonly */
525
+ /**
526
+ * @readonly
527
+ * @format GUID
528
+ */
448
529
  metaSiteId?: string;
449
530
  /** @readonly */
450
531
  htmlSiteRevision?: string;
@@ -452,12 +533,16 @@ export interface CleanDeletedGalleriesEvent {
452
533
  timeSitePublished?: Date | null;
453
534
  }
454
535
  export interface ProgallerypublisherPublishGalleryRequest {
455
- /** id of the gallery that will be published */
536
+ /**
537
+ * id of the gallery that will be published
538
+ * @format GUID
539
+ */
456
540
  galleryId?: string;
457
541
  }
458
542
  export interface ProgallerypublisherPublishGalleryResponse {
459
543
  }
460
544
  export interface GetActiveGalleryRevisionRequest {
545
+ /** @format GUID */
461
546
  galleryId?: string;
462
547
  }
463
548
  export interface GetActiveGalleryRevisionResponse {
@@ -465,25 +550,41 @@ export interface GetActiveGalleryRevisionResponse {
465
550
  htmlSiteRevision?: string | null;
466
551
  }
467
552
  export interface GetGalleryRevisionRequest {
553
+ /** @format GUID */
468
554
  galleryId?: string;
469
555
  revision?: Date | null;
470
556
  }
471
557
  export interface GetGalleryRevisionResponse {
472
558
  htmlSiteRevision?: string | null;
559
+ /** @format GUID */
473
560
  instanceId?: string | null;
474
561
  }
475
562
  export interface PublishGalleryItemRequest {
476
- /** id of the gallery that will be published */
563
+ /**
564
+ * id of the gallery that will be published
565
+ * @format GUID
566
+ */
477
567
  galleryId?: string;
478
- /** id of the item that will be published */
568
+ /**
569
+ * id of the item that will be published
570
+ * @format GUID
571
+ */
479
572
  itemId?: string;
480
573
  }
481
574
  export interface PublishGalleryItemResponse {
482
575
  }
483
576
  export interface PublishGalleryItemsRequest {
484
- /** id of the gallery that will be published */
577
+ /**
578
+ * id of the gallery that will be published
579
+ * @format GUID
580
+ */
485
581
  galleryId?: string;
486
- /** ids of the items that will be published */
582
+ /**
583
+ * ids of the items that will be published
584
+ * @format GUID
585
+ * @minSize 1
586
+ * @maxSize 100
587
+ */
487
588
  itemIds?: string[];
488
589
  }
489
590
  export interface PublishGalleryItemsResponse {
@@ -491,15 +592,27 @@ export interface PublishGalleryItemsResponse {
491
592
  export interface Empty {
492
593
  }
493
594
  export interface HtmlSitePublished {
494
- /** Application instance ID */
595
+ /**
596
+ * Application instance ID
597
+ * @maxLength 50
598
+ */
495
599
  appInstanceId?: string;
496
- /** Application type */
600
+ /**
601
+ * Application type
602
+ * @maxLength 100
603
+ */
497
604
  appType?: string;
498
605
  /** Revision */
499
606
  revision?: string;
500
- /** MSID */
607
+ /**
608
+ * MSID
609
+ * @maxLength 100
610
+ */
501
611
  metaSiteId?: string | null;
502
- /** optional branch id if publish is done from branch */
612
+ /**
613
+ * optional branch id if publish is done from branch
614
+ * @format GUID
615
+ */
503
616
  branchId?: string | null;
504
617
  /** The site's last transactionId */
505
618
  lastTransactionId?: string | null;
@@ -509,15 +622,24 @@ export interface HtmlSitePublished {
509
622
  publishDate?: string;
510
623
  }
511
624
  export interface EventsPage {
512
- /** Page's Id */
625
+ /**
626
+ * Page's Id
627
+ * @maxLength 100
628
+ */
513
629
  id?: string;
514
630
  }
515
631
  export interface HtmlSiteRCPublished {
516
- /** Application instance ID */
632
+ /**
633
+ * Application instance ID
634
+ * @maxLength 50
635
+ */
517
636
  appInstanceId?: string;
518
637
  /** Revision */
519
638
  revision?: string;
520
- /** Optional branch Id */
639
+ /**
640
+ * Optional branch Id
641
+ * @format GUID
642
+ */
521
643
  branchId?: string | null;
522
644
  /** Site's publish date */
523
645
  publishDate?: string;
@@ -607,9 +729,15 @@ export interface ActionEvent {
607
729
  bodyAsJson?: string;
608
730
  }
609
731
  export interface MessageEnvelope {
610
- /** App instance ID. */
732
+ /**
733
+ * App instance ID.
734
+ * @format GUID
735
+ */
611
736
  instanceId?: string | null;
612
- /** Event type. */
737
+ /**
738
+ * Event type.
739
+ * @maxLength 150
740
+ */
613
741
  eventType?: string;
614
742
  /** The identification type and identity data. */
615
743
  identity?: IdentificationData;
@@ -617,26 +745,50 @@ export interface MessageEnvelope {
617
745
  data?: string;
618
746
  }
619
747
  export interface IdentificationData extends IdentificationDataIdOneOf {
620
- /** ID of a site visitor that has not logged in to the site. */
748
+ /**
749
+ * ID of a site visitor that has not logged in to the site.
750
+ * @format GUID
751
+ */
621
752
  anonymousVisitorId?: string;
622
- /** ID of a site visitor that has logged in to the site. */
753
+ /**
754
+ * ID of a site visitor that has logged in to the site.
755
+ * @format GUID
756
+ */
623
757
  memberId?: string;
624
- /** ID of a Wix user (site owner, contributor, etc.). */
758
+ /**
759
+ * ID of a Wix user (site owner, contributor, etc.).
760
+ * @format GUID
761
+ */
625
762
  wixUserId?: string;
626
- /** ID of an app. */
763
+ /**
764
+ * ID of an app.
765
+ * @format GUID
766
+ */
627
767
  appId?: string;
628
768
  /** @readonly */
629
769
  identityType?: WebhookIdentityType;
630
770
  }
631
771
  /** @oneof */
632
772
  export interface IdentificationDataIdOneOf {
633
- /** ID of a site visitor that has not logged in to the site. */
773
+ /**
774
+ * ID of a site visitor that has not logged in to the site.
775
+ * @format GUID
776
+ */
634
777
  anonymousVisitorId?: string;
635
- /** ID of a site visitor that has logged in to the site. */
778
+ /**
779
+ * ID of a site visitor that has logged in to the site.
780
+ * @format GUID
781
+ */
636
782
  memberId?: string;
637
- /** ID of a Wix user (site owner, contributor, etc.). */
783
+ /**
784
+ * ID of a Wix user (site owner, contributor, etc.).
785
+ * @format GUID
786
+ */
638
787
  wixUserId?: string;
639
- /** ID of an app. */
788
+ /**
789
+ * ID of an app.
790
+ * @format GUID
791
+ */
640
792
  appId?: string;
641
793
  }
642
794
  export declare enum WebhookIdentityType {
@@ -646,129 +798,31 @@ export declare enum WebhookIdentityType {
646
798
  WIX_USER = "WIX_USER",
647
799
  APP = "APP"
648
800
  }
649
- export interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
650
- /** insert/update documents */
651
- update?: DocumentUpdateOperation;
652
- /** delete by document ids */
653
- deleteByIds?: DeleteByIdsOperation;
654
- /** delete documents matching filter */
655
- deleteByFilter?: DeleteByFilterOperation;
656
- /** update documents matching filter */
657
- updateByFilter?: UpdateByFilterOperation;
658
- /** update only existing documents */
659
- updateExisting?: UpdateExistingOperation;
660
- /** application which owns documents */
661
- appDefId?: string | null;
662
- /** type of the documents */
663
- documentType?: string | null;
664
- /** language of the documents */
665
- language?: string | null;
666
- /** site documents belong to */
667
- msId?: string | null;
668
- }
669
- /** @oneof */
670
- export interface UpdateDocumentsEventOperationOneOf {
671
- /** insert/update documents */
672
- update?: DocumentUpdateOperation;
673
- /** delete by document ids */
674
- deleteByIds?: DeleteByIdsOperation;
675
- /** delete documents matching filter */
676
- deleteByFilter?: DeleteByFilterOperation;
677
- /** update documents matching filter */
678
- updateByFilter?: UpdateByFilterOperation;
679
- /** update only existing documents */
680
- updateExisting?: UpdateExistingOperation;
681
- }
682
- export interface DocumentUpdateOperation {
683
- /** documents to index or update */
684
- documents?: IndexDocument[];
685
- }
686
- export interface IndexDocument {
687
- /** data bag with non-searchable fields (url, image) */
688
- payload?: DocumentPayload;
689
- /** what type of users should documents be visible to */
690
- exposure?: Enum;
691
- /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */
692
- document?: Record<string, any> | null;
693
- /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */
694
- permittedMemberGroups?: string[];
695
- /** if true SEO is disabled for this document */
696
- seoHidden?: boolean | null;
697
- /** if true the page is a lightbox popup */
698
- isPopup?: boolean | null;
699
- }
700
- export interface DocumentPayload {
701
- /** url of the page representing the document */
702
- url?: string | null;
703
- /** image which represents the document */
704
- documentImage?: DocumentImage;
705
- }
706
- export interface DocumentImage {
707
- /** the name of the image */
708
- name?: string;
709
- /** the width of the image */
710
- width?: number;
711
- /** the height of the image */
712
- height?: number;
713
- }
714
- export declare enum Enum {
715
- /** Default value. Means that permission not set */
716
- UNKNOWN = "UNKNOWN",
717
- /** Protected exposure. Exposed to members and owners */
718
- PROTECTED = "PROTECTED",
719
- /** Private exposure. Exposed to owners */
720
- PRIVATE = "PRIVATE",
721
- /** Public exposure. Visible to everyone */
722
- PUBLIC = "PUBLIC",
723
- /** Used for partial updates, to state that exposure is not changing */
724
- UNCHANGED = "UNCHANGED",
725
- /** Protected to members of permitted groups and owners */
726
- GROUP_PROTECTED = "GROUP_PROTECTED"
727
- }
728
- export interface DeleteByIdsOperation {
729
- /** ids of the documents to delete */
730
- documentIds?: string[];
731
- }
732
- export interface DeleteByFilterOperation {
733
- /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
734
- filter?: Record<string, any> | null;
735
- }
736
- export interface UpdateByFilterOperation {
737
- /** documents matching this filter will be updated */
738
- filter?: Record<string, any> | null;
739
- /** partial document to apply */
740
- document?: IndexDocument;
741
- }
742
- export interface UpdateExistingOperation {
743
- /** documents to update */
744
- documents?: IndexDocument[];
745
- }
746
- export interface SearchIndexingNotification {
747
- /** new state of indexing for the site specified in ms_id */
748
- indexState?: SearchIndexingNotificationState;
749
- /** type of the document the notification is targeted for. Applies to all types if not provided */
750
- documentType?: string | null;
751
- /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */
752
- language?: string | null;
753
- /** site for which notification is targeted */
754
- msId?: string | null;
755
- }
756
- export declare enum SearchIndexingNotificationState {
757
- /** default state */
758
- Unknown = "Unknown",
759
- /** metasite does not require site search indexing */
760
- Off = "Off",
761
- /** metasite requires site search indexing */
762
- On = "On"
801
+ export interface RestoreAllGalleriesEvent {
802
+ /**
803
+ * instance id of galleries to restore
804
+ * @format GUID
805
+ */
806
+ instanceId?: string;
763
807
  }
764
808
  export interface ListGalleriesItemsRequest {
765
- /** IDs of the media items to retrieve. */
809
+ /**
810
+ * IDs of the media items to retrieve.
811
+ * @minSize 1
812
+ * @maxSize 100
813
+ */
766
814
  itemsId?: ItemId[];
767
815
  }
768
816
  export interface ItemId {
769
- /** Gallery ID. */
817
+ /**
818
+ * Gallery ID.
819
+ * @format GUID
820
+ */
770
821
  galleryId?: string;
771
- /** Item ID. */
822
+ /**
823
+ * Item ID.
824
+ * @format GUID
825
+ */
772
826
  itemId?: string;
773
827
  }
774
828
  export interface ListGalleriesItemsResponse {
@@ -776,11 +830,23 @@ export interface ListGalleriesItemsResponse {
776
830
  itemsInGalleries?: ItemsInGallery[];
777
831
  }
778
832
  export interface ItemsInGallery {
779
- /** Gallery ID. */
833
+ /**
834
+ * Gallery ID.
835
+ * @format GUID
836
+ */
780
837
  galleryId?: string;
781
838
  /** Retrieved media items. */
782
839
  items?: Item[];
783
840
  }
841
+ export interface TriggerRestoreAllGalleriesAsyncRequest {
842
+ /**
843
+ * instance id of galleries to restore
844
+ * @format GUID
845
+ */
846
+ instanceId?: string;
847
+ }
848
+ export interface TriggerRestoreAllGalleriesAsyncResponse {
849
+ }
784
850
  export interface GalleryItemCreated {
785
851
  /** Created gallery item. */
786
852
  item?: Item;
@@ -790,7 +856,10 @@ export interface GalleryItemUpdated {
790
856
  updatedItem?: Item;
791
857
  }
792
858
  export interface GalleryItemDeleted {
793
- /** ID of the deleted gallery item. */
859
+ /**
860
+ * ID of the deleted gallery item.
861
+ * @format GUID
862
+ */
794
863
  itemId?: string;
795
864
  }
796
865
  export interface ListGalleriesRequest {
@@ -800,6 +869,8 @@ export interface ListGalleriesRequest {
800
869
  * Min: `1` <br />
801
870
  * Max: `100` <br />
802
871
  * Default: `10`
872
+ * @min 1
873
+ * @max 100
803
874
  */
804
875
  itemLimit?: number | null;
805
876
  /**
@@ -814,6 +885,8 @@ export interface ListGalleriesRequest {
814
885
  * Min: `1` <br />
815
886
  * Max: `10` <br />
816
887
  * Default: `10`
888
+ * @min 1
889
+ * @max 10
817
890
  */
818
891
  limit?: number | null;
819
892
  }
@@ -832,7 +905,10 @@ export interface ListGalleriesResponse {
832
905
  galleries?: Gallery[];
833
906
  }
834
907
  export interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {
835
- /** Gallery ID. */
908
+ /**
909
+ * Gallery ID.
910
+ * @format GUID
911
+ */
836
912
  galleryId: string;
837
913
  /**
838
914
  * Number of media items to skip in the response. <br />
@@ -846,6 +922,8 @@ export interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {
846
922
  * Min: `1` <br />
847
923
  * Max: `100` <br />
848
924
  * Default: `50`
925
+ * @min 1
926
+ * @max 200
849
927
  */
850
928
  itemLimit?: number | null;
851
929
  }
@@ -857,7 +935,10 @@ export interface GetGalleryResponse {
857
935
  gallery?: Gallery;
858
936
  }
859
937
  export interface ListGalleryItemsRequest {
860
- /** Gallery ID. */
938
+ /**
939
+ * Gallery ID.
940
+ * @format GUID
941
+ */
861
942
  galleryId: string;
862
943
  /**
863
944
  * Number of media items to skip in the response. <br />
@@ -871,6 +952,8 @@ export interface ListGalleryItemsRequest {
871
952
  * Min: `1` <br />
872
953
  * Max: `100` <br />
873
954
  * Default: `50`
955
+ * @min 1
956
+ * @max 200
874
957
  */
875
958
  itemLimit?: number | null;
876
959
  }
@@ -879,9 +962,15 @@ export interface ListGalleryItemsResponse {
879
962
  items?: Item[];
880
963
  }
881
964
  export interface GetGalleryItemRequest {
882
- /** Gallery ID. */
965
+ /**
966
+ * Gallery ID.
967
+ * @format GUID
968
+ */
883
969
  galleryId: string;
884
- /** Item ID. */
970
+ /**
971
+ * Item ID.
972
+ * @format GUID
973
+ */
885
974
  itemId: string;
886
975
  }
887
976
  export interface GetGalleryItemResponse {
@@ -891,7 +980,10 @@ export interface GetGalleryItemResponse {
891
980
  export interface CreateGalleryRequest {
892
981
  /** Gallery to create. */
893
982
  gallery?: Gallery;
894
- /** Gallery ID to clone from. */
983
+ /**
984
+ * Gallery ID to clone from.
985
+ * @format GUID
986
+ */
895
987
  cloneFromGalleryId?: string | null;
896
988
  }
897
989
  export interface CreateGalleryResponse {
@@ -907,20 +999,30 @@ export interface UpdateGalleryResponse {
907
999
  gallery?: Gallery;
908
1000
  }
909
1001
  export interface DeleteGalleryRequest {
910
- /** ID of the gallery to delete. */
1002
+ /**
1003
+ * ID of the gallery to delete.
1004
+ * @format GUID
1005
+ */
911
1006
  galleryId: string;
912
1007
  }
913
1008
  export interface DeleteGalleryResponse {
914
1009
  /**
915
1010
  * ID of the deleted gallery.
916
1011
  * @readonly
1012
+ * @format GUID
917
1013
  */
918
1014
  galleryId?: string;
919
1015
  }
920
1016
  export interface DeleteGalleryItemsRequest {
921
- /** Gallery ID. */
1017
+ /**
1018
+ * Gallery ID.
1019
+ * @format GUID
1020
+ */
922
1021
  galleryId: string;
923
- /** ID of the media item to delete. */
1022
+ /**
1023
+ * ID of the media item to delete.
1024
+ * @format GUID
1025
+ */
924
1026
  itemsIds?: string[];
925
1027
  }
926
1028
  export interface DeleteGalleryItemsResponse {
@@ -928,20 +1030,32 @@ export interface DeleteGalleryItemsResponse {
928
1030
  gallery?: Gallery;
929
1031
  }
930
1032
  export interface BulkDeleteGalleryItemsRequest {
931
- /** Gallery ID. */
1033
+ /**
1034
+ * Gallery ID.
1035
+ * @format GUID
1036
+ */
932
1037
  galleryId: string;
933
- /** IDs of the media items to delete. */
1038
+ /**
1039
+ * IDs of the media items to delete.
1040
+ * @format GUID
1041
+ * @minSize 1
1042
+ * @maxSize 1000
1043
+ */
934
1044
  itemIds: string[];
935
1045
  }
936
1046
  export interface BulkDeleteGalleryItemsResponse {
937
1047
  /**
938
1048
  * IDs of the deleted media items.
939
1049
  * @readonly
1050
+ * @format GUID
940
1051
  */
941
1052
  itemIds?: string[];
942
1053
  }
943
1054
  export interface CreateGalleryItemRequest {
944
- /** Gallery ID. */
1055
+ /**
1056
+ * Gallery ID.
1057
+ * @format GUID
1058
+ */
945
1059
  galleryId: string;
946
1060
  /** Media item to create. */
947
1061
  item: Item;
@@ -951,9 +1065,15 @@ export interface CreateGalleryItemResponse {
951
1065
  item?: Item;
952
1066
  }
953
1067
  export interface CreateGalleryItemsRequest {
954
- /** Gallery ID. */
1068
+ /**
1069
+ * Gallery ID.
1070
+ * @format GUID
1071
+ */
955
1072
  galleryId?: string;
956
- /** Media items to create. */
1073
+ /**
1074
+ * Media items to create.
1075
+ * @maxSize 50
1076
+ */
957
1077
  items?: Item[];
958
1078
  }
959
1079
  export interface CreateGalleryItemsResponse {
@@ -961,7 +1081,10 @@ export interface CreateGalleryItemsResponse {
961
1081
  items?: Item[];
962
1082
  }
963
1083
  export interface UpdateGalleryItemRequest {
964
- /** Gallery ID. */
1084
+ /**
1085
+ * Gallery ID.
1086
+ * @format GUID
1087
+ */
965
1088
  galleryId: string;
966
1089
  /** Media item to update. */
967
1090
  item: Item;
@@ -971,26 +1094,166 @@ export interface UpdateGalleryItemResponse {
971
1094
  item?: Item;
972
1095
  }
973
1096
  export interface DeleteGalleryItemRequest {
974
- /** Gallery ID. */
1097
+ /**
1098
+ * Gallery ID.
1099
+ * @format GUID
1100
+ */
975
1101
  galleryId: string;
976
- /** ID of the media item to delete. */
1102
+ /**
1103
+ * ID of the media item to delete.
1104
+ * @format GUID
1105
+ */
977
1106
  itemId: string;
978
1107
  }
979
1108
  export interface DeleteGalleryItemResponse {
980
1109
  /**
981
1110
  * ID of the deleted media item.
982
1111
  * @readonly
1112
+ * @format GUID
983
1113
  */
984
1114
  itemId?: string;
985
1115
  }
986
1116
  export interface PublishGalleryRequest {
987
- /** ID of the gallery to publish. */
1117
+ /**
1118
+ * ID of the gallery to publish.
1119
+ * @format GUID
1120
+ */
988
1121
  galleryId?: string;
989
1122
  }
990
1123
  export interface PublishGalleryResponse {
991
1124
  /** Published gallery. */
992
1125
  gallery?: Gallery;
993
1126
  }
1127
+ export interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
1128
+ /** insert/update documents */
1129
+ update?: DocumentUpdateOperation;
1130
+ /** delete by document ids */
1131
+ deleteByIds?: DeleteByIdsOperation;
1132
+ /** delete documents matching filter */
1133
+ deleteByFilter?: DeleteByFilterOperation;
1134
+ /** update documents matching filter */
1135
+ updateByFilter?: UpdateByFilterOperation;
1136
+ /** update only existing documents */
1137
+ updateExisting?: UpdateExistingOperation;
1138
+ /**
1139
+ * application which owns documents
1140
+ * @minLength 2
1141
+ */
1142
+ appDefId?: string | null;
1143
+ /**
1144
+ * type of the documents
1145
+ * @minLength 2
1146
+ */
1147
+ documentType?: string | null;
1148
+ /**
1149
+ * language of the documents
1150
+ * @minLength 2
1151
+ */
1152
+ language?: string | null;
1153
+ /**
1154
+ * site documents belong to
1155
+ * @minLength 2
1156
+ */
1157
+ msId?: string | null;
1158
+ }
1159
+ /** @oneof */
1160
+ export interface UpdateDocumentsEventOperationOneOf {
1161
+ /** insert/update documents */
1162
+ update?: DocumentUpdateOperation;
1163
+ /** delete by document ids */
1164
+ deleteByIds?: DeleteByIdsOperation;
1165
+ /** delete documents matching filter */
1166
+ deleteByFilter?: DeleteByFilterOperation;
1167
+ /** update documents matching filter */
1168
+ updateByFilter?: UpdateByFilterOperation;
1169
+ /** update only existing documents */
1170
+ updateExisting?: UpdateExistingOperation;
1171
+ }
1172
+ export interface DocumentUpdateOperation {
1173
+ /** documents to index or update */
1174
+ documents?: IndexDocument[];
1175
+ }
1176
+ export interface IndexDocument {
1177
+ /** data bag with non-searchable fields (url, image) */
1178
+ payload?: DocumentPayload;
1179
+ /** what type of users should documents be visible to */
1180
+ exposure?: Enum;
1181
+ /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */
1182
+ document?: Record<string, any> | null;
1183
+ /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */
1184
+ permittedMemberGroups?: string[];
1185
+ /** if true SEO is disabled for this document */
1186
+ seoHidden?: boolean | null;
1187
+ /** if true the page is a lightbox popup */
1188
+ isPopup?: boolean | null;
1189
+ }
1190
+ export interface DocumentPayload {
1191
+ /** url of the page representing the document */
1192
+ url?: string | null;
1193
+ /** image which represents the document */
1194
+ documentImage?: DocumentImage;
1195
+ }
1196
+ export interface DocumentImage {
1197
+ /** the name of the image */
1198
+ name?: string;
1199
+ /** the width of the image */
1200
+ width?: number;
1201
+ /** the height of the image */
1202
+ height?: number;
1203
+ }
1204
+ export declare enum Enum {
1205
+ /** Default value. Means that permission not set */
1206
+ UNKNOWN = "UNKNOWN",
1207
+ /** Protected exposure. Exposed to members and owners */
1208
+ PROTECTED = "PROTECTED",
1209
+ /** Private exposure. Exposed to owners */
1210
+ PRIVATE = "PRIVATE",
1211
+ /** Public exposure. Visible to everyone */
1212
+ PUBLIC = "PUBLIC",
1213
+ /** Used for partial updates, to state that exposure is not changing */
1214
+ UNCHANGED = "UNCHANGED",
1215
+ /** Protected to members of permitted groups and owners */
1216
+ GROUP_PROTECTED = "GROUP_PROTECTED"
1217
+ }
1218
+ export interface DeleteByIdsOperation {
1219
+ /** ids of the documents to delete */
1220
+ documentIds?: string[];
1221
+ }
1222
+ export interface DeleteByFilterOperation {
1223
+ /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
1224
+ filter?: Record<string, any> | null;
1225
+ }
1226
+ export interface UpdateByFilterOperation {
1227
+ /** documents matching this filter will be updated */
1228
+ filter?: Record<string, any> | null;
1229
+ /** partial document to apply */
1230
+ document?: IndexDocument;
1231
+ }
1232
+ export interface UpdateExistingOperation {
1233
+ /** documents to update */
1234
+ documents?: IndexDocument[];
1235
+ }
1236
+ export interface SearchIndexingNotification {
1237
+ /** new state of indexing for the site specified in ms_id */
1238
+ indexState?: SearchIndexingNotificationState;
1239
+ /** type of the document the notification is targeted for. Applies to all types if not provided */
1240
+ documentType?: string | null;
1241
+ /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */
1242
+ language?: string | null;
1243
+ /**
1244
+ * site for which notification is targeted
1245
+ * @minLength 2
1246
+ */
1247
+ msId?: string | null;
1248
+ }
1249
+ export declare enum SearchIndexingNotificationState {
1250
+ /** default state */
1251
+ Unknown = "Unknown",
1252
+ /** metasite does not require site search indexing */
1253
+ Off = "Off",
1254
+ /** metasite requires site search indexing */
1255
+ On = "On"
1256
+ }
994
1257
  interface CommonImageNonNullableFields {
995
1258
  id: string;
996
1259
  url: string;