@wix/auto_sdk_ecom_cart 1.0.179 → 1.0.181
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 +1 -1
- package/build/cjs/index.typings.js +235 -439
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- 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 +1 -1
- package/build/es/index.typings.mjs +235 -439
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs +154 -337
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/index.typings.d.mts +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -92,6 +92,131 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
92
92
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
93
93
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
94
94
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
95
|
+
var TRANSFORM_PATHS_0 = [
|
|
96
|
+
{ path: "cartInfo.createdDate" },
|
|
97
|
+
{ path: "cartInfo.updatedDate" },
|
|
98
|
+
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
99
|
+
{
|
|
100
|
+
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
101
|
+
},
|
|
102
|
+
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
103
|
+
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
104
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
105
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
106
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
107
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
108
|
+
{
|
|
109
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
110
|
+
},
|
|
111
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
112
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
113
|
+
];
|
|
114
|
+
var TRANSFORM_PATHS_1 = [
|
|
115
|
+
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
116
|
+
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
117
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
118
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
119
|
+
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
120
|
+
{
|
|
121
|
+
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
122
|
+
},
|
|
123
|
+
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
124
|
+
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
125
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
126
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
127
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
128
|
+
];
|
|
129
|
+
var TRANSFORM_PATHS_2 = [
|
|
130
|
+
{ path: "cart.createdDate" },
|
|
131
|
+
{ path: "cart.updatedDate" },
|
|
132
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
133
|
+
{
|
|
134
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
135
|
+
},
|
|
136
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
137
|
+
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
138
|
+
];
|
|
139
|
+
var TRANSFORM_PATHS_3 = [
|
|
140
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
141
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
142
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
143
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
144
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
145
|
+
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
146
|
+
];
|
|
147
|
+
var TRANSFORM_PATHS_4 = [{ path: "cartFieldmask" }];
|
|
148
|
+
var TRANSFORM_PATHS_5 = [
|
|
149
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
150
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
151
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
152
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
153
|
+
{
|
|
154
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
155
|
+
},
|
|
156
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
157
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
158
|
+
];
|
|
159
|
+
var TRANSFORM_PATHS_6 = [
|
|
160
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
161
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
162
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
163
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
164
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
165
|
+
];
|
|
166
|
+
var TRANSFORM_PATHS_7 = [
|
|
167
|
+
{ path: "shippingAddress.geocode.latitude" },
|
|
168
|
+
{ path: "shippingAddress.geocode.longitude" },
|
|
169
|
+
{ path: "billingAddress.geocode.latitude" },
|
|
170
|
+
{ path: "billingAddress.geocode.longitude" }
|
|
171
|
+
];
|
|
172
|
+
var TRANSFORM_PATHS_8 = [
|
|
173
|
+
{ path: "cart.createdDate" },
|
|
174
|
+
{ path: "cart.updatedDate" },
|
|
175
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
176
|
+
{
|
|
177
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
178
|
+
},
|
|
179
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
180
|
+
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
181
|
+
{
|
|
182
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
192
|
+
},
|
|
193
|
+
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
194
|
+
{ path: "membershipOptions.invalidMemberships.membership.expirationDate" },
|
|
195
|
+
{
|
|
196
|
+
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
197
|
+
}
|
|
198
|
+
];
|
|
199
|
+
var TRANSFORM_PATHS_9 = [
|
|
200
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
201
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
202
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
203
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
204
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
205
|
+
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
206
|
+
{
|
|
207
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
217
|
+
},
|
|
218
|
+
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
219
|
+
];
|
|
95
220
|
function resolveComWixEcomCartApiV1CartServiceUrl(opts) {
|
|
96
221
|
const domainToMappings = {
|
|
97
222
|
"www.wixapis.com": [
|
|
@@ -207,45 +332,11 @@ function createCart(payload) {
|
|
|
207
332
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
208
333
|
{
|
|
209
334
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
210
|
-
paths:
|
|
211
|
-
{ path: "cartInfo.createdDate" },
|
|
212
|
-
{ path: "cartInfo.updatedDate" },
|
|
213
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
214
|
-
{
|
|
215
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
216
|
-
},
|
|
217
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
218
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
219
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
220
|
-
{
|
|
221
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
222
|
-
},
|
|
223
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
224
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
225
|
-
{
|
|
226
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
227
|
-
},
|
|
228
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
229
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
230
|
-
]
|
|
335
|
+
paths: TRANSFORM_PATHS_0
|
|
231
336
|
},
|
|
232
337
|
{
|
|
233
338
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
234
|
-
paths:
|
|
235
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
236
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
237
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
238
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
239
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
240
|
-
{
|
|
241
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
242
|
-
},
|
|
243
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
244
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
245
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
246
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
247
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
248
|
-
]
|
|
339
|
+
paths: TRANSFORM_PATHS_1
|
|
249
340
|
}
|
|
250
341
|
]);
|
|
251
342
|
const metadata = {
|
|
@@ -265,29 +356,11 @@ function createCart(payload) {
|
|
|
265
356
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
266
357
|
{
|
|
267
358
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
268
|
-
paths:
|
|
269
|
-
{ path: "cart.createdDate" },
|
|
270
|
-
{ path: "cart.updatedDate" },
|
|
271
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
272
|
-
{
|
|
273
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
274
|
-
},
|
|
275
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
276
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
277
|
-
]
|
|
359
|
+
paths: TRANSFORM_PATHS_2
|
|
278
360
|
},
|
|
279
361
|
{
|
|
280
362
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
281
|
-
paths:
|
|
282
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
283
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
284
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
285
|
-
{
|
|
286
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
287
|
-
},
|
|
288
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
289
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
290
|
-
]
|
|
363
|
+
paths: TRANSFORM_PATHS_3
|
|
291
364
|
}
|
|
292
365
|
])
|
|
293
366
|
};
|
|
@@ -300,49 +373,15 @@ function updateCart(payload) {
|
|
|
300
373
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
301
374
|
{
|
|
302
375
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
303
|
-
paths:
|
|
376
|
+
paths: TRANSFORM_PATHS_4
|
|
304
377
|
},
|
|
305
378
|
{
|
|
306
379
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
307
|
-
paths:
|
|
308
|
-
{ path: "cartInfo.createdDate" },
|
|
309
|
-
{ path: "cartInfo.updatedDate" },
|
|
310
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
311
|
-
{
|
|
312
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
313
|
-
},
|
|
314
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
315
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
316
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
317
|
-
{
|
|
318
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
319
|
-
},
|
|
320
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
321
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
322
|
-
{
|
|
323
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
324
|
-
},
|
|
325
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
326
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
327
|
-
]
|
|
380
|
+
paths: TRANSFORM_PATHS_0
|
|
328
381
|
},
|
|
329
382
|
{
|
|
330
383
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
331
|
-
paths:
|
|
332
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
333
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
334
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
335
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
336
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
337
|
-
{
|
|
338
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
339
|
-
},
|
|
340
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
341
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
342
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
343
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
344
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
345
|
-
]
|
|
384
|
+
paths: TRANSFORM_PATHS_1
|
|
346
385
|
}
|
|
347
386
|
]);
|
|
348
387
|
const metadata = {
|
|
@@ -362,29 +401,11 @@ function updateCart(payload) {
|
|
|
362
401
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
363
402
|
{
|
|
364
403
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
365
|
-
paths:
|
|
366
|
-
{ path: "cart.createdDate" },
|
|
367
|
-
{ path: "cart.updatedDate" },
|
|
368
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
369
|
-
{
|
|
370
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
371
|
-
},
|
|
372
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
373
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
374
|
-
]
|
|
404
|
+
paths: TRANSFORM_PATHS_2
|
|
375
405
|
},
|
|
376
406
|
{
|
|
377
407
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
378
|
-
paths:
|
|
379
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
380
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
381
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
382
|
-
{
|
|
383
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
384
|
-
},
|
|
385
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
386
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
387
|
-
]
|
|
408
|
+
paths: TRANSFORM_PATHS_3
|
|
388
409
|
}
|
|
389
410
|
])
|
|
390
411
|
};
|
|
@@ -411,29 +432,11 @@ function getCart(payload) {
|
|
|
411
432
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
412
433
|
{
|
|
413
434
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
414
|
-
paths:
|
|
415
|
-
{ path: "cart.createdDate" },
|
|
416
|
-
{ path: "cart.updatedDate" },
|
|
417
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
418
|
-
{
|
|
419
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
420
|
-
},
|
|
421
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
422
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
423
|
-
]
|
|
435
|
+
paths: TRANSFORM_PATHS_2
|
|
424
436
|
},
|
|
425
437
|
{
|
|
426
438
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
427
|
-
paths:
|
|
428
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
429
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
430
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
431
|
-
{
|
|
432
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
433
|
-
},
|
|
434
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
435
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
436
|
-
]
|
|
439
|
+
paths: TRANSFORM_PATHS_3
|
|
437
440
|
}
|
|
438
441
|
])
|
|
439
442
|
};
|
|
@@ -460,29 +463,11 @@ function getCartByCheckoutId(payload) {
|
|
|
460
463
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
461
464
|
{
|
|
462
465
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
463
|
-
paths:
|
|
464
|
-
{ path: "cart.createdDate" },
|
|
465
|
-
{ path: "cart.updatedDate" },
|
|
466
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
467
|
-
{
|
|
468
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
469
|
-
},
|
|
470
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
471
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
472
|
-
]
|
|
466
|
+
paths: TRANSFORM_PATHS_2
|
|
473
467
|
},
|
|
474
468
|
{
|
|
475
469
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
476
|
-
paths:
|
|
477
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
478
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
479
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
480
|
-
{
|
|
481
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
482
|
-
},
|
|
483
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
484
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
485
|
-
]
|
|
470
|
+
paths: TRANSFORM_PATHS_3
|
|
486
471
|
}
|
|
487
472
|
])
|
|
488
473
|
};
|
|
@@ -495,29 +480,11 @@ function addToCart(payload) {
|
|
|
495
480
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
496
481
|
{
|
|
497
482
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
498
|
-
paths:
|
|
499
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
500
|
-
{
|
|
501
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
502
|
-
},
|
|
503
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
504
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
505
|
-
{
|
|
506
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
507
|
-
},
|
|
508
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
509
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
510
|
-
]
|
|
483
|
+
paths: TRANSFORM_PATHS_5
|
|
511
484
|
},
|
|
512
485
|
{
|
|
513
486
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
514
|
-
paths:
|
|
515
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
516
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
517
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
518
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
519
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
520
|
-
]
|
|
487
|
+
paths: TRANSFORM_PATHS_6
|
|
521
488
|
}
|
|
522
489
|
]);
|
|
523
490
|
const metadata = {
|
|
@@ -537,29 +504,11 @@ function addToCart(payload) {
|
|
|
537
504
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
538
505
|
{
|
|
539
506
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
540
|
-
paths:
|
|
541
|
-
{ path: "cart.createdDate" },
|
|
542
|
-
{ path: "cart.updatedDate" },
|
|
543
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
544
|
-
{
|
|
545
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
546
|
-
},
|
|
547
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
548
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
549
|
-
]
|
|
507
|
+
paths: TRANSFORM_PATHS_2
|
|
550
508
|
},
|
|
551
509
|
{
|
|
552
510
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
553
|
-
paths:
|
|
554
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
555
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
556
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
557
|
-
{
|
|
558
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
559
|
-
},
|
|
560
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
561
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
562
|
-
]
|
|
511
|
+
paths: TRANSFORM_PATHS_3
|
|
563
512
|
}
|
|
564
513
|
])
|
|
565
514
|
};
|
|
@@ -586,29 +535,11 @@ function removeLineItems(payload) {
|
|
|
586
535
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
587
536
|
{
|
|
588
537
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
589
|
-
paths:
|
|
590
|
-
{ path: "cart.createdDate" },
|
|
591
|
-
{ path: "cart.updatedDate" },
|
|
592
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
593
|
-
{
|
|
594
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
595
|
-
},
|
|
596
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
597
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
598
|
-
]
|
|
538
|
+
paths: TRANSFORM_PATHS_2
|
|
599
539
|
},
|
|
600
540
|
{
|
|
601
541
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
602
|
-
paths:
|
|
603
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
604
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
605
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
606
|
-
{
|
|
607
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
608
|
-
},
|
|
609
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
610
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
611
|
-
]
|
|
542
|
+
paths: TRANSFORM_PATHS_3
|
|
612
543
|
}
|
|
613
544
|
])
|
|
614
545
|
};
|
|
@@ -621,12 +552,7 @@ function createCheckout(payload) {
|
|
|
621
552
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
622
553
|
{
|
|
623
554
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
624
|
-
paths:
|
|
625
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
626
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
627
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
628
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
629
|
-
]
|
|
555
|
+
paths: TRANSFORM_PATHS_7
|
|
630
556
|
}
|
|
631
557
|
]);
|
|
632
558
|
const metadata = {
|
|
@@ -667,29 +593,11 @@ function removeCoupon(payload) {
|
|
|
667
593
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
668
594
|
{
|
|
669
595
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
670
|
-
paths:
|
|
671
|
-
{ path: "cart.createdDate" },
|
|
672
|
-
{ path: "cart.updatedDate" },
|
|
673
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
674
|
-
{
|
|
675
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
676
|
-
},
|
|
677
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
678
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
679
|
-
]
|
|
596
|
+
paths: TRANSFORM_PATHS_2
|
|
680
597
|
},
|
|
681
598
|
{
|
|
682
599
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
683
|
-
paths:
|
|
684
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
685
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
686
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
687
|
-
{
|
|
688
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
689
|
-
},
|
|
690
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
691
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
692
|
-
]
|
|
600
|
+
paths: TRANSFORM_PATHS_3
|
|
693
601
|
}
|
|
694
602
|
])
|
|
695
603
|
};
|
|
@@ -716,29 +624,11 @@ function updateLineItemsQuantity(payload) {
|
|
|
716
624
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
717
625
|
{
|
|
718
626
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
719
|
-
paths:
|
|
720
|
-
{ path: "cart.createdDate" },
|
|
721
|
-
{ path: "cart.updatedDate" },
|
|
722
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
723
|
-
{
|
|
724
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
725
|
-
},
|
|
726
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
727
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
728
|
-
]
|
|
627
|
+
paths: TRANSFORM_PATHS_2
|
|
729
628
|
},
|
|
730
629
|
{
|
|
731
630
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
732
|
-
paths:
|
|
733
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
734
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
735
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
736
|
-
{
|
|
737
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
738
|
-
},
|
|
739
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
740
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
741
|
-
]
|
|
631
|
+
paths: TRANSFORM_PATHS_3
|
|
742
632
|
}
|
|
743
633
|
])
|
|
744
634
|
};
|
|
@@ -751,12 +641,7 @@ function estimateTotals(payload) {
|
|
|
751
641
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
752
642
|
{
|
|
753
643
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
754
|
-
paths:
|
|
755
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
756
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
757
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
758
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
759
|
-
]
|
|
644
|
+
paths: TRANSFORM_PATHS_7
|
|
760
645
|
}
|
|
761
646
|
]);
|
|
762
647
|
const metadata = {
|
|
@@ -776,61 +661,11 @@ function estimateTotals(payload) {
|
|
|
776
661
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
777
662
|
{
|
|
778
663
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
779
|
-
paths:
|
|
780
|
-
{ path: "cart.createdDate" },
|
|
781
|
-
{ path: "cart.updatedDate" },
|
|
782
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
783
|
-
{
|
|
784
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
785
|
-
},
|
|
786
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
787
|
-
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
788
|
-
{
|
|
789
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
799
|
-
},
|
|
800
|
-
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
801
|
-
{
|
|
802
|
-
path: "membershipOptions.invalidMemberships.membership.expirationDate"
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
806
|
-
}
|
|
807
|
-
]
|
|
664
|
+
paths: TRANSFORM_PATHS_8
|
|
808
665
|
},
|
|
809
666
|
{
|
|
810
667
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
811
|
-
paths:
|
|
812
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
813
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
814
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
815
|
-
{
|
|
816
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
817
|
-
},
|
|
818
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
819
|
-
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
820
|
-
{
|
|
821
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
831
|
-
},
|
|
832
|
-
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
833
|
-
]
|
|
668
|
+
paths: TRANSFORM_PATHS_9
|
|
834
669
|
}
|
|
835
670
|
])
|
|
836
671
|
};
|
|
@@ -878,29 +713,11 @@ function removeBusinessLocation(payload) {
|
|
|
878
713
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
879
714
|
{
|
|
880
715
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
881
|
-
paths:
|
|
882
|
-
{ path: "cart.createdDate" },
|
|
883
|
-
{ path: "cart.updatedDate" },
|
|
884
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
885
|
-
{
|
|
886
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
887
|
-
},
|
|
888
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
889
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
890
|
-
]
|
|
716
|
+
paths: TRANSFORM_PATHS_2
|
|
891
717
|
},
|
|
892
718
|
{
|
|
893
719
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
894
|
-
paths:
|
|
895
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
896
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
897
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
898
|
-
{
|
|
899
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
900
|
-
},
|
|
901
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
902
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
903
|
-
]
|
|
720
|
+
paths: TRANSFORM_PATHS_3
|
|
904
721
|
}
|
|
905
722
|
])
|
|
906
723
|
};
|
|
@@ -917,6 +734,47 @@ var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
|
917
734
|
var import_page_url_v2 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
918
735
|
var import_page_url_v22 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
919
736
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
737
|
+
var TRANSFORM_PATHS_02 = [
|
|
738
|
+
{ path: "cartInfo.lineItems.url" },
|
|
739
|
+
{ path: "lineItems.url" },
|
|
740
|
+
{ path: "customLineItems.url" }
|
|
741
|
+
];
|
|
742
|
+
var TRANSFORM_PATHS_12 = [
|
|
743
|
+
{ path: "cartInfo.lineItems.image" },
|
|
744
|
+
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
745
|
+
{ path: "lineItems.image" },
|
|
746
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
747
|
+
{ path: "customLineItems.media" }
|
|
748
|
+
];
|
|
749
|
+
var TRANSFORM_PATHS_22 = [{ path: "cartInfo.contactInfo.address" }];
|
|
750
|
+
var TRANSFORM_PATHS_32 = [{ path: "cart.lineItems.url" }];
|
|
751
|
+
var TRANSFORM_PATHS_42 = [
|
|
752
|
+
{ path: "cart.lineItems.image" },
|
|
753
|
+
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
754
|
+
];
|
|
755
|
+
var TRANSFORM_PATHS_52 = [{ path: "cart.contactInfo.address" }];
|
|
756
|
+
var TRANSFORM_PATHS_62 = [
|
|
757
|
+
{ path: "lineItems.url" },
|
|
758
|
+
{ path: "customLineItems.url" }
|
|
759
|
+
];
|
|
760
|
+
var TRANSFORM_PATHS_72 = [
|
|
761
|
+
{ path: "lineItems.image" },
|
|
762
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
763
|
+
{ path: "customLineItems.media" }
|
|
764
|
+
];
|
|
765
|
+
var TRANSFORM_PATHS_82 = [
|
|
766
|
+
{ path: "shippingAddress" },
|
|
767
|
+
{ path: "billingAddress" }
|
|
768
|
+
];
|
|
769
|
+
var TRANSFORM_PATHS_92 = [
|
|
770
|
+
{ path: "cart.contactInfo.address" },
|
|
771
|
+
{
|
|
772
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
776
|
+
}
|
|
777
|
+
];
|
|
920
778
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
921
779
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
922
780
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -1160,25 +1018,15 @@ async function createCart2(options) {
|
|
|
1160
1018
|
[
|
|
1161
1019
|
{
|
|
1162
1020
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1163
|
-
paths:
|
|
1164
|
-
{ path: "cartInfo.lineItems.url" },
|
|
1165
|
-
{ path: "lineItems.url" },
|
|
1166
|
-
{ path: "customLineItems.url" }
|
|
1167
|
-
]
|
|
1021
|
+
paths: TRANSFORM_PATHS_02
|
|
1168
1022
|
},
|
|
1169
1023
|
{
|
|
1170
1024
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1171
|
-
paths:
|
|
1172
|
-
{ path: "cartInfo.lineItems.image" },
|
|
1173
|
-
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
1174
|
-
{ path: "lineItems.image" },
|
|
1175
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1176
|
-
{ path: "customLineItems.media" }
|
|
1177
|
-
]
|
|
1025
|
+
paths: TRANSFORM_PATHS_12
|
|
1178
1026
|
},
|
|
1179
1027
|
{
|
|
1180
1028
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1181
|
-
paths:
|
|
1029
|
+
paths: TRANSFORM_PATHS_22
|
|
1182
1030
|
}
|
|
1183
1031
|
]
|
|
1184
1032
|
);
|
|
@@ -1191,18 +1039,15 @@ async function createCart2(options) {
|
|
|
1191
1039
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1192
1040
|
{
|
|
1193
1041
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1194
|
-
paths:
|
|
1042
|
+
paths: TRANSFORM_PATHS_32
|
|
1195
1043
|
},
|
|
1196
1044
|
{
|
|
1197
1045
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1198
|
-
paths:
|
|
1199
|
-
{ path: "cart.lineItems.image" },
|
|
1200
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1201
|
-
]
|
|
1046
|
+
paths: TRANSFORM_PATHS_42
|
|
1202
1047
|
},
|
|
1203
1048
|
{
|
|
1204
1049
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1205
|
-
paths:
|
|
1050
|
+
paths: TRANSFORM_PATHS_52
|
|
1206
1051
|
}
|
|
1207
1052
|
])
|
|
1208
1053
|
)?.cart;
|
|
@@ -1237,25 +1082,15 @@ async function updateCart2(_id, options) {
|
|
|
1237
1082
|
[
|
|
1238
1083
|
{
|
|
1239
1084
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1240
|
-
paths:
|
|
1241
|
-
{ path: "cartInfo.lineItems.url" },
|
|
1242
|
-
{ path: "lineItems.url" },
|
|
1243
|
-
{ path: "customLineItems.url" }
|
|
1244
|
-
]
|
|
1085
|
+
paths: TRANSFORM_PATHS_02
|
|
1245
1086
|
},
|
|
1246
1087
|
{
|
|
1247
1088
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1248
|
-
paths:
|
|
1249
|
-
{ path: "cartInfo.lineItems.image" },
|
|
1250
|
-
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
1251
|
-
{ path: "lineItems.image" },
|
|
1252
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1253
|
-
{ path: "customLineItems.media" }
|
|
1254
|
-
]
|
|
1089
|
+
paths: TRANSFORM_PATHS_12
|
|
1255
1090
|
},
|
|
1256
1091
|
{
|
|
1257
1092
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1258
|
-
paths:
|
|
1093
|
+
paths: TRANSFORM_PATHS_22
|
|
1259
1094
|
}
|
|
1260
1095
|
]
|
|
1261
1096
|
);
|
|
@@ -1268,18 +1103,15 @@ async function updateCart2(_id, options) {
|
|
|
1268
1103
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1269
1104
|
{
|
|
1270
1105
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1271
|
-
paths:
|
|
1106
|
+
paths: TRANSFORM_PATHS_32
|
|
1272
1107
|
},
|
|
1273
1108
|
{
|
|
1274
1109
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1275
|
-
paths:
|
|
1276
|
-
{ path: "cart.lineItems.image" },
|
|
1277
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1278
|
-
]
|
|
1110
|
+
paths: TRANSFORM_PATHS_42
|
|
1279
1111
|
},
|
|
1280
1112
|
{
|
|
1281
1113
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1282
|
-
paths:
|
|
1114
|
+
paths: TRANSFORM_PATHS_52
|
|
1283
1115
|
}
|
|
1284
1116
|
])
|
|
1285
1117
|
)?.cart;
|
|
@@ -1314,18 +1146,15 @@ async function getCart2(_id) {
|
|
|
1314
1146
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1315
1147
|
{
|
|
1316
1148
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1317
|
-
paths:
|
|
1149
|
+
paths: TRANSFORM_PATHS_32
|
|
1318
1150
|
},
|
|
1319
1151
|
{
|
|
1320
1152
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1321
|
-
paths:
|
|
1322
|
-
{ path: "cart.lineItems.image" },
|
|
1323
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1324
|
-
]
|
|
1153
|
+
paths: TRANSFORM_PATHS_42
|
|
1325
1154
|
},
|
|
1326
1155
|
{
|
|
1327
1156
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1328
|
-
paths:
|
|
1157
|
+
paths: TRANSFORM_PATHS_52
|
|
1329
1158
|
}
|
|
1330
1159
|
])
|
|
1331
1160
|
)?.cart;
|
|
@@ -1355,18 +1184,15 @@ async function getCartByCheckoutId2(_id) {
|
|
|
1355
1184
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1356
1185
|
{
|
|
1357
1186
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1358
|
-
paths:
|
|
1187
|
+
paths: TRANSFORM_PATHS_32
|
|
1359
1188
|
},
|
|
1360
1189
|
{
|
|
1361
1190
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1362
|
-
paths:
|
|
1363
|
-
{ path: "cart.lineItems.image" },
|
|
1364
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1365
|
-
]
|
|
1191
|
+
paths: TRANSFORM_PATHS_42
|
|
1366
1192
|
},
|
|
1367
1193
|
{
|
|
1368
1194
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1369
|
-
paths:
|
|
1195
|
+
paths: TRANSFORM_PATHS_52
|
|
1370
1196
|
}
|
|
1371
1197
|
])
|
|
1372
1198
|
);
|
|
@@ -1396,15 +1222,11 @@ async function addToCart2(_id, options) {
|
|
|
1396
1222
|
[
|
|
1397
1223
|
{
|
|
1398
1224
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
1399
|
-
paths:
|
|
1225
|
+
paths: TRANSFORM_PATHS_62
|
|
1400
1226
|
},
|
|
1401
1227
|
{
|
|
1402
1228
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1403
|
-
paths:
|
|
1404
|
-
{ path: "lineItems.image" },
|
|
1405
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1406
|
-
{ path: "customLineItems.media" }
|
|
1407
|
-
]
|
|
1229
|
+
paths: TRANSFORM_PATHS_72
|
|
1408
1230
|
}
|
|
1409
1231
|
]
|
|
1410
1232
|
);
|
|
@@ -1417,18 +1239,15 @@ async function addToCart2(_id, options) {
|
|
|
1417
1239
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1418
1240
|
{
|
|
1419
1241
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1420
|
-
paths:
|
|
1242
|
+
paths: TRANSFORM_PATHS_32
|
|
1421
1243
|
},
|
|
1422
1244
|
{
|
|
1423
1245
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1424
|
-
paths:
|
|
1425
|
-
{ path: "cart.lineItems.image" },
|
|
1426
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1427
|
-
]
|
|
1246
|
+
paths: TRANSFORM_PATHS_42
|
|
1428
1247
|
},
|
|
1429
1248
|
{
|
|
1430
1249
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1431
|
-
paths:
|
|
1250
|
+
paths: TRANSFORM_PATHS_52
|
|
1432
1251
|
}
|
|
1433
1252
|
])
|
|
1434
1253
|
);
|
|
@@ -1466,18 +1285,15 @@ async function removeLineItems2(_id, lineItemIds) {
|
|
|
1466
1285
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1467
1286
|
{
|
|
1468
1287
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1469
|
-
paths:
|
|
1288
|
+
paths: TRANSFORM_PATHS_32
|
|
1470
1289
|
},
|
|
1471
1290
|
{
|
|
1472
1291
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1473
|
-
paths:
|
|
1474
|
-
{ path: "cart.lineItems.image" },
|
|
1475
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1476
|
-
]
|
|
1292
|
+
paths: TRANSFORM_PATHS_42
|
|
1477
1293
|
},
|
|
1478
1294
|
{
|
|
1479
1295
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1480
|
-
paths:
|
|
1296
|
+
paths: TRANSFORM_PATHS_52
|
|
1481
1297
|
}
|
|
1482
1298
|
])
|
|
1483
1299
|
);
|
|
@@ -1509,7 +1325,7 @@ async function createCheckout2(_id, options) {
|
|
|
1509
1325
|
[
|
|
1510
1326
|
{
|
|
1511
1327
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1512
|
-
paths:
|
|
1328
|
+
paths: TRANSFORM_PATHS_82
|
|
1513
1329
|
}
|
|
1514
1330
|
]
|
|
1515
1331
|
);
|
|
@@ -1552,18 +1368,15 @@ async function removeCoupon2(_id) {
|
|
|
1552
1368
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1553
1369
|
{
|
|
1554
1370
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1555
|
-
paths:
|
|
1371
|
+
paths: TRANSFORM_PATHS_32
|
|
1556
1372
|
},
|
|
1557
1373
|
{
|
|
1558
1374
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1559
|
-
paths:
|
|
1560
|
-
{ path: "cart.lineItems.image" },
|
|
1561
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1562
|
-
]
|
|
1375
|
+
paths: TRANSFORM_PATHS_42
|
|
1563
1376
|
},
|
|
1564
1377
|
{
|
|
1565
1378
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1566
|
-
paths:
|
|
1379
|
+
paths: TRANSFORM_PATHS_52
|
|
1567
1380
|
}
|
|
1568
1381
|
])
|
|
1569
1382
|
);
|
|
@@ -1596,18 +1409,15 @@ async function updateLineItemsQuantity2(_id, lineItems) {
|
|
|
1596
1409
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1597
1410
|
{
|
|
1598
1411
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1599
|
-
paths:
|
|
1412
|
+
paths: TRANSFORM_PATHS_32
|
|
1600
1413
|
},
|
|
1601
1414
|
{
|
|
1602
1415
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1603
|
-
paths:
|
|
1604
|
-
{ path: "cart.lineItems.image" },
|
|
1605
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1606
|
-
]
|
|
1416
|
+
paths: TRANSFORM_PATHS_42
|
|
1607
1417
|
},
|
|
1608
1418
|
{
|
|
1609
1419
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1610
|
-
paths:
|
|
1420
|
+
paths: TRANSFORM_PATHS_52
|
|
1611
1421
|
}
|
|
1612
1422
|
])
|
|
1613
1423
|
);
|
|
@@ -1641,7 +1451,7 @@ async function estimateTotals2(_id, options) {
|
|
|
1641
1451
|
[
|
|
1642
1452
|
{
|
|
1643
1453
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
1644
|
-
paths:
|
|
1454
|
+
paths: TRANSFORM_PATHS_82
|
|
1645
1455
|
}
|
|
1646
1456
|
]
|
|
1647
1457
|
);
|
|
@@ -1654,26 +1464,15 @@ async function estimateTotals2(_id, options) {
|
|
|
1654
1464
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1655
1465
|
{
|
|
1656
1466
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1657
|
-
paths:
|
|
1467
|
+
paths: TRANSFORM_PATHS_32
|
|
1658
1468
|
},
|
|
1659
1469
|
{
|
|
1660
1470
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1661
|
-
paths:
|
|
1662
|
-
{ path: "cart.lineItems.image" },
|
|
1663
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1664
|
-
]
|
|
1471
|
+
paths: TRANSFORM_PATHS_42
|
|
1665
1472
|
},
|
|
1666
1473
|
{
|
|
1667
1474
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1668
|
-
paths:
|
|
1669
|
-
{ path: "cart.contactInfo.address" },
|
|
1670
|
-
{
|
|
1671
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1672
|
-
},
|
|
1673
|
-
{
|
|
1674
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1675
|
-
}
|
|
1676
|
-
]
|
|
1475
|
+
paths: TRANSFORM_PATHS_92
|
|
1677
1476
|
}
|
|
1678
1477
|
])
|
|
1679
1478
|
);
|
|
@@ -1734,18 +1533,15 @@ async function removeBusinessLocation2(_id) {
|
|
|
1734
1533
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1735
1534
|
{
|
|
1736
1535
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1737
|
-
paths:
|
|
1536
|
+
paths: TRANSFORM_PATHS_32
|
|
1738
1537
|
},
|
|
1739
1538
|
{
|
|
1740
1539
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1741
|
-
paths:
|
|
1742
|
-
{ path: "cart.lineItems.image" },
|
|
1743
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1744
|
-
]
|
|
1540
|
+
paths: TRANSFORM_PATHS_42
|
|
1745
1541
|
},
|
|
1746
1542
|
{
|
|
1747
1543
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
1748
|
-
paths:
|
|
1544
|
+
paths: TRANSFORM_PATHS_52
|
|
1749
1545
|
}
|
|
1750
1546
|
])
|
|
1751
1547
|
);
|
|
@@ -1765,6 +1561,87 @@ async function removeBusinessLocation2(_id) {
|
|
|
1765
1561
|
}
|
|
1766
1562
|
|
|
1767
1563
|
// src/ecom-v1-cart-cart.public.ts
|
|
1564
|
+
var TRANSFORM_PATHS_03 = [
|
|
1565
|
+
{ path: "undefined.createdDate" },
|
|
1566
|
+
{ path: "undefined.updatedDate" },
|
|
1567
|
+
{
|
|
1568
|
+
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1569
|
+
},
|
|
1570
|
+
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
1571
|
+
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
1572
|
+
{ path: "metadata.eventTime" }
|
|
1573
|
+
];
|
|
1574
|
+
var TRANSFORM_PATHS_13 = [{ path: "undefined.lineItems.url" }];
|
|
1575
|
+
var TRANSFORM_PATHS_23 = [
|
|
1576
|
+
{ path: "undefined.lineItems.image" },
|
|
1577
|
+
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
1578
|
+
];
|
|
1579
|
+
var TRANSFORM_PATHS_33 = [
|
|
1580
|
+
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
1581
|
+
{
|
|
1582
|
+
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1583
|
+
}
|
|
1584
|
+
];
|
|
1585
|
+
var TRANSFORM_PATHS_43 = [{ path: "undefined.contactInfo.address" }];
|
|
1586
|
+
var TRANSFORM_PATHS_53 = [
|
|
1587
|
+
{ path: "entity.createdDate" },
|
|
1588
|
+
{ path: "entity.updatedDate" },
|
|
1589
|
+
{
|
|
1590
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1591
|
+
},
|
|
1592
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1593
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1594
|
+
{ path: "metadata.eventTime" },
|
|
1595
|
+
{ path: "modifiedFields.createdDate" },
|
|
1596
|
+
{ path: "modifiedFields.updatedDate" },
|
|
1597
|
+
{
|
|
1598
|
+
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1599
|
+
},
|
|
1600
|
+
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
1601
|
+
{ path: "modifiedFields.lineItems.serviceProperties.endDate" }
|
|
1602
|
+
];
|
|
1603
|
+
var TRANSFORM_PATHS_63 = [
|
|
1604
|
+
{ path: "entity.lineItems.url" },
|
|
1605
|
+
{ path: "modifiedFields.lineItems.url" }
|
|
1606
|
+
];
|
|
1607
|
+
var TRANSFORM_PATHS_73 = [
|
|
1608
|
+
{ path: "entity.lineItems.image" },
|
|
1609
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
1610
|
+
{ path: "modifiedFields.lineItems.image" },
|
|
1611
|
+
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
1612
|
+
];
|
|
1613
|
+
var TRANSFORM_PATHS_83 = [
|
|
1614
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1615
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
1616
|
+
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
1617
|
+
{
|
|
1618
|
+
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1619
|
+
}
|
|
1620
|
+
];
|
|
1621
|
+
var TRANSFORM_PATHS_93 = [
|
|
1622
|
+
{ path: "entity.contactInfo.address" },
|
|
1623
|
+
{ path: "modifiedFields.contactInfo.address" }
|
|
1624
|
+
];
|
|
1625
|
+
var TRANSFORM_PATHS_10 = [
|
|
1626
|
+
{ path: "entity.createdDate" },
|
|
1627
|
+
{ path: "entity.updatedDate" },
|
|
1628
|
+
{
|
|
1629
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1630
|
+
},
|
|
1631
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1632
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1633
|
+
{ path: "metadata.eventTime" }
|
|
1634
|
+
];
|
|
1635
|
+
var TRANSFORM_PATHS_11 = [{ path: "entity.lineItems.url" }];
|
|
1636
|
+
var TRANSFORM_PATHS_122 = [
|
|
1637
|
+
{ path: "entity.lineItems.image" },
|
|
1638
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
1639
|
+
];
|
|
1640
|
+
var TRANSFORM_PATHS_132 = [
|
|
1641
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1642
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" }
|
|
1643
|
+
];
|
|
1644
|
+
var TRANSFORM_PATHS_14 = [{ path: "entity.contactInfo.address" }];
|
|
1768
1645
|
function createCart3(httpClient) {
|
|
1769
1646
|
return (options) => createCart2(
|
|
1770
1647
|
options,
|
|
@@ -1862,40 +1739,23 @@ var onCartDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1862
1739
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
1863
1740
|
{
|
|
1864
1741
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1865
|
-
paths:
|
|
1866
|
-
{ path: "undefined.createdDate" },
|
|
1867
|
-
{ path: "undefined.updatedDate" },
|
|
1868
|
-
{
|
|
1869
|
-
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1870
|
-
},
|
|
1871
|
-
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
1872
|
-
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
1873
|
-
{ path: "metadata.eventTime" }
|
|
1874
|
-
]
|
|
1742
|
+
paths: TRANSFORM_PATHS_03
|
|
1875
1743
|
},
|
|
1876
1744
|
{
|
|
1877
1745
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1878
|
-
paths:
|
|
1746
|
+
paths: TRANSFORM_PATHS_13
|
|
1879
1747
|
},
|
|
1880
1748
|
{
|
|
1881
1749
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1882
|
-
paths:
|
|
1883
|
-
{ path: "undefined.lineItems.image" },
|
|
1884
|
-
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
1885
|
-
]
|
|
1750
|
+
paths: TRANSFORM_PATHS_23
|
|
1886
1751
|
},
|
|
1887
1752
|
{
|
|
1888
1753
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1889
|
-
paths:
|
|
1890
|
-
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
1891
|
-
{
|
|
1892
|
-
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1893
|
-
}
|
|
1894
|
-
]
|
|
1754
|
+
paths: TRANSFORM_PATHS_33
|
|
1895
1755
|
},
|
|
1896
1756
|
{
|
|
1897
1757
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
1898
|
-
paths:
|
|
1758
|
+
paths: TRANSFORM_PATHS_43
|
|
1899
1759
|
}
|
|
1900
1760
|
])
|
|
1901
1761
|
)
|
|
@@ -1907,61 +1767,23 @@ var onCartUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1907
1767
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
1908
1768
|
{
|
|
1909
1769
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1910
|
-
paths:
|
|
1911
|
-
{ path: "entity.createdDate" },
|
|
1912
|
-
{ path: "entity.updatedDate" },
|
|
1913
|
-
{
|
|
1914
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1915
|
-
},
|
|
1916
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1917
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1918
|
-
{ path: "metadata.eventTime" },
|
|
1919
|
-
{ path: "modifiedFields.createdDate" },
|
|
1920
|
-
{ path: "modifiedFields.updatedDate" },
|
|
1921
|
-
{
|
|
1922
|
-
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1923
|
-
},
|
|
1924
|
-
{
|
|
1925
|
-
path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
|
|
1926
|
-
},
|
|
1927
|
-
{ path: "modifiedFields.lineItems.serviceProperties.endDate" }
|
|
1928
|
-
]
|
|
1770
|
+
paths: TRANSFORM_PATHS_53
|
|
1929
1771
|
},
|
|
1930
1772
|
{
|
|
1931
1773
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1932
|
-
paths:
|
|
1933
|
-
{ path: "entity.lineItems.url" },
|
|
1934
|
-
{ path: "modifiedFields.lineItems.url" }
|
|
1935
|
-
]
|
|
1774
|
+
paths: TRANSFORM_PATHS_63
|
|
1936
1775
|
},
|
|
1937
1776
|
{
|
|
1938
1777
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1939
|
-
paths:
|
|
1940
|
-
{ path: "entity.lineItems.image" },
|
|
1941
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
1942
|
-
{ path: "modifiedFields.lineItems.image" },
|
|
1943
|
-
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
1944
|
-
]
|
|
1778
|
+
paths: TRANSFORM_PATHS_73
|
|
1945
1779
|
},
|
|
1946
1780
|
{
|
|
1947
1781
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1948
|
-
paths:
|
|
1949
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1950
|
-
{
|
|
1951
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1952
|
-
},
|
|
1953
|
-
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
1954
|
-
{
|
|
1955
|
-
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1956
|
-
}
|
|
1957
|
-
]
|
|
1782
|
+
paths: TRANSFORM_PATHS_83
|
|
1958
1783
|
},
|
|
1959
1784
|
{
|
|
1960
1785
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
1961
|
-
paths:
|
|
1962
|
-
{ path: "entity.contactInfo.address" },
|
|
1963
|
-
{ path: "modifiedFields.contactInfo.address" }
|
|
1964
|
-
]
|
|
1786
|
+
paths: TRANSFORM_PATHS_93
|
|
1965
1787
|
}
|
|
1966
1788
|
])
|
|
1967
1789
|
)
|
|
@@ -1973,40 +1795,23 @@ var onCartCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1973
1795
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
1974
1796
|
{
|
|
1975
1797
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1976
|
-
paths:
|
|
1977
|
-
{ path: "entity.createdDate" },
|
|
1978
|
-
{ path: "entity.updatedDate" },
|
|
1979
|
-
{
|
|
1980
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1981
|
-
},
|
|
1982
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1983
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1984
|
-
{ path: "metadata.eventTime" }
|
|
1985
|
-
]
|
|
1798
|
+
paths: TRANSFORM_PATHS_10
|
|
1986
1799
|
},
|
|
1987
1800
|
{
|
|
1988
1801
|
transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
|
|
1989
|
-
paths:
|
|
1802
|
+
paths: TRANSFORM_PATHS_11
|
|
1990
1803
|
},
|
|
1991
1804
|
{
|
|
1992
1805
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1993
|
-
paths:
|
|
1994
|
-
{ path: "entity.lineItems.image" },
|
|
1995
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
1996
|
-
]
|
|
1806
|
+
paths: TRANSFORM_PATHS_122
|
|
1997
1807
|
},
|
|
1998
1808
|
{
|
|
1999
1809
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
2000
|
-
paths:
|
|
2001
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
2002
|
-
{
|
|
2003
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
2004
|
-
}
|
|
2005
|
-
]
|
|
1810
|
+
paths: TRANSFORM_PATHS_132
|
|
2006
1811
|
},
|
|
2007
1812
|
{
|
|
2008
1813
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
2009
|
-
paths:
|
|
1814
|
+
paths: TRANSFORM_PATHS_14
|
|
2010
1815
|
}
|
|
2011
1816
|
])
|
|
2012
1817
|
)
|