@wix/auto_sdk_media-collections_media-collections 1.0.4 → 1.0.6
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.
- package/build/{es/src/collections-v1-collection-media-collections.types.d.ts → collections-v1-collection-media-collections.universal-CUKnIZcW.d.mts} +284 -118
- package/build/{cjs/src/collections-v1-collection-media-collections.types.d.ts → collections-v1-collection-media-collections.universal-CUKnIZcW.d.ts} +284 -118
- package/build/index.d.mts +120 -0
- package/build/index.d.ts +120 -0
- package/build/index.js +1157 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1111 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{cjs/src/collections-v1-collection-media-collections.types.d.ts → collections-v1-collection-media-collections.universal-CUKnIZcW.d.mts} +284 -118
- package/build/internal/{es/src/collections-v1-collection-media-collections.types.d.ts → collections-v1-collection-media-collections.universal-CUKnIZcW.d.ts} +284 -118
- package/build/internal/index.d.mts +120 -0
- package/build/internal/index.d.ts +120 -0
- package/build/internal/index.js +1157 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1111 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +765 -0
- package/build/internal/meta.d.ts +765 -0
- package/build/internal/meta.js +789 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +750 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +765 -0
- package/build/meta.d.ts +765 -0
- package/build/meta.js +789 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +750 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/collections-v1-collection-media-collections.context.d.ts +0 -21
- package/build/cjs/src/collections-v1-collection-media-collections.context.js +0 -33
- package/build/cjs/src/collections-v1-collection-media-collections.context.js.map +0 -1
- package/build/cjs/src/collections-v1-collection-media-collections.http.d.ts +0 -25
- package/build/cjs/src/collections-v1-collection-media-collections.http.js +0 -490
- package/build/cjs/src/collections-v1-collection-media-collections.http.js.map +0 -1
- package/build/cjs/src/collections-v1-collection-media-collections.meta.d.ts +0 -48
- package/build/cjs/src/collections-v1-collection-media-collections.meta.js +0 -278
- package/build/cjs/src/collections-v1-collection-media-collections.meta.js.map +0 -1
- package/build/cjs/src/collections-v1-collection-media-collections.public.d.ts +0 -104
- package/build/cjs/src/collections-v1-collection-media-collections.public.js +0 -123
- package/build/cjs/src/collections-v1-collection-media-collections.public.js.map +0 -1
- package/build/cjs/src/collections-v1-collection-media-collections.types.js +0 -94
- package/build/cjs/src/collections-v1-collection-media-collections.types.js.map +0 -1
- package/build/cjs/src/collections-v1-collection-media-collections.universal.d.ts +0 -1338
- package/build/cjs/src/collections-v1-collection-media-collections.universal.js +0 -574
- package/build/cjs/src/collections-v1-collection-media-collections.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/collections-v1-collection-media-collections.context.d.ts +0 -21
- package/build/es/src/collections-v1-collection-media-collections.context.js +0 -21
- package/build/es/src/collections-v1-collection-media-collections.context.js.map +0 -1
- package/build/es/src/collections-v1-collection-media-collections.http.d.ts +0 -25
- package/build/es/src/collections-v1-collection-media-collections.http.js +0 -474
- package/build/es/src/collections-v1-collection-media-collections.http.js.map +0 -1
- package/build/es/src/collections-v1-collection-media-collections.meta.d.ts +0 -48
- package/build/es/src/collections-v1-collection-media-collections.meta.js +0 -239
- package/build/es/src/collections-v1-collection-media-collections.meta.js.map +0 -1
- package/build/es/src/collections-v1-collection-media-collections.public.d.ts +0 -104
- package/build/es/src/collections-v1-collection-media-collections.public.js +0 -98
- package/build/es/src/collections-v1-collection-media-collections.public.js.map +0 -1
- package/build/es/src/collections-v1-collection-media-collections.types.js +0 -91
- package/build/es/src/collections-v1-collection-media-collections.types.js.map +0 -1
- package/build/es/src/collections-v1-collection-media-collections.universal.d.ts +0 -1338
- package/build/es/src/collections-v1-collection-media-collections.universal.js +0 -535
- package/build/es/src/collections-v1-collection-media-collections.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/collections-v1-collection-media-collections.context.d.ts +0 -21
- package/build/internal/cjs/src/collections-v1-collection-media-collections.context.js +0 -33
- package/build/internal/cjs/src/collections-v1-collection-media-collections.context.js.map +0 -1
- package/build/internal/cjs/src/collections-v1-collection-media-collections.http.d.ts +0 -25
- package/build/internal/cjs/src/collections-v1-collection-media-collections.http.js +0 -490
- package/build/internal/cjs/src/collections-v1-collection-media-collections.http.js.map +0 -1
- package/build/internal/cjs/src/collections-v1-collection-media-collections.meta.d.ts +0 -48
- package/build/internal/cjs/src/collections-v1-collection-media-collections.meta.js +0 -278
- package/build/internal/cjs/src/collections-v1-collection-media-collections.meta.js.map +0 -1
- package/build/internal/cjs/src/collections-v1-collection-media-collections.public.d.ts +0 -104
- package/build/internal/cjs/src/collections-v1-collection-media-collections.public.js +0 -123
- package/build/internal/cjs/src/collections-v1-collection-media-collections.public.js.map +0 -1
- package/build/internal/cjs/src/collections-v1-collection-media-collections.types.js +0 -94
- package/build/internal/cjs/src/collections-v1-collection-media-collections.types.js.map +0 -1
- package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.d.ts +0 -1338
- package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.js +0 -574
- package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/collections-v1-collection-media-collections.context.d.ts +0 -21
- package/build/internal/es/src/collections-v1-collection-media-collections.context.js +0 -21
- package/build/internal/es/src/collections-v1-collection-media-collections.context.js.map +0 -1
- package/build/internal/es/src/collections-v1-collection-media-collections.http.d.ts +0 -25
- package/build/internal/es/src/collections-v1-collection-media-collections.http.js +0 -474
- package/build/internal/es/src/collections-v1-collection-media-collections.http.js.map +0 -1
- package/build/internal/es/src/collections-v1-collection-media-collections.meta.d.ts +0 -48
- package/build/internal/es/src/collections-v1-collection-media-collections.meta.js +0 -239
- package/build/internal/es/src/collections-v1-collection-media-collections.meta.js.map +0 -1
- package/build/internal/es/src/collections-v1-collection-media-collections.public.d.ts +0 -104
- package/build/internal/es/src/collections-v1-collection-media-collections.public.js +0 -98
- package/build/internal/es/src/collections-v1-collection-media-collections.public.js.map +0 -1
- package/build/internal/es/src/collections-v1-collection-media-collections.types.js +0 -91
- package/build/internal/es/src/collections-v1-collection-media-collections.types.js.map +0 -1
- package/build/internal/es/src/collections-v1-collection-media-collections.universal.d.ts +0 -1338
- package/build/internal/es/src/collections-v1-collection-media-collections.universal.js +0 -535
- package/build/internal/es/src/collections-v1-collection-media-collections.universal.js.map +0 -1
package/build/index.js
ADDED
|
@@ -0,0 +1,1157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
DataType: () => DataType,
|
|
24
|
+
LinkRel: () => LinkRel,
|
|
25
|
+
MediaOwner: () => MediaOwner,
|
|
26
|
+
MemberStatus: () => MemberStatus,
|
|
27
|
+
PrivacySettings: () => PrivacySettings,
|
|
28
|
+
Source: () => Source,
|
|
29
|
+
Status: () => Status,
|
|
30
|
+
Type: () => Type,
|
|
31
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
32
|
+
_delete: () => _delete4,
|
|
33
|
+
addItems: () => addItems4,
|
|
34
|
+
create: () => create4,
|
|
35
|
+
get: () => get4,
|
|
36
|
+
getCollectionItem: () => getCollectionItem4,
|
|
37
|
+
joinToCollection: () => joinToCollection4,
|
|
38
|
+
leaveCollection: () => leaveCollection4,
|
|
39
|
+
list: () => list4,
|
|
40
|
+
listCollectionItems: () => listCollectionItems4,
|
|
41
|
+
listCollectionMembers: () => listCollectionMembers4,
|
|
42
|
+
listCollectionsForItem: () => listCollectionsForItem4,
|
|
43
|
+
onCollectionCreated: () => onCollectionCreated2,
|
|
44
|
+
partiallyUpdate: () => partiallyUpdate4,
|
|
45
|
+
removeItems: () => removeItems4
|
|
46
|
+
});
|
|
47
|
+
module.exports = __toCommonJS(index_exports);
|
|
48
|
+
|
|
49
|
+
// src/collections-v1-collection-media-collections.public.ts
|
|
50
|
+
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
51
|
+
var import_float3 = require("@wix/sdk-runtime/transformations/float");
|
|
52
|
+
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
53
|
+
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
54
|
+
var import_sdk_types = require("@wix/sdk-types");
|
|
55
|
+
|
|
56
|
+
// src/collections-v1-collection-media-collections.universal.ts
|
|
57
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
58
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
59
|
+
|
|
60
|
+
// src/collections-v1-collection-media-collections.http.ts
|
|
61
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
62
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
63
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
64
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
65
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
66
|
+
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
67
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
68
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
69
|
+
function resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(opts) {
|
|
70
|
+
const domainToMappings = {
|
|
71
|
+
_: [
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/media-collections-service",
|
|
74
|
+
destPath: ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
srcPath: "/_api/media-collections-service",
|
|
78
|
+
destPath: ""
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"mediacollections.wixapps.net": [
|
|
82
|
+
{
|
|
83
|
+
srcPath: "/media-collections-service",
|
|
84
|
+
destPath: ""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/_api/media-collections-service",
|
|
88
|
+
destPath: ""
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"manage._base_domain_": [
|
|
92
|
+
{
|
|
93
|
+
srcPath: "/media-collections-service",
|
|
94
|
+
destPath: ""
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
srcPath: "/_api/media-collections-service",
|
|
98
|
+
destPath: ""
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"www._base_domain_": [
|
|
102
|
+
{
|
|
103
|
+
srcPath: "/media-collections-service",
|
|
104
|
+
destPath: ""
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
srcPath: "/_api/media-collections-service",
|
|
108
|
+
destPath: ""
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"*.dev.wix-code.com": [
|
|
112
|
+
{
|
|
113
|
+
srcPath: "/_api/media-collections-service",
|
|
114
|
+
destPath: ""
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"www.wixapis.com": [
|
|
118
|
+
{
|
|
119
|
+
srcPath: "/collections/v1/mediacollections",
|
|
120
|
+
destPath: "/v1/mediacollections"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
};
|
|
124
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
125
|
+
}
|
|
126
|
+
var PACKAGE_NAME = "@wix/auto_sdk_media-collections_media-collections";
|
|
127
|
+
function get(payload) {
|
|
128
|
+
function __get({ host }) {
|
|
129
|
+
const metadata = {
|
|
130
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
131
|
+
method: "GET",
|
|
132
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.Get",
|
|
133
|
+
packageName: PACKAGE_NAME,
|
|
134
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
135
|
+
{
|
|
136
|
+
protoPath: "/v1/mediacollections/{mediaCollectionId}",
|
|
137
|
+
data: payload,
|
|
138
|
+
host
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
142
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
143
|
+
{
|
|
144
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
145
|
+
paths: [
|
|
146
|
+
{ path: "mediaCollection.createdDate" },
|
|
147
|
+
{ path: "mediaCollection.items.addedDate" },
|
|
148
|
+
{ path: "mediaCollection.items.updatedDate" }
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
153
|
+
paths: [
|
|
154
|
+
{ path: "mediaCollection.items.sortOrder" },
|
|
155
|
+
{ path: "mediaCollection.items.photoMetadata.focalPoint.x" },
|
|
156
|
+
{ path: "mediaCollection.items.photoMetadata.focalPoint.y" },
|
|
157
|
+
{
|
|
158
|
+
path: "mediaCollection.items.videoMetadata.posters.focalPoint.x"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
path: "mediaCollection.items.videoMetadata.posters.focalPoint.y"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
path: "mediaCollection.items.photoMetadata.unsharpMasking.amount"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
path: "mediaCollection.items.photoMetadata.unsharpMasking.radius"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
path: "mediaCollection.items.photoMetadata.unsharpMasking.threshold"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
])
|
|
175
|
+
};
|
|
176
|
+
return metadata;
|
|
177
|
+
}
|
|
178
|
+
return __get;
|
|
179
|
+
}
|
|
180
|
+
function listCollectionsForItem(payload) {
|
|
181
|
+
function __listCollectionsForItem({ host }) {
|
|
182
|
+
const metadata = {
|
|
183
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
184
|
+
method: "GET",
|
|
185
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionsForItem",
|
|
186
|
+
packageName: PACKAGE_NAME,
|
|
187
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
188
|
+
{
|
|
189
|
+
protoPath: "/v1/mediacollections/items/{itemId}/collections",
|
|
190
|
+
data: payload,
|
|
191
|
+
host
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
195
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
196
|
+
{
|
|
197
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
198
|
+
paths: [
|
|
199
|
+
{ path: "itemInCollections.firstItem.sortOrder" },
|
|
200
|
+
{
|
|
201
|
+
path: "itemInCollections.firstItem.photoMetadata.focalPoint.x"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
path: "itemInCollections.firstItem.photoMetadata.focalPoint.y"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
path: "itemInCollections.firstItem.videoMetadata.posters.focalPoint.x"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
path: "itemInCollections.firstItem.videoMetadata.posters.focalPoint.y"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
path: "itemInCollections.firstItem.photoMetadata.unsharpMasking.amount"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
path: "itemInCollections.firstItem.photoMetadata.unsharpMasking.radius"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
path: "itemInCollections.firstItem.photoMetadata.unsharpMasking.threshold"
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
225
|
+
paths: [
|
|
226
|
+
{ path: "itemInCollections.firstItem.addedDate" },
|
|
227
|
+
{ path: "itemInCollections.firstItem.updatedDate" }
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
])
|
|
231
|
+
};
|
|
232
|
+
return metadata;
|
|
233
|
+
}
|
|
234
|
+
return __listCollectionsForItem;
|
|
235
|
+
}
|
|
236
|
+
function getCollectionItem(payload) {
|
|
237
|
+
function __getCollectionItem({ host }) {
|
|
238
|
+
const metadata = {
|
|
239
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
240
|
+
method: "GET",
|
|
241
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.GetCollectionItem",
|
|
242
|
+
packageName: PACKAGE_NAME,
|
|
243
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
244
|
+
{
|
|
245
|
+
protoPath: "/v1/mediacollections/{mediaCollectionId}/items/{itemId}",
|
|
246
|
+
data: payload,
|
|
247
|
+
host
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
251
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
252
|
+
{
|
|
253
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
254
|
+
paths: [
|
|
255
|
+
{ path: "item.sortOrder" },
|
|
256
|
+
{ path: "item.photoMetadata.focalPoint.x" },
|
|
257
|
+
{ path: "item.photoMetadata.focalPoint.y" },
|
|
258
|
+
{ path: "item.videoMetadata.posters.focalPoint.x" },
|
|
259
|
+
{ path: "item.videoMetadata.posters.focalPoint.y" },
|
|
260
|
+
{ path: "item.photoMetadata.unsharpMasking.amount" },
|
|
261
|
+
{ path: "item.photoMetadata.unsharpMasking.radius" },
|
|
262
|
+
{ path: "item.photoMetadata.unsharpMasking.threshold" }
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
267
|
+
paths: [{ path: "item.addedDate" }, { path: "item.updatedDate" }]
|
|
268
|
+
}
|
|
269
|
+
])
|
|
270
|
+
};
|
|
271
|
+
return metadata;
|
|
272
|
+
}
|
|
273
|
+
return __getCollectionItem;
|
|
274
|
+
}
|
|
275
|
+
function list(payload) {
|
|
276
|
+
function __list({ host }) {
|
|
277
|
+
const metadata = {
|
|
278
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
279
|
+
method: "GET",
|
|
280
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.List",
|
|
281
|
+
packageName: PACKAGE_NAME,
|
|
282
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
283
|
+
{ protoPath: "/v1/mediacollections", data: payload, host }
|
|
284
|
+
),
|
|
285
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
286
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
287
|
+
{
|
|
288
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
289
|
+
paths: [
|
|
290
|
+
{ path: "collectionsStatus.mediaCollection.createdDate" },
|
|
291
|
+
{ path: "collectionsStatus.mediaCollection.items.addedDate" },
|
|
292
|
+
{ path: "collectionsStatus.mediaCollection.items.updatedDate" }
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
297
|
+
paths: [
|
|
298
|
+
{ path: "collectionsStatus.mediaCollection.items.sortOrder" },
|
|
299
|
+
{
|
|
300
|
+
path: "collectionsStatus.mediaCollection.items.photoMetadata.focalPoint.x"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
path: "collectionsStatus.mediaCollection.items.photoMetadata.focalPoint.y"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
path: "collectionsStatus.mediaCollection.items.videoMetadata.posters.focalPoint.x"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
path: "collectionsStatus.mediaCollection.items.videoMetadata.posters.focalPoint.y"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
path: "collectionsStatus.mediaCollection.items.photoMetadata.unsharpMasking.amount"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
path: "collectionsStatus.mediaCollection.items.photoMetadata.unsharpMasking.radius"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
path: "collectionsStatus.mediaCollection.items.photoMetadata.unsharpMasking.threshold"
|
|
319
|
+
}
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
])
|
|
323
|
+
};
|
|
324
|
+
return metadata;
|
|
325
|
+
}
|
|
326
|
+
return __list;
|
|
327
|
+
}
|
|
328
|
+
function create(payload) {
|
|
329
|
+
function __create({ host }) {
|
|
330
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
331
|
+
{
|
|
332
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
333
|
+
paths: [{ path: "items.orderIndex" }]
|
|
334
|
+
}
|
|
335
|
+
]);
|
|
336
|
+
const metadata = {
|
|
337
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
338
|
+
method: "POST",
|
|
339
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.Create",
|
|
340
|
+
packageName: PACKAGE_NAME,
|
|
341
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
342
|
+
{ protoPath: "/v1/mediacollections", data: serializedData, host }
|
|
343
|
+
),
|
|
344
|
+
data: serializedData
|
|
345
|
+
};
|
|
346
|
+
return metadata;
|
|
347
|
+
}
|
|
348
|
+
return __create;
|
|
349
|
+
}
|
|
350
|
+
function partiallyUpdate(payload) {
|
|
351
|
+
function __partiallyUpdate({ host }) {
|
|
352
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
353
|
+
{
|
|
354
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
355
|
+
paths: [{ path: "fieldMask" }]
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
359
|
+
paths: [
|
|
360
|
+
{ path: "mediaCollection.createdDate" },
|
|
361
|
+
{ path: "mediaCollection.items.addedDate" },
|
|
362
|
+
{ path: "mediaCollection.items.updatedDate" }
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
367
|
+
paths: [
|
|
368
|
+
{ path: "mediaCollection.items.sortOrder" },
|
|
369
|
+
{ path: "mediaCollection.items.photoMetadata.focalPoint.x" },
|
|
370
|
+
{ path: "mediaCollection.items.photoMetadata.focalPoint.y" },
|
|
371
|
+
{ path: "mediaCollection.items.videoMetadata.posters.focalPoint.x" },
|
|
372
|
+
{ path: "mediaCollection.items.videoMetadata.posters.focalPoint.y" },
|
|
373
|
+
{ path: "mediaCollection.items.photoMetadata.unsharpMasking.amount" },
|
|
374
|
+
{ path: "mediaCollection.items.photoMetadata.unsharpMasking.radius" },
|
|
375
|
+
{
|
|
376
|
+
path: "mediaCollection.items.photoMetadata.unsharpMasking.threshold"
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
]);
|
|
381
|
+
const metadata = {
|
|
382
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
383
|
+
method: "PUT",
|
|
384
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.PartiallyUpdate",
|
|
385
|
+
packageName: PACKAGE_NAME,
|
|
386
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
387
|
+
{
|
|
388
|
+
protoPath: "/v1/mediacollections/{mediaCollection.id}",
|
|
389
|
+
data: serializedData,
|
|
390
|
+
host
|
|
391
|
+
}
|
|
392
|
+
),
|
|
393
|
+
data: serializedData
|
|
394
|
+
};
|
|
395
|
+
return metadata;
|
|
396
|
+
}
|
|
397
|
+
return __partiallyUpdate;
|
|
398
|
+
}
|
|
399
|
+
function _delete(payload) {
|
|
400
|
+
function ___delete({ host }) {
|
|
401
|
+
const metadata = {
|
|
402
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
403
|
+
method: "DELETE",
|
|
404
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService._delete",
|
|
405
|
+
packageName: PACKAGE_NAME,
|
|
406
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
407
|
+
{
|
|
408
|
+
protoPath: "/v1/mediacollections/{mediaCollectionId}",
|
|
409
|
+
data: payload,
|
|
410
|
+
host
|
|
411
|
+
}
|
|
412
|
+
),
|
|
413
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
414
|
+
};
|
|
415
|
+
return metadata;
|
|
416
|
+
}
|
|
417
|
+
return ___delete;
|
|
418
|
+
}
|
|
419
|
+
function listCollectionMembers(payload) {
|
|
420
|
+
function __listCollectionMembers({ host }) {
|
|
421
|
+
const metadata = {
|
|
422
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
423
|
+
method: "GET",
|
|
424
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionMembers",
|
|
425
|
+
packageName: PACKAGE_NAME,
|
|
426
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
427
|
+
{
|
|
428
|
+
protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
|
|
429
|
+
data: payload,
|
|
430
|
+
host
|
|
431
|
+
}
|
|
432
|
+
),
|
|
433
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
434
|
+
};
|
|
435
|
+
return metadata;
|
|
436
|
+
}
|
|
437
|
+
return __listCollectionMembers;
|
|
438
|
+
}
|
|
439
|
+
function addItems(payload) {
|
|
440
|
+
function __addItems({ host }) {
|
|
441
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
442
|
+
{
|
|
443
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
444
|
+
paths: [{ path: "items.orderIndex" }]
|
|
445
|
+
}
|
|
446
|
+
]);
|
|
447
|
+
const metadata = {
|
|
448
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
449
|
+
method: "POST",
|
|
450
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.AddItems",
|
|
451
|
+
packageName: PACKAGE_NAME,
|
|
452
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
453
|
+
{
|
|
454
|
+
protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
|
|
455
|
+
data: serializedData,
|
|
456
|
+
host
|
|
457
|
+
}
|
|
458
|
+
),
|
|
459
|
+
data: serializedData
|
|
460
|
+
};
|
|
461
|
+
return metadata;
|
|
462
|
+
}
|
|
463
|
+
return __addItems;
|
|
464
|
+
}
|
|
465
|
+
function removeItems(payload) {
|
|
466
|
+
function __removeItems({ host }) {
|
|
467
|
+
const metadata = {
|
|
468
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
469
|
+
method: "DELETE",
|
|
470
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.RemoveItems",
|
|
471
|
+
packageName: PACKAGE_NAME,
|
|
472
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
473
|
+
{
|
|
474
|
+
protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
|
|
475
|
+
data: payload,
|
|
476
|
+
host
|
|
477
|
+
}
|
|
478
|
+
),
|
|
479
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
480
|
+
};
|
|
481
|
+
return metadata;
|
|
482
|
+
}
|
|
483
|
+
return __removeItems;
|
|
484
|
+
}
|
|
485
|
+
function joinToCollection(payload) {
|
|
486
|
+
function __joinToCollection({ host }) {
|
|
487
|
+
const metadata = {
|
|
488
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
489
|
+
method: "POST",
|
|
490
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.JoinToCollection",
|
|
491
|
+
packageName: PACKAGE_NAME,
|
|
492
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
493
|
+
{
|
|
494
|
+
protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
|
|
495
|
+
data: payload,
|
|
496
|
+
host
|
|
497
|
+
}
|
|
498
|
+
),
|
|
499
|
+
data: payload
|
|
500
|
+
};
|
|
501
|
+
return metadata;
|
|
502
|
+
}
|
|
503
|
+
return __joinToCollection;
|
|
504
|
+
}
|
|
505
|
+
function leaveCollection(payload) {
|
|
506
|
+
function __leaveCollection({ host }) {
|
|
507
|
+
const metadata = {
|
|
508
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
509
|
+
method: "DELETE",
|
|
510
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.LeaveCollection",
|
|
511
|
+
packageName: PACKAGE_NAME,
|
|
512
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
513
|
+
{
|
|
514
|
+
protoPath: "/v1/mediacollections/{mediaCollectionId}/members",
|
|
515
|
+
data: payload,
|
|
516
|
+
host
|
|
517
|
+
}
|
|
518
|
+
),
|
|
519
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
520
|
+
};
|
|
521
|
+
return metadata;
|
|
522
|
+
}
|
|
523
|
+
return __leaveCollection;
|
|
524
|
+
}
|
|
525
|
+
function listCollectionItems(payload) {
|
|
526
|
+
function __listCollectionItems({ host }) {
|
|
527
|
+
const metadata = {
|
|
528
|
+
entityFqdn: "wix.collections.v1.collection",
|
|
529
|
+
method: "GET",
|
|
530
|
+
methodFqn: "com.wixpress.exposure.mediacollections.MediaCollectionsService.ListCollectionItems",
|
|
531
|
+
packageName: PACKAGE_NAME,
|
|
532
|
+
url: resolveComWixpressExposureMediacollectionsMediaCollectionsServiceUrl(
|
|
533
|
+
{
|
|
534
|
+
protoPath: "/v1/mediacollections/{mediaCollectionId}/items",
|
|
535
|
+
data: payload,
|
|
536
|
+
host
|
|
537
|
+
}
|
|
538
|
+
),
|
|
539
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
540
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
541
|
+
{
|
|
542
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
543
|
+
paths: [{ path: "collectionItems.orderIndex" }]
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
547
|
+
paths: [{ path: "collectionItems.addedDate" }]
|
|
548
|
+
}
|
|
549
|
+
])
|
|
550
|
+
};
|
|
551
|
+
return metadata;
|
|
552
|
+
}
|
|
553
|
+
return __listCollectionItems;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// src/collections-v1-collection-media-collections.universal.ts
|
|
557
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
558
|
+
Type2["Undefined"] = "Undefined";
|
|
559
|
+
Type2["External"] = "External";
|
|
560
|
+
Type2["Internal"] = "Internal";
|
|
561
|
+
return Type2;
|
|
562
|
+
})(Type || {});
|
|
563
|
+
var LinkRel = /* @__PURE__ */ ((LinkRel2) => {
|
|
564
|
+
LinkRel2["unknown_link_rel"] = "unknown_link_rel";
|
|
565
|
+
LinkRel2["nofollow"] = "nofollow";
|
|
566
|
+
LinkRel2["noopener"] = "noopener";
|
|
567
|
+
LinkRel2["noreferrer"] = "noreferrer";
|
|
568
|
+
LinkRel2["sponsored"] = "sponsored";
|
|
569
|
+
return LinkRel2;
|
|
570
|
+
})(LinkRel || {});
|
|
571
|
+
var DataType = /* @__PURE__ */ ((DataType2) => {
|
|
572
|
+
DataType2["Undefined"] = "Undefined";
|
|
573
|
+
DataType2["Photo"] = "Photo";
|
|
574
|
+
DataType2["Video"] = "Video";
|
|
575
|
+
DataType2["Text"] = "Text";
|
|
576
|
+
return DataType2;
|
|
577
|
+
})(DataType || {});
|
|
578
|
+
var Source = /* @__PURE__ */ ((Source2) => {
|
|
579
|
+
Source2["Undefined"] = "Undefined";
|
|
580
|
+
Source2["Youtube"] = "Youtube";
|
|
581
|
+
Source2["Vimeo"] = "Vimeo";
|
|
582
|
+
Source2["Custom"] = "Custom";
|
|
583
|
+
return Source2;
|
|
584
|
+
})(Source || {});
|
|
585
|
+
var MediaOwner = /* @__PURE__ */ ((MediaOwner2) => {
|
|
586
|
+
MediaOwner2["Undefined"] = "Undefined";
|
|
587
|
+
MediaOwner2["Wix"] = "Wix";
|
|
588
|
+
MediaOwner2["DeviantArt"] = "DeviantArt";
|
|
589
|
+
MediaOwner2["Custom"] = "Custom";
|
|
590
|
+
return MediaOwner2;
|
|
591
|
+
})(MediaOwner || {});
|
|
592
|
+
var PrivacySettings = /* @__PURE__ */ ((PrivacySettings2) => {
|
|
593
|
+
PrivacySettings2["Undefined"] = "Undefined";
|
|
594
|
+
PrivacySettings2["Public"] = "Public";
|
|
595
|
+
PrivacySettings2["Secret"] = "Secret";
|
|
596
|
+
return PrivacySettings2;
|
|
597
|
+
})(PrivacySettings || {});
|
|
598
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
599
|
+
Status2["UNKNOWN"] = "UNKNOWN";
|
|
600
|
+
Status2["HANDLED"] = "HANDLED";
|
|
601
|
+
Status2["NOTHING_TO_HANDLE"] = "NOTHING_TO_HANDLE";
|
|
602
|
+
return Status2;
|
|
603
|
+
})(Status || {});
|
|
604
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
605
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
606
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
607
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
608
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
609
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
610
|
+
return WebhookIdentityType2;
|
|
611
|
+
})(WebhookIdentityType || {});
|
|
612
|
+
var MemberStatus = /* @__PURE__ */ ((MemberStatus2) => {
|
|
613
|
+
MemberStatus2["UNDEFINED"] = "UNDEFINED";
|
|
614
|
+
MemberStatus2["NOT_MEMBER"] = "NOT_MEMBER";
|
|
615
|
+
MemberStatus2["MEMBER"] = "MEMBER";
|
|
616
|
+
MemberStatus2["ADMIN"] = "ADMIN";
|
|
617
|
+
return MemberStatus2;
|
|
618
|
+
})(MemberStatus || {});
|
|
619
|
+
async function get2(mediaCollectionId, options) {
|
|
620
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
621
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
622
|
+
mediaCollectionId,
|
|
623
|
+
offset: options?.offset,
|
|
624
|
+
limit: options?.limit
|
|
625
|
+
});
|
|
626
|
+
const reqOpts = get(payload);
|
|
627
|
+
sideEffects?.onSiteCall?.();
|
|
628
|
+
try {
|
|
629
|
+
const result = await httpClient.request(reqOpts);
|
|
630
|
+
sideEffects?.onSuccess?.(result);
|
|
631
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.mediaCollection;
|
|
632
|
+
} catch (err) {
|
|
633
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
634
|
+
err,
|
|
635
|
+
{
|
|
636
|
+
spreadPathsToArguments: {},
|
|
637
|
+
explicitPathsToArguments: {
|
|
638
|
+
mediaCollectionId: "$[0]",
|
|
639
|
+
offset: "$[1].offset",
|
|
640
|
+
limit: "$[1].limit"
|
|
641
|
+
},
|
|
642
|
+
singleArgumentUnchanged: false
|
|
643
|
+
},
|
|
644
|
+
["mediaCollectionId", "options"]
|
|
645
|
+
);
|
|
646
|
+
sideEffects?.onError?.(err);
|
|
647
|
+
throw transformedError;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
async function listCollectionsForItem2(itemId, options) {
|
|
651
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
652
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
653
|
+
itemId,
|
|
654
|
+
galleryId: options?.galleryId
|
|
655
|
+
});
|
|
656
|
+
const reqOpts = listCollectionsForItem(payload);
|
|
657
|
+
sideEffects?.onSiteCall?.();
|
|
658
|
+
try {
|
|
659
|
+
const result = await httpClient.request(reqOpts);
|
|
660
|
+
sideEffects?.onSuccess?.(result);
|
|
661
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
662
|
+
} catch (err) {
|
|
663
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
664
|
+
err,
|
|
665
|
+
{
|
|
666
|
+
spreadPathsToArguments: {},
|
|
667
|
+
explicitPathsToArguments: {
|
|
668
|
+
itemId: "$[0]",
|
|
669
|
+
galleryId: "$[1].galleryId"
|
|
670
|
+
},
|
|
671
|
+
singleArgumentUnchanged: false
|
|
672
|
+
},
|
|
673
|
+
["itemId", "options"]
|
|
674
|
+
);
|
|
675
|
+
sideEffects?.onError?.(err);
|
|
676
|
+
throw transformedError;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
async function getCollectionItem2(identifiers) {
|
|
680
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
681
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
682
|
+
mediaCollectionId: identifiers?.mediaCollectionId,
|
|
683
|
+
itemId: identifiers?.itemId
|
|
684
|
+
});
|
|
685
|
+
const reqOpts = getCollectionItem(payload);
|
|
686
|
+
sideEffects?.onSiteCall?.();
|
|
687
|
+
try {
|
|
688
|
+
const result = await httpClient.request(reqOpts);
|
|
689
|
+
sideEffects?.onSuccess?.(result);
|
|
690
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
691
|
+
} catch (err) {
|
|
692
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
693
|
+
err,
|
|
694
|
+
{
|
|
695
|
+
spreadPathsToArguments: {},
|
|
696
|
+
explicitPathsToArguments: {
|
|
697
|
+
mediaCollectionId: "$[0].mediaCollectionId",
|
|
698
|
+
itemId: "$[0].itemId"
|
|
699
|
+
},
|
|
700
|
+
singleArgumentUnchanged: false
|
|
701
|
+
},
|
|
702
|
+
["identifiers"]
|
|
703
|
+
);
|
|
704
|
+
sideEffects?.onError?.(err);
|
|
705
|
+
throw transformedError;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
async function list2(options) {
|
|
709
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
710
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
711
|
+
limit: options?.limit,
|
|
712
|
+
offset: options?.offset,
|
|
713
|
+
filterByRoles: options?.filterByRoles
|
|
714
|
+
});
|
|
715
|
+
const reqOpts = list(payload);
|
|
716
|
+
sideEffects?.onSiteCall?.();
|
|
717
|
+
try {
|
|
718
|
+
const result = await httpClient.request(reqOpts);
|
|
719
|
+
sideEffects?.onSuccess?.(result);
|
|
720
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
721
|
+
} catch (err) {
|
|
722
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
723
|
+
err,
|
|
724
|
+
{
|
|
725
|
+
spreadPathsToArguments: {},
|
|
726
|
+
explicitPathsToArguments: {
|
|
727
|
+
limit: "$[0].limit",
|
|
728
|
+
offset: "$[0].offset",
|
|
729
|
+
filterByRoles: "$[0].filterByRoles"
|
|
730
|
+
},
|
|
731
|
+
singleArgumentUnchanged: false
|
|
732
|
+
},
|
|
733
|
+
["options"]
|
|
734
|
+
);
|
|
735
|
+
sideEffects?.onError?.(err);
|
|
736
|
+
throw transformedError;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
async function create2(name, options) {
|
|
740
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
741
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
742
|
+
name,
|
|
743
|
+
description: options?.description,
|
|
744
|
+
privacySettings: options?.privacySettings,
|
|
745
|
+
items: options?.items
|
|
746
|
+
});
|
|
747
|
+
const reqOpts = create(payload);
|
|
748
|
+
sideEffects?.onSiteCall?.();
|
|
749
|
+
try {
|
|
750
|
+
const result = await httpClient.request(reqOpts);
|
|
751
|
+
sideEffects?.onSuccess?.(result);
|
|
752
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
753
|
+
} catch (err) {
|
|
754
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
755
|
+
err,
|
|
756
|
+
{
|
|
757
|
+
spreadPathsToArguments: {},
|
|
758
|
+
explicitPathsToArguments: {
|
|
759
|
+
name: "$[0]",
|
|
760
|
+
description: "$[1].description",
|
|
761
|
+
privacySettings: "$[1].privacySettings",
|
|
762
|
+
items: "$[1].items"
|
|
763
|
+
},
|
|
764
|
+
singleArgumentUnchanged: false
|
|
765
|
+
},
|
|
766
|
+
["name", "options"]
|
|
767
|
+
);
|
|
768
|
+
sideEffects?.onError?.(err);
|
|
769
|
+
throw transformedError;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
async function partiallyUpdate2(_id, mediaCollection, options) {
|
|
773
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
774
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
775
|
+
mediaCollection: { ...mediaCollection, id: _id },
|
|
776
|
+
fieldMask: options?.fieldMask
|
|
777
|
+
});
|
|
778
|
+
const reqOpts = partiallyUpdate(payload);
|
|
779
|
+
sideEffects?.onSiteCall?.();
|
|
780
|
+
try {
|
|
781
|
+
const result = await httpClient.request(reqOpts);
|
|
782
|
+
sideEffects?.onSuccess?.(result);
|
|
783
|
+
} catch (err) {
|
|
784
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
785
|
+
err,
|
|
786
|
+
{
|
|
787
|
+
spreadPathsToArguments: { mediaCollection: "$[1]" },
|
|
788
|
+
explicitPathsToArguments: {
|
|
789
|
+
"mediaCollection.id": "$[0]",
|
|
790
|
+
fieldMask: "$[2].fieldMask"
|
|
791
|
+
},
|
|
792
|
+
singleArgumentUnchanged: false
|
|
793
|
+
},
|
|
794
|
+
["_id", "mediaCollection", "options"]
|
|
795
|
+
);
|
|
796
|
+
sideEffects?.onError?.(err);
|
|
797
|
+
throw transformedError;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
async function _delete2(mediaCollectionId) {
|
|
801
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
802
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
803
|
+
mediaCollectionId
|
|
804
|
+
});
|
|
805
|
+
const reqOpts = _delete(payload);
|
|
806
|
+
sideEffects?.onSiteCall?.();
|
|
807
|
+
try {
|
|
808
|
+
const result = await httpClient.request(reqOpts);
|
|
809
|
+
sideEffects?.onSuccess?.(result);
|
|
810
|
+
} catch (err) {
|
|
811
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
812
|
+
err,
|
|
813
|
+
{
|
|
814
|
+
spreadPathsToArguments: {},
|
|
815
|
+
explicitPathsToArguments: { mediaCollectionId: "$[0]" },
|
|
816
|
+
singleArgumentUnchanged: false
|
|
817
|
+
},
|
|
818
|
+
["mediaCollectionId"]
|
|
819
|
+
);
|
|
820
|
+
sideEffects?.onError?.(err);
|
|
821
|
+
throw transformedError;
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
async function listCollectionMembers2(mediaCollectionId, options) {
|
|
825
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
826
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
827
|
+
mediaCollectionId,
|
|
828
|
+
filterBy: options?.filterBy
|
|
829
|
+
});
|
|
830
|
+
const reqOpts = listCollectionMembers(payload);
|
|
831
|
+
sideEffects?.onSiteCall?.();
|
|
832
|
+
try {
|
|
833
|
+
const result = await httpClient.request(reqOpts);
|
|
834
|
+
sideEffects?.onSuccess?.(result);
|
|
835
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
836
|
+
} catch (err) {
|
|
837
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
838
|
+
err,
|
|
839
|
+
{
|
|
840
|
+
spreadPathsToArguments: {},
|
|
841
|
+
explicitPathsToArguments: {
|
|
842
|
+
mediaCollectionId: "$[0]",
|
|
843
|
+
filterBy: "$[1].filterBy"
|
|
844
|
+
},
|
|
845
|
+
singleArgumentUnchanged: false
|
|
846
|
+
},
|
|
847
|
+
["mediaCollectionId", "options"]
|
|
848
|
+
);
|
|
849
|
+
sideEffects?.onError?.(err);
|
|
850
|
+
throw transformedError;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
async function addItems2(mediaCollectionId, options) {
|
|
854
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
855
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
856
|
+
mediaCollectionId,
|
|
857
|
+
items: options?.items
|
|
858
|
+
});
|
|
859
|
+
const reqOpts = addItems(payload);
|
|
860
|
+
sideEffects?.onSiteCall?.();
|
|
861
|
+
try {
|
|
862
|
+
const result = await httpClient.request(reqOpts);
|
|
863
|
+
sideEffects?.onSuccess?.(result);
|
|
864
|
+
} catch (err) {
|
|
865
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
866
|
+
err,
|
|
867
|
+
{
|
|
868
|
+
spreadPathsToArguments: {},
|
|
869
|
+
explicitPathsToArguments: {
|
|
870
|
+
mediaCollectionId: "$[0]",
|
|
871
|
+
items: "$[1].items"
|
|
872
|
+
},
|
|
873
|
+
singleArgumentUnchanged: false
|
|
874
|
+
},
|
|
875
|
+
["mediaCollectionId", "options"]
|
|
876
|
+
);
|
|
877
|
+
sideEffects?.onError?.(err);
|
|
878
|
+
throw transformedError;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
async function removeItems2(mediaCollectionId, options) {
|
|
882
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
883
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
884
|
+
mediaCollectionId,
|
|
885
|
+
itemsIds: options?.itemsIds
|
|
886
|
+
});
|
|
887
|
+
const reqOpts = removeItems(payload);
|
|
888
|
+
sideEffects?.onSiteCall?.();
|
|
889
|
+
try {
|
|
890
|
+
const result = await httpClient.request(reqOpts);
|
|
891
|
+
sideEffects?.onSuccess?.(result);
|
|
892
|
+
} catch (err) {
|
|
893
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
894
|
+
err,
|
|
895
|
+
{
|
|
896
|
+
spreadPathsToArguments: {},
|
|
897
|
+
explicitPathsToArguments: {
|
|
898
|
+
mediaCollectionId: "$[0]",
|
|
899
|
+
itemsIds: "$[1].itemsIds"
|
|
900
|
+
},
|
|
901
|
+
singleArgumentUnchanged: false
|
|
902
|
+
},
|
|
903
|
+
["mediaCollectionId", "options"]
|
|
904
|
+
);
|
|
905
|
+
sideEffects?.onError?.(err);
|
|
906
|
+
throw transformedError;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
async function joinToCollection2(mediaCollectionId) {
|
|
910
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
911
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
912
|
+
mediaCollectionId
|
|
913
|
+
});
|
|
914
|
+
const reqOpts = joinToCollection(payload);
|
|
915
|
+
sideEffects?.onSiteCall?.();
|
|
916
|
+
try {
|
|
917
|
+
const result = await httpClient.request(reqOpts);
|
|
918
|
+
sideEffects?.onSuccess?.(result);
|
|
919
|
+
} catch (err) {
|
|
920
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
921
|
+
err,
|
|
922
|
+
{
|
|
923
|
+
spreadPathsToArguments: {},
|
|
924
|
+
explicitPathsToArguments: { mediaCollectionId: "$[0]" },
|
|
925
|
+
singleArgumentUnchanged: false
|
|
926
|
+
},
|
|
927
|
+
["mediaCollectionId"]
|
|
928
|
+
);
|
|
929
|
+
sideEffects?.onError?.(err);
|
|
930
|
+
throw transformedError;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
async function leaveCollection2(mediaCollectionId) {
|
|
934
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
935
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
936
|
+
mediaCollectionId
|
|
937
|
+
});
|
|
938
|
+
const reqOpts = leaveCollection(payload);
|
|
939
|
+
sideEffects?.onSiteCall?.();
|
|
940
|
+
try {
|
|
941
|
+
const result = await httpClient.request(reqOpts);
|
|
942
|
+
sideEffects?.onSuccess?.(result);
|
|
943
|
+
} catch (err) {
|
|
944
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
945
|
+
err,
|
|
946
|
+
{
|
|
947
|
+
spreadPathsToArguments: {},
|
|
948
|
+
explicitPathsToArguments: { mediaCollectionId: "$[0]" },
|
|
949
|
+
singleArgumentUnchanged: false
|
|
950
|
+
},
|
|
951
|
+
["mediaCollectionId"]
|
|
952
|
+
);
|
|
953
|
+
sideEffects?.onError?.(err);
|
|
954
|
+
throw transformedError;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
async function listCollectionItems2(mediaCollectionId) {
|
|
958
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
959
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
960
|
+
mediaCollectionId
|
|
961
|
+
});
|
|
962
|
+
const reqOpts = listCollectionItems(payload);
|
|
963
|
+
sideEffects?.onSiteCall?.();
|
|
964
|
+
try {
|
|
965
|
+
const result = await httpClient.request(reqOpts);
|
|
966
|
+
sideEffects?.onSuccess?.(result);
|
|
967
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
968
|
+
} catch (err) {
|
|
969
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
970
|
+
err,
|
|
971
|
+
{
|
|
972
|
+
spreadPathsToArguments: {},
|
|
973
|
+
explicitPathsToArguments: { mediaCollectionId: "$[0]" },
|
|
974
|
+
singleArgumentUnchanged: false
|
|
975
|
+
},
|
|
976
|
+
["mediaCollectionId"]
|
|
977
|
+
);
|
|
978
|
+
sideEffects?.onError?.(err);
|
|
979
|
+
throw transformedError;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
// src/collections-v1-collection-media-collections.public.ts
|
|
984
|
+
function get3(httpClient) {
|
|
985
|
+
return (mediaCollectionId, options) => get2(
|
|
986
|
+
mediaCollectionId,
|
|
987
|
+
options,
|
|
988
|
+
// @ts-ignore
|
|
989
|
+
{ httpClient }
|
|
990
|
+
);
|
|
991
|
+
}
|
|
992
|
+
function listCollectionsForItem3(httpClient) {
|
|
993
|
+
return (itemId, options) => listCollectionsForItem2(
|
|
994
|
+
itemId,
|
|
995
|
+
options,
|
|
996
|
+
// @ts-ignore
|
|
997
|
+
{ httpClient }
|
|
998
|
+
);
|
|
999
|
+
}
|
|
1000
|
+
function getCollectionItem3(httpClient) {
|
|
1001
|
+
return (identifiers) => getCollectionItem2(
|
|
1002
|
+
identifiers,
|
|
1003
|
+
// @ts-ignore
|
|
1004
|
+
{ httpClient }
|
|
1005
|
+
);
|
|
1006
|
+
}
|
|
1007
|
+
function list3(httpClient) {
|
|
1008
|
+
return (options) => list2(
|
|
1009
|
+
options,
|
|
1010
|
+
// @ts-ignore
|
|
1011
|
+
{ httpClient }
|
|
1012
|
+
);
|
|
1013
|
+
}
|
|
1014
|
+
function create3(httpClient) {
|
|
1015
|
+
return (name, options) => create2(
|
|
1016
|
+
name,
|
|
1017
|
+
options,
|
|
1018
|
+
// @ts-ignore
|
|
1019
|
+
{ httpClient }
|
|
1020
|
+
);
|
|
1021
|
+
}
|
|
1022
|
+
function partiallyUpdate3(httpClient) {
|
|
1023
|
+
return (_id, mediaCollection, options) => partiallyUpdate2(
|
|
1024
|
+
_id,
|
|
1025
|
+
mediaCollection,
|
|
1026
|
+
options,
|
|
1027
|
+
// @ts-ignore
|
|
1028
|
+
{ httpClient }
|
|
1029
|
+
);
|
|
1030
|
+
}
|
|
1031
|
+
function _delete3(httpClient) {
|
|
1032
|
+
return (mediaCollectionId) => _delete2(
|
|
1033
|
+
mediaCollectionId,
|
|
1034
|
+
// @ts-ignore
|
|
1035
|
+
{ httpClient }
|
|
1036
|
+
);
|
|
1037
|
+
}
|
|
1038
|
+
function listCollectionMembers3(httpClient) {
|
|
1039
|
+
return (mediaCollectionId, options) => listCollectionMembers2(
|
|
1040
|
+
mediaCollectionId,
|
|
1041
|
+
options,
|
|
1042
|
+
// @ts-ignore
|
|
1043
|
+
{ httpClient }
|
|
1044
|
+
);
|
|
1045
|
+
}
|
|
1046
|
+
function addItems3(httpClient) {
|
|
1047
|
+
return (mediaCollectionId, options) => addItems2(
|
|
1048
|
+
mediaCollectionId,
|
|
1049
|
+
options,
|
|
1050
|
+
// @ts-ignore
|
|
1051
|
+
{ httpClient }
|
|
1052
|
+
);
|
|
1053
|
+
}
|
|
1054
|
+
function removeItems3(httpClient) {
|
|
1055
|
+
return (mediaCollectionId, options) => removeItems2(
|
|
1056
|
+
mediaCollectionId,
|
|
1057
|
+
options,
|
|
1058
|
+
// @ts-ignore
|
|
1059
|
+
{ httpClient }
|
|
1060
|
+
);
|
|
1061
|
+
}
|
|
1062
|
+
function joinToCollection3(httpClient) {
|
|
1063
|
+
return (mediaCollectionId) => joinToCollection2(
|
|
1064
|
+
mediaCollectionId,
|
|
1065
|
+
// @ts-ignore
|
|
1066
|
+
{ httpClient }
|
|
1067
|
+
);
|
|
1068
|
+
}
|
|
1069
|
+
function leaveCollection3(httpClient) {
|
|
1070
|
+
return (mediaCollectionId) => leaveCollection2(
|
|
1071
|
+
mediaCollectionId,
|
|
1072
|
+
// @ts-ignore
|
|
1073
|
+
{ httpClient }
|
|
1074
|
+
);
|
|
1075
|
+
}
|
|
1076
|
+
function listCollectionItems3(httpClient) {
|
|
1077
|
+
return (mediaCollectionId) => listCollectionItems2(
|
|
1078
|
+
mediaCollectionId,
|
|
1079
|
+
// @ts-ignore
|
|
1080
|
+
{ httpClient }
|
|
1081
|
+
);
|
|
1082
|
+
}
|
|
1083
|
+
var onCollectionCreated = (0, import_sdk_types.EventDefinition)(
|
|
1084
|
+
"wix.collections.collection_created",
|
|
1085
|
+
true,
|
|
1086
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1087
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1088
|
+
{
|
|
1089
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1090
|
+
paths: [
|
|
1091
|
+
{ path: "entity.createdDate" },
|
|
1092
|
+
{ path: "entity.items.addedDate" },
|
|
1093
|
+
{ path: "entity.items.updatedDate" },
|
|
1094
|
+
{ path: "metadata.eventTime" }
|
|
1095
|
+
]
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1099
|
+
paths: [
|
|
1100
|
+
{ path: "entity.items.sortOrder" },
|
|
1101
|
+
{ path: "entity.items.photoMetadata.focalPoint.x" },
|
|
1102
|
+
{ path: "entity.items.photoMetadata.focalPoint.y" },
|
|
1103
|
+
{ path: "entity.items.videoMetadata.posters.focalPoint.x" },
|
|
1104
|
+
{ path: "entity.items.videoMetadata.posters.focalPoint.y" },
|
|
1105
|
+
{ path: "entity.items.photoMetadata.unsharpMasking.amount" },
|
|
1106
|
+
{ path: "entity.items.photoMetadata.unsharpMasking.radius" },
|
|
1107
|
+
{ path: "entity.items.photoMetadata.unsharpMasking.threshold" }
|
|
1108
|
+
]
|
|
1109
|
+
}
|
|
1110
|
+
])
|
|
1111
|
+
)
|
|
1112
|
+
)();
|
|
1113
|
+
|
|
1114
|
+
// src/collections-v1-collection-media-collections.context.ts
|
|
1115
|
+
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1116
|
+
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1117
|
+
var get4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(get3);
|
|
1118
|
+
var listCollectionsForItem4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listCollectionsForItem3);
|
|
1119
|
+
var getCollectionItem4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCollectionItem3);
|
|
1120
|
+
var list4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(list3);
|
|
1121
|
+
var create4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(create3);
|
|
1122
|
+
var partiallyUpdate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(partiallyUpdate3);
|
|
1123
|
+
var _delete4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(_delete3);
|
|
1124
|
+
var listCollectionMembers4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listCollectionMembers3);
|
|
1125
|
+
var addItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addItems3);
|
|
1126
|
+
var removeItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeItems3);
|
|
1127
|
+
var joinToCollection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(joinToCollection3);
|
|
1128
|
+
var leaveCollection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(leaveCollection3);
|
|
1129
|
+
var listCollectionItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listCollectionItems3);
|
|
1130
|
+
var onCollectionCreated2 = (0, import_event_definition_modules.createEventModule)(onCollectionCreated);
|
|
1131
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1132
|
+
0 && (module.exports = {
|
|
1133
|
+
DataType,
|
|
1134
|
+
LinkRel,
|
|
1135
|
+
MediaOwner,
|
|
1136
|
+
MemberStatus,
|
|
1137
|
+
PrivacySettings,
|
|
1138
|
+
Source,
|
|
1139
|
+
Status,
|
|
1140
|
+
Type,
|
|
1141
|
+
WebhookIdentityType,
|
|
1142
|
+
_delete,
|
|
1143
|
+
addItems,
|
|
1144
|
+
create,
|
|
1145
|
+
get,
|
|
1146
|
+
getCollectionItem,
|
|
1147
|
+
joinToCollection,
|
|
1148
|
+
leaveCollection,
|
|
1149
|
+
list,
|
|
1150
|
+
listCollectionItems,
|
|
1151
|
+
listCollectionMembers,
|
|
1152
|
+
listCollectionsForItem,
|
|
1153
|
+
onCollectionCreated,
|
|
1154
|
+
partiallyUpdate,
|
|
1155
|
+
removeItems
|
|
1156
|
+
});
|
|
1157
|
+
//# sourceMappingURL=index.js.map
|