@wix/auto_sdk_pro-gallery_pro-gallery 1.0.8 → 1.0.10

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 (134) hide show
  1. package/build/index.d.mts +213 -0
  2. package/build/index.d.ts +213 -0
  3. package/build/index.js +1847 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +1796 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +213 -0
  8. package/build/internal/index.d.ts +213 -0
  9. package/build/internal/index.js +1847 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +1796 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +498 -0
  14. package/build/internal/meta.d.ts +498 -0
  15. package/build/internal/meta.js +1054 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +1016 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{es/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → internal/pro-gallery-v2-gallery-pro-gallery.universal-CExTgtbV.d.mts} +399 -208
  20. package/build/{cjs/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → internal/pro-gallery-v2-gallery-pro-gallery.universal-CExTgtbV.d.ts} +399 -208
  21. package/build/meta.d.mts +498 -0
  22. package/build/meta.d.ts +498 -0
  23. package/build/meta.js +1054 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +1016 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → pro-gallery-v2-gallery-pro-gallery.universal-CExTgtbV.d.mts} +399 -208
  28. package/build/{internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → pro-gallery-v2-gallery-pro-gallery.universal-CExTgtbV.d.ts} +399 -208
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +0 -56
  40. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js +0 -69
  41. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +0 -1
  42. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +0 -90
  43. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js +0 -875
  44. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +0 -1
  45. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.d.ts +0 -47
  46. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.js +0 -256
  47. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.js.map +0 -1
  48. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +0 -167
  49. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js +0 -309
  50. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +0 -1
  51. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js +0 -103
  52. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +0 -1
  53. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +0 -1830
  54. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +0 -850
  55. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +0 -56
  67. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.js +0 -56
  68. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +0 -1
  69. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +0 -90
  70. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.js +0 -860
  71. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +0 -1
  72. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.meta.d.ts +0 -47
  73. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.meta.js +0 -218
  74. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.meta.js.map +0 -1
  75. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +0 -167
  76. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.js +0 -284
  77. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +0 -1
  78. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.js +0 -100
  79. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +0 -1
  80. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +0 -1830
  81. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +0 -812
  82. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +0 -56
  93. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js +0 -69
  94. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +0 -1
  95. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +0 -90
  96. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js +0 -875
  97. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +0 -1
  98. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.d.ts +0 -47
  99. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.js +0 -256
  100. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.js.map +0 -1
  101. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +0 -167
  102. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js +0 -309
  103. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +0 -1
  104. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js +0 -103
  105. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +0 -1
  106. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +0 -1830
  107. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +0 -850
  108. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +0 -56
  119. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.js +0 -56
  120. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +0 -1
  121. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +0 -90
  122. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.js +0 -860
  123. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +0 -1
  124. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.meta.d.ts +0 -47
  125. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.meta.js +0 -218
  126. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.meta.js.map +0 -1
  127. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +0 -167
  128. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.js +0 -284
  129. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +0 -1
  130. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.js +0 -100
  131. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +0 -1
  132. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +0 -1830
  133. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +0 -812
  134. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +0 -1
