@wix/auto_sdk_media-collections_media-collections 1.0.21 → 1.0.23

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 (48) hide show
  1. package/build/cjs/index.d.ts +120 -0
  2. package/build/{internal → cjs}/index.js +3 -1
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/{collections-v1-collection-media-collections.universal-CUKnIZcW.d.mts → cjs/index.typings.d.ts} +126 -1
  5. package/build/cjs/index.typings.js +1003 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/{internal → cjs}/meta.d.ts +2 -1
  8. package/build/es/index.d.mts +120 -0
  9. package/build/{internal → es}/index.mjs +3 -1
  10. package/build/es/index.mjs.map +1 -0
  11. package/build/{collections-v1-collection-media-collections.universal-CUKnIZcW.d.ts → es/index.typings.d.mts} +126 -1
  12. package/build/es/index.typings.mjs +958 -0
  13. package/build/es/index.typings.mjs.map +1 -0
  14. package/build/{internal → es}/meta.d.mts +2 -1
  15. package/build/es/package.json +3 -0
  16. package/build/internal/cjs/index.d.ts +120 -0
  17. package/build/{index.js → internal/cjs/index.js} +3 -1
  18. package/build/internal/cjs/index.js.map +1 -0
  19. package/build/internal/{collections-v1-collection-media-collections.universal-CUKnIZcW.d.mts → cjs/index.typings.d.ts} +126 -1
  20. package/build/internal/cjs/index.typings.js +1003 -0
  21. package/build/internal/cjs/index.typings.js.map +1 -0
  22. package/build/{meta.d.ts → internal/cjs/meta.d.ts} +2 -1
  23. package/build/internal/cjs/meta.js.map +1 -0
  24. package/build/internal/es/index.d.mts +120 -0
  25. package/build/{index.mjs → internal/es/index.mjs} +3 -1
  26. package/build/internal/es/index.mjs.map +1 -0
  27. package/build/internal/{collections-v1-collection-media-collections.universal-CUKnIZcW.d.ts → es/index.typings.d.mts} +126 -1
  28. package/build/internal/es/index.typings.mjs +958 -0
  29. package/build/internal/es/index.typings.mjs.map +1 -0
  30. package/build/{meta.d.mts → internal/es/meta.d.mts} +2 -1
  31. package/build/internal/es/meta.mjs.map +1 -0
  32. package/package.json +13 -12
  33. package/build/index.d.mts +0 -120
  34. package/build/index.d.ts +0 -120
  35. package/build/index.js.map +0 -1
  36. package/build/index.mjs.map +0 -1
  37. package/build/internal/index.d.mts +0 -120
  38. package/build/internal/index.d.ts +0 -120
  39. package/build/internal/index.js.map +0 -1
  40. package/build/internal/index.mjs.map +0 -1
  41. package/build/meta.js.map +0 -1
  42. package/build/meta.mjs.map +0 -1
  43. /package/build/{internal → cjs}/meta.js +0 -0
  44. /package/build/{internal → cjs}/meta.js.map +0 -0
  45. /package/build/{internal → es}/meta.mjs +0 -0
  46. /package/build/{internal → es}/meta.mjs.map +0 -0
  47. /package/build/{meta.js → internal/cjs/meta.js} +0 -0
  48. /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
@@ -0,0 +1,120 @@
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { GetOptions, MediaCollection, ListCollectionsForItemOptions, ListCollectionsForItemResponse, GetCollectionItemIdentifiers, GetCollectionItemResponse, ListOptions, ListMediaCollectionsResponse, CreateOptions, CreateMediaCollectionResponse, PartiallyUpdateMediaCollection, PartiallyUpdateOptions, ListCollectionMembersOptions, ListCollectionMembersResponse, AddItemsOptions, RemoveItemsOptions, ListCollectionItemsResponse, CollectionCreatedEnvelope } from './index.typings.js';
3
+ export { ActionEvent, AddItem, AddItemsRequest, AddItemsResponse, AddressLink, AnchorLink, BaseEventMetadata, CollectionAndStatus, CollectionCreated, CollectionEvent, CollectionEventEventTypeOneOf, CollectionItem, CollectionItemId, CollectionMember, CreateMediaCollectionRequest, DataType, DataTypeWithLiterals, DeleteMediaCollectionRequest, DeleteMediaCollectionResponse, DocumentLink, DomainEvent, DomainEventBodyOneOf, DynamicPageLink, EmailLink, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalLink, FilterBy, FilterByRoles, GetCollectionItemRequest, GetMediaCollectionRequest, GetMediaCollectionResponse, IdentificationData, IdentificationDataIdOneOf, ItemInCollection, ItemsAddedToCollection, ItemsRemovedFromCollection, JoinToCollectionRequest, JoinToCollectionResponse, LeaveCollectionRequest, LeaveCollectionResponse, Link, LinkRel, LinkRelWithLiterals, ListAllItemsBelongToCollectionRequest, ListAllItemsBelongToCollectionResponse, ListCollectionItemsRequest, ListCollectionMembersRequest, ListCollectionsForItemRequest, ListMediaCollectionsRequest, MediaCollectionItem, MediaCollectionItemMetadataOneOf, MediaOwner, MediaOwnerWithLiterals, MemberAndStatus, MemberJoinedToCollection, MemberLeftCollection, MemberStatus, MemberStatusWithLiterals, MessageEnvelope, PageLink, PartiallyUpdateMediaCollectionRequest, PartiallyUpdateMediaCollectionResponse, PermanentSiteDeletedResponse, PhoneLink, PhotoMetadata, Point, PrivacySettings, PrivacySettingsWithLiterals, RemoveItemsRequest, RemoveItemsResponse, RemoveMemberFromCollectionRequest, RemoveMemberFromCollectionResponse, Resolution, RestoreInfo, Source, SourceWithLiterals, Status, StatusWithLiterals, TextMetadata, Thumbnail, TpaPageLink, Type, TypeWithLiterals, UnsharpMasking, UpdateCollectionLockRequest, UpdateCollectionLockResponse, UpdateItem, UpdateItemsRequest, UpdateItemsResponse, VideoMetadata, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WhatsAppLink, WixLink, WixLinkLinkOneOf } from './index.typings.js';
4
+
5
+ declare function get$1(httpClient: HttpClient): GetSignature;
6
+ interface GetSignature {
7
+ /**
8
+ * Get a specific collection by its id
9
+ * @param - Collection id
10
+ * @returns The collection
11
+ */
12
+ (mediaCollectionId: string, options?: GetOptions): Promise<NonNullablePaths<MediaCollection, `_id` | `name` | `membersCount` | `creator.memberId` | `items` | `items.${number}.photoMetadata.focalPoint.x` | `items.${number}.photoMetadata.focalPoint.y` | `items.${number}.videoMetadata.source` | `items.${number}.link.type` | `items.${number}.dataType` | `items.${number}.mediaOwner` | `items.${number}.galleryId` | `itemsCount` | `privacySettings` | `locked`, 6>>;
13
+ }
14
+ declare function listCollectionsForItem$1(httpClient: HttpClient): ListCollectionsForItemSignature;
15
+ interface ListCollectionsForItemSignature {
16
+ /**
17
+ * List all collections that the member has a role in them
18
+ * @param - Item id
19
+ */
20
+ (itemId: string, options?: ListCollectionsForItemOptions): Promise<NonNullablePaths<ListCollectionsForItemResponse, `itemInCollections` | `itemInCollections.${number}.mediaCollectionId` | `itemInCollections.${number}.name` | `itemInCollections.${number}.isItemInCollection` | `itemInCollections.${number}.isLocked` | `itemInCollections.${number}.role` | `itemInCollections.${number}.firstItem.videoMetadata.source` | `itemInCollections.${number}.firstItem.link.type` | `itemInCollections.${number}.firstItem.dataType` | `itemInCollections.${number}.firstItem.mediaOwner` | `itemInCollections.${number}.firstItem.galleryId`, 6>>;
21
+ }
22
+ declare function getCollectionItem$1(httpClient: HttpClient): GetCollectionItemSignature;
23
+ interface GetCollectionItemSignature {
24
+ /**
25
+ * Get a specific item from a collection
26
+ */
27
+ (identifiers: NonNullablePaths<GetCollectionItemIdentifiers, `itemId` | `mediaCollectionId`, 2>): Promise<NonNullablePaths<GetCollectionItemResponse, `item.photoMetadata.focalPoint.x` | `item.photoMetadata.focalPoint.y` | `item.videoMetadata.source` | `item.videoMetadata.posters` | `item.videoMetadata.resolutions` | `item.link.type` | `item.link.wixLinkData.external.url` | `item.link.wixLinkData.page.pageId` | `item.link.wixLinkData.page.rel` | `item.link.wixLinkData.anchor.anchorName` | `item.link.wixLinkData.anchor.anchorDataId` | `item.link.wixLinkData.anchor.pageId` | `item.link.wixLinkData.anchor.rel` | `item.link.wixLinkData.dynamicPage.routerId` | `item.link.wixLinkData.dynamicPage.innerRoute` | `item.link.wixLinkData.dynamicPage.rel` | `item.link.wixLinkData.document.docId` | `item.link.wixLinkData.document.indexable` | `item.link.wixLinkData.email.recipient` | `item.link.wixLinkData.phone.phoneNumber` | `item.link.wixLinkData.address.address` | `item.link.wixLinkData.whatsApp.phoneNumber` | `item.link.wixLinkData.tpaPage.itemTypeIdentifier` | `item.link.wixLinkData.tpaPage.itemId` | `item.link.wixLinkData.tpaPage.pageId` | `item.link.wixLinkData.tpaPage.appDefinitionId` | `item.link.wixLinkData.tpaPage.path` | `item.link.wixLinkData.tpaPage.rel` | `item.dataType` | `item.mediaOwner` | `item.tags` | `item.galleryId`, 6>>;
28
+ }
29
+ declare function list$1(httpClient: HttpClient): ListSignature;
30
+ interface ListSignature {
31
+ /**
32
+ * List all collections that the item belongs to
33
+ */
34
+ (options?: ListOptions): Promise<NonNullablePaths<ListMediaCollectionsResponse, `collectionsStatus` | `collectionsStatus.${number}.mediaCollection._id` | `collectionsStatus.${number}.mediaCollection.name` | `collectionsStatus.${number}.mediaCollection.membersCount` | `collectionsStatus.${number}.mediaCollection.creator.memberId` | `collectionsStatus.${number}.mediaCollection.itemsCount` | `collectionsStatus.${number}.mediaCollection.privacySettings` | `collectionsStatus.${number}.mediaCollection.locked` | `collectionsStatus.${number}.memberStatus`, 6>>;
35
+ }
36
+ declare function create$1(httpClient: HttpClient): CreateSignature;
37
+ interface CreateSignature {
38
+ /**
39
+ * Create a new collection
40
+ * @param - Name of the collection
41
+ */
42
+ (name: string, options?: CreateOptions): Promise<NonNullablePaths<CreateMediaCollectionResponse, `mediaCollectionId`, 2>>;
43
+ }
44
+ declare function partiallyUpdate$1(httpClient: HttpClient): PartiallyUpdateSignature;
45
+ interface PartiallyUpdateSignature {
46
+ /**
47
+ * Update a collection
48
+ * @param - Collection id
49
+ */
50
+ (_id: string, mediaCollection: PartiallyUpdateMediaCollection, options: NonNullablePaths<PartiallyUpdateOptions, `fieldMask`, 2>): Promise<void>;
51
+ }
52
+ declare function _delete$1(httpClient: HttpClient): _deleteSignature;
53
+ interface _deleteSignature {
54
+ /**
55
+ * Delete a collection
56
+ * @param - the collection to delete
57
+ */
58
+ (mediaCollectionId: string): Promise<void>;
59
+ }
60
+ declare function listCollectionMembers$1(httpClient: HttpClient): ListCollectionMembersSignature;
61
+ interface ListCollectionMembersSignature {
62
+ /**
63
+ * List all members of a collection
64
+ * @param - the collection to get its members
65
+ */
66
+ (mediaCollectionId: string, options?: ListCollectionMembersOptions): Promise<NonNullablePaths<ListCollectionMembersResponse, `membersRoles` | `membersRoles.${number}.member.memberId` | `membersRoles.${number}.memberStatus`, 5>>;
67
+ }
68
+ declare function addItems$1(httpClient: HttpClient): AddItemsSignature;
69
+ interface AddItemsSignature {
70
+ /**
71
+ * Add items to a collection
72
+ * @param - Collection to add items
73
+ */
74
+ (mediaCollectionId: string, options?: AddItemsOptions): Promise<void>;
75
+ }
76
+ declare function removeItems$1(httpClient: HttpClient): RemoveItemsSignature;
77
+ interface RemoveItemsSignature {
78
+ /**
79
+ * Remove items from a collection
80
+ * @param - Collection to remove items from
81
+ */
82
+ (mediaCollectionId: string, options?: RemoveItemsOptions): Promise<void>;
83
+ }
84
+ declare function joinToCollection$1(httpClient: HttpClient): JoinToCollectionSignature;
85
+ interface JoinToCollectionSignature {
86
+ /**
87
+ * Join to a collection
88
+ * @param - Collection to join
89
+ */
90
+ (mediaCollectionId: string): Promise<void>;
91
+ }
92
+ declare function leaveCollection$1(httpClient: HttpClient): LeaveCollectionSignature;
93
+ interface LeaveCollectionSignature {
94
+ /** @param - Collection the member will be leaving */
95
+ (mediaCollectionId: string): Promise<void>;
96
+ }
97
+ declare function listCollectionItems$1(httpClient: HttpClient): ListCollectionItemsSignature;
98
+ interface ListCollectionItemsSignature {
99
+ /** @param - Collection to get its items */
100
+ (mediaCollectionId: string): Promise<NonNullablePaths<ListCollectionItemsResponse, `collectionItems` | `collectionItems.${number}.galleryId` | `collectionItems.${number}.itemId`, 4>>;
101
+ }
102
+ declare const onCollectionCreated$1: EventDefinition<CollectionCreatedEnvelope, "wix.collections.collection_created">;
103
+
104
+ declare const get: MaybeContext<BuildRESTFunction<typeof get$1> & typeof get$1>;
105
+ declare const listCollectionsForItem: MaybeContext<BuildRESTFunction<typeof listCollectionsForItem$1> & typeof listCollectionsForItem$1>;
106
+ declare const getCollectionItem: MaybeContext<BuildRESTFunction<typeof getCollectionItem$1> & typeof getCollectionItem$1>;
107
+ declare const list: MaybeContext<BuildRESTFunction<typeof list$1> & typeof list$1>;
108
+ declare const create: MaybeContext<BuildRESTFunction<typeof create$1> & typeof create$1>;
109
+ declare const partiallyUpdate: MaybeContext<BuildRESTFunction<typeof partiallyUpdate$1> & typeof partiallyUpdate$1>;
110
+ declare const _delete: MaybeContext<BuildRESTFunction<typeof _delete$1> & typeof _delete$1>;
111
+ declare const listCollectionMembers: MaybeContext<BuildRESTFunction<typeof listCollectionMembers$1> & typeof listCollectionMembers$1>;
112
+ declare const addItems: MaybeContext<BuildRESTFunction<typeof addItems$1> & typeof addItems$1>;
113
+ declare const removeItems: MaybeContext<BuildRESTFunction<typeof removeItems$1> & typeof removeItems$1>;
114
+ declare const joinToCollection: MaybeContext<BuildRESTFunction<typeof joinToCollection$1> & typeof joinToCollection$1>;
115
+ declare const leaveCollection: MaybeContext<BuildRESTFunction<typeof leaveCollection$1> & typeof leaveCollection$1>;
116
+ declare const listCollectionItems: MaybeContext<BuildRESTFunction<typeof listCollectionItems$1> & typeof listCollectionItems$1>;
117
+ /** */
118
+ declare const onCollectionCreated: BuildEventDefinition<typeof onCollectionCreated$1> & typeof onCollectionCreated$1;
119
+
120
+ export { AddItemsOptions, CollectionCreatedEnvelope, CreateMediaCollectionResponse, CreateOptions, GetCollectionItemIdentifiers, GetCollectionItemResponse, GetOptions, ListCollectionItemsResponse, ListCollectionMembersOptions, ListCollectionMembersResponse, ListCollectionsForItemOptions, ListCollectionsForItemResponse, ListMediaCollectionsResponse, ListOptions, MediaCollection, PartiallyUpdateMediaCollection, PartiallyUpdateOptions, RemoveItemsOptions, _delete, addItems, create, get, getCollectionItem, joinToCollection, leaveCollection, list, listCollectionItems, listCollectionMembers, listCollectionsForItem, onCollectionCreated, partiallyUpdate, removeItems };
@@ -1131,7 +1131,9 @@ var removeItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(re
1131
1131
  var joinToCollection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(joinToCollection3);
1132
1132
  var leaveCollection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(leaveCollection3);
1133
1133
  var listCollectionItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listCollectionItems3);
