@wix/auto_sdk_pro-gallery_pro-gallery 1.0.7 → 1.0.9

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 +1834 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +1784 -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 +1834 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +1784 -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-KXp1KG3k.d.mts} +453 -511
  20. package/build/{cjs/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → internal/pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.d.ts} +453 -511
  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-KXp1KG3k.d.mts} +453 -511
  28. package/build/{internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.d.ts} +453 -511
  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 -1810
  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 -1810
  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 -1810
  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 -1810
  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
@@ -0,0 +1,1784 @@
1
+ // src/pro-gallery-v2-gallery-pro-gallery.public.ts
2
+ import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
+ import { transformRESTFloatToSDKFloat as transformRESTFloatToSDKFloat2 } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTImageToSDKImage as transformRESTImageToSDKImage2 } from "@wix/sdk-runtime/transformations/image";
5
+ import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
6
+ import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
7
+ import { transformRESTVideoV2ToSDKVideoV2 as transformRESTVideoV2ToSDKVideoV22 } from "@wix/sdk-runtime/transformations/video-v2";
8
+ import { EventDefinition } from "@wix/sdk-types";
9
+
10
+ // src/pro-gallery-v2-gallery-pro-gallery.universal.ts
11
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
12
+ import {
13
+ renameKeysFromSDKRequestToRESTRequest,
14
+ renameKeysFromRESTResponseToSDKResponse
15
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
16
+
17
+ // src/pro-gallery-v2-gallery-pro-gallery.http.ts
18
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
19
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
20
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
21
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
22
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
23
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
24
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
25
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
26
+ function resolveComWixpressExposureProgalleryProGalleryUrl(opts) {
27
+ const domainToMappings = {
28
+ _: [
29
+ {
30
+ srcPath: "/_api/pro-gallery-server",
31
+ destPath: ""
32
+ }
33
+ ],
34
+ "manage._base_domain_": [
35
+ {
36
+ srcPath: "/_api/pro-gallery-server",
37
+ destPath: ""
38
+ }
39
+ ],
40
+ "www._base_domain_": [
41
+ {
42
+ srcPath: "/_api/pro-gallery-server",
43
+ destPath: ""
44
+ }
45
+ ],
46
+ "editor._base_domain_": [
47
+ {
48
+ srcPath: "/_api/pro-gallery-server",
49
+ destPath: ""
50
+ }
51
+ ],
52
+ "blocks._base_domain_": [
53
+ {
54
+ srcPath: "/_api/pro-gallery-server",
55
+ destPath: ""
56
+ }
57
+ ],
58
+ "create.editorx": [
59
+ {
60
+ srcPath: "/_api/pro-gallery-server",
61
+ destPath: ""
62
+ }
63
+ ],
64
+ "progallery.wixapps.net": [
65
+ {
66
+ srcPath: "/_api/pro-gallery-server",
67
+ destPath: ""
68
+ }
69
+ ],
70
+ "www.wixapis.com": [
71
+ {
72
+ srcPath: "/progallery",
73
+ destPath: ""
74
+ }
75
+ ],
76
+ "*.dev.wix-code.com": [
77
+ {
78
+ srcPath: "/_api/pro-gallery-server",
79
+ destPath: ""
80
+ }
81
+ ],
82
+ "api._api_base_domain_": [
83
+ {
84
+ srcPath: "/prime-server-proxy",
85
+ destPath: ""
86
+ }
87
+ ]
88
+ };
89
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
90
+ }
91
+ var PACKAGE_NAME = "@wix/auto_sdk_pro-gallery_pro-gallery";
92
+ function listGalleries(payload) {
93
+ function __listGalleries({ host }) {
94
+ const serializedData = transformPaths(payload, [
95
+ {
96
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
97
+ paths: [{ path: "fields" }]
98
+ }
99
+ ]);
100
+ const metadata = {
101
+ entityFqdn: "wix.pro_gallery.v2.gallery",
102
+ method: "GET",
103
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.ListGalleries",
104
+ packageName: PACKAGE_NAME,
105
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
106
+ protoPath: "/v2/galleries",
107
+ data: serializedData,
108
+ host
109
+ }),
110
+ params: toURLSearchParams(serializedData),
111
+ transformResponse: (payload2) => transformPaths(payload2, [
112
+ {
113
+ transformFn: transformRESTFloatToSDKFloat,
114
+ paths: [
115
+ { path: "galleries.sortOrder" },
116
+ { path: "galleries.items.sortOrder" },
117
+ { path: "galleries.items.image.focalPoint.x" },
118
+ { path: "galleries.items.image.focalPoint.y" },
119
+ { path: "galleries.items.secondaryMedia.image.focalPoint.x" },
120
+ { path: "galleries.items.secondaryMedia.image.focalPoint.y" },
121
+ { path: "galleries.items.image.unsharpMasking.amount" },
122
+ { path: "galleries.items.image.unsharpMasking.radius" },
123
+ { path: "galleries.items.image.unsharpMasking.threshold" },
124
+ {
125
+ path: "galleries.items.secondaryMedia.image.unsharpMasking.amount"
126
+ },
127
+ {
128
+ path: "galleries.items.secondaryMedia.image.unsharpMasking.radius"
129
+ },
130
+ {
131
+ path: "galleries.items.secondaryMedia.image.unsharpMasking.threshold"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ transformFn: transformRESTTimestampToSDKTimestamp,
137
+ paths: [
138
+ { path: "galleries.createdDate" },
139
+ { path: "galleries.items.createdDate" },
140
+ { path: "galleries.items.updatedDate" },
141
+ { path: "galleries.items.image.imageInfo.urlExpirationDate" },
142
+ { path: "galleries.items.video.videoInfo.urlExpirationDate" },
143
+ {
144
+ path: "galleries.items.video.videoInfo.resolutions.poster.urlExpirationDate"
145
+ },
146
+ {
147
+ path: "galleries.items.video.videoInfo.posters.urlExpirationDate"
148
+ },
149
+ {
150
+ path: "galleries.items.secondaryMedia.image.imageInfo.urlExpirationDate"
151
+ }
152
+ ]
153
+ }
154
+ ])
155
+ };
156
+ return metadata;
157
+ }
158
+ return __listGalleries;
159
+ }
160
+ function getGallery(payload) {
161
+ function __getGallery({ host }) {
162
+ const metadata = {
163
+ entityFqdn: "wix.pro_gallery.v2.gallery",
164
+ method: "GET",
165
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.GetGallery",
166
+ packageName: PACKAGE_NAME,
167
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
168
+ protoPath: "/v2/galleries/{galleryId}",
169
+ data: payload,
170
+ host
171
+ }),
172
+ params: toURLSearchParams(payload),
173
+ transformResponse: (payload2) => transformPaths(payload2, [
174
+ {
175
+ transformFn: transformRESTFloatToSDKFloat,
176
+ paths: [
177
+ { path: "gallery.sortOrder" },
178
+ { path: "gallery.items.sortOrder" },
179
+ { path: "gallery.items.image.focalPoint.x" },
180
+ { path: "gallery.items.image.focalPoint.y" },
181
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
182
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
183
+ { path: "gallery.items.image.unsharpMasking.amount" },
184
+ { path: "gallery.items.image.unsharpMasking.radius" },
185
+ { path: "gallery.items.image.unsharpMasking.threshold" },
186
+ {
187
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.amount"
188
+ },
189
+ {
190
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.radius"
191
+ },
192
+ {
193
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ transformFn: transformRESTTimestampToSDKTimestamp,
199
+ paths: [
200
+ { path: "gallery.createdDate" },
201
+ { path: "gallery.items.createdDate" },
202
+ { path: "gallery.items.updatedDate" },
203
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
204
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
205
+ {
206
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
207
+ },
208
+ {
209
+ path: "gallery.items.video.videoInfo.posters.urlExpirationDate"
210
+ },
211
+ {
212
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
213
+ }
214
+ ]
215
+ }
216
+ ])
217
+ };
218
+ return metadata;
219
+ }
220
+ return __getGallery;
221
+ }
222
+ function listGalleryItems(payload) {
223
+ function __listGalleryItems({ host }) {
224
+ const metadata = {
225
+ entityFqdn: "wix.pro_gallery.v2.gallery",
226
+ method: "GET",
227
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.ListGalleryItems",
228
+ packageName: PACKAGE_NAME,
229
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
230
+ protoPath: "/v2/galleries/{galleryId}/items",
231
+ data: payload,
232
+ host
233
+ }),
234
+ params: toURLSearchParams(payload),
235
+ transformResponse: (payload2) => transformPaths(payload2, [
236
+ {
237
+ transformFn: transformRESTFloatToSDKFloat,
238
+ paths: [
239
+ { path: "items.sortOrder" },
240
+ { path: "items.image.focalPoint.x" },
241
+ { path: "items.image.focalPoint.y" },
242
+ { path: "items.secondaryMedia.image.focalPoint.x" },
243
+ { path: "items.secondaryMedia.image.focalPoint.y" },
244
+ { path: "items.image.unsharpMasking.amount" },
245
+ { path: "items.image.unsharpMasking.radius" },
246
+ { path: "items.image.unsharpMasking.threshold" },
247
+ { path: "items.secondaryMedia.image.unsharpMasking.amount" },
248
+ { path: "items.secondaryMedia.image.unsharpMasking.radius" },
249
+ { path: "items.secondaryMedia.image.unsharpMasking.threshold" }
250
+ ]
251
+ },
252
+ {
253
+ transformFn: transformRESTTimestampToSDKTimestamp,
254
+ paths: [
255
+ { path: "items.createdDate" },
256
+ { path: "items.updatedDate" },
257
+ { path: "items.image.imageInfo.urlExpirationDate" },
258
+ { path: "items.video.videoInfo.urlExpirationDate" },
259
+ {
260
+ path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
261
+ },
262
+ { path: "items.video.videoInfo.posters.urlExpirationDate" },
263
+ {
264
+ path: "items.secondaryMedia.image.imageInfo.urlExpirationDate"
265
+ }
266
+ ]
267
+ }
268
+ ])
269
+ };
270
+ return metadata;
271
+ }
272
+ return __listGalleryItems;
273
+ }
274
+ function getGalleryItem(payload) {
275
+ function __getGalleryItem({ host }) {
276
+ const metadata = {
277
+ entityFqdn: "wix.pro_gallery.v2.gallery",
278
+ method: "GET",
279
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.GetGalleryItem",
280
+ packageName: PACKAGE_NAME,
281
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
282
+ protoPath: "/v2/galleries/{galleryId}/items/{itemId}",
283
+ data: payload,
284
+ host
285
+ }),
286
+ params: toURLSearchParams(payload),
287
+ transformResponse: (payload2) => transformPaths(payload2, [
288
+ {
289
+ transformFn: transformRESTFloatToSDKFloat,
290
+ paths: [
291
+ { path: "item.sortOrder" },
292
+ { path: "item.image.focalPoint.x" },
293
+ { path: "item.image.focalPoint.y" },
294
+ { path: "item.secondaryMedia.image.focalPoint.x" },
295
+ { path: "item.secondaryMedia.image.focalPoint.y" },
296
+ { path: "item.image.unsharpMasking.amount" },
297
+ { path: "item.image.unsharpMasking.radius" },
298
+ { path: "item.image.unsharpMasking.threshold" },
299
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
300
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
301
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
302
+ ]
303
+ },
304
+ {
305
+ transformFn: transformRESTTimestampToSDKTimestamp,
306
+ paths: [
307
+ { path: "item.createdDate" },
308
+ { path: "item.updatedDate" },
309
+ { path: "item.image.imageInfo.urlExpirationDate" },
310
+ { path: "item.video.videoInfo.urlExpirationDate" },
311
+ {
312
+ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
313
+ },
314
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
315
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
316
+ ]
317
+ }
318
+ ])
319
+ };
320
+ return metadata;
321
+ }
322
+ return __getGalleryItem;
323
+ }
324
+ function createGallery(payload) {
325
+ function __createGallery({ host }) {
326
+ const serializedData = transformPaths(payload, [
327
+ {
328
+ transformFn: transformSDKFloatToRESTFloat,
329
+ paths: [
330
+ { path: "gallery.sortOrder" },
331
+ { path: "gallery.items.sortOrder" },
332
+ { path: "gallery.items.image.focalPoint.x" },
333
+ { path: "gallery.items.image.focalPoint.y" },
334
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
335
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
336
+ { path: "gallery.items.image.unsharpMasking.amount" },
337
+ { path: "gallery.items.image.unsharpMasking.radius" },
338
+ { path: "gallery.items.image.unsharpMasking.threshold" },
339
+ { path: "gallery.items.secondaryMedia.image.unsharpMasking.amount" },
340
+ { path: "gallery.items.secondaryMedia.image.unsharpMasking.radius" },
341
+ {
342
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
343
+ }
344
+ ]
345
+ },
346
+ {
347
+ transformFn: transformSDKTimestampToRESTTimestamp,
348
+ paths: [
349
+ { path: "gallery.createdDate" },
350
+ { path: "gallery.items.createdDate" },
351
+ { path: "gallery.items.updatedDate" },
352
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
353
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
354
+ {
355
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
356
+ },
357
+ { path: "gallery.items.video.videoInfo.posters.urlExpirationDate" },
358
+ {
359
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
360
+ }
361
+ ]
362
+ }
363
+ ]);
364
+ const metadata = {
365
+ entityFqdn: "wix.pro_gallery.v2.gallery",
366
+ method: "POST",
367
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.CreateGallery",
368
+ packageName: PACKAGE_NAME,
369
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
370
+ protoPath: "/v2/galleries",
371
+ data: serializedData,
372
+ host
373
+ }),
374
+ data: serializedData,
375
+ transformResponse: (payload2) => transformPaths(payload2, [
376
+ {
377
+ transformFn: transformRESTFloatToSDKFloat,
378
+ paths: [
379
+ { path: "gallery.sortOrder" },
380
+ { path: "gallery.items.sortOrder" },
381
+ { path: "gallery.items.image.focalPoint.x" },
382
+ { path: "gallery.items.image.focalPoint.y" },
383
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
384
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
385
+ { path: "gallery.items.image.unsharpMasking.amount" },
386
+ { path: "gallery.items.image.unsharpMasking.radius" },
387
+ { path: "gallery.items.image.unsharpMasking.threshold" },
388
+ {
389
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.amount"
390
+ },
391
+ {
392
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.radius"
393
+ },
394
+ {
395
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ transformFn: transformRESTTimestampToSDKTimestamp,
401
+ paths: [
402
+ { path: "gallery.createdDate" },
403
+ { path: "gallery.items.createdDate" },
404
+ { path: "gallery.items.updatedDate" },
405
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
406
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
407
+ {
408
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
409
+ },
410
+ {
411
+ path: "gallery.items.video.videoInfo.posters.urlExpirationDate"
412
+ },
413
+ {
414
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
415
+ }
416
+ ]
417
+ }
418
+ ])
419
+ };
420
+ return metadata;
421
+ }
422
+ return __createGallery;
423
+ }
424
+ function updateGallery(payload) {
425
+ function __updateGallery({ host }) {
426
+ const serializedData = transformPaths(payload, [
427
+ {
428
+ transformFn: transformSDKFloatToRESTFloat,
429
+ paths: [
430
+ { path: "gallery.sortOrder" },
431
+ { path: "gallery.items.sortOrder" },
432
+ { path: "gallery.items.image.focalPoint.x" },
433
+ { path: "gallery.items.image.focalPoint.y" },
434
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
435
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
436
+ { path: "gallery.items.image.unsharpMasking.amount" },
437
+ { path: "gallery.items.image.unsharpMasking.radius" },
438
+ { path: "gallery.items.image.unsharpMasking.threshold" },
439
+ { path: "gallery.items.secondaryMedia.image.unsharpMasking.amount" },
440
+ { path: "gallery.items.secondaryMedia.image.unsharpMasking.radius" },
441
+ {
442
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ transformFn: transformSDKTimestampToRESTTimestamp,
448
+ paths: [
449
+ { path: "gallery.createdDate" },
450
+ { path: "gallery.items.createdDate" },
451
+ { path: "gallery.items.updatedDate" },
452
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
453
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
454
+ {
455
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
456
+ },
457
+ { path: "gallery.items.video.videoInfo.posters.urlExpirationDate" },
458
+ {
459
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
460
+ }
461
+ ]
462
+ }
463
+ ]);
464
+ const metadata = {
465
+ entityFqdn: "wix.pro_gallery.v2.gallery",
466
+ method: "PATCH",
467
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.UpdateGallery",
468
+ packageName: PACKAGE_NAME,
469
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
470
+ protoPath: "/v2/galleries/{gallery.id}",
471
+ data: serializedData,
472
+ host
473
+ }),
474
+ data: serializedData,
475
+ transformResponse: (payload2) => transformPaths(payload2, [
476
+ {
477
+ transformFn: transformRESTFloatToSDKFloat,
478
+ paths: [
479
+ { path: "gallery.sortOrder" },
480
+ { path: "gallery.items.sortOrder" },
481
+ { path: "gallery.items.image.focalPoint.x" },
482
+ { path: "gallery.items.image.focalPoint.y" },
483
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
484
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
485
+ { path: "gallery.items.image.unsharpMasking.amount" },
486
+ { path: "gallery.items.image.unsharpMasking.radius" },
487
+ { path: "gallery.items.image.unsharpMasking.threshold" },
488
+ {
489
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.amount"
490
+ },
491
+ {
492
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.radius"
493
+ },
494
+ {
495
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
496
+ }
497
+ ]
498
+ },
499
+ {
500
+ transformFn: transformRESTTimestampToSDKTimestamp,
501
+ paths: [
502
+ { path: "gallery.createdDate" },
503
+ { path: "gallery.items.createdDate" },
504
+ { path: "gallery.items.updatedDate" },
505
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
506
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
507
+ {
508
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
509
+ },
510
+ {
511
+ path: "gallery.items.video.videoInfo.posters.urlExpirationDate"
512
+ },
513
+ {
514
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
515
+ }
516
+ ]
517
+ }
518
+ ])
519
+ };
520
+ return metadata;
521
+ }
522
+ return __updateGallery;
523
+ }
524
+ function deleteGallery(payload) {
525
+ function __deleteGallery({ host }) {
526
+ const metadata = {
527
+ entityFqdn: "wix.pro_gallery.v2.gallery",
528
+ method: "DELETE",
529
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.DeleteGallery",
530
+ packageName: PACKAGE_NAME,
531
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
532
+ protoPath: "/v2/galleries/{galleryId}",
533
+ data: payload,
534
+ host
535
+ }),
536
+ params: toURLSearchParams(payload)
537
+ };
538
+ return metadata;
539
+ }
540
+ return __deleteGallery;
541
+ }
542
+ function deleteGalleryItems(payload) {
543
+ function __deleteGalleryItems({ host }) {
544
+ const metadata = {
545
+ entityFqdn: "wix.pro_gallery.v2.gallery",
546
+ method: "DELETE",
547
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItems",
548
+ packageName: PACKAGE_NAME,
549
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
550
+ protoPath: "/v2/galleries/{galleryId}/items",
551
+ data: payload,
552
+ host
553
+ }),
554
+ params: toURLSearchParams(payload),
555
+ transformResponse: (payload2) => transformPaths(payload2, [
556
+ {
557
+ transformFn: transformRESTFloatToSDKFloat,
558
+ paths: [
559
+ { path: "gallery.sortOrder" },
560
+ { path: "gallery.items.sortOrder" },
561
+ { path: "gallery.items.image.focalPoint.x" },
562
+ { path: "gallery.items.image.focalPoint.y" },
563
+ { path: "gallery.items.secondaryMedia.image.focalPoint.x" },
564
+ { path: "gallery.items.secondaryMedia.image.focalPoint.y" },
565
+ { path: "gallery.items.image.unsharpMasking.amount" },
566
+ { path: "gallery.items.image.unsharpMasking.radius" },
567
+ { path: "gallery.items.image.unsharpMasking.threshold" },
568
+ {
569
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.amount"
570
+ },
571
+ {
572
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.radius"
573
+ },
574
+ {
575
+ path: "gallery.items.secondaryMedia.image.unsharpMasking.threshold"
576
+ }
577
+ ]
578
+ },
579
+ {
580
+ transformFn: transformRESTTimestampToSDKTimestamp,
581
+ paths: [
582
+ { path: "gallery.createdDate" },
583
+ { path: "gallery.items.createdDate" },
584
+ { path: "gallery.items.updatedDate" },
585
+ { path: "gallery.items.image.imageInfo.urlExpirationDate" },
586
+ { path: "gallery.items.video.videoInfo.urlExpirationDate" },
587
+ {
588
+ path: "gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate"
589
+ },
590
+ {
591
+ path: "gallery.items.video.videoInfo.posters.urlExpirationDate"
592
+ },
593
+ {
594
+ path: "gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate"
595
+ }
596
+ ]
597
+ }
598
+ ])
599
+ };
600
+ return metadata;
601
+ }
602
+ return __deleteGalleryItems;
603
+ }
604
+ function bulkDeleteGalleryItems(payload) {
605
+ function __bulkDeleteGalleryItems({ host }) {
606
+ const metadata = {
607
+ entityFqdn: "wix.pro_gallery.v2.gallery",
608
+ method: "POST",
609
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.BulkDeleteGalleryItems",
610
+ packageName: PACKAGE_NAME,
611
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
612
+ protoPath: "/v2/galleries/{galleryId}/items/delete",
613
+ data: payload,
614
+ host
615
+ }),
616
+ data: payload
617
+ };
618
+ return metadata;
619
+ }
620
+ return __bulkDeleteGalleryItems;
621
+ }
622
+ function createGalleryItem(payload) {
623
+ function __createGalleryItem({ host }) {
624
+ const serializedData = transformPaths(payload, [
625
+ {
626
+ transformFn: transformSDKFloatToRESTFloat,
627
+ paths: [
628
+ { path: "item.sortOrder" },
629
+ { path: "item.image.focalPoint.x" },
630
+ { path: "item.image.focalPoint.y" },
631
+ { path: "item.secondaryMedia.image.focalPoint.x" },
632
+ { path: "item.secondaryMedia.image.focalPoint.y" },
633
+ { path: "item.image.unsharpMasking.amount" },
634
+ { path: "item.image.unsharpMasking.radius" },
635
+ { path: "item.image.unsharpMasking.threshold" },
636
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
637
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
638
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
639
+ ]
640
+ },
641
+ {
642
+ transformFn: transformSDKTimestampToRESTTimestamp,
643
+ paths: [
644
+ { path: "item.createdDate" },
645
+ { path: "item.updatedDate" },
646
+ { path: "item.image.imageInfo.urlExpirationDate" },
647
+ { path: "item.video.videoInfo.urlExpirationDate" },
648
+ { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
649
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
650
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
651
+ ]
652
+ }
653
+ ]);
654
+ const metadata = {
655
+ entityFqdn: "wix.pro_gallery.v2.gallery",
656
+ method: "POST",
657
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.CreateGalleryItem",
658
+ packageName: PACKAGE_NAME,
659
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
660
+ protoPath: "/v2/galleries/{galleryId}/items",
661
+ data: serializedData,
662
+ host
663
+ }),
664
+ data: serializedData,
665
+ transformResponse: (payload2) => transformPaths(payload2, [
666
+ {
667
+ transformFn: transformRESTFloatToSDKFloat,
668
+ paths: [
669
+ { path: "item.sortOrder" },
670
+ { path: "item.image.focalPoint.x" },
671
+ { path: "item.image.focalPoint.y" },
672
+ { path: "item.secondaryMedia.image.focalPoint.x" },
673
+ { path: "item.secondaryMedia.image.focalPoint.y" },
674
+ { path: "item.image.unsharpMasking.amount" },
675
+ { path: "item.image.unsharpMasking.radius" },
676
+ { path: "item.image.unsharpMasking.threshold" },
677
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
678
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
679
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
680
+ ]
681
+ },
682
+ {
683
+ transformFn: transformRESTTimestampToSDKTimestamp,
684
+ paths: [
685
+ { path: "item.createdDate" },
686
+ { path: "item.updatedDate" },
687
+ { path: "item.image.imageInfo.urlExpirationDate" },
688
+ { path: "item.video.videoInfo.urlExpirationDate" },
689
+ {
690
+ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
691
+ },
692
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
693
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
694
+ ]
695
+ }
696
+ ])
697
+ };
698
+ return metadata;
699
+ }
700
+ return __createGalleryItem;
701
+ }
702
+ function updateGalleryItem(payload) {
703
+ function __updateGalleryItem({ host }) {
704
+ const serializedData = transformPaths(payload, [
705
+ {
706
+ transformFn: transformSDKFloatToRESTFloat,
707
+ paths: [
708
+ { path: "item.sortOrder" },
709
+ { path: "item.image.focalPoint.x" },
710
+ { path: "item.image.focalPoint.y" },
711
+ { path: "item.secondaryMedia.image.focalPoint.x" },
712
+ { path: "item.secondaryMedia.image.focalPoint.y" },
713
+ { path: "item.image.unsharpMasking.amount" },
714
+ { path: "item.image.unsharpMasking.radius" },
715
+ { path: "item.image.unsharpMasking.threshold" },
716
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
717
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
718
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
719
+ ]
720
+ },
721
+ {
722
+ transformFn: transformSDKTimestampToRESTTimestamp,
723
+ paths: [
724
+ { path: "item.createdDate" },
725
+ { path: "item.updatedDate" },
726
+ { path: "item.image.imageInfo.urlExpirationDate" },
727
+ { path: "item.video.videoInfo.urlExpirationDate" },
728
+ { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
729
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
730
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
731
+ ]
732
+ }
733
+ ]);
734
+ const metadata = {
735
+ entityFqdn: "wix.pro_gallery.v2.gallery",
736
+ method: "PATCH",
737
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.UpdateGalleryItem",
738
+ packageName: PACKAGE_NAME,
739
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
740
+ protoPath: "/v2/galleries/{galleryId}/items/{item.id}",
741
+ data: serializedData,
742
+ host
743
+ }),
744
+ data: serializedData,
745
+ transformResponse: (payload2) => transformPaths(payload2, [
746
+ {
747
+ transformFn: transformRESTFloatToSDKFloat,
748
+ paths: [
749
+ { path: "item.sortOrder" },
750
+ { path: "item.image.focalPoint.x" },
751
+ { path: "item.image.focalPoint.y" },
752
+ { path: "item.secondaryMedia.image.focalPoint.x" },
753
+ { path: "item.secondaryMedia.image.focalPoint.y" },
754
+ { path: "item.image.unsharpMasking.amount" },
755
+ { path: "item.image.unsharpMasking.radius" },
756
+ { path: "item.image.unsharpMasking.threshold" },
757
+ { path: "item.secondaryMedia.image.unsharpMasking.amount" },
758
+ { path: "item.secondaryMedia.image.unsharpMasking.radius" },
759
+ { path: "item.secondaryMedia.image.unsharpMasking.threshold" }
760
+ ]
761
+ },
762
+ {
763
+ transformFn: transformRESTTimestampToSDKTimestamp,
764
+ paths: [
765
+ { path: "item.createdDate" },
766
+ { path: "item.updatedDate" },
767
+ { path: "item.image.imageInfo.urlExpirationDate" },
768
+ { path: "item.video.videoInfo.urlExpirationDate" },
769
+ {
770
+ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
771
+ },
772
+ { path: "item.video.videoInfo.posters.urlExpirationDate" },
773
+ { path: "item.secondaryMedia.image.imageInfo.urlExpirationDate" }
774
+ ]
775
+ }
776
+ ])
777
+ };
778
+ return metadata;
779
+ }
780
+ return __updateGalleryItem;
781
+ }
782
+ function deleteGalleryItem(payload) {
783
+ function __deleteGalleryItem({ host }) {
784
+ const metadata = {
785
+ entityFqdn: "wix.pro_gallery.v2.gallery",
786
+ method: "DELETE",
787
+ methodFqn: "com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItem",
788
+ packageName: PACKAGE_NAME,
789
+ url: resolveComWixpressExposureProgalleryProGalleryUrl({
790
+ protoPath: "/v2/galleries/{galleryId}/items/{itemId}",
791
+ data: payload,
792
+ host
793
+ }),
794
+ params: toURLSearchParams(payload)
795
+ };
796
+ return metadata;
797
+ }
798
+ return __deleteGalleryItem;
799
+ }
800
+
801
+ // src/pro-gallery-v2-gallery-pro-gallery.universal.ts
802
+ import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
803
+ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
804
+ import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
805
+ import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
806
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
807
+ var LinkType = /* @__PURE__ */ ((LinkType2) => {
808
+ LinkType2["UNDEFINED"] = "UNDEFINED";
809
+ LinkType2["EXTERNAL"] = "EXTERNAL";
810
+ LinkType2["INTERNAL"] = "INTERNAL";
811
+ return LinkType2;
812
+ })(LinkType || {});
813
+ var LinkRel = /* @__PURE__ */ ((LinkRel2) => {
814
+ LinkRel2["unknown_link_rel"] = "unknown_link_rel";
815
+ LinkRel2["nofollow"] = "nofollow";
816
+ LinkRel2["noopener"] = "noopener";
817
+ LinkRel2["noreferrer"] = "noreferrer";
818
+ LinkRel2["sponsored"] = "sponsored";
819
+ return LinkRel2;
820
+ })(LinkRel || {});
821
+ var Type = /* @__PURE__ */ ((Type2) => {
822
+ Type2["UNDEFINED"] = "UNDEFINED";
823
+ Type2["IMAGE"] = "IMAGE";
824
+ Type2["VIDEO"] = "VIDEO";
825
+ Type2["TEXT"] = "TEXT";
826
+ return Type2;
827
+ })(Type || {});
828
+ var ImageType = /* @__PURE__ */ ((ImageType2) => {
829
+ ImageType2["UNDEFINED"] = "UNDEFINED";
830
+ ImageType2["WIX_MEDIA"] = "WIX_MEDIA";
831
+ ImageType2["EXTERNAL"] = "EXTERNAL";
832
+ return ImageType2;
833
+ })(ImageType || {});
834
+ var VideoType = /* @__PURE__ */ ((VideoType2) => {
835
+ VideoType2["UNDEFINED"] = "UNDEFINED";
836
+ VideoType2["WIX_MEDIA"] = "WIX_MEDIA";
837
+ VideoType2["YOUTUBE"] = "YOUTUBE";
838
+ VideoType2["VIMEO"] = "VIMEO";
839
+ return VideoType2;
840
+ })(VideoType || {});
841
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
842
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
843
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
844
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
845
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
846
+ WebhookIdentityType2["APP"] = "APP";
847
+ return WebhookIdentityType2;
848
+ })(WebhookIdentityType || {});
849
+ var State = /* @__PURE__ */ ((State2) => {
850
+ State2["UNDEFINED"] = "UNDEFINED";
851
+ State2["SAVED"] = "SAVED";
852
+ State2["PUBLISHED"] = "PUBLISHED";
853
+ return State2;
854
+ })(State || {});
855
+ var Enum = /* @__PURE__ */ ((Enum2) => {
856
+ Enum2["UNKNOWN"] = "UNKNOWN";
857
+ Enum2["PROTECTED"] = "PROTECTED";
858
+ Enum2["PRIVATE"] = "PRIVATE";
859
+ Enum2["PUBLIC"] = "PUBLIC";
860
+ Enum2["UNCHANGED"] = "UNCHANGED";
861
+ Enum2["GROUP_PROTECTED"] = "GROUP_PROTECTED";
862
+ return Enum2;
863
+ })(Enum || {});
864
+ var SearchIndexingNotificationState = /* @__PURE__ */ ((SearchIndexingNotificationState2) => {
865
+ SearchIndexingNotificationState2["Unknown"] = "Unknown";
866
+ SearchIndexingNotificationState2["Off"] = "Off";
867
+ SearchIndexingNotificationState2["On"] = "On";
868
+ return SearchIndexingNotificationState2;
869
+ })(SearchIndexingNotificationState || {});
870
+ async function listGalleries2(options) {
871
+ const { httpClient, sideEffects } = arguments[1];
872
+ const payload = renameKeysFromSDKRequestToRESTRequest({
873
+ itemLimit: options?.itemLimit,
874
+ offset: options?.offset,
875
+ limit: options?.limit
876
+ });
877
+ const reqOpts = listGalleries(payload);
878
+ sideEffects?.onSiteCall?.();
879
+ try {
880
+ const result = await httpClient.request(reqOpts);
881
+ sideEffects?.onSuccess?.(result);
882
+ return renameKeysFromRESTResponseToSDKResponse(
883
+ transformPaths2(result.data, [
884
+ {
885
+ transformFn: transformRESTImageToSDKImage,
886
+ paths: [
887
+ { path: "galleries.items.image.imageInfo" },
888
+ { path: "galleries.items.secondaryMedia.image.imageInfo" }
889
+ ]
890
+ },
891
+ {
892
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
893
+ paths: [{ path: "galleries.items.video.videoInfo" }]
894
+ }
895
+ ])
896
+ );
897
+ } catch (err) {
898
+ const transformedError = sdkTransformError(
899
+ err,
900
+ {
901
+ spreadPathsToArguments: {},
902
+ explicitPathsToArguments: {
903
+ itemLimit: "$[0].itemLimit",
904
+ offset: "$[0].offset",
905
+ limit: "$[0].limit"
906
+ },
907
+ singleArgumentUnchanged: false
908
+ },
909
+ ["options"]
910
+ );
911
+ sideEffects?.onError?.(err);
912
+ throw transformedError;
913
+ }
914
+ }
915
+ async function getGallery2(galleryId, options) {
916
+ const { httpClient, sideEffects } = arguments[2];
917
+ const payload = renameKeysFromSDKRequestToRESTRequest({
918
+ galleryId,
919
+ itemOffset: options?.itemOffset,
920
+ itemLimit: options?.itemLimit
921
+ });
922
+ const reqOpts = getGallery(payload);
923
+ sideEffects?.onSiteCall?.();
924
+ try {
925
+ const result = await httpClient.request(reqOpts);
926
+ sideEffects?.onSuccess?.(result);
927
+ return renameKeysFromRESTResponseToSDKResponse(
928
+ transformPaths2(result.data, [
929
+ {
930
+ transformFn: transformRESTImageToSDKImage,
931
+ paths: [
932
+ { path: "gallery.items.image.imageInfo" },
933
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
934
+ ]
935
+ },
936
+ {
937
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
938
+ paths: [{ path: "gallery.items.video.videoInfo" }]
939
+ }
940
+ ])
941
+ )?.gallery;
942
+ } catch (err) {
943
+ const transformedError = sdkTransformError(
944
+ err,
945
+ {
946
+ spreadPathsToArguments: {},
947
+ explicitPathsToArguments: {
948
+ galleryId: "$[0]",
949
+ itemOffset: "$[1].itemOffset",
950
+ itemLimit: "$[1].itemLimit"
951
+ },
952
+ singleArgumentUnchanged: false
953
+ },
954
+ ["galleryId", "options"]
955
+ );
956
+ sideEffects?.onError?.(err);
957
+ throw transformedError;
958
+ }
959
+ }
960
+ async function listGalleryItems2(galleryId, options) {
961
+ const { httpClient, sideEffects } = arguments[2];
962
+ const payload = renameKeysFromSDKRequestToRESTRequest({
963
+ galleryId,
964
+ itemOffset: options?.itemOffset,
965
+ itemLimit: options?.itemLimit
966
+ });
967
+ const reqOpts = listGalleryItems(payload);
968
+ sideEffects?.onSiteCall?.();
969
+ try {
970
+ const result = await httpClient.request(reqOpts);
971
+ sideEffects?.onSuccess?.(result);
972
+ return renameKeysFromRESTResponseToSDKResponse(
973
+ transformPaths2(result.data, [
974
+ {
975
+ transformFn: transformRESTImageToSDKImage,
976
+ paths: [
977
+ { path: "items.image.imageInfo" },
978
+ { path: "items.secondaryMedia.image.imageInfo" }
979
+ ]
980
+ },
981
+ {
982
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
983
+ paths: [{ path: "items.video.videoInfo" }]
984
+ }
985
+ ])
986
+ );
987
+ } catch (err) {
988
+ const transformedError = sdkTransformError(
989
+ err,
990
+ {
991
+ spreadPathsToArguments: {},
992
+ explicitPathsToArguments: {
993
+ galleryId: "$[0]",
994
+ itemOffset: "$[1].itemOffset",
995
+ itemLimit: "$[1].itemLimit"
996
+ },
997
+ singleArgumentUnchanged: false
998
+ },
999
+ ["galleryId", "options"]
1000
+ );
1001
+ sideEffects?.onError?.(err);
1002
+ throw transformedError;
1003
+ }
1004
+ }
1005
+ async function getGalleryItem2(identifiers) {
1006
+ const { httpClient, sideEffects } = arguments[1];
1007
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1008
+ galleryId: identifiers?.galleryId,
1009
+ itemId: identifiers?.itemId
1010
+ });
1011
+ const reqOpts = getGalleryItem(payload);
1012
+ sideEffects?.onSiteCall?.();
1013
+ try {
1014
+ const result = await httpClient.request(reqOpts);
1015
+ sideEffects?.onSuccess?.(result);
1016
+ return renameKeysFromRESTResponseToSDKResponse(
1017
+ transformPaths2(result.data, [
1018
+ {
1019
+ transformFn: transformRESTImageToSDKImage,
1020
+ paths: [
1021
+ { path: "item.image.imageInfo" },
1022
+ { path: "item.secondaryMedia.image.imageInfo" }
1023
+ ]
1024
+ },
1025
+ {
1026
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1027
+ paths: [{ path: "item.video.videoInfo" }]
1028
+ }
1029
+ ])
1030
+ )?.item;
1031
+ } catch (err) {
1032
+ const transformedError = sdkTransformError(
1033
+ err,
1034
+ {
1035
+ spreadPathsToArguments: {},
1036
+ explicitPathsToArguments: {
1037
+ galleryId: "$[0].galleryId",
1038
+ itemId: "$[0].itemId"
1039
+ },
1040
+ singleArgumentUnchanged: false
1041
+ },
1042
+ ["identifiers"]
1043
+ );
1044
+ sideEffects?.onError?.(err);
1045
+ throw transformedError;
1046
+ }
1047
+ }
1048
+ async function createGallery2(options) {
1049
+ const { httpClient, sideEffects } = arguments[1];
1050
+ const payload = transformPaths2(
1051
+ renameKeysFromSDKRequestToRESTRequest({
1052
+ gallery: options?.gallery,
1053
+ cloneFromGalleryId: options?.cloneFromGalleryId
1054
+ }),
1055
+ [
1056
+ {
1057
+ transformFn: transformSDKImageToRESTImage,
1058
+ paths: [
1059
+ { path: "gallery.items.image.imageInfo" },
1060
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1061
+ ]
1062
+ },
1063
+ {
1064
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1065
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1066
+ }
1067
+ ]
1068
+ );
1069
+ const reqOpts = createGallery(payload);
1070
+ sideEffects?.onSiteCall?.();
1071
+ try {
1072
+ const result = await httpClient.request(reqOpts);
1073
+ sideEffects?.onSuccess?.(result);
1074
+ return renameKeysFromRESTResponseToSDKResponse(
1075
+ transformPaths2(result.data, [
1076
+ {
1077
+ transformFn: transformRESTImageToSDKImage,
1078
+ paths: [
1079
+ { path: "gallery.items.image.imageInfo" },
1080
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1081
+ ]
1082
+ },
1083
+ {
1084
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1085
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1086
+ }
1087
+ ])
1088
+ )?.gallery;
1089
+ } catch (err) {
1090
+ const transformedError = sdkTransformError(
1091
+ err,
1092
+ {
1093
+ spreadPathsToArguments: {},
1094
+ explicitPathsToArguments: {
1095
+ gallery: "$[0].gallery",
1096
+ cloneFromGalleryId: "$[0].cloneFromGalleryId"
1097
+ },
1098
+ singleArgumentUnchanged: false
1099
+ },
1100
+ ["options"]
1101
+ );
1102
+ sideEffects?.onError?.(err);
1103
+ throw transformedError;
1104
+ }
1105
+ }
1106
+ async function updateGallery2(_id, gallery) {
1107
+ const { httpClient, sideEffects } = arguments[2];
1108
+ const payload = transformPaths2(
1109
+ renameKeysFromSDKRequestToRESTRequest({ gallery: { ...gallery, id: _id } }),
1110
+ [
1111
+ {
1112
+ transformFn: transformSDKImageToRESTImage,
1113
+ paths: [
1114
+ { path: "gallery.items.image.imageInfo" },
1115
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1116
+ ]
1117
+ },
1118
+ {
1119
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1120
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1121
+ }
1122
+ ]
1123
+ );
1124
+ const reqOpts = updateGallery(payload);
1125
+ sideEffects?.onSiteCall?.();
1126
+ try {
1127
+ const result = await httpClient.request(reqOpts);
1128
+ sideEffects?.onSuccess?.(result);
1129
+ return renameKeysFromRESTResponseToSDKResponse(
1130
+ transformPaths2(result.data, [
1131
+ {
1132
+ transformFn: transformRESTImageToSDKImage,
1133
+ paths: [
1134
+ { path: "gallery.items.image.imageInfo" },
1135
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1136
+ ]
1137
+ },
1138
+ {
1139
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1140
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1141
+ }
1142
+ ])
1143
+ )?.gallery;
1144
+ } catch (err) {
1145
+ const transformedError = sdkTransformError(
1146
+ err,
1147
+ {
1148
+ spreadPathsToArguments: { gallery: "$[1]" },
1149
+ explicitPathsToArguments: { "gallery.id": "$[0]" },
1150
+ singleArgumentUnchanged: false
1151
+ },
1152
+ ["_id", "gallery"]
1153
+ );
1154
+ sideEffects?.onError?.(err);
1155
+ throw transformedError;
1156
+ }
1157
+ }
1158
+ async function deleteGallery2(galleryId) {
1159
+ const { httpClient, sideEffects } = arguments[1];
1160
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1161
+ galleryId
1162
+ });
1163
+ const reqOpts = deleteGallery(payload);
1164
+ sideEffects?.onSiteCall?.();
1165
+ try {
1166
+ const result = await httpClient.request(reqOpts);
1167
+ sideEffects?.onSuccess?.(result);
1168
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1169
+ } catch (err) {
1170
+ const transformedError = sdkTransformError(
1171
+ err,
1172
+ {
1173
+ spreadPathsToArguments: {},
1174
+ explicitPathsToArguments: { galleryId: "$[0]" },
1175
+ singleArgumentUnchanged: false
1176
+ },
1177
+ ["galleryId"]
1178
+ );
1179
+ sideEffects?.onError?.(err);
1180
+ throw transformedError;
1181
+ }
1182
+ }
1183
+ async function deleteGalleryItems2(galleryId, options) {
1184
+ const { httpClient, sideEffects } = arguments[2];
1185
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1186
+ galleryId,
1187
+ itemsIds: options?.itemsIds
1188
+ });
1189
+ const reqOpts = deleteGalleryItems(payload);
1190
+ sideEffects?.onSiteCall?.();
1191
+ try {
1192
+ const result = await httpClient.request(reqOpts);
1193
+ sideEffects?.onSuccess?.(result);
1194
+ return renameKeysFromRESTResponseToSDKResponse(
1195
+ transformPaths2(result.data, [
1196
+ {
1197
+ transformFn: transformRESTImageToSDKImage,
1198
+ paths: [
1199
+ { path: "gallery.items.image.imageInfo" },
1200
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1201
+ ]
1202
+ },
1203
+ {
1204
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1205
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1206
+ }
1207
+ ])
1208
+ );
1209
+ } catch (err) {
1210
+ const transformedError = sdkTransformError(
1211
+ err,
1212
+ {
1213
+ spreadPathsToArguments: {},
1214
+ explicitPathsToArguments: {
1215
+ galleryId: "$[0]",
1216
+ itemsIds: "$[1].itemsIds"
1217
+ },
1218
+ singleArgumentUnchanged: false
1219
+ },
1220
+ ["galleryId", "options"]
1221
+ );
1222
+ sideEffects?.onError?.(err);
1223
+ throw transformedError;
1224
+ }
1225
+ }
1226
+ async function bulkDeleteGalleryItems2(galleryId, itemIds) {
1227
+ const { httpClient, sideEffects } = arguments[2];
1228
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1229
+ galleryId,
1230
+ itemIds
1231
+ });
1232
+ const reqOpts = bulkDeleteGalleryItems(payload);
1233
+ sideEffects?.onSiteCall?.();
1234
+ try {
1235
+ const result = await httpClient.request(reqOpts);
1236
+ sideEffects?.onSuccess?.(result);
1237
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1238
+ } catch (err) {
1239
+ const transformedError = sdkTransformError(
1240
+ err,
1241
+ {
1242
+ spreadPathsToArguments: {},
1243
+ explicitPathsToArguments: { galleryId: "$[0]", itemIds: "$[1]" },
1244
+ singleArgumentUnchanged: false
1245
+ },
1246
+ ["galleryId", "itemIds"]
1247
+ );
1248
+ sideEffects?.onError?.(err);
1249
+ throw transformedError;
1250
+ }
1251
+ }
1252
+ async function createGalleryItem2(galleryId, item) {
1253
+ const { httpClient, sideEffects } = arguments[2];
1254
+ const payload = transformPaths2(
1255
+ renameKeysFromSDKRequestToRESTRequest({ galleryId, item }),
1256
+ [
1257
+ {
1258
+ transformFn: transformSDKImageToRESTImage,
1259
+ paths: [
1260
+ { path: "item.image.imageInfo" },
1261
+ { path: "item.secondaryMedia.image.imageInfo" }
1262
+ ]
1263
+ },
1264
+ {
1265
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1266
+ paths: [{ path: "item.video.videoInfo" }]
1267
+ }
1268
+ ]
1269
+ );
1270
+ const reqOpts = createGalleryItem(payload);
1271
+ sideEffects?.onSiteCall?.();
1272
+ try {
1273
+ const result = await httpClient.request(reqOpts);
1274
+ sideEffects?.onSuccess?.(result);
1275
+ return renameKeysFromRESTResponseToSDKResponse(
1276
+ transformPaths2(result.data, [
1277
+ {
1278
+ transformFn: transformRESTImageToSDKImage,
1279
+ paths: [
1280
+ { path: "item.image.imageInfo" },
1281
+ { path: "item.secondaryMedia.image.imageInfo" }
1282
+ ]
1283
+ },
1284
+ {
1285
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1286
+ paths: [{ path: "item.video.videoInfo" }]
1287
+ }
1288
+ ])
1289
+ )?.item;
1290
+ } catch (err) {
1291
+ const transformedError = sdkTransformError(
1292
+ err,
1293
+ {
1294
+ spreadPathsToArguments: {},
1295
+ explicitPathsToArguments: { galleryId: "$[0]", item: "$[1]" },
1296
+ singleArgumentUnchanged: false
1297
+ },
1298
+ ["galleryId", "item"]
1299
+ );
1300
+ sideEffects?.onError?.(err);
1301
+ throw transformedError;
1302
+ }
1303
+ }
1304
+ async function updateGalleryItem2(identifiers, item) {
1305
+ const { httpClient, sideEffects } = arguments[2];
1306
+ const payload = transformPaths2(
1307
+ renameKeysFromSDKRequestToRESTRequest({
1308
+ galleryId: identifiers?.galleryId,
1309
+ item: { ...item, id: identifiers?.itemId }
1310
+ }),
1311
+ [
1312
+ {
1313
+ transformFn: transformSDKImageToRESTImage,
1314
+ paths: [
1315
+ { path: "item.image.imageInfo" },
1316
+ { path: "item.secondaryMedia.image.imageInfo" }
1317
+ ]
1318
+ },
1319
+ {
1320
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1321
+ paths: [{ path: "item.video.videoInfo" }]
1322
+ }
1323
+ ]
1324
+ );
1325
+ const reqOpts = updateGalleryItem(payload);
1326
+ sideEffects?.onSiteCall?.();
1327
+ try {
1328
+ const result = await httpClient.request(reqOpts);
1329
+ sideEffects?.onSuccess?.(result);
1330
+ return renameKeysFromRESTResponseToSDKResponse(
1331
+ transformPaths2(result.data, [
1332
+ {
1333
+ transformFn: transformRESTImageToSDKImage,
1334
+ paths: [
1335
+ { path: "item.image.imageInfo" },
1336
+ { path: "item.secondaryMedia.image.imageInfo" }
1337
+ ]
1338
+ },
1339
+ {
1340
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1341
+ paths: [{ path: "item.video.videoInfo" }]
1342
+ }
1343
+ ])
1344
+ )?.item;
1345
+ } catch (err) {
1346
+ const transformedError = sdkTransformError(
1347
+ err,
1348
+ {
1349
+ spreadPathsToArguments: { item: "$[1]" },
1350
+ explicitPathsToArguments: {
1351
+ galleryId: "$[0].galleryId",
1352
+ "item.id": "$[0].itemId"
1353
+ },
1354
+ singleArgumentUnchanged: false
1355
+ },
1356
+ ["identifiers", "item"]
1357
+ );
1358
+ sideEffects?.onError?.(err);
1359
+ throw transformedError;
1360
+ }
1361
+ }
1362
+ async function deleteGalleryItem2(identifiers) {
1363
+ const { httpClient, sideEffects } = arguments[1];
1364
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1365
+ galleryId: identifiers?.galleryId,
1366
+ itemId: identifiers?.itemId
1367
+ });
1368
+ const reqOpts = deleteGalleryItem(payload);
1369
+ sideEffects?.onSiteCall?.();
1370
+ try {
1371
+ const result = await httpClient.request(reqOpts);
1372
+ sideEffects?.onSuccess?.(result);
1373
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1374
+ } catch (err) {
1375
+ const transformedError = sdkTransformError(
1376
+ err,
1377
+ {
1378
+ spreadPathsToArguments: {},
1379
+ explicitPathsToArguments: {
1380
+ galleryId: "$[0].galleryId",
1381
+ itemId: "$[0].itemId"
1382
+ },
1383
+ singleArgumentUnchanged: false
1384
+ },
1385
+ ["identifiers"]
1386
+ );
1387
+ sideEffects?.onError?.(err);
1388
+ throw transformedError;
1389
+ }
1390
+ }
1391
+
1392
+ // src/pro-gallery-v2-gallery-pro-gallery.public.ts
1393
+ function listGalleries3(httpClient) {
1394
+ return (options) => listGalleries2(
1395
+ options,
1396
+ // @ts-ignore
1397
+ { httpClient }
1398
+ );
1399
+ }
1400
+ function getGallery3(httpClient) {
1401
+ return (galleryId, options) => getGallery2(
1402
+ galleryId,
1403
+ options,
1404
+ // @ts-ignore
1405
+ { httpClient }
1406
+ );
1407
+ }
1408
+ function listGalleryItems3(httpClient) {
1409
+ return (galleryId, options) => listGalleryItems2(
1410
+ galleryId,
1411
+ options,
1412
+ // @ts-ignore
1413
+ { httpClient }
1414
+ );
1415
+ }
1416
+ function getGalleryItem3(httpClient) {
1417
+ return (identifiers) => getGalleryItem2(
1418
+ identifiers,
1419
+ // @ts-ignore
1420
+ { httpClient }
1421
+ );
1422
+ }
1423
+ function createGallery3(httpClient) {
1424
+ return (options) => createGallery2(
1425
+ options,
1426
+ // @ts-ignore
1427
+ { httpClient }
1428
+ );
1429
+ }
1430
+ function updateGallery3(httpClient) {
1431
+ return (_id, gallery) => updateGallery2(
1432
+ _id,
1433
+ gallery,
1434
+ // @ts-ignore
1435
+ { httpClient }
1436
+ );
1437
+ }
1438
+ function deleteGallery3(httpClient) {
1439
+ return (galleryId) => deleteGallery2(
1440
+ galleryId,
1441
+ // @ts-ignore
1442
+ { httpClient }
1443
+ );
1444
+ }
1445
+ function deleteGalleryItems3(httpClient) {
1446
+ return (galleryId, options) => deleteGalleryItems2(
1447
+ galleryId,
1448
+ options,
1449
+ // @ts-ignore
1450
+ { httpClient }
1451
+ );
1452
+ }
1453
+ function bulkDeleteGalleryItems3(httpClient) {
1454
+ return (galleryId, itemIds) => bulkDeleteGalleryItems2(
1455
+ galleryId,
1456
+ itemIds,
1457
+ // @ts-ignore
1458
+ { httpClient }
1459
+ );
1460
+ }
1461
+ function createGalleryItem3(httpClient) {
1462
+ return (galleryId, item) => createGalleryItem2(
1463
+ galleryId,
1464
+ item,
1465
+ // @ts-ignore
1466
+ { httpClient }
1467
+ );
1468
+ }
1469
+ function updateGalleryItem3(httpClient) {
1470
+ return (identifiers, item) => updateGalleryItem2(
1471
+ identifiers,
1472
+ item,
1473
+ // @ts-ignore
1474
+ { httpClient }
1475
+ );
1476
+ }
1477
+ function deleteGalleryItem3(httpClient) {
1478
+ return (identifiers) => deleteGalleryItem2(
1479
+ identifiers,
1480
+ // @ts-ignore
1481
+ { httpClient }
1482
+ );
1483
+ }
1484
+ var onGalleryCreated = EventDefinition(
1485
+ "wix.pro_gallery.gallery_v2_created",
1486
+ true,
1487
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1488
+ transformPaths3(event, [
1489
+ {
1490
+ transformFn: transformRESTFloatToSDKFloat2,
1491
+ paths: [
1492
+ { path: "entity.sortOrder" },
1493
+ { path: "entity.items.sortOrder" },
1494
+ { path: "entity.items.image.focalPoint.x" },
1495
+ { path: "entity.items.image.focalPoint.y" },
1496
+ { path: "entity.items.secondaryMedia.image.focalPoint.x" },
1497
+ { path: "entity.items.secondaryMedia.image.focalPoint.y" },
1498
+ { path: "entity.items.image.unsharpMasking.amount" },
1499
+ { path: "entity.items.image.unsharpMasking.radius" },
1500
+ { path: "entity.items.image.unsharpMasking.threshold" },
1501
+ { path: "entity.items.secondaryMedia.image.unsharpMasking.amount" },
1502
+ { path: "entity.items.secondaryMedia.image.unsharpMasking.radius" },
1503
+ {
1504
+ path: "entity.items.secondaryMedia.image.unsharpMasking.threshold"
1505
+ }
1506
+ ]
1507
+ },
1508
+ {
1509
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1510
+ paths: [
1511
+ { path: "entity.createdDate" },
1512
+ { path: "entity.items.createdDate" },
1513
+ { path: "entity.items.updatedDate" },
1514
+ { path: "metadata.eventTime" }
1515
+ ]
1516
+ },
1517
+ {
1518
+ transformFn: transformRESTImageToSDKImage2,
1519
+ paths: [
1520
+ { path: "entity.items.image.imageInfo" },
1521
+ { path: "entity.items.secondaryMedia.image.imageInfo" }
1522
+ ]
1523
+ },
1524
+ {
1525
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1526
+ paths: [{ path: "entity.items.video.videoInfo" }]
1527
+ }
1528
+ ])
1529
+ )
1530
+ )();
1531
+ var onGalleryDeleted = EventDefinition(
1532
+ "wix.pro_gallery.gallery_v2_deleted",
1533
+ true,
1534
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1535
+ transformPaths3(event, [
1536
+ {
1537
+ transformFn: transformRESTFloatToSDKFloat2,
1538
+ paths: [
1539
+ { path: "undefined.sortOrder" },
1540
+ { path: "undefined.items.sortOrder" },
1541
+ { path: "undefined.items.image.focalPoint.x" },
1542
+ { path: "undefined.items.image.focalPoint.y" },
1543
+ { path: "undefined.items.secondaryMedia.image.focalPoint.x" },
1544
+ { path: "undefined.items.secondaryMedia.image.focalPoint.y" },
1545
+ { path: "undefined.items.image.unsharpMasking.amount" },
1546
+ { path: "undefined.items.image.unsharpMasking.radius" },
1547
+ { path: "undefined.items.image.unsharpMasking.threshold" },
1548
+ {
1549
+ path: "undefined.items.secondaryMedia.image.unsharpMasking.amount"
1550
+ },
1551
+ {
1552
+ path: "undefined.items.secondaryMedia.image.unsharpMasking.radius"
1553
+ },
1554
+ {
1555
+ path: "undefined.items.secondaryMedia.image.unsharpMasking.threshold"
1556
+ }
1557
+ ]
1558
+ },
1559
+ {
1560
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1561
+ paths: [
1562
+ { path: "undefined.createdDate" },
1563
+ { path: "undefined.items.createdDate" },
1564
+ { path: "undefined.items.updatedDate" },
1565
+ { path: "metadata.eventTime" }
1566
+ ]
1567
+ },
1568
+ {
1569
+ transformFn: transformRESTImageToSDKImage2,
1570
+ paths: [
1571
+ { path: "undefined.items.image.imageInfo" },
1572
+ { path: "undefined.items.secondaryMedia.image.imageInfo" }
1573
+ ]
1574
+ },
1575
+ {
1576
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1577
+ paths: [{ path: "undefined.items.video.videoInfo" }]
1578
+ }
1579
+ ])
1580
+ )
1581
+ )();
1582
+ var onGalleryItemCreated = EventDefinition(
1583
+ "wix.pro_gallery.gallery_v2_gallery_item_created",
1584
+ true,
1585
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1586
+ transformPaths3(event, [
1587
+ {
1588
+ transformFn: transformRESTFloatToSDKFloat2,
1589
+ paths: [
1590
+ { path: "data.item.sortOrder" },
1591
+ { path: "data.item.image.focalPoint.x" },
1592
+ { path: "data.item.image.focalPoint.y" },
1593
+ { path: "data.item.secondaryMedia.image.focalPoint.x" },
1594
+ { path: "data.item.secondaryMedia.image.focalPoint.y" },
1595
+ { path: "data.item.image.unsharpMasking.amount" },
1596
+ { path: "data.item.image.unsharpMasking.radius" },
1597
+ { path: "data.item.image.unsharpMasking.threshold" },
1598
+ { path: "data.item.secondaryMedia.image.unsharpMasking.amount" },
1599
+ { path: "data.item.secondaryMedia.image.unsharpMasking.radius" },
1600
+ { path: "data.item.secondaryMedia.image.unsharpMasking.threshold" }
1601
+ ]
1602
+ },
1603
+ {
1604
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1605
+ paths: [
1606
+ { path: "data.item.createdDate" },
1607
+ { path: "data.item.updatedDate" },
1608
+ { path: "metadata.eventTime" }
1609
+ ]
1610
+ },
1611
+ {
1612
+ transformFn: transformRESTImageToSDKImage2,
1613
+ paths: [
1614
+ { path: "data.item.image.imageInfo" },
1615
+ { path: "data.item.secondaryMedia.image.imageInfo" }
1616
+ ]
1617
+ },
1618
+ {
1619
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1620
+ paths: [{ path: "data.item.video.videoInfo" }]
1621
+ }
1622
+ ])
1623
+ )
1624
+ )();
1625
+ var onGalleryItemDeleted = EventDefinition(
1626
+ "wix.pro_gallery.gallery_v2_gallery_item_deleted",
1627
+ true,
1628
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1629
+ transformPaths3(event, [
1630
+ {
1631
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1632
+ paths: [{ path: "metadata.eventTime" }]
1633
+ }
1634
+ ])
1635
+ )
1636
+ )();
1637
+ var onGalleryItemUpdated = EventDefinition(
1638
+ "wix.pro_gallery.gallery_v2_gallery_item_updated",
1639
+ true,
1640
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1641
+ transformPaths3(event, [
1642
+ {
1643
+ transformFn: transformRESTFloatToSDKFloat2,
1644
+ paths: [
1645
+ { path: "data.updatedItem.sortOrder" },
1646
+ { path: "data.updatedItem.image.focalPoint.x" },
1647
+ { path: "data.updatedItem.image.focalPoint.y" },
1648
+ { path: "data.updatedItem.secondaryMedia.image.focalPoint.x" },
1649
+ { path: "data.updatedItem.secondaryMedia.image.focalPoint.y" },
1650
+ { path: "data.updatedItem.image.unsharpMasking.amount" },
1651
+ { path: "data.updatedItem.image.unsharpMasking.radius" },
1652
+ { path: "data.updatedItem.image.unsharpMasking.threshold" },
1653
+ {
1654
+ path: "data.updatedItem.secondaryMedia.image.unsharpMasking.amount"
1655
+ },
1656
+ {
1657
+ path: "data.updatedItem.secondaryMedia.image.unsharpMasking.radius"
1658
+ },
1659
+ {
1660
+ path: "data.updatedItem.secondaryMedia.image.unsharpMasking.threshold"
1661
+ }
1662
+ ]
1663
+ },
1664
+ {
1665
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1666
+ paths: [
1667
+ { path: "data.updatedItem.createdDate" },
1668
+ { path: "data.updatedItem.updatedDate" },
1669
+ { path: "metadata.eventTime" }
1670
+ ]
1671
+ },
1672
+ {
1673
+ transformFn: transformRESTImageToSDKImage2,
1674
+ paths: [
1675
+ { path: "data.updatedItem.image.imageInfo" },
1676
+ { path: "data.updatedItem.secondaryMedia.image.imageInfo" }
1677
+ ]
1678
+ },
1679
+ {
1680
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1681
+ paths: [{ path: "data.updatedItem.video.videoInfo" }]
1682
+ }
1683
+ ])
1684
+ )
1685
+ )();
1686
+ var onGalleryUpdated = EventDefinition(
1687
+ "wix.pro_gallery.gallery_v2_updated",
1688
+ true,
1689
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1690
+ transformPaths3(event, [
1691
+ {
1692
+ transformFn: transformRESTFloatToSDKFloat2,
1693
+ paths: [
1694
+ { path: "entity.sortOrder" },
1695
+ { path: "entity.items.sortOrder" },
1696
+ { path: "entity.items.image.focalPoint.x" },
1697
+ { path: "entity.items.image.focalPoint.y" },
1698
+ { path: "entity.items.secondaryMedia.image.focalPoint.x" },
1699
+ { path: "entity.items.secondaryMedia.image.focalPoint.y" },
1700
+ { path: "entity.items.image.unsharpMasking.amount" },
1701
+ { path: "entity.items.image.unsharpMasking.radius" },
1702
+ { path: "entity.items.image.unsharpMasking.threshold" },
1703
+ { path: "entity.items.secondaryMedia.image.unsharpMasking.amount" },
1704
+ { path: "entity.items.secondaryMedia.image.unsharpMasking.radius" },
1705
+ {
1706
+ path: "entity.items.secondaryMedia.image.unsharpMasking.threshold"
1707
+ }
1708
+ ]
1709
+ },
1710
+ {
1711
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1712
+ paths: [
1713
+ { path: "entity.createdDate" },
1714
+ { path: "entity.items.createdDate" },
1715
+ { path: "entity.items.updatedDate" },
1716
+ { path: "metadata.eventTime" }
1717
+ ]
1718
+ },
1719
+ {
1720
+ transformFn: transformRESTImageToSDKImage2,
1721
+ paths: [
1722
+ { path: "entity.items.image.imageInfo" },
1723
+ { path: "entity.items.secondaryMedia.image.imageInfo" }
1724
+ ]
1725
+ },
1726
+ {
1727
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1728
+ paths: [{ path: "entity.items.video.videoInfo" }]
1729
+ }
1730
+ ])
1731
+ )
1732
+ )();
1733
+
1734
+ // src/pro-gallery-v2-gallery-pro-gallery.context.ts
1735
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
1736
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
1737
+ var listGalleries4 = /* @__PURE__ */ createRESTModule(listGalleries3);
1738
+ var getGallery4 = /* @__PURE__ */ createRESTModule(getGallery3);
1739
+ var listGalleryItems4 = /* @__PURE__ */ createRESTModule(listGalleryItems3);
1740
+ var getGalleryItem4 = /* @__PURE__ */ createRESTModule(getGalleryItem3);
1741
+ var createGallery4 = /* @__PURE__ */ createRESTModule(createGallery3);
1742
+ var updateGallery4 = /* @__PURE__ */ createRESTModule(updateGallery3);
1743
+ var deleteGallery4 = /* @__PURE__ */ createRESTModule(deleteGallery3);
1744
+ var deleteGalleryItems4 = /* @__PURE__ */ createRESTModule(deleteGalleryItems3);
1745
+ var bulkDeleteGalleryItems4 = /* @__PURE__ */ createRESTModule(bulkDeleteGalleryItems3);
1746
+ var createGalleryItem4 = /* @__PURE__ */ createRESTModule(createGalleryItem3);
1747
+ var updateGalleryItem4 = /* @__PURE__ */ createRESTModule(updateGalleryItem3);
1748
+ var deleteGalleryItem4 = /* @__PURE__ */ createRESTModule(deleteGalleryItem3);
1749
+ var onGalleryCreated2 = createEventModule(onGalleryCreated);
1750
+ var onGalleryDeleted2 = createEventModule(onGalleryDeleted);
1751
+ var onGalleryItemCreated2 = createEventModule(onGalleryItemCreated);
1752
+ var onGalleryItemDeleted2 = createEventModule(onGalleryItemDeleted);
1753
+ var onGalleryItemUpdated2 = createEventModule(onGalleryItemUpdated);
1754
+ var onGalleryUpdated2 = createEventModule(onGalleryUpdated);
1755
+ export {
1756
+ Enum,
1757
+ ImageType,
1758
+ LinkRel,
1759
+ LinkType,
1760
+ SearchIndexingNotificationState,
1761
+ State,
1762
+ Type,
1763
+ VideoType,
1764
+ WebhookIdentityType,
1765
+ bulkDeleteGalleryItems4 as bulkDeleteGalleryItems,
1766
+ createGallery4 as createGallery,
1767
+ createGalleryItem4 as createGalleryItem,
1768
+ deleteGallery4 as deleteGallery,
1769
+ deleteGalleryItem4 as deleteGalleryItem,
1770
+ deleteGalleryItems4 as deleteGalleryItems,
1771
+ getGallery4 as getGallery,
1772
+ getGalleryItem4 as getGalleryItem,
1773
+ listGalleries4 as listGalleries,
1774
+ listGalleryItems4 as listGalleryItems,
1775
+ onGalleryCreated2 as onGalleryCreated,
1776
+ onGalleryDeleted2 as onGalleryDeleted,
1777
+ onGalleryItemCreated2 as onGalleryItemCreated,
1778
+ onGalleryItemDeleted2 as onGalleryItemDeleted,
1779
+ onGalleryItemUpdated2 as onGalleryItemUpdated,
1780
+ onGalleryUpdated2 as onGalleryUpdated,
1781
+ updateGallery4 as updateGallery,
1782
+ updateGalleryItem4 as updateGalleryItem
1783
+ };
1784
+ //# sourceMappingURL=index.mjs.map