@wix/pro-gallery 1.0.0

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 (31) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +24 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/src/pro-gallery-v2-gallery.http.d.ts +88 -0
  5. package/build/cjs/src/pro-gallery-v2-gallery.http.js +537 -0
  6. package/build/cjs/src/pro-gallery-v2-gallery.http.js.map +1 -0
  7. package/build/cjs/src/pro-gallery-v2-gallery.public.d.ts +14 -0
  8. package/build/cjs/src/pro-gallery-v2-gallery.public.js +73 -0
  9. package/build/cjs/src/pro-gallery-v2-gallery.public.js.map +1 -0
  10. package/build/cjs/src/pro-gallery-v2-gallery.types.d.ts +867 -0
  11. package/build/cjs/src/pro-gallery-v2-gallery.types.js +64 -0
  12. package/build/cjs/src/pro-gallery-v2-gallery.types.js.map +1 -0
  13. package/build/cjs/src/pro-gallery-v2-gallery.universal.d.ts +1106 -0
  14. package/build/cjs/src/pro-gallery-v2-gallery.universal.js +703 -0
  15. package/build/cjs/src/pro-gallery-v2-gallery.universal.js.map +1 -0
  16. package/build/es/index.d.ts +1 -0
  17. package/build/es/index.js +2 -0
  18. package/build/es/index.js.map +1 -0
  19. package/build/es/src/pro-gallery-v2-gallery.http.d.ts +88 -0
  20. package/build/es/src/pro-gallery-v2-gallery.http.js +524 -0
  21. package/build/es/src/pro-gallery-v2-gallery.http.js.map +1 -0
  22. package/build/es/src/pro-gallery-v2-gallery.public.d.ts +14 -0
  23. package/build/es/src/pro-gallery-v2-gallery.public.js +53 -0
  24. package/build/es/src/pro-gallery-v2-gallery.public.js.map +1 -0
  25. package/build/es/src/pro-gallery-v2-gallery.types.d.ts +867 -0
  26. package/build/es/src/pro-gallery-v2-gallery.types.js +61 -0
  27. package/build/es/src/pro-gallery-v2-gallery.types.js.map +1 -0
  28. package/build/es/src/pro-gallery-v2-gallery.universal.d.ts +1106 -0
  29. package/build/es/src/pro-gallery-v2-gallery.universal.js +671 -0
  30. package/build/es/src/pro-gallery-v2-gallery.universal.js.map +1 -0
  31. package/package.json +37 -0
@@ -0,0 +1,867 @@
1
+ export interface Gallery {
2
+ /**
3
+ * Gallery ID.
4
+ * @readonly
5
+ */
6
+ id?: string | null;
7
+ /** Gallery name. */
8
+ name?: string | null;
9
+ /**
10
+ * Total number of items in the gallery.
11
+ * @readonly
12
+ */
13
+ totalItems?: number | null;
14
+ /** Media items in the gallery. */
15
+ items?: Item[];
16
+ /**
17
+ * Gallery sort order.
18
+ * Determines which position a gallery is displayed on the site. <br />
19
+ *
20
+ * Min: `1` <br />
21
+ */
22
+ sortOrder?: number | null;
23
+ /**
24
+ * Date and time the gallery was created.
25
+ * @readonly
26
+ */
27
+ createdDate?: Date;
28
+ }
29
+ export interface Item extends ItemMetadataOneOf {
30
+ /**
31
+ * Item ID.
32
+ * @readonly
33
+ */
34
+ id?: string | null;
35
+ /**
36
+ * Item sort order.
37
+ * Determines which position a media item is displayed in the gallery. <br />
38
+ *
39
+ * Min: `1` <br />
40
+ * Default: [Epoch](https://www.epoch101.com/) timestamp in descending order (end of the gallery items list). <br />
41
+ *
42
+ * *Note:** If the same sort order number is assigned to more than one media item in a gallery, the first media item to which it was assigned will come first.
43
+ */
44
+ sortOrder?: number | null;
45
+ /** Item title. */
46
+ title?: string | null;
47
+ /** Item description. */
48
+ description?: string | null;
49
+ /** Link from the item. You can link to Wix sites or external URLs. */
50
+ link?: Link;
51
+ /**
52
+ * Item data type. One of:
53
+ * <br />
54
+ * +`"IMAGE"`
55
+ * <br />
56
+ * +`"VIDEO"`
57
+ * <br />
58
+ * +`"TEXT"`
59
+ * @readonly
60
+ */
61
+ type?: Type;
62
+ /**
63
+ * Date and time the item was created.
64
+ * @readonly
65
+ */
66
+ createdDate?: Date;
67
+ /**
68
+ * Date and time the item was last updated.
69
+ * @readonly
70
+ */
71
+ updatedDate?: Date;
72
+ /** Item tags. */
73
+ tags?: Tags;
74
+ /** Information about the image. */
75
+ image?: Image;
76
+ /** Information about the video. */
77
+ video?: Video;
78
+ /** Information about the text file. */
79
+ text?: Text;
80
+ }
81
+ /** @oneof */
82
+ export interface ItemMetadataOneOf {
83
+ /** Information about the image. */
84
+ image?: Image;
85
+ /** Information about the video. */
86
+ video?: Video;
87
+ /** Information about the text file. */
88
+ text?: Text;
89
+ }
90
+ export interface Link {
91
+ /** Display text of the link. */
92
+ text?: string | null;
93
+ /** Target URL of the link. */
94
+ url?: string | null;
95
+ /**
96
+ * Whether the link opens in a new tab or window. One of:
97
+ * + `"_blank"`: The link opens in a new tab or window.
98
+ * + `"_self"`: The link opens in the same tab or window.
99
+ */
100
+ target?: string | null;
101
+ }
102
+ export declare enum LinkType {
103
+ UNDEFINED = "UNDEFINED",
104
+ /** external link */
105
+ EXTERNAL = "EXTERNAL",
106
+ /** for internal usage using wixLinkData */
107
+ INTERNAL = "INTERNAL"
108
+ }
109
+ /** The link object generated by panels in the editor and used by applications in Wix */
110
+ export interface WixLink extends WixLinkLinkOneOf {
111
+ /** External link type */
112
+ external?: ExternalLink;
113
+ /** Page link type */
114
+ page?: PageLink;
115
+ /** Anchor link type */
116
+ anchor?: AnchorLink;
117
+ /** Dynamic page link type */
118
+ dynamicPage?: DynamicPageLink;
119
+ /** Document link type */
120
+ document?: DocumentLink;
121
+ /** Email link type */
122
+ email?: EmailLink;
123
+ /** Phone link type */
124
+ phone?: PhoneLink;
125
+ /** Address link type */
126
+ address?: AddressLink;
127
+ /** WhatsApp link type */
128
+ whatsApp?: WhatsAppLink;
129
+ }
130
+ /** @oneof */
131
+ export interface WixLinkLinkOneOf {
132
+ /** External link type */
133
+ external?: ExternalLink;
134
+ /** Page link type */
135
+ page?: PageLink;
136
+ /** Anchor link type */
137
+ anchor?: AnchorLink;
138
+ /** Dynamic page link type */
139
+ dynamicPage?: DynamicPageLink;
140
+ /** Document link type */
141
+ document?: DocumentLink;
142
+ /** Email link type */
143
+ email?: EmailLink;
144
+ /** Phone link type */
145
+ phone?: PhoneLink;
146
+ /** Address link type */
147
+ address?: AddressLink;
148
+ /** WhatsApp link type */
149
+ whatsApp?: WhatsAppLink;
150
+ }
151
+ export interface ExternalLink {
152
+ /** The url of the page */
153
+ url?: string;
154
+ /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
155
+ target?: string | null;
156
+ }
157
+ export interface PageLink {
158
+ /** The page id we want from the site */
159
+ pageId?: string;
160
+ /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
161
+ target?: string | null;
162
+ }
163
+ export interface AnchorLink {
164
+ /** The name of the anchor */
165
+ anchorName?: string;
166
+ /** The data id (from the JSON page) of the anchor that should be used */
167
+ anchorDataId?: string;
168
+ /** The page id we want from the site */
169
+ pageId?: string;
170
+ }
171
+ export interface DynamicPageLink {
172
+ /** The router that handles this link */
173
+ routerId?: string;
174
+ /** The path data we'd like */
175
+ innerRoute?: string;
176
+ /** The data id (from the JSON page) of the anchor that should be used */
177
+ anchorDataId?: string | null;
178
+ }
179
+ export interface DocumentLink {
180
+ /** The id of the document */
181
+ docId?: string;
182
+ /** The name of the document for download purposes */
183
+ name?: string | null;
184
+ /** If this document can be indexed by scrapers, default is false */
185
+ indexable?: boolean;
186
+ }
187
+ export interface EmailLink {
188
+ /** The email we will be sending a message to */
189
+ recipient?: string;
190
+ /** The subject of the email */
191
+ subject?: string | null;
192
+ /** The body of the email */
193
+ body?: string | null;
194
+ }
195
+ export interface PhoneLink {
196
+ /** The phone number we want to link to */
197
+ phoneNumber?: string;
198
+ }
199
+ export interface AddressLink {
200
+ /** An address that we can link to */
201
+ address?: string;
202
+ }
203
+ export interface WhatsAppLink {
204
+ /** The whatsApp phone number we want to connect with */
205
+ phoneNumber?: string;
206
+ }
207
+ export declare enum Type {
208
+ UNDEFINED = "UNDEFINED",
209
+ IMAGE = "IMAGE",
210
+ VIDEO = "VIDEO",
211
+ TEXT = "TEXT"
212
+ }
213
+ export interface Image {
214
+ /** Image info - Wix Media Image. Required. */
215
+ imageInfo?: CommonImage;
216
+ /** Focal point of the image. */
217
+ focalPoint?: Point;
218
+ /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */
219
+ exif?: Record<string, any> | null;
220
+ /**
221
+ * Image compression level. <br />
222
+ *
223
+ * Min: `30` <br />
224
+ * Max: `100`
225
+ */
226
+ quality?: number | null;
227
+ /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
228
+ unsharpMasking?: UnsharpMasking;
229
+ }
230
+ export declare enum ImageType {
231
+ UNDEFINED = "UNDEFINED",
232
+ WIX_MEDIA = "WIX_MEDIA",
233
+ EXTERNAL = "EXTERNAL"
234
+ }
235
+ export interface CommonImage {
236
+ /** WixMedia image ID. Required. */
237
+ id?: string;
238
+ /**
239
+ * Image URL.
240
+ * @readonly
241
+ */
242
+ url?: string;
243
+ /** Original image height. Required. */
244
+ height?: number;
245
+ /** Original image width. Required. */
246
+ width?: number;
247
+ /** Image alt text. */
248
+ altText?: string | null;
249
+ /** Image filename. */
250
+ filename?: string | null;
251
+ }
252
+ export interface Point {
253
+ /** X-coordinate of the focal point. */
254
+ x?: number;
255
+ /** Y-coordinate of the focal point. */
256
+ y?: number;
257
+ }
258
+ export interface UnsharpMasking {
259
+ /**
260
+ * Unsharp masking amount. Controls the sharpening strength. <br />
261
+ *
262
+ * Min: `0` <br />
263
+ * Max: `5`
264
+ */
265
+ amount?: number | null;
266
+ /** Unsharp masking radius in pixels. Controls the sharpening width. */
267
+ radius?: number | null;
268
+ /**
269
+ * Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br />
270
+ *
271
+ * Min: `0` <br />
272
+ * Max: `1`
273
+ */
274
+ threshold?: number | null;
275
+ }
276
+ export interface Video {
277
+ type?: VideoType;
278
+ /** Video info - can include Wix Media or an external link from YouTube or Vimeo. Required. */
279
+ videoInfo?: VideoV2;
280
+ /** Manually defined Video duration in milliseconds. */
281
+ durationInMillis?: number | null;
282
+ }
283
+ export declare enum VideoType {
284
+ UNDEFINED = "UNDEFINED",
285
+ WIX_MEDIA = "WIX_MEDIA",
286
+ YOUTUBE = "YOUTUBE",
287
+ VIMEO = "VIMEO"
288
+ }
289
+ export interface VideoV2 {
290
+ /** WixMedia ID. Required when associating an existing Wix Media video. */
291
+ id?: string;
292
+ /** Video URL. Required when associating a video from an external source (YouTube/Vimeo). */
293
+ url?: string;
294
+ /** Available resolutions for the video, starting with the optimal resolution. */
295
+ resolutions?: VideoResolution[];
296
+ /** Video filename. */
297
+ filename?: string | null;
298
+ /** Video posters. */
299
+ posters?: CommonImage[];
300
+ }
301
+ export interface VideoResolution {
302
+ /** Video URL. Required. */
303
+ url?: string;
304
+ /** Video height. Required. */
305
+ height?: number;
306
+ /** Video width. Required. */
307
+ width?: number;
308
+ /** Video format for example, mp4, hls. Required. */
309
+ format?: string;
310
+ /** Video quality for example 480p, 720p. */
311
+ quality?: string | null;
312
+ /** Video filename. */
313
+ filename?: string | null;
314
+ }
315
+ export interface Text {
316
+ /** Text in HTML format. */
317
+ html?: string | null;
318
+ /**
319
+ * Set of key-value pairs describing the [CSS style](https://en.wikipedia.org/wiki/CSS) of the text.
320
+ * __Note:__ The object structure is customizable. See the [List Gallery Items](https://dev.wix.com/api/rest/site-content/pro-gallery/list-gallery-items) code example for supported values.
321
+ */
322
+ css?: Record<string, any> | null;
323
+ /** Editor HTML of the text. Reserved for internal use only. */
324
+ editorHtml?: string | null;
325
+ /** Editor font ID of the text. Reserved for internal use only. */
326
+ editorFontId?: string | null;
327
+ }
328
+ export interface Tags {
329
+ /** List of tags assigned to the media item. */
330
+ values?: string[];
331
+ }
332
+ export interface SecondaryMedia extends SecondaryMediaMetadataOneOf {
333
+ /** secondary media photo metadata (optional) */
334
+ image?: Image;
335
+ /** secondary media text metadata (optional) */
336
+ text?: Text;
337
+ }
338
+ /** @oneof */
339
+ export interface SecondaryMediaMetadataOneOf {
340
+ /** secondary media photo metadata (optional) */
341
+ image?: Image;
342
+ /** secondary media text metadata (optional) */
343
+ text?: Text;
344
+ }
345
+ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
346
+ /** tell us why you're invalidating the cache. You don't need to add your app name */
347
+ reason?: string | null;
348
+ /** Is local DS */
349
+ localDc?: boolean;
350
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
351
+ metaSiteId?: string;
352
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
353
+ siteId?: string;
354
+ /** Invalidate by App */
355
+ app?: App;
356
+ /** Invalidate by page id */
357
+ page?: Page;
358
+ /** Invalidate by URI path */
359
+ uri?: URI;
360
+ }
361
+ /** @oneof */
362
+ export interface InvalidateCacheGetByOneOf {
363
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
364
+ metaSiteId?: string;
365
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
366
+ siteId?: string;
367
+ /** Invalidate by App */
368
+ app?: App;
369
+ /** Invalidate by page id */
370
+ page?: Page;
371
+ /** Invalidate by URI path */
372
+ uri?: URI;
373
+ }
374
+ export interface App {
375
+ /** The AppDefId */
376
+ appDefId?: string;
377
+ /** The instance Id */
378
+ instanceId?: string;
379
+ }
380
+ export interface Page {
381
+ /** the msid the page is on */
382
+ metaSiteId?: string;
383
+ /** Invalidate by Page ID */
384
+ pageId?: string;
385
+ }
386
+ export interface URI {
387
+ /** the msid the URI is on */
388
+ metaSiteId?: string;
389
+ /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
390
+ uriPath?: string;
391
+ }
392
+ export interface GalleryPublished {
393
+ /**
394
+ * id of the gallery that will be published
395
+ * @readonly
396
+ */
397
+ galleryId?: string;
398
+ isRc?: boolean;
399
+ /** @readonly */
400
+ newRevision?: Date;
401
+ /** @readonly */
402
+ oldRevision?: Date;
403
+ }
404
+ export interface CleanDeletedGalleriesEvent {
405
+ /** @readonly */
406
+ instanceId?: string;
407
+ /** @readonly */
408
+ metaSiteId?: string;
409
+ /** @readonly */
410
+ htmlSiteRevision?: string;
411
+ /** @readonly */
412
+ timeSitePublished?: Date;
413
+ }
414
+ export interface ProgallerypublisherPublishGalleryRequest {
415
+ /** id of the gallery that will be published */
416
+ galleryId?: string;
417
+ }
418
+ export interface ProgallerypublisherPublishGalleryResponse {
419
+ }
420
+ export interface PublishGalleryItemRequest {
421
+ /** id of the gallery that will be published */
422
+ galleryId?: string;
423
+ /** id of the item that will be published */
424
+ itemId?: string;
425
+ }
426
+ export interface PublishGalleryItemResponse {
427
+ }
428
+ export interface PublishGalleryItemsRequest {
429
+ /** id of the gallery that will be published */
430
+ galleryId?: string;
431
+ /** ids of the items that will be published */
432
+ itemIds?: string[];
433
+ }
434
+ export interface PublishGalleryItemsResponse {
435
+ }
436
+ export interface Empty {
437
+ }
438
+ export interface HtmlSitePublished {
439
+ /** Application instance ID */
440
+ appInstanceId?: string;
441
+ /** Application type */
442
+ appType?: string;
443
+ /** Revision */
444
+ revision?: string;
445
+ /** MSID */
446
+ metaSiteId?: string | null;
447
+ /** optional branch id if publish is done from branch */
448
+ branchId?: string | null;
449
+ /** The site's last transactionId */
450
+ lastTransactionId?: string | null;
451
+ /** A list of the site's pages */
452
+ pages?: EventsPage[];
453
+ /** Site's publish date */
454
+ publishDate?: string;
455
+ }
456
+ export interface EventsPage {
457
+ /** Page's Id */
458
+ id?: string;
459
+ }
460
+ export interface HtmlSiteRCPublished {
461
+ /** Application instance ID */
462
+ appInstanceId?: string;
463
+ /** Revision */
464
+ revision?: string;
465
+ /** Optional branch Id */
466
+ branchId?: string | null;
467
+ }
468
+ export interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
469
+ /** application which owns documents */
470
+ appDefId?: string | null;
471
+ /** type of the documents */
472
+ documentType?: string | null;
473
+ /** language of the documents */
474
+ language?: string | null;
475
+ /** site documents belong to */
476
+ msId?: string | null;
477
+ /** insert/update documents */
478
+ update?: DocumentUpdateOperation;
479
+ /** delete by document ids */
480
+ deleteByIds?: DeleteByIdsOperation;
481
+ /** delete documents matching filter */
482
+ deleteByFilter?: DeleteByFilterOperation;
483
+ /** update documents matching filter */
484
+ updateByFilter?: UpdateByFilterOperation;
485
+ /** update only existing documents */
486
+ updateExisting?: UpdateExistingOperation;
487
+ }
488
+ /** @oneof */
489
+ export interface UpdateDocumentsEventOperationOneOf {
490
+ /** insert/update documents */
491
+ update?: DocumentUpdateOperation;
492
+ /** delete by document ids */
493
+ deleteByIds?: DeleteByIdsOperation;
494
+ /** delete documents matching filter */
495
+ deleteByFilter?: DeleteByFilterOperation;
496
+ /** update documents matching filter */
497
+ updateByFilter?: UpdateByFilterOperation;
498
+ /** update only existing documents */
499
+ updateExisting?: UpdateExistingOperation;
500
+ }
501
+ export interface DocumentUpdateOperation {
502
+ /** documents to index or update */
503
+ documents?: IndexDocument[];
504
+ }
505
+ export interface IndexDocument {
506
+ /** data bag with non-searchable fields (url, image) */
507
+ payload?: DocumentPayload;
508
+ /** what type of users should documents be visible to */
509
+ exposure?: Enum;
510
+ /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */
511
+ document?: Record<string, any> | null;
512
+ /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */
513
+ permittedMemberGroups?: string[];
514
+ /** if true SEO is disabled for this document */
515
+ seoHidden?: boolean | null;
516
+ }
517
+ export interface DocumentPayload {
518
+ /** url of the page representing the document */
519
+ url?: string | null;
520
+ /** image which represents the document */
521
+ documentImage?: DocumentImage;
522
+ }
523
+ export interface DocumentImage {
524
+ /** the name of the image */
525
+ name?: string;
526
+ /** the width of the image */
527
+ width?: number;
528
+ /** the height of the image */
529
+ height?: number;
530
+ }
531
+ export declare enum Enum {
532
+ /** Default value. Means that permission not set */
533
+ UNKNOWN = "UNKNOWN",
534
+ /** Protected exposure. Exposed to members and owners */
535
+ PROTECTED = "PROTECTED",
536
+ /** Private exposure. Exposed to owners */
537
+ PRIVATE = "PRIVATE",
538
+ /** Public exposure. Visible to everyone */
539
+ PUBLIC = "PUBLIC",
540
+ /** Used for partial updates, to state that exposure is not changing */
541
+ UNCHANGED = "UNCHANGED",
542
+ /** Protected to members of permitted groups and owners */
543
+ GROUP_PROTECTED = "GROUP_PROTECTED"
544
+ }
545
+ export interface DeleteByIdsOperation {
546
+ /** ids of the documents to delete */
547
+ documentIds?: string[];
548
+ }
549
+ export interface DeleteByFilterOperation {
550
+ /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */
551
+ filter?: Record<string, any> | null;
552
+ }
553
+ export interface UpdateByFilterOperation {
554
+ /** documents matching this filter will be updated */
555
+ filter?: Record<string, any> | null;
556
+ /** partial document to apply */
557
+ document?: IndexDocument;
558
+ }
559
+ export interface UpdateExistingOperation {
560
+ /** documents to update */
561
+ documents?: IndexDocument[];
562
+ }
563
+ export interface SearchIndexingNotification {
564
+ /** new state of indexing for the site specified in ms_id */
565
+ indexState?: SearchIndexingNotificationState;
566
+ /** type of the document the notification is targeted for. Applies to all types if not provided */
567
+ documentType?: string | null;
568
+ /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */
569
+ language?: string | null;
570
+ /** site for which notification is targeted */
571
+ msId?: string | null;
572
+ }
573
+ export declare enum SearchIndexingNotificationState {
574
+ /** default state */
575
+ Unknown = "Unknown",
576
+ /** metasite does not require site search indexing */
577
+ Off = "Off",
578
+ /** metasite requires site search indexing */
579
+ On = "On"
580
+ }
581
+ export interface ListGalleriesItemsRequest {
582
+ /** IDs of the media items to retrieve. */
583
+ itemsId?: ItemId[];
584
+ }
585
+ export interface ItemId {
586
+ /** Gallery ID. */
587
+ galleryId?: string;
588
+ /** Item ID. */
589
+ itemId?: string;
590
+ }
591
+ export interface ListGalleriesItemsResponse {
592
+ /** Retrieved media items. */
593
+ itemsInGalleries?: ItemsInGallery[];
594
+ }
595
+ export interface ItemsInGallery {
596
+ /** Gallery ID. */
597
+ galleryId?: string;
598
+ /** Retrieved media items. */
599
+ items?: Item[];
600
+ }
601
+ export interface GalleryItemCreated {
602
+ /** Created gallery item. */
603
+ item?: Item;
604
+ }
605
+ export interface GalleryItemUpdated {
606
+ /** Updated gallery item. */
607
+ updatedItem?: Item;
608
+ }
609
+ export interface GalleryItemDeleted {
610
+ /** ID of the deleted gallery item. */
611
+ itemId?: string;
612
+ }
613
+ export interface ListGalleriesRequest {
614
+ /**
615
+ * Maximum number of media items to return. <br />
616
+ *
617
+ * Min: `1` <br />
618
+ * Max: `100` <br />
619
+ * Default: `10`
620
+ */
621
+ itemLimit?: number | null;
622
+ /**
623
+ * Number of galleries to skip in the response. <br />
624
+ *
625
+ * Default: `0`
626
+ */
627
+ offset?: number | null;
628
+ /**
629
+ * Maximum number of galleries to return. <br />
630
+ *
631
+ * Min: `1` <br />
632
+ * Max: `10` <br />
633
+ * Default: `10`
634
+ */
635
+ limit?: number | null;
636
+ }
637
+ export declare enum State {
638
+ UNDEFINED = "UNDEFINED",
639
+ /** The gallery in the Editor segment */
640
+ SAVED = "SAVED",
641
+ /** The gallery in the LiveSite segment */
642
+ PUBLISHED = "PUBLISHED"
643
+ }
644
+ export interface ListGalleriesResponse {
645
+ /** Total number of galleries in the site. */
646
+ totalGalleries?: number | null;
647
+ /** List of galleries. Sorted by `createdDate`. */
648
+ galleries?: Gallery[];
649
+ }
650
+ export interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {
651
+ /** Gallery ID. */
652
+ galleryId: string;
653
+ /**
654
+ * Number of media items to skip in the response. <br />
655
+ *
656
+ * Default: `0`
657
+ */
658
+ itemOffset?: number | null;
659
+ /**
660
+ * Maximum number of media items to return. <br />
661
+ *
662
+ * Min: `1` <br />
663
+ * Max: `100` <br />
664
+ * Default: `50`
665
+ */
666
+ itemLimit?: number | null;
667
+ }
668
+ /** @oneof */
669
+ export interface GetGalleryRequestVersionOneOf {
670
+ }
671
+ export interface GetGalleryResponse {
672
+ /** Returned gallery. */
673
+ gallery?: Gallery;
674
+ }
675
+ export interface ListGalleryItemsRequest {
676
+ /** Gallery ID. */
677
+ galleryId: string;
678
+ /**
679
+ * Number of media items to skip in the response. <br />
680
+ *
681
+ * Default: `0`
682
+ */
683
+ itemOffset?: number | null;
684
+ /**
685
+ * Maximum number of media items to return. <br />
686
+ *
687
+ * Min: `1` <br />
688
+ * Max: `100` <br />
689
+ * Default: `50`
690
+ */
691
+ itemLimit?: number | null;
692
+ }
693
+ export interface ListGalleryItemsResponse {
694
+ /** List of media items in the gallery. */
695
+ items?: Item[];
696
+ }
697
+ export interface GetGalleryItemRequest {
698
+ /** Gallery ID. */
699
+ galleryId: string;
700
+ /** Item ID. */
701
+ itemId: string;
702
+ }
703
+ export interface GetGalleryItemResponse {
704
+ /** Returned media item. */
705
+ item?: Item;
706
+ }
707
+ export interface CreateGalleryRequest {
708
+ /** Gallery to create. */
709
+ gallery?: Gallery;
710
+ /** Gallery ID to clone from. */
711
+ cloneFromGalleryId?: string | null;
712
+ }
713
+ export interface CreateGalleryResponse {
714
+ /** Created gallery. */
715
+ gallery?: Gallery;
716
+ }
717
+ export interface UpdateGalleryRequest {
718
+ /** Gallery to update. */
719
+ gallery: Gallery;
720
+ }
721
+ export interface UpdateGalleryResponse {
722
+ /** Updated gallery. */
723
+ gallery?: Gallery;
724
+ }
725
+ export interface DeleteGalleryRequest {
726
+ /** ID of the gallery to delete. */
727
+ galleryId: string;
728
+ }
729
+ export interface DeleteGalleryResponse {
730
+ /**
731
+ * ID of the deleted gallery.
732
+ * @readonly
733
+ */
734
+ galleryId?: string;
735
+ }
736
+ export interface DeleteGalleryItemsRequest {
737
+ /** Gallery ID. */
738
+ galleryId?: string;
739
+ /** ID of the media item to delete. */
740
+ itemsIds?: string[];
741
+ }
742
+ export interface DeleteGalleryItemsResponse {
743
+ /** Gallery that previously included the deleted media item. */
744
+ gallery?: Gallery;
745
+ }
746
+ export interface CreateGalleryItemRequest {
747
+ /** Gallery ID. */
748
+ galleryId: string;
749
+ /** Media item to create. */
750
+ item: Item;
751
+ }
752
+ export interface CreateGalleryItemResponse {
753
+ /** Created media item. */
754
+ item?: Item;
755
+ }
756
+ export interface CreateGalleryItemsRequest {
757
+ /** Gallery ID. */
758
+ galleryId?: string;
759
+ /** Media items to create. */
760
+ items?: Item[];
761
+ }
762
+ export interface CreateGalleryItemsResponse {
763
+ /** Created media items. */
764
+ items?: Item[];
765
+ }
766
+ export interface UpdateGalleryItemRequest {
767
+ /** Gallery ID. */
768
+ galleryId: string;
769
+ /** Media item to update. */
770
+ item: Item;
771
+ }
772
+ export interface UpdateGalleryItemResponse {
773
+ /** Updated media item. */
774
+ item?: Item;
775
+ }
776
+ export interface DeleteGalleryItemRequest {
777
+ /** Gallery ID. */
778
+ galleryId: string;
779
+ /** ID of the media item to delete. */
780
+ itemId: string;
781
+ }
782
+ export interface DeleteGalleryItemResponse {
783
+ /**
784
+ * ID of the deleted media item.
785
+ * @readonly
786
+ */
787
+ itemId?: string;
788
+ }
789
+ export interface PublishGalleryRequest {
790
+ /** ID of the gallery to publish. */
791
+ galleryId?: string;
792
+ }
793
+ export interface PublishGalleryResponse {
794
+ /** Published gallery. */
795
+ gallery?: Gallery;
796
+ }
797
+ export interface DomainEvent extends DomainEventBodyOneOf {
798
+ /** random GUID so clients can tell if event was already handled */
799
+ id?: string;
800
+ /**
801
+ * Assumes actions are also always typed to an entity_type
802
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
803
+ */
804
+ entityFqdn?: string;
805
+ /**
806
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
807
+ * This is although the created/updated/deleted notion is duplication of the oneof types
808
+ * Example: created/updated/deleted/started/completed/email_opened
809
+ */
810
+ slug?: string;
811
+ /**
812
+ * Assuming that all messages including Actions have id
813
+ * Example: The id of the specific order, the id of a specific campaign
814
+ */
815
+ entityId?: string;
816
+ /** The time of the event. Useful if there was a delay in dispatching */
817
+ eventTime?: Date;
818
+ /**
819
+ * A field that should be set if this event was triggered by an anonymize request.
820
+ * For example you must set it to true when sending an event as a result of a GDPR right to be forgotten request.
821
+ * NOTE: This field is not relevant for `EntityCreatedEvent` but is located here for better ergonomics of consumers.
822
+ */
823
+ triggeredByAnonymizeRequest?: boolean | null;
824
+ /** If present, indicates the action that triggered the event. */
825
+ originatedFrom?: string | null;
826
+ /**
827
+ * A sequence number defining the order of updates to the underlying entity.
828
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
829
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
830
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
831
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
832
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
833
+ */
834
+ entityEventSequence?: string | null;
835
+ createdEvent?: EntityCreatedEvent;
836
+ updatedEvent?: EntityUpdatedEvent;
837
+ deletedEvent?: EntityDeletedEvent;
838
+ actionEvent?: ActionEvent;
839
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
840
+ }
841
+ /** @oneof */
842
+ export interface DomainEventBodyOneOf {
843
+ createdEvent?: EntityCreatedEvent;
844
+ updatedEvent?: EntityUpdatedEvent;
845
+ deletedEvent?: EntityDeletedEvent;
846
+ actionEvent?: ActionEvent;
847
+ extendedFieldsUpdatedEvent?: ExtendedFieldsUpdatedEvent;
848
+ }
849
+ export interface EntityCreatedEvent {
850
+ entityAsJson?: string;
851
+ }
852
+ export interface EntityUpdatedEvent {
853
+ /**
854
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
855
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
856
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
857
+ */
858
+ currentEntityAsJson?: string;
859
+ }
860
+ export interface EntityDeletedEvent {
861
+ }
862
+ export interface ActionEvent {
863
+ bodyAsJson?: string;
864
+ }
865
+ export interface ExtendedFieldsUpdatedEvent {
866
+ currentEntityAsJson?: string;
867
+ }