1134
- var onCollectionCreated2 = (0, import_event_definition_modules.createEventModule)(onCollectionCreated);
1134
+ var onCollectionCreated2 = (0, import_event_definition_modules.createEventModule)(
1135
+ onCollectionCreated
1136
+ );
1135
1137
  // Annotate the CommonJS export names for ESM import in node:
1136
1138
  0 && (module.exports = {
1137
1139
  DataType,
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../index.ts","../../src/collections-v1-collection-media-collections.public.ts","../../src/collections-v1-collection-media-collections.universal.ts","../../src/collections-v1-collection-media-collections.http.ts","../../src/collections-v1-collection-media-collections.context.ts"],"sourcesContent":["export * from './src/collections-v1-collection-media-collections.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n AddItemsOptions,\n CollectionCreatedEnvelope,\n CreateMediaCollectionResponse,\n CreateOptions,\n GetCollectionItemIdentifiers,\n GetCollectionItemResponse,\n GetOptions,\n ListCollectionItemsResponse,\n ListCollectionMembersOptions,\n ListCollectionMembersResponse,\n ListCollectionsForItemOptions,\n ListCollectionsForItemResponse,\n ListMediaCollectionsResponse,\n ListOptions,\n MediaCollection,\n PartiallyUpdateMediaCollection,\n PartiallyUpdateOptions,\n RemoveItemsOptions,\n addItems as universalAddItems,\n create as universalCreate,\n get as universalGet,\n getCollectionItem as universalGetCollectionItem,\n joinToCollection as universalJoinToCollection,\n leaveCollection as universalLeaveCollection,\n list as universalList,\n listCollectionItems as universalListCollectionItems,\n listCollectionMembers as universalListCollectionMembers,\n listCollectionsForItem as universalListCollectionsForItem,\n partiallyUpdate as universalPartiallyUpdate,\n removeItems as universalRemoveItems,\n _delete as universal_delete,\n} from './collections-v1-collection-media-collections.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/media-collections' };\n\nexport function get(httpClient: HttpClient): GetSignature {\n return (mediaCollectionId: string, options?: GetOptions) =>\n universalGet(\n mediaCollectionId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSignature {\n /**\n * Get a specific collection by its id\n * @param - Collection id\n * @returns The collection\n */\n (mediaCollectionId: string, options?: GetOptions): Promise<\n NonNullablePaths<\n MediaCollection,\n | `_id`\n | `name`\n | `membersCount`\n | `creator.memberId`\n | `items`\n | `items.${number}.photoMetadata.focalPoint.x`\n | `items.${number}.photoMetadata.focalPoint.y`\n | `items.${number}.videoMetadata.source`\n | `items.${number}.link.type`\n | `items.${number}.dataType`\n | `items.${number}.mediaOwner`\n | `items.${number}.galleryId`\n | `itemsCount`\n | `privacySettings`\n | `locked`,\n 6\n >\n >;\n}\n\nexport function listCollectionsForItem(\n httpClient: HttpClient\n): ListCollectionsForItemSignature {\n return (itemId: string, options?: ListCollectionsForItemOptions) =>\n universalListCollectionsForItem(\n itemId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListCollectionsForItemSignature {\n /**\n * List all collections that the member has a role in them\n * @param - Item id\n */\n (itemId: string, options?: ListCollectionsForItemOptions): Promise<\n NonNullablePaths<\n ListCollectionsForItemResponse,\n | `itemInCollections`\n | `itemInCollections.${number}.mediaCollectionId`\n | `itemInCollections.${number}.name`\n | `itemInCollections.${number}.isItemInCollection`\n | `itemInCollections.${number}.isLocked`\n | `itemInCollections.${number}.role`\n | `itemInCollections.${number}.firstItem.videoMetadata.source`\n | `itemInCollections.${number}.firstItem.link.type`\n | `itemInCollections.${number}.firstItem.dataType`\n | `itemInCollections.${number}.firstItem.mediaOwner`\n | `itemInCollections.${number}.firstItem.galleryId`,\n 6\n >\n >;\n}\n\nexport function getCollectionItem(\n httpClient: HttpClient\n): GetCollectionItemSignature {\n return (\n identifiers: NonNullablePaths<\n GetCollectionItemIdentifiers,\n `itemId` | `mediaCollectionId`,\n 2\n >\n ) =>\n universalGetCollectionItem(\n identifiers,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCollectionItemSignature {\n /**\n * Get a specific item from a collection\n */\n (\n identifiers: NonNullablePaths<\n GetCollectionItemIdentifiers,\n `itemId` | `mediaCollectionId`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n GetCollectionItemResponse,\n | `item.photoMetadata.focalPoint.x`\n | `item.photoMetadata.focalPoint.y`\n | `item.videoMetadata.source`\n | `item.videoMetadata.posters`\n | `item.videoMetadata.resolutions`\n | `item.link.type`\n | `item.link.wixLinkData.external.url`\n | `item.link.wixLinkData.page.pageId`\n | `item.link.wixLinkData.page.rel`\n | `item.link.wixLinkData.anchor.anchorName`\n | `item.link.wixLinkData.anchor.anchorDataId`\n | `item.link.wixLinkData.anchor.pageId`\n | `item.link.wixLinkData.anchor.rel`\n | `item.link.wixLinkData.dynamicPage.routerId`\n | `item.link.wixLinkData.dynamicPage.innerRoute`\n | `item.link.wixLinkData.dynamicPage.rel`\n | `item.link.wixLinkData.document.docId`\n | `item.link.wixLinkData.document.indexable`\n | `item.link.wixLinkData.email.recipient`\n | `item.link.wixLinkData.phone.phoneNumber`\n | `item.link.wixLinkData.address.address`\n | `item.link.wixLinkData.whatsApp.phoneNumber`\n | `item.link.wixLinkData.tpaPage.itemTypeIdentifier`\n | `item.link.wixLinkData.tpaPage.itemId`\n | `item.link.wixLinkData.tpaPage.pageId`\n | `item.link.wixLinkData.tpaPage.appDefinitionId`\n | `item.link.wixLinkData.tpaPage.path`\n | `item.link.wixLinkData.tpaPage.rel`\n | `item.dataType`\n | `item.mediaOwner`\n | `item.tags`\n | `item.galleryId`,\n 6\n >\n >;\n}\n\nexport function list(httpClient: HttpClient): ListSignature {\n return (options?: ListOptions) =>\n universalList(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListSignature {\n /**\n * List all collections that the item belongs to\n */\n (options?: ListOptions): Promise<\n NonNullablePaths<\n ListMediaCollectionsResponse,\n | `collectionsStatus`\n | `collectionsStatus.${number}.mediaCollection._id`\n | `collectionsStatus.${number}.mediaCollection.name`\n | `collectionsStatus.${number}.mediaCollection.membersCount`\n | `collectionsStatus.${number}.mediaCollection.creator.memberId`\n | `collectionsStatus.${number}.mediaCollection.itemsCount`\n | `collectionsStatus.${number}.mediaCollection.privacySettings`\n | `collectionsStatus.${number}.mediaCollection.locked`\n | `collectionsStatus.${number}.memberStatus`,\n 6\n >\n >;\n}\n\nexport function create(httpClient: HttpClient): CreateSignature {\n return (name: string, options?: CreateOptions) =>\n universalCreate(\n name,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateSignature {\n /**\n * Create a new collection\n * @param - Name of the collection\n */\n (name: string, options?: CreateOptions): Promise<\n NonNullablePaths<CreateMediaCollectionResponse, `mediaCollectionId`, 2>\n >;\n}\n\nexport function partiallyUpdate(\n httpClient: HttpClient\n): PartiallyUpdateSignature {\n return (\n _id: string,\n mediaCollection: PartiallyUpdateMediaCollection,\n options: NonNullablePaths<PartiallyUpdateOptions, `fieldMask`, 2>\n ) =>\n universalPartiallyUpdate(\n _id,\n mediaCollection,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface PartiallyUpdateSignature {\n /**\n * Update a collection\n * @param - Collection id\n */\n (\n _id: string,\n mediaCollection: PartiallyUpdateMediaCollection,\n options: NonNullablePaths<PartiallyUpdateOptions, `fieldMask`, 2>\n ): Promise<void>;\n}\n\nexport function _delete(httpClient: HttpClient): _deleteSignature {\n return (mediaCollectionId: string) =>\n universal_delete(\n mediaCollectionId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface _deleteSignature {\n /**\n * Delete a collection\n * @param - the collection to delete\n */\n (mediaCollectionId: string): Promise<void>;\n}\n\nexport function listCollectionMembers(\n httpClient: HttpClient\n): ListCollectionMembersSignature {\n return (mediaCollectionId: string, options?: ListCollectionMembersOptions) =>\n universalListCollectionMembers(\n mediaCollectionId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListCollectionMembersSignature {\n /**\n * List all members of a collection\n * @param - the collection to get its members\n */\n (mediaCollectionId: string, options?: ListCollectionMembersOptions): Promise<\n NonNullablePaths<\n ListCollectionMembersResponse,\n | `membersRoles`\n | `membersRoles.${number}.member.memberId`\n | `membersRoles.${number}.memberStatus`,\n 5\n >\n >;\n}\n\nexport function addItems(httpClient: HttpClient): AddItemsSignature {\n return (mediaCollectionId: string, options?: AddItemsOptions) =>\n universalAddItems(\n mediaCollectionId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AddItemsSignature {\n /**\n * Add items to a collection\n * @param - Collection to add items\n */\n (mediaCollectionId: string, options?: AddItemsOptions): Promise<void>;\n}\n\nexport function removeItems(httpClient: HttpClient): RemoveItemsSignature {\n return (mediaCollectionId: string, options?: RemoveItemsOptions) =>\n universalRemoveItems(\n mediaCollectionId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveItemsSignature {\n /**\n * Remove items from a collection\n * @param - Collection to remove items from\n */\n (mediaCollectionId: string, options?: RemoveItemsOptions): Promise<void>;\n}\n\nexport function joinToCollection(\n httpClient: HttpClient\n): JoinToCollectionSignature {\n return (mediaCollectionId: string) =>\n universalJoinToCollection(\n mediaCollectionId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface JoinToCollectionSignature {\n /**\n * Join to a collection\n * @param - Collection to join\n */\n (mediaCollectionId: string): Promise<void>;\n}\n\nexport function leaveCollection(\n httpClient: HttpClient\n): LeaveCollectionSignature {\n return (mediaCollectionId: string) =>\n universalLeaveCollection(\n mediaCollectionId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface LeaveCollectionSignature {\n /** @param - Collection the member will be leaving */\n (mediaCollectionId: string): Promise<void>;\n}\n\nexport function listCollectionItems(\n httpClient: HttpClient\n): ListCollectionItemsSignature {\n return (mediaCollectionId: string) =>\n universalListCollectionItems(\n mediaCollectionId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListCollectionItemsSignature {\n /** @param - Collection to get its items */\n (mediaCollectionId: string): Promise<\n NonNullablePaths<\n ListCollectionItemsResponse,\n | `collectionItems`\n | `collectionItems.${number}.galleryId`\n | `collectionItems.${number}.itemId`,\n 4\n >\n >;\n}\n\nexport const onCollectionCreated = EventDefinition(\n 'wix.collections.collection_created',\n true,\n (event: CollectionCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.items.addedDate' },\n { path: 'entity.items.updatedDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'entity.items.sortOrder' },\n { path: 'entity.items.photoMetadata.focalPoint.x' },\n { path: 'entity.items.photoMetadata.focalPoint.y' },\n { path: 'entity.items.videoMetadata.posters.focalPoint.x' },\n { path: 'entity.items.videoMetadata.posters.focalPoint.y' },\n { path: 'entity.items.photoMetadata.unsharpMasking.amount' },\n { path: 'entity.items.photoMetadata.unsharpMasking.radius' },\n { path: 'entity.items.photoMetadata.unsharpMasking.threshold' },\n ],\n },\n ])\n )\n)<CollectionCreatedEnvelope>();\n\nexport {\n ActionEvent,\n AddItem,\n AddItemsOptions,\n AddItemsRequest,\n AddItemsResponse,\n AddressLink,\n AnchorLink,\n BaseEventMetadata,\n CollectionAndStatus,\n CollectionCreated,\n CollectionCreatedEnvelope,\n CollectionEvent,\n CollectionEventEventTypeOneOf,\n CollectionItem,\n CollectionItemId,\n CollectionMember,\n CreateMediaCollectionRequest,\n CreateMediaCollectionResponse,\n CreateOptions,\n DataType,\n DeleteMediaCollectionRequest,\n DeleteMediaCollectionResponse,\n DocumentLink,\n DomainEvent,\n DomainEventBodyOneOf,\n DynamicPageLink,\n EmailLink,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExternalLink,\n FilterBy,\n FilterByRoles,\n GetCollectionItemIdentifiers,\n GetCollectionItemRequest,\n GetCollectionItemResponse,\n GetMediaCollectionRequest,\n GetMediaCollectionResponse,\n GetOptions,\n IdentificationData,\n IdentificationDataIdOneOf,\n ItemInCollection,\n ItemsAddedToCollection,\n ItemsRemovedFromCollection,\n JoinToCollectionRequest,\n JoinToCollectionResponse,\n LeaveCollectionRequest,\n LeaveCollectionResponse,\n Link,\n LinkRel,\n ListAllItemsBelongToCollectionRequest,\n ListAllItemsBelongToCollectionResponse,\n ListCollectionItemsRequest,\n ListCollectionItemsResponse,\n ListCollectionMembersOptions,\n ListCollectionMembersRequest,\n ListCollectionMembersResponse,\n ListCollectionsForItemOptions,\n ListCollectionsForItemRequest,\n ListCollectionsForItemResponse,\n ListMediaCollectionsRequest,\n ListMediaCollectionsResponse,\n ListOptions,\n MediaCollection,\n MediaCollectionItem,\n MediaCollectionItemMetadataOneOf,\n MediaOwner,\n MemberAndStatus,\n MemberJoinedToCollection,\n MemberLeftCollection,\n MemberStatus,\n MessageEnvelope,\n PageLink,\n PartiallyUpdateMediaCollection,\n PartiallyUpdateMediaCollectionRequest,\n PartiallyUpdateMediaCollectionResponse,\n PartiallyUpdateOptions,\n PermanentSiteDeletedResponse,\n PhoneLink,\n PhotoMetadata,\n Point,\n PrivacySettings,\n RemoveItemsOptions,\n RemoveItemsRequest,\n RemoveItemsResponse,\n RemoveMemberFromCollectionRequest,\n RemoveMemberFromCollectionResponse,\n Resolution,\n RestoreInfo,\n Source,\n Status,\n TextMetadata,\n Thumbnail,\n TpaPageLink,\n Type,\n UnsharpMasking,\n UpdateCollectionLockRequest,\n UpdateCollectionLockResponse,\n UpdateItem,\n UpdateItemsRequest,\n UpdateItemsResponse,\n VideoMetadata,\n WebhookIdentityType,\n WhatsAppLink,\n WixLink,\n WixLinkLinkOneOf,\n} from './collections-v1-collection-media-collections.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixCollectionsV1Collection from './collections-v1-collection-media-collections.http.js';\n\nexport interface MediaCollection {\n /**\n * Collection id\n * @readonly\n * @format GUID\n */\n _id?: string;\n /**\n * Collection name\n * @maxLength 100\n */\n name?: string;\n /** @maxLength 500 */\n description?: string | null;\n /**\n * total count of MediaCollection members\n * @readonly\n */\n membersCount?: number;\n /**\n * the member who created the MediaCollection\n * @readonly\n */\n creator?: CollectionMember;\n /**\n * when MediaCollection was created\n * @readonly\n */\n _createdDate?: Date | null;\n /** Items in the collection */\n items?: MediaCollectionItem[];\n /**\n * total count of items\n * @readonly\n */\n itemsCount?: number;\n /** Privacy settings */\n privacySettings?: PrivacySettingsWithLiterals;\n /** If true, the collection is locked and should not be updated */\n locked?: boolean;\n}\n\nexport interface CollectionMember {\n /**\n * Member id\n * @readonly\n * @format GUID\n */\n memberId?: string;\n /**\n * Member nickname\n * @maxLength 100\n */\n nickname?: string | null;\n /**\n * Member slug\n * @maxLength 100\n */\n slug?: string | null;\n /**\n * Member photo url\n * @maxLength 200\n */\n photoUrl?: string | null;\n}\n\nexport interface MediaCollectionItem extends MediaCollectionItemMetadataOneOf {\n /** Photo metadata */\n photoMetadata?: PhotoMetadata;\n /** Video metadata */\n videoMetadata?: VideoMetadata;\n /** Text metadata */\n textMetadata?: TextMetadata;\n /**\n * item id\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /** item url for photos or video */\n mediaUrl?: string | null;\n /** if not present in an update it mean the item will be added as currentTimestamp */\n sortOrder?: number | null;\n /** item's original filename */\n name?: string | null;\n /** item's title */\n title?: string | null;\n /** item's description */\n description?: string | null;\n /** a link from the item to something else */\n link?: Link;\n /** item type: text, photo or video */\n dataType?: DataTypeWithLiterals;\n /**\n * When the item was added to the collection\n * @readonly\n */\n addedDate?: Date | null;\n /**\n * When the item was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** The owner of the media */\n mediaOwner?: MediaOwnerWithLiterals;\n /** Tags for media */\n tags?: string[];\n /** Token for media */\n token?: string | null;\n /** Gallery id */\n galleryId?: string;\n}\n\n/** @oneof */\nexport interface MediaCollectionItemMetadataOneOf {\n /** Photo metadata */\n photoMetadata?: PhotoMetadata;\n /** Video metadata */\n videoMetadata?: VideoMetadata;\n /** Text metadata */\n textMetadata?: TextMetadata;\n}\n\nexport interface Link {\n type?: TypeWithLiterals;\n /** Link text */\n text?: string | null;\n /** Link url */\n url?: string | null;\n /** Link target */\n target?: string | null;\n /** Data on how to construct the link from wix editor inputs */\n wixLinkData?: WixLink;\n}\n\nexport enum Type {\n /** Undefined */\n Undefined = 'Undefined',\n /** external link */\n External = 'External',\n /** link to wix pages */\n Internal = 'Internal',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'Undefined' | 'External' | 'Internal';\n\n/** The link object generated by panels in the editor and used by applications in Wix */\nexport interface WixLink extends WixLinkLinkOneOf {\n /** External link type */\n external?: ExternalLink;\n /** Page link type */\n page?: PageLink;\n /** Anchor link type */\n anchor?: AnchorLink;\n /** Dynamic page link type */\n dynamicPage?: DynamicPageLink;\n /** Document link type */\n document?: DocumentLink;\n /** Email link type */\n email?: EmailLink;\n /** Phone link type */\n phone?: PhoneLink;\n /** Address link type */\n address?: AddressLink;\n /** WhatsApp link type */\n whatsApp?: WhatsAppLink;\n /** TPA link type */\n tpaPage?: TpaPageLink;\n}\n\n/** @oneof */\nexport interface WixLinkLinkOneOf {\n /** External link type */\n external?: ExternalLink;\n /** Page link type */\n page?: PageLink;\n /** Anchor link type */\n anchor?: AnchorLink;\n /** Dynamic page link type */\n dynamicPage?: DynamicPageLink;\n /** Document link type */\n document?: DocumentLink;\n /** Email link type */\n email?: EmailLink;\n /** Phone link type */\n phone?: PhoneLink;\n /** Address link type */\n address?: AddressLink;\n /** WhatsApp link type */\n whatsApp?: WhatsAppLink;\n /** TPA link type */\n tpaPage?: TpaPageLink;\n}\n\nexport interface ExternalLink {\n /**\n * The url of the page\n * @format WEB_URL\n */\n url?: string;\n /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */\n target?: string | null;\n}\n\n/**\n * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.\n * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel\n * Following are the accepted 'rel' types by Wix applications.\n */\nexport enum LinkRel {\n /** default (not implemented) */\n unknown_link_rel = 'unknown_link_rel',\n /** Indicates that the current document's original author or publisher does not endorse the referenced document. */\n nofollow = 'nofollow',\n /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */\n noopener = 'noopener',\n /** No Referer header will be included. Additionally, has the same effect as noopener. */\n noreferrer = 'noreferrer',\n /** Indicates a link that resulted from advertisements or paid placements. */\n sponsored = 'sponsored',\n}\n\n/** @enumType */\nexport type LinkRelWithLiterals =\n | LinkRel\n | 'unknown_link_rel'\n | 'nofollow'\n | 'noopener'\n | 'noreferrer'\n | 'sponsored';\n\nexport interface PageLink {\n /** The page id we want from the site */\n pageId?: string;\n /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */\n target?: string | null;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport interface AnchorLink {\n /** The name of the anchor */\n anchorName?: string;\n /** The data id (from the JSON page) of the anchor that should be used */\n anchorDataId?: string;\n /** The page id we want from the site */\n pageId?: string;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport interface DynamicPageLink {\n /** The router that handles this link */\n routerId?: string;\n /** The path data we'd like */\n innerRoute?: string;\n /** The data id (from the JSON page) of the anchor that should be used */\n anchorDataId?: string | null;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport interface DocumentLink {\n /** The id of the document */\n docId?: string;\n /** The name of the document for download purposes */\n name?: string | null;\n /** If this document can be indexed by scrapers, default is false */\n indexable?: boolean;\n}\n\nexport interface EmailLink {\n /**\n * The email we will be sending a message to\n * @format EMAIL\n */\n recipient?: string;\n /** The subject of the email */\n subject?: string | null;\n /** The body of the email */\n body?: string | null;\n}\n\nexport interface PhoneLink {\n /**\n * The phone number we want to link to\n * @format PHONE\n * @maxLength 100\n */\n phoneNumber?: string;\n}\n\nexport interface AddressLink {\n /** An address that we can link to */\n address?: string;\n}\n\nexport interface WhatsAppLink {\n /**\n * The whatsApp phone number we want to connect with\n * @format PHONE\n */\n phoneNumber?: string;\n}\n\n/** Link to a TPA page */\nexport interface TpaPageLink {\n /** Type of item (e.g. 'wix.stores.sub_pages.product') */\n itemTypeIdentifier?: string;\n /** Id of linked item */\n itemId?: string;\n /** Id of linked page */\n pageId?: string;\n /** Id of app being linked to (AppDefId) */\n appDefinitionId?: string;\n /** The relativepath of linked page */\n path?: string;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport enum DataType {\n Undefined = 'Undefined',\n Photo = 'Photo',\n Video = 'Video',\n Text = 'Text',\n}\n\n/** @enumType */\nexport type DataTypeWithLiterals =\n | DataType\n | 'Undefined'\n | 'Photo'\n | 'Video'\n | 'Text';\n\nexport interface PhotoMetadata {\n /** Photo width */\n width?: number | null;\n /** Photo height */\n height?: number | null;\n /** The focal point of the image */\n focalPoint?: Point;\n /** aka Exchangeable image file format */\n exif?: Record<string, any> | null;\n /**\n * the image quality\n * @min 30\n * @max 100\n */\n quality?: number | null;\n /** photo sharpening */\n unsharpMasking?: UnsharpMasking;\n /** id in WixMedia */\n mediaId?: string | null;\n}\n\nexport interface Point {\n /** x coordinate */\n x?: number;\n /** y coordinate */\n y?: number;\n}\n\nexport interface UnsharpMasking {\n /**\n * number controls the amount of contrast that is added at the edges.\n * @max 5\n */\n amount?: number | null;\n /** number in pixels. The size of the edges to be enhanced */\n radius?: number | null;\n /**\n * The minimal level of brightness change that will be sharpened\n * @max 1\n */\n threshold?: number | null;\n}\n\nexport interface VideoMetadata {\n /** Video width */\n width?: number | null;\n /** Video height */\n height?: number | null;\n /** Video duration in milliseconds */\n duration?: string | null;\n /** Video source */\n source?: SourceWithLiterals;\n /** Video posters */\n posters?: Thumbnail[];\n /** Video resolutions */\n resolutions?: Resolution[];\n /** External source's representation for this video's id */\n externalId?: string | null;\n}\n\nexport enum Source {\n /** Undefined */\n Undefined = 'Undefined',\n /** Youtube */\n Youtube = 'Youtube',\n /** Vimeo */\n Vimeo = 'Vimeo',\n /** Custom */\n Custom = 'Custom',\n}\n\n/** @enumType */\nexport type SourceWithLiterals =\n | Source\n | 'Undefined'\n | 'Youtube'\n | 'Vimeo'\n | 'Custom';\n\nexport interface Thumbnail {\n /** Thumbnail url */\n url?: string | null;\n /** Thumbnail width */\n width?: number | null;\n /** Thumbnail height */\n height?: number | null;\n /** Is this the default thumbnail */\n default?: boolean | null;\n /** The focal point of the image */\n focalPoint?: Point;\n}\n\nexport interface Resolution {\n /** eg 720p, 1024p etc */\n videoMode?: string | null;\n /** Video width */\n width?: number | null;\n /** Video height */\n height?: number | null;\n /** Map representing the file format (eg mp4) to the url. In case of an external source the format can be youtube, vimeo, etc. */\n urls?: Record<string, string>;\n}\n\nexport interface TextMetadata {\n /** text data */\n html?: string | null;\n /** css style info for container */\n style?: Record<string, any> | null;\n /** populated via progallery app only (ck editor format) */\n editorHtml?: string | null;\n /** the wix editor's font Id used to display the text data */\n editorFontId?: string | null;\n}\n\nexport enum MediaOwner {\n /** Undefined */\n Undefined = 'Undefined',\n /** Wix */\n Wix = 'Wix',\n /** DeviantArt */\n DeviantArt = 'DeviantArt',\n /** Custom */\n Custom = 'Custom',\n}\n\n/** @enumType */\nexport type MediaOwnerWithLiterals =\n | MediaOwner\n | 'Undefined'\n | 'Wix'\n | 'DeviantArt'\n | 'Custom';\n\nexport enum PrivacySettings {\n /** Undefined */\n Undefined = 'Undefined',\n /** Public */\n Public = 'Public',\n /** Secret */\n Secret = 'Secret',\n}\n\n/** @enumType */\nexport type PrivacySettingsWithLiterals =\n | PrivacySettings\n | 'Undefined'\n | 'Public'\n | 'Secret';\n\nexport interface PermanentSiteDeletedResponse {\n /** @format GUID */\n requestId?: string;\n uniqueServiceIdentifier?: string;\n status?: StatusWithLiterals;\n /** @readonly */\n _createdDate?: Date | null;\n}\n\nexport enum Status {\n UNKNOWN = 'UNKNOWN',\n HANDLED = 'HANDLED',\n NOTHING_TO_HANDLE = 'NOTHING_TO_HANDLE',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN'\n | 'HANDLED'\n | 'NOTHING_TO_HANDLE';\n\nexport interface Empty {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface CollectionEvent extends CollectionEventEventTypeOneOf {\n /** Collection created */\n collectionCreated?: CollectionCreated;\n /** Items added to collection */\n itemsAddedToCollection?: ItemsAddedToCollection;\n /** Items removed from collection */\n itemsRemovedFromCollection?: ItemsRemovedFromCollection;\n /** Member joined to collection */\n memberJoinedToCollection?: MemberJoinedToCollection;\n /** Member left collection */\n memberLeftCollection?: MemberLeftCollection;\n}\n\n/** @oneof */\nexport interface CollectionEventEventTypeOneOf {\n /** Collection created */\n collectionCreated?: CollectionCreated;\n /** Items added to collection */\n itemsAddedToCollection?: ItemsAddedToCollection;\n /** Items removed from collection */\n itemsRemovedFromCollection?: ItemsRemovedFromCollection;\n /** Member joined to collection */\n memberJoinedToCollection?: MemberJoinedToCollection;\n /** Member left collection */\n memberLeftCollection?: MemberLeftCollection;\n}\n\nexport interface CollectionItemId {\n /**\n * Id of the gallery in ProGallery\n * @format GUID\n */\n galleryId?: string;\n /**\n * Id of the item in ProGallery\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface CollectionCreated {\n /**\n * Collection id\n * @format GUID\n */\n _id?: string;\n /**\n * Collection name\n * @maxLength 100\n */\n name?: string;\n /**\n * Collection description\n * @maxLength 500\n */\n description?: string | null;\n /**\n * Id of the member who created the collection\n * @format GUID\n */\n creatorMemberId?: string;\n /** When the collection was created */\n _createdDate?: Date | null;\n /** Privacy settings */\n privacySettings?: PrivacySettingsWithLiterals;\n}\n\nexport interface ItemsAddedToCollection {\n /**\n * Id of the collection\n * @format GUID\n */\n collectionId?: string;\n /**\n * Id of the member who added items\n * @format GUID\n */\n addedByMember?: string;\n /** Ids of the items that were added */\n collectionItemIds?: CollectionItemId[];\n /** When the items were added */\n addedDate?: Date | null;\n}\n\nexport interface ItemsRemovedFromCollection {\n /**\n * Id of the collection\n * @format GUID\n */\n collectionId?: string;\n /**\n * Id of the member who removed items\n * @format GUID\n */\n removedByMember?: string;\n /**\n * Ids of the items that were removed\n * @format GUID\n */\n itemIds?: string[];\n /** When the items were removed */\n removedDate?: Date | null;\n}\n\nexport interface MemberJoinedToCollection {\n /**\n * Id of the collection\n * @format GUID\n */\n collectionId?: string;\n /**\n * Id of the member who joined\n * @format GUID\n */\n memberId?: string;\n /** When the member was joined */\n joinedDate?: Date | null;\n}\n\nexport interface MemberLeftCollection {\n /**\n * Id of the collection\n * @format GUID\n */\n collectionId?: string;\n /**\n * Id of the member who left\n * @format GUID\n */\n memberId?: string;\n /** When the member left */\n leftDate?: Date | null;\n}\n\nexport interface GetMediaCollectionRequest {\n /**\n * Collection id\n * @format GUID\n */\n mediaCollectionId: string;\n /** number of items to skip in the current sort order, default is 0 */\n offset?: number | null;\n /**\n * The amount of items per response, default is 50\n * @min 1\n * @max 200\n */\n limit?: number | null;\n}\n\nexport interface GetMediaCollectionResponse {\n /** The collection */\n mediaCollection?: MediaCollection;\n /** The member's status in the collection */\n memberStatus?: MemberStatusWithLiterals;\n}\n\nexport enum MemberStatus {\n /** Undefined */\n UNDEFINED = 'UNDEFINED',\n /** Not a member */\n NOT_MEMBER = 'NOT_MEMBER',\n /** Member */\n MEMBER = 'MEMBER',\n /** Admin */\n ADMIN = 'ADMIN',\n}\n\n/** @enumType */\nexport type MemberStatusWithLiterals =\n | MemberStatus\n | 'UNDEFINED'\n | 'NOT_MEMBER'\n | 'MEMBER'\n | 'ADMIN';\n\nexport interface ListCollectionsForItemRequest {\n /**\n * Gallery id\n * @format GUID\n */\n galleryId?: string;\n /**\n * Item id\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface ListCollectionsForItemResponse {\n /** The collections that the item belongs to */\n itemInCollections?: ItemInCollection[];\n}\n\nexport interface ItemInCollection {\n /**\n * Collection id\n * @format GUID\n */\n mediaCollectionId?: string;\n /**\n * Collection name\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /** Is the item in the collection */\n isItemInCollection?: boolean;\n /** Is the collection locked */\n isLocked?: boolean;\n /** Member's role in the collection */\n role?: MemberStatusWithLiterals;\n /** Total count of items in the collection */\n totalItemsCount?: number | null;\n /** The first item in the collection */\n firstItem?: MediaCollectionItem;\n /**\n * The creator's nickname\n * @maxLength 100\n */\n creatorNickname?: string | null;\n}\n\nexport interface GetCollectionItemRequest {\n /**\n * Collection id\n * @format GUID\n */\n mediaCollectionId: string;\n /**\n * Item id\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface GetCollectionItemResponse {\n /** The item */\n item?: MediaCollectionItem;\n}\n\nexport interface ListMediaCollectionsRequest {\n /**\n * the amount of collections per response, default is 1000\n * @min 1\n * @max 2000\n */\n limit?: number | null;\n /** number of collections to skip in the current sort order, default is 0 */\n offset?: number | null;\n /**\n * If empty, no filter will be applied\n * Else, will return only collections that the member has those roles on them. Currently supporting: MEMBER, ADMIN.\n */\n filterByRoles?: FilterByRoles;\n}\n\nexport interface FilterByRoles {\n roles?: MemberStatusWithLiterals[];\n}\n\nexport interface ListMediaCollectionsResponse {\n /** The collections and the member's role in them */\n collectionsStatus?: CollectionAndStatus[];\n /**\n * total count of MediaCollection members\n * @readonly\n */\n totalCollectionsCount?: number | null;\n}\n\nexport interface CollectionAndStatus {\n /** The Media Collection */\n mediaCollection?: MediaCollection;\n /** The member's status in the collection */\n memberStatus?: MemberStatusWithLiterals;\n}\n\nexport interface CreateMediaCollectionRequest {\n /**\n * Name of the collection\n * @minLength 1\n * @maxLength 100\n */\n name: string;\n /**\n * Description of the collection\n * @maxLength 500\n */\n description?: string | null;\n /** Privacy settings of the collection */\n privacySettings?: PrivacySettingsWithLiterals;\n /** Items to add to the collection */\n items?: AddItem[];\n}\n\nexport interface AddItem {\n /**\n * Gallery id\n * @format GUID\n */\n galleryId?: string;\n /**\n * Item id\n * @format GUID\n */\n itemId?: string;\n /** Order index of the item */\n orderIndex?: number | null;\n}\n\nexport interface CreateMediaCollectionResponse {\n /**\n * id of the collection that was created\n * @format GUID\n */\n mediaCollectionId?: string;\n}\n\nexport interface PartiallyUpdateMediaCollectionRequest {\n /** Collection to update */\n mediaCollection: MediaCollection;\n /**\n * fields to update\n * supported fields: name, description, privacy_settings\n */\n fieldMask: string[];\n}\n\nexport interface PartiallyUpdateMediaCollectionResponse {}\n\nexport interface UpdateCollectionLockRequest {\n /**\n * Collection to lock\n * @format GUID\n */\n mediaCollectionId?: string;\n /** Lock status */\n locked?: boolean;\n}\n\nexport interface UpdateCollectionLockResponse {}\n\nexport interface DeleteMediaCollectionRequest {\n /**\n * the collection to delete\n * @format GUID\n */\n mediaCollectionId: string;\n}\n\nexport interface DeleteMediaCollectionResponse {}\n\nexport interface ListCollectionMembersRequest {\n /**\n * the collection to get its members\n * @format GUID\n */\n mediaCollectionId: string;\n /** Filter the members by their role in the collection */\n filterBy?: FilterBy;\n}\n\nexport interface FilterBy {\n /** Member's status in the collection */\n memberStatus?: MemberStatusWithLiterals;\n}\n\nexport interface ListCollectionMembersResponse {\n /** The collection's members and their roles */\n membersRoles?: MemberAndStatus[];\n}\n\nexport interface MemberAndStatus {\n /** The member */\n member?: CollectionMember;\n /** The member's role in the collection */\n memberStatus?: MemberStatusWithLiterals;\n}\n\nexport interface AddItemsRequest {\n /**\n * Collection to add items\n * @format GUID\n */\n mediaCollectionId: string;\n /** Items to add */\n items?: AddItem[];\n}\n\nexport interface AddItemsResponse {}\n\nexport interface RemoveItemsRequest {\n /**\n * Collection to remove items from\n * @format GUID\n */\n mediaCollectionId: string;\n /**\n * Items to remove\n * @format GUID\n */\n itemsIds?: string[];\n}\n\nexport interface RemoveItemsResponse {}\n\nexport interface UpdateItemsRequest {\n /**\n * Collection to update items\n * @format GUID\n */\n mediaCollectionId?: string;\n items?: UpdateItem[];\n}\n\nexport interface UpdateItem {\n /**\n * Item to update\n * @format GUID\n */\n itemId?: string;\n /** New order index of the item */\n orderIndex?: number;\n}\n\nexport interface UpdateItemsResponse {}\n\nexport interface JoinToCollectionRequest {\n /**\n * Collection to join\n * @format GUID\n */\n mediaCollectionId: string;\n}\n\nexport interface JoinToCollectionResponse {}\n\nexport interface RemoveMemberFromCollectionRequest {\n /**\n * Collection the member will be removed from being a member\n * @format GUID\n */\n mediaCollectionId?: string;\n /**\n * Member id to remove from the collection\n * @format GUID\n */\n memberId?: string;\n}\n\nexport interface RemoveMemberFromCollectionResponse {}\n\nexport interface LeaveCollectionRequest {\n /**\n * Collection the member will be leaving\n * @format GUID\n */\n mediaCollectionId: string;\n}\n\nexport interface LeaveCollectionResponse {}\n\nexport interface ListCollectionItemsRequest {\n /**\n * Collection to get its items\n * @format GUID\n */\n mediaCollectionId: string;\n}\n\nexport interface ListCollectionItemsResponse {\n /** The collection's items */\n collectionItems?: CollectionItem[];\n}\n\nexport interface CollectionItem {\n /**\n * Gallery id\n * @format GUID\n */\n galleryId?: string;\n /**\n * Item id\n * @format GUID\n */\n itemId?: string;\n /** Order index of the item */\n orderIndex?: number | null;\n /** Date the item was added to the collection */\n addedDate?: Date | null;\n}\n\nexport interface ListAllItemsBelongToCollectionRequest {}\n\nexport interface ListAllItemsBelongToCollectionResponse {\n /**\n * List of the item ids that belong to one or more collection\n * @format GUID\n */\n itemIds?: string[];\n}\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface CollectionCreatedEnvelope {\n entity: MediaCollection;\n metadata: EventMetadata;\n}\n\n/** @webhook\n * @eventType wix.collections.collection_created\n * @serviceIdentifier com.wixpress.exposure.mediacollections.MediaCollectionsService\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onCollectionCreated(\n handler: (event: CollectionCreatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Get a specific collection by its id\n * @param mediaCollectionId - Collection id\n * @public\n * @documentationMaturity preview\n * @requiredField mediaCollectionId\n * @returns The collection\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.Get\n */\nexport async function get(\n mediaCollectionId: string,\n options?: GetOptions\n): Promise<\n NonNullablePaths<\n MediaCollection,\n | `_id`\n | `name`\n | `membersCount`\n | `creator.memberId`\n | `items`\n | `items.${number}.photoMetadata.focalPoint.x`\n | `items.${number}.photoMetadata.focalPoint.y`\n | `items.${number}.videoMetadata.source`\n | `items.${number}.link.type`\n | `items.${number}.dataType`\n | `items.${number}.mediaOwner`\n | `items.${number}.galleryId`\n | `itemsCount`\n | `privacySettings`\n | `locked`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollectionId: mediaCollectionId,\n offset: options?.offset,\n limit: options?.limit,\n });\n\n const reqOpts = ambassadorWixCollectionsV1Collection.get(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.mediaCollection!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n mediaCollectionId: '$[0]',\n offset: '$[1].offset',\n limit: '$[1].limit',\n },\n singleArgumentUnchanged: false,\n },\n ['mediaCollectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetOptions {\n /** number of items to skip in the current sort order, default is 0 */\n offset?: number | null;\n /**\n * The amount of items per response, default is 50\n * @min 1\n * @max 200\n */\n limit?: number | null;\n}\n\n/**\n * List all collections that the member has a role in them\n * @param itemId - Item id\n * @public\n * @documentationMaturity preview\n * @requiredField itemId\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionsForItem\n */\nexport async function listCollectionsForItem(\n itemId: string,\n options?: ListCollectionsForItemOptions\n): Promise<\n NonNullablePaths<\n ListCollectionsForItemResponse,\n | `itemInCollections`\n | `itemInCollections.${number}.mediaCollectionId`\n | `itemInCollections.${number}.name`\n | `itemInCollections.${number}.isItemInCollection`\n | `itemInCollections.${number}.isLocked`\n | `itemInCollections.${number}.role`\n | `itemInCollections.${number}.firstItem.videoMetadata.source`\n | `itemInCollections.${number}.firstItem.link.type`\n | `itemInCollections.${number}.firstItem.dataType`\n | `itemInCollections.${number}.firstItem.mediaOwner`\n | `itemInCollections.${number}.firstItem.galleryId`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n itemId: itemId,\n galleryId: options?.galleryId,\n });\n\n const reqOpts =\n ambassadorWixCollectionsV1Collection.listCollectionsForItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n itemId: '$[0]',\n galleryId: '$[1].galleryId',\n },\n singleArgumentUnchanged: false,\n },\n ['itemId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListCollectionsForItemOptions {\n /**\n * Gallery id\n * @format GUID\n */\n galleryId?: string;\n}\n\n/**\n * Get a specific item from a collection\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.itemId\n * @requiredField identifiers.mediaCollectionId\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.GetCollectionItem\n */\nexport async function getCollectionItem(\n identifiers: NonNullablePaths<\n GetCollectionItemIdentifiers,\n `itemId` | `mediaCollectionId`,\n 2\n >\n): Promise<\n NonNullablePaths<\n GetCollectionItemResponse,\n | `item.photoMetadata.focalPoint.x`\n | `item.photoMetadata.focalPoint.y`\n | `item.videoMetadata.source`\n | `item.videoMetadata.posters`\n | `item.videoMetadata.resolutions`\n | `item.link.type`\n | `item.link.wixLinkData.external.url`\n | `item.link.wixLinkData.page.pageId`\n | `item.link.wixLinkData.page.rel`\n | `item.link.wixLinkData.anchor.anchorName`\n | `item.link.wixLinkData.anchor.anchorDataId`\n | `item.link.wixLinkData.anchor.pageId`\n | `item.link.wixLinkData.anchor.rel`\n | `item.link.wixLinkData.dynamicPage.routerId`\n | `item.link.wixLinkData.dynamicPage.innerRoute`\n | `item.link.wixLinkData.dynamicPage.rel`\n | `item.link.wixLinkData.document.docId`\n | `item.link.wixLinkData.document.indexable`\n | `item.link.wixLinkData.email.recipient`\n | `item.link.wixLinkData.phone.phoneNumber`\n | `item.link.wixLinkData.address.address`\n | `item.link.wixLinkData.whatsApp.phoneNumber`\n | `item.link.wixLinkData.tpaPage.itemTypeIdentifier`\n | `item.link.wixLinkData.tpaPage.itemId`\n | `item.link.wixLinkData.tpaPage.pageId`\n | `item.link.wixLinkData.tpaPage.appDefinitionId`\n | `item.link.wixLinkData.tpaPage.path`\n | `item.link.wixLinkData.tpaPage.rel`\n | `item.dataType`\n | `item.mediaOwner`\n | `item.tags`\n | `item.galleryId`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollectionId: identifiers?.mediaCollectionId,\n itemId: identifiers?.itemId,\n });\n\n const reqOpts =\n ambassadorWixCollectionsV1Collection.getCollectionItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n mediaCollectionId: '$[0].mediaCollectionId',\n itemId: '$[0].itemId',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetCollectionItemIdentifiers {\n /**\n * Collection id\n * @format GUID\n */\n mediaCollectionId: string;\n /**\n * Item id\n * @format GUID\n */\n itemId: string;\n}\n\n/**\n * List all collections that the item belongs to\n * @public\n * @documentationMaturity preview\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.List\n */\nexport async function list(\n options?: ListOptions\n): Promise<\n NonNullablePaths<\n ListMediaCollectionsResponse,\n | `collectionsStatus`\n | `collectionsStatus.${number}.mediaCollection._id`\n | `collectionsStatus.${number}.mediaCollection.name`\n | `collectionsStatus.${number}.mediaCollection.membersCount`\n | `collectionsStatus.${number}.mediaCollection.creator.memberId`\n | `collectionsStatus.${number}.mediaCollection.itemsCount`\n | `collectionsStatus.${number}.mediaCollection.privacySettings`\n | `collectionsStatus.${number}.mediaCollection.locked`\n | `collectionsStatus.${number}.memberStatus`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n limit: options?.limit,\n offset: options?.offset,\n filterByRoles: options?.filterByRoles,\n });\n\n const reqOpts = ambassadorWixCollectionsV1Collection.list(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n limit: '$[0].limit',\n offset: '$[0].offset',\n filterByRoles: '$[0].filterByRoles',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListOptions {\n /**\n * the amount of collections per response, default is 1000\n * @min 1\n * @max 2000\n */\n limit?: number | null;\n /** number of collections to skip in the current sort order, default is 0 */\n offset?: number | null;\n /**\n * If empty, no filter will be applied\n * Else, will return only collections that the member has those roles on them. Currently supporting: MEMBER, ADMIN.\n */\n filterByRoles?: FilterByRoles;\n}\n\n/**\n * Create a new collection\n * @param name - Name of the collection\n * @public\n * @documentationMaturity preview\n * @requiredField name\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.Create\n */\nexport async function create(\n name: string,\n options?: CreateOptions\n): Promise<\n NonNullablePaths<CreateMediaCollectionResponse, `mediaCollectionId`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n name: name,\n description: options?.description,\n privacySettings: options?.privacySettings,\n items: options?.items,\n });\n\n const reqOpts = ambassadorWixCollectionsV1Collection.create(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n name: '$[0]',\n description: '$[1].description',\n privacySettings: '$[1].privacySettings',\n items: '$[1].items',\n },\n singleArgumentUnchanged: false,\n },\n ['name', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateOptions {\n /**\n * Description of the collection\n * @maxLength 500\n */\n description?: string | null;\n /** Privacy settings of the collection */\n privacySettings?: PrivacySettingsWithLiterals;\n /** Items to add to the collection */\n items?: AddItem[];\n}\n\n/**\n * Update a collection\n * @param _id - Collection id\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField mediaCollection\n * @requiredField options\n * @requiredField options.fieldMask\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.PartiallyUpdate\n */\nexport async function partiallyUpdate(\n _id: string,\n mediaCollection: PartiallyUpdateMediaCollection,\n options: NonNullablePaths<PartiallyUpdateOptions, `fieldMask`, 2>\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollection: { ...mediaCollection, id: _id },\n fieldMask: options?.fieldMask,\n });\n\n const reqOpts = ambassadorWixCollectionsV1Collection.partiallyUpdate(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { mediaCollection: '$[1]' },\n explicitPathsToArguments: {\n 'mediaCollection.id': '$[0]',\n fieldMask: '$[2].fieldMask',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'mediaCollection', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface PartiallyUpdateMediaCollection {\n /**\n * Collection id\n * @readonly\n * @format GUID\n */\n _id?: string;\n /**\n * Collection name\n * @maxLength 100\n */\n name?: string;\n /** @maxLength 500 */\n description?: string | null;\n /**\n * total count of MediaCollection members\n * @readonly\n */\n membersCount?: number;\n /**\n * the member who created the MediaCollection\n * @readonly\n */\n creator?: CollectionMember;\n /**\n * when MediaCollection was created\n * @readonly\n */\n _createdDate?: Date | null;\n /** Items in the collection */\n items?: MediaCollectionItem[];\n /**\n * total count of items\n * @readonly\n */\n itemsCount?: number;\n /** Privacy settings */\n privacySettings?: PrivacySettingsWithLiterals;\n /** If true, the collection is locked and should not be updated */\n locked?: boolean;\n}\n\nexport interface PartiallyUpdateOptions {\n /**\n * fields to update\n * supported fields: name, description, privacy_settings\n */\n fieldMask: string[];\n}\n\n/**\n * Delete a collection\n * @param mediaCollectionId - the collection to delete\n * @public\n * @documentationMaturity preview\n * @requiredField mediaCollectionId\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService._delete\n */\nexport async function _delete(mediaCollectionId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollectionId: mediaCollectionId,\n });\n\n const reqOpts = ambassadorWixCollectionsV1Collection._delete(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { mediaCollectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['mediaCollectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * List all members of a collection\n * @param mediaCollectionId - the collection to get its members\n * @public\n * @documentationMaturity preview\n * @requiredField mediaCollectionId\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionMembers\n */\nexport async function listCollectionMembers(\n mediaCollectionId: string,\n options?: ListCollectionMembersOptions\n): Promise<\n NonNullablePaths<\n ListCollectionMembersResponse,\n | `membersRoles`\n | `membersRoles.${number}.member.memberId`\n | `membersRoles.${number}.memberStatus`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollectionId: mediaCollectionId,\n filterBy: options?.filterBy,\n });\n\n const reqOpts =\n ambassadorWixCollectionsV1Collection.listCollectionMembers(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n mediaCollectionId: '$[0]',\n filterBy: '$[1].filterBy',\n },\n singleArgumentUnchanged: false,\n },\n ['mediaCollectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListCollectionMembersOptions {\n /** Filter the members by their role in the collection */\n filterBy?: FilterBy;\n}\n\n/**\n * Add items to a collection\n * @param mediaCollectionId - Collection to add items\n * @public\n * @documentationMaturity preview\n * @requiredField mediaCollectionId\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.AddItems\n */\nexport async function addItems(\n mediaCollectionId: string,\n options?: AddItemsOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollectionId: mediaCollectionId,\n items: options?.items,\n });\n\n const reqOpts = ambassadorWixCollectionsV1Collection.addItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n mediaCollectionId: '$[0]',\n items: '$[1].items',\n },\n singleArgumentUnchanged: false,\n },\n ['mediaCollectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AddItemsOptions {\n /** Items to add */\n items?: AddItem[];\n}\n\n/**\n * Remove items from a collection\n * @param mediaCollectionId - Collection to remove items from\n * @public\n * @documentationMaturity preview\n * @requiredField mediaCollectionId\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.RemoveItems\n */\nexport async function removeItems(\n mediaCollectionId: string,\n options?: RemoveItemsOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollectionId: mediaCollectionId,\n itemsIds: options?.itemsIds,\n });\n\n const reqOpts = ambassadorWixCollectionsV1Collection.removeItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n mediaCollectionId: '$[0]',\n itemsIds: '$[1].itemsIds',\n },\n singleArgumentUnchanged: false,\n },\n ['mediaCollectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface RemoveItemsOptions {\n /**\n * Items to remove\n * @format GUID\n */\n itemsIds?: string[];\n}\n\n/**\n * Join to a collection\n * @param mediaCollectionId - Collection to join\n * @public\n * @documentationMaturity preview\n * @requiredField mediaCollectionId\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.JoinToCollection\n */\nexport async function joinToCollection(\n mediaCollectionId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollectionId: mediaCollectionId,\n });\n\n const reqOpts =\n ambassadorWixCollectionsV1Collection.joinToCollection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { mediaCollectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['mediaCollectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @param mediaCollectionId - Collection the member will be leaving\n * @public\n * @documentationMaturity preview\n * @requiredField mediaCollectionId\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.LeaveCollection\n */\nexport async function leaveCollection(\n mediaCollectionId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollectionId: mediaCollectionId,\n });\n\n const reqOpts = ambassadorWixCollectionsV1Collection.leaveCollection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { mediaCollectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['mediaCollectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @param mediaCollectionId - Collection to get its items\n * @public\n * @documentationMaturity preview\n * @requiredField mediaCollectionId\n * @fqn com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionItems\n */\nexport async function listCollectionItems(\n mediaCollectionId: string\n): Promise<\n NonNullablePaths<\n ListCollectionItemsResponse,\n | `collectionItems`\n | `collectionItems.${number}.galleryId`\n | `collectionItems.${number}.itemId`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n mediaCollectionId: mediaCollectionId,\n });\n\n const reqOpts =\n ambassadorWixCollectionsV1Collection.listCollectionItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { mediaCollectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['mediaCollectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/media-collections-service',\n destPath: '',\n },\n {\n srcPath: '/_api/media-collections-service',\n destPath: '',\n },\n ],\n 'mediacollections.wixapps.net': [\n {\n srcPath: '/media-collections-service',\n destPath: '',\n },\n {\n srcPath: '/_api/media-collections-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/media-collections-service',\n destPath: '',\n },\n {\n srcPath: '/_api/media-collections-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/media-collections-service',\n destPath: '',\n },\n {\n srcPath: '/_api/media-collections-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/media-collections-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/collections/v1/mediacollections',\n destPath: '/v1/mediacollections',\n },\n {\n srcPath: '/collections/v1/mediacollections/items',\n destPath: '/v1/mediacollections/items',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_media-collections_media-collections';\n\n/** Get a specific collection by its id */\nexport function get(payload: object): RequestOptionsFactory<any> {\n function __get({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.Get',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollectionId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'mediaCollection.createdDate' },\n { path: 'mediaCollection.items.addedDate' },\n { path: 'mediaCollection.items.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'mediaCollection.items.sortOrder' },\n { path: 'mediaCollection.items.photoMetadata.focalPoint.x' },\n { path: 'mediaCollection.items.photoMetadata.focalPoint.y' },\n {\n path: 'mediaCollection.items.videoMetadata.posters.focalPoint.x',\n },\n {\n path: 'mediaCollection.items.videoMetadata.posters.focalPoint.y',\n },\n {\n path: 'mediaCollection.items.photoMetadata.unsharpMasking.amount',\n },\n {\n path: 'mediaCollection.items.photoMetadata.unsharpMasking.radius',\n },\n {\n path: 'mediaCollection.items.photoMetadata.unsharpMasking.threshold',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __get;\n}\n\n/** List all collections that the member has a role in them */\nexport function listCollectionsForItem(\n payload: object\n): RequestOptionsFactory<any> {\n function __listCollectionsForItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionsForItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/items/{itemId}/collections',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'itemInCollections.firstItem.sortOrder' },\n {\n path: 'itemInCollections.firstItem.photoMetadata.focalPoint.x',\n },\n {\n path: 'itemInCollections.firstItem.photoMetadata.focalPoint.y',\n },\n {\n path: 'itemInCollections.firstItem.videoMetadata.posters.focalPoint.x',\n },\n {\n path: 'itemInCollections.firstItem.videoMetadata.posters.focalPoint.y',\n },\n {\n path: 'itemInCollections.firstItem.photoMetadata.unsharpMasking.amount',\n },\n {\n path: 'itemInCollections.firstItem.photoMetadata.unsharpMasking.radius',\n },\n {\n path: 'itemInCollections.firstItem.photoMetadata.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'itemInCollections.firstItem.addedDate' },\n { path: 'itemInCollections.firstItem.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCollectionsForItem;\n}\n\n/** Get a specific item from a collection */\nexport function getCollectionItem(payload: object): RequestOptionsFactory<any> {\n function __getCollectionItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.GetCollectionItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollectionId}/items/{itemId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.photoMetadata.focalPoint.x' },\n { path: 'item.photoMetadata.focalPoint.y' },\n { path: 'item.videoMetadata.posters.focalPoint.x' },\n { path: 'item.videoMetadata.posters.focalPoint.y' },\n { path: 'item.photoMetadata.unsharpMasking.amount' },\n { path: 'item.photoMetadata.unsharpMasking.radius' },\n { path: 'item.photoMetadata.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'item.addedDate' }, { path: 'item.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCollectionItem;\n}\n\n/** List all collections that the item belongs to */\nexport function list(payload: object): RequestOptionsFactory<any> {\n function __list({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.List',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n { protoPath: '/v1/mediacollections', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'collectionsStatus.mediaCollection.createdDate' },\n { path: 'collectionsStatus.mediaCollection.items.addedDate' },\n { path: 'collectionsStatus.mediaCollection.items.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'collectionsStatus.mediaCollection.items.sortOrder' },\n {\n path: 'collectionsStatus.mediaCollection.items.photoMetadata.focalPoint.x',\n },\n {\n path: 'collectionsStatus.mediaCollection.items.photoMetadata.focalPoint.y',\n },\n {\n path: 'collectionsStatus.mediaCollection.items.videoMetadata.posters.focalPoint.x',\n },\n {\n path: 'collectionsStatus.mediaCollection.items.videoMetadata.posters.focalPoint.y',\n },\n {\n path: 'collectionsStatus.mediaCollection.items.photoMetadata.unsharpMasking.amount',\n },\n {\n path: 'collectionsStatus.mediaCollection.items.photoMetadata.unsharpMasking.radius',\n },\n {\n path: 'collectionsStatus.mediaCollection.items.photoMetadata.unsharpMasking.threshold',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __list;\n}\n\n/** Create a new collection */\nexport function create(payload: object): RequestOptionsFactory<any> {\n function __create({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'items.orderIndex' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.Create',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n { protoPath: '/v1/mediacollections', data: serializedData, host }\n ),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __create;\n}\n\n/** Update a collection */\nexport function partiallyUpdate(payload: object): RequestOptionsFactory<any> {\n function __partiallyUpdate({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'mediaCollection.createdDate' },\n { path: 'mediaCollection.items.addedDate' },\n { path: 'mediaCollection.items.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'mediaCollection.items.sortOrder' },\n { path: 'mediaCollection.items.photoMetadata.focalPoint.x' },\n { path: 'mediaCollection.items.photoMetadata.focalPoint.y' },\n { path: 'mediaCollection.items.videoMetadata.posters.focalPoint.x' },\n { path: 'mediaCollection.items.videoMetadata.posters.focalPoint.y' },\n { path: 'mediaCollection.items.photoMetadata.unsharpMasking.amount' },\n { path: 'mediaCollection.items.photoMetadata.unsharpMasking.radius' },\n {\n path: 'mediaCollection.items.photoMetadata.unsharpMasking.threshold',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.PartiallyUpdate',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollection.id}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __partiallyUpdate;\n}\n\n/** Delete a collection */\nexport function _delete(payload: object): RequestOptionsFactory<any> {\n function ___delete({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService._delete',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollectionId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return ___delete;\n}\n\n/** List all members of a collection */\nexport function listCollectionMembers(\n payload: object\n): RequestOptionsFactory<any> {\n function __listCollectionMembers({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionMembers',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollectionId}/members',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listCollectionMembers;\n}\n\n/** Add items to a collection */\nexport function addItems(payload: object): RequestOptionsFactory<any> {\n function __addItems({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'items.orderIndex' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.AddItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollectionId}/items',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __addItems;\n}\n\n/** Remove items from a collection */\nexport function removeItems(payload: object): RequestOptionsFactory<any> {\n function __removeItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.RemoveItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollectionId}/items',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __removeItems;\n}\n\n/** Join to a collection */\nexport function joinToCollection(payload: object): RequestOptionsFactory<any> {\n function __joinToCollection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.JoinToCollection',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollectionId}/members',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __joinToCollection;\n}\n\nexport function leaveCollection(payload: object): RequestOptionsFactory<any> {\n function __leaveCollection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.LeaveCollection',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollectionId}/members',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __leaveCollection;\n}\n\nexport function listCollectionItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __listCollectionItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.collections.v1.collection',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(\n {\n protoPath: '/v1/mediacollections/{mediaCollectionId}/items',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'collectionItems.orderIndex' }],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'collectionItems.addedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listCollectionItems;\n}\n","import {\n get as publicGet,\n listCollectionsForItem as publicListCollectionsForItem,\n getCollectionItem as publicGetCollectionItem,\n list as publicList,\n create as publicCreate,\n partiallyUpdate as publicPartiallyUpdate,\n _delete as public_delete,\n listCollectionMembers as publicListCollectionMembers,\n addItems as publicAddItems,\n removeItems as publicRemoveItems,\n joinToCollection as publicJoinToCollection,\n leaveCollection as publicLeaveCollection,\n listCollectionItems as publicListCollectionItems,\n} from './collections-v1-collection-media-collections.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onCollectionCreated as publicOnCollectionCreated } from './collections-v1-collection-media-collections.public.js';\n\nexport const get: MaybeContext<\n BuildRESTFunction<typeof publicGet> & typeof publicGet\n> = /*#__PURE__*/ createRESTModule(publicGet);\nexport const listCollectionsForItem: MaybeContext<\n BuildRESTFunction<typeof publicListCollectionsForItem> &\n typeof publicListCollectionsForItem\n> = /*#__PURE__*/ createRESTModule(publicListCollectionsForItem);\nexport const getCollectionItem: MaybeContext<\n BuildRESTFunction<typeof publicGetCollectionItem> &\n typeof publicGetCollectionItem\n> = /*#__PURE__*/ createRESTModule(publicGetCollectionItem);\nexport const list: MaybeContext<\n BuildRESTFunction<typeof publicList> & typeof publicList\n> = /*#__PURE__*/ createRESTModule(publicList);\nexport const create: MaybeContext<\n BuildRESTFunction<typeof publicCreate> & typeof publicCreate\n> = /*#__PURE__*/ createRESTModule(publicCreate);\nexport const partiallyUpdate: MaybeContext<\n BuildRESTFunction<typeof publicPartiallyUpdate> & typeof publicPartiallyUpdate\n> = /*#__PURE__*/ createRESTModule(publicPartiallyUpdate);\nexport const _delete: MaybeContext<\n BuildRESTFunction<typeof public_delete> & typeof public_delete\n> = /*#__PURE__*/ createRESTModule(public_delete);\nexport const listCollectionMembers: MaybeContext<\n BuildRESTFunction<typeof publicListCollectionMembers> &\n typeof publicListCollectionMembers\n> = /*#__PURE__*/ createRESTModule(publicListCollectionMembers);\nexport const addItems: MaybeContext<\n BuildRESTFunction<typeof publicAddItems> & typeof publicAddItems\n> = /*#__PURE__*/ createRESTModule(publicAddItems);\nexport const removeItems: MaybeContext<\n BuildRESTFunction<typeof publicRemoveItems> & typeof publicRemoveItems\n> = /*#__PURE__*/ createRESTModule(publicRemoveItems);\nexport const joinToCollection: MaybeContext<\n BuildRESTFunction<typeof publicJoinToCollection> &\n typeof publicJoinToCollection\n> = /*#__PURE__*/ createRESTModule(publicJoinToCollection);\nexport const leaveCollection: MaybeContext<\n BuildRESTFunction<typeof publicLeaveCollection> & typeof publicLeaveCollection\n> = /*#__PURE__*/ createRESTModule(publicLeaveCollection);\nexport const listCollectionItems: MaybeContext<\n BuildRESTFunction<typeof publicListCollectionItems> &\n typeof publicListCollectionItems\n> = /*#__PURE__*/ createRESTModule(publicListCollectionItems);\n/** */\nexport const onCollectionCreated: BuildEventDefinition<\n typeof publicOnCollectionCreated\n> &\n typeof publicOnCollectionCreated = createEventModule(\n publicOnCollectionCreated\n);\n\nexport {\n Type,\n LinkRel,\n DataType,\n Source,\n MediaOwner,\n PrivacySettings,\n Status,\n WebhookIdentityType,\n MemberStatus,\n} from './collections-v1-collection-media-collections.universal.js';\nexport {\n MediaCollection,\n CollectionMember,\n MediaCollectionItem,\n MediaCollectionItemMetadataOneOf,\n Link,\n WixLink,\n WixLinkLinkOneOf,\n ExternalLink,\n PageLink,\n AnchorLink,\n DynamicPageLink,\n DocumentLink,\n EmailLink,\n PhoneLink,\n AddressLink,\n WhatsAppLink,\n TpaPageLink,\n PhotoMetadata,\n Point,\n UnsharpMasking,\n VideoMetadata,\n Thumbnail,\n Resolution,\n TextMetadata,\n PermanentSiteDeletedResponse,\n Empty,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n CollectionEvent,\n CollectionEventEventTypeOneOf,\n CollectionItemId,\n CollectionCreated,\n ItemsAddedToCollection,\n ItemsRemovedFromCollection,\n MemberJoinedToCollection,\n MemberLeftCollection,\n GetMediaCollectionRequest,\n GetMediaCollectionResponse,\n ListCollectionsForItemRequest,\n ListCollectionsForItemResponse,\n ItemInCollection,\n GetCollectionItemRequest,\n GetCollectionItemResponse,\n ListMediaCollectionsRequest,\n FilterByRoles,\n ListMediaCollectionsResponse,\n CollectionAndStatus,\n CreateMediaCollectionRequest,\n AddItem,\n CreateMediaCollectionResponse,\n PartiallyUpdateMediaCollectionRequest,\n PartiallyUpdateMediaCollectionResponse,\n UpdateCollectionLockRequest,\n UpdateCollectionLockResponse,\n DeleteMediaCollectionRequest,\n DeleteMediaCollectionResponse,\n ListCollectionMembersRequest,\n FilterBy,\n ListCollectionMembersResponse,\n MemberAndStatus,\n AddItemsRequest,\n AddItemsResponse,\n RemoveItemsRequest,\n RemoveItemsResponse,\n UpdateItemsRequest,\n UpdateItem,\n UpdateItemsResponse,\n JoinToCollectionRequest,\n JoinToCollectionResponse,\n RemoveMemberFromCollectionRequest,\n RemoveMemberFromCollectionResponse,\n LeaveCollectionRequest,\n LeaveCollectionResponse,\n ListCollectionItemsRequest,\n ListCollectionItemsResponse,\n CollectionItem,\n ListAllItemsBelongToCollectionRequest,\n ListAllItemsBelongToCollectionResponse,\n BaseEventMetadata,\n EventMetadata,\n CollectionCreatedEnvelope,\n GetOptions,\n ListCollectionsForItemOptions,\n GetCollectionItemIdentifiers,\n ListOptions,\n CreateOptions,\n PartiallyUpdateMediaCollection,\n PartiallyUpdateOptions,\n ListCollectionMembersOptions,\n AddItemsOptions,\n RemoveItemsOptions,\n} from './collections-v1-collection-media-collections.universal.js';\nexport {\n TypeWithLiterals,\n LinkRelWithLiterals,\n DataTypeWithLiterals,\n SourceWithLiterals,\n MediaOwnerWithLiterals,\n PrivacySettingsWithLiterals,\n StatusWithLiterals,\n WebhookIdentityTypeWithLiterals,\n MemberStatusWithLiterals,\n} from './collections-v1-collection-media-collections.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA,gBAAAC;AAAA,EAAA,cAAAC;AAAA,EAAA,WAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,YAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,mBAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,gBAA6C;AAC7C,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACJ9D,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,gCAAgC;AAAA,MAC9B;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE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M,kDAAkD;AAAA,UAC1D,EAAE,MAAM,kDAAkD;AAAA,UAC1D,EAAE,MAAM,mDAAmD;AAAA,UAC3D,EAAE,MAAM,mDAAmD;AAAA,UAC3D,EAAE,MAAM,sDAAsD;AAAA,QAChE;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAA6B;;;AGja7B,IAAAC,uBAAiC;AACjC,sCAAkC;AAQ3B,IAAMC,OAEK,2DAAiBA,IAAS;AACrC,IAAMC,0BAGK,2DAAiBA,uBAA4B;AACxD,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,QAEK,2DAAiBA,KAAU;AACtC,IAAMC,UAEK,2DAAiBA,OAAY;AACxC,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,WAEK,2DAAiBA,QAAa;AACzC,IAAMC,yBAGK,2DAAiBA,sBAA2B;AACvD,IAAMC,YAEK,2DAAiBA,SAAc;AAC1C,IAAMC,eAEK,2DAAiBA,YAAiB;AAC7C,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,mBAEK,2DAAiBA,gBAAqB;AACjD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AAErD,IAAMC,2BAGwB;AAAA,EACnC;AACF;","names":["_delete","addItems","create","get","getCollectionItem","joinToCollection","leaveCollection","list","listCollectionItems","listCollectionMembers","listCollectionsForItem","onCollectionCreated","partiallyUpdate","removeItems","import_rename_all_nested_keys","import_float","import_timestamp","import_transform_paths","import_float","import_timestamp","import_rest_modules","payload","Type","LinkRel","DataType","Source","MediaOwner","PrivacySettings","Status","WebhookIdentityType","MemberStatus","get","sdkTransformError","listCollectionsForItem","getCollectionItem","list","create","partiallyUpdate","_delete","listCollectionMembers","addItems","removeItems","joinToCollection","leaveCollection","listCollectionItems","get","listCollectionsForItem","getCollectionItem","list","create","partiallyUpdate","_delete","listCollectionMembers","addItems","removeItems","joinToCollection","leaveCollection","listCollectionItems","import_rest_modules","get","listCollectionsForItem","getCollectionItem","list","create","partiallyUpdate","_delete","listCollectionMembers","addItems","removeItems","joinToCollection","leaveCollection","listCollectionItems","onCollectionCreated"]}