package/build/meta.js ADDED
@@ -0,0 +1,1054 @@
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
+ bulkDeleteGalleryItems: () => bulkDeleteGalleryItems2,
24
+ createGallery: () => createGallery2,
25
+ createGalleryItem: () => createGalleryItem2,
26
+ deleteGallery: () => deleteGallery2,
27
+ deleteGalleryItem: () => deleteGalleryItem2,
28
+ deleteGalleryItems: () => deleteGalleryItems2,
29
+ getGallery: () => getGallery2,
30
+ getGalleryItem: () => getGalleryItem2,
31
+ listGalleries: () => listGalleries2,
32
+ listGalleryItems: () => listGalleryItems2,
33
+ updateGallery: () => updateGallery2,
34
+ updateGalleryItem: () => updateGalleryItem2
35
+ });
36
+ module.exports = __toCommonJS(meta_exports);
37
+
38
+ // src/pro-gallery-v2-gallery-pro-gallery.http.ts
39
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
40
+ var import_float = require("@wix/sdk-runtime/transformations/float");
41
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
42
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
43
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
44
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
45
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
46
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
47
+ function resolveComWixpressExposureProgalleryProGalleryUrl(opts) {
48
+ const domainToMappings = {
49
+ _: [
50
+ {
51
+ srcPath: "/_api/pro-gallery-server",
52
+ destPath: ""
53
+ }
54
+ ],
55
+ "manage._base_domain_": [
56
+ {
57
+ srcPath: "/_api/pro-gallery-server",
58
+ destPath: ""
59
+ }
60
+ ],
61
+ "www._base_domain_": [
62
+ {
63
+ srcPath: "/_api/pro-gallery-server",
64
+ destPath: ""
65
+ }
66
+ ],
67
+ "editor._base_domain_": [
68
+ {
69
+ srcPath: "/_api/pro-gallery-server",
70
+ destPath: ""
71
+ }
72
+ ],
73
+ "blocks._base_domain_": [
74
+ {
75
+ srcPath: "/_api/pro-gallery-server",
76
+ destPath: ""
77
+ }
78
+ ],
79
+ "create.editorx": [
80
+ {
81
+ srcPath: "/_api/pro-gallery-server",
82
+ destPath: ""
83
+ }
84
+ ],
85
+ "progallery.wixapps.net": [
86
+ {
87
+ srcPath: "/_api/pro-gallery-server",
88
+ destPath: ""
89
+ }
90
+ ],
91
+ "www.wixapis.com": [
92
+ {
93
+ srcPath: "/progallery",
94
+ destPath: ""
95
+ }
96
+ ],
97
+ "*.dev.wix-code.com": [
98
+ {
99
+ srcPath: "/_api/pro-gallery-server",
100
+ destPath: ""
101
+ }
102
+ ],
103
+ "api._api_base_domain_": [
104
+ {
105
+ srcPath: "/prime-server-proxy",
106
+ destPath: ""
107
+ }
108
+ ]
109
+ };
110
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
111
+ }
112
+ var PACKAGE_NAME = "@wix/auto_sdk_pro-gallery_pro-gallery";
113
+ function listGalleries(payload) {
114
+ function __listGalleries({ host }) {
115
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
116
+ {
117
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
118
+ paths: [{ path: "fields" }]
119
+ }
120
+ ]);
121
+ const metadata = {
122
+ entityFqdn: "wix.pro_gallery.v2.gallery",
123
+ method: "GET",
124
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.ListGalleries",
125
+ packageName: PACKAGE_NAME,
126
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
127
+ protoPath: "/v2/galleries",
128
+ data: serializedData,
129
+ host
130
+ }),
131
+ params: (0, import_rest_modules.toURLSearchParams)(serializedData),
132
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
133
+ {
134
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
135
+ paths: [
136
+ { path: "galleries.sortOrder" },
137
+ { path: "galleries.items.sortOrder" },
138
+ { path: "galleries.items.image.focalPoint.x" },
139
+ { path: "galleries.items.image.focalPoint.y" },
140
+ { path: "galleries.items.secondaryMedia.image.focalPoint.x" },
141
+ { path: "galleries.items.secondaryMedia.image.focalPoint.y" },
142
+ { path: "galleries.items.image.unsharpMasking.amount" },
143
+ { path: "galleries.items.image.unsharpMasking.radius" },
144
+ { path: "galleries.items.image.unsharpMasking.threshold" },
145
+ {
146
+ path: "galleries.items.secondaryMedia.image.unsharpMasking.amount"
147
+ },
148
+ {
149
+ path: "galleries.items.secondaryMedia.image.unsharpMasking.radius"
150
+ },
151
+ {
152
+ path: "galleries.items.secondaryMedia.image.unsharpMasking.threshold"
153
+ }
154
+ ]
155
+ },
156
+ {
157
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
158
+ paths: [
159
+ { path: "galleries.createdDate" },
160
+ { path: "galleries.items.createdDate" },
161
+ { path: "galleries.items.updatedDate" },
162
+ { path: "galleries.items.image.imageInfo.urlExpirationDate" },
163
+ { path: "galleries.items.video.videoInfo.urlExpirationDate" },
164
+ {
165
+ path: "galleries.items.video.videoInfo.resolutions.poster.urlExpirationDate"
166
+ },
167
+ {
168
+ path: "galleries.items.video.videoInfo.posters.urlExpirationDate"
169
+ },
170
+ {
171
+ path: "galleries.items.secondaryMedia.image.imageInfo.urlExpirationDate"
172
+ }
173
+ ]
174
+ }
175
+ ])
176
+ };
177
+ return metadata;
178
+ }
179
+ return __listGalleries;
180
+ }
181
+ function getGallery(payload) {
182
+ function __getGallery({ host }) {
183
+ const metadata = {
184
+ entityFqdn: "wix.pro_gallery.v2.gallery",
185
+ method: "GET",
186
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.GetGallery",
187
+ packageName: PACKAGE_NAME,
188
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
189
+ protoPath: "/v2/galleries/{galleryId}",
190
+ data: payload,
191
+ host
192
+ }),
193
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
194
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
195
+ {
196
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
197
+ paths: [
198
+ { path: "gallery.sortOrder" },
199
+ { path: "gallery.items.sortOrder" },
200
+ { path: "gallery.items.image.focalPoint.x" },
201
+ { path: "gallery.items.image.focalPoint.y" },
202
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
203
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
204
+ { path: "gallery.items.image.unsharpMasking.amount" },
205
+ { path: "gallery.items.image.unsharpMasking.radius" },
206
+ { path: "gallery.items.image.unsharpMasking.threshold" },
207
+ {
208
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.amount"
209
+ },
210
+ {
211
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.radius"
212
+ },
213
+ {
214
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
220
+ paths: [
221
+ { path: "gallery.createdDate" },
222
+ { path: "gallery.items.createdDate" },
223
+ { path: "gallery.items.updatedDate" },
224
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
225
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
226
+ {
227
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
228
+ },
229
+ {
230
+ path: "gallery.items.video.videoInfo.posters.urlExpirationDate"
231
+ },
232
+ {
233
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
234
+ }
235
+ ]
236
+ }
237
+ ])
238
+ };
239
+ return metadata;
240
+ }
241
+ return __getGallery;
242
+ }
243
+ function listGalleryItems(payload) {
244
+ function __listGalleryItems({ host }) {
245
+ const metadata = {
246
+ entityFqdn: "wix.pro_gallery.v2.gallery",
247
+ method: "GET",
248
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.ListGalleryItems",
249
+ packageName: PACKAGE_NAME,
250
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
251
+ protoPath: "/v2/galleries/{galleryId}/items",
252
+ data: payload,
253
+ host
254
+ }),
255
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
256
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
257
+ {
258
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
259
+ paths: [
260
+ { path: "items.sortOrder" },
261
+ { path: "items.image.focalPoint.x" },
262
+ { path: "items.image.focalPoint.y" },
263
+ { path: "items.secondaryMedia.image.focalPoint.x" },
264
+ { path: "items.secondaryMedia.image.focalPoint.y" },
265
+ { path: "items.image.unsharpMasking.amount" },
266
+ { path: "items.image.unsharpMasking.radius" },
267
+ { path: "items.image.unsharpMasking.threshold" },
268
+ { path: "items.secondaryMedia.image.unsharpMasking.amount" },
269
+ { path: "items.secondaryMedia.image.unsharpMasking.radius" },
270
+ { path: "items.secondaryMedia.image.unsharpMasking.threshold" }
271
+ ]
272
+ },
273
+ {
274
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
275
+ paths: [
276
+ { path: "items.createdDate" },
277
+ { path: "items.updatedDate" },
278
+ { path: "items.image.imageInfo.urlExpirationDate" },
279
+ { path: "items.video.videoInfo.urlExpirationDate" },
280
+ {
281
+ path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
282
+ },
283
+ { path: "items.video.videoInfo.posters.urlExpirationDate" },
284
+ {
285
+ path: "items.secondaryMedia.image.imageInfo.urlExpirationDate"
286
+ }
287
+ ]
288
+ }
289
+ ])
290
+ };
291
+ return metadata;
292
+ }
293
+ return __listGalleryItems;
294
+ }
295
+ function getGalleryItem(payload) {
296
+ function __getGalleryItem({ host }) {
297
+ const metadata = {
298
+ entityFqdn: "wix.pro_gallery.v2.gallery",
299
+ method: "GET",
300
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.GetGalleryItem",
301
+ packageName: PACKAGE_NAME,
302
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
303
+ protoPath: "/v2/galleries/{galleryId}/items/{itemId}",
304
+ data: payload,
305
+ host
306
+ }),
307
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
308
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
309
+ {
310
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
311
+ paths: [
312
+ { path: "item.sortOrder" },
313
+ { path: "item.image.focalPoint.x" },
314
+ { path: "item.image.focalPoint.y" },
315
+ { path: "item.secondaryMedia.image.focalPoint.x" },
316
+ { path: "item.secondaryMedia.image.focalPoint.y" },
317
+ { path: "item.image.unsharpMasking.amount" },
318
+ { path: "item.image.unsharpMasking.radius" },
319
+ { path: "item.image.unsharpMasking.threshold" },
320
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
321
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
322
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
323
+ ]
324
+ },
325
+ {
326
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
327
+ paths: [
328
+ { path: "item.createdDate" },
329
+ { path: "item.updatedDate" },
330
+ { path: "item.image.imageInfo.urlExpirationDate" },
331
+ { path: "item.video.videoInfo.urlExpirationDate" },
332
+ {
333
+ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
334
+ },
335
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
336
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
337
+ ]
338
+ }
339
+ ])
340
+ };
341
+ return metadata;
342
+ }
343
+ return __getGalleryItem;
344
+ }
345
+ function createGallery(payload) {
346
+ function __createGallery({ host }) {
347
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
348
+ {
349
+ transformFn: import_float.transformSDKFloatToRESTFloat,
350
+ paths: [
351
+ { path: "gallery.sortOrder" },
352
+ { path: "gallery.items.sortOrder" },
353
+ { path: "gallery.items.image.focalPoint.x" },
354
+ { path: "gallery.items.image.focalPoint.y" },
355
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
356
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
357
+ { path: "gallery.items.image.unsharpMasking.amount" },
358
+ { path: "gallery.items.image.unsharpMasking.radius" },
359
+ { path: "gallery.items.image.unsharpMasking.threshold" },
360
+ { path: "gallery.items.secondaryMedia.image.unsharpMasking.amount" },
361
+ { path: "gallery.items.secondaryMedia.image.unsharpMasking.radius" },
362
+ {
363
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
364
+ }
365
+ ]
366
+ },
367
+ {
368
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
369
+ paths: [
370
+ { path: "gallery.createdDate" },
371
+ { path: "gallery.items.createdDate" },
372
+ { path: "gallery.items.updatedDate" },
373
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
374
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
375
+ {
376
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
377
+ },
378
+ { path: "gallery.items.video.videoInfo.posters.urlExpirationDate" },
379
+ {
380
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
381
+ }
382
+ ]
383
+ }
384
+ ]);
385
+ const metadata = {
386
+ entityFqdn: "wix.pro_gallery.v2.gallery",
387
+ method: "POST",
388
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.CreateGallery",
389
+ packageName: PACKAGE_NAME,
390
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
391
+ protoPath: "/v2/galleries",
392
+ data: serializedData,
393
+ host
394
+ }),
395
+ data: serializedData,
396
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
397
+ {
398
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
399
+ paths: [
400
+ { path: "gallery.sortOrder" },
401
+ { path: "gallery.items.sortOrder" },
402
+ { path: "gallery.items.image.focalPoint.x" },
403
+ { path: "gallery.items.image.focalPoint.y" },
404
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
405
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
406
+ { path: "gallery.items.image.unsharpMasking.amount" },
407
+ { path: "gallery.items.image.unsharpMasking.radius" },
408
+ { path: "gallery.items.image.unsharpMasking.threshold" },
409
+ {
410
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.amount"
411
+ },
412
+ {
413
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.radius"
414
+ },
415
+ {
416
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
422
+ paths: [
423
+ { path: "gallery.createdDate" },
424
+ { path: "gallery.items.createdDate" },
425
+ { path: "gallery.items.updatedDate" },
426
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
427
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
428
+ {
429
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
430
+ },
431
+ {
432
+ path: "gallery.items.video.videoInfo.posters.urlExpirationDate"
433
+ },
434
+ {
435
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
436
+ }
437
+ ]
438
+ }
439
+ ])
440
+ };
441
+ return metadata;
442
+ }
443
+ return __createGallery;
444
+ }
445
+ function updateGallery(payload) {
446
+ function __updateGallery({ host }) {
447
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
448
+ {
449
+ transformFn: import_float.transformSDKFloatToRESTFloat,
450
+ paths: [
451
+ { path: "gallery.sortOrder" },
452
+ { path: "gallery.items.sortOrder" },
453
+ { path: "gallery.items.image.focalPoint.x" },
454
+ { path: "gallery.items.image.focalPoint.y" },
455
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
456
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
457
+ { path: "gallery.items.image.unsharpMasking.amount" },
458
+ { path: "gallery.items.image.unsharpMasking.radius" },
459
+ { path: "gallery.items.image.unsharpMasking.threshold" },
460
+ { path: "gallery.items.secondaryMedia.image.unsharpMasking.amount" },
461
+ { path: "gallery.items.secondaryMedia.image.unsharpMasking.radius" },
462
+ {
463
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
464
+ }
465
+ ]
466
+ },
467
+ {
468
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
469
+ paths: [
470
+ { path: "gallery.createdDate" },
471
+ { path: "gallery.items.createdDate" },
472
+ { path: "gallery.items.updatedDate" },
473
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
474
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
475
+ {
476
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
477
+ },
478
+ { path: "gallery.items.video.videoInfo.posters.urlExpirationDate" },
479
+ {
480
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
481
+ }
482
+ ]
483
+ }
484
+ ]);
485
+ const metadata = {
486
+ entityFqdn: "wix.pro_gallery.v2.gallery",
487
+ method: "PATCH",
488
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.UpdateGallery",
489
+ packageName: PACKAGE_NAME,
490
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
491
+ protoPath: "/v2/galleries/{gallery.id}",
492
+ data: serializedData,
493
+ host
494
+ }),
495
+ data: serializedData,
496
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
497
+ {
498
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
499
+ paths: [
500
+ { path: "gallery.sortOrder" },
501
+ { path: "gallery.items.sortOrder" },
502
+ { path: "gallery.items.image.focalPoint.x" },
503
+ { path: "gallery.items.image.focalPoint.y" },
504
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
505
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
506
+ { path: "gallery.items.image.unsharpMasking.amount" },
507
+ { path: "gallery.items.image.unsharpMasking.radius" },
508
+ { path: "gallery.items.image.unsharpMasking.threshold" },
509
+ {
510
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.amount"
511
+ },
512
+ {
513
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.radius"
514
+ },
515
+ {
516
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
517
+ }
518
+ ]
519
+ },
520
+ {
521
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
522
+ paths: [
523
+ { path: "gallery.createdDate" },
524
+ { path: "gallery.items.createdDate" },
525
+ { path: "gallery.items.updatedDate" },
526
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
527
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
528
+ {
529
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
530
+ },
531
+ {
532
+ path: "gallery.items.video.videoInfo.posters.urlExpirationDate"
533
+ },
534
+ {
535
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
536
+ }
537
+ ]
538
+ }
539
+ ])
540
+ };
541
+ return metadata;
542
+ }
543
+ return __updateGallery;
544
+ }
545
+ function deleteGallery(payload) {
546
+ function __deleteGallery({ host }) {
547
+ const metadata = {
548
+ entityFqdn: "wix.pro_gallery.v2.gallery",
549
+ method: "DELETE",
550
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.DeleteGallery",
551
+ packageName: PACKAGE_NAME,
552
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
553
+ protoPath: "/v2/galleries/{galleryId}",
554
+ data: payload,
555
+ host
556
+ }),
557
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
558
+ };
559
+ return metadata;
560
+ }
561
+ return __deleteGallery;
562
+ }
563
+ function deleteGalleryItems(payload) {
564
+ function __deleteGalleryItems({ host }) {
565
+ const metadata = {
566
+ entityFqdn: "wix.pro_gallery.v2.gallery",
567
+ method: "DELETE",
568
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItems",
569
+ packageName: PACKAGE_NAME,
570
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
571
+ protoPath: "/v2/galleries/{galleryId}/items",
572
+ data: payload,
573
+ host
574
+ }),
575
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
576
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
577
+ {
578
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
579
+ paths: [
580
+ { path: "gallery.sortOrder" },
581
+ { path: "gallery.items.sortOrder" },
582
+ { path: "gallery.items.image.focalPoint.x" },
583
+ { path: "gallery.items.image.focalPoint.y" },
584
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
585
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
586
+ { path: "gallery.items.image.unsharpMasking.amount" },
587
+ { path: "gallery.items.image.unsharpMasking.radius" },
588
+ { path: "gallery.items.image.unsharpMasking.threshold" },
589
+ {
590
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.amount"
591
+ },
592
+ {
593
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.radius"
594
+ },
595
+ {
596
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
597
+ }
598
+ ]
599
+ },
600
+ {
601
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
602
+ paths: [
603
+ { path: "gallery.createdDate" },
604
+ { path: "gallery.items.createdDate" },
605
+ { path: "gallery.items.updatedDate" },
606
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
607
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
608
+ {
609
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
610
+ },
611
+ {
612
+ path: "gallery.items.video.videoInfo.posters.urlExpirationDate"
613
+ },
614
+ {
615
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
616
+ }
617
+ ]
618
+ }
619
+ ])
620
+ };
621
+ return metadata;
622
+ }
623
+ return __deleteGalleryItems;
624
+ }
625
+ function bulkDeleteGalleryItems(payload) {
626
+ function __bulkDeleteGalleryItems({ host }) {
627
+ const metadata = {
628
+ entityFqdn: "wix.pro_gallery.v2.gallery",
629
+ method: "POST",
630
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.BulkDeleteGalleryItems",
631
+ packageName: PACKAGE_NAME,
632
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
633
+ protoPath: "/v2/galleries/{galleryId}/items/delete",
634
+ data: payload,
635
+ host
636
+ }),
637
+ data: payload
638
+ };
639
+ return metadata;
640
+ }
641
+ return __bulkDeleteGalleryItems;
642
+ }
643
+ function createGalleryItem(payload) {
644
+ function __createGalleryItem({ host }) {
645
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
646
+ {
647
+ transformFn: import_float.transformSDKFloatToRESTFloat,
648
+ paths: [
649
+ { path: "item.sortOrder" },
650
+ { path: "item.image.focalPoint.x" },
651
+ { path: "item.image.focalPoint.y" },
652
+ { path: "item.secondaryMedia.image.focalPoint.x" },
653
+ { path: "item.secondaryMedia.image.focalPoint.y" },
654
+ { path: "item.image.unsharpMasking.amount" },
655
+ { path: "item.image.unsharpMasking.radius" },
656
+ { path: "item.image.unsharpMasking.threshold" },
657
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
658
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
659
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
660
+ ]
661
+ },
662
+ {
663
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
664
+ paths: [
665
+ { path: "item.createdDate" },
666
+ { path: "item.updatedDate" },
667
+ { path: "item.image.imageInfo.urlExpirationDate" },
668
+ { path: "item.video.videoInfo.urlExpirationDate" },
669
+ { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
670
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
671
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
672
+ ]
673
+ }
674
+ ]);
675
+ const metadata = {
676
+ entityFqdn: "wix.pro_gallery.v2.gallery",
677
+ method: "POST",
678
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.CreateGalleryItem",
679
+ packageName: PACKAGE_NAME,
680
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
681
+ protoPath: "/v2/galleries/{galleryId}/items",
682
+ data: serializedData,
683
+ host
684
+ }),
685
+ data: serializedData,
686
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
687
+ {
688
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
689
+ paths: [
690
+ { path: "item.sortOrder" },
691
+ { path: "item.image.focalPoint.x" },
692
+ { path: "item.image.focalPoint.y" },
693
+ { path: "item.secondaryMedia.image.focalPoint.x" },
694
+ { path: "item.secondaryMedia.image.focalPoint.y" },
695
+ { path: "item.image.unsharpMasking.amount" },
696
+ { path: "item.image.unsharpMasking.radius" },
697
+ { path: "item.image.unsharpMasking.threshold" },
698
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
699
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
700
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
701
+ ]
702
+ },
703
+ {
704
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
705
+ paths: [
706
+ { path: "item.createdDate" },
707
+ { path: "item.updatedDate" },
708
+ { path: "item.image.imageInfo.urlExpirationDate" },
709
+ { path: "item.video.videoInfo.urlExpirationDate" },
710
+ {
711
+ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
712
+ },
713
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
714
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
715
+ ]
716
+ }
717
+ ])
718
+ };
719
+ return metadata;
720
+ }
721
+ return __createGalleryItem;
722
+ }
723
+ function updateGalleryItem(payload) {
724
+ function __updateGalleryItem({ host }) {
725
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
726
+ {
727
+ transformFn: import_float.transformSDKFloatToRESTFloat,
728
+ paths: [
729
+ { path: "item.sortOrder" },
730
+ { path: "item.image.focalPoint.x" },
731
+ { path: "item.image.focalPoint.y" },
732
+ { path: "item.secondaryMedia.image.focalPoint.x" },
733
+ { path: "item.secondaryMedia.image.focalPoint.y" },
734
+ { path: "item.image.unsharpMasking.amount" },
735
+ { path: "item.image.unsharpMasking.radius" },
736
+ { path: "item.image.unsharpMasking.threshold" },
737
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
738
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
739
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
740
+ ]
741
+ },
742
+ {
743
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
744
+ paths: [
745
+ { path: "item.createdDate" },
746
+ { path: "item.updatedDate" },
747
+ { path: "item.image.imageInfo.urlExpirationDate" },
748
+ { path: "item.video.videoInfo.urlExpirationDate" },
749
+ { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
750
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
751
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
752
+ ]
753
+ }
754
+ ]);
755
+ const metadata = {
756
+ entityFqdn: "wix.pro_gallery.v2.gallery",
757
+ method: "PATCH",
758
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.UpdateGalleryItem",
759
+ packageName: PACKAGE_NAME,
760
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
761
+ protoPath: "/v2/galleries/{galleryId}/items/{item.id}",
762
+ data: serializedData,
763
+ host
764
+ }),
765
+ data: serializedData,
766
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
767
+ {
768
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
769
+ paths: [
770
+ { path: "item.sortOrder" },
771
+ { path: "item.image.focalPoint.x" },
772
+ { path: "item.image.focalPoint.y" },
773
+ { path: "item.secondaryMedia.image.focalPoint.x" },
774
+ { path: "item.secondaryMedia.image.focalPoint.y" },
775
+ { path: "item.image.unsharpMasking.amount" },
776
+ { path: "item.image.unsharpMasking.radius" },
777
+ { path: "item.image.unsharpMasking.threshold" },
778
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
779
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
780
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
781
+ ]
782
+ },
783
+ {
784
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
785
+ paths: [
786
+ { path: "item.createdDate" },
787
+ { path: "item.updatedDate" },
788
+ { path: "item.image.imageInfo.urlExpirationDate" },
789
+ { path: "item.video.videoInfo.urlExpirationDate" },
790
+ {
791
+ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
792
+ },
793
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
794
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
795
+ ]
796
+ }
797
+ ])
798
+ };
799
+ return metadata;
800
+ }
801
+ return __updateGalleryItem;
802
+ }
803
+ function deleteGalleryItem(payload) {
804
+ function __deleteGalleryItem({ host }) {
805
+ const metadata = {
806
+ entityFqdn: "wix.pro_gallery.v2.gallery",
807
+ method: "DELETE",
808
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItem",
809
+ packageName: PACKAGE_NAME,
810
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
811
+ protoPath: "/v2/galleries/{galleryId}/items/{itemId}",
812
+ data: payload,
813
+ host
814
+ }),
815
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
816
+ };
817
+ return metadata;
818
+ }
819
+ return __deleteGalleryItem;
820
+ }
821
+
822
+ // src/pro-gallery-v2-gallery-pro-gallery.meta.ts
823
+ function listGalleries2() {
824
+ const payload = {};
825
+ const getRequestOptions = listGalleries(payload);
826
+ const getUrl = (context) => {
827
+ const { url } = getRequestOptions(context);
828
+ return url;
829
+ };
830
+ return {
831
+ getUrl,
832
+ httpMethod: "GET",
833
+ path: "/v2/galleries",
834
+ pathParams: {},
835
+ __requestType: null,
836
+ __originalRequestType: null,
837
+ __responseType: null,
838
+ __originalResponseType: null
839
+ };
840
+ }
841
+ function getGallery2() {
842
+ const payload = { galleryId: ":galleryId" };
843
+ const getRequestOptions = getGallery(payload);
844
+ const getUrl = (context) => {
845
+ const { url } = getRequestOptions(context);
846
+ return url;
847
+ };
848
+ return {
849
+ getUrl,
850
+ httpMethod: "GET",
851
+ path: "/v2/galleries/{galleryId}",
852
+ pathParams: { galleryId: "galleryId" },
853
+ __requestType: null,
854
+ __originalRequestType: null,
855
+ __responseType: null,
856
+ __originalResponseType: null
857
+ };
858
+ }
859
+ function listGalleryItems2() {
860
+ const payload = { galleryId: ":galleryId" };
861
+ const getRequestOptions = listGalleryItems(payload);
862
+ const getUrl = (context) => {
863
+ const { url } = getRequestOptions(context);
864
+ return url;
865
+ };
866
+ return {
867
+ getUrl,
868
+ httpMethod: "GET",
869
+ path: "/v2/galleries/{galleryId}/items",
870
+ pathParams: { galleryId: "galleryId" },
871
+ __requestType: null,
872
+ __originalRequestType: null,
873
+ __responseType: null,
874
+ __originalResponseType: null
875
+ };
876
+ }
877
+ function getGalleryItem2() {
878
+ const payload = { galleryId: ":galleryId", itemId: ":itemId" };
879
+ const getRequestOptions = getGalleryItem(payload);
880
+ const getUrl = (context) => {
881
+ const { url } = getRequestOptions(context);
882
+ return url;
883
+ };
884
+ return {
885
+ getUrl,
886
+ httpMethod: "GET",
887
+ path: "/v2/galleries/{galleryId}/items/{itemId}",
888
+ pathParams: { galleryId: "galleryId", itemId: "itemId" },
889
+ __requestType: null,
890
+ __originalRequestType: null,
891
+ __responseType: null,
892
+ __originalResponseType: null
893
+ };
894
+ }
895
+ function createGallery2() {
896
+ const payload = {};
897
+ const getRequestOptions = createGallery(payload);
898
+ const getUrl = (context) => {
899
+ const { url } = getRequestOptions(context);
900
+ return url;
901
+ };
902
+ return {
903
+ getUrl,
904
+ httpMethod: "POST",
905
+ path: "/v2/galleries",
906
+ pathParams: {},
907
+ __requestType: null,
908
+ __originalRequestType: null,
909
+ __responseType: null,
910
+ __originalResponseType: null
911
+ };
912
+ }
913
+ function updateGallery2() {
914
+ const payload = { gallery: { id: ":galleryId" } };
915
+ const getRequestOptions = updateGallery(payload);
916
+ const getUrl = (context) => {
917
+ const { url } = getRequestOptions(context);
918
+ return url;
919
+ };
920
+ return {
921
+ getUrl,
922
+ httpMethod: "PATCH",
923
+ path: "/v2/galleries/{gallery.id}",
924
+ pathParams: { galleryId: "galleryId" },
925
+ __requestType: null,
926
+ __originalRequestType: null,
927
+ __responseType: null,
928
+ __originalResponseType: null
929
+ };
930
+ }
931
+ function deleteGallery2() {
932
+ const payload = { galleryId: ":galleryId" };
933
+ const getRequestOptions = deleteGallery(payload);
934
+ const getUrl = (context) => {
935
+ const { url } = getRequestOptions(context);
936
+ return url;
937
+ };
938
+ return {
939
+ getUrl,
940
+ httpMethod: "DELETE",
941
+ path: "/v2/galleries/{galleryId}",
942
+ pathParams: { galleryId: "galleryId" },
943
+ __requestType: null,
944
+ __originalRequestType: null,
945
+ __responseType: null,
946
+ __originalResponseType: null
947
+ };
948
+ }
949
+ function deleteGalleryItems2() {
950
+ const payload = { galleryId: ":galleryId" };
951
+ const getRequestOptions = deleteGalleryItems(payload);
952
+ const getUrl = (context) => {
953
+ const { url } = getRequestOptions(context);
954
+ return url;
955
+ };
956
+ return {
957
+ getUrl,
958
+ httpMethod: "DELETE",
959
+ path: "/v2/galleries/{galleryId}/items",
960
+ pathParams: { galleryId: "galleryId" },
961
+ __requestType: null,
962
+ __originalRequestType: null,
963
+ __responseType: null,
964
+ __originalResponseType: null
965
+ };
966
+ }
967
+ function bulkDeleteGalleryItems2() {
968
+ const payload = { galleryId: ":galleryId" };
969
+ const getRequestOptions = bulkDeleteGalleryItems(payload);
970
+ const getUrl = (context) => {
971
+ const { url } = getRequestOptions(context);
972
+ return url;
973
+ };
974
+ return {
975
+ getUrl,
976
+ httpMethod: "POST",
977
+ path: "/v2/galleries/{galleryId}/items/delete",
978
+ pathParams: { galleryId: "galleryId" },
979
+ __requestType: null,
980
+ __originalRequestType: null,
981
+ __responseType: null,
982
+ __originalResponseType: null
983
+ };
984
+ }
985
+ function createGalleryItem2() {
986
+ const payload = { galleryId: ":galleryId" };
987
+ const getRequestOptions = createGalleryItem(payload);
988
+ const getUrl = (context) => {
989
+ const { url } = getRequestOptions(context);
990
+ return url;
991
+ };
992
+ return {
993
+ getUrl,
994
+ httpMethod: "POST",
995
+ path: "/v2/galleries/{galleryId}/items",
996
+ pathParams: { galleryId: "galleryId" },
997
+ __requestType: null,
998
+ __originalRequestType: null,
999
+ __responseType: null,
1000
+ __originalResponseType: null
1001
+ };
1002
+ }
1003
+ function updateGalleryItem2() {
1004
+ const payload = { galleryId: ":galleryId", item: { id: ":itemId" } };
1005
+ const getRequestOptions = updateGalleryItem(payload);
1006
+ const getUrl = (context) => {
1007
+ const { url } = getRequestOptions(context);
1008
+ return url;
1009
+ };
1010
+ return {
1011
+ getUrl,
1012
+ httpMethod: "PATCH",
1013
+ path: "/v2/galleries/{galleryId}/items/{item.id}",
1014
+ pathParams: { galleryId: "galleryId", itemId: "itemId" },
1015
+ __requestType: null,
1016
+ __originalRequestType: null,
1017
+ __responseType: null,
1018
+ __originalResponseType: null
1019
+ };
1020
+ }
1021
+ function deleteGalleryItem2() {
1022
+ const payload = { galleryId: ":galleryId", itemId: ":itemId" };
1023
+ const getRequestOptions = deleteGalleryItem(payload);
1024
+ const getUrl = (context) => {
1025
+ const { url } = getRequestOptions(context);
1026
+ return url;
1027
+ };
1028
+ return {
1029
+ getUrl,
1030
+ httpMethod: "DELETE",
1031
+ path: "/v2/galleries/{galleryId}/items/{itemId}",
1032
+ pathParams: { galleryId: "galleryId", itemId: "itemId" },
1033
+ __requestType: null,
1034
+ __originalRequestType: null,
1035
+ __responseType: null,
1036
+ __originalResponseType: null
1037
+ };
1038
+ }
1039
+ // Annotate the CommonJS export names for ESM import in node:
1040
+ 0 && (module.exports = {
1041
+ bulkDeleteGalleryItems,
1042
+ createGallery,
1043
+ createGalleryItem,
1044
+ deleteGallery,
1045
+ deleteGalleryItem,
1046
+ deleteGalleryItems,
1047
+ getGallery,
1048
+ getGalleryItem,
1049
+ listGalleries,
1050
+ listGalleryItems,
1051
+ updateGallery,
1052
+ updateGalleryItem
1053
+ });
1054
+ //# sourceMappingURL=meta.js.map