@wix/auto_sdk_media-collections_media-collections 1.0.26 → 1.0.28

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 (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +39 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +18 -1
  5. package/build/cjs/index.typings.js +39 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +350 -1
  8. package/build/cjs/meta.js +121 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +39 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +18 -1
  14. package/build/es/index.typings.mjs +39 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +350 -1
  17. package/build/es/meta.mjs +112 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +39 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +18 -1
  23. package/build/internal/cjs/index.typings.js +39 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +350 -1
  26. package/build/internal/cjs/meta.js +121 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +39 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +18 -1
  32. package/build/internal/es/index.typings.mjs +39 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +350 -1
  35. package/build/internal/es/meta.mjs +112 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +4 -4
@@ -438,6 +438,302 @@ 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 AccountDetails {
595
+ /**
596
+ * ID of the account.
597
+ * @format GUID
598
+ */
599
+ accountId?: string | null;
600
+ /**
601
+ * ID of the parent account.
602
+ * @format GUID
603
+ */
604
+ parentAccountId?: string | null;
605
+ /**
606
+ * ID of the site, if applicable.
607
+ * @format GUID
608
+ */
609
+ siteId?: string | null;
610
+ }
611
+ interface CollectionEvent extends CollectionEventEventTypeOneOf {
612
+ /** Collection created */
613
+ collectionCreated?: CollectionCreated;
614
+ /** Items added to collection */
615
+ itemsAddedToCollection?: ItemsAddedToCollection;
616
+ /** Items removed from collection */
617
+ itemsRemovedFromCollection?: ItemsRemovedFromCollection;
618
+ /** Member joined to collection */
619
+ memberJoinedToCollection?: MemberJoinedToCollection;
620
+ /** Member left collection */
621
+ memberLeftCollection?: MemberLeftCollection;
622
+ }
623
+ /** @oneof */
624
+ interface CollectionEventEventTypeOneOf {
625
+ /** Collection created */
626
+ collectionCreated?: CollectionCreated;
627
+ /** Items added to collection */
628
+ itemsAddedToCollection?: ItemsAddedToCollection;
629
+ /** Items removed from collection */
630
+ itemsRemovedFromCollection?: ItemsRemovedFromCollection;
631
+ /** Member joined to collection */
632
+ memberJoinedToCollection?: MemberJoinedToCollection;
633
+ /** Member left collection */
634
+ memberLeftCollection?: MemberLeftCollection;
635
+ }
636
+ interface CollectionItemId {
637
+ /**
638
+ * Id of the gallery in ProGallery
639
+ * @format GUID
640
+ */
641
+ galleryId?: string;
642
+ /**
643
+ * Id of the item in ProGallery
644
+ * @format GUID
645
+ */
646
+ itemId?: string;
647
+ }
648
+ interface CollectionCreated {
649
+ /**
650
+ * Collection id
651
+ * @format GUID
652
+ */
653
+ id?: string;
654
+ /**
655
+ * Collection name
656
+ * @maxLength 100
657
+ */
658
+ name?: string;
659
+ /**
660
+ * Collection description
661
+ * @maxLength 500
662
+ */
663
+ description?: string | null;
664
+ /**
665
+ * Id of the member who created the collection
666
+ * @format GUID
667
+ */
668
+ creatorMemberId?: string;
669
+ /** When the collection was created */
670
+ createdDate?: Date | null;
671
+ /** Privacy settings */
672
+ privacySettings?: PrivacySettingsWithLiterals;
673
+ }
674
+ interface ItemsAddedToCollection {
675
+ /**
676
+ * Id of the collection
677
+ * @format GUID
678
+ */
679
+ collectionId?: string;
680
+ /**
681
+ * Id of the member who added items
682
+ * @format GUID
683
+ */
684
+ addedByMember?: string;
685
+ /** Ids of the items that were added */
686
+ collectionItemIds?: CollectionItemId[];
687
+ /** When the items were added */
688
+ addedDate?: Date | null;
689
+ }
690
+ interface ItemsRemovedFromCollection {
691
+ /**
692
+ * Id of the collection
693
+ * @format GUID
694
+ */
695
+ collectionId?: string;
696
+ /**
697
+ * Id of the member who removed items
698
+ * @format GUID
699
+ */
700
+ removedByMember?: string;
701
+ /**
702
+ * Ids of the items that were removed
703
+ * @format GUID
704
+ */
705
+ itemIds?: string[];
706
+ /** When the items were removed */
707
+ removedDate?: Date | null;
708
+ }
709
+ interface MemberJoinedToCollection {
710
+ /**
711
+ * Id of the collection
712
+ * @format GUID
713
+ */
714
+ collectionId?: string;
715
+ /**
716
+ * Id of the member who joined
717
+ * @format GUID
718
+ */
719
+ memberId?: string;
720
+ /** When the member was joined */
721
+ joinedDate?: Date | null;
722
+ }
723
+ interface MemberLeftCollection {
724
+ /**
725
+ * Id of the collection
726
+ * @format GUID
727
+ */
728
+ collectionId?: string;
729
+ /**
730
+ * Id of the member who left
731
+ * @format GUID
732
+ */
733
+ memberId?: string;
734
+ /** When the member left */
735
+ leftDate?: Date | null;
736
+ }
441
737
  interface GetMediaCollectionRequest {
442
738
  /**
443
739
  * Collection id
@@ -613,6 +909,17 @@ interface PartiallyUpdateMediaCollectionRequest {
613
909
  }
614
910
  interface PartiallyUpdateMediaCollectionResponse {
615
911
  }
912
+ interface UpdateCollectionLockRequest {
913
+ /**
914
+ * Collection to lock
915
+ * @format GUID
916
+ */
917
+ mediaCollectionId?: string;
918
+ /** Lock status */
919
+ locked?: boolean;
920
+ }
921
+ interface UpdateCollectionLockResponse {
922
+ }
616
923
  interface DeleteMediaCollectionRequest {
617
924
  /**
618
925
  * the collection to delete
@@ -670,6 +977,25 @@ interface RemoveItemsRequest {
670
977
  }
671
978
  interface RemoveItemsResponse {
672
979
  }
980
+ interface UpdateItemsRequest {
981
+ /**
982
+ * Collection to update items
983
+ * @format GUID
984
+ */
985
+ mediaCollectionId?: string;
986
+ items?: UpdateItem[];
987
+ }
988
+ interface UpdateItem {
989
+ /**
990
+ * Item to update
991
+ * @format GUID
992
+ */
993
+ itemId?: string;
994
+ /** New order index of the item */
995
+ orderIndex?: number;
996
+ }
997
+ interface UpdateItemsResponse {
998
+ }
673
999
  interface JoinToCollectionRequest {
674
1000
  /**
675
1001
  * Collection to join
@@ -679,6 +1005,20 @@ interface JoinToCollectionRequest {
679
1005
  }
680
1006
  interface JoinToCollectionResponse {
681
1007
  }
1008
+ interface RemoveMemberFromCollectionRequest {
1009
+ /**
1010
+ * Collection the member will be removed from being a member
1011
+ * @format GUID
1012
+ */
1013
+ mediaCollectionId?: string;
1014
+ /**
1015
+ * Member id to remove from the collection
1016
+ * @format GUID
1017
+ */
1018
+ memberId?: string;
1019
+ }
1020
+ interface RemoveMemberFromCollectionResponse {
1021
+ }
682
1022
  interface LeaveCollectionRequest {
683
1023
  /**
684
1024
  * Collection the member will be leaving
@@ -715,6 +1055,15 @@ interface CollectionItem {
715
1055
  /** Date the item was added to the collection */
716
1056
  addedDate?: Date | null;
717
1057
  }
1058
+ interface ListAllItemsBelongToCollectionRequest {
1059
+ }
1060
+ interface ListAllItemsBelongToCollectionResponse {
1061
+ /**
1062
+ * List of the item ids that belong to one or more collection
1063
+ * @format GUID
1064
+ */
1065
+ itemIds?: string[];
1066
+ }
718
1067
 
719
1068
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
720
1069
  getUrl: (context: any) => string;
@@ -763,4 +1112,4 @@ declare function listCollectionItems(): __PublicMethodMetaInfo<'GET', {
763
1112
  mediaCollectionId: string;
764
1113
  }, ListCollectionItemsRequest$1, ListCollectionItemsRequest, ListCollectionItemsResponse$1, ListCollectionItemsResponse>;
765
1114
 
766
- export { type __PublicMethodMetaInfo, _delete, addItems, create, get, getCollectionItem, joinToCollection, leaveCollection, list, listCollectionItems, listCollectionMembers, listCollectionsForItem, partiallyUpdate, removeItems };
1115
+ export { type AccountDetails as AccountDetailsOriginal, 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 };
@@ -20,6 +20,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ DataTypeOriginal: () => DataType,
24
+ LinkRelOriginal: () => LinkRel,
25
+ MediaOwnerOriginal: () => MediaOwner,
26
+ MemberStatusOriginal: () => MemberStatus,
27
+ PrivacySettingsOriginal: () => PrivacySettings,
28
+ SourceOriginal: () => Source,
29
+ StatusOriginal: () => Status,
30
+ TypeOriginal: () => Type,
31
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
32
  _delete: () => _delete2,
24
33
  addItems: () => addItems2,
25
34
  create: () => create2,
@@ -114,6 +123,9 @@ function get(payload) {
114
123
  method: "GET",
115
124
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.Get",
116
125
  packageName: PACKAGE_NAME,
126
+ migrationOptions: {
127
+ optInTransformResponse: true
128
+ },
117
129
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
118
130
  {
119
131
  protoPath: "/v1/mediacollections/{mediaCollectionId}",
@@ -167,6 +179,9 @@ function listCollectionsForItem(payload) {
167
179
  method: "GET",
168
180
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionsForItem",
169
181
  packageName: PACKAGE_NAME,
182
+ migrationOptions: {
183
+ optInTransformResponse: true
184
+ },
170
185
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
171
186
  {
172
187
  protoPath: "/v1/mediacollections/items/{itemId}/collections",
@@ -223,6 +238,9 @@ function getCollectionItem(payload) {
223
238
  method: "GET",
224
239
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.GetCollectionItem",
225
240
  packageName: PACKAGE_NAME,
241
+ migrationOptions: {
242
+ optInTransformResponse: true
243
+ },
226
244
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
227
245
  {
228
246
  protoPath: "/v1/mediacollections/{mediaCollectionId}/items/{itemId}",
@@ -262,6 +280,9 @@ function list(payload) {
262
280
  method: "GET",
263
281
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.List",
264
282
  packageName: PACKAGE_NAME,
283
+ migrationOptions: {
284
+ optInTransformResponse: true
285
+ },
265
286
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
266
287
  { protoPath: "/v1/mediacollections", data: payload, host }
267
288
  ),
@@ -321,6 +342,9 @@ function create(payload) {
321
342
  method: "POST",
322
343
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.Create",
323
344
  packageName: PACKAGE_NAME,
345
+ migrationOptions: {
346
+ optInTransformResponse: true
347
+ },
324
348
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
325
349
  { protoPath: "/v1/mediacollections", data: serializedData, host }
326
350
  ),
@@ -366,6 +390,9 @@ function partiallyUpdate(payload) {
366
390
  method: "PUT",
367
391
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.PartiallyUpdate",
368
392
  packageName: PACKAGE_NAME,
393
+ migrationOptions: {
394
+ optInTransformResponse: true
395
+ },
369
396
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
370
397
  {
371
398
  protoPath: "/v1/mediacollections/{mediaCollection.id}",
@@ -386,6 +413,9 @@ function _delete(payload) {
386
413
  method: "DELETE",
387
414
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService._delete",
388
415
  packageName: PACKAGE_NAME,
416
+ migrationOptions: {
417
+ optInTransformResponse: true
418
+ },
389
419
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
390
420
  {
391
421
  protoPath: "/v1/mediacollections/{mediaCollectionId}",
@@ -406,6 +436,9 @@ function listCollectionMembers(payload) {
406
436
  method: "GET",
407
437
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionMembers",
408
438
  packageName: PACKAGE_NAME,
439
+ migrationOptions: {
440
+ optInTransformResponse: true
441
+ },
409
442
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
410
443
  {
411
444
  protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
@@ -432,6 +465,9 @@ function addItems(payload) {
432
465
  method: "POST",
433
466
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.AddItems",
434
467
  packageName: PACKAGE_NAME,
468
+ migrationOptions: {
469
+ optInTransformResponse: true
470
+ },
435
471
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
436
472
  {
437
473
  protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
@@ -452,6 +488,9 @@ function removeItems(payload) {
452
488
  method: "DELETE",
453
489
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.RemoveItems",
454
490
  packageName: PACKAGE_NAME,
491
+ migrationOptions: {
492
+ optInTransformResponse: true
493
+ },
455
494
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
456
495
  {
457
496
  protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
@@ -472,6 +511,9 @@ function joinToCollection(payload) {
472
511
  method: "POST",
473
512
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.JoinToCollection",
474
513
  packageName: PACKAGE_NAME,
514
+ migrationOptions: {
515
+ optInTransformResponse: true
516
+ },
475
517
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
476
518
  {
477
519
  protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
@@ -492,6 +534,9 @@ function leaveCollection(payload) {
492
534
  method: "DELETE",
493
535
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.LeaveCollection",
494
536
  packageName: PACKAGE_NAME,
537
+ migrationOptions: {
538
+ optInTransformResponse: true
539
+ },
495
540
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
496
541
  {
497
542
  protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
@@ -512,6 +557,9 @@ function listCollectionItems(payload) {
512
557
  method: "GET",
513
558
  methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionItems",
514
559
  packageName: PACKAGE_NAME,
560
+ migrationOptions: {
561
+ optInTransformResponse: true
562
+ },
515
563
  url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
516
564
  {
517
565
  protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
@@ -536,6 +584,70 @@ function listCollectionItems(payload) {
536
584
  return __listCollectionItems;
537
585
  }
538
586
 
587
+ // src/collections-v1-collection-media-collections.types.ts
588
+ var Type = /* @__PURE__ */ ((Type2) => {
589
+ Type2["Undefined"] = "Undefined";
590
+ Type2["External"] = "External";
591
+ Type2["Internal"] = "Internal";
592
+ return Type2;
593
+ })(Type || {});
594
+ var LinkRel = /* @__PURE__ */ ((LinkRel2) => {
595
+ LinkRel2["unknown_link_rel"] = "unknown_link_rel";
596
+ LinkRel2["nofollow"] = "nofollow";
597
+ LinkRel2["noopener"] = "noopener";
598
+ LinkRel2["noreferrer"] = "noreferrer";
599
+ LinkRel2["sponsored"] = "sponsored";
600
+ return LinkRel2;
601
+ })(LinkRel || {});
602
+ var DataType = /* @__PURE__ */ ((DataType2) => {
603
+ DataType2["Undefined"] = "Undefined";
604
+ DataType2["Photo"] = "Photo";
605
+ DataType2["Video"] = "Video";
606
+ DataType2["Text"] = "Text";
607
+ return DataType2;
608
+ })(DataType || {});
609
+ var Source = /* @__PURE__ */ ((Source2) => {
610
+ Source2["Undefined"] = "Undefined";
611
+ Source2["Youtube"] = "Youtube";
612
+ Source2["Vimeo"] = "Vimeo";
613
+ Source2["Custom"] = "Custom";
614
+ return Source2;
615
+ })(Source || {});
616
+ var MediaOwner = /* @__PURE__ */ ((MediaOwner2) => {
617
+ MediaOwner2["Undefined"] = "Undefined";
618
+ MediaOwner2["Wix"] = "Wix";
619
+ MediaOwner2["DeviantArt"] = "DeviantArt";
620
+ MediaOwner2["Custom"] = "Custom";
621
+ return MediaOwner2;
622
+ })(MediaOwner || {});
623
+ var PrivacySettings = /* @__PURE__ */ ((PrivacySettings2) => {
624
+ PrivacySettings2["Undefined"] = "Undefined";
625
+ PrivacySettings2["Public"] = "Public";
626
+ PrivacySettings2["Secret"] = "Secret";
627
+ return PrivacySettings2;
628
+ })(PrivacySettings || {});
629
+ var Status = /* @__PURE__ */ ((Status2) => {
630
+ Status2["UNKNOWN"] = "UNKNOWN";
631
+ Status2["HANDLED"] = "HANDLED";
632
+ Status2["NOTHING_TO_HANDLE"] = "NOTHING_TO_HANDLE";
633
+ return Status2;
634
+ })(Status || {});
635
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
636
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
637
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
638
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
639
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
640
+ WebhookIdentityType2["APP"] = "APP";
641
+ return WebhookIdentityType2;
642
+ })(WebhookIdentityType || {});
643
+ var MemberStatus = /* @__PURE__ */ ((MemberStatus2) => {
644
+ MemberStatus2["UNDEFINED"] = "UNDEFINED";
645
+ MemberStatus2["NOT_MEMBER"] = "NOT_MEMBER";
646
+ MemberStatus2["MEMBER"] = "MEMBER";
647
+ MemberStatus2["ADMIN"] = "ADMIN";
648
+ return MemberStatus2;
649
+ })(MemberStatus || {});
650
+
539
651
  // src/collections-v1-collection-media-collections.meta.ts
540
652
  function get2() {
541
653
  const payload = { mediaCollectionId: ":mediaCollectionId" };
@@ -776,6 +888,15 @@ function listCollectionItems2() {
776
888
  }
777
889
  // Annotate the CommonJS export names for ESM import in node:
778
890
  0 && (module.exports = {
891
+ DataTypeOriginal,
892
+ LinkRelOriginal,
893
+ MediaOwnerOriginal,
894
+ MemberStatusOriginal,
895
+ PrivacySettingsOriginal,
896
+ SourceOriginal,
897
+ StatusOriginal,
898
+ TypeOriginal,
899
+ WebhookIdentityTypeOriginal,
779
900
  _delete,
780
901
  addItems,
781
902
  create,