@wix/auto_sdk_ecom_cart 1.0.180 → 1.0.182
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.
- package/build/cjs/index.js +331 -526
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +127 -56
- package/build/cjs/index.typings.js +235 -439
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +127 -56
- package/build/cjs/meta.js +154 -337
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +331 -526
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +127 -56
- package/build/es/index.typings.mjs +235 -439
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +127 -56
- package/build/es/meta.mjs +154 -337
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +135 -60
- package/build/internal/cjs/meta.d.ts +135 -60
- package/build/internal/es/index.typings.d.mts +135 -60
- package/build/internal/es/meta.d.mts +135 -60
- package/package.json +2 -2
|
@@ -79,6 +79,131 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
79
79
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
80
80
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
81
81
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
82
|
+
var TRANSFORM_PATHS_0 = [
|
|
83
|
+
{ path: "cartInfo.createdDate" },
|
|
84
|
+
{ path: "cartInfo.updatedDate" },
|
|
85
|
+
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
86
|
+
{
|
|
87
|
+
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
88
|
+
},
|
|
89
|
+
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
90
|
+
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
91
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
92
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
93
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
94
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
95
|
+
{
|
|
96
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
97
|
+
},
|
|
98
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
99
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
100
|
+
];
|
|
101
|
+
var TRANSFORM_PATHS_1 = [
|
|
102
|
+
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
103
|
+
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
104
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
105
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
106
|
+
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
107
|
+
{
|
|
108
|
+
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
109
|
+
},
|
|
110
|
+
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
111
|
+
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
112
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
113
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
114
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
115
|
+
];
|
|
116
|
+
var TRANSFORM_PATHS_2 = [
|
|
117
|
+
{ path: "cart.createdDate" },
|
|
118
|
+
{ path: "cart.updatedDate" },
|
|
119
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
120
|
+
{
|
|
121
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
122
|
+
},
|
|
123
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
124
|
+
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
125
|
+
];
|
|
126
|
+
var TRANSFORM_PATHS_3 = [
|
|
127
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
128
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
129
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
130
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
131
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
132
|
+
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
133
|
+
];
|
|
134
|
+
var TRANSFORM_PATHS_4 = [{ path: "cartFieldmask" }];
|
|
135
|
+
var TRANSFORM_PATHS_5 = [
|
|
136
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
137
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
138
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
139
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
140
|
+
{
|
|
141
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
142
|
+
},
|
|
143
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
144
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
145
|
+
];
|
|
146
|
+
var TRANSFORM_PATHS_6 = [
|
|
147
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
148
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
149
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
150
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
151
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
152
|
+
];
|
|
153
|
+
var TRANSFORM_PATHS_7 = [
|
|
154
|
+
{ path: "shippingAddress.geocode.latitude" },
|
|
155
|
+
{ path: "shippingAddress.geocode.longitude" },
|
|
156
|
+
{ path: "billingAddress.geocode.latitude" },
|
|
157
|
+
{ path: "billingAddress.geocode.longitude" }
|
|
158
|
+
];
|
|
159
|
+
var TRANSFORM_PATHS_8 = [
|
|
160
|
+
{ path: "cart.createdDate" },
|
|
161
|
+
{ path: "cart.updatedDate" },
|
|
162
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
163
|
+
{
|
|
164
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
165
|
+
},
|
|
166
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
167
|
+
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
168
|
+
{
|
|
169
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
179
|
+
},
|
|
180
|
+
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
181
|
+
{ path: "membershipOptions.invalidMemberships.membership.expirationDate" },
|
|
182
|
+
{
|
|
183
|
+
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
184
|
+
}
|
|
185
|
+
];
|
|
186
|
+
var TRANSFORM_PATHS_9 = [
|
|
187
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
188
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
189
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
190
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
191
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
192
|
+
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
193
|
+
{
|
|
194
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
204
|
+
},
|
|
205
|
+
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
206
|
+
];
|
|
82
207
|
function resolveComWixEcomCartApiV1CartServiceUrl(opts) {
|
|
83
208
|
const domainToMappings = {
|
|
84
209
|
"www.wixapis.com": [
|
|
@@ -194,45 +319,11 @@ function createCart(payload) {
|
|
|
194
319
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
195
320
|
{
|
|
196
321
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
197
|
-
paths:
|
|
198
|
-
{ path: "cartInfo.createdDate" },
|
|
199
|
-
{ path: "cartInfo.updatedDate" },
|
|
200
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
201
|
-
{
|
|
202
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
203
|
-
},
|
|
204
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
205
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
206
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
207
|
-
{
|
|
208
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
209
|
-
},
|
|
210
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
211
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
212
|
-
{
|
|
213
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
214
|
-
},
|
|
215
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
216
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
217
|
-
]
|
|
322
|
+
paths: TRANSFORM_PATHS_0
|
|
218
323
|
},
|
|
219
324
|
{
|
|
220
325
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
221
|
-
paths:
|
|
222
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
223
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
224
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
225
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
226
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
227
|
-
{
|
|
228
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
229
|
-
},
|
|
230
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
231
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
232
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
233
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
234
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
235
|
-
]
|
|
326
|
+
paths: TRANSFORM_PATHS_1
|
|
236
327
|
}
|
|
237
328
|
]);
|
|
238
329
|
const metadata = {
|
|
@@ -252,29 +343,11 @@ function createCart(payload) {
|
|
|
252
343
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
253
344
|
{
|
|
254
345
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
255
|
-
paths:
|
|
256
|
-
{ path: "cart.createdDate" },
|
|
257
|
-
{ path: "cart.updatedDate" },
|
|
258
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
259
|
-
{
|
|
260
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
261
|
-
},
|
|
262
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
263
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
264
|
-
]
|
|
346
|
+
paths: TRANSFORM_PATHS_2
|
|
265
347
|
},
|
|
266
348
|
{
|
|
267
349
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
268
|
-
paths:
|
|
269
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
270
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
271
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
272
|
-
{
|
|
273
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
274
|
-
},
|
|
275
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
276
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
277
|
-
]
|
|
350
|
+
paths: TRANSFORM_PATHS_3
|
|
278
351
|
}
|
|
279
352
|
])
|
|
280
353
|
};
|
|
@@ -287,49 +360,15 @@ function updateCart(payload) {
|
|
|
287
360
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
288
361
|
{
|
|
289
362
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
290
|
-
paths:
|
|
363
|
+
paths: TRANSFORM_PATHS_4
|
|
291
364
|
},
|
|
292
365
|
{
|
|
293
366
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
294
|
-
paths:
|
|
295
|
-
{ path: "cartInfo.createdDate" },
|
|
296
|
-
{ path: "cartInfo.updatedDate" },
|
|
297
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
298
|
-
{
|
|
299
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
300
|
-
},
|
|
301
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
302
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
303
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
304
|
-
{
|
|
305
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
306
|
-
},
|
|
307
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
308
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
309
|
-
{
|
|
310
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
311
|
-
},
|
|
312
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
313
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
314
|
-
]
|
|
367
|
+
paths: TRANSFORM_PATHS_0
|
|
315
368
|
},
|
|
316
369
|
{
|
|
317
370
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
318
|
-
paths:
|
|
319
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
320
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
321
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
322
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
323
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
324
|
-
{
|
|
325
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
326
|
-
},
|
|
327
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
328
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
329
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
330
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
331
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
332
|
-
]
|
|
371
|
+
paths: TRANSFORM_PATHS_1
|
|
333
372
|
}
|
|
334
373
|
]);
|
|
335
374
|
const metadata = {
|
|
@@ -349,29 +388,11 @@ function updateCart(payload) {
|
|
|
349
388
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
350
389
|
{
|
|
351
390
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
352
|
-
paths:
|
|
353
|
-
{ path: "cart.createdDate" },
|
|
354
|
-
{ path: "cart.updatedDate" },
|
|
355
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
356
|
-
{
|
|
357
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
358
|
-
},
|
|
359
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
360
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
361
|
-
]
|
|
391
|
+
paths: TRANSFORM_PATHS_2
|
|
362
392
|
},
|
|
363
393
|
{
|
|
364
394
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
365
|
-
paths:
|
|
366
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
367
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
368
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
369
|
-
{
|
|
370
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
371
|
-
},
|
|
372
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
373
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
374
|
-
]
|
|
395
|
+
paths: TRANSFORM_PATHS_3
|
|
375
396
|
}
|
|
376
397
|
])
|
|
377
398
|
};
|
|
@@ -398,29 +419,11 @@ function getCart(payload) {
|
|
|
398
419
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
399
420
|
{
|
|
400
421
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
401
|
-
paths:
|
|
402
|
-
{ path: "cart.createdDate" },
|
|
403
|
-
{ path: "cart.updatedDate" },
|
|
404
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
405
|
-
{
|
|
406
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
407
|
-
},
|
|
408
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
409
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
410
|
-
]
|
|
422
|
+
paths: TRANSFORM_PATHS_2
|
|
411
423
|
},
|
|
412
424
|
{
|
|
413
425
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
414
|
-
paths:
|
|
415
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
416
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
417
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
418
|
-
{
|
|
419
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
420
|
-
},
|
|
421
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
422
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
423
|
-
]
|
|
426
|
+
paths: TRANSFORM_PATHS_3
|
|
424
427
|
}
|
|
425
428
|
])
|
|
426
429
|
};
|
|
@@ -447,29 +450,11 @@ function getCartByCheckoutId(payload) {
|
|
|
447
450
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
448
451
|
{
|
|
449
452
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
450
|
-
paths:
|
|
451
|
-
{ path: "cart.createdDate" },
|
|
452
|
-
{ path: "cart.updatedDate" },
|
|
453
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
454
|
-
{
|
|
455
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
456
|
-
},
|
|
457
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
458
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
459
|
-
]
|
|
453
|
+
paths: TRANSFORM_PATHS_2
|
|
460
454
|
},
|
|
461
455
|
{
|
|
462
456
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
463
|
-
paths:
|
|
464
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
465
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
466
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
467
|
-
{
|
|
468
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
469
|
-
},
|
|
470
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
471
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
472
|
-
]
|
|
457
|
+
paths: TRANSFORM_PATHS_3
|
|
473
458
|
}
|
|
474
459
|
])
|
|
475
460
|
};
|
|
@@ -482,29 +467,11 @@ function addToCart(payload) {
|
|
|
482
467
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
483
468
|
{
|
|
484
469
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
485
|
-
paths:
|
|
486
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
487
|
-
{
|
|
488
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
489
|
-
},
|
|
490
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
491
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
492
|
-
{
|
|
493
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
494
|
-
},
|
|
495
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
496
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
497
|
-
]
|
|
470
|
+
paths: TRANSFORM_PATHS_5
|
|
498
471
|
},
|
|
499
472
|
{
|
|
500
473
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
501
|
-
paths:
|
|
502
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
503
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
504
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
505
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
506
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
507
|
-
]
|
|
474
|
+
paths: TRANSFORM_PATHS_6
|
|
508
475
|
}
|
|
509
476
|
]);
|
|
510
477
|
const metadata = {
|
|
@@ -524,29 +491,11 @@ function addToCart(payload) {
|
|
|
524
491
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
525
492
|
{
|
|
526
493
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
527
|
-
paths:
|
|
528
|
-
{ path: "cart.createdDate" },
|
|
529
|
-
{ path: "cart.updatedDate" },
|
|
530
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
531
|
-
{
|
|
532
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
533
|
-
},
|
|
534
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
535
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
536
|
-
]
|
|
494
|
+
paths: TRANSFORM_PATHS_2
|
|
537
495
|
},
|
|
538
496
|
{
|
|
539
497
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
540
|
-
paths:
|
|
541
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
542
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
543
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
544
|
-
{
|
|
545
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
546
|
-
},
|
|
547
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
548
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
549
|
-
]
|
|
498
|
+
paths: TRANSFORM_PATHS_3
|
|
550
499
|
}
|
|
551
500
|
])
|
|
552
501
|
};
|
|
@@ -573,29 +522,11 @@ function removeLineItems(payload) {
|
|
|
573
522
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
574
523
|
{
|
|
575
524
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
576
|
-
paths:
|
|
577
|
-
{ path: "cart.createdDate" },
|
|
578
|
-
{ path: "cart.updatedDate" },
|
|
579
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
580
|
-
{
|
|
581
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
582
|
-
},
|
|
583
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
584
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
585
|
-
]
|
|
525
|
+
paths: TRANSFORM_PATHS_2
|
|
586
526
|
},
|
|
587
527
|
{
|
|
588
528
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
589
|
-
paths:
|
|
590
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
591
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
592
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
593
|
-
{
|
|
594
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
595
|
-
},
|
|
596
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
597
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
598
|
-
]
|
|
529
|
+
paths: TRANSFORM_PATHS_3
|
|
599
530
|
}
|
|
600
531
|
])
|
|
601
532
|
};
|
|
@@ -608,12 +539,7 @@ function createCheckout(payload) {
|
|
|
608
539
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
609
540
|
{
|
|
610
541
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
611
|
-
paths:
|
|
612
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
613
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
614
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
615
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
616
|
-
]
|
|
542
|
+
paths: TRANSFORM_PATHS_7
|
|
617
543
|
}
|
|
618
544
|
]);
|
|
619
545
|
const metadata = {
|
|
@@ -654,29 +580,11 @@ function removeCoupon(payload) {
|
|
|
654
580
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
655
581
|
{
|
|
656
582
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
657
|
-
paths:
|
|
658
|
-
{ path: "cart.createdDate" },
|
|
659
|
-
{ path: "cart.updatedDate" },
|
|
660
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
661
|
-
{
|
|
662
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
663
|
-
},
|
|
664
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
665
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
666
|
-
]
|
|
583
|
+
paths: TRANSFORM_PATHS_2
|
|
667
584
|
},
|
|
668
585
|
{
|
|
669
586
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
670
|
-
paths:
|
|
671
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
672
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
673
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
674
|
-
{
|
|
675
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
676
|
-
},
|
|
677
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
678
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
679
|
-
]
|
|
587
|
+
paths: TRANSFORM_PATHS_3
|
|
680
588
|
}
|
|
681
589
|
])
|
|
682
590
|
};
|
|
@@ -703,29 +611,11 @@ function updateLineItemsQuantity(payload) {
|
|
|
703
611
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
704
612
|
{
|
|
705
613
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
706
|
-
paths:
|
|
707
|
-
{ path: "cart.createdDate" },
|
|
708
|
-
{ path: "cart.updatedDate" },
|
|
709
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
710
|
-
{
|
|
711
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
712
|
-
},
|
|
713
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
714
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
715
|
-
]
|
|
614
|
+
paths: TRANSFORM_PATHS_2
|
|
716
615
|
},
|
|
717
616
|
{
|
|
718
617
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
719
|
-
paths:
|
|
720
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
721
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
722
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
723
|
-
{
|
|
724
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
725
|
-
},
|
|
726
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
727
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
728
|
-
]
|
|
618
|
+
paths: TRANSFORM_PATHS_3
|
|
729
619
|
}
|
|
730
620
|
])
|
|
731
621
|
};
|
|
@@ -738,12 +628,7 @@ function estimateTotals(payload) {
|
|
|
738
628
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
739
629
|
{
|
|
740
630
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
741
|
-
paths:
|
|
742
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
743
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
744
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
745
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
746
|
-
]
|
|
631
|
+
paths: TRANSFORM_PATHS_7
|
|
747
632
|
}
|
|
748
633
|
]);
|
|
749
634
|
const metadata = {
|
|
@@ -763,61 +648,11 @@ function estimateTotals(payload) {
|
|
|
763
648
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
764
649
|
{
|
|
765
650
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
766
|
-
paths:
|
|
767
|
-
{ path: "cart.createdDate" },
|
|
768
|
-
{ path: "cart.updatedDate" },
|
|
769
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
770
|
-
{
|
|
771
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
772
|
-
},
|
|
773
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
774
|
-
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
775
|
-
{
|
|
776
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
786
|
-
},
|
|
787
|
-
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
788
|
-
{
|
|
789
|
-
path: "membershipOptions.invalidMemberships.membership.expirationDate"
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
793
|
-
}
|
|
794
|
-
]
|
|
651
|
+
paths: TRANSFORM_PATHS_8
|
|
795
652
|
},
|
|
796
653
|
{
|
|
797
654
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
798
|
-
paths:
|
|
799
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
800
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
801
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
802
|
-
{
|
|
803
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
804
|
-
},
|
|
805
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
806
|
-
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
807
|
-
{
|
|
808
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
818
|
-
},
|
|
819
|
-
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
820
|
-
]
|
|
655
|
+
paths: TRANSFORM_PATHS_9
|
|
821
656
|
}
|
|
822
657
|
])
|
|
823
658
|
};
|
|
@@ -865,29 +700,11 @@ function removeBusinessLocation(payload) {
|
|
|
865
700
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
866
701
|
{
|
|
867
702
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
868
|
-
paths:
|
|
869
|
-
{ path: "cart.createdDate" },
|
|
870
|
-
{ path: "cart.updatedDate" },
|
|
871
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
872
|
-
{
|
|
873
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
874
|
-
},
|
|
875
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
876
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
877
|
-
]
|
|
703
|
+
paths: TRANSFORM_PATHS_2
|
|
878
704
|
},
|
|
879
705
|
{
|
|
880
706
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
881
|
-
paths:
|
|
882
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
883
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
884
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
885
|
-
{
|
|
886
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
887
|
-
},
|
|
888
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
889
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
890
|
-
]
|
|
707
|
+
paths: TRANSFORM_PATHS_3
|
|
891
708
|
}
|
|
892
709
|
])
|
|
893
710
|
};
|
|
@@ -904,6 +721,47 @@ var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
|
904
721
|
var import_page_url_v2 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
905
722
|
var import_page_url_v22 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
906
723
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
724
|
+
var TRANSFORM_PATHS_02 = [
|
|
725
|
+
{ path: "cartInfo.lineItems.url" },
|
|
726
|
+
{ path: "lineItems.url" },
|
|
727
|
+
{ path: "customLineItems.url" }
|
|
728
|
+
];
|
|
729
|
+
var TRANSFORM_PATHS_12 = [
|
|
730
|
+
{ path: "cartInfo.lineItems.image" },
|
|
731
|
+
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
732
|
+
{ path: "lineItems.image" },
|
|
733
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
734
|
+
{ path: "customLineItems.media" }
|
|
735
|
+
];
|
|
736
|
+
var TRANSFORM_PATHS_22 = [{ path: "cartInfo.contactInfo.address" }];
|
|
737
|
+
var TRANSFORM_PATHS_32 = [{ path: "cart.lineItems.url" }];
|
|
738
|
+
var TRANSFORM_PATHS_42 = [
|
|
739
|
+
{ path: "cart.lineItems.image" },
|
|
740
|
+
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
741
|
+
];
|
|
742
|
+
var TRANSFORM_PATHS_52 = [{ path: "cart.contactInfo.address" }];
|
|
743
|
+
var TRANSFORM_PATHS_62 = [
|
|
744
|
+
{ path: "lineItems.url" },
|
|
745
|
+
{ path: "customLineItems.url" }
|
|
746
|
+
];
|
|
747
|
+
var TRANSFORM_PATHS_72 = [
|
|
748
|
+
{ path: "lineItems.image" },
|
|
749
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
750
|
+
{ path: "customLineItems.media" }
|
|
751
|
+
];
|
|
752
|
+
var TRANSFORM_PATHS_82 = [
|
|
753
|
+
{ path: "shippingAddress" },
|
|
754
|
+
{ path: "billingAddress" }
|
|
755
|
+
];
|
|
756
|
+
var TRANSFORM_PATHS_92 = [
|
|
757
|
+
{ path: "cart.contactInfo.address" },
|
|
758
|
+
{
|
|
759
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
763
|
+
}
|
|
764
|
+
];
|
|
907
765
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
908
766
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
909
767
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -1147,25 +1005,15 @@ async function createCart2(options) {
|
|
|
1147
1005
|
[
|
|
1148
1006
|
{
|
|
1149
1007
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1150
|
-
paths:
|
|
1151
|
-
{ path: "cartInfo.lineItems.url" },
|
|
1152
|
-
{ path: "lineItems.url" },
|
|
1153
|
-
{ path: "customLineItems.url" }
|
|
1154
|
-
]
|
|
1008
|
+
paths: TRANSFORM_PATHS_02
|
|
1155
1009
|
},
|
|
1156
1010
|
{
|
|
1157
1011
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1158
|
-
paths:
|
|
1159
|
-
{ path: "cartInfo.lineItems.image" },
|
|
1160
|
-
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
1161
|
-
{ path: "lineItems.image" },
|
|
1162
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1163
|
-
{ path: "customLineItems.media" }
|
|
1164
|
-
]
|
|
1012
|
+
paths: TRANSFORM_PATHS_12
|
|
1165
1013
|
},
|
|
1166
1014
|
{
|
|
1167
1015
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1168
|
-
paths:
|
|
1016
|
+
paths: TRANSFORM_PATHS_22
|
|
1169
1017
|
}
|
|
1170
1018
|
]
|
|
1171
1019
|
);
|
|
@@ -1178,18 +1026,15 @@ async function createCart2(options) {
|
|
|
1178
1026
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1179
1027
|
{
|
|
1180
1028
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1181
|
-
paths:
|
|
1029
|
+
paths: TRANSFORM_PATHS_32
|
|
1182
1030
|
},
|
|
1183
1031
|
{
|
|
1184
1032
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1185
|
-
paths:
|
|
1186
|
-
{ path: "cart.lineItems.image" },
|
|
1187
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1188
|
-
]
|
|
1033
|
+
paths: TRANSFORM_PATHS_42
|
|
1189
1034
|
},
|
|
1190
1035
|
{
|
|
1191
1036
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1192
|
-
paths:
|
|
1037
|
+
paths: TRANSFORM_PATHS_52
|
|
1193
1038
|
}
|
|
1194
1039
|
])
|
|
1195
1040
|
)?.cart;
|
|
@@ -1224,25 +1069,15 @@ async function updateCart2(_id, options) {
|
|
|
1224
1069
|
[
|
|
1225
1070
|
{
|
|
1226
1071
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1227
|
-
paths:
|
|
1228
|
-
{ path: "cartInfo.lineItems.url" },
|
|
1229
|
-
{ path: "lineItems.url" },
|
|
1230
|
-
{ path: "customLineItems.url" }
|
|
1231
|
-
]
|
|
1072
|
+
paths: TRANSFORM_PATHS_02
|
|
1232
1073
|
},
|
|
1233
1074
|
{
|
|
1234
1075
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1235
|
-
paths:
|
|
1236
|
-
{ path: "cartInfo.lineItems.image" },
|
|
1237
|
-
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
1238
|
-
{ path: "lineItems.image" },
|
|
1239
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1240
|
-
{ path: "customLineItems.media" }
|
|
1241
|
-
]
|
|
1076
|
+
paths: TRANSFORM_PATHS_12
|
|
1242
1077
|
},
|
|
1243
1078
|
{
|
|
1244
1079
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1245
|
-
paths:
|
|
1080
|
+
paths: TRANSFORM_PATHS_22
|
|
1246
1081
|
}
|
|
1247
1082
|
]
|
|
1248
1083
|
);
|
|
@@ -1255,18 +1090,15 @@ async function updateCart2(_id, options) {
|
|
|
1255
1090
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1256
1091
|
{
|
|
1257
1092
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1258
|
-
paths:
|
|
1093
|
+
paths: TRANSFORM_PATHS_32
|
|
1259
1094
|
},
|
|
1260
1095
|
{
|
|
1261
1096
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1262
|
-
paths:
|
|
1263
|
-
{ path: "cart.lineItems.image" },
|
|
1264
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1265
|
-
]
|
|
1097
|
+
paths: TRANSFORM_PATHS_42
|
|
1266
1098
|
},
|
|
1267
1099
|
{
|
|
1268
1100
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1269
|
-
paths:
|
|
1101
|
+
paths: TRANSFORM_PATHS_52
|
|
1270
1102
|
}
|
|
1271
1103
|
])
|
|
1272
1104
|
)?.cart;
|
|
@@ -1301,18 +1133,15 @@ async function getCart2(_id) {
|
|
|
1301
1133
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1302
1134
|
{
|
|
1303
1135
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1304
|
-
paths:
|
|
1136
|
+
paths: TRANSFORM_PATHS_32
|
|
1305
1137
|
},
|
|
1306
1138
|
{
|
|
1307
1139
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1308
|
-
paths:
|
|
1309
|
-
{ path: "cart.lineItems.image" },
|
|
1310
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1311
|
-
]
|
|
1140
|
+
paths: TRANSFORM_PATHS_42
|
|
1312
1141
|
},
|
|
1313
1142
|
{
|
|
1314
1143
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1315
|
-
paths:
|
|
1144
|
+
paths: TRANSFORM_PATHS_52
|
|
1316
1145
|
}
|
|
1317
1146
|
])
|
|
1318
1147
|
)?.cart;
|
|
@@ -1342,18 +1171,15 @@ async function getCartByCheckoutId2(_id) {
|
|
|
1342
1171
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1343
1172
|
{
|
|
1344
1173
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1345
|
-
paths:
|
|
1174
|
+
paths: TRANSFORM_PATHS_32
|
|
1346
1175
|
},
|
|
1347
1176
|
{
|
|
1348
1177
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1349
|
-
paths:
|
|
1350
|
-
{ path: "cart.lineItems.image" },
|
|
1351
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1352
|
-
]
|
|
1178
|
+
paths: TRANSFORM_PATHS_42
|
|
1353
1179
|
},
|
|
1354
1180
|
{
|
|
1355
1181
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1356
|
-
paths:
|
|
1182
|
+
paths: TRANSFORM_PATHS_52
|
|
1357
1183
|
}
|
|
1358
1184
|
])
|
|
1359
1185
|
);
|
|
@@ -1383,15 +1209,11 @@ async function addToCart2(_id, options) {
|
|
|
1383
1209
|
[
|
|
1384
1210
|
{
|
|
1385
1211
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1386
|
-
paths:
|
|
1212
|
+
paths: TRANSFORM_PATHS_62
|
|
1387
1213
|
},
|
|
1388
1214
|
{
|
|
1389
1215
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1390
|
-
paths:
|
|
1391
|
-
{ path: "lineItems.image" },
|
|
1392
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1393
|
-
{ path: "customLineItems.media" }
|
|
1394
|
-
]
|
|
1216
|
+
paths: TRANSFORM_PATHS_72
|
|
1395
1217
|
}
|
|
1396
1218
|
]
|
|
1397
1219
|
);
|
|
@@ -1404,18 +1226,15 @@ async function addToCart2(_id, options) {
|
|
|
1404
1226
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1405
1227
|
{
|
|
1406
1228
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1407
|
-
paths:
|
|
1229
|
+
paths: TRANSFORM_PATHS_32
|
|
1408
1230
|
},
|
|
1409
1231
|
{
|
|
1410
1232
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1411
|
-
paths:
|
|
1412
|
-
{ path: "cart.lineItems.image" },
|
|
1413
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1414
|
-
]
|
|
1233
|
+
paths: TRANSFORM_PATHS_42
|
|
1415
1234
|
},
|
|
1416
1235
|
{
|
|
1417
1236
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1418
|
-
paths:
|
|
1237
|
+
paths: TRANSFORM_PATHS_52
|
|
1419
1238
|
}
|
|
1420
1239
|
])
|
|
1421
1240
|
);
|
|
@@ -1453,18 +1272,15 @@ async function removeLineItems2(_id, lineItemIds) {
|
|
|
1453
1272
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1454
1273
|
{
|
|
1455
1274
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1456
|
-
paths:
|
|
1275
|
+
paths: TRANSFORM_PATHS_32
|
|
1457
1276
|
},
|
|
1458
1277
|
{
|
|
1459
1278
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1460
|
-
paths:
|
|
1461
|
-
{ path: "cart.lineItems.image" },
|
|
1462
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1463
|
-
]
|
|
1279
|
+
paths: TRANSFORM_PATHS_42
|
|
1464
1280
|
},
|
|
1465
1281
|
{
|
|
1466
1282
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1467
|
-
paths:
|
|
1283
|
+
paths: TRANSFORM_PATHS_52
|
|
1468
1284
|
}
|
|
1469
1285
|
])
|
|
1470
1286
|
);
|
|
@@ -1496,7 +1312,7 @@ async function createCheckout2(_id, options) {
|
|
|
1496
1312
|
[
|
|
1497
1313
|
{
|
|
1498
1314
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1499
|
-
paths:
|
|
1315
|
+
paths: TRANSFORM_PATHS_82
|
|
1500
1316
|
}
|
|
1501
1317
|
]
|
|
1502
1318
|
);
|
|
@@ -1539,18 +1355,15 @@ async function removeCoupon2(_id) {
|
|
|
1539
1355
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1540
1356
|
{
|
|
1541
1357
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1542
|
-
paths:
|
|
1358
|
+
paths: TRANSFORM_PATHS_32
|
|
1543
1359
|
},
|
|
1544
1360
|
{
|
|
1545
1361
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1546
|
-
paths:
|
|
1547
|
-
{ path: "cart.lineItems.image" },
|
|
1548
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1549
|
-
]
|
|
1362
|
+
paths: TRANSFORM_PATHS_42
|
|
1550
1363
|
},
|
|
1551
1364
|
{
|
|
1552
1365
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1553
|
-
paths:
|
|
1366
|
+
paths: TRANSFORM_PATHS_52
|
|
1554
1367
|
}
|
|
1555
1368
|
])
|
|
1556
1369
|
);
|
|
@@ -1583,18 +1396,15 @@ async function updateLineItemsQuantity2(_id, lineItems) {
|
|
|
1583
1396
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1584
1397
|
{
|
|
1585
1398
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1586
|
-
paths:
|
|
1399
|
+
paths: TRANSFORM_PATHS_32
|
|
1587
1400
|
},
|
|
1588
1401
|
{
|
|
1589
1402
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1590
|
-
paths:
|
|
1591
|
-
{ path: "cart.lineItems.image" },
|
|
1592
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1593
|
-
]
|
|
1403
|
+
paths: TRANSFORM_PATHS_42
|
|
1594
1404
|
},
|
|
1595
1405
|
{
|
|
1596
1406
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1597
|
-
paths:
|
|
1407
|
+
paths: TRANSFORM_PATHS_52
|
|
1598
1408
|
}
|
|
1599
1409
|
])
|
|
1600
1410
|
);
|
|
@@ -1628,7 +1438,7 @@ async function estimateTotals2(_id, options) {
|
|
|
1628
1438
|
[
|
|
1629
1439
|
{
|
|
1630
1440
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1631
|
-
paths:
|
|
1441
|
+
paths: TRANSFORM_PATHS_82
|
|
1632
1442
|
}
|
|
1633
1443
|
]
|
|
1634
1444
|
);
|
|
@@ -1641,26 +1451,15 @@ async function estimateTotals2(_id, options) {
|
|
|
1641
1451
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1642
1452
|
{
|
|
1643
1453
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1644
|
-
paths:
|
|
1454
|
+
paths: TRANSFORM_PATHS_32
|
|
1645
1455
|
},
|
|
1646
1456
|
{
|
|
1647
1457
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1648
|
-
paths:
|
|
1649
|
-
{ path: "cart.lineItems.image" },
|
|
1650
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1651
|
-
]
|
|
1458
|
+
paths: TRANSFORM_PATHS_42
|
|
1652
1459
|
},
|
|
1653
1460
|
{
|
|
1654
1461
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1655
|
-
paths:
|
|
1656
|
-
{ path: "cart.contactInfo.address" },
|
|
1657
|
-
{
|
|
1658
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1659
|
-
},
|
|
1660
|
-
{
|
|
1661
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1662
|
-
}
|
|
1663
|
-
]
|
|
1462
|
+
paths: TRANSFORM_PATHS_92
|
|
1664
1463
|
}
|
|
1665
1464
|
])
|
|
1666
1465
|
);
|
|
@@ -1721,18 +1520,15 @@ async function removeBusinessLocation2(_id) {
|
|
|
1721
1520
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1722
1521
|
{
|
|
1723
1522
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1724
|
-
paths:
|
|
1523
|
+
paths: TRANSFORM_PATHS_32
|
|
1725
1524
|
},
|
|
1726
1525
|
{
|
|
1727
1526
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1728
|
-
paths:
|
|
1729
|
-
{ path: "cart.lineItems.image" },
|
|
1730
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1731
|
-
]
|
|
1527
|
+
paths: TRANSFORM_PATHS_42
|
|
1732
1528
|
},
|
|
1733
1529
|
{
|
|
1734
1530
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1735
|
-
paths:
|
|
1531
|
+
paths: TRANSFORM_PATHS_52
|
|
1736
1532
|
}
|
|
1737
1533
|
])
|
|
1738
1534
|
);
|