@wix/auto_sdk_stores_customizations-v-3 1.0.16 → 1.0.17

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