@wix/auto_sdk_media-collections_media-collections 1.0.26 → 1.0.27

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.
@@ -438,6 +438,285 @@ declare enum PrivacySettings {
438
438
  }
439
439
  /** @enumType */
440
440
  type PrivacySettingsWithLiterals = PrivacySettings | 'Undefined' | 'Public' | 'Secret';
441
+ interface PermanentSiteDeletedResponse {
442
+ /** @format GUID */
443
+ requestId?: string;
444
+ uniqueServiceIdentifier?: string;
445
+ status?: StatusWithLiterals;
446
+ /** @readonly */
447
+ createdDate?: Date | null;
448
+ }
449
+ declare enum Status {
450
+ UNKNOWN = "UNKNOWN",
451
+ HANDLED = "HANDLED",
452
+ NOTHING_TO_HANDLE = "NOTHING_TO_HANDLE"
453
+ }
454
+ /** @enumType */
455
+ type StatusWithLiterals = Status | 'UNKNOWN' | 'HANDLED' | 'NOTHING_TO_HANDLE';
456
+ interface Empty {
457
+ }
458
+ interface DomainEvent extends DomainEventBodyOneOf {
459
+ createdEvent?: EntityCreatedEvent;
460
+ updatedEvent?: EntityUpdatedEvent;
461
+ deletedEvent?: EntityDeletedEvent;
462
+ actionEvent?: ActionEvent;
463
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
464
+ id?: string;
465
+ /**
466
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
467
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
468
+ */
469
+ entityFqdn?: string;
470
+ /**
471
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
472
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
473
+ */
474
+ slug?: string;
475
+ /** ID of the entity associated with the event. */
476
+ entityId?: string;
477
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
478
+ eventTime?: Date | null;
479
+ /**
480
+ * Whether the event was triggered as a result of a privacy regulation application
481
+ * (for example, GDPR).
482
+ */
483
+ triggeredByAnonymizeRequest?: boolean | null;
484
+ /** If present, indicates the action that triggered the event. */
485
+ originatedFrom?: string | null;
486
+ /**
487
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
488
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
489
+ */
490
+ entityEventSequence?: string | null;
491
+ }
492
+ /** @oneof */
493
+ interface DomainEventBodyOneOf {
494
+ createdEvent?: EntityCreatedEvent;
495
+ updatedEvent?: EntityUpdatedEvent;
496
+ deletedEvent?: EntityDeletedEvent;
497
+ actionEvent?: ActionEvent;
498
+ }
499
+ interface EntityCreatedEvent {
500
+ entityAsJson?: string;
501
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
502
+ restoreInfo?: RestoreInfo;
503
+ }
504
+ interface RestoreInfo {
505
+ deletedDate?: Date | null;
506
+ }
507
+ interface EntityUpdatedEvent {
508
+ /**
509
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
510
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
511
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
512
+ */
513
+ currentEntityAsJson?: string;
514
+ }
515
+ interface EntityDeletedEvent {
516
+ /** Entity that was deleted. */
517
+ deletedEntityAsJson?: string | null;
518
+ }
519
+ interface ActionEvent {
520
+ bodyAsJson?: string;
521
+ }
522
+ interface MessageEnvelope {
523
+ /**
524
+ * App instance ID.
525
+ * @format GUID
526
+ */
527
+ instanceId?: string | null;
528
+ /**
529
+ * Event type.
530
+ * @maxLength 150
531
+ */
532
+ eventType?: string;
533
+ /** The identification type and identity data. */
534
+ identity?: IdentificationData;
535
+ /** Stringify payload. */
536
+ data?: string;
537
+ }
538
+ interface IdentificationData extends IdentificationDataIdOneOf {
539
+ /**
540
+ * ID of a site visitor that has not logged in to the site.
541
+ * @format GUID
542
+ */
543
+ anonymousVisitorId?: string;
544
+ /**
545
+ * ID of a site visitor that has logged in to the site.
546
+ * @format GUID
547
+ */
548
+ memberId?: string;
549
+ /**
550
+ * ID of a Wix user (site owner, contributor, etc.).
551
+ * @format GUID
552
+ */
553
+ wixUserId?: string;
554
+ /**
555
+ * ID of an app.
556
+ * @format GUID
557
+ */
558
+ appId?: string;
559
+ /** @readonly */
560
+ identityType?: WebhookIdentityTypeWithLiterals;
561
+ }
562
+ /** @oneof */
563
+ interface IdentificationDataIdOneOf {
564
+ /**
565
+ * ID of a site visitor that has not logged in to the site.
566
+ * @format GUID
567
+ */
568
+ anonymousVisitorId?: string;
569
+ /**
570
+ * ID of a site visitor that has logged in to the site.
571
+ * @format GUID
572
+ */
573
+ memberId?: string;
574
+ /**
575
+ * ID of a Wix user (site owner, contributor, etc.).
576
+ * @format GUID
577
+ */
578
+ wixUserId?: string;
579
+ /**
580
+ * ID of an app.
581
+ * @format GUID
582
+ */
583
+ appId?: string;
584
+ }
585
+ declare enum WebhookIdentityType {
586
+ UNKNOWN = "UNKNOWN",
587
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
588
+ MEMBER = "MEMBER",
589
+ WIX_USER = "WIX_USER",
590
+ APP = "APP"
591
+ }
592
+ /** @enumType */
593
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
594
+ interface CollectionEvent extends CollectionEventEventTypeOneOf {
595
+ /** Collection created */
596
+ collectionCreated?: CollectionCreated;
597
+ /** Items added to collection */
598
+ itemsAddedToCollection?: ItemsAddedToCollection;
599
+ /** Items removed from collection */
600
+ itemsRemovedFromCollection?: ItemsRemovedFromCollection;
601
+ /** Member joined to collection */
602
+ memberJoinedToCollection?: MemberJoinedToCollection;
603
+ /** Member left collection */
604
+ memberLeftCollection?: MemberLeftCollection;
605
+ }
606
+ /** @oneof */
607
+ interface CollectionEventEventTypeOneOf {
608
+ /** Collection created */
609
+ collectionCreated?: CollectionCreated;
610
+ /** Items added to collection */
611
+ itemsAddedToCollection?: ItemsAddedToCollection;
612
+ /** Items removed from collection */
613
+ itemsRemovedFromCollection?: ItemsRemovedFromCollection;
614
+ /** Member joined to collection */
615
+ memberJoinedToCollection?: MemberJoinedToCollection;
616
+ /** Member left collection */
617
+ memberLeftCollection?: MemberLeftCollection;
618
+ }
619
+ interface CollectionItemId {
620
+ /**
621
+ * Id of the gallery in ProGallery
622
+ * @format GUID
623
+ */
624
+ galleryId?: string;
625
+ /**
626
+ * Id of the item in ProGallery
627
+ * @format GUID
628
+ */
629
+ itemId?: string;
630
+ }
631
+ interface CollectionCreated {
632
+ /**
633
+ * Collection id
634
+ * @format GUID
635
+ */
636
+ id?: string;
637
+ /**
638
+ * Collection name
639
+ * @maxLength 100
640
+ */
641
+ name?: string;
642
+ /**
643
+ * Collection description
644
+ * @maxLength 500
645
+ */
646
+ description?: string | null;
647
+ /**
648
+ * Id of the member who created the collection
649
+ * @format GUID
650
+ */
651
+ creatorMemberId?: string;
652
+ /** When the collection was created */
653
+ createdDate?: Date | null;
654
+ /** Privacy settings */
655
+ privacySettings?: PrivacySettingsWithLiterals;
656
+ }
657
+ interface ItemsAddedToCollection {
658
+ /**
659
+ * Id of the collection
660
+ * @format GUID
661
+ */
662
+ collectionId?: string;
663
+ /**
664
+ * Id of the member who added items
665
+ * @format GUID
666
+ */
667
+ addedByMember?: string;
668
+ /** Ids of the items that were added */
669
+ collectionItemIds?: CollectionItemId[];
670
+ /** When the items were added */
671
+ addedDate?: Date | null;
672
+ }
673
+ interface ItemsRemovedFromCollection {
674
+ /**
675
+ * Id of the collection
676
+ * @format GUID
677
+ */
678
+ collectionId?: string;
679
+ /**
680
+ * Id of the member who removed items
681
+ * @format GUID
682
+ */
683
+ removedByMember?: string;
684
+ /**
685
+ * Ids of the items that were removed
686
+ * @format GUID
687
+ */
688
+ itemIds?: string[];
689
+ /** When the items were removed */
690
+ removedDate?: Date | null;
691
+ }
692
+ interface MemberJoinedToCollection {
693
+ /**
694
+ * Id of the collection
695
+ * @format GUID
696
+ */
697
+ collectionId?: string;
698
+ /**
699
+ * Id of the member who joined
700
+ * @format GUID
701
+ */
702
+ memberId?: string;
703
+ /** When the member was joined */
704
+ joinedDate?: Date | null;
705
+ }
706
+ interface MemberLeftCollection {
707
+ /**
708
+ * Id of the collection
709
+ * @format GUID
710
+ */
711
+ collectionId?: string;
712
+ /**
713
+ * Id of the member who left
714
+ * @format GUID
715
+ */
716
+ memberId?: string;
717
+ /** When the member left */
718
+ leftDate?: Date | null;
719
+ }
441
720
  interface GetMediaCollectionRequest {
442
721
  /**
443
722
  * Collection id
@@ -613,6 +892,17 @@ interface PartiallyUpdateMediaCollectionRequest {
613
892
  }
614
893
  interface PartiallyUpdateMediaCollectionResponse {
615
894
  }
895
+ interface UpdateCollectionLockRequest {
896
+ /**
897
+ * Collection to lock
898
+ * @format GUID
899
+ */
900
+ mediaCollectionId?: string;
901
+ /** Lock status */
902
+ locked?: boolean;
903
+ }
904
+ interface UpdateCollectionLockResponse {
905
+ }
616
906
  interface DeleteMediaCollectionRequest {
617
907
  /**
618
908
  * the collection to delete
@@ -670,6 +960,25 @@ interface RemoveItemsRequest {
670
960
  }
671
961
  interface RemoveItemsResponse {
672
962
  }
963
+ interface UpdateItemsRequest {
964
+ /**
965
+ * Collection to update items
966
+ * @format GUID
967
+ */
968
+ mediaCollectionId?: string;
969
+ items?: UpdateItem[];
970
+ }
971
+ interface UpdateItem {
972
+ /**
973
+ * Item to update
974
+ * @format GUID
975
+ */
976
+ itemId?: string;
977
+ /** New order index of the item */
978
+ orderIndex?: number;
979
+ }
980
+ interface UpdateItemsResponse {
981
+ }
673
982
  interface JoinToCollectionRequest {
674
983
  /**
675
984
  * Collection to join
@@ -679,6 +988,20 @@ interface JoinToCollectionRequest {
679
988
  }
680
989
  interface JoinToCollectionResponse {
681
990
  }
991
+ interface RemoveMemberFromCollectionRequest {
992
+ /**
993
+ * Collection the member will be removed from being a member
994
+ * @format GUID
995
+ */
996
+ mediaCollectionId?: string;
997
+ /**
998
+ * Member id to remove from the collection
999
+ * @format GUID
1000
+ */
1001
+ memberId?: string;
1002
+ }
1003
+ interface RemoveMemberFromCollectionResponse {
1004
+ }
682
1005
  interface LeaveCollectionRequest {
683
1006
  /**
684
1007
  * Collection the member will be leaving
@@ -715,6 +1038,15 @@ interface CollectionItem {
715
1038
  /** Date the item was added to the collection */
716
1039
  addedDate?: Date | null;
717
1040
  }
