@wix/auto_sdk_ecom_current-cart 1.0.190 → 1.0.192
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 +311 -399
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +127 -56
- package/build/cjs/index.typings.js +215 -312
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +127 -56
- package/build/cjs/meta.js +146 -241
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +311 -399
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +127 -56
- package/build/es/index.typings.mjs +215 -312
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +127 -56
- package/build/es/meta.mjs +146 -241
- 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
|
@@ -72,6 +72,131 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
72
72
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
73
73
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
74
74
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
75
|
+
var TRANSFORM_PATHS_0 = [
|
|
76
|
+
{ path: "cart.createdDate" },
|
|
77
|
+
{ path: "cart.updatedDate" },
|
|
78
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
79
|
+
{
|
|
80
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
81
|
+
},
|
|
82
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
83
|
+
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
84
|
+
];
|
|
85
|
+
var TRANSFORM_PATHS_1 = [
|
|
86
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
87
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
88
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
89
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
90
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
91
|
+
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
92
|
+
];
|
|
93
|
+
var TRANSFORM_PATHS_2 = [{ path: "cartFieldmask" }];
|
|
94
|
+
var TRANSFORM_PATHS_3 = [
|
|
95
|
+
{ path: "cartInfo.createdDate" },
|
|
96
|
+
{ path: "cartInfo.updatedDate" },
|
|
97
|
+
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
98
|
+
{
|
|
99
|
+
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
100
|
+
},
|
|
101
|
+
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
102
|
+
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
103
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
104
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
105
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
106
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
107
|
+
{
|
|
108
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
109
|
+
},
|
|
110
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
111
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
112
|
+
];
|
|
113
|
+
var TRANSFORM_PATHS_4 = [
|
|
114
|
+
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
115
|
+
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
116
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
117
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
118
|
+
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
119
|
+
{
|
|
120
|
+
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
121
|
+
},
|
|
122
|
+
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
123
|
+
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
124
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
125
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
126
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
127
|
+
];
|
|
128
|
+
var TRANSFORM_PATHS_5 = [
|
|
129
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
130
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
131
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
132
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
133
|
+
{
|
|
134
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
135
|
+
},
|
|
136
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
137
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
138
|
+
];
|
|
139
|
+
var TRANSFORM_PATHS_6 = [
|
|
140
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
141
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
142
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
143
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
144
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
145
|
+
];
|
|
146
|
+
var TRANSFORM_PATHS_7 = [
|
|
147
|
+
{ path: "shippingAddress.geocode.latitude" },
|
|
148
|
+
{ path: "shippingAddress.geocode.longitude" },
|
|
149
|
+
{ path: "billingAddress.geocode.latitude" },
|
|
150
|
+
{ path: "billingAddress.geocode.longitude" }
|
|
151
|
+
];
|
|
152
|
+
var TRANSFORM_PATHS_8 = [
|
|
153
|
+
{ path: "cart.createdDate" },
|
|
154
|
+
{ path: "cart.updatedDate" },
|
|
155
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
156
|
+
{
|
|
157
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
158
|
+
},
|
|
159
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
160
|
+
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
161
|
+
{
|
|
162
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
172
|
+
},
|
|
173
|
+
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
174
|
+
{ path: "membershipOptions.invalidMemberships.membership.expirationDate" },
|
|
175
|
+
{
|
|
176
|
+
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
177
|
+
}
|
|
178
|
+
];
|
|
179
|
+
var TRANSFORM_PATHS_9 = [
|
|
180
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
181
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
182
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
183
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
184
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
185
|
+
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
186
|
+
{
|
|
187
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
197
|
+
},
|
|
198
|
+
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
199
|
+
];
|
|
75
200
|
function resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
|
|
76
201
|
const domainToMappings = {
|
|
77
202
|
"www.wixapis.com": [
|
|
@@ -201,29 +326,11 @@ function currentCartGetCurrentCart(payload) {
|
|
|
201
326
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
202
327
|
{
|
|
203
328
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
204
|
-
paths:
|
|
205
|
-
{ path: "cart.createdDate" },
|
|
206
|
-
{ path: "cart.updatedDate" },
|
|
207
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
208
|
-
{
|
|
209
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
210
|
-
},
|
|
211
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
212
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
213
|
-
]
|
|
329
|
+
paths: TRANSFORM_PATHS_0
|
|
214
330
|
},
|
|
215
331
|
{
|
|
216
332
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
217
|
-
paths:
|
|
218
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
219
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
220
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
221
|
-
{
|
|
222
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
223
|
-
},
|
|
224
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
225
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
226
|
-
]
|
|
333
|
+
paths: TRANSFORM_PATHS_1
|
|
227
334
|
}
|
|
228
335
|
])
|
|
229
336
|
};
|
|
@@ -236,49 +343,15 @@ function updateCurrentCart(payload) {
|
|
|
236
343
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
237
344
|
{
|
|
238
345
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
239
|
-
paths:
|
|
346
|
+
paths: TRANSFORM_PATHS_2
|
|
240
347
|
},
|
|
241
348
|
{
|
|
242
349
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
243
|
-
paths:
|
|
244
|
-
{ path: "cartInfo.createdDate" },
|
|
245
|
-
{ path: "cartInfo.updatedDate" },
|
|
246
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
247
|
-
{
|
|
248
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
249
|
-
},
|
|
250
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
251
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
252
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
253
|
-
{
|
|
254
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
255
|
-
},
|
|
256
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
257
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
258
|
-
{
|
|
259
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
260
|
-
},
|
|
261
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
262
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
263
|
-
]
|
|
350
|
+
paths: TRANSFORM_PATHS_3
|
|
264
351
|
},
|
|
265
352
|
{
|
|
266
353
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
267
|
-
paths:
|
|
268
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
269
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
270
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
271
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
272
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
273
|
-
{
|
|
274
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
275
|
-
},
|
|
276
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
277
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
278
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
279
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
280
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
281
|
-
]
|
|
354
|
+
paths: TRANSFORM_PATHS_4
|
|
282
355
|
}
|
|
283
356
|
]);
|
|
284
357
|
const metadata = {
|
|
@@ -298,29 +371,11 @@ function updateCurrentCart(payload) {
|
|
|
298
371
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
299
372
|
{
|
|
300
373
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
301
|
-
paths:
|
|
302
|
-
{ path: "cart.createdDate" },
|
|
303
|
-
{ path: "cart.updatedDate" },
|
|
304
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
305
|
-
{
|
|
306
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
307
|
-
},
|
|
308
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
309
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
310
|
-
]
|
|
374
|
+
paths: TRANSFORM_PATHS_0
|
|
311
375
|
},
|
|
312
376
|
{
|
|
313
377
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
314
|
-
paths:
|
|
315
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
316
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
317
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
318
|
-
{
|
|
319
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
320
|
-
},
|
|
321
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
322
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
323
|
-
]
|
|
378
|
+
paths: TRANSFORM_PATHS_1
|
|
324
379
|
}
|
|
325
380
|
])
|
|
326
381
|
};
|
|
@@ -333,29 +388,11 @@ function addToCurrentCart(payload) {
|
|
|
333
388
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
334
389
|
{
|
|
335
390
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
336
|
-
paths:
|
|
337
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
338
|
-
{
|
|
339
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
340
|
-
},
|
|
341
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
342
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
343
|
-
{
|
|
344
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
345
|
-
},
|
|
346
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
347
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
348
|
-
]
|
|
391
|
+
paths: TRANSFORM_PATHS_5
|
|
349
392
|
},
|
|
350
393
|
{
|
|
351
394
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
352
|
-
paths:
|
|
353
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
354
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
355
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
356
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
357
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
358
|
-
]
|
|
395
|
+
paths: TRANSFORM_PATHS_6
|
|
359
396
|
}
|
|
360
397
|
]);
|
|
361
398
|
const metadata = {
|
|
@@ -375,29 +412,11 @@ function addToCurrentCart(payload) {
|
|
|
375
412
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
376
413
|
{
|
|
377
414
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
378
|
-
paths:
|
|
379
|
-
{ path: "cart.createdDate" },
|
|
380
|
-
{ path: "cart.updatedDate" },
|
|
381
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
382
|
-
{
|
|
383
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
384
|
-
},
|
|
385
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
386
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
387
|
-
]
|
|
415
|
+
paths: TRANSFORM_PATHS_0
|
|
388
416
|
},
|
|
389
417
|
{
|
|
390
418
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
391
|
-
paths:
|
|
392
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
393
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
394
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
395
|
-
{
|
|
396
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
397
|
-
},
|
|
398
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
399
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
400
|
-
]
|
|
419
|
+
paths: TRANSFORM_PATHS_1
|
|
401
420
|
}
|
|
402
421
|
])
|
|
403
422
|
};
|
|
@@ -424,29 +443,11 @@ function removeLineItemsFromCurrentCart(payload) {
|
|
|
424
443
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
425
444
|
{
|
|
426
445
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
427
|
-
paths:
|
|
428
|
-
{ path: "cart.createdDate" },
|
|
429
|
-
{ path: "cart.updatedDate" },
|
|
430
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
431
|
-
{
|
|
432
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
433
|
-
},
|
|
434
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
435
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
436
|
-
]
|
|
446
|
+
paths: TRANSFORM_PATHS_0
|
|
437
447
|
},
|
|
438
448
|
{
|
|
439
449
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
440
|
-
paths:
|
|
441
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
442
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
443
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
444
|
-
{
|
|
445
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
446
|
-
},
|
|
447
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
448
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
449
|
-
]
|
|
450
|
+
paths: TRANSFORM_PATHS_1
|
|
450
451
|
}
|
|
451
452
|
])
|
|
452
453
|
};
|
|
@@ -459,12 +460,7 @@ function createCheckoutFromCurrentCart(payload) {
|
|
|
459
460
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
460
461
|
{
|
|
461
462
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
462
|
-
paths:
|
|
463
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
464
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
465
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
466
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
467
|
-
]
|
|
463
|
+
paths: TRANSFORM_PATHS_7
|
|
468
464
|
}
|
|
469
465
|
]);
|
|
470
466
|
const metadata = {
|
|
@@ -505,29 +501,11 @@ function removeCouponFromCurrentCart(payload) {
|
|
|
505
501
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
506
502
|
{
|
|
507
503
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
508
|
-
paths:
|
|
509
|
-
{ path: "cart.createdDate" },
|
|
510
|
-
{ path: "cart.updatedDate" },
|
|
511
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
512
|
-
{
|
|
513
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
514
|
-
},
|
|
515
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
516
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
517
|
-
]
|
|
504
|
+
paths: TRANSFORM_PATHS_0
|
|
518
505
|
},
|
|
519
506
|
{
|
|
520
507
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
521
|
-
paths:
|
|
522
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
523
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
524
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
525
|
-
{
|
|
526
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
527
|
-
},
|
|
528
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
529
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
530
|
-
]
|
|
508
|
+
paths: TRANSFORM_PATHS_1
|
|
531
509
|
}
|
|
532
510
|
])
|
|
533
511
|
};
|
|
@@ -554,29 +532,11 @@ function updateCurrentCartLineItemQuantity(payload) {
|
|
|
554
532
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
555
533
|
{
|
|
556
534
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
557
|
-
paths:
|
|
558
|
-
{ path: "cart.createdDate" },
|
|
559
|
-
{ path: "cart.updatedDate" },
|
|
560
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
561
|
-
{
|
|
562
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
563
|
-
},
|
|
564
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
565
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
566
|
-
]
|
|
535
|
+
paths: TRANSFORM_PATHS_0
|
|
567
536
|
},
|
|
568
537
|
{
|
|
569
538
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
570
|
-
paths:
|
|
571
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
572
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
573
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
574
|
-
{
|
|
575
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
576
|
-
},
|
|
577
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
578
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
579
|
-
]
|
|
539
|
+
paths: TRANSFORM_PATHS_1
|
|
580
540
|
}
|
|
581
541
|
])
|
|
582
542
|
};
|
|
@@ -589,12 +549,7 @@ function estimateCurrentCartTotals(payload) {
|
|
|
589
549
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
590
550
|
{
|
|
591
551
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
592
|
-
paths:
|
|
593
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
594
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
595
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
596
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
597
|
-
]
|
|
552
|
+
paths: TRANSFORM_PATHS_7
|
|
598
553
|
}
|
|
599
554
|
]);
|
|
600
555
|
const metadata = {
|
|
@@ -614,61 +569,11 @@ function estimateCurrentCartTotals(payload) {
|
|
|
614
569
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
615
570
|
{
|
|
616
571
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
617
|
-
paths:
|
|
618
|
-
{ path: "cart.createdDate" },
|
|
619
|
-
{ path: "cart.updatedDate" },
|
|
620
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
621
|
-
{
|
|
622
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
623
|
-
},
|
|
624
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
625
|
-
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
626
|
-
{
|
|
627
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
637
|
-
},
|
|
638
|
-
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
639
|
-
{
|
|
640
|
-
path: "membershipOptions.invalidMemberships.membership.expirationDate"
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
644
|
-
}
|
|
645
|
-
]
|
|
572
|
+
paths: TRANSFORM_PATHS_8
|
|
646
573
|
},
|
|
647
574
|
{
|
|
648
575
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
649
|
-
paths:
|
|
650
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
651
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
652
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
653
|
-
{
|
|
654
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
655
|
-
},
|
|
656
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
657
|
-
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
658
|
-
{
|
|
659
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
669
|
-
},
|
|
670
|
-
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
671
|
-
]
|
|
576
|
+
paths: TRANSFORM_PATHS_9
|
|
672
577
|
}
|
|
673
578
|
])
|
|
674
579
|
};
|