@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.
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 +430 -183
  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 +514 -209
  13. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +23 -23
  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 +430 -183
  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 +514 -209
  27. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +22 -22
  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 +430 -183
  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 +514 -209
  41. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +23 -23
  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 +430 -183
  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 +514 -209
  55. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +22 -22
  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,24 @@ 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"
763
- }
764
801
  export interface ListGalleriesItemsRequest {
765
- /** IDs of the media items to retrieve. */
802
+ /**
803
+ * IDs of the media items to retrieve.
804
+ * @minSize 1
805
+ * @maxSize 100
806
+ */
766
807
  itemsId?: ItemId[];
767
808
  }
768
809
  export interface ItemId {
769
- /** Gallery ID. */
810
+ /**
811
+ * Gallery ID.
812
+ * @format GUID
813
+ */
770
814
  galleryId?: string;
771
- /** Item ID. */
815
+ /**
816
+ * Item ID.
817
+ * @format GUID
818
+ */
772
819
  itemId?: string;
773
820
  }
774
821
  export interface ListGalleriesItemsResponse {
@@ -776,7 +823,10 @@ export interface ListGalleriesItemsResponse {
776
823
  itemsInGalleries?: ItemsInGallery[];
777
824
  }
778
825
  export interface ItemsInGallery {
779
- /** Gallery ID. */
826
+ /**
827
+ * Gallery ID.
828
+ * @format GUID
829
+ */
780
830
  galleryId?: string;
781
831
  /** Retrieved media items. */
782
832
  items?: Item[];
@@ -790,7 +840,10 @@ export interface GalleryItemUpdated {
790
840
  updatedItem?: Item;
791
841
  }
792
842
  export interface GalleryItemDeleted {
793
- /** ID of the deleted gallery item. */
843
+ /**
844
+ * ID of the deleted gallery item.
845
+ * @format GUID
846
+ */
794
847
  itemId?: string;
795
848
  }
796
849
  export interface ListGalleriesRequest {
@@ -800,6 +853,8 @@ export interface ListGalleriesRequest {
800
853
  * Min: `1` <br />
801
854
  * Max: `100` <br />
802
855
  * Default: `10`
856
+ * @min 1
857
+ * @max 100
803
858
  */
804
859
  itemLimit?: number | null;
805
860
  /**
@@ -814,6 +869,8 @@ export interface ListGalleriesRequest {
814
869
  * Min: `1` <br />
815
870
  * Max: `10` <br />
816
871
  * Default: `10`
872
+ * @min 1
873
+ * @max 10
817
874
  */
818
875
  limit?: number | null;
819
876
  }
@@ -832,7 +889,10 @@ export interface ListGalleriesResponse {
832
889
  galleries?: Gallery[];
833
890
  }
834
891
  export interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {
835
- /** Gallery ID. */
892
+ /**
893
+ * Gallery ID.
894
+ * @format GUID
895
+ */
836
896
  galleryId: string;
837
897
  /**
838
898
  * Number of media items to skip in the response. <br />
@@ -846,6 +906,8 @@ export interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {
846
906
  * Min: `1` <br />
847
907
  * Max: `100` <br />
848
908
  * Default: `50`
909
+ * @min 1
910
+ * @max 200
849
911
  */
850
912
  itemLimit?: number | null;
851
913
  }
@@ -857,7 +919,10 @@ export interface GetGalleryResponse {
857
919
  gallery?: Gallery;
858
920
  }
859
921
  export interface ListGalleryItemsRequest {
860
- /** Gallery ID. */
922
+ /**
923
+ * Gallery ID.
924
+ * @format GUID
925
+ */
861
926
  galleryId: string;
862
927
  /**
863
928
  * Number of media items to skip in the response. <br />
@@ -871,6 +936,8 @@ export interface ListGalleryItemsRequest {
871
936
  * Min: `1` <br />
872
937
  * Max: `100` <br />
873
938
  * Default: `50`
939
+ * @min 1
940
+ * @max 200
874
941
  */
875
942
  itemLimit?: number | null;
876
943
  }
@@ -879,9 +946,15 @@ export interface ListGalleryItemsResponse {
879
946
  items?: Item[];
880
947
  }
881
948
  export interface GetGalleryItemRequest {
882
- /** Gallery ID. */
949
+ /**
950
+ * Gallery ID.
951
+ * @format GUID
952
+ */
883
953
  galleryId: string;
884
- /** Item ID. */
954
+ /**
955
+ * Item ID.
956
+ * @format GUID
957
+ */
885
958
  itemId: string;
886
959
  }
887
960
  export interface GetGalleryItemResponse {
@@ -891,7 +964,10 @@ export interface GetGalleryItemResponse {
891
964
  export interface CreateGalleryRequest {
892
965
  /** Gallery to create. */
893
966
  gallery?: Gallery;
894
- /** Gallery ID to clone from. */
967
+ /**
968
+ * Gallery ID to clone from.
969
+ * @format GUID
970
+ */
895
971
  cloneFromGalleryId?: string | null;
896
972
  }
897
973
  export interface CreateGalleryResponse {
@@ -907,20 +983,30 @@ export interface UpdateGalleryResponse {
907
983
  gallery?: Gallery;
908
984
  }
909
985
  export interface DeleteGalleryRequest {
910
- /** ID of the gallery to delete. */
986
+ /**
987
+ * ID of the gallery to delete.
988
+ * @format GUID
989
+ */
911
990
  galleryId: string;
912
991
  }
913
992
  export interface DeleteGalleryResponse {
914
993
  /**
915
994
  * ID of the deleted gallery.
916
995
  * @readonly
996
+ * @format GUID
917
997
  */
918
998
  galleryId?: string;
919
999
  }
920
1000
  export interface DeleteGalleryItemsRequest {
921
- /** Gallery ID. */
1001
+ /**
1002
+ * Gallery ID.
1003
+ * @format GUID
1004
+ */
922
1005
  galleryId: string;
923
- /** ID of the media item to delete. */
1006
+ /**
1007
+ * ID of the media item to delete.
1008
+ * @format GUID
1009
+ */
924
1010
  itemsIds?: string[];
925
1011
  }
926
1012
  export interface DeleteGalleryItemsResponse {
@@ -928,20 +1014,32 @@ export interface DeleteGalleryItemsResponse {
928
1014
  gallery?: Gallery;
929
1015
  }
930
1016
  export interface BulkDeleteGalleryItemsRequest {
931
- /** Gallery ID. */
1017
+ /**
1018
+ * Gallery ID.
1019
+ * @format GUID
1020
+ */
932
1021
  galleryId: string;
933
- /** IDs of the media items to delete. */
1022
+ /**
1023
+ * IDs of the media items to delete.
1024
+ * @format GUID
1025
+ * @minSize 1
1026
+ * @maxSize 1000
1027
+ */
934
1028
  itemIds: string[];
935
1029
  }
936
1030
  export interface BulkDeleteGalleryItemsResponse {
937
1031
  /**
938
1032
  * IDs of the deleted media items.
939
1033
  * @readonly
1034
+ * @format GUID
940
1035
  */
941
1036
  itemIds?: string[];
942
1037
  }
943
1038
  export interface CreateGalleryItemRequest {
944
- /** Gallery ID. */
1039
+ /**
1040
+ * Gallery ID.
1041
+ * @format GUID
1042
+ */
945
1043
  galleryId: string;
946
1044
  /** Media item to create. */
947
1045
  item: Item;
@@ -951,9 +1049,15 @@ export interface CreateGalleryItemResponse {
951
1049
  item?: Item;
952
1050
  }
953
1051
  export interface CreateGalleryItemsRequest {
954
- /** Gallery ID. */
1052
+ /**
1053
+ * Gallery ID.
1054
+ * @format GUID
1055
+ */
955
1056
  galleryId?: string;
956
- /** Media items to create. */
1057
+ /**
1058
+ * Media items to create.
1059
+ * @maxSize 50
1060
+ */
957
1061
  items?: Item[];
958
1062
  }
959
1063
  export interface CreateGalleryItemsResponse {
@@ -961,7 +1065,10 @@ export interface CreateGalleryItemsResponse {
961
1065
  items?: Item[];
962
1066
  }
963
1067
  export interface UpdateGalleryItemRequest {
964
- /** Gallery ID. */
1068
+ /**
1069
+ * Gallery ID.
1070
+ * @format GUID
1071
+ */
965
1072
  galleryId: string;
966
1073
  /** Media item to update. */
967
1074
  item: Item;
@@ -971,26 +1078,166 @@ export interface UpdateGalleryItemResponse {
971
1078
  item?: Item;
972
1079
  }
973
1080
  export interface DeleteGalleryItemRequest {
974
- /** Gallery ID. */
1081
+ /**
1082
+ * Gallery ID.
1083
+ * @format GUID
1084
+ */
975
1085
  galleryId: string;
976
- /** ID of the media item to delete. */
1086
+ /**
1087
+ * ID of the media item to delete.
1088
+ * @format GUID
1089
+ */
977
1090
  itemId: string;
978
1091
  }
979
1092
  export interface DeleteGalleryItemResponse {
980
1093
  /**
981
1094
  * ID of the deleted media item.
982
1095
  * @readonly
1096
+ * @format GUID
983
1097
  */
984
1098
  itemId?: string;
985
1099
  }
986
1100
  export interface PublishGalleryRequest {
987
- /** ID of the gallery to publish. */
1101
+ /**
1102
+ * ID of the gallery to publish.
1103
+ * @format GUID
1104
+ */
988
1105
  galleryId?: string;
989
1106
  }
990
1107
  export interface PublishGalleryResponse {
991
1108
  /** Published gallery. */
992
1109
  gallery?: Gallery;
993
1110
  }
1111
+ export interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
1112
+ /** insert/update documents */
1113
+ update?: DocumentUpdateOperation;
1114
+ /** delete by document ids */
1115
+ deleteByIds?: DeleteByIdsOperation;
1116
+ /** delete documents matching filter */
1117
+ deleteByFilter?: DeleteByFilterOperation;
1118
+ /** update documents matching filter */
1119
+ updateByFilter?: UpdateByFilterOperation;
1120
+ /** update only existing documents */
1121
+ updateExisting?: UpdateExistingOperation;
1122
+ /**
1123
+ * application which owns documents
1124
+ * @minLength 2
1125
+ */
1126
+ appDefId?: string | null;
1127
+ /**
1128
+ * type of the documents
1129
+ * @minLength 2
1130
+ */
1131
+ documentType?: string | null;
1132
+ /**
1133
+ * language of the documents
1134
+ * @minLength 2
1135
+ */
1136
+ language?: string | null;
1137
+ /**
1138
+ * site documents belong to
1139
+ * @minLength 2
1140
+ */
1141
+ msId?: string | null;
1142
+ }
1143
+ /** @oneof */
1144
+ export interface UpdateDocumentsEventOperationOneOf {
1145
+ /** insert/update documents */
1146
+ update?: DocumentUpdateOperation;
1147
+ /** delete by document ids */
1148
+ deleteByIds?: DeleteByIdsOperation;
1149
+ /** delete documents matching filter */
1150
+ deleteByFilter?: DeleteByFilterOperation;
1151
+ /** update documents matching filter */
1152
+ updateByFilter?: UpdateByFilterOperation;
1153
+ /** update only existing documents */
1154
+ updateExisting?: UpdateExistingOperation;
1155
+ }
1156
+ export interface DocumentUpdateOperation {
1157
+ /** documents to index or update */
1158
+ documents?: IndexDocument[];
1159
+ }
1160
+ export interface IndexDocument {
1161
+ /** data bag with non-searchable fields (url, image) */
1162
+ payload?: DocumentPayload;
1163
+ /** what type of users should documents be visible to */
1164
+ exposure?: Enum;
1165
+ /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */
1166
+ document?: Record<string, any> | null;
1167
+ /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */
1168
+ permittedMemberGroups?: string[];
1169
+ /** if true SEO is disabled for this document */
1170
+ seoHidden?: boolean | null;
1171
+ /** if true the page is a lightbox popup */
1172
+ isPopup?: boolean | null;
1173
+ }
1174
+ export interface DocumentPayload {
1175
+ /** url of the page representing the document */
1176
+ url?: string | null;
1177
+ /** image which represents the document */
1178
+ documentImage?: DocumentImage;
1179
+ }
1180
+ export interface DocumentImage {
1181
+ /** the name of the image */
1182
+ name?: string;
1183
+ /** the width of the image */
1184
+ width?: number;
1185
+ /** the height of the image */
1186
+ height?: number;
1187
+ }
1188
+ export declare enum Enum {
1189
+ /** Default value. Means that permission not set */
1190
+ UNKNOWN = "UNKNOWN",
1191
+ /** Protected exposure. Exposed to members and owners */
1192
+ PROTECTED = "PROTECTED",
1193
+ /** Private exposure. Exposed to owners */
1194
+ PRIVATE = "PRIVATE",
1195
+ /** Public exposure. Visible to everyone */
1196
+ PUBLIC = "PUBLIC",
1197
+ /** Used for partial updates, to state that exposure is not changing */
1198
+ UNCHANGED = "UNCHANGED",
1199
+ /** Protected to members of permitted groups and owners */
1200
+ GROUP_PROTECTED = "GROUP_PROTECTED"
1201
+ }
1202
+ export interface DeleteByIdsOperation {
1203
+ /** ids of the documents to delete */
1204
+ documentIds?: string[];
1205
+ }
1206
+ export interface DeleteByFilterOperation {
1207
+ /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
1208
+ filter?: Record<string, any> | null;
1209
+ }
1210
+ export interface UpdateByFilterOperation {
1211
+ /** documents matching this filter will be updated */
1212
+ filter?: Record<string, any> | null;
1213
+ /** partial document to apply */
1214
+ document?: IndexDocument;
1215
+ }
1216
+ export interface UpdateExistingOperation {
1217
+ /** documents to update */
1218
+ documents?: IndexDocument[];
1219
+ }
1220
+ export interface SearchIndexingNotification {
1221
+ /** new state of indexing for the site specified in ms_id */
1222
+ indexState?: SearchIndexingNotificationState;
1223
+ /** type of the document the notification is targeted for. Applies to all types if not provided */
1224
+ documentType?: string | null;
1225
+ /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */
1226
+ language?: string | null;
1227
+ /**
1228
+ * site for which notification is targeted
1229
+ * @minLength 2
1230
+ */
1231
+ msId?: string | null;
1232
+ }
1233
+ export declare enum SearchIndexingNotificationState {
1234
+ /** default state */
1235
+ Unknown = "Unknown",
1236
+ /** metasite does not require site search indexing */
1237
+ Off = "Off",
1238
+ /** metasite requires site search indexing */
1239
+ On = "On"
1240
+ }
994
1241
  interface CommonImageNonNullableFields {
995
1242
  id: string;
996
1243
  url: string;