@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
package/build/cjs/meta.js
CHANGED
|
@@ -75,6 +75,131 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
75
75
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
76
76
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
77
77
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
78
|
+
var TRANSFORM_PATHS_0 = [
|
|
79
|
+
{ path: "cartInfo.createdDate" },
|
|
80
|
+
{ path: "cartInfo.updatedDate" },
|
|
81
|
+
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
82
|
+
{
|
|
83
|
+
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
84
|
+
},
|
|
85
|
+
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
86
|
+
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
87
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
88
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
89
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
90
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
91
|
+
{
|
|
92
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
93
|
+
},
|
|
94
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
95
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
96
|
+
];
|
|
97
|
+
var TRANSFORM_PATHS_1 = [
|
|
98
|
+
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
99
|
+
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
100
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
101
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
102
|
+
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
103
|
+
{
|
|
104
|
+
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
105
|
+
},
|
|
106
|
+
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
107
|
+
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
108
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
109
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
110
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
111
|
+
];
|
|
112
|
+
var TRANSFORM_PATHS_2 = [
|
|
113
|
+
{ path: "cart.createdDate" },
|
|
114
|
+
{ path: "cart.updatedDate" },
|
|
115
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
116
|
+
{
|
|
117
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
118
|
+
},
|
|
119
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
120
|
+
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
121
|
+
];
|
|
122
|
+
var TRANSFORM_PATHS_3 = [
|
|
123
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
124
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
125
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
126
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
127
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
128
|
+
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
129
|
+
];
|
|
130
|
+
var TRANSFORM_PATHS_4 = [{ path: "cartFieldmask" }];
|
|
131
|
+
var TRANSFORM_PATHS_5 = [
|
|
132
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
133
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
134
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
135
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
136
|
+
{
|
|
137
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
138
|
+
},
|
|
139
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
140
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
141
|
+
];
|
|
142
|
+
var TRANSFORM_PATHS_6 = [
|
|
143
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
144
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
145
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
146
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
147
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
148
|
+
];
|
|
149
|
+
var TRANSFORM_PATHS_7 = [
|
|
150
|
+
{ path: "shippingAddress.geocode.latitude" },
|
|
151
|
+
{ path: "shippingAddress.geocode.longitude" },
|
|
152
|
+
{ path: "billingAddress.geocode.latitude" },
|
|
153
|
+
{ path: "billingAddress.geocode.longitude" }
|
|
154
|
+
];
|
|
155
|
+
var TRANSFORM_PATHS_8 = [
|
|
156
|
+
{ path: "cart.createdDate" },
|
|
157
|
+
{ path: "cart.updatedDate" },
|
|
158
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
159
|
+
{
|
|
160
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
161
|
+
},
|
|
162
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
163
|
+
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
164
|
+
{
|
|
165
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
175
|
+
},
|
|
176
|
+
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
177
|
+
{ path: "membershipOptions.invalidMemberships.membership.expirationDate" },
|
|
178
|
+
{
|
|
179
|
+
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
180
|
+
}
|
|
181
|
+
];
|
|
182
|
+
var TRANSFORM_PATHS_9 = [
|
|
183
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
184
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
185
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
186
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
187
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
188
|
+
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
189
|
+
{
|
|
190
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
200
|
+
},
|
|
201
|
+
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
202
|
+
];
|
|
78
203
|
function resolveComWixEcomCartApiV1CartServiceUrl(opts) {
|
|
79
204
|
const domainToMappings = {
|
|
80
205
|
"www.wixapis.com": [
|
|
@@ -190,45 +315,11 @@ function createCart(payload) {
|
|
|
190
315
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
191
316
|
{
|
|
192
317
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
193
|
-
paths:
|
|
194
|
-
{ path: "cartInfo.createdDate" },
|
|
195
|
-
{ path: "cartInfo.updatedDate" },
|
|
196
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
197
|
-
{
|
|
198
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
199
|
-
},
|
|
200
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
201
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
202
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
203
|
-
{
|
|
204
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
205
|
-
},
|
|
206
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
207
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
208
|
-
{
|
|
209
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
210
|
-
},
|
|
211
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
212
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
213
|
-
]
|
|
318
|
+
paths: TRANSFORM_PATHS_0
|
|
214
319
|
},
|
|
215
320
|
{
|
|
216
321
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
217
|
-
paths:
|
|
218
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
219
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
220
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
221
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
222
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
223
|
-
{
|
|
224
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
225
|
-
},
|
|
226
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
227
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
228
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
229
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
230
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
231
|
-
]
|
|
322
|
+
paths: TRANSFORM_PATHS_1
|
|
232
323
|
}
|
|
233
324
|
]);
|
|
234
325
|
const metadata = {
|
|
@@ -248,29 +339,11 @@ function createCart(payload) {
|
|
|
248
339
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
249
340
|
{
|
|
250
341
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
251
|
-
paths:
|
|
252
|
-
{ path: "cart.createdDate" },
|
|
253
|
-
{ path: "cart.updatedDate" },
|
|
254
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
255
|
-
{
|
|
256
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
257
|
-
},
|
|
258
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
259
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
260
|
-
]
|
|
342
|
+
paths: TRANSFORM_PATHS_2
|
|
261
343
|
},
|
|
262
344
|
{
|
|
263
345
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
264
|
-
paths:
|
|
265
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
266
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
267
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
268
|
-
{
|
|
269
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
270
|
-
},
|
|
271
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
272
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
273
|
-
]
|
|
346
|
+
paths: TRANSFORM_PATHS_3
|
|
274
347
|
}
|
|
275
348
|
])
|
|
276
349
|
};
|
|
@@ -283,49 +356,15 @@ function updateCart(payload) {
|
|
|
283
356
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
284
357
|
{
|
|
285
358
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
286
|
-
paths:
|
|
359
|
+
paths: TRANSFORM_PATHS_4
|
|
287
360
|
},
|
|
288
361
|
{
|
|
289
362
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
290
|
-
paths:
|
|
291
|
-
{ path: "cartInfo.createdDate" },
|
|
292
|
-
{ path: "cartInfo.updatedDate" },
|
|
293
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
294
|
-
{
|
|
295
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
296
|
-
},
|
|
297
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
298
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
299
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
300
|
-
{
|
|
301
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
302
|
-
},
|
|
303
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
304
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
305
|
-
{
|
|
306
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
307
|
-
},
|
|
308
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
309
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
310
|
-
]
|
|
363
|
+
paths: TRANSFORM_PATHS_0
|
|
311
364
|
},
|
|
312
365
|
{
|
|
313
366
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
314
|
-
paths:
|
|
315
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
316
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
317
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
318
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
319
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
320
|
-
{
|
|
321
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
322
|
-
},
|
|
323
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
324
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
325
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
326
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
327
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
328
|
-
]
|
|
367
|
+
paths: TRANSFORM_PATHS_1
|
|
329
368
|
}
|
|
330
369
|
]);
|
|
331
370
|
const metadata = {
|
|
@@ -345,29 +384,11 @@ function updateCart(payload) {
|
|
|
345
384
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
346
385
|
{
|
|
347
386
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
348
|
-
paths:
|
|
349
|
-
{ path: "cart.createdDate" },
|
|
350
|
-
{ path: "cart.updatedDate" },
|
|
351
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
352
|
-
{
|
|
353
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
354
|
-
},
|
|
355
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
356
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
357
|
-
]
|
|
387
|
+
paths: TRANSFORM_PATHS_2
|
|
358
388
|
},
|
|
359
389
|
{
|
|
360
390
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
361
|
-
paths:
|
|
362
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
363
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
364
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
365
|
-
{
|
|
366
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
367
|
-
},
|
|
368
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
369
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
370
|
-
]
|
|
391
|
+
paths: TRANSFORM_PATHS_3
|
|
371
392
|
}
|
|
372
393
|
])
|
|
373
394
|
};
|
|
@@ -394,29 +415,11 @@ function getCart(payload) {
|
|
|
394
415
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
395
416
|
{
|
|
396
417
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
397
|
-
paths:
|
|
398
|
-
{ path: "cart.createdDate" },
|
|
399
|
-
{ path: "cart.updatedDate" },
|
|
400
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
401
|
-
{
|
|
402
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
403
|
-
},
|
|
404
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
405
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
406
|
-
]
|
|
418
|
+
paths: TRANSFORM_PATHS_2
|
|
407
419
|
},
|
|
408
420
|
{
|
|
409
421
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
410
|
-
paths:
|
|
411
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
412
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
413
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
414
|
-
{
|
|
415
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
416
|
-
},
|
|
417
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
418
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
419
|
-
]
|
|
422
|
+
paths: TRANSFORM_PATHS_3
|
|
420
423
|
}
|
|
421
424
|
])
|
|
422
425
|
};
|
|
@@ -443,29 +446,11 @@ function getCartByCheckoutId(payload) {
|
|
|
443
446
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
444
447
|
{
|
|
445
448
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
446
|
-
paths:
|
|
447
|
-
{ path: "cart.createdDate" },
|
|
448
|
-
{ path: "cart.updatedDate" },
|
|
449
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
450
|
-
{
|
|
451
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
452
|
-
},
|
|
453
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
454
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
455
|
-
]
|
|
449
|
+
paths: TRANSFORM_PATHS_2
|
|
456
450
|
},
|
|
457
451
|
{
|
|
458
452
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
459
|
-
paths:
|
|
460
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
461
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
462
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
463
|
-
{
|
|
464
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
465
|
-
},
|
|
466
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
467
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
468
|
-
]
|
|
453
|
+
paths: TRANSFORM_PATHS_3
|
|
469
454
|
}
|
|
470
455
|
])
|
|
471
456
|
};
|
|
@@ -478,29 +463,11 @@ function addToCart(payload) {
|
|
|
478
463
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
479
464
|
{
|
|
480
465
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
481
|
-
paths:
|
|
482
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
483
|
-
{
|
|
484
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
485
|
-
},
|
|
486
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
487
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
488
|
-
{
|
|
489
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
490
|
-
},
|
|
491
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
492
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
493
|
-
]
|
|
466
|
+
paths: TRANSFORM_PATHS_5
|
|
494
467
|
},
|
|
495
468
|
{
|
|
496
469
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
497
|
-
paths:
|
|
498
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
499
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
500
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
501
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
502
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
503
|
-
]
|
|
470
|
+
paths: TRANSFORM_PATHS_6
|
|
504
471
|
}
|
|
505
472
|
]);
|
|
506
473
|
const metadata = {
|
|
@@ -520,29 +487,11 @@ function addToCart(payload) {
|
|
|
520
487
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
521
488
|
{
|
|
522
489
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
523
|
-
paths:
|
|
524
|
-
{ path: "cart.createdDate" },
|
|
525
|
-
{ path: "cart.updatedDate" },
|
|
526
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
527
|
-
{
|
|
528
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
529
|
-
},
|
|
530
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
531
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
532
|
-
]
|
|
490
|
+
paths: TRANSFORM_PATHS_2
|
|
533
491
|
},
|
|
534
492
|
{
|
|
535
493
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
536
|
-
paths:
|
|
537
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
538
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
539
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
540
|
-
{
|
|
541
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
542
|
-
},
|
|
543
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
544
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
545
|
-
]
|
|
494
|
+
paths: TRANSFORM_PATHS_3
|
|
546
495
|
}
|
|
547
496
|
])
|
|
548
497
|
};
|
|
@@ -569,29 +518,11 @@ function removeLineItems(payload) {
|
|
|
569
518
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
570
519
|
{
|
|
571
520
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
572
|
-
paths:
|
|
573
|
-
{ path: "cart.createdDate" },
|
|
574
|
-
{ path: "cart.updatedDate" },
|
|
575
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
576
|
-
{
|
|
577
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
578
|
-
},
|
|
579
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
580
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
581
|
-
]
|
|
521
|
+
paths: TRANSFORM_PATHS_2
|
|
582
522
|
},
|
|
583
523
|
{
|
|
584
524
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
585
|
-
paths:
|
|
586
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
587
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
588
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
589
|
-
{
|
|
590
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
591
|
-
},
|
|
592
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
593
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
594
|
-
]
|
|
525
|
+
paths: TRANSFORM_PATHS_3
|
|
595
526
|
}
|
|
596
527
|
])
|
|
597
528
|
};
|
|
@@ -604,12 +535,7 @@ function createCheckout(payload) {
|
|
|
604
535
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
605
536
|
{
|
|
606
537
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
607
|
-
paths:
|
|
608
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
609
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
610
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
611
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
612
|
-
]
|
|
538
|
+
paths: TRANSFORM_PATHS_7
|
|
613
539
|
}
|
|
614
540
|
]);
|
|
615
541
|
const metadata = {
|
|
@@ -650,29 +576,11 @@ function removeCoupon(payload) {
|
|
|
650
576
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
651
577
|
{
|
|
652
578
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
653
|
-
paths:
|
|
654
|
-
{ path: "cart.createdDate" },
|
|
655
|
-
{ path: "cart.updatedDate" },
|
|
656
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
657
|
-
{
|
|
658
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
659
|
-
},
|
|
660
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
661
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
662
|
-
]
|
|
579
|
+
paths: TRANSFORM_PATHS_2
|
|
663
580
|
},
|
|
664
581
|
{
|
|
665
582
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
666
|
-
paths:
|
|
667
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
668
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
669
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
670
|
-
{
|
|
671
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
672
|
-
},
|
|
673
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
674
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
675
|
-
]
|
|
583
|
+
paths: TRANSFORM_PATHS_3
|
|
676
584
|
}
|
|
677
585
|
])
|
|
678
586
|
};
|
|
@@ -699,29 +607,11 @@ function updateLineItemsQuantity(payload) {
|
|
|
699
607
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
700
608
|
{
|
|
701
609
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
702
|
-
paths:
|
|
703
|
-
{ path: "cart.createdDate" },
|
|
704
|
-
{ path: "cart.updatedDate" },
|
|
705
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
706
|
-
{
|
|
707
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
708
|
-
},
|
|
709
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
710
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
711
|
-
]
|
|
610
|
+
paths: TRANSFORM_PATHS_2
|
|
712
611
|
},
|
|
713
612
|
{
|
|
714
613
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
715
|
-
paths:
|
|
716
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
717
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
718
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
719
|
-
{
|
|
720
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
721
|
-
},
|
|
722
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
723
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
724
|
-
]
|
|
614
|
+
paths: TRANSFORM_PATHS_3
|
|
725
615
|
}
|
|
726
616
|
])
|
|
727
617
|
};
|
|
@@ -734,12 +624,7 @@ function estimateTotals(payload) {
|
|
|
734
624
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
735
625
|
{
|
|
736
626
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
737
|
-
paths:
|
|
738
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
739
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
740
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
741
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
742
|
-
]
|
|
627
|
+
paths: TRANSFORM_PATHS_7
|
|
743
628
|
}
|
|
744
629
|
]);
|
|
745
630
|
const metadata = {
|
|
@@ -759,61 +644,11 @@ function estimateTotals(payload) {
|
|
|
759
644
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
760
645
|
{
|
|
761
646
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
762
|
-
paths:
|
|
763
|
-
{ path: "cart.createdDate" },
|
|
764
|
-
{ path: "cart.updatedDate" },
|
|
765
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
766
|
-
{
|
|
767
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
768
|
-
},
|
|
769
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
770
|
-
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
771
|
-
{
|
|
772
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
773
|
-
},
|
|
774
|
-
{
|
|
775
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
776
|
-
},
|
|
777
|
-
{
|
|
778
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
782
|
-
},
|
|
783
|
-
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
784
|
-
{
|
|
785
|
-
path: "membershipOptions.invalidMemberships.membership.expirationDate"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
789
|
-
}
|
|
790
|
-
]
|
|
647
|
+
paths: TRANSFORM_PATHS_8
|
|
791
648
|
},
|
|
792
649
|
{
|
|
793
650
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
794
|
-
paths:
|
|
795
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
796
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
797
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
798
|
-
{
|
|
799
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
800
|
-
},
|
|
801
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
802
|
-
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
803
|
-
{
|
|
804
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
814
|
-
},
|
|
815
|
-
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
816
|
-
]
|
|
651
|
+
paths: TRANSFORM_PATHS_9
|
|
817
652
|
}
|
|
818
653
|
])
|
|
819
654
|
};
|
|
@@ -861,29 +696,11 @@ function removeBusinessLocation(payload) {
|
|
|
861
696
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
862
697
|
{
|
|
863
698
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
864
|
-
paths:
|
|
865
|
-
{ path: "cart.createdDate" },
|
|
866
|
-
{ path: "cart.updatedDate" },
|
|
867
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
868
|
-
{
|
|
869
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
870
|
-
},
|
|
871
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
872
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
873
|
-
]
|
|
699
|
+
paths: TRANSFORM_PATHS_2
|
|
874
700
|
},
|
|
875
701
|
{
|
|
876
702
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
877
|
-
paths:
|
|
878
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
879
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
880
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
881
|
-
{
|
|
882
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
883
|
-
},
|
|
884
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
885
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
886
|
-
]
|
|
703
|
+
paths: TRANSFORM_PATHS_3
|
|
887
704
|
}
|
|
888
705
|
])
|
|
889
706
|
};
|