1041
+ interface ListAllItemsBelongToCollectionRequest {
1042
+ }
1043
+ interface ListAllItemsBelongToCollectionResponse {
1044
+ /**
1045
+ * List of the item ids that belong to one or more collection
1046
+ * @format GUID
1047
+ */
1048
+ itemIds?: string[];
1049
+ }
718
1050
 
719
1051
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
720
1052
  getUrl: (context: any) => string;
@@ -763,4 +1095,4 @@ declare function listCollectionItems(): __PublicMethodMetaInfo<'GET', {
763
1095
  mediaCollectionId: string;
764
1096
  }, ListCollectionItemsRequest$1, ListCollectionItemsRequest, ListCollectionItemsResponse$1, ListCollectionItemsResponse>;
765
1097
 
766
- export { type __PublicMethodMetaInfo, _delete, addItems, create, get, getCollectionItem, joinToCollection, leaveCollection, list, listCollectionItems, listCollectionMembers, listCollectionsForItem, partiallyUpdate, removeItems };
1098
+ export { type ActionEvent as ActionEventOriginal, type AddItem as AddItemOriginal, type AddItemsRequest as AddItemsRequestOriginal, type AddItemsResponse as AddItemsResponseOriginal, type AddressLink as AddressLinkOriginal, type AnchorLink as AnchorLinkOriginal, type CollectionAndStatus as CollectionAndStatusOriginal, type CollectionCreated as CollectionCreatedOriginal, type CollectionEventEventTypeOneOf as CollectionEventEventTypeOneOfOriginal, type CollectionEvent as CollectionEventOriginal, type CollectionItemId as CollectionItemIdOriginal, type CollectionItem as CollectionItemOriginal, type CollectionMember as CollectionMemberOriginal, type CreateMediaCollectionRequest as CreateMediaCollectionRequestOriginal, type CreateMediaCollectionResponse as CreateMediaCollectionResponseOriginal, DataType as DataTypeOriginal, type DataTypeWithLiterals as DataTypeWithLiteralsOriginal, type DeleteMediaCollectionRequest as DeleteMediaCollectionRequestOriginal, type DeleteMediaCollectionResponse as DeleteMediaCollectionResponseOriginal, type DocumentLink as DocumentLinkOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DynamicPageLink as DynamicPageLinkOriginal, type EmailLink as EmailLinkOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExternalLink as ExternalLinkOriginal, type FilterBy as FilterByOriginal, type FilterByRoles as FilterByRolesOriginal, type GetCollectionItemRequest as GetCollectionItemRequestOriginal, type GetCollectionItemResponse as GetCollectionItemResponseOriginal, type GetMediaCollectionRequest as GetMediaCollectionRequestOriginal, type GetMediaCollectionResponse as GetMediaCollectionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemInCollection as ItemInCollectionOriginal, type ItemsAddedToCollection as ItemsAddedToCollectionOriginal, type ItemsRemovedFromCollection as ItemsRemovedFromCollectionOriginal, type JoinToCollectionRequest as JoinToCollectionRequestOriginal, type JoinToCollectionResponse as JoinToCollectionResponseOriginal, type LeaveCollectionRequest as LeaveCollectionRequestOriginal, type LeaveCollectionResponse as LeaveCollectionResponseOriginal, type Link as LinkOriginal, LinkRel as LinkRelOriginal, type LinkRelWithLiterals as LinkRelWithLiteralsOriginal, type ListAllItemsBelongToCollectionRequest as ListAllItemsBelongToCollectionRequestOriginal, type ListAllItemsBelongToCollectionResponse as ListAllItemsBelongToCollectionResponseOriginal, type ListCollectionItemsRequest as ListCollectionItemsRequestOriginal, type ListCollectionItemsResponse as ListCollectionItemsResponseOriginal, type ListCollectionMembersRequest as ListCollectionMembersRequestOriginal, type ListCollectionMembersResponse as ListCollectionMembersResponseOriginal, type ListCollectionsForItemRequest as ListCollectionsForItemRequestOriginal, type ListCollectionsForItemResponse as ListCollectionsForItemResponseOriginal, type ListMediaCollectionsRequest as ListMediaCollectionsRequestOriginal, type ListMediaCollectionsResponse as ListMediaCollectionsResponseOriginal, type MediaCollectionItemMetadataOneOf as MediaCollectionItemMetadataOneOfOriginal, type MediaCollectionItem as MediaCollectionItemOriginal, type MediaCollection as MediaCollectionOriginal, MediaOwner as MediaOwnerOriginal, type MediaOwnerWithLiterals as MediaOwnerWithLiteralsOriginal, type MemberAndStatus as MemberAndStatusOriginal, type MemberJoinedToCollection as MemberJoinedToCollectionOriginal, type MemberLeftCollection as MemberLeftCollectionOriginal, MemberStatus as MemberStatusOriginal, type MemberStatusWithLiterals as MemberStatusWithLiteralsOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PageLink as PageLinkOriginal, type PartiallyUpdateMediaCollectionRequest as PartiallyUpdateMediaCollectionRequestOriginal, type PartiallyUpdateMediaCollectionResponse as PartiallyUpdateMediaCollectionResponseOriginal, type PermanentSiteDeletedResponse as PermanentSiteDeletedResponseOriginal, type PhoneLink as PhoneLinkOriginal, type PhotoMetadata as PhotoMetadataOriginal, type Point as PointOriginal, PrivacySettings as PrivacySettingsOriginal, type PrivacySettingsWithLiterals as PrivacySettingsWithLiteralsOriginal, type RemoveItemsRequest as RemoveItemsRequestOriginal, type RemoveItemsResponse as RemoveItemsResponseOriginal, type RemoveMemberFromCollectionRequest as RemoveMemberFromCollectionRequestOriginal, type RemoveMemberFromCollectionResponse as RemoveMemberFromCollectionResponseOriginal, type Resolution as ResolutionOriginal, type RestoreInfo as RestoreInfoOriginal, Source as SourceOriginal, type SourceWithLiterals as SourceWithLiteralsOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type TextMetadata as TextMetadataOriginal, type Thumbnail as ThumbnailOriginal, type TpaPageLink as TpaPageLinkOriginal, Type as TypeOriginal, type TypeWithLiterals as TypeWithLiteralsOriginal, type UnsharpMasking as UnsharpMaskingOriginal, type UpdateCollectionLockRequest as UpdateCollectionLockRequestOriginal, type UpdateCollectionLockResponse as UpdateCollectionLockResponseOriginal, type UpdateItem as UpdateItemOriginal, type UpdateItemsRequest as UpdateItemsRequestOriginal, type UpdateItemsResponse as UpdateItemsResponseOriginal, type VideoMetadata as VideoMetadataOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WhatsAppLink as WhatsAppLinkOriginal, type WixLinkLinkOneOf as WixLinkLinkOneOfOriginal, type WixLink as WixLinkOriginal, type __PublicMethodMetaInfo, _delete, addItems, create, get, getCollectionItem, joinToCollection, leaveCollection, list, listCollectionItems, listCollectionMembers, listCollectionsForItem, partiallyUpdate, removeItems };
@@ -76,6 +76,9 @@ function get(payload) {
76
76
  method: "GET",
77
77
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.Get",
78
78
  packageName: PACKAGE_NAME,
79
+ migrationOptions: {
80
+ optInTransformResponse: true
81
+ },
79
82
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
80
83
  {
81
84
  protoPath: "/v1/mediacollections/{mediaCollectionId}",
@@ -129,6 +132,9 @@ function listCollectionsForItem(payload) {
129
132
  method: "GET",
130
133
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionsForItem",
131
134
  packageName: PACKAGE_NAME,
135
+ migrationOptions: {
136
+ optInTransformResponse: true
137
+ },
132
138
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
133
139
  {
134
140
  protoPath: "/v1/mediacollections/items/{itemId}/collections",
@@ -185,6 +191,9 @@ function getCollectionItem(payload) {
185
191
  method: "GET",
186
192
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.GetCollectionItem",
187
193
  packageName: PACKAGE_NAME,
194
+ migrationOptions: {
195
+ optInTransformResponse: true
196
+ },
188
197
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
189
198
  {
190
199
  protoPath: "/v1/mediacollections/{mediaCollectionId}/items/{itemId}",
@@ -224,6 +233,9 @@ function list(payload) {
224
233
  method: "GET",
225
234
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.List",
226
235
  packageName: PACKAGE_NAME,
236
+ migrationOptions: {
237
+ optInTransformResponse: true
238
+ },
227
239
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
228
240
  { protoPath: "/v1/mediacollections", data: payload, host }
229
241
  ),
@@ -283,6 +295,9 @@ function create(payload) {
283
295
  method: "POST",
284
296
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.Create",
285
297
  packageName: PACKAGE_NAME,
298
+ migrationOptions: {
299
+ optInTransformResponse: true
300
+ },
286
301
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
287
302
  { protoPath: "/v1/mediacollections", data: serializedData, host }
288
303
  ),
@@ -328,6 +343,9 @@ function partiallyUpdate(payload) {
328
343
  method: "PUT",
329
344
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.PartiallyUpdate",
330
345
  packageName: PACKAGE_NAME,
346
+ migrationOptions: {
347
+ optInTransformResponse: true
348
+ },
331
349
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
332
350
  {
333
351
  protoPath: "/v1/mediacollections/{mediaCollection.id}",
@@ -348,6 +366,9 @@ function _delete(payload) {
348
366
  method: "DELETE",
349
367
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService._delete",
350
368
  packageName: PACKAGE_NAME,
369
+ migrationOptions: {
370
+ optInTransformResponse: true
371
+ },
351
372
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
352
373
  {
353
374
  protoPath: "/v1/mediacollections/{mediaCollectionId}",
@@ -368,6 +389,9 @@ function listCollectionMembers(payload) {
368
389
  method: "GET",
369
390
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionMembers",
370
391
  packageName: PACKAGE_NAME,
392
+ migrationOptions: {
393
+ optInTransformResponse: true
394
+ },
371
395
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
372
396
  {
373
397
  protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
@@ -394,6 +418,9 @@ function addItems(payload) {
394
418
  method: "POST",
395
419
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.AddItems",
396
420
  packageName: PACKAGE_NAME,
421
+ migrationOptions: {
422
+ optInTransformResponse: true
423
+ },
397
424
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
398
425
  {
399
426
  protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
@@ -414,6 +441,9 @@ function removeItems(payload) {
414
441
  method: "DELETE",
415
442
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.RemoveItems",
416
443
  packageName: PACKAGE_NAME,
444
+ migrationOptions: {
445
+ optInTransformResponse: true
446
+ },
417
447
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
418
448
  {
419
449
  protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
@@ -434,6 +464,9 @@ function joinToCollection(payload) {
434
464
  method: "POST",
435
465
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.JoinToCollection",
436
466
  packageName: PACKAGE_NAME,
467
+ migrationOptions: {
468
+ optInTransformResponse: true
469
+ },
437
470
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
438
471
  {
439
472
  protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
@@ -454,6 +487,9 @@ function leaveCollection(payload) {
454
487
  method: "DELETE",
455
488
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.LeaveCollection",
456
489
  packageName: PACKAGE_NAME,
490
+ migrationOptions: {
491
+ optInTransformResponse: true
492
+ },
457
493
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
458
494
  {
459
495
  protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
@@ -474,6 +510,9 @@ function listCollectionItems(payload) {
474
510
  method: "GET",
475
511
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionItems",
476
512
  packageName: PACKAGE_NAME,
513
+ migrationOptions: {
514
+ optInTransformResponse: true
515
+ },
477
516
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
478
517
  {
479
518
  protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
@@ -498,6 +537,70 @@ function listCollectionItems(payload) {
498
537
  return __listCollectionItems;
499
538
  }
500
539
 
540
+ // src/collections-v1-collection-media-collections.types.ts
541
+ var Type = /* @__PURE__ */ ((Type2) => {
542
+ Type2["Undefined"] = "Undefined";
543
+ Type2["External"] = "External";
544
+ Type2["Internal"] = "Internal";
545
+ return Type2;
546
+ })(Type || {});
547
+ var LinkRel = /* @__PURE__ */ ((LinkRel2) => {
548
+ LinkRel2["unknown_link_rel"] = "unknown_link_rel";
549
+ LinkRel2["nofollow"] = "nofollow";
550
+ LinkRel2["noopener"] = "noopener";
551
+ LinkRel2["noreferrer"] = "noreferrer";
552
+ LinkRel2["sponsored"] = "sponsored";
553
+ return LinkRel2;
554
+ })(LinkRel || {});
555
+ var DataType = /* @__PURE__ */ ((DataType2) => {
556
+ DataType2["Undefined"] = "Undefined";
557
+ DataType2["Photo"] = "Photo";
558
+ DataType2["Video"] = "Video";
559
+ DataType2["Text"] = "Text";
560
+ return DataType2;
561
+ })(DataType || {});
562
+ var Source = /* @__PURE__ */ ((Source2) => {
563
+ Source2["Undefined"] = "Undefined";
564
+ Source2["Youtube"] = "Youtube";
565
+ Source2["Vimeo"] = "Vimeo";
566
+ Source2["Custom"] = "Custom";
567
+ return Source2;
568
+ })(Source || {});
569
+ var MediaOwner = /* @__PURE__ */ ((MediaOwner2) => {
570
+ MediaOwner2["Undefined"] = "Undefined";
571
+ MediaOwner2["Wix"] = "Wix";
572
+ MediaOwner2["DeviantArt"] = "DeviantArt";
573
+ MediaOwner2["Custom"] = "Custom";
574
+ return MediaOwner2;
575
+ })(MediaOwner || {});
576
+ var PrivacySettings = /* @__PURE__ */ ((PrivacySettings2) => {
577
+ PrivacySettings2["Undefined"] = "Undefined";
578
+ PrivacySettings2["Public"] = "Public";
579
+ PrivacySettings2["Secret"] = "Secret";
580
+ return PrivacySettings2;
581
+ })(PrivacySettings || {});
582
+ var Status = /* @__PURE__ */ ((Status2) => {
583
+ Status2["UNKNOWN"] = "UNKNOWN";
584
+ Status2["HANDLED"] = "HANDLED";
585
+ Status2["NOTHING_TO_HANDLE"] = "NOTHING_TO_HANDLE";
586
+ return Status2;
587
+ })(Status || {});
588
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
589
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
590
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
591
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
592
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
593
+ WebhookIdentityType2["APP"] = "APP";
594
+ return WebhookIdentityType2;
595
+ })(WebhookIdentityType || {});
596
+ var MemberStatus = /* @__PURE__ */ ((MemberStatus2) => {
597
+ MemberStatus2["UNDEFINED"] = "UNDEFINED";
598
+ MemberStatus2["NOT_MEMBER"] = "NOT_MEMBER";
599
+ MemberStatus2["MEMBER"] = "MEMBER";
600
+ MemberStatus2["ADMIN"] = "ADMIN";
601
+ return MemberStatus2;
602
+ })(MemberStatus || {});
603
+
501
604
  // src/collections-v1-collection-media-collections.meta.ts
502
605
  function get2() {
503
606
  const payload = { mediaCollectionId: ":mediaCollectionId" };
@@ -737,6 +840,15 @@ function listCollectionItems2() {
737
840
  };
738
841
  }
739
842
  export {
843
+ DataType as DataTypeOriginal,
844
+ LinkRel as LinkRelOriginal,
845
+ MediaOwner as MediaOwnerOriginal,
846
+ MemberStatus as MemberStatusOriginal,
847
+ PrivacySettings as PrivacySettingsOriginal,
848
+ Source as SourceOriginal,
849
+ Status as StatusOriginal,
850
+ Type as TypeOriginal,
851
+ WebhookIdentityType as WebhookIdentityTypeOriginal,
740
852
  _delete2 as _delete,
741
853
  addItems2 as addItems,
742
854
  create2 as create,