@wix/auto_sdk_fast-gallery_galleries 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,736 @@
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
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ bulkCreateGalleries: () => bulkCreateGalleries2,
24
+ bulkDeleteGalleries: () => bulkDeleteGalleries2,
25
+ bulkUpdateGalleries: () => bulkUpdateGalleries2,
26
+ createGallery: () => createGallery2,
27
+ getDeletedGallery: () => getDeletedGallery2,
28
+ getGallery: () => getGallery2,
29
+ getGalleryByDraftGalleryId: () => getGalleryByDraftGalleryId2,
30
+ listDeletedGalleries: () => listDeletedGalleries2,
31
+ queryGalleries: () => queryGalleries2,
32
+ removeGalleryFromTrashBin: () => removeGalleryFromTrashBin2,
33
+ restoreGalleryFromTrashBin: () => restoreGalleryFromTrashBin2,
34
+ updateExtendedFields: () => updateExtendedFields2,
35
+ updateGallery: () => updateGallery2
36
+ });
37
+ module.exports = __toCommonJS(meta_exports);
38
+
39
+ // src/fastgallery-gallery-v1-gallery-galleries.http.ts
40
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
41
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
42
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
43
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
44
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
45
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
46
+ function resolveWixFastgalleryGalleryV1GalleryServiceUrl(opts) {
47
+ const domainToMappings = {
48
+ "editor._base_domain_": [
49
+ {
50
+ srcPath: "/_api/gallery",
51
+ destPath: ""
52
+ }
53
+ ],
54
+ "blocks._base_domain_": [
55
+ {
56
+ srcPath: "/_api/gallery",
57
+ destPath: ""
58
+ }
59
+ ],
60
+ "create.editorx": [
61
+ {
62
+ srcPath: "/_api/gallery",
63
+ destPath: ""
64
+ }
65
+ ],
66
+ _: [
67
+ {
68
+ srcPath: "/_api/gallery",
69
+ destPath: ""
70
+ }
71
+ ],
72
+ "*.dev.wix-code.com": [
73
+ {
74
+ srcPath: "/_api/gallery",
75
+ destPath: ""
76
+ }
77
+ ],
78
+ "www.wixapis.com": [
79
+ {
80
+ srcPath: "/fastgallery/gallery/v1/bulk/galleries",
81
+ destPath: "/v1/bulk/galleries"
82
+ },
83
+ {
84
+ srcPath: "/fastgallery/gallery/v1/galleries",
85
+ destPath: "/v1/galleries"
86
+ }
87
+ ]
88
+ };
89
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
90
+ }
91
+ var PACKAGE_NAME = "@wix/auto_sdk_fast-gallery_galleries";
92
+ function createGallery(payload) {
93
+ function __createGallery({ host }) {
94
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
95
+ {
96
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
97
+ paths: [
98
+ { path: "gallery.createdDate" },
99
+ { path: "gallery.updatedDate" }
100
+ ]
101
+ }
102
+ ]);
103
+ const metadata = {
104
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
105
+ method: "POST",
106
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.CreateGallery",
107
+ packageName: PACKAGE_NAME,
108
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
109
+ protoPath: "/v1/galleries",
110
+ data: serializedData,
111
+ host
112
+ }),
113
+ data: serializedData,
114
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
115
+ {
116
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
117
+ paths: [
118
+ { path: "gallery.createdDate" },
119
+ { path: "gallery.updatedDate" }
120
+ ]
121
+ }
122
+ ])
123
+ };
124
+ return metadata;
125
+ }
126
+ return __createGallery;
127
+ }
128
+ function getGallery(payload) {
129
+ function __getGallery({ host }) {
130
+ const metadata = {
131
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
132
+ method: "GET",
133
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.GetGallery",
134
+ packageName: PACKAGE_NAME,
135
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
136
+ protoPath: "/v1/galleries/{galleryId}",
137
+ data: payload,
138
+ host
139
+ }),
140
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
141
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
142
+ {
143
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
144
+ paths: [
145
+ { path: "gallery.createdDate" },
146
+ { path: "gallery.updatedDate" }
147
+ ]
148
+ }
149
+ ])
150
+ };
151
+ return metadata;
152
+ }
153
+ return __getGallery;
154
+ }
155
+ function getGalleryByDraftGalleryId(payload) {
156
+ function __getGalleryByDraftGalleryId({ host }) {
157
+ const metadata = {
158
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
159
+ method: "GET",
160
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.GetGalleryByDraftGalleryId",
161
+ packageName: PACKAGE_NAME,
162
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
163
+ protoPath: "/v1/galleries/draft-gallery-id/{draftGalleryId}",
164
+ data: payload,
165
+ host
166
+ }),
167
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
168
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
169
+ {
170
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
171
+ paths: [
172
+ { path: "gallery.createdDate" },
173
+ { path: "gallery.updatedDate" }
174
+ ]
175
+ }
176
+ ])
177
+ };
178
+ return metadata;
179
+ }
180
+ return __getGalleryByDraftGalleryId;
181
+ }
182
+ function updateGallery(payload) {
183
+ function __updateGallery({ host }) {
184
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
185
+ {
186
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
187
+ paths: [{ path: "fieldMask" }]
188
+ },
189
+ {
190
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
191
+ paths: [
192
+ { path: "gallery.createdDate" },
193
+ { path: "gallery.updatedDate" }
194
+ ]
195
+ }
196
+ ]);
197
+ const metadata = {
198
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
199
+ method: "PATCH",
200
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.UpdateGallery",
201
+ packageName: PACKAGE_NAME,
202
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
203
+ protoPath: "/v1/galleries/{gallery.id}",
204
+ data: serializedData,
205
+ host
206
+ }),
207
+ data: serializedData,
208
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
209
+ {
210
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
211
+ paths: [
212
+ { path: "gallery.createdDate" },
213
+ { path: "gallery.updatedDate" }
214
+ ]
215
+ }
216
+ ])
217
+ };
218
+ return metadata;
219
+ }
220
+ return __updateGallery;
221
+ }
222
+ function queryGalleries(payload) {
223
+ function __queryGalleries({ host }) {
224
+ const metadata = {
225
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
226
+ method: "POST",
227
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.QueryGalleries",
228
+ packageName: PACKAGE_NAME,
229
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
230
+ protoPath: "/v1/galleries/query",
231
+ data: payload,
232
+ host
233
+ }),
234
+ data: payload,
235
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
236
+ {
237
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
238
+ paths: [
239
+ { path: "galleries.createdDate" },
240
+ { path: "galleries.updatedDate" }
241
+ ]
242
+ }
243
+ ]),
244
+ fallback: [
245
+ {
246
+ method: "POST",
247
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
248
+ protoPath: "/v1/galleries/query",
249
+ data: payload,
250
+ host
251
+ }),
252
+ data: payload
253
+ }
254
+ ]
255
+ };
256
+ return metadata;
257
+ }
258
+ return __queryGalleries;
259
+ }
260
+ function updateExtendedFields(payload) {
261
+ function __updateExtendedFields({ host }) {
262
+ const metadata = {
263
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
264
+ method: "POST",
265
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.UpdateExtendedFields",
266
+ packageName: PACKAGE_NAME,
267
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
268
+ protoPath: "/v1/galleries/{id}/update-extended-fields",
269
+ data: payload,
270
+ host
271
+ }),
272
+ data: payload,
273
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
274
+ {
275
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
276
+ paths: [
277
+ { path: "gallery.createdDate" },
278
+ { path: "gallery.updatedDate" }
279
+ ]
280
+ }
281
+ ])
282
+ };
283
+ return metadata;
284
+ }
285
+ return __updateExtendedFields;
286
+ }
287
+ function bulkCreateGalleries(payload) {
288
+ function __bulkCreateGalleries({ host }) {
289
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
290
+ {
291
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
292
+ paths: [
293
+ { path: "galleries.createdDate" },
294
+ { path: "galleries.updatedDate" }
295
+ ]
296
+ }
297
+ ]);
298
+ const metadata = {
299
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
300
+ method: "POST",
301
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.BulkCreateGalleries",
302
+ packageName: PACKAGE_NAME,
303
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
304
+ protoPath: "/v1/bulk/galleries/create",
305
+ data: serializedData,
306
+ host
307
+ }),
308
+ data: serializedData,
309
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
310
+ {
311
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
312
+ paths: [
313
+ { path: "results.item.createdDate" },
314
+ { path: "results.item.updatedDate" }
315
+ ]
316
+ }
317
+ ])
318
+ };
319
+ return metadata;
320
+ }
321
+ return __bulkCreateGalleries;
322
+ }
323
+ function bulkUpdateGalleries(payload) {
324
+ function __bulkUpdateGalleries({ host }) {
325
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
326
+ {
327
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
328
+ paths: [{ path: "galleries.fieldMask" }]
329
+ },
330
+ {
331
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
332
+ paths: [
333
+ { path: "galleries.gallery.createdDate" },
334
+ { path: "galleries.gallery.updatedDate" }
335
+ ]
336
+ }
337
+ ]);
338
+ const metadata = {
339
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
340
+ method: "POST",
341
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.BulkUpdateGalleries",
342
+ packageName: PACKAGE_NAME,
343
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
344
+ protoPath: "/v1/bulk/galleries/update",
345
+ data: serializedData,
346
+ host
347
+ }),
348
+ data: serializedData,
349
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
350
+ {
351
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
352
+ paths: [
353
+ { path: "results.item.createdDate" },
354
+ { path: "results.item.updatedDate" }
355
+ ]
356
+ }
357
+ ])
358
+ };
359
+ return metadata;
360
+ }
361
+ return __bulkUpdateGalleries;
362
+ }
363
+ function bulkDeleteGalleries(payload) {
364
+ function __bulkDeleteGalleries({ host }) {
365
+ const metadata = {
366
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
367
+ method: "POST",
368
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.BulkDeleteGalleries",
369
+ packageName: PACKAGE_NAME,
370
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
371
+ protoPath: "/v1/bulk/galleries/delete",
372
+ data: payload,
373
+ host
374
+ }),
375
+ data: payload
376
+ };
377
+ return metadata;
378
+ }
379
+ return __bulkDeleteGalleries;
380
+ }
381
+ function getDeletedGallery(payload) {
382
+ function __getDeletedGallery({ host }) {
383
+ const metadata = {
384
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
385
+ method: "GET",
386
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.GetDeletedGallery",
387
+ packageName: PACKAGE_NAME,
388
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
389
+ protoPath: "/v1/galleries/trash-bin/{galleryId}",
390
+ data: payload,
391
+ host
392
+ }),
393
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
394
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
395
+ {
396
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
397
+ paths: [
398
+ { path: "gallery.createdDate" },
399
+ { path: "gallery.updatedDate" }
400
+ ]
401
+ }
402
+ ])
403
+ };
404
+ return metadata;
405
+ }
406
+ return __getDeletedGallery;
407
+ }
408
+ function listDeletedGalleries(payload) {
409
+ function __listDeletedGalleries({ host }) {
410
+ const metadata = {
411
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
412
+ method: "GET",
413
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.ListDeletedGalleries",
414
+ packageName: PACKAGE_NAME,
415
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
416
+ protoPath: "/v1/galleries/trash-bin",
417
+ data: payload,
418
+ host
419
+ }),
420
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
421
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
422
+ {
423
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
424
+ paths: [
425
+ { path: "galleries.createdDate" },
426
+ { path: "galleries.updatedDate" }
427
+ ]
428
+ }
429
+ ])
430
+ };
431
+ return metadata;
432
+ }
433
+ return __listDeletedGalleries;
434
+ }
435
+ function restoreGalleryFromTrashBin(payload) {
436
+ function __restoreGalleryFromTrashBin({ host }) {
437
+ const metadata = {
438
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
439
+ method: "POST",
440
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.RestoreGalleryFromTrashBin",
441
+ packageName: PACKAGE_NAME,
442
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
443
+ protoPath: "/v1/galleries/trash-bin/{galleryId}/restore",
444
+ data: payload,
445
+ host
446
+ }),
447
+ data: payload,
448
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
449
+ {
450
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
451
+ paths: [
452
+ { path: "gallery.createdDate" },
453
+ { path: "gallery.updatedDate" }
454
+ ]
455
+ }
456
+ ])
457
+ };
458
+ return metadata;
459
+ }
460
+ return __restoreGalleryFromTrashBin;
461
+ }
462
+ function removeGalleryFromTrashBin(payload) {
463
+ function __removeGalleryFromTrashBin({ host }) {
464
+ const metadata = {
465
+ entityFqdn: "wix.fastgallery.gallery.v1.gallery",
466
+ method: "DELETE",
467
+ methodFqn: "wix.fastgallery.gallery.v1.GalleryService.RemoveGalleryFromTrashBin",
468
+ packageName: PACKAGE_NAME,
469
+ url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({
470
+ protoPath: "/v1/galleries/trash-bin/{galleryId}",
471
+ data: payload,
472
+ host
473
+ }),
474
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
475
+ };
476
+ return metadata;
477
+ }
478
+ return __removeGalleryFromTrashBin;
479
+ }
480
+
481
+ // src/fastgallery-gallery-v1-gallery-galleries.meta.ts
482
+ function createGallery2() {
483
+ const payload = {};
484
+ const getRequestOptions = createGallery(payload);
485
+ const getUrl = (context) => {
486
+ const { url } = getRequestOptions(context);
487
+ return url;
488
+ };
489
+ return {
490
+ getUrl,
491
+ httpMethod: "POST",
492
+ path: "/v1/galleries",
493
+ pathParams: {},
494
+ __requestType: null,
495
+ __originalRequestType: null,
496
+ __responseType: null,
497
+ __originalResponseType: null
498
+ };
499
+ }
500
+ function getGallery2() {
501
+ const payload = { galleryId: ":galleryId" };
502
+ const getRequestOptions = getGallery(payload);
503
+ const getUrl = (context) => {
504
+ const { url } = getRequestOptions(context);
505
+ return url;
506
+ };
507
+ return {
508
+ getUrl,
509
+ httpMethod: "GET",
510
+ path: "/v1/galleries/{galleryId}",
511
+ pathParams: { galleryId: "galleryId" },
512
+ __requestType: null,
513
+ __originalRequestType: null,
514
+ __responseType: null,
515
+ __originalResponseType: null
516
+ };
517
+ }
518
+ function getGalleryByDraftGalleryId2() {
519
+ const payload = { draftGalleryId: ":draftGalleryId" };
520
+ const getRequestOptions = getGalleryByDraftGalleryId(
521
+ payload
522
+ );
523
+ const getUrl = (context) => {
524
+ const { url } = getRequestOptions(context);
525
+ return url;
526
+ };
527
+ return {
528
+ getUrl,
529
+ httpMethod: "GET",
530
+ path: "/v1/galleries/draft-gallery-id/{draftGalleryId}",
531
+ pathParams: { draftGalleryId: "draftGalleryId" },
532
+ __requestType: null,
533
+ __originalRequestType: null,
534
+ __responseType: null,
535
+ __originalResponseType: null
536
+ };
537
+ }
538
+ function updateGallery2() {
539
+ const payload = { gallery: { id: ":galleryId" } };
540
+ const getRequestOptions = updateGallery(payload);
541
+ const getUrl = (context) => {
542
+ const { url } = getRequestOptions(context);
543
+ return url;
544
+ };
545
+ return {
546
+ getUrl,
547
+ httpMethod: "PATCH",
548
+ path: "/v1/galleries/{gallery.id}",
549
+ pathParams: { galleryId: "galleryId" },
550
+ __requestType: null,
551
+ __originalRequestType: null,
552
+ __responseType: null,
553
+ __originalResponseType: null
554
+ };
555
+ }
556
+ function queryGalleries2() {
557
+ const payload = {};
558
+ const getRequestOptions = queryGalleries(payload);
559
+ const getUrl = (context) => {
560
+ const { url } = getRequestOptions(context);
561
+ return url;
562
+ };
563
+ return {
564
+ getUrl,
565
+ httpMethod: "GET",
566
+ path: "/v1/galleries/query",
567
+ pathParams: {},
568
+ __requestType: null,
569
+ __originalRequestType: null,
570
+ __responseType: null,
571
+ __originalResponseType: null
572
+ };
573
+ }
574
+ function updateExtendedFields2() {
575
+ const payload = { id: ":id" };
576
+ const getRequestOptions = updateExtendedFields(payload);
577
+ const getUrl = (context) => {
578
+ const { url } = getRequestOptions(context);
579
+ return url;
580
+ };
581
+ return {
582
+ getUrl,
583
+ httpMethod: "POST",
584
+ path: "/v1/galleries/{id}/update-extended-fields",
585
+ pathParams: { id: "id" },
586
+ __requestType: null,
587
+ __originalRequestType: null,
588
+ __responseType: null,
589
+ __originalResponseType: null
590
+ };
591
+ }
592
+ function bulkCreateGalleries2() {
593
+ const payload = {};
594
+ const getRequestOptions = bulkCreateGalleries(payload);
595
+ const getUrl = (context) => {
596
+ const { url } = getRequestOptions(context);
597
+ return url;
598
+ };
599
+ return {
600
+ getUrl,
601
+ httpMethod: "POST",
602
+ path: "/v1/bulk/galleries/create",
603
+ pathParams: {},
604
+ __requestType: null,
605
+ __originalRequestType: null,
606
+ __responseType: null,
607
+ __originalResponseType: null
608
+ };
609
+ }
610
+ function bulkUpdateGalleries2() {
611
+ const payload = {};
612
+ const getRequestOptions = bulkUpdateGalleries(payload);
613
+ const getUrl = (context) => {
614
+ const { url } = getRequestOptions(context);
615
+ return url;
616
+ };
617
+ return {
618
+ getUrl,
619
+ httpMethod: "POST",
620
+ path: "/v1/bulk/galleries/update",
621
+ pathParams: {},
622
+ __requestType: null,
623
+ __originalRequestType: null,
624
+ __responseType: null,
625
+ __originalResponseType: null
626
+ };
627
+ }
628
+ function bulkDeleteGalleries2() {
629
+ const payload = {};
630
+ const getRequestOptions = bulkDeleteGalleries(payload);
631
+ const getUrl = (context) => {
632
+ const { url } = getRequestOptions(context);
633
+ return url;
634
+ };
635
+ return {
636
+ getUrl,
637
+ httpMethod: "POST",
638
+ path: "/v1/bulk/galleries/delete",
639
+ pathParams: {},
640
+ __requestType: null,
641
+ __originalRequestType: null,
642
+ __responseType: null,
643
+ __originalResponseType: null
644
+ };
645
+ }
646
+ function getDeletedGallery2() {
647
+ const payload = { galleryId: ":galleryId" };
648
+ const getRequestOptions = getDeletedGallery(payload);
649
+ const getUrl = (context) => {
650
+ const { url } = getRequestOptions(context);
651
+ return url;
652
+ };
653
+ return {
654
+ getUrl,
655
+ httpMethod: "GET",
656
+ path: "/v1/galleries/trash-bin/{galleryId}",
657
+ pathParams: { galleryId: "galleryId" },
658
+ __requestType: null,
659
+ __originalRequestType: null,
660
+ __responseType: null,
661
+ __originalResponseType: null
662
+ };
663
+ }
664
+ function listDeletedGalleries2() {
665
+ const payload = {};
666
+ const getRequestOptions = listDeletedGalleries(payload);
667
+ const getUrl = (context) => {
668
+ const { url } = getRequestOptions(context);
669
+ return url;
670
+ };
671
+ return {
672
+ getUrl,
673
+ httpMethod: "GET",
674
+ path: "/v1/galleries/trash-bin",
675
+ pathParams: {},
676
+ __requestType: null,
677
+ __originalRequestType: null,
678
+ __responseType: null,
679
+ __originalResponseType: null
680
+ };
681
+ }
682
+ function restoreGalleryFromTrashBin2() {
683
+ const payload = { galleryId: ":galleryId" };
684
+ const getRequestOptions = restoreGalleryFromTrashBin(
685
+ payload
686
+ );
687
+ const getUrl = (context) => {
688
+ const { url } = getRequestOptions(context);
689
+ return url;
690
+ };
691
+ return {
692
+ getUrl,
693
+ httpMethod: "POST",
694
+ path: "/v1/galleries/trash-bin/{galleryId}/restore",
695
+ pathParams: { galleryId: "galleryId" },
696
+ __requestType: null,
697
+ __originalRequestType: null,
698
+ __responseType: null,
699
+ __originalResponseType: null
700
+ };
701
+ }
702
+ function removeGalleryFromTrashBin2() {
703
+ const payload = { galleryId: ":galleryId" };
704
+ const getRequestOptions = removeGalleryFromTrashBin(payload);
705
+ const getUrl = (context) => {
706
+ const { url } = getRequestOptions(context);
707
+ return url;
708
+ };
709
+ return {
710
+ getUrl,
711
+ httpMethod: "DELETE",
712
+ path: "/v1/galleries/trash-bin/{galleryId}",
713
+ pathParams: { galleryId: "galleryId" },
714
+ __requestType: null,
715
+ __originalRequestType: null,
716
+ __responseType: null,
717
+ __originalResponseType: null
718
+ };
719
+ }
720
+ // Annotate the CommonJS export names for ESM import in node:
721
+ 0 && (module.exports = {
722
+ bulkCreateGalleries,
723
+ bulkDeleteGalleries,
724
+ bulkUpdateGalleries,
725
+ createGallery,
726
+ getDeletedGallery,
727
+ getGallery,
728
+ getGalleryByDraftGalleryId,
729
+ listDeletedGalleries,
730
+ queryGalleries,
731
+ removeGalleryFromTrashBin,
732
+ restoreGalleryFromTrashBin,
733
+ updateExtendedFields,
734
+ updateGallery
735
+ });
736
+ //# sourceMappingURL=meta.js.map