@wix/auto_sdk_stores_customizations-v-3 1.0.16 → 1.0.18

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 +154 -0
  2. package/build/index.d.ts +154 -0
  3. package/build/index.js +1389 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +1346 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +154 -0
  8. package/build/internal/index.d.ts +154 -0
  9. package/build/internal/index.js +1389 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +1346 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +619 -0
  14. package/build/internal/meta.d.ts +619 -0
  15. package/build/internal/meta.js +873 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +836 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{es/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → internal/stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.mts} +377 -108
  20. package/build/{cjs/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → internal/stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.ts} +377 -108
  21. package/build/meta.d.mts +619 -0
  22. package/build/meta.d.ts +619 -0
  23. package/build/meta.js +873 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +836 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.mts} +377 -108
  28. package/build/{internal/es/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.ts} +377 -108
  29. package/package.json +12 -11
  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/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
  40. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -40
  41. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
  42. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
  43. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -683
  44. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
  45. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
  46. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -237
  47. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
  48. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
  49. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -126
  50. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
  51. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -54
  52. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
  53. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
  54. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -819
  55. package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.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/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
  67. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -31
  68. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
  69. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
  70. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -669
  71. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
  72. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
  73. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -200
  74. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
  75. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
  76. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -106
  77. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
  78. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -51
  79. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
  80. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
  81. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -782
  82. package/build/es/src/stores-catalog-v3-customization-customizations-v-3.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/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
  93. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -40
  94. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
  95. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
  96. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -683
  97. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
  98. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
  99. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -237
  100. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
  101. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
  102. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -126
  103. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
  104. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -54
  105. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
  106. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
  107. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -819
  108. package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.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/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
  119. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -31
  120. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
  121. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
  122. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -669
  123. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
  124. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
  125. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -200
  126. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
  127. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
  128. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -106
  129. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
  130. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -51
  131. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
  132. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
  133. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -782
  134. package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js.map +0 -1
package/build/meta.mjs ADDED
@@ -0,0 +1,836 @@
1
+ // src/stores-catalog-v3-customization-customizations-v-3.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
+ function resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl(opts) {
11
+ const domainToMappings = {
12
+ "manage._base_domain_": [
13
+ {
14
+ srcPath: "/customization",
15
+ destPath: ""
16
+ }
17
+ ],
18
+ "www.wixapis.com": [
19
+ {
20
+ srcPath: "/stores/v3/customizations",
21
+ destPath: "/v3/customizations"
22
+ },
23
+ {
24
+ srcPath: "/stores/v3/bulk/customizations",
25
+ destPath: "/v3/bulk/customizations"
26
+ }
27
+ ],
28
+ "editor._base_domain_": [
29
+ {
30
+ srcPath: "/_api/customization",
31
+ destPath: ""
32
+ }
33
+ ],
34
+ "blocks._base_domain_": [
35
+ {
36
+ srcPath: "/_api/customization",
37
+ destPath: ""
38
+ }
39
+ ],
40
+ "create.editorx": [
41
+ {
42
+ srcPath: "/_api/customization",
43
+ destPath: ""
44
+ }
45
+ ],
46
+ _: [
47
+ {
48
+ srcPath: "/_api/customization",
49
+ destPath: ""
50
+ }
51
+ ],
52
+ "*.dev.wix-code.com": [
53
+ {
54
+ srcPath: "/_api/customization",
55
+ destPath: ""
56
+ }
57
+ ]
58
+ };
59
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
60
+ }
61
+ var PACKAGE_NAME = "@wix/auto_sdk_stores_customizations-v-3";
62
+ function createCustomization(payload) {
63
+ function __createCustomization({ host }) {
64
+ const serializedData = transformPaths(payload, [
65
+ {
66
+ transformFn: transformSDKTimestampToRESTTimestamp,
67
+ paths: [
68
+ { path: "customization.createdDate" },
69
+ { path: "customization.updatedDate" },
70
+ {
71
+ path: "customization.choicesSettings.choices.image.urlExpirationDate"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ transformFn: transformSDKFloatToRESTFloat,
77
+ paths: [
78
+ { path: "customization.choicesSettings.choices.image.focalPoint.x" },
79
+ { path: "customization.choicesSettings.choices.image.focalPoint.y" }
80
+ ]
81
+ }
82
+ ]);
83
+ const metadata = {
84
+ entityFqdn: "wix.stores.catalog.v3.customization",
85
+ method: "POST",
86
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.CreateCustomization",
87
+ packageName: PACKAGE_NAME,
88
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
89
+ protoPath: "/v3/customizations",
90
+ data: serializedData,
91
+ host
92
+ }),
93
+ data: serializedData,
94
+ transformResponse: (payload2) => transformPaths(payload2, [
95
+ {
96
+ transformFn: transformRESTTimestampToSDKTimestamp,
97
+ paths: [
98
+ { path: "customization.createdDate" },
99
+ { path: "customization.updatedDate" },
100
+ {
101
+ path: "customization.choicesSettings.choices.image.urlExpirationDate"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ transformFn: transformRESTFloatToSDKFloat,
107
+ paths: [
108
+ {
109
+ path: "customization.choicesSettings.choices.image.focalPoint.x"
110
+ },
111
+ {
112
+ path: "customization.choicesSettings.choices.image.focalPoint.y"
113
+ }
114
+ ]
115
+ }
116
+ ])
117
+ };
118
+ return metadata;
119
+ }
120
+ return __createCustomization;
121
+ }
122
+ function getCustomization(payload) {
123
+ function __getCustomization({ host }) {
124
+ const metadata = {
125
+ entityFqdn: "wix.stores.catalog.v3.customization",
126
+ method: "GET",
127
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.GetCustomization",
128
+ packageName: PACKAGE_NAME,
129
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
130
+ protoPath: "/v3/customizations/{customizationId}",
131
+ data: payload,
132
+ host
133
+ }),
134
+ params: toURLSearchParams(payload),
135
+ transformResponse: (payload2) => transformPaths(payload2, [
136
+ {
137
+ transformFn: transformRESTTimestampToSDKTimestamp,
138
+ paths: [
139
+ { path: "customization.createdDate" },
140
+ { path: "customization.updatedDate" },
141
+ {
142
+ path: "customization.choicesSettings.choices.image.urlExpirationDate"
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ transformFn: transformRESTFloatToSDKFloat,
148
+ paths: [
149
+ {
150
+ path: "customization.choicesSettings.choices.image.focalPoint.x"
151
+ },
152
+ {
153
+ path: "customization.choicesSettings.choices.image.focalPoint.y"
154
+ }
155
+ ]
156
+ }
157
+ ])
158
+ };
159
+ return metadata;
160
+ }
161
+ return __getCustomization;
162
+ }
163
+ function updateCustomization(payload) {
164
+ function __updateCustomization({ host }) {
165
+ const serializedData = transformPaths(payload, [
166
+ {
167
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
168
+ paths: [{ path: "fieldMask" }]
169
+ },
170
+ {
171
+ transformFn: transformSDKTimestampToRESTTimestamp,
172
+ paths: [
173
+ { path: "customization.createdDate" },
174
+ { path: "customization.updatedDate" },
175
+ {
176
+ path: "customization.choicesSettings.choices.image.urlExpirationDate"
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ transformFn: transformSDKFloatToRESTFloat,
182
+ paths: [
183
+ { path: "customization.choicesSettings.choices.image.focalPoint.x" },
184
+ { path: "customization.choicesSettings.choices.image.focalPoint.y" }
185
+ ]
186
+ }
187
+ ]);
188
+ const metadata = {
189
+ entityFqdn: "wix.stores.catalog.v3.customization",
190
+ method: "PATCH",
191
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomization",
192
+ packageName: PACKAGE_NAME,
193
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
194
+ protoPath: "/v3/customizations/{customization.id}",
195
+ data: serializedData,
196
+ host
197
+ }),
198
+ data: serializedData,
199
+ transformResponse: (payload2) => transformPaths(payload2, [
200
+ {
201
+ transformFn: transformRESTTimestampToSDKTimestamp,
202
+ paths: [
203
+ { path: "customization.createdDate" },
204
+ { path: "customization.updatedDate" },
205
+ {
206
+ path: "customization.choicesSettings.choices.image.urlExpirationDate"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ transformFn: transformRESTFloatToSDKFloat,
212
+ paths: [
213
+ {
214
+ path: "customization.choicesSettings.choices.image.focalPoint.x"
215
+ },
216
+ {
217
+ path: "customization.choicesSettings.choices.image.focalPoint.y"
218
+ }
219
+ ]
220
+ }
221
+ ])
222
+ };
223
+ return metadata;
224
+ }
225
+ return __updateCustomization;
226
+ }
227
+ function deleteCustomization(payload) {
228
+ function __deleteCustomization({ host }) {
229
+ const metadata = {
230
+ entityFqdn: "wix.stores.catalog.v3.customization",
231
+ method: "DELETE",
232
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.DeleteCustomization",
233
+ packageName: PACKAGE_NAME,
234
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
235
+ protoPath: "/v3/customizations/{customizationId}",
236
+ data: payload,
237
+ host
238
+ }),
239
+ params: toURLSearchParams(payload)
240
+ };
241
+ return metadata;
242
+ }
243
+ return __deleteCustomization;
244
+ }
245
+ function queryCustomizations(payload) {
246
+ function __queryCustomizations({ host }) {
247
+ const metadata = {
248
+ entityFqdn: "wix.stores.catalog.v3.customization",
249
+ method: "POST",
250
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations",
251
+ packageName: PACKAGE_NAME,
252
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
253
+ protoPath: "/v3/customizations/query",
254
+ data: payload,
255
+ host
256
+ }),
257
+ data: payload,
258
+ transformResponse: (payload2) => transformPaths(payload2, [
259
+ {
260
+ transformFn: transformRESTTimestampToSDKTimestamp,
261
+ paths: [
262
+ { path: "customizations.createdDate" },
263
+ { path: "customizations.updatedDate" },
264
+ {
265
+ path: "customizations.choicesSettings.choices.image.urlExpirationDate"
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ transformFn: transformRESTFloatToSDKFloat,
271
+ paths: [
272
+ {
273
+ path: "customizations.choicesSettings.choices.image.focalPoint.x"
274
+ },
275
+ {
276
+ path: "customizations.choicesSettings.choices.image.focalPoint.y"
277
+ }
278
+ ]
279
+ }
280
+ ])
281
+ };
282
+ return metadata;
283
+ }
284
+ return __queryCustomizations;
285
+ }
286
+ function bulkCreateCustomizations(payload) {
287
+ function __bulkCreateCustomizations({ host }) {
288
+ const serializedData = transformPaths(payload, [
289
+ {
290
+ transformFn: transformSDKTimestampToRESTTimestamp,
291
+ paths: [
292
+ { path: "customizations.createdDate" },
293
+ { path: "customizations.updatedDate" },
294
+ {
295
+ path: "customizations.choicesSettings.choices.image.urlExpirationDate"
296
+ }
297
+ ]
298
+ },
299
+ {
300
+ transformFn: transformSDKFloatToRESTFloat,
301
+ paths: [
302
+ { path: "customizations.choicesSettings.choices.image.focalPoint.x" },
303
+ { path: "customizations.choicesSettings.choices.image.focalPoint.y" }
304
+ ]
305
+ }
306
+ ]);
307
+ const metadata = {
308
+ entityFqdn: "wix.stores.catalog.v3.customization",
309
+ method: "POST",
310
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkCreateCustomizations",
311
+ packageName: PACKAGE_NAME,
312
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
313
+ protoPath: "/v3/bulk/customizations/create",
314
+ data: serializedData,
315
+ host
316
+ }),
317
+ data: serializedData,
318
+ transformResponse: (payload2) => transformPaths(payload2, [
319
+ {
320
+ transformFn: transformRESTTimestampToSDKTimestamp,
321
+ paths: [
322
+ { path: "results.customization.createdDate" },
323
+ { path: "results.customization.updatedDate" },
324
+ {
325
+ path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ transformFn: transformRESTFloatToSDKFloat,
331
+ paths: [
332
+ {
333
+ path: "results.customization.choicesSettings.choices.image.focalPoint.x"
334
+ },
335
+ {
336
+ path: "results.customization.choicesSettings.choices.image.focalPoint.y"
337
+ }
338
+ ]
339
+ }
340
+ ])
341
+ };
342
+ return metadata;
343
+ }
344
+ return __bulkCreateCustomizations;
345
+ }
346
+ function addCustomizationChoices(payload) {
347
+ function __addCustomizationChoices({ host }) {
348
+ const serializedData = transformPaths(payload, [
349
+ {
350
+ transformFn: transformSDKTimestampToRESTTimestamp,
351
+ paths: [{ path: "choices.image.urlExpirationDate" }]
352
+ },
353
+ {
354
+ transformFn: transformSDKFloatToRESTFloat,
355
+ paths: [
356
+ { path: "choices.image.focalPoint.x" },
357
+ { path: "choices.image.focalPoint.y" }
358
+ ]
359
+ }
360
+ ]);
361
+ const metadata = {
362
+ entityFqdn: "wix.stores.catalog.v3.customization",
363
+ method: "POST",
364
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.AddCustomizationChoices",
365
+ packageName: PACKAGE_NAME,
366
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
367
+ protoPath: "/v3/customizations/{customizationId}/add-choices",
368
+ data: serializedData,
369
+ host
370
+ }),
371
+ data: serializedData,
372
+ transformResponse: (payload2) => transformPaths(payload2, [
373
+ {
374
+ transformFn: transformRESTTimestampToSDKTimestamp,
375
+ paths: [
376
+ { path: "customization.createdDate" },
377
+ { path: "customization.updatedDate" },
378
+ {
379
+ path: "customization.choicesSettings.choices.image.urlExpirationDate"
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ transformFn: transformRESTFloatToSDKFloat,
385
+ paths: [
386
+ {
387
+ path: "customization.choicesSettings.choices.image.focalPoint.x"
388
+ },
389
+ {
390
+ path: "customization.choicesSettings.choices.image.focalPoint.y"
391
+ }
392
+ ]
393
+ }
394
+ ])
395
+ };
396
+ return metadata;
397
+ }
398
+ return __addCustomizationChoices;
399
+ }
400
+ function setCustomizationChoices(payload) {
401
+ function __setCustomizationChoices({ host }) {
402
+ const serializedData = transformPaths(payload, [
403
+ {
404
+ transformFn: transformSDKTimestampToRESTTimestamp,
405
+ paths: [{ path: "choices.image.urlExpirationDate" }]
406
+ },
407
+ {
408
+ transformFn: transformSDKFloatToRESTFloat,
409
+ paths: [
410
+ { path: "choices.image.focalPoint.x" },
411
+ { path: "choices.image.focalPoint.y" }
412
+ ]
413
+ }
414
+ ]);
415
+ const metadata = {
416
+ entityFqdn: "wix.stores.catalog.v3.customization",
417
+ method: "POST",
418
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.SetCustomizationChoices",
419
+ packageName: PACKAGE_NAME,
420
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
421
+ protoPath: "/v3/customizations/{customizationId}/set-choices",
422
+ data: serializedData,
423
+ host
424
+ }),
425
+ data: serializedData,
426
+ transformResponse: (payload2) => transformPaths(payload2, [
427
+ {
428
+ transformFn: transformRESTTimestampToSDKTimestamp,
429
+ paths: [
430
+ { path: "customization.createdDate" },
431
+ { path: "customization.updatedDate" },
432
+ {
433
+ path: "customization.choicesSettings.choices.image.urlExpirationDate"
434
+ }
435
+ ]
436
+ },
437
+ {
438
+ transformFn: transformRESTFloatToSDKFloat,
439
+ paths: [
440
+ {
441
+ path: "customization.choicesSettings.choices.image.focalPoint.x"
442
+ },
443
+ {
444
+ path: "customization.choicesSettings.choices.image.focalPoint.y"
445
+ }
446
+ ]
447
+ }
448
+ ])
449
+ };
450
+ return metadata;
451
+ }
452
+ return __setCustomizationChoices;
453
+ }
454
+ function removeCustomizationChoices(payload) {
455
+ function __removeCustomizationChoices({ host }) {
456
+ const metadata = {
457
+ entityFqdn: "wix.stores.catalog.v3.customization",
458
+ method: "POST",
459
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.RemoveCustomizationChoices",
460
+ packageName: PACKAGE_NAME,
461
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
462
+ protoPath: "/v3/customizations/{customizationId}/remove-choices",
463
+ data: payload,
464
+ host
465
+ }),
466
+ data: payload,
467
+ transformResponse: (payload2) => transformPaths(payload2, [
468
+ {
469
+ transformFn: transformRESTTimestampToSDKTimestamp,
470
+ paths: [
471
+ { path: "customization.createdDate" },
472
+ { path: "customization.updatedDate" },
473
+ {
474
+ path: "customization.choicesSettings.choices.image.urlExpirationDate"
475
+ }
476
+ ]
477
+ },
478
+ {
479
+ transformFn: transformRESTFloatToSDKFloat,
480
+ paths: [
481
+ {
482
+ path: "customization.choicesSettings.choices.image.focalPoint.x"
483
+ },
484
+ {
485
+ path: "customization.choicesSettings.choices.image.focalPoint.y"
486
+ }
487
+ ]
488
+ }
489
+ ])
490
+ };
491
+ return metadata;
492
+ }
493
+ return __removeCustomizationChoices;
494
+ }
495
+ function bulkAddCustomizationChoices(payload) {
496
+ function __bulkAddCustomizationChoices({ host }) {
497
+ const serializedData = transformPaths(payload, [
498
+ {
499
+ transformFn: transformSDKTimestampToRESTTimestamp,
500
+ paths: [
501
+ { path: "customizationsChoices.choices.image.urlExpirationDate" }
502
+ ]
503
+ },
504
+ {
505
+ transformFn: transformSDKFloatToRESTFloat,
506
+ paths: [
507
+ { path: "customizationsChoices.choices.image.focalPoint.x" },
508
+ { path: "customizationsChoices.choices.image.focalPoint.y" }
509
+ ]
510
+ }
511
+ ]);
512
+ const metadata = {
513
+ entityFqdn: "wix.stores.catalog.v3.customization",
514
+ method: "POST",
515
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkAddCustomizationChoices",
516
+ packageName: PACKAGE_NAME,
517
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
518
+ protoPath: "/v3/bulk/customizations/add-choices",
519
+ data: serializedData,
520
+ host
521
+ }),
522
+ data: serializedData,
523
+ transformResponse: (payload2) => transformPaths(payload2, [
524
+ {
525
+ transformFn: transformRESTTimestampToSDKTimestamp,
526
+ paths: [
527
+ { path: "results.customization.createdDate" },
528
+ { path: "results.customization.updatedDate" },
529
+ {
530
+ path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ transformFn: transformRESTFloatToSDKFloat,
536
+ paths: [
537
+ {
538
+ path: "results.customization.choicesSettings.choices.image.focalPoint.x"
539
+ },
540
+ {
541
+ path: "results.customization.choicesSettings.choices.image.focalPoint.y"
542
+ }
543
+ ]
544
+ }
545
+ ])
546
+ };
547
+ return metadata;
548
+ }
549
+ return __bulkAddCustomizationChoices;
550
+ }
551
+ function bulkUpdateCustomizations(payload) {
552
+ function __bulkUpdateCustomizations({ host }) {
553
+ const serializedData = transformPaths(payload, [
554
+ {
555
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
556
+ paths: [{ path: "customizations.fieldMask" }]
557
+ },
558
+ {
559
+ transformFn: transformSDKTimestampToRESTTimestamp,
560
+ paths: [
561
+ { path: "customizations.customization.createdDate" },
562
+ { path: "customizations.customization.updatedDate" },
563
+ {
564
+ path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
565
+ }
566
+ ]
567
+ },
568
+ {
569
+ transformFn: transformSDKFloatToRESTFloat,
570
+ paths: [
571
+ {
572
+ path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
573
+ },
574
+ {
575
+ path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
576
+ }
577
+ ]
578
+ }
579
+ ]);
580
+ const metadata = {
581
+ entityFqdn: "wix.stores.catalog.v3.customization",
582
+ method: "POST",
583
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkUpdateCustomizations",
584
+ packageName: PACKAGE_NAME,
585
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
586
+ protoPath: "/v3/bulk/customizations/update",
587
+ data: serializedData,
588
+ host
589
+ }),
590
+ data: serializedData,
591
+ transformResponse: (payload2) => transformPaths(payload2, [
592
+ {
593
+ transformFn: transformRESTTimestampToSDKTimestamp,
594
+ paths: [
595
+ { path: "results.customization.createdDate" },
596
+ { path: "results.customization.updatedDate" },
597
+ {
598
+ path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
599
+ }
600
+ ]
601
+ },
602
+ {
603
+ transformFn: transformRESTFloatToSDKFloat,
604
+ paths: [
605
+ {
606
+ path: "results.customization.choicesSettings.choices.image.focalPoint.x"
607
+ },
608
+ {
609
+ path: "results.customization.choicesSettings.choices.image.focalPoint.y"
610
+ }
611
+ ]
612
+ }
613
+ ])
614
+ };
615
+ return metadata;
616
+ }
617
+ return __bulkUpdateCustomizations;
618
+ }
619
+
620
+ // src/stores-catalog-v3-customization-customizations-v-3.meta.ts
621
+ function createCustomization2() {
622
+ const payload = {};
623
+ const getRequestOptions = createCustomization(payload);
624
+ const getUrl = (context) => {
625
+ const { url } = getRequestOptions(context);
626
+ return url;
627
+ };
628
+ return {
629
+ getUrl,
630
+ httpMethod: "POST",
631
+ path: "/v3/customizations",
632
+ pathParams: {},
633
+ __requestType: null,
634
+ __originalRequestType: null,
635
+ __responseType: null,
636
+ __originalResponseType: null
637
+ };
638
+ }
639
+ function getCustomization2() {
640
+ const payload = { customizationId: ":customizationId" };
641
+ const getRequestOptions = getCustomization(payload);
642
+ const getUrl = (context) => {
643
+ const { url } = getRequestOptions(context);
644
+ return url;
645
+ };
646
+ return {
647
+ getUrl,
648
+ httpMethod: "GET",
649
+ path: "/v3/customizations/{customizationId}",
650
+ pathParams: { customizationId: "customizationId" },
651
+ __requestType: null,
652
+ __originalRequestType: null,
653
+ __responseType: null,
654
+ __originalResponseType: null
655
+ };
656
+ }
657
+ function updateCustomization2() {
658
+ const payload = { customization: { id: ":customizationId" } };
659
+ const getRequestOptions = updateCustomization(payload);
660
+ const getUrl = (context) => {
661
+ const { url } = getRequestOptions(context);
662
+ return url;
663
+ };
664
+ return {
665
+ getUrl,
666
+ httpMethod: "PATCH",
667
+ path: "/v3/customizations/{customization.id}",
668
+ pathParams: { customizationId: "customizationId" },
669
+ __requestType: null,
670
+ __originalRequestType: null,
671
+ __responseType: null,
672
+ __originalResponseType: null
673
+ };
674
+ }
675
+ function deleteCustomization2() {
676
+ const payload = { customizationId: ":customizationId" };
677
+ const getRequestOptions = deleteCustomization(payload);
678
+ const getUrl = (context) => {
679
+ const { url } = getRequestOptions(context);
680
+ return url;
681
+ };
682
+ return {
683
+ getUrl,
684
+ httpMethod: "DELETE",
685
+ path: "/v3/customizations/{customizationId}",
686
+ pathParams: { customizationId: "customizationId" },
687
+ __requestType: null,
688
+ __originalRequestType: null,
689
+ __responseType: null,
690
+ __originalResponseType: null
691
+ };
692
+ }
693
+ function queryCustomizations2() {
694
+ const payload = {};
695
+ const getRequestOptions = queryCustomizations(payload);
696
+ const getUrl = (context) => {
697
+ const { url } = getRequestOptions(context);
698
+ return url;
699
+ };
700
+ return {
701
+ getUrl,
702
+ httpMethod: "POST",
703
+ path: "/v3/customizations/query",
704
+ pathParams: {},
705
+ __requestType: null,
706
+ __originalRequestType: null,
707
+ __responseType: null,
708
+ __originalResponseType: null
709
+ };
710
+ }
711
+ function bulkCreateCustomizations2() {
712
+ const payload = {};
713
+ const getRequestOptions = bulkCreateCustomizations(payload);
714
+ const getUrl = (context) => {
715
+ const { url } = getRequestOptions(context);
716
+ return url;
717
+ };
718
+ return {
719
+ getUrl,
720
+ httpMethod: "POST",
721
+ path: "/v3/bulk/customizations/create",
722
+ pathParams: {},
723
+ __requestType: null,
724
+ __originalRequestType: null,
725
+ __responseType: null,
726
+ __originalResponseType: null
727
+ };
728
+ }
729
+ function addCustomizationChoices2() {
730
+ const payload = { customizationId: ":customizationId" };
731
+ const getRequestOptions = addCustomizationChoices(payload);
732
+ const getUrl = (context) => {
733
+ const { url } = getRequestOptions(context);
734
+ return url;
735
+ };
736
+ return {
737
+ getUrl,
738
+ httpMethod: "POST",
739
+ path: "/v3/customizations/{customizationId}/add-choices",
740
+ pathParams: { customizationId: "customizationId" },
741
+ __requestType: null,
742
+ __originalRequestType: null,
743
+ __responseType: null,
744
+ __originalResponseType: null
745
+ };
746
+ }
747
+ function setCustomizationChoices2() {
748
+ const payload = { customizationId: ":customizationId" };
749
+ const getRequestOptions = setCustomizationChoices(payload);
750
+ const getUrl = (context) => {
751
+ const { url } = getRequestOptions(context);
752
+ return url;
753
+ };
754
+ return {
755
+ getUrl,
756
+ httpMethod: "POST",
757
+ path: "/v3/customizations/{customizationId}/set-choices",
758
+ pathParams: { customizationId: "customizationId" },
759
+ __requestType: null,
760
+ __originalRequestType: null,
761
+ __responseType: null,
762
+ __originalResponseType: null
763
+ };
764
+ }
765
+ function removeCustomizationChoices2() {
766
+ const payload = { customizationId: ":customizationId" };
767
+ const getRequestOptions = removeCustomizationChoices(
768
+ payload
769
+ );
770
+ const getUrl = (context) => {
771
+ const { url } = getRequestOptions(context);
772
+ return url;
773
+ };
774
+ return {
775
+ getUrl,
776
+ httpMethod: "POST",
777
+ path: "/v3/customizations/{customizationId}/remove-choices",
778
+ pathParams: { customizationId: "customizationId" },
779
+ __requestType: null,
780
+ __originalRequestType: null,
781
+ __responseType: null,
782
+ __originalResponseType: null
783
+ };
784
+ }
785
+ function bulkAddCustomizationChoices2() {
786
+ const payload = {};
787
+ const getRequestOptions = bulkAddCustomizationChoices(
788
+ payload
789
+ );
790
+ const getUrl = (context) => {
791
+ const { url } = getRequestOptions(context);
792
+ return url;
793
+ };
794
+ return {
795
+ getUrl,
796
+ httpMethod: "POST",
797
+ path: "/v3/bulk/customizations/add-choices",
798
+ pathParams: {},
799
+ __requestType: null,
800
+ __originalRequestType: null,
801
+ __responseType: null,
802
+ __originalResponseType: null
803
+ };
804
+ }
805
+ function bulkUpdateCustomizations2() {
806
+ const payload = {};
807
+ const getRequestOptions = bulkUpdateCustomizations(payload);
808
+ const getUrl = (context) => {
809
+ const { url } = getRequestOptions(context);
810
+ return url;
811
+ };
812
+ return {
813
+ getUrl,
814
+ httpMethod: "POST",
815
+ path: "/v3/bulk/customizations/update",
816
+ pathParams: {},
817
+ __requestType: null,
818
+ __originalRequestType: null,
819
+ __responseType: null,
820
+ __originalResponseType: null
821
+ };
822
+ }
823
+ export {
824
+ addCustomizationChoices2 as addCustomizationChoices,
825
+ bulkAddCustomizationChoices2 as bulkAddCustomizationChoices,
826
+ bulkCreateCustomizations2 as bulkCreateCustomizations,
827
+ bulkUpdateCustomizations2 as bulkUpdateCustomizations,
828
+ createCustomization2 as createCustomization,
829
+ deleteCustomization2 as deleteCustomization,
830
+ getCustomization2 as getCustomization,
831
+ queryCustomizations2 as queryCustomizations,
832
+ removeCustomizationChoices2 as removeCustomizationChoices,
833
+ setCustomizationChoices2 as setCustomizationChoices,
834
+ updateCustomization2 as updateCustomization
835
+ };
836
+ //# sourceMappingURL=meta.mjs.map