@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
@@ -0,0 +1,1796 @@
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 RCLabel = /* @__PURE__ */ ((RCLabel2) => {
842
+ RCLabel2["UNKNOWN"] = "UNKNOWN";
843
+ RCLabel2["RELEASE_MANAGER"] = "RELEASE_MANAGER";
844
+ RCLabel2["BLOCKS"] = "BLOCKS";
845
+ RCLabel2["WIX_CLI"] = "WIX_CLI";
846
+ RCLabel2["MOBILE_APP_BUILDER"] = "MOBILE_APP_BUILDER";
847
+ RCLabel2["SEO"] = "SEO";
848
+ RCLabel2["FEEDBACK"] = "FEEDBACK";
849
+ RCLabel2["ACCESSIBILITY"] = "ACCESSIBILITY";
850
+ return RCLabel2;
851
+ })(RCLabel || {});
852
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
853
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
854
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
855
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
856
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
857
+ WebhookIdentityType2["APP"] = "APP";
858
+ return WebhookIdentityType2;
859
+ })(WebhookIdentityType || {});
860
+ var State = /* @__PURE__ */ ((State2) => {
861
+ State2["UNDEFINED"] = "UNDEFINED";
862
+ State2["SAVED"] = "SAVED";
863
+ State2["PUBLISHED"] = "PUBLISHED";
864
+ return State2;
865
+ })(State || {});
866
+ var Enum = /* @__PURE__ */ ((Enum2) => {
867
+ Enum2["UNKNOWN"] = "UNKNOWN";
868
+ Enum2["PROTECTED"] = "PROTECTED";
869
+ Enum2["PRIVATE"] = "PRIVATE";
870
+ Enum2["PUBLIC"] = "PUBLIC";
871
+ Enum2["UNCHANGED"] = "UNCHANGED";
872
+ Enum2["GROUP_PROTECTED"] = "GROUP_PROTECTED";
873
+ return Enum2;
874
+ })(Enum || {});
875
+ var SearchIndexingNotificationState = /* @__PURE__ */ ((SearchIndexingNotificationState2) => {
876
+ SearchIndexingNotificationState2["Unknown"] = "Unknown";
877
+ SearchIndexingNotificationState2["Off"] = "Off";
878
+ SearchIndexingNotificationState2["On"] = "On";
879
+ return SearchIndexingNotificationState2;
880
+ })(SearchIndexingNotificationState || {});
881
+ async function listGalleries2(options) {
882
+ const { httpClient, sideEffects } = arguments[1];
883
+ const payload = renameKeysFromSDKRequestToRESTRequest({
884
+ itemLimit: options?.itemLimit,
885
+ offset: options?.offset,
886
+ limit: options?.limit
887
+ });
888
+ const reqOpts = listGalleries(payload);
889
+ sideEffects?.onSiteCall?.();
890
+ try {
891
+ const result = await httpClient.request(reqOpts);
892
+ sideEffects?.onSuccess?.(result);
893
+ return renameKeysFromRESTResponseToSDKResponse(
894
+ transformPaths2(result.data, [
895
+ {
896
+ transformFn: transformRESTImageToSDKImage,
897
+ paths: [
898
+ { path: "galleries.items.image.imageInfo" },
899
+ { path: "galleries.items.secondaryMedia.image.imageInfo" }
900
+ ]
901
+ },
902
+ {
903
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
904
+ paths: [{ path: "galleries.items.video.videoInfo" }]
905
+ }
906
+ ])
907
+ );
908
+ } catch (err) {
909
+ const transformedError = sdkTransformError(
910
+ err,
911
+ {
912
+ spreadPathsToArguments: {},
913
+ explicitPathsToArguments: {
914
+ itemLimit: "$[0].itemLimit",
915
+ offset: "$[0].offset",
916
+ limit: "$[0].limit"
917
+ },
918
+ singleArgumentUnchanged: false
919
+ },
920
+ ["options"]
921
+ );
922
+ sideEffects?.onError?.(err);
923
+ throw transformedError;
924
+ }
925
+ }
926
+ async function getGallery2(galleryId, options) {
927
+ const { httpClient, sideEffects } = arguments[2];
928
+ const payload = renameKeysFromSDKRequestToRESTRequest({
929
+ galleryId,
930
+ itemOffset: options?.itemOffset,
931
+ itemLimit: options?.itemLimit
932
+ });
933
+ const reqOpts = getGallery(payload);
934
+ sideEffects?.onSiteCall?.();
935
+ try {
936
+ const result = await httpClient.request(reqOpts);
937
+ sideEffects?.onSuccess?.(result);
938
+ return renameKeysFromRESTResponseToSDKResponse(
939
+ transformPaths2(result.data, [
940
+ {
941
+ transformFn: transformRESTImageToSDKImage,
942
+ paths: [
943
+ { path: "gallery.items.image.imageInfo" },
944
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
945
+ ]
946
+ },
947
+ {
948
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
949
+ paths: [{ path: "gallery.items.video.videoInfo" }]
950
+ }
951
+ ])
952
+ )?.gallery;
953
+ } catch (err) {
954
+ const transformedError = sdkTransformError(
955
+ err,
956
+ {
957
+ spreadPathsToArguments: {},
958
+ explicitPathsToArguments: {
959
+ galleryId: "$[0]",
960
+ itemOffset: "$[1].itemOffset",
961
+ itemLimit: "$[1].itemLimit"
962
+ },
963
+ singleArgumentUnchanged: false
964
+ },
965
+ ["galleryId", "options"]
966
+ );
967
+ sideEffects?.onError?.(err);
968
+ throw transformedError;
969
+ }
970
+ }
971
+ async function listGalleryItems2(galleryId, options) {
972
+ const { httpClient, sideEffects } = arguments[2];
973
+ const payload = renameKeysFromSDKRequestToRESTRequest({
974
+ galleryId,
975
+ itemOffset: options?.itemOffset,
976
+ itemLimit: options?.itemLimit
977
+ });
978
+ const reqOpts = listGalleryItems(payload);
979
+ sideEffects?.onSiteCall?.();
980
+ try {
981
+ const result = await httpClient.request(reqOpts);
982
+ sideEffects?.onSuccess?.(result);
983
+ return renameKeysFromRESTResponseToSDKResponse(
984
+ transformPaths2(result.data, [
985
+ {
986
+ transformFn: transformRESTImageToSDKImage,
987
+ paths: [
988
+ { path: "items.image.imageInfo" },
989
+ { path: "items.secondaryMedia.image.imageInfo" }
990
+ ]
991
+ },
992
+ {
993
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
994
+ paths: [{ path: "items.video.videoInfo" }]
995
+ }
996
+ ])
997
+ );
998
+ } catch (err) {
999
+ const transformedError = sdkTransformError(
1000
+ err,
1001
+ {
1002
+ spreadPathsToArguments: {},
1003
+ explicitPathsToArguments: {
1004
+ galleryId: "$[0]",
1005
+ itemOffset: "$[1].itemOffset",
1006
+ itemLimit: "$[1].itemLimit"
1007
+ },
1008
+ singleArgumentUnchanged: false
1009
+ },
1010
+ ["galleryId", "options"]
1011
+ );
1012
+ sideEffects?.onError?.(err);
1013
+ throw transformedError;
1014
+ }
1015
+ }
1016
+ async function getGalleryItem2(identifiers) {
1017
+ const { httpClient, sideEffects } = arguments[1];
1018
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1019
+ galleryId: identifiers?.galleryId,
1020
+ itemId: identifiers?.itemId
1021
+ });
1022
+ const reqOpts = getGalleryItem(payload);
1023
+ sideEffects?.onSiteCall?.();
1024
+ try {
1025
+ const result = await httpClient.request(reqOpts);
1026
+ sideEffects?.onSuccess?.(result);
1027
+ return renameKeysFromRESTResponseToSDKResponse(
1028
+ transformPaths2(result.data, [
1029
+ {
1030
+ transformFn: transformRESTImageToSDKImage,
1031
+ paths: [
1032
+ { path: "item.image.imageInfo" },
1033
+ { path: "item.secondaryMedia.image.imageInfo" }
1034
+ ]
1035
+ },
1036
+ {
1037
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1038
+ paths: [{ path: "item.video.videoInfo" }]
1039
+ }
1040
+ ])
1041
+ )?.item;
1042
+ } catch (err) {
1043
+ const transformedError = sdkTransformError(
1044
+ err,
1045
+ {
1046
+ spreadPathsToArguments: {},
1047
+ explicitPathsToArguments: {
1048
+ galleryId: "$[0].galleryId",
1049
+ itemId: "$[0].itemId"
1050
+ },
1051
+ singleArgumentUnchanged: false
1052
+ },
1053
+ ["identifiers"]
1054
+ );
1055
+ sideEffects?.onError?.(err);
1056
+ throw transformedError;
1057
+ }
1058
+ }
1059
+ async function createGallery2(options) {
1060
+ const { httpClient, sideEffects } = arguments[1];
1061
+ const payload = transformPaths2(
1062
+ renameKeysFromSDKRequestToRESTRequest({
1063
+ gallery: options?.gallery,
1064
+ cloneFromGalleryId: options?.cloneFromGalleryId
1065
+ }),
1066
+ [
1067
+ {
1068
+ transformFn: transformSDKImageToRESTImage,
1069
+ paths: [
1070
+ { path: "gallery.items.image.imageInfo" },
1071
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1072
+ ]
1073
+ },
1074
+ {
1075
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1076
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1077
+ }
1078
+ ]
1079
+ );
1080
+ const reqOpts = createGallery(payload);
1081
+ sideEffects?.onSiteCall?.();
1082
+ try {
1083
+ const result = await httpClient.request(reqOpts);
1084
+ sideEffects?.onSuccess?.(result);
1085
+ return renameKeysFromRESTResponseToSDKResponse(
1086
+ transformPaths2(result.data, [
1087
+ {
1088
+ transformFn: transformRESTImageToSDKImage,
1089
+ paths: [
1090
+ { path: "gallery.items.image.imageInfo" },
1091
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1092
+ ]
1093
+ },
1094
+ {
1095
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1096
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1097
+ }
1098
+ ])
1099
+ )?.gallery;
1100
+ } catch (err) {
1101
+ const transformedError = sdkTransformError(
1102
+ err,
1103
+ {
1104
+ spreadPathsToArguments: {},
1105
+ explicitPathsToArguments: {
1106
+ gallery: "$[0].gallery",
1107
+ cloneFromGalleryId: "$[0].cloneFromGalleryId"
1108
+ },
1109
+ singleArgumentUnchanged: false
1110
+ },
1111
+ ["options"]
1112
+ );
1113
+ sideEffects?.onError?.(err);
1114
+ throw transformedError;
1115
+ }
1116
+ }
1117
+ async function updateGallery2(_id, gallery) {
1118
+ const { httpClient, sideEffects } = arguments[2];
1119
+ const payload = transformPaths2(
1120
+ renameKeysFromSDKRequestToRESTRequest({ gallery: { ...gallery, id: _id } }),
1121
+ [
1122
+ {
1123
+ transformFn: transformSDKImageToRESTImage,
1124
+ paths: [
1125
+ { path: "gallery.items.image.imageInfo" },
1126
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1127
+ ]
1128
+ },
1129
+ {
1130
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1131
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1132
+ }
1133
+ ]
1134
+ );
1135
+ const reqOpts = updateGallery(payload);
1136
+ sideEffects?.onSiteCall?.();
1137
+ try {
1138
+ const result = await httpClient.request(reqOpts);
1139
+ sideEffects?.onSuccess?.(result);
1140
+ return renameKeysFromRESTResponseToSDKResponse(
1141
+ transformPaths2(result.data, [
1142
+ {
1143
+ transformFn: transformRESTImageToSDKImage,
1144
+ paths: [
1145
+ { path: "gallery.items.image.imageInfo" },
1146
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1147
+ ]
1148
+ },
1149
+ {
1150
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1151
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1152
+ }
1153
+ ])
1154
+ )?.gallery;
1155
+ } catch (err) {
1156
+ const transformedError = sdkTransformError(
1157
+ err,
1158
+ {
1159
+ spreadPathsToArguments: { gallery: "$[1]" },
1160
+ explicitPathsToArguments: { "gallery.id": "$[0]" },
1161
+ singleArgumentUnchanged: false
1162
+ },
1163
+ ["_id", "gallery"]
1164
+ );
1165
+ sideEffects?.onError?.(err);
1166
+ throw transformedError;
1167
+ }
1168
+ }
1169
+ async function deleteGallery2(galleryId) {
1170
+ const { httpClient, sideEffects } = arguments[1];
1171
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1172
+ galleryId
1173
+ });
1174
+ const reqOpts = deleteGallery(payload);
1175
+ sideEffects?.onSiteCall?.();
1176
+ try {
1177
+ const result = await httpClient.request(reqOpts);
1178
+ sideEffects?.onSuccess?.(result);
1179
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1180
+ } catch (err) {
1181
+ const transformedError = sdkTransformError(
1182
+ err,
1183
+ {
1184
+ spreadPathsToArguments: {},
1185
+ explicitPathsToArguments: { galleryId: "$[0]" },
1186
+ singleArgumentUnchanged: false
1187
+ },
1188
+ ["galleryId"]
1189
+ );
1190
+ sideEffects?.onError?.(err);
1191
+ throw transformedError;
1192
+ }
1193
+ }
1194
+ async function deleteGalleryItems2(galleryId, options) {
1195
+ const { httpClient, sideEffects } = arguments[2];
1196
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1197
+ galleryId,
1198
+ itemsIds: options?.itemsIds
1199
+ });
1200
+ const reqOpts = deleteGalleryItems(payload);
1201
+ sideEffects?.onSiteCall?.();
1202
+ try {
1203
+ const result = await httpClient.request(reqOpts);
1204
+ sideEffects?.onSuccess?.(result);
1205
+ return renameKeysFromRESTResponseToSDKResponse(
1206
+ transformPaths2(result.data, [
1207
+ {
1208
+ transformFn: transformRESTImageToSDKImage,
1209
+ paths: [
1210
+ { path: "gallery.items.image.imageInfo" },
1211
+ { path: "gallery.items.secondaryMedia.image.imageInfo" }
1212
+ ]
1213
+ },
1214
+ {
1215
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1216
+ paths: [{ path: "gallery.items.video.videoInfo" }]
1217
+ }
1218
+ ])
1219
+ );
1220
+ } catch (err) {
1221
+ const transformedError = sdkTransformError(
1222
+ err,
1223
+ {
1224
+ spreadPathsToArguments: {},
1225
+ explicitPathsToArguments: {
1226
+ galleryId: "$[0]",
1227
+ itemsIds: "$[1].itemsIds"
1228
+ },
1229
+ singleArgumentUnchanged: false
1230
+ },
1231
+ ["galleryId", "options"]
1232
+ );
1233
+ sideEffects?.onError?.(err);
1234
+ throw transformedError;
1235
+ }
1236
+ }
1237
+ async function bulkDeleteGalleryItems2(galleryId, itemIds) {
1238
+ const { httpClient, sideEffects } = arguments[2];
1239
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1240
+ galleryId,
1241
+ itemIds
1242
+ });
1243
+ const reqOpts = bulkDeleteGalleryItems(payload);
1244
+ sideEffects?.onSiteCall?.();
1245
+ try {
1246
+ const result = await httpClient.request(reqOpts);
1247
+ sideEffects?.onSuccess?.(result);
1248
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1249
+ } catch (err) {
1250
+ const transformedError = sdkTransformError(
1251
+ err,
1252
+ {
1253
+ spreadPathsToArguments: {},
1254
+ explicitPathsToArguments: { galleryId: "$[0]", itemIds: "$[1]" },
1255
+ singleArgumentUnchanged: false
1256
+ },
1257
+ ["galleryId", "itemIds"]
1258
+ );
1259
+ sideEffects?.onError?.(err);
1260
+ throw transformedError;
1261
+ }
1262
+ }
1263
+ async function createGalleryItem2(galleryId, item) {
1264
+ const { httpClient, sideEffects } = arguments[2];
1265
+ const payload = transformPaths2(
1266
+ renameKeysFromSDKRequestToRESTRequest({ galleryId, item }),
1267
+ [
1268
+ {
1269
+ transformFn: transformSDKImageToRESTImage,
1270
+ paths: [
1271
+ { path: "item.image.imageInfo" },
1272
+ { path: "item.secondaryMedia.image.imageInfo" }
1273
+ ]
1274
+ },
1275
+ {
1276
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1277
+ paths: [{ path: "item.video.videoInfo" }]
1278
+ }
1279
+ ]
1280
+ );
1281
+ const reqOpts = createGalleryItem(payload);
1282
+ sideEffects?.onSiteCall?.();
1283
+ try {
1284
+ const result = await httpClient.request(reqOpts);
1285
+ sideEffects?.onSuccess?.(result);
1286
+ return renameKeysFromRESTResponseToSDKResponse(
1287
+ transformPaths2(result.data, [
1288
+ {
1289
+ transformFn: transformRESTImageToSDKImage,
1290
+ paths: [
1291
+ { path: "item.image.imageInfo" },
1292
+ { path: "item.secondaryMedia.image.imageInfo" }
1293
+ ]
1294
+ },
1295
+ {
1296
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1297
+ paths: [{ path: "item.video.videoInfo" }]
1298
+ }
1299
+ ])
1300
+ )?.item;
1301
+ } catch (err) {
1302
+ const transformedError = sdkTransformError(
1303
+ err,
1304
+ {
1305
+ spreadPathsToArguments: {},
1306
+ explicitPathsToArguments: { galleryId: "$[0]", item: "$[1]" },
1307
+ singleArgumentUnchanged: false
1308
+ },
1309
+ ["galleryId", "item"]
1310
+ );
1311
+ sideEffects?.onError?.(err);
1312
+ throw transformedError;
1313
+ }
1314
+ }
1315
+ async function updateGalleryItem2(identifiers, item) {
1316
+ const { httpClient, sideEffects } = arguments[2];
1317
+ const payload = transformPaths2(
1318
+ renameKeysFromSDKRequestToRESTRequest({
1319
+ galleryId: identifiers?.galleryId,
1320
+ item: { ...item, id: identifiers?.itemId }
1321
+ }),
1322
+ [
1323
+ {
1324
+ transformFn: transformSDKImageToRESTImage,
1325
+ paths: [
1326
+ { path: "item.image.imageInfo" },
1327
+ { path: "item.secondaryMedia.image.imageInfo" }
1328
+ ]
1329
+ },
1330
+ {
1331
+ transformFn: transformSDKVideoV2ToRESTVideoV2,
1332
+ paths: [{ path: "item.video.videoInfo" }]
1333
+ }
1334
+ ]
1335
+ );
1336
+ const reqOpts = updateGalleryItem(payload);
1337
+ sideEffects?.onSiteCall?.();
1338
+ try {
1339
+ const result = await httpClient.request(reqOpts);
1340
+ sideEffects?.onSuccess?.(result);
1341
+ return renameKeysFromRESTResponseToSDKResponse(
1342
+ transformPaths2(result.data, [
1343
+ {
1344
+ transformFn: transformRESTImageToSDKImage,
1345
+ paths: [
1346
+ { path: "item.image.imageInfo" },
1347
+ { path: "item.secondaryMedia.image.imageInfo" }
1348
+ ]
1349
+ },
1350
+ {
1351
+ transformFn: transformRESTVideoV2ToSDKVideoV2,
1352
+ paths: [{ path: "item.video.videoInfo" }]
1353
+ }
1354
+ ])
1355
+ )?.item;
1356
+ } catch (err) {
1357
+ const transformedError = sdkTransformError(
1358
+ err,
1359
+ {
1360
+ spreadPathsToArguments: { item: "$[1]" },
1361
+ explicitPathsToArguments: {
1362
+ galleryId: "$[0].galleryId",
1363
+ "item.id": "$[0].itemId"
1364
+ },
1365
+ singleArgumentUnchanged: false
1366
+ },
1367
+ ["identifiers", "item"]
1368
+ );
1369
+ sideEffects?.onError?.(err);
1370
+ throw transformedError;
1371
+ }
1372
+ }
1373
+ async function deleteGalleryItem2(identifiers) {
1374
+ const { httpClient, sideEffects } = arguments[1];
1375
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1376
+ galleryId: identifiers?.galleryId,
1377
+ itemId: identifiers?.itemId
1378
+ });
1379
+ const reqOpts = deleteGalleryItem(payload);
1380
+ sideEffects?.onSiteCall?.();
1381
+ try {
1382
+ const result = await httpClient.request(reqOpts);
1383
+ sideEffects?.onSuccess?.(result);
1384
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1385
+ } catch (err) {
1386
+ const transformedError = sdkTransformError(
1387
+ err,
1388
+ {
1389
+ spreadPathsToArguments: {},
1390
+ explicitPathsToArguments: {
1391
+ galleryId: "$[0].galleryId",
1392
+ itemId: "$[0].itemId"
1393
+ },
1394
+ singleArgumentUnchanged: false
1395
+ },
1396
+ ["identifiers"]
1397
+ );
1398
+ sideEffects?.onError?.(err);
1399
+ throw transformedError;
1400
+ }
1401
+ }
1402
+
1403
+ // src/pro-gallery-v2-gallery-pro-gallery.public.ts
1404
+ function listGalleries3(httpClient) {
1405
+ return (options) => listGalleries2(
1406
+ options,
1407
+ // @ts-ignore
1408
+ { httpClient }
1409
+ );
1410
+ }
1411
+ function getGallery3(httpClient) {
1412
+ return (galleryId, options) => getGallery2(
1413
+ galleryId,
1414
+ options,
1415
+ // @ts-ignore
1416
+ { httpClient }
1417
+ );
1418
+ }
1419
+ function listGalleryItems3(httpClient) {
1420
+ return (galleryId, options) => listGalleryItems2(
1421
+ galleryId,
1422
+ options,
1423
+ // @ts-ignore
1424
+ { httpClient }
1425
+ );
1426
+ }
1427
+ function getGalleryItem3(httpClient) {
1428
+ return (identifiers) => getGalleryItem2(
1429
+ identifiers,
1430
+ // @ts-ignore
1431
+ { httpClient }
1432
+ );
1433
+ }
1434
+ function createGallery3(httpClient) {
1435
+ return (options) => createGallery2(
1436
+ options,
1437
+ // @ts-ignore
1438
+ { httpClient }
1439
+ );
1440
+ }
1441
+ function updateGallery3(httpClient) {
1442
+ return (_id, gallery) => updateGallery2(
1443
+ _id,
1444
+ gallery,
1445
+ // @ts-ignore
1446
+ { httpClient }
1447
+ );
1448
+ }
1449
+ function deleteGallery3(httpClient) {
1450
+ return (galleryId) => deleteGallery2(
1451
+ galleryId,
1452
+ // @ts-ignore
1453
+ { httpClient }
1454
+ );
1455
+ }
1456
+ function deleteGalleryItems3(httpClient) {
1457
+ return (galleryId, options) => deleteGalleryItems2(
1458
+ galleryId,
1459
+ options,
1460
+ // @ts-ignore
1461
+ { httpClient }
1462
+ );
1463
+ }
1464
+ function bulkDeleteGalleryItems3(httpClient) {
1465
+ return (galleryId, itemIds) => bulkDeleteGalleryItems2(
1466
+ galleryId,
1467
+ itemIds,
1468
+ // @ts-ignore
1469
+ { httpClient }
1470
+ );
1471
+ }
1472
+ function createGalleryItem3(httpClient) {
1473
+ return (galleryId, item) => createGalleryItem2(
1474
+ galleryId,
1475
+ item,
1476
+ // @ts-ignore
1477
+ { httpClient }
1478
+ );
1479
+ }
1480
+ function updateGalleryItem3(httpClient) {
1481
+ return (identifiers, item) => updateGalleryItem2(
1482
+ identifiers,
1483
+ item,
1484
+ // @ts-ignore
1485
+ { httpClient }
1486
+ );
1487
+ }
1488
+ function deleteGalleryItem3(httpClient) {
1489
+ return (identifiers) => deleteGalleryItem2(
1490
+ identifiers,
1491
+ // @ts-ignore
1492
+ { httpClient }
1493
+ );
1494
+ }
1495
+ var onGalleryCreated = EventDefinition(
1496
+ "wix.pro_gallery.gallery_v2_created",
1497
+ true,
1498
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1499
+ transformPaths3(event, [
1500
+ {
1501
+ transformFn: transformRESTFloatToSDKFloat2,
1502
+ paths: [
1503
+ { path: "entity.sortOrder" },
1504
+ { path: "entity.items.sortOrder" },
1505
+ { path: "entity.items.image.focalPoint.x" },
1506
+ { path: "entity.items.image.focalPoint.y" },
1507
+ { path: "entity.items.secondaryMedia.image.focalPoint.x" },
1508
+ { path: "entity.items.secondaryMedia.image.focalPoint.y" },
1509
+ { path: "entity.items.image.unsharpMasking.amount" },
1510
+ { path: "entity.items.image.unsharpMasking.radius" },
1511
+ { path: "entity.items.image.unsharpMasking.threshold" },
1512
+ { path: "entity.items.secondaryMedia.image.unsharpMasking.amount" },
1513
+ { path: "entity.items.secondaryMedia.image.unsharpMasking.radius" },
1514
+ {
1515
+ path: "entity.items.secondaryMedia.image.unsharpMasking.threshold"
1516
+ }
1517
+ ]
1518
+ },
1519
+ {
1520
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1521
+ paths: [
1522
+ { path: "entity.createdDate" },
1523
+ { path: "entity.items.createdDate" },
1524
+ { path: "entity.items.updatedDate" },
1525
+ { path: "metadata.eventTime" }
1526
+ ]
1527
+ },
1528
+ {
1529
+ transformFn: transformRESTImageToSDKImage2,
1530
+ paths: [
1531
+ { path: "entity.items.image.imageInfo" },
1532
+ { path: "entity.items.secondaryMedia.image.imageInfo" }
1533
+ ]
1534
+ },
1535
+ {
1536
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1537
+ paths: [{ path: "entity.items.video.videoInfo" }]
1538
+ }
1539
+ ])
1540
+ )
1541
+ )();
1542
+ var onGalleryDeleted = EventDefinition(
1543
+ "wix.pro_gallery.gallery_v2_deleted",
1544
+ true,
1545
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1546
+ transformPaths3(event, [
1547
+ {
1548
+ transformFn: transformRESTFloatToSDKFloat2,
1549
+ paths: [
1550
+ { path: "undefined.sortOrder" },
1551
+ { path: "undefined.items.sortOrder" },
1552
+ { path: "undefined.items.image.focalPoint.x" },
1553
+ { path: "undefined.items.image.focalPoint.y" },
1554
+ { path: "undefined.items.secondaryMedia.image.focalPoint.x" },
1555
+ { path: "undefined.items.secondaryMedia.image.focalPoint.y" },
1556
+ { path: "undefined.items.image.unsharpMasking.amount" },
1557
+ { path: "undefined.items.image.unsharpMasking.radius" },
1558
+ { path: "undefined.items.image.unsharpMasking.threshold" },
1559
+ {
1560
+ path: "undefined.items.secondaryMedia.image.unsharpMasking.amount"
1561
+ },
1562
+ {
1563
+ path: "undefined.items.secondaryMedia.image.unsharpMasking.radius"
1564
+ },
1565
+ {
1566
+ path: "undefined.items.secondaryMedia.image.unsharpMasking.threshold"
1567
+ }
1568
+ ]
1569
+ },
1570
+ {
1571
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1572
+ paths: [
1573
+ { path: "undefined.createdDate" },
1574
+ { path: "undefined.items.createdDate" },
1575
+ { path: "undefined.items.updatedDate" },
1576
+ { path: "metadata.eventTime" }
1577
+ ]
1578
+ },
1579
+ {
1580
+ transformFn: transformRESTImageToSDKImage2,
1581
+ paths: [
1582
+ { path: "undefined.items.image.imageInfo" },
1583
+ { path: "undefined.items.secondaryMedia.image.imageInfo" }
1584
+ ]
1585
+ },
1586
+ {
1587
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1588
+ paths: [{ path: "undefined.items.video.videoInfo" }]
1589
+ }
1590
+ ])
1591
+ )
1592
+ )();
1593
+ var onGalleryItemCreated = EventDefinition(
1594
+ "wix.pro_gallery.gallery_v2_gallery_item_created",
1595
+ true,
1596
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1597
+ transformPaths3(event, [
1598
+ {
1599
+ transformFn: transformRESTFloatToSDKFloat2,
1600
+ paths: [
1601
+ { path: "data.item.sortOrder" },
1602
+ { path: "data.item.image.focalPoint.x" },
1603
+ { path: "data.item.image.focalPoint.y" },
1604
+ { path: "data.item.secondaryMedia.image.focalPoint.x" },
1605
+ { path: "data.item.secondaryMedia.image.focalPoint.y" },
1606
+ { path: "data.item.image.unsharpMasking.amount" },
1607
+ { path: "data.item.image.unsharpMasking.radius" },
1608
+ { path: "data.item.image.unsharpMasking.threshold" },
1609
+ { path: "data.item.secondaryMedia.image.unsharpMasking.amount" },
1610
+ { path: "data.item.secondaryMedia.image.unsharpMasking.radius" },
1611
+ { path: "data.item.secondaryMedia.image.unsharpMasking.threshold" }
1612
+ ]
1613
+ },
1614
+ {
1615
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1616
+ paths: [
1617
+ { path: "data.item.createdDate" },
1618
+ { path: "data.item.updatedDate" },
1619
+ { path: "metadata.eventTime" }
1620
+ ]
1621
+ },
1622
+ {
1623
+ transformFn: transformRESTImageToSDKImage2,
1624
+ paths: [
1625
+ { path: "data.item.image.imageInfo" },
1626
+ { path: "data.item.secondaryMedia.image.imageInfo" }
1627
+ ]
1628
+ },
1629
+ {
1630
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1631
+ paths: [{ path: "data.item.video.videoInfo" }]
1632
+ }
1633
+ ])
1634
+ )
1635
+ )();
1636
+ var onGalleryItemDeleted = EventDefinition(
1637
+ "wix.pro_gallery.gallery_v2_gallery_item_deleted",
1638
+ true,
1639
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1640
+ transformPaths3(event, [
1641
+ {
1642
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1643
+ paths: [{ path: "metadata.eventTime" }]
1644
+ }
1645
+ ])
1646
+ )
1647
+ )();
1648
+ var onGalleryItemUpdated = EventDefinition(
1649
+ "wix.pro_gallery.gallery_v2_gallery_item_updated",
1650
+ true,
1651
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1652
+ transformPaths3(event, [
1653
+ {
1654
+ transformFn: transformRESTFloatToSDKFloat2,
1655
+ paths: [
1656
+ { path: "data.updatedItem.sortOrder" },
1657
+ { path: "data.updatedItem.image.focalPoint.x" },
1658
+ { path: "data.updatedItem.image.focalPoint.y" },
1659
+ { path: "data.updatedItem.secondaryMedia.image.focalPoint.x" },
1660
+ { path: "data.updatedItem.secondaryMedia.image.focalPoint.y" },
1661
+ { path: "data.updatedItem.image.unsharpMasking.amount" },
1662
+ { path: "data.updatedItem.image.unsharpMasking.radius" },
1663
+ { path: "data.updatedItem.image.unsharpMasking.threshold" },
1664
+ {
1665
+ path: "data.updatedItem.secondaryMedia.image.unsharpMasking.amount"
1666
+ },
1667
+ {
1668
+ path: "data.updatedItem.secondaryMedia.image.unsharpMasking.radius"
1669
+ },
1670
+ {
1671
+ path: "data.updatedItem.secondaryMedia.image.unsharpMasking.threshold"
1672
+ }
1673
+ ]
1674
+ },
1675
+ {
1676
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1677
+ paths: [
1678
+ { path: "data.updatedItem.createdDate" },
1679
+ { path: "data.updatedItem.updatedDate" },
1680
+ { path: "metadata.eventTime" }
1681
+ ]
1682
+ },
1683
+ {
1684
+ transformFn: transformRESTImageToSDKImage2,
1685
+ paths: [
1686
+ { path: "data.updatedItem.image.imageInfo" },
1687
+ { path: "data.updatedItem.secondaryMedia.image.imageInfo" }
1688
+ ]
1689
+ },
1690
+ {
1691
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1692
+ paths: [{ path: "data.updatedItem.video.videoInfo" }]
1693
+ }
1694
+ ])
1695
+ )
1696
+ )();
1697
+ var onGalleryUpdated = EventDefinition(
1698
+ "wix.pro_gallery.gallery_v2_updated",
1699
+ true,
1700
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1701
+ transformPaths3(event, [
1702
+ {
1703
+ transformFn: transformRESTFloatToSDKFloat2,
1704
+ paths: [
1705
+ { path: "entity.sortOrder" },
1706
+ { path: "entity.items.sortOrder" },
1707
+ { path: "entity.items.image.focalPoint.x" },
1708
+ { path: "entity.items.image.focalPoint.y" },
1709
+ { path: "entity.items.secondaryMedia.image.focalPoint.x" },
1710
+ { path: "entity.items.secondaryMedia.image.focalPoint.y" },
1711
+ { path: "entity.items.image.unsharpMasking.amount" },
1712
+ { path: "entity.items.image.unsharpMasking.radius" },
1713
+ { path: "entity.items.image.unsharpMasking.threshold" },
1714
+ { path: "entity.items.secondaryMedia.image.unsharpMasking.amount" },
1715
+ { path: "entity.items.secondaryMedia.image.unsharpMasking.radius" },
1716
+ {
1717
+ path: "entity.items.secondaryMedia.image.unsharpMasking.threshold"
1718
+ }
1719
+ ]
1720
+ },
1721
+ {
1722
+ transformFn: transformRESTTimestampToSDKTimestamp2,
1723
+ paths: [
1724
+ { path: "entity.createdDate" },
1725
+ { path: "entity.items.createdDate" },
1726
+ { path: "entity.items.updatedDate" },
1727
+ { path: "metadata.eventTime" }
1728
+ ]
1729
+ },
1730
+ {
1731
+ transformFn: transformRESTImageToSDKImage2,
1732
+ paths: [
1733
+ { path: "entity.items.image.imageInfo" },
1734
+ { path: "entity.items.secondaryMedia.image.imageInfo" }
1735
+ ]
1736
+ },
1737
+ {
1738
+ transformFn: transformRESTVideoV2ToSDKVideoV22,
1739
+ paths: [{ path: "entity.items.video.videoInfo" }]
1740
+ }
1741
+ ])
1742
+ )
1743
+ )();
1744
+
1745
+ // src/pro-gallery-v2-gallery-pro-gallery.context.ts
1746
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
1747
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
1748
+ var listGalleries4 = /* @__PURE__ */ createRESTModule(listGalleries3);
1749
+ var getGallery4 = /* @__PURE__ */ createRESTModule(getGallery3);
1750
+ var listGalleryItems4 = /* @__PURE__ */ createRESTModule(listGalleryItems3);
1751
+ var getGalleryItem4 = /* @__PURE__ */ createRESTModule(getGalleryItem3);
1752
+ var createGallery4 = /* @__PURE__ */ createRESTModule(createGallery3);
1753
+ var updateGallery4 = /* @__PURE__ */ createRESTModule(updateGallery3);
1754
+ var deleteGallery4 = /* @__PURE__ */ createRESTModule(deleteGallery3);
1755
+ var deleteGalleryItems4 = /* @__PURE__ */ createRESTModule(deleteGalleryItems3);
1756
+ var bulkDeleteGalleryItems4 = /* @__PURE__ */ createRESTModule(bulkDeleteGalleryItems3);
1757
+ var createGalleryItem4 = /* @__PURE__ */ createRESTModule(createGalleryItem3);
1758
+ var updateGalleryItem4 = /* @__PURE__ */ createRESTModule(updateGalleryItem3);
1759
+ var deleteGalleryItem4 = /* @__PURE__ */ createRESTModule(deleteGalleryItem3);
1760
+ var onGalleryCreated2 = createEventModule(onGalleryCreated);
1761
+ var onGalleryDeleted2 = createEventModule(onGalleryDeleted);
1762
+ var onGalleryItemCreated2 = createEventModule(onGalleryItemCreated);
1763
+ var onGalleryItemDeleted2 = createEventModule(onGalleryItemDeleted);
1764
+ var onGalleryItemUpdated2 = createEventModule(onGalleryItemUpdated);
1765
+ var onGalleryUpdated2 = createEventModule(onGalleryUpdated);
1766
+ export {
1767
+ Enum,
1768
+ ImageType,
1769
+ LinkRel,
1770
+ LinkType,
1771
+ RCLabel,
1772
+ SearchIndexingNotificationState,
1773
+ State,
1774
+ Type,
1775
+ VideoType,
1776
+ WebhookIdentityType,
1777
+ bulkDeleteGalleryItems4 as bulkDeleteGalleryItems,
1778
+ createGallery4 as createGallery,
1779
+ createGalleryItem4 as createGalleryItem,
1780
+ deleteGallery4 as deleteGallery,
1781
+ deleteGalleryItem4 as deleteGalleryItem,
1782
+ deleteGalleryItems4 as deleteGalleryItems,
1783
+ getGallery4 as getGallery,
1784
+ getGalleryItem4 as getGalleryItem,
1785
+ listGalleries4 as listGalleries,
1786
+ listGalleryItems4 as listGalleryItems,
1787
+ onGalleryCreated2 as onGalleryCreated,
1788
+ onGalleryDeleted2 as onGalleryDeleted,
1789
+ onGalleryItemCreated2 as onGalleryItemCreated,
1790
+ onGalleryItemDeleted2 as onGalleryItemDeleted,
1791
+ onGalleryItemUpdated2 as onGalleryItemUpdated,
1792
+ onGalleryUpdated2 as onGalleryUpdated,
1793
+ updateGallery4 as updateGallery,
1794
+ updateGalleryItem4 as updateGalleryItem
1795
+ };
1796
+ //# sourceMappingURL=index.mjs.map