@wix/media-collections 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.
@@ -0,0 +1,1282 @@
1
+ interface MediaCollection {
2
+ /**
3
+ * Collection id
4
+ * @readonly
5
+ */
6
+ _id?: string;
7
+ /** Collection name */
8
+ name?: string;
9
+ description?: string | null;
10
+ /**
11
+ * total count of MediaCollection members
12
+ * @readonly
13
+ */
14
+ membersCount?: number;
15
+ /**
16
+ * the member who created the MediaCollection
17
+ * @readonly
18
+ */
19
+ creator?: CollectionMember;
20
+ /**
21
+ * when MediaCollection was created
22
+ * @readonly
23
+ */
24
+ _createdDate?: Date;
25
+ /** Items in the collection */
26
+ items?: MediaCollectionItem[];
27
+ /**
28
+ * total count of items
29
+ * @readonly
30
+ */
31
+ itemsCount?: number;
32
+ /** Privacy settings */
33
+ privacySettings?: PrivacySettings;
34
+ /** If true, the collection is locked and should not be updated */
35
+ locked?: boolean;
36
+ }
37
+ interface CollectionMember {
38
+ /**
39
+ * Member id
40
+ * @readonly
41
+ */
42
+ memberId?: string;
43
+ /** Member nickname */
44
+ nickname?: string | null;
45
+ /** Member slug */
46
+ slug?: string | null;
47
+ /** Member photo url */
48
+ photoUrl?: string | null;
49
+ }
50
+ interface MediaCollectionItem extends MediaCollectionItemMetadataOneOf {
51
+ /** Photo metadata */
52
+ photoMetadata?: PhotoMetadata;
53
+ /** Video metadata */
54
+ videoMetadata?: VideoMetadata;
55
+ /** Text metadata */
56
+ textMetadata?: TextMetadata;
57
+ /**
58
+ * item id
59
+ * @readonly
60
+ */
61
+ _id?: string | null;
62
+ /** item url for photos or video */
63
+ mediaUrl?: string | null;
64
+ /** if not present in an update it mean the item will be added as currentTimestamp */
65
+ sortOrder?: number | null;
66
+ /** item's original filename */
67
+ name?: string | null;
68
+ /** item's title */
69
+ title?: string | null;
70
+ /** item's description */
71
+ description?: string | null;
72
+ /** a link from the item to something else */
73
+ link?: Link;
74
+ /** item type: text, photo or video */
75
+ dataType?: DataType;
76
+ /**
77
+ * When the item was added to the collection
78
+ * @readonly
79
+ */
80
+ addedDate?: Date;
81
+ /**
82
+ * When the item was last updated
83
+ * @readonly
84
+ */
85
+ _updatedDate?: Date;
86
+ /** The owner of the media */
87
+ mediaOwner?: MediaOwner;
88
+ /** Tags for media */
89
+ tags?: string[];
90
+ /** Token for media */
91
+ token?: string | null;
92
+ /** Gallery id */
93
+ galleryId?: string;
94
+ }
95
+ /** @oneof */
96
+ interface MediaCollectionItemMetadataOneOf {
97
+ /** Photo metadata */
98
+ photoMetadata?: PhotoMetadata;
99
+ /** Video metadata */
100
+ videoMetadata?: VideoMetadata;
101
+ /** Text metadata */
102
+ textMetadata?: TextMetadata;
103
+ }
104
+ interface Link {
105
+ type?: Type;
106
+ /** Link text */
107
+ text?: string | null;
108
+ /** Link url */
109
+ url?: string | null;
110
+ /** Link target */
111
+ target?: string | null;
112
+ /** Data on how to construct the link from wix editor inputs */
113
+ wixLinkData?: WixLink;
114
+ }
115
+ declare enum Type {
116
+ /** Undefined */
117
+ Undefined = "Undefined",
118
+ /** external link */
119
+ External = "External",
120
+ /** link to wix pages */
121
+ Internal = "Internal"
122
+ }
123
+ /** The link object generated by panels in the editor and used by applications in Wix */
124
+ interface WixLink extends WixLinkLinkOneOf {
125
+ /** External link type */
126
+ external?: ExternalLink;
127
+ /** Page link type */
128
+ page?: PageLink;
129
+ /** Anchor link type */
130
+ anchor?: AnchorLink;
131
+ /** Dynamic page link type */
132
+ dynamicPage?: DynamicPageLink;
133
+ /** Document link type */
134
+ document?: DocumentLink;
135
+ /** Email link type */
136
+ email?: EmailLink;
137
+ /** Phone link type */
138
+ phone?: PhoneLink;
139
+ /** Address link type */
140
+ address?: AddressLink;
141
+ /** WhatsApp link type */
142
+ whatsApp?: WhatsAppLink;
143
+ /** TPA link type */
144
+ tpaPage?: TpaPageLink;
145
+ }
146
+ /** @oneof */
147
+ interface WixLinkLinkOneOf {
148
+ /** External link type */
149
+ external?: ExternalLink;
150
+ /** Page link type */
151
+ page?: PageLink;
152
+ /** Anchor link type */
153
+ anchor?: AnchorLink;
154
+ /** Dynamic page link type */
155
+ dynamicPage?: DynamicPageLink;
156
+ /** Document link type */
157
+ document?: DocumentLink;
158
+ /** Email link type */
159
+ email?: EmailLink;
160
+ /** Phone link type */
161
+ phone?: PhoneLink;
162
+ /** Address link type */
163
+ address?: AddressLink;
164
+ /** WhatsApp link type */
165
+ whatsApp?: WhatsAppLink;
166
+ /** TPA link type */
167
+ tpaPage?: TpaPageLink;
168
+ }
169
+ interface ExternalLink {
170
+ /** The url of the page */
171
+ url?: string;
172
+ /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
173
+ target?: string | null;
174
+ }
175
+ interface PageLink {
176
+ /** The page id we want from the site */
177
+ pageId?: string;
178
+ /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
179
+ target?: string | null;
180
+ /** rel of link */
181
+ rel?: LinkRel[];
182
+ }
183
+ /**
184
+ * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
185
+ * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
186
+ * Following are the accepted 'rel' types by Wix applications.
187
+ */
188
+ declare enum LinkRel {
189
+ /** default (not implemented) */
190
+ unknown_link_rel = "unknown_link_rel",
191
+ /** Indicates that the current document's original author or publisher does not endorse the referenced document. */
192
+ nofollow = "nofollow",
193
+ /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
194
+ noopener = "noopener",
195
+ /** No Referer header will be included. Additionally, has the same effect as noopener. */
196
+ noreferrer = "noreferrer",
197
+ /** Indicates a link that resulted from advertisements or paid placements. */
198
+ sponsored = "sponsored"
199
+ }
200
+ interface AnchorLink {
201
+ /** The name of the anchor */
202
+ anchorName?: string;
203
+ /** The data id (from the JSON page) of the anchor that should be used */
204
+ anchorDataId?: string;
205
+ /** The page id we want from the site */
206
+ pageId?: string;
207
+ /** rel of link */
208
+ rel?: LinkRel[];
209
+ }
210
+ interface DynamicPageLink {
211
+ /** The router that handles this link */
212
+ routerId?: string;
213
+ /** The path data we'd like */
214
+ innerRoute?: string;
215
+ /** The data id (from the JSON page) of the anchor that should be used */
216
+ anchorDataId?: string | null;
217
+ /** rel of link */
218
+ rel?: LinkRel[];
219
+ }
220
+ interface DocumentLink {
221
+ /** The id of the document */
222
+ docId?: string;
223
+ /** The name of the document for download purposes */
224
+ name?: string | null;
225
+ /** If this document can be indexed by scrapers, default is false */
226
+ indexable?: boolean;
227
+ }
228
+ interface EmailLink {
229
+ /** The email we will be sending a message to */
230
+ recipient?: string;
231
+ /** The subject of the email */
232
+ subject?: string | null;
233
+ /** The body of the email */
234
+ body?: string | null;
235
+ }
236
+ interface PhoneLink {
237
+ /** The phone number we want to link to */
238
+ phoneNumber?: string;
239
+ }
240
+ interface AddressLink {
241
+ /** An address that we can link to */
242
+ address?: string;
243
+ }
244
+ interface WhatsAppLink {
245
+ /** The whatsApp phone number we want to connect with */
246
+ phoneNumber?: string;
247
+ }
248
+ /** Link to a TPA page */
249
+ interface TpaPageLink {
250
+ /** Type of item (e.g. 'wix.stores.sub_pages.product') */
251
+ itemTypeIdentifier?: string;
252
+ /** Id of linked item */
253
+ itemId?: string;
254
+ /** Id of linked page */
255
+ pageId?: string;
256
+ /** Id of app being linked to (AppDefId) */
257
+ appDefinitionId?: string;
258
+ /** The relativepath of linked page */
259
+ path?: string;
260
+ /** rel of link */
261
+ rel?: LinkRel[];
262
+ }
263
+ declare enum DataType {
264
+ Undefined = "Undefined",
265
+ Photo = "Photo",
266
+ Video = "Video",
267
+ Text = "Text"
268
+ }
269
+ interface PhotoMetadata {
270
+ /** Photo width */
271
+ width?: number | null;
272
+ /** Photo height */
273
+ height?: number | null;
274
+ /** The focal point of the image */
275
+ focalPoint?: Point;
276
+ /** aka Exchangeable image file format */
277
+ exif?: Record<string, any> | null;
278
+ /** the image quality */
279
+ quality?: number | null;
280
+ /** photo sharpening */
281
+ unsharpMasking?: UnsharpMasking;
282
+ /** id in WixMedia */
283
+ mediaId?: string | null;
284
+ }
285
+ interface Point {
286
+ /** x coordinate */
287
+ x?: number;
288
+ /** y coordinate */
289
+ y?: number;
290
+ }
291
+ interface UnsharpMasking {
292
+ /** number controls the amount of contrast that is added at the edges. */
293
+ amount?: number | null;
294
+ /** number in pixels. The size of the edges to be enhanced */
295
+ radius?: number | null;
296
+ /** The minimal level of brightness change that will be sharpened */
297
+ threshold?: number | null;
298
+ }
299
+ interface VideoMetadata {
300
+ /** Video width */
301
+ width?: number | null;
302
+ /** Video height */
303
+ height?: number | null;
304
+ /** Video duration in milliseconds */
305
+ duration?: string | null;
306
+ /** Video source */
307
+ source?: Source;
308
+ /** Video posters */
309
+ posters?: Thumbnail[];
310
+ /** Video resolutions */
311
+ resolutions?: Resolution[];
312
+ /** External source's representation for this video's id */
313
+ externalId?: string | null;
314
+ }
315
+ declare enum Source {
316
+ /** Undefined */
317
+ Undefined = "Undefined",
318
+ /** Youtube */
319
+ Youtube = "Youtube",
320
+ /** Vimeo */
321
+ Vimeo = "Vimeo",
322
+ /** Custom */
323
+ Custom = "Custom"
324
+ }
325
+ interface Thumbnail {
326
+ /** Thumbnail url */
327
+ url?: string | null;
328
+ /** Thumbnail width */
329
+ width?: number | null;
330
+ /** Thumbnail height */
331
+ height?: number | null;
332
+ /** Is this the default thumbnail */
333
+ default?: boolean | null;
334
+ /** The focal point of the image */
335
+ focalPoint?: Point;
336
+ }
337
+ interface Resolution {
338
+ /** eg 720p, 1024p etc */
339
+ videoMode?: string | null;
340
+ /** Video width */
341
+ width?: number | null;
342
+ /** Video height */
343
+ height?: number | null;
344
+ /** Map representing the file format (eg mp4) to the url. In case of an external source the format can be youtube, vimeo, etc. */
345
+ urls?: Record<string, string>;
346
+ }
347
+ interface TextMetadata {
348
+ /** text data */
349
+ html?: string | null;
350
+ /** css style info for container */
351
+ style?: Record<string, any> | null;
352
+ /** populated via progallery app only (ck editor format) */
353
+ editorHtml?: string | null;
354
+ /** the wix editor's font Id used to display the text data */
355
+ editorFontId?: string | null;
356
+ }
357
+ declare enum MediaOwner {
358
+ /** Undefined */
359
+ Undefined = "Undefined",
360
+ /** Wix */
361
+ Wix = "Wix",
362
+ /** DeviantArt */
363
+ DeviantArt = "DeviantArt",
364
+ /** Custom */
365
+ Custom = "Custom"
366
+ }
367
+ declare enum PrivacySettings {
368
+ /** Undefined */
369
+ Undefined = "Undefined",
370
+ /** Public */
371
+ Public = "Public",
372
+ /** Secret */
373
+ Secret = "Secret"
374
+ }
375
+ interface PermanentSiteDeletedResponse {
376
+ requestId?: string;
377
+ uniqueServiceIdentifier?: string;
378
+ status?: Status;
379
+ /** @readonly */
380
+ _createdDate?: Date;
381
+ }
382
+ declare enum Status {
383
+ UNKNOWN = "UNKNOWN",
384
+ HANDLED = "HANDLED",
385
+ NOTHING_TO_HANDLE = "NOTHING_TO_HANDLE"
386
+ }
387
+ interface Empty {
388
+ }
389
+ interface DomainEvent extends DomainEventBodyOneOf {
390
+ createdEvent?: EntityCreatedEvent;
391
+ updatedEvent?: EntityUpdatedEvent;
392
+ deletedEvent?: EntityDeletedEvent;
393
+ actionEvent?: ActionEvent;
394
+ /**
395
+ * Unique event ID.
396
+ * Allows clients to ignore duplicate webhooks.
397
+ */
398
+ _id?: string;
399
+ /**
400
+ * Assumes actions are also always typed to an entity_type
401
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
402
+ */
403
+ entityFqdn?: string;
404
+ /**
405
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
406
+ * This is although the created/updated/deleted notion is duplication of the oneof types
407
+ * Example: created/updated/deleted/started/completed/email_opened
408
+ */
409
+ slug?: string;
410
+ /** ID of the entity associated with the event. */
411
+ entityId?: string;
412
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
413
+ eventTime?: Date;
414
+ /**
415
+ * Whether the event was triggered as a result of a privacy regulation application
416
+ * (for example, GDPR).
417
+ */
418
+ triggeredByAnonymizeRequest?: boolean | null;
419
+ /** If present, indicates the action that triggered the event. */
420
+ originatedFrom?: string | null;
421
+ /**
422
+ * A sequence number defining the order of updates to the underlying entity.
423
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
424
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
425
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
426
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
427
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
428
+ */
429
+ entityEventSequence?: string | null;
430
+ }
431
+ /** @oneof */
432
+ interface DomainEventBodyOneOf {
433
+ createdEvent?: EntityCreatedEvent;
434
+ updatedEvent?: EntityUpdatedEvent;
435
+ deletedEvent?: EntityDeletedEvent;
436
+ actionEvent?: ActionEvent;
437
+ }
438
+ interface EntityCreatedEvent {
439
+ entity?: string;
440
+ }
441
+ interface RestoreInfo {
442
+ deletedDate?: Date;
443
+ }
444
+ interface EntityUpdatedEvent {
445
+ /**
446
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
447
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
448
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
449
+ */
450
+ currentEntity?: string;
451
+ }
452
+ interface EntityDeletedEvent {
453
+ /** Entity that was deleted */
454
+ deletedEntity?: string | null;
455
+ }
456
+ interface ActionEvent {
457
+ body?: string;
458
+ }
459
+ interface MessageEnvelope {
460
+ /** App instance ID. */
461
+ instanceId?: string | null;
462
+ /** Event type. */
463
+ eventType?: string;
464
+ /** The identification type and identity data. */
465
+ identity?: IdentificationData;
466
+ /** Stringify payload. */
467
+ data?: string;
468
+ }
469
+ interface IdentificationData extends IdentificationDataIdOneOf {
470
+ /** ID of a site visitor that has not logged in to the site. */
471
+ anonymousVisitorId?: string;
472
+ /** ID of a site visitor that has logged in to the site. */
473
+ memberId?: string;
474
+ /** ID of a Wix user (site owner, contributor, etc.). */
475
+ wixUserId?: string;
476
+ /** ID of an app. */
477
+ appId?: string;
478
+ /** @readonly */
479
+ identityType?: WebhookIdentityType;
480
+ }
481
+ /** @oneof */
482
+ interface IdentificationDataIdOneOf {
483
+ /** ID of a site visitor that has not logged in to the site. */
484
+ anonymousVisitorId?: string;
485
+ /** ID of a site visitor that has logged in to the site. */
486
+ memberId?: string;
487
+ /** ID of a Wix user (site owner, contributor, etc.). */
488
+ wixUserId?: string;
489
+ /** ID of an app. */
490
+ appId?: string;
491
+ }
492
+ declare enum WebhookIdentityType {
493
+ UNKNOWN = "UNKNOWN",
494
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
495
+ MEMBER = "MEMBER",
496
+ WIX_USER = "WIX_USER",
497
+ APP = "APP"
498
+ }
499
+ interface CollectionEvent extends CollectionEventEventTypeOneOf {
500
+ /** Collection created */
501
+ collectionCreated?: CollectionCreated;
502
+ /** Items added to collection */
503
+ itemsAddedToCollection?: ItemsAddedToCollection;
504
+ /** Items removed from collection */
505
+ itemsRemovedFromCollection?: ItemsRemovedFromCollection;
506
+ /** Member joined to collection */
507
+ memberJoinedToCollection?: MemberJoinedToCollection;
508
+ /** Member left collection */
509
+ memberLeftCollection?: MemberLeftCollection;
510
+ }
511
+ /** @oneof */
512
+ interface CollectionEventEventTypeOneOf {
513
+ /** Collection created */
514
+ collectionCreated?: CollectionCreated;
515
+ /** Items added to collection */
516
+ itemsAddedToCollection?: ItemsAddedToCollection;
517
+ /** Items removed from collection */
518
+ itemsRemovedFromCollection?: ItemsRemovedFromCollection;
519
+ /** Member joined to collection */
520
+ memberJoinedToCollection?: MemberJoinedToCollection;
521
+ /** Member left collection */
522
+ memberLeftCollection?: MemberLeftCollection;
523
+ }
524
+ interface CollectionItemId {
525
+ /** Id of the gallery in ProGallery */
526
+ galleryId?: string;
527
+ /** Id of the item in ProGallery */
528
+ itemId?: string;
529
+ }
530
+ interface CollectionCreated {
531
+ /** Collection id */
532
+ _id?: string;
533
+ /** Collection name */
534
+ name?: string;
535
+ /** Collection description */
536
+ description?: string | null;
537
+ /** Id of the member who created the collection */
538
+ creatorMemberId?: string;
539
+ /** When the collection was created */
540
+ _createdDate?: Date;
541
+ /** Privacy settings */
542
+ privacySettings?: PrivacySettings;
543
+ }
544
+ interface ItemsAddedToCollection {
545
+ /** Id of the collection */
546
+ collectionId?: string;
547
+ /** Id of the member who added items */
548
+ addedByMember?: string;
549
+ /** Ids of the items that were added */
550
+ collectionItemIds?: CollectionItemId[];
551
+ /** When the items were added */
552
+ addedDate?: Date;
553
+ }
554
+ interface ItemsRemovedFromCollection {
555
+ /** Id of the collection */
556
+ collectionId?: string;
557
+ /** Id of the member who removed items */
558
+ removedByMember?: string;
559
+ /** Ids of the items that were removed */
560
+ itemIds?: string[];
561
+ /** When the items were removed */
562
+ removedDate?: Date;
563
+ }
564
+ interface MemberJoinedToCollection {
565
+ /** Id of the collection */
566
+ collectionId?: string;
567
+ /** Id of the member who joined */
568
+ memberId?: string;
569
+ /** When the member was joined */
570
+ joinedDate?: Date;
571
+ }
572
+ interface MemberLeftCollection {
573
+ /** Id of the collection */
574
+ collectionId?: string;
575
+ /** Id of the member who left */
576
+ memberId?: string;
577
+ /** When the member left */
578
+ leftDate?: Date;
579
+ }
580
+ interface GetMediaCollectionRequest {
581
+ /** Collection id */
582
+ mediaCollectionId: string;
583
+ /** number of items to skip in the current sort order, default is 0 */
584
+ offset?: number | null;
585
+ /** The amount of items per response, default is 50 */
586
+ limit?: number | null;
587
+ }
588
+ interface GetMediaCollectionResponse {
589
+ /** The collection */
590
+ mediaCollection?: MediaCollection;
591
+ /** The member's status in the collection */
592
+ memberStatus?: MemberStatus;
593
+ }
594
+ declare enum MemberStatus {
595
+ /** Undefined */
596
+ UNDEFINED = "UNDEFINED",
597
+ /** Not a member */
598
+ NOT_MEMBER = "NOT_MEMBER",
599
+ /** Member */
600
+ MEMBER = "MEMBER",
601
+ /** Admin */
602
+ ADMIN = "ADMIN"
603
+ }
604
+ interface ListCollectionsForItemRequest {
605
+ /** Gallery id */
606
+ galleryId?: string;
607
+ /** Item id */
608
+ itemId: string;
609
+ }
610
+ interface ListCollectionsForItemResponse {
611
+ /** The collections that the item belongs to */
612
+ itemInCollections?: ItemInCollection[];
613
+ }
614
+ interface ItemInCollection {
615
+ /** Collection id */
616
+ mediaCollectionId?: string;
617
+ /** Collection name */
618
+ name?: string;
619
+ /** Is the item in the collection */
620
+ isItemInCollection?: boolean;
621
+ /** Is the collection locked */
622
+ isLocked?: boolean;
623
+ /** Member's role in the collection */
624
+ role?: MemberStatus;
625
+ /** Total count of items in the collection */
626
+ totalItemsCount?: number | null;
627
+ /** The first item in the collection */
628
+ firstItem?: MediaCollectionItem;
629
+ /** The creator's nickname */
630
+ creatorNickname?: string | null;
631
+ }
632
+ interface GetCollectionItemRequest {
633
+ /** Collection id */
634
+ mediaCollectionId: string;
635
+ /** Item id */
636
+ itemId: string;
637
+ }
638
+ interface GetCollectionItemResponse {
639
+ /** The item */
640
+ item?: MediaCollectionItem;
641
+ }
642
+ interface ListMediaCollectionsRequest {
643
+ /** the amount of collections per response, default is 1000 */
644
+ limit?: number | null;
645
+ /** number of collections to skip in the current sort order, default is 0 */
646
+ offset?: number | null;
647
+ /**
648
+ * If empty, no filter will be applied
649
+ * Else, will return only collections that the member has those roles on them. Currently supporting: MEMBER, ADMIN.
650
+ */
651
+ filterByRoles?: FilterByRoles;
652
+ }
653
+ interface FilterByRoles {
654
+ roles?: MemberStatus[];
655
+ }
656
+ interface ListMediaCollectionsResponse {
657
+ /** The collections and the member's role in them */
658
+ collectionsStatus?: CollectionAndStatus[];
659
+ /**
660
+ * total count of MediaCollection members
661
+ * @readonly
662
+ */
663
+ totalCollectionsCount?: number | null;
664
+ }
665
+ interface CollectionAndStatus {
666
+ /** The Media Collection */
667
+ mediaCollection?: MediaCollection;
668
+ /** The member's status in the collection */
669
+ memberStatus?: MemberStatus;
670
+ }
671
+ interface CreateMediaCollectionRequest {
672
+ /** Name of the collection */
673
+ name: string;
674
+ /** Description of the collection */
675
+ description?: string | null;
676
+ /** Privacy settings of the collection */
677
+ privacySettings?: PrivacySettings;
678
+ /** Items to add to the collection */
679
+ items?: AddItem[];
680
+ }
681
+ interface AddItem {
682
+ /** Gallery id */
683
+ galleryId?: string;
684
+ /** Item id */
685
+ itemId?: string;
686
+ /** Order index of the item */
687
+ orderIndex?: number | null;
688
+ }
689
+ interface CreateMediaCollectionResponse {
690
+ /** id of the collection that was created */
691
+ mediaCollectionId?: string;
692
+ }
693
+ interface PartiallyUpdateMediaCollectionRequest {
694
+ /** Collection to update */
695
+ mediaCollection: MediaCollection;
696
+ }
697
+ interface PartiallyUpdateMediaCollectionResponse {
698
+ }
699
+ interface UpdateCollectionLockRequest {
700
+ /** Collection to lock */
701
+ mediaCollectionId?: string;
702
+ /** Lock status */
703
+ locked?: boolean;
704
+ }
705
+ interface UpdateCollectionLockResponse {
706
+ }
707
+ interface DeleteMediaCollectionRequest {
708
+ /** the collection to delete */
709
+ mediaCollectionId: string;
710
+ }
711
+ interface DeleteMediaCollectionResponse {
712
+ }
713
+ interface ListCollectionMembersRequest {
714
+ /** the collection to get its members */
715
+ mediaCollectionId: string;
716
+ /** Filter the members by their role in the collection */
717
+ filterBy?: FilterBy;
718
+ }
719
+ interface FilterBy {
720
+ /** Member's status in the collection */
721
+ memberStatus?: MemberStatus;
722
+ }
723
+ interface ListCollectionMembersResponse {
724
+ /** The collection's members and their roles */
725
+ membersRoles?: MemberAndStatus[];
726
+ }
727
+ interface MemberAndStatus {
728
+ /** The member */
729
+ member?: CollectionMember;
730
+ /** The member's role in the collection */
731
+ memberStatus?: MemberStatus;
732
+ }
733
+ interface AddItemsRequest {
734
+ /** Collection to add items */
735
+ mediaCollectionId: string;
736
+ /** Items to add */
737
+ items?: AddItem[];
738
+ }
739
+ interface AddItemsResponse {
740
+ }
741
+ interface RemoveItemsRequest {
742
+ /** Collection to remove items from */
743
+ mediaCollectionId: string;
744
+ /** Items to remove */
745
+ itemsIds?: string[];
746
+ }
747
+ interface RemoveItemsResponse {
748
+ }
749
+ interface UpdateItemsRequest {
750
+ /** Collection to update items */
751
+ mediaCollectionId?: string;
752
+ items?: UpdateItem[];
753
+ }
754
+ interface UpdateItem {
755
+ /** Item to update */
756
+ itemId?: string;
757
+ /** New order index of the item */
758
+ orderIndex?: number;
759
+ }
760
+ interface UpdateItemsResponse {
761
+ }
762
+ interface JoinToCollectionRequest {
763
+ /** Collection to join */
764
+ mediaCollectionId: string;
765
+ }
766
+ interface JoinToCollectionResponse {
767
+ }
768
+ interface RemoveMemberFromCollectionRequest {
769
+ /** Collection the member will be removed from being a member */
770
+ mediaCollectionId?: string;
771
+ /** Member id to remove from the collection */
772
+ memberId?: string;
773
+ }
774
+ interface RemoveMemberFromCollectionResponse {
775
+ }
776
+ interface LeaveCollectionRequest {
777
+ /** Collection the member will be leaving */
778
+ mediaCollectionId: string;
779
+ }
780
+ interface LeaveCollectionResponse {
781
+ }
782
+ interface ListCollectionItemsRequest {
783
+ /** Collection to get its items */
784
+ mediaCollectionId: string;
785
+ }
786
+ interface ListCollectionItemsResponse {
787
+ /** The collection's items */
788
+ collectionItems?: CollectionItem[];
789
+ }
790
+ interface CollectionItem {
791
+ /** Gallery id */
792
+ galleryId?: string;
793
+ /** Item id */
794
+ itemId?: string;
795
+ /** Order index of the item */
796
+ orderIndex?: number | null;
797
+ /** Date the item was added to the collection */
798
+ addedDate?: Date;
799
+ }
800
+ interface ListAllItemsBelongToCollectionRequest {
801
+ }
802
+ interface ListAllItemsBelongToCollectionResponse {
803
+ /** List of the item ids that belong to one or more collection */
804
+ itemIds?: string[];
805
+ }
806
+ interface CollectionMemberNonNullableFields {
807
+ memberId: string;
808
+ }
809
+ interface PointNonNullableFields {
810
+ x: number;
811
+ y: number;
812
+ }
813
+ interface PhotoMetadataNonNullableFields {
814
+ focalPoint?: PointNonNullableFields;
815
+ }
816
+ interface ThumbnailNonNullableFields {
817
+ focalPoint?: PointNonNullableFields;
818
+ }
819
+ interface VideoMetadataNonNullableFields {
820
+ source: Source;
821
+ posters: ThumbnailNonNullableFields[];
822
+ }
823
+ interface ExternalLinkNonNullableFields {
824
+ url: string;
825
+ }
826
+ interface PageLinkNonNullableFields {
827
+ pageId: string;
828
+ rel: LinkRel[];
829
+ }
830
+ interface AnchorLinkNonNullableFields {
831
+ anchorName: string;
832
+ anchorDataId: string;
833
+ pageId: string;
834
+ rel: LinkRel[];
835
+ }
836
+ interface DynamicPageLinkNonNullableFields {
837
+ routerId: string;
838
+ innerRoute: string;
839
+ rel: LinkRel[];
840
+ }
841
+ interface DocumentLinkNonNullableFields {
842
+ docId: string;
843
+ indexable: boolean;
844
+ }
845
+ interface EmailLinkNonNullableFields {
846
+ recipient: string;
847
+ }
848
+ interface PhoneLinkNonNullableFields {
849
+ phoneNumber: string;
850
+ }
851
+ interface AddressLinkNonNullableFields {
852
+ address: string;
853
+ }
854
+ interface WhatsAppLinkNonNullableFields {
855
+ phoneNumber: string;
856
+ }
857
+ interface TpaPageLinkNonNullableFields {
858
+ itemTypeIdentifier: string;
859
+ itemId: string;
860
+ pageId: string;
861
+ appDefinitionId: string;
862
+ path: string;
863
+ rel: LinkRel[];
864
+ }
865
+ interface WixLinkNonNullableFields {
866
+ external?: ExternalLinkNonNullableFields;
867
+ page?: PageLinkNonNullableFields;
868
+ anchor?: AnchorLinkNonNullableFields;
869
+ dynamicPage?: DynamicPageLinkNonNullableFields;
870
+ document?: DocumentLinkNonNullableFields;
871
+ email?: EmailLinkNonNullableFields;
872
+ phone?: PhoneLinkNonNullableFields;
873
+ address?: AddressLinkNonNullableFields;
874
+ whatsApp?: WhatsAppLinkNonNullableFields;
875
+ tpaPage?: TpaPageLinkNonNullableFields;
876
+ }
877
+ interface LinkNonNullableFields {
878
+ type: Type;
879
+ wixLinkData?: WixLinkNonNullableFields;
880
+ }
881
+ interface MediaCollectionItemNonNullableFields {
882
+ photoMetadata?: PhotoMetadataNonNullableFields;
883
+ videoMetadata?: VideoMetadataNonNullableFields;
884
+ link?: LinkNonNullableFields;
885
+ dataType: DataType;
886
+ secure: boolean;
887
+ mediaOwner: MediaOwner;
888
+ tags: string[];
889
+ galleryId: string;
890
+ }
891
+ interface MediaCollectionNonNullableFields {
892
+ _id: string;
893
+ name: string;
894
+ membersCount: number;
895
+ creator?: CollectionMemberNonNullableFields;
896
+ items: MediaCollectionItemNonNullableFields[];
897
+ itemsCount: number;
898
+ privacySettings: PrivacySettings;
899
+ locked: boolean;
900
+ }
901
+ interface GetMediaCollectionResponseNonNullableFields {
902
+ mediaCollection?: MediaCollectionNonNullableFields;
903
+ memberStatus: MemberStatus;
904
+ }
905
+ interface ItemInCollectionNonNullableFields {
906
+ mediaCollectionId: string;
907
+ name: string;
908
+ isItemInCollection: boolean;
909
+ isLocked: boolean;
910
+ role: MemberStatus;
911
+ firstItem?: MediaCollectionItemNonNullableFields;
912
+ }
913
+ interface ListCollectionsForItemResponseNonNullableFields {
914
+ itemInCollections: ItemInCollectionNonNullableFields[];
915
+ }
916
+ interface GetCollectionItemResponseNonNullableFields {
917
+ item?: MediaCollectionItemNonNullableFields;
918
+ }
919
+ interface CollectionAndStatusNonNullableFields {
920
+ mediaCollection?: MediaCollectionNonNullableFields;
921
+ memberStatus: MemberStatus;
922
+ }
923
+ interface ListMediaCollectionsResponseNonNullableFields {
924
+ collectionsStatus: CollectionAndStatusNonNullableFields[];
925
+ }
926
+ interface CreateMediaCollectionResponseNonNullableFields {
927
+ mediaCollectionId: string;
928
+ }
929
+ interface MemberAndStatusNonNullableFields {
930
+ member?: CollectionMemberNonNullableFields;
931
+ memberStatus: MemberStatus;
932
+ }
933
+ interface ListCollectionMembersResponseNonNullableFields {
934
+ membersRoles: MemberAndStatusNonNullableFields[];
935
+ }
936
+ interface CollectionItemNonNullableFields {
937
+ galleryId: string;
938
+ itemId: string;
939
+ }
940
+ interface ListCollectionItemsResponseNonNullableFields {
941
+ collectionItems: CollectionItemNonNullableFields[];
942
+ }
943
+ interface BaseEventMetadata {
944
+ /** App instance ID. */
945
+ instanceId?: string | null;
946
+ /** Event type. */
947
+ eventType?: string;
948
+ /** The identification type and identity data. */
949
+ identity?: IdentificationData;
950
+ }
951
+ interface EventMetadata extends BaseEventMetadata {
952
+ /**
953
+ * Unique event ID.
954
+ * Allows clients to ignore duplicate webhooks.
955
+ */
956
+ _id?: string;
957
+ /**
958
+ * Assumes actions are also always typed to an entity_type
959
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
960
+ */
961
+ entityFqdn?: string;
962
+ /**
963
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
964
+ * This is although the created/updated/deleted notion is duplication of the oneof types
965
+ * Example: created/updated/deleted/started/completed/email_opened
966
+ */
967
+ slug?: string;
968
+ /** ID of the entity associated with the event. */
969
+ entityId?: string;
970
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
971
+ eventTime?: Date;
972
+ /**
973
+ * Whether the event was triggered as a result of a privacy regulation application
974
+ * (for example, GDPR).
975
+ */
976
+ triggeredByAnonymizeRequest?: boolean | null;
977
+ /** If present, indicates the action that triggered the event. */
978
+ originatedFrom?: string | null;
979
+ /**
980
+ * A sequence number defining the order of updates to the underlying entity.
981
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
982
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
983
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
984
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
985
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
986
+ */
987
+ entityEventSequence?: string | null;
988
+ }
989
+ interface CollectionCreatedEnvelope {
990
+ entity: MediaCollection;
991
+ metadata: EventMetadata;
992
+ }
993
+ interface GetOptions {
994
+ /** number of items to skip in the current sort order, default is 0 */
995
+ offset?: number | null;
996
+ /** The amount of items per response, default is 50 */
997
+ limit?: number | null;
998
+ }
999
+ interface ListCollectionsForItemOptions {
1000
+ /** Gallery id */
1001
+ galleryId?: string;
1002
+ }
1003
+ interface GetCollectionItemIdentifiers {
1004
+ /** Collection id */
1005
+ mediaCollectionId: string;
1006
+ /** Item id */
1007
+ itemId: string;
1008
+ }
1009
+ interface ListOptions {
1010
+ /** the amount of collections per response, default is 1000 */
1011
+ limit?: number | null;
1012
+ /** number of collections to skip in the current sort order, default is 0 */
1013
+ offset?: number | null;
1014
+ /**
1015
+ * If empty, no filter will be applied
1016
+ * Else, will return only collections that the member has those roles on them. Currently supporting: MEMBER, ADMIN.
1017
+ */
1018
+ filterByRoles?: FilterByRoles;
1019
+ }
1020
+ interface CreateOptions {
1021
+ /** Description of the collection */
1022
+ description?: string | null;
1023
+ /** Privacy settings of the collection */
1024
+ privacySettings?: PrivacySettings;
1025
+ /** Items to add to the collection */
1026
+ items?: AddItem[];
1027
+ }
1028
+ interface PartiallyUpdateMediaCollection {
1029
+ /**
1030
+ * Collection id
1031
+ * @readonly
1032
+ */
1033
+ _id?: string;
1034
+ /** Collection name */
1035
+ name?: string;
1036
+ description?: string | null;
1037
+ /**
1038
+ * total count of MediaCollection members
1039
+ * @readonly
1040
+ */
1041
+ membersCount?: number;
1042
+ /**
1043
+ * the member who created the MediaCollection
1044
+ * @readonly
1045
+ */
1046
+ creator?: CollectionMember;
1047
+ /**
1048
+ * when MediaCollection was created
1049
+ * @readonly
1050
+ */
1051
+ _createdDate?: Date;
1052
+ /** Items in the collection */
1053
+ items?: MediaCollectionItem[];
1054
+ /**
1055
+ * total count of items
1056
+ * @readonly
1057
+ */
1058
+ itemsCount?: number;
1059
+ /** Privacy settings */
1060
+ privacySettings?: PrivacySettings;
1061
+ /** If true, the collection is locked and should not be updated */
1062
+ locked?: boolean;
1063
+ }
1064
+ interface ListCollectionMembersOptions {
1065
+ /** Filter the members by their role in the collection */
1066
+ filterBy?: FilterBy;
1067
+ }
1068
+ interface AddItemsOptions {
1069
+ /** Items to add */
1070
+ items?: AddItem[];
1071
+ }
1072
+ interface RemoveItemsOptions {
1073
+ /** Items to remove */
1074
+ itemsIds?: string[];
1075
+ }
1076
+
1077
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
1078
+ interface HttpClient {
1079
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1080
+ fetchWithAuth: typeof fetch;
1081
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
1082
+ }
1083
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1084
+ type HttpResponse<T = any> = {
1085
+ data: T;
1086
+ status: number;
1087
+ statusText: string;
1088
+ headers: any;
1089
+ request?: any;
1090
+ };
1091
+ type RequestOptions<_TResponse = any, Data = any> = {
1092
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1093
+ url: string;
1094
+ data?: Data;
1095
+ params?: URLSearchParams;
1096
+ } & APIMetadata;
1097
+ type APIMetadata = {
1098
+ methodFqn?: string;
1099
+ entityFqdn?: string;
1100
+ packageName?: string;
1101
+ };
1102
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
1103
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
1104
+ __type: 'event-definition';
1105
+ type: Type;
1106
+ isDomainEvent?: boolean;
1107
+ transformations?: (envelope: unknown) => Payload;
1108
+ __payload: Payload;
1109
+ };
1110
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1111
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
1112
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
1113
+
1114
+ declare global {
1115
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1116
+ interface SymbolConstructor {
1117
+ readonly observable: symbol;
1118
+ }
1119
+ }
1120
+
1121
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1122
+
1123
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1124
+
1125
+ declare const get: ReturnType<typeof createRESTModule<typeof publicGet>>;
1126
+ declare const listCollectionsForItem: ReturnType<typeof createRESTModule<typeof publicListCollectionsForItem>>;
1127
+ declare const getCollectionItem: ReturnType<typeof createRESTModule<typeof publicGetCollectionItem>>;
1128
+ declare const list: ReturnType<typeof createRESTModule<typeof publicList>>;
1129
+ declare const create: ReturnType<typeof createRESTModule<typeof publicCreate>>;
1130
+ declare const partiallyUpdate: ReturnType<typeof createRESTModule<typeof publicPartiallyUpdate>>;
1131
+ declare const _delete: ReturnType<typeof createRESTModule<typeof public_delete>>;
1132
+ declare const listCollectionMembers: ReturnType<typeof createRESTModule<typeof publicListCollectionMembers>>;
1133
+ declare const addItems: ReturnType<typeof createRESTModule<typeof publicAddItems>>;
1134
+ declare const removeItems: ReturnType<typeof createRESTModule<typeof publicRemoveItems>>;
1135
+ declare const joinToCollection: ReturnType<typeof createRESTModule<typeof publicJoinToCollection>>;
1136
+ declare const leaveCollection: ReturnType<typeof createRESTModule<typeof publicLeaveCollection>>;
1137
+ declare const listCollectionItems: ReturnType<typeof createRESTModule<typeof publicListCollectionItems>>;
1138
+ declare const onCollectionCreated: ReturnType<typeof createEventModule<typeof publicOnCollectionCreated>>;
1139
+
1140
+ type index_d_ActionEvent = ActionEvent;
1141
+ type index_d_AddItem = AddItem;
1142
+ type index_d_AddItemsOptions = AddItemsOptions;
1143
+ type index_d_AddItemsRequest = AddItemsRequest;
1144
+ type index_d_AddItemsResponse = AddItemsResponse;
1145
+ type index_d_AddressLink = AddressLink;
1146
+ type index_d_AnchorLink = AnchorLink;
1147
+ type index_d_BaseEventMetadata = BaseEventMetadata;
1148
+ type index_d_CollectionAndStatus = CollectionAndStatus;
1149
+ type index_d_CollectionCreated = CollectionCreated;
1150
+ type index_d_CollectionCreatedEnvelope = CollectionCreatedEnvelope;
1151
+ type index_d_CollectionEvent = CollectionEvent;
1152
+ type index_d_CollectionEventEventTypeOneOf = CollectionEventEventTypeOneOf;
1153
+ type index_d_CollectionItem = CollectionItem;
1154
+ type index_d_CollectionItemId = CollectionItemId;
1155
+ type index_d_CollectionMember = CollectionMember;
1156
+ type index_d_CreateMediaCollectionRequest = CreateMediaCollectionRequest;
1157
+ type index_d_CreateMediaCollectionResponse = CreateMediaCollectionResponse;
1158
+ type index_d_CreateMediaCollectionResponseNonNullableFields = CreateMediaCollectionResponseNonNullableFields;
1159
+ type index_d_CreateOptions = CreateOptions;
1160
+ type index_d_DataType = DataType;
1161
+ declare const index_d_DataType: typeof DataType;
1162
+ type index_d_DeleteMediaCollectionRequest = DeleteMediaCollectionRequest;
1163
+ type index_d_DeleteMediaCollectionResponse = DeleteMediaCollectionResponse;
1164
+ type index_d_DocumentLink = DocumentLink;
1165
+ type index_d_DomainEvent = DomainEvent;
1166
+ type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
1167
+ type index_d_DynamicPageLink = DynamicPageLink;
1168
+ type index_d_EmailLink = EmailLink;
1169
+ type index_d_Empty = Empty;
1170
+ type index_d_EntityCreatedEvent = EntityCreatedEvent;
1171
+ type index_d_EntityDeletedEvent = EntityDeletedEvent;
1172
+ type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
1173
+ type index_d_EventMetadata = EventMetadata;
1174
+ type index_d_ExternalLink = ExternalLink;
1175
+ type index_d_FilterBy = FilterBy;
1176
+ type index_d_FilterByRoles = FilterByRoles;
1177
+ type index_d_GetCollectionItemIdentifiers = GetCollectionItemIdentifiers;
1178
+ type index_d_GetCollectionItemRequest = GetCollectionItemRequest;
1179
+ type index_d_GetCollectionItemResponse = GetCollectionItemResponse;
1180
+ type index_d_GetCollectionItemResponseNonNullableFields = GetCollectionItemResponseNonNullableFields;
1181
+ type index_d_GetMediaCollectionRequest = GetMediaCollectionRequest;
1182
+ type index_d_GetMediaCollectionResponse = GetMediaCollectionResponse;
1183
+ type index_d_GetMediaCollectionResponseNonNullableFields = GetMediaCollectionResponseNonNullableFields;
1184
+ type index_d_GetOptions = GetOptions;
1185
+ type index_d_IdentificationData = IdentificationData;
1186
+ type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
1187
+ type index_d_ItemInCollection = ItemInCollection;
1188
+ type index_d_ItemsAddedToCollection = ItemsAddedToCollection;
1189
+ type index_d_ItemsRemovedFromCollection = ItemsRemovedFromCollection;
1190
+ type index_d_JoinToCollectionRequest = JoinToCollectionRequest;
1191
+ type index_d_JoinToCollectionResponse = JoinToCollectionResponse;
1192
+ type index_d_LeaveCollectionRequest = LeaveCollectionRequest;
1193
+ type index_d_LeaveCollectionResponse = LeaveCollectionResponse;
1194
+ type index_d_Link = Link;
1195
+ type index_d_LinkRel = LinkRel;
1196
+ declare const index_d_LinkRel: typeof LinkRel;
1197
+ type index_d_ListAllItemsBelongToCollectionRequest = ListAllItemsBelongToCollectionRequest;
1198
+ type index_d_ListAllItemsBelongToCollectionResponse = ListAllItemsBelongToCollectionResponse;
1199
+ type index_d_ListCollectionItemsRequest = ListCollectionItemsRequest;
1200
+ type index_d_ListCollectionItemsResponse = ListCollectionItemsResponse;
1201
+ type index_d_ListCollectionItemsResponseNonNullableFields = ListCollectionItemsResponseNonNullableFields;
1202
+ type index_d_ListCollectionMembersOptions = ListCollectionMembersOptions;
1203
+ type index_d_ListCollectionMembersRequest = ListCollectionMembersRequest;
1204
+ type index_d_ListCollectionMembersResponse = ListCollectionMembersResponse;
1205
+ type index_d_ListCollectionMembersResponseNonNullableFields = ListCollectionMembersResponseNonNullableFields;
1206
+ type index_d_ListCollectionsForItemOptions = ListCollectionsForItemOptions;
1207
+ type index_d_ListCollectionsForItemRequest = ListCollectionsForItemRequest;
1208
+ type index_d_ListCollectionsForItemResponse = ListCollectionsForItemResponse;
1209
+ type index_d_ListCollectionsForItemResponseNonNullableFields = ListCollectionsForItemResponseNonNullableFields;
1210
+ type index_d_ListMediaCollectionsRequest = ListMediaCollectionsRequest;
1211
+ type index_d_ListMediaCollectionsResponse = ListMediaCollectionsResponse;
1212
+ type index_d_ListMediaCollectionsResponseNonNullableFields = ListMediaCollectionsResponseNonNullableFields;
1213
+ type index_d_ListOptions = ListOptions;
1214
+ type index_d_MediaCollection = MediaCollection;
1215
+ type index_d_MediaCollectionItem = MediaCollectionItem;
1216
+ type index_d_MediaCollectionItemMetadataOneOf = MediaCollectionItemMetadataOneOf;
1217
+ type index_d_MediaCollectionNonNullableFields = MediaCollectionNonNullableFields;
1218
+ type index_d_MediaOwner = MediaOwner;
1219
+ declare const index_d_MediaOwner: typeof MediaOwner;
1220
+ type index_d_MemberAndStatus = MemberAndStatus;
1221
+ type index_d_MemberJoinedToCollection = MemberJoinedToCollection;
1222
+ type index_d_MemberLeftCollection = MemberLeftCollection;
1223
+ type index_d_MemberStatus = MemberStatus;
1224
+ declare const index_d_MemberStatus: typeof MemberStatus;
1225
+ type index_d_MessageEnvelope = MessageEnvelope;
1226
+ type index_d_PageLink = PageLink;
1227
+ type index_d_PartiallyUpdateMediaCollection = PartiallyUpdateMediaCollection;
1228
+ type index_d_PartiallyUpdateMediaCollectionRequest = PartiallyUpdateMediaCollectionRequest;
1229
+ type index_d_PartiallyUpdateMediaCollectionResponse = PartiallyUpdateMediaCollectionResponse;
1230
+ type index_d_PermanentSiteDeletedResponse = PermanentSiteDeletedResponse;
1231
+ type index_d_PhoneLink = PhoneLink;
1232
+ type index_d_PhotoMetadata = PhotoMetadata;
1233
+ type index_d_Point = Point;
1234
+ type index_d_PrivacySettings = PrivacySettings;
1235
+ declare const index_d_PrivacySettings: typeof PrivacySettings;
1236
+ type index_d_RemoveItemsOptions = RemoveItemsOptions;
1237
+ type index_d_RemoveItemsRequest = RemoveItemsRequest;
1238
+ type index_d_RemoveItemsResponse = RemoveItemsResponse;
1239
+ type index_d_RemoveMemberFromCollectionRequest = RemoveMemberFromCollectionRequest;
1240
+ type index_d_RemoveMemberFromCollectionResponse = RemoveMemberFromCollectionResponse;
1241
+ type index_d_Resolution = Resolution;
1242
+ type index_d_RestoreInfo = RestoreInfo;
1243
+ type index_d_Source = Source;
1244
+ declare const index_d_Source: typeof Source;
1245
+ type index_d_Status = Status;
1246
+ declare const index_d_Status: typeof Status;
1247
+ type index_d_TextMetadata = TextMetadata;
1248
+ type index_d_Thumbnail = Thumbnail;
1249
+ type index_d_TpaPageLink = TpaPageLink;
1250
+ type index_d_Type = Type;
1251
+ declare const index_d_Type: typeof Type;
1252
+ type index_d_UnsharpMasking = UnsharpMasking;
1253
+ type index_d_UpdateCollectionLockRequest = UpdateCollectionLockRequest;
1254
+ type index_d_UpdateCollectionLockResponse = UpdateCollectionLockResponse;
1255
+ type index_d_UpdateItem = UpdateItem;
1256
+ type index_d_UpdateItemsRequest = UpdateItemsRequest;
1257
+ type index_d_UpdateItemsResponse = UpdateItemsResponse;
1258
+ type index_d_VideoMetadata = VideoMetadata;
1259
+ type index_d_WebhookIdentityType = WebhookIdentityType;
1260
+ declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
1261
+ type index_d_WhatsAppLink = WhatsAppLink;
1262
+ type index_d_WixLink = WixLink;
1263
+ type index_d_WixLinkLinkOneOf = WixLinkLinkOneOf;
1264
+ declare const index_d__delete: typeof _delete;
1265
+ declare const index_d_addItems: typeof addItems;
1266
+ declare const index_d_create: typeof create;
1267
+ declare const index_d_get: typeof get;
1268
+ declare const index_d_getCollectionItem: typeof getCollectionItem;
1269
+ declare const index_d_joinToCollection: typeof joinToCollection;
1270
+ declare const index_d_leaveCollection: typeof leaveCollection;
1271
+ declare const index_d_list: typeof list;
1272
+ declare const index_d_listCollectionItems: typeof listCollectionItems;
1273
+ declare const index_d_listCollectionMembers: typeof listCollectionMembers;
1274
+ declare const index_d_listCollectionsForItem: typeof listCollectionsForItem;
1275
+ declare const index_d_onCollectionCreated: typeof onCollectionCreated;
1276
+ declare const index_d_partiallyUpdate: typeof partiallyUpdate;
1277
+ declare const index_d_removeItems: typeof removeItems;
1278
+ declare namespace index_d {
1279
+ export { type index_d_ActionEvent as ActionEvent, type index_d_AddItem as AddItem, type index_d_AddItemsOptions as AddItemsOptions, type index_d_AddItemsRequest as AddItemsRequest, type index_d_AddItemsResponse as AddItemsResponse, type index_d_AddressLink as AddressLink, type index_d_AnchorLink as AnchorLink, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CollectionAndStatus as CollectionAndStatus, type index_d_CollectionCreated as CollectionCreated, type index_d_CollectionCreatedEnvelope as CollectionCreatedEnvelope, type index_d_CollectionEvent as CollectionEvent, type index_d_CollectionEventEventTypeOneOf as CollectionEventEventTypeOneOf, type index_d_CollectionItem as CollectionItem, type index_d_CollectionItemId as CollectionItemId, type index_d_CollectionMember as CollectionMember, type index_d_CreateMediaCollectionRequest as CreateMediaCollectionRequest, type index_d_CreateMediaCollectionResponse as CreateMediaCollectionResponse, type index_d_CreateMediaCollectionResponseNonNullableFields as CreateMediaCollectionResponseNonNullableFields, type index_d_CreateOptions as CreateOptions, index_d_DataType as DataType, type index_d_DeleteMediaCollectionRequest as DeleteMediaCollectionRequest, type index_d_DeleteMediaCollectionResponse as DeleteMediaCollectionResponse, type index_d_DocumentLink as DocumentLink, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_DynamicPageLink as DynamicPageLink, type index_d_EmailLink as EmailLink, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExternalLink as ExternalLink, type index_d_FilterBy as FilterBy, type index_d_FilterByRoles as FilterByRoles, type index_d_GetCollectionItemIdentifiers as GetCollectionItemIdentifiers, type index_d_GetCollectionItemRequest as GetCollectionItemRequest, type index_d_GetCollectionItemResponse as GetCollectionItemResponse, type index_d_GetCollectionItemResponseNonNullableFields as GetCollectionItemResponseNonNullableFields, type index_d_GetMediaCollectionRequest as GetMediaCollectionRequest, type index_d_GetMediaCollectionResponse as GetMediaCollectionResponse, type index_d_GetMediaCollectionResponseNonNullableFields as GetMediaCollectionResponseNonNullableFields, type index_d_GetOptions as GetOptions, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ItemInCollection as ItemInCollection, type index_d_ItemsAddedToCollection as ItemsAddedToCollection, type index_d_ItemsRemovedFromCollection as ItemsRemovedFromCollection, type index_d_JoinToCollectionRequest as JoinToCollectionRequest, type index_d_JoinToCollectionResponse as JoinToCollectionResponse, type index_d_LeaveCollectionRequest as LeaveCollectionRequest, type index_d_LeaveCollectionResponse as LeaveCollectionResponse, type index_d_Link as Link, index_d_LinkRel as LinkRel, type index_d_ListAllItemsBelongToCollectionRequest as ListAllItemsBelongToCollectionRequest, type index_d_ListAllItemsBelongToCollectionResponse as ListAllItemsBelongToCollectionResponse, type index_d_ListCollectionItemsRequest as ListCollectionItemsRequest, type index_d_ListCollectionItemsResponse as ListCollectionItemsResponse, type index_d_ListCollectionItemsResponseNonNullableFields as ListCollectionItemsResponseNonNullableFields, type index_d_ListCollectionMembersOptions as ListCollectionMembersOptions, type index_d_ListCollectionMembersRequest as ListCollectionMembersRequest, type index_d_ListCollectionMembersResponse as ListCollectionMembersResponse, type index_d_ListCollectionMembersResponseNonNullableFields as ListCollectionMembersResponseNonNullableFields, type index_d_ListCollectionsForItemOptions as ListCollectionsForItemOptions, type index_d_ListCollectionsForItemRequest as ListCollectionsForItemRequest, type index_d_ListCollectionsForItemResponse as ListCollectionsForItemResponse, type index_d_ListCollectionsForItemResponseNonNullableFields as ListCollectionsForItemResponseNonNullableFields, type index_d_ListMediaCollectionsRequest as ListMediaCollectionsRequest, type index_d_ListMediaCollectionsResponse as ListMediaCollectionsResponse, type index_d_ListMediaCollectionsResponseNonNullableFields as ListMediaCollectionsResponseNonNullableFields, type index_d_ListOptions as ListOptions, type index_d_MediaCollection as MediaCollection, type index_d_MediaCollectionItem as MediaCollectionItem, type index_d_MediaCollectionItemMetadataOneOf as MediaCollectionItemMetadataOneOf, type index_d_MediaCollectionNonNullableFields as MediaCollectionNonNullableFields, index_d_MediaOwner as MediaOwner, type index_d_MemberAndStatus as MemberAndStatus, type index_d_MemberJoinedToCollection as MemberJoinedToCollection, type index_d_MemberLeftCollection as MemberLeftCollection, index_d_MemberStatus as MemberStatus, type index_d_MessageEnvelope as MessageEnvelope, type index_d_PageLink as PageLink, type index_d_PartiallyUpdateMediaCollection as PartiallyUpdateMediaCollection, type index_d_PartiallyUpdateMediaCollectionRequest as PartiallyUpdateMediaCollectionRequest, type index_d_PartiallyUpdateMediaCollectionResponse as PartiallyUpdateMediaCollectionResponse, type index_d_PermanentSiteDeletedResponse as PermanentSiteDeletedResponse, type index_d_PhoneLink as PhoneLink, type index_d_PhotoMetadata as PhotoMetadata, type index_d_Point as Point, index_d_PrivacySettings as PrivacySettings, type index_d_RemoveItemsOptions as RemoveItemsOptions, type index_d_RemoveItemsRequest as RemoveItemsRequest, type index_d_RemoveItemsResponse as RemoveItemsResponse, type index_d_RemoveMemberFromCollectionRequest as RemoveMemberFromCollectionRequest, type index_d_RemoveMemberFromCollectionResponse as RemoveMemberFromCollectionResponse, type index_d_Resolution as Resolution, type index_d_RestoreInfo as RestoreInfo, index_d_Source as Source, index_d_Status as Status, type index_d_TextMetadata as TextMetadata, type index_d_Thumbnail as Thumbnail, type index_d_TpaPageLink as TpaPageLink, index_d_Type as Type, type index_d_UnsharpMasking as UnsharpMasking, type index_d_UpdateCollectionLockRequest as UpdateCollectionLockRequest, type index_d_UpdateCollectionLockResponse as UpdateCollectionLockResponse, type index_d_UpdateItem as UpdateItem, type index_d_UpdateItemsRequest as UpdateItemsRequest, type index_d_UpdateItemsResponse as UpdateItemsResponse, type index_d_VideoMetadata as VideoMetadata, index_d_WebhookIdentityType as WebhookIdentityType, type index_d_WhatsAppLink as WhatsAppLink, type index_d_WixLink as WixLink, type index_d_WixLinkLinkOneOf as WixLinkLinkOneOf, index_d__delete as _delete, index_d_addItems as addItems, index_d_create as create, index_d_get as get, index_d_getCollectionItem as getCollectionItem, index_d_joinToCollection as joinToCollection, index_d_leaveCollection as leaveCollection, index_d_list as list, index_d_listCollectionItems as listCollectionItems, index_d_listCollectionMembers as listCollectionMembers, index_d_listCollectionsForItem as listCollectionsForItem, index_d_onCollectionCreated as onCollectionCreated, index_d_partiallyUpdate as partiallyUpdate, index_d_removeItems as removeItems };
1280
+ }
1281
+
1282
+ export { index_d as mediaCollections };