@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/es/index.mjs
CHANGED
|
@@ -24,6 +24,131 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
24
24
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
25
25
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
26
26
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
27
|
+
var TRANSFORM_PATHS_0 = [
|
|
28
|
+
{ path: "cartInfo.createdDate" },
|
|
29
|
+
{ path: "cartInfo.updatedDate" },
|
|
30
|
+
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
31
|
+
{
|
|
32
|
+
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
33
|
+
},
|
|
34
|
+
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
35
|
+
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
36
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
37
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
38
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
39
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
40
|
+
{
|
|
41
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
42
|
+
},
|
|
43
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
44
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
45
|
+
];
|
|
46
|
+
var TRANSFORM_PATHS_1 = [
|
|
47
|
+
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
48
|
+
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
49
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
50
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
51
|
+
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
52
|
+
{
|
|
53
|
+
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
54
|
+
},
|
|
55
|
+
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
56
|
+
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
57
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
58
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
59
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
60
|
+
];
|
|
61
|
+
var TRANSFORM_PATHS_2 = [
|
|
62
|
+
{ path: "cart.createdDate" },
|
|
63
|
+
{ path: "cart.updatedDate" },
|
|
64
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
65
|
+
{
|
|
66
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
67
|
+
},
|
|
68
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
69
|
+
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
70
|
+
];
|
|
71
|
+
var TRANSFORM_PATHS_3 = [
|
|
72
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
73
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
74
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
75
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
76
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
77
|
+
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
78
|
+
];
|
|
79
|
+
var TRANSFORM_PATHS_4 = [{ path: "cartFieldmask" }];
|
|
80
|
+
var TRANSFORM_PATHS_5 = [
|
|
81
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
82
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
83
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
84
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
85
|
+
{
|
|
86
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
87
|
+
},
|
|
88
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
89
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
90
|
+
];
|
|
91
|
+
var TRANSFORM_PATHS_6 = [
|
|
92
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
93
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
94
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
95
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
96
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
97
|
+
];
|
|
98
|
+
var TRANSFORM_PATHS_7 = [
|
|
99
|
+
{ path: "shippingAddress.geocode.latitude" },
|
|
100
|
+
{ path: "shippingAddress.geocode.longitude" },
|
|
101
|
+
{ path: "billingAddress.geocode.latitude" },
|
|
102
|
+
{ path: "billingAddress.geocode.longitude" }
|
|
103
|
+
];
|
|
104
|
+
var TRANSFORM_PATHS_8 = [
|
|
105
|
+
{ path: "cart.createdDate" },
|
|
106
|
+
{ path: "cart.updatedDate" },
|
|
107
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
108
|
+
{
|
|
109
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
110
|
+
},
|
|
111
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
112
|
+
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
113
|
+
{
|
|
114
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
124
|
+
},
|
|
125
|
+
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
126
|
+
{ path: "membershipOptions.invalidMemberships.membership.expirationDate" },
|
|
127
|
+
{
|
|
128
|
+
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
129
|
+
}
|
|
130
|
+
];
|
|
131
|
+
var TRANSFORM_PATHS_9 = [
|
|
132
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
133
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
134
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
135
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
136
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
137
|
+
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
138
|
+
{
|
|
139
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
149
|
+
},
|
|
150
|
+
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
151
|
+
];
|
|
27
152
|
function resolveComWixEcomCartApiV1CartServiceUrl(opts) {
|
|
28
153
|
const domainToMappings = {
|
|
29
154
|
"www.wixapis.com": [
|
|
@@ -139,45 +264,11 @@ function createCart(payload) {
|
|
|
139
264
|
const serializedData = transformPaths(payload, [
|
|
140
265
|
{
|
|
141
266
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
142
|
-
paths:
|
|
143
|
-
{ path: "cartInfo.createdDate" },
|
|
144
|
-
{ path: "cartInfo.updatedDate" },
|
|
145
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
146
|
-
{
|
|
147
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
148
|
-
},
|
|
149
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
150
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
151
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
152
|
-
{
|
|
153
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
154
|
-
},
|
|
155
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
156
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
157
|
-
{
|
|
158
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
159
|
-
},
|
|
160
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
161
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
162
|
-
]
|
|
267
|
+
paths: TRANSFORM_PATHS_0
|
|
163
268
|
},
|
|
164
269
|
{
|
|
165
270
|
transformFn: transformSDKFloatToRESTFloat,
|
|
166
|
-
paths:
|
|
167
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
168
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
169
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
170
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
171
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
172
|
-
{
|
|
173
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
174
|
-
},
|
|
175
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
176
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
177
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
178
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
179
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
180
|
-
]
|
|
271
|
+
paths: TRANSFORM_PATHS_1
|
|
181
272
|
}
|
|
182
273
|
]);
|
|
183
274
|
const metadata = {
|
|
@@ -197,29 +288,11 @@ function createCart(payload) {
|
|
|
197
288
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
198
289
|
{
|
|
199
290
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
200
|
-
paths:
|
|
201
|
-
{ path: "cart.createdDate" },
|
|
202
|
-
{ path: "cart.updatedDate" },
|
|
203
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
204
|
-
{
|
|
205
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
206
|
-
},
|
|
207
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
208
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
209
|
-
]
|
|
291
|
+
paths: TRANSFORM_PATHS_2
|
|
210
292
|
},
|
|
211
293
|
{
|
|
212
294
|
transformFn: transformRESTFloatToSDKFloat,
|
|
213
|
-
paths:
|
|
214
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
215
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
216
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
217
|
-
{
|
|
218
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
219
|
-
},
|
|
220
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
221
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
222
|
-
]
|
|
295
|
+
paths: TRANSFORM_PATHS_3
|
|
223
296
|
}
|
|
224
297
|
])
|
|
225
298
|
};
|
|
@@ -232,49 +305,15 @@ function updateCart(payload) {
|
|
|
232
305
|
const serializedData = transformPaths(payload, [
|
|
233
306
|
{
|
|
234
307
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
235
|
-
paths:
|
|
308
|
+
paths: TRANSFORM_PATHS_4
|
|
236
309
|
},
|
|
237
310
|
{
|
|
238
311
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
239
|
-
paths:
|
|
240
|
-
{ path: "cartInfo.createdDate" },
|
|
241
|
-
{ path: "cartInfo.updatedDate" },
|
|
242
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
243
|
-
{
|
|
244
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
245
|
-
},
|
|
246
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
247
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
248
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
249
|
-
{
|
|
250
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
251
|
-
},
|
|
252
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
253
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
254
|
-
{
|
|
255
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
256
|
-
},
|
|
257
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
258
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
259
|
-
]
|
|
312
|
+
paths: TRANSFORM_PATHS_0
|
|
260
313
|
},
|
|
261
314
|
{
|
|
262
315
|
transformFn: transformSDKFloatToRESTFloat,
|
|
263
|
-
paths:
|
|
264
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
265
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
266
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
267
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
268
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
269
|
-
{
|
|
270
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
271
|
-
},
|
|
272
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
273
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
274
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
275
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
276
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
277
|
-
]
|
|
316
|
+
paths: TRANSFORM_PATHS_1
|
|
278
317
|
}
|
|
279
318
|
]);
|
|
280
319
|
const metadata = {
|
|
@@ -294,29 +333,11 @@ function updateCart(payload) {
|
|
|
294
333
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
295
334
|
{
|
|
296
335
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
297
|
-
paths:
|
|
298
|
-
{ path: "cart.createdDate" },
|
|
299
|
-
{ path: "cart.updatedDate" },
|
|
300
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
301
|
-
{
|
|
302
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
303
|
-
},
|
|
304
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
305
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
306
|
-
]
|
|
336
|
+
paths: TRANSFORM_PATHS_2
|
|
307
337
|
},
|
|
308
338
|
{
|
|
309
339
|
transformFn: transformRESTFloatToSDKFloat,
|
|
310
|
-
paths:
|
|
311
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
312
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
313
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
314
|
-
{
|
|
315
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
316
|
-
},
|
|
317
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
318
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
319
|
-
]
|
|
340
|
+
paths: TRANSFORM_PATHS_3
|
|
320
341
|
}
|
|
321
342
|
])
|
|
322
343
|
};
|
|
@@ -343,29 +364,11 @@ function getCart(payload) {
|
|
|
343
364
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
344
365
|
{
|
|
345
366
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
346
|
-
paths:
|
|
347
|
-
{ path: "cart.createdDate" },
|
|
348
|
-
{ path: "cart.updatedDate" },
|
|
349
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
350
|
-
{
|
|
351
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
352
|
-
},
|
|
353
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
354
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
355
|
-
]
|
|
367
|
+
paths: TRANSFORM_PATHS_2
|
|
356
368
|
},
|
|
357
369
|
{
|
|
358
370
|
transformFn: transformRESTFloatToSDKFloat,
|
|
359
|
-
paths:
|
|
360
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
361
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
362
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
363
|
-
{
|
|
364
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
365
|
-
},
|
|
366
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
367
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
368
|
-
]
|
|
371
|
+
paths: TRANSFORM_PATHS_3
|
|
369
372
|
}
|
|
370
373
|
])
|
|
371
374
|
};
|
|
@@ -392,29 +395,11 @@ function getCartByCheckoutId(payload) {
|
|
|
392
395
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
393
396
|
{
|
|
394
397
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
395
|
-
paths:
|
|
396
|
-
{ path: "cart.createdDate" },
|
|
397
|
-
{ path: "cart.updatedDate" },
|
|
398
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
399
|
-
{
|
|
400
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
401
|
-
},
|
|
402
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
403
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
404
|
-
]
|
|
398
|
+
paths: TRANSFORM_PATHS_2
|
|
405
399
|
},
|
|
406
400
|
{
|
|
407
401
|
transformFn: transformRESTFloatToSDKFloat,
|
|
408
|
-
paths:
|
|
409
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
410
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
411
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
412
|
-
{
|
|
413
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
414
|
-
},
|
|
415
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
416
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
417
|
-
]
|
|
402
|
+
paths: TRANSFORM_PATHS_3
|
|
418
403
|
}
|
|
419
404
|
])
|
|
420
405
|
};
|
|
@@ -427,29 +412,11 @@ function addToCart(payload) {
|
|
|
427
412
|
const serializedData = transformPaths(payload, [
|
|
428
413
|
{
|
|
429
414
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
430
|
-
paths:
|
|
431
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
432
|
-
{
|
|
433
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
434
|
-
},
|
|
435
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
436
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
437
|
-
{
|
|
438
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
439
|
-
},
|
|
440
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
441
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
442
|
-
]
|
|
415
|
+
paths: TRANSFORM_PATHS_5
|
|
443
416
|
},
|
|
444
417
|
{
|
|
445
418
|
transformFn: transformSDKFloatToRESTFloat,
|
|
446
|
-
paths:
|
|
447
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
448
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
449
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
450
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
451
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
452
|
-
]
|
|
419
|
+
paths: TRANSFORM_PATHS_6
|
|
453
420
|
}
|
|
454
421
|
]);
|
|
455
422
|
const metadata = {
|
|
@@ -469,29 +436,11 @@ function addToCart(payload) {
|
|
|
469
436
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
470
437
|
{
|
|
471
438
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
472
|
-
paths:
|
|
473
|
-
{ path: "cart.createdDate" },
|
|
474
|
-
{ path: "cart.updatedDate" },
|
|
475
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
476
|
-
{
|
|
477
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
478
|
-
},
|
|
479
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
480
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
481
|
-
]
|
|
439
|
+
paths: TRANSFORM_PATHS_2
|
|
482
440
|
},
|
|
483
441
|
{
|
|
484
442
|
transformFn: transformRESTFloatToSDKFloat,
|
|
485
|
-
paths:
|
|
486
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
487
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
488
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
489
|
-
{
|
|
490
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
491
|
-
},
|
|
492
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
493
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
494
|
-
]
|
|
443
|
+
paths: TRANSFORM_PATHS_3
|
|
495
444
|
}
|
|
496
445
|
])
|
|
497
446
|
};
|
|
@@ -518,29 +467,11 @@ function removeLineItems(payload) {
|
|
|
518
467
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
519
468
|
{
|
|
520
469
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
521
|
-
paths:
|
|
522
|
-
{ path: "cart.createdDate" },
|
|
523
|
-
{ path: "cart.updatedDate" },
|
|
524
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
525
|
-
{
|
|
526
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
527
|
-
},
|
|
528
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
529
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
530
|
-
]
|
|
470
|
+
paths: TRANSFORM_PATHS_2
|
|
531
471
|
},
|
|
532
472
|
{
|
|
533
473
|
transformFn: transformRESTFloatToSDKFloat,
|
|
534
|
-
paths:
|
|
535
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
536
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
537
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
538
|
-
{
|
|
539
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
540
|
-
},
|
|
541
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
542
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
543
|
-
]
|
|
474
|
+
paths: TRANSFORM_PATHS_3
|
|
544
475
|
}
|
|
545
476
|
])
|
|
546
477
|
};
|
|
@@ -553,12 +484,7 @@ function createCheckout(payload) {
|
|
|
553
484
|
const serializedData = transformPaths(payload, [
|
|
554
485
|
{
|
|
555
486
|
transformFn: transformSDKFloatToRESTFloat,
|
|
556
|
-
paths:
|
|
557
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
558
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
559
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
560
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
561
|
-
]
|
|
487
|
+
paths: TRANSFORM_PATHS_7
|
|
562
488
|
}
|
|
563
489
|
]);
|
|
564
490
|
const metadata = {
|
|
@@ -599,29 +525,11 @@ function removeCoupon(payload) {
|
|
|
599
525
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
600
526
|
{
|
|
601
527
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
602
|
-
paths:
|
|
603
|
-
{ path: "cart.createdDate" },
|
|
604
|
-
{ path: "cart.updatedDate" },
|
|
605
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
606
|
-
{
|
|
607
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
608
|
-
},
|
|
609
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
610
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
611
|
-
]
|
|
528
|
+
paths: TRANSFORM_PATHS_2
|
|
612
529
|
},
|
|
613
530
|
{
|
|
614
531
|
transformFn: transformRESTFloatToSDKFloat,
|
|
615
|
-
paths:
|
|
616
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
617
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
618
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
619
|
-
{
|
|
620
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
621
|
-
},
|
|
622
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
623
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
624
|
-
]
|
|
532
|
+
paths: TRANSFORM_PATHS_3
|
|
625
533
|
}
|
|
626
534
|
])
|
|
627
535
|
};
|
|
@@ -648,29 +556,11 @@ function updateLineItemsQuantity(payload) {
|
|
|
648
556
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
649
557
|
{
|
|
650
558
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
651
|
-
paths:
|
|
652
|
-
{ path: "cart.createdDate" },
|
|
653
|
-
{ path: "cart.updatedDate" },
|
|
654
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
655
|
-
{
|
|
656
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
657
|
-
},
|
|
658
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
659
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
660
|
-
]
|
|
559
|
+
paths: TRANSFORM_PATHS_2
|
|
661
560
|
},
|
|
662
561
|
{
|
|
663
562
|
transformFn: transformRESTFloatToSDKFloat,
|
|
664
|
-
paths:
|
|
665
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
666
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
667
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
668
|
-
{
|
|
669
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
670
|
-
},
|
|
671
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
672
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
673
|
-
]
|
|
563
|
+
paths: TRANSFORM_PATHS_3
|
|
674
564
|
}
|
|
675
565
|
])
|
|
676
566
|
};
|
|
@@ -683,12 +573,7 @@ function estimateTotals(payload) {
|
|
|
683
573
|
const serializedData = transformPaths(payload, [
|
|
684
574
|
{
|
|
685
575
|
transformFn: transformSDKFloatToRESTFloat,
|
|
686
|
-
paths:
|
|
687
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
688
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
689
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
690
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
691
|
-
]
|
|
576
|
+
paths: TRANSFORM_PATHS_7
|
|
692
577
|
}
|
|
693
578
|
]);
|
|
694
579
|
const metadata = {
|
|
@@ -708,61 +593,11 @@ function estimateTotals(payload) {
|
|
|
708
593
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
709
594
|
{
|
|
710
595
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
711
|
-
paths:
|
|
712
|
-
{ path: "cart.createdDate" },
|
|
713
|
-
{ path: "cart.updatedDate" },
|
|
714
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
715
|
-
{
|
|
716
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
717
|
-
},
|
|
718
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
719
|
-
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
720
|
-
{
|
|
721
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
731
|
-
},
|
|
732
|
-
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
733
|
-
{
|
|
734
|
-
path: "membershipOptions.invalidMemberships.membership.expirationDate"
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
738
|
-
}
|
|
739
|
-
]
|
|
596
|
+
paths: TRANSFORM_PATHS_8
|
|
740
597
|
},
|
|
741
598
|
{
|
|
742
599
|
transformFn: transformRESTFloatToSDKFloat,
|
|
743
|
-
paths:
|
|
744
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
745
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
746
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
747
|
-
{
|
|
748
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
749
|
-
},
|
|
750
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
751
|
-
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
752
|
-
{
|
|
753
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
754
|
-
},
|
|
755
|
-
{
|
|
756
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
763
|
-
},
|
|
764
|
-
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
765
|
-
]
|
|
600
|
+
paths: TRANSFORM_PATHS_9
|
|
766
601
|
}
|
|
767
602
|
])
|
|
768
603
|
};
|
|
@@ -810,29 +645,11 @@ function removeBusinessLocation(payload) {
|
|
|
810
645
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
811
646
|
{
|
|
812
647
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
813
|
-
paths:
|
|
814
|
-
{ path: "cart.createdDate" },
|
|
815
|
-
{ path: "cart.updatedDate" },
|
|
816
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
817
|
-
{
|
|
818
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
819
|
-
},
|
|
820
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
821
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
822
|
-
]
|
|
648
|
+
paths: TRANSFORM_PATHS_2
|
|
823
649
|
},
|
|
824
650
|
{
|
|
825
651
|
transformFn: transformRESTFloatToSDKFloat,
|
|
826
|
-
paths:
|
|
827
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
828
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
829
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
830
|
-
{
|
|
831
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
832
|
-
},
|
|
833
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
834
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
835
|
-
]
|
|
652
|
+
paths: TRANSFORM_PATHS_3
|
|
836
653
|
}
|
|
837
654
|
])
|
|
838
655
|
};
|
|
@@ -849,6 +666,47 @@ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/i
|
|
|
849
666
|
import { transformSDKPageURLV2ToRESTPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
|
|
850
667
|
import { transformRESTPageURLV2ToSDKPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
|
|
851
668
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
669
|
+
var TRANSFORM_PATHS_02 = [
|
|
670
|
+
{ path: "cartInfo.lineItems.url" },
|
|
671
|
+
{ path: "lineItems.url" },
|
|
672
|
+
{ path: "customLineItems.url" }
|
|
673
|
+
];
|
|
674
|
+
var TRANSFORM_PATHS_12 = [
|
|
675
|
+
{ path: "cartInfo.lineItems.image" },
|
|
676
|
+
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
677
|
+
{ path: "lineItems.image" },
|
|
678
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
679
|
+
{ path: "customLineItems.media" }
|
|
680
|
+
];
|
|
681
|
+
var TRANSFORM_PATHS_22 = [{ path: "cartInfo.contactInfo.address" }];
|
|
682
|
+
var TRANSFORM_PATHS_32 = [{ path: "cart.lineItems.url" }];
|
|
683
|
+
var TRANSFORM_PATHS_42 = [
|
|
684
|
+
{ path: "cart.lineItems.image" },
|
|
685
|
+
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
686
|
+
];
|
|
687
|
+
var TRANSFORM_PATHS_52 = [{ path: "cart.contactInfo.address" }];
|
|
688
|
+
var TRANSFORM_PATHS_62 = [
|
|
689
|
+
{ path: "lineItems.url" },
|
|
690
|
+
{ path: "customLineItems.url" }
|
|
691
|
+
];
|
|
692
|
+
var TRANSFORM_PATHS_72 = [
|
|
693
|
+
{ path: "lineItems.image" },
|
|
694
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
695
|
+
{ path: "customLineItems.media" }
|
|
696
|
+
];
|
|
697
|
+
var TRANSFORM_PATHS_82 = [
|
|
698
|
+
{ path: "shippingAddress" },
|
|
699
|
+
{ path: "billingAddress" }
|
|
700
|
+
];
|
|
701
|
+
var TRANSFORM_PATHS_92 = [
|
|
702
|
+
{ path: "cart.contactInfo.address" },
|
|
703
|
+
{
|
|
704
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
708
|
+
}
|
|
709
|
+
];
|
|
852
710
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
853
711
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
854
712
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -1092,25 +950,15 @@ async function createCart2(options) {
|
|
|
1092
950
|
[
|
|
1093
951
|
{
|
|
1094
952
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
1095
|
-
paths:
|
|
1096
|
-
{ path: "cartInfo.lineItems.url" },
|
|
1097
|
-
{ path: "lineItems.url" },
|
|
1098
|
-
{ path: "customLineItems.url" }
|
|
1099
|
-
]
|
|
953
|
+
paths: TRANSFORM_PATHS_02
|
|
1100
954
|
},
|
|
1101
955
|
{
|
|
1102
956
|
transformFn: transformSDKImageToRESTImage,
|
|
1103
|
-
paths:
|
|
1104
|
-
{ path: "cartInfo.lineItems.image" },
|
|
1105
|
-
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
1106
|
-
{ path: "lineItems.image" },
|
|
1107
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1108
|
-
{ path: "customLineItems.media" }
|
|
1109
|
-
]
|
|
957
|
+
paths: TRANSFORM_PATHS_12
|
|
1110
958
|
},
|
|
1111
959
|
{
|
|
1112
960
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1113
|
-
paths:
|
|
961
|
+
paths: TRANSFORM_PATHS_22
|
|
1114
962
|
}
|
|
1115
963
|
]
|
|
1116
964
|
);
|
|
@@ -1123,18 +971,15 @@ async function createCart2(options) {
|
|
|
1123
971
|
transformPaths2(result.data, [
|
|
1124
972
|
{
|
|
1125
973
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1126
|
-
paths:
|
|
974
|
+
paths: TRANSFORM_PATHS_32
|
|
1127
975
|
},
|
|
1128
976
|
{
|
|
1129
977
|
transformFn: transformRESTImageToSDKImage,
|
|
1130
|
-
paths:
|
|
1131
|
-
{ path: "cart.lineItems.image" },
|
|
1132
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1133
|
-
]
|
|
978
|
+
paths: TRANSFORM_PATHS_42
|
|
1134
979
|
},
|
|
1135
980
|
{
|
|
1136
981
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1137
|
-
paths:
|
|
982
|
+
paths: TRANSFORM_PATHS_52
|
|
1138
983
|
}
|
|
1139
984
|
])
|
|
1140
985
|
)?.cart;
|
|
@@ -1169,25 +1014,15 @@ async function updateCart2(_id, options) {
|
|
|
1169
1014
|
[
|
|
1170
1015
|
{
|
|
1171
1016
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
1172
|
-
paths:
|
|
1173
|
-
{ path: "cartInfo.lineItems.url" },
|
|
1174
|
-
{ path: "lineItems.url" },
|
|
1175
|
-
{ path: "customLineItems.url" }
|
|
1176
|
-
]
|
|
1017
|
+
paths: TRANSFORM_PATHS_02
|
|
1177
1018
|
},
|
|
1178
1019
|
{
|
|
1179
1020
|
transformFn: transformSDKImageToRESTImage,
|
|
1180
|
-
paths:
|
|
1181
|
-
{ path: "cartInfo.lineItems.image" },
|
|
1182
|
-
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
1183
|
-
{ path: "lineItems.image" },
|
|
1184
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1185
|
-
{ path: "customLineItems.media" }
|
|
1186
|
-
]
|
|
1021
|
+
paths: TRANSFORM_PATHS_12
|
|
1187
1022
|
},
|
|
1188
1023
|
{
|
|
1189
1024
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1190
|
-
paths:
|
|
1025
|
+
paths: TRANSFORM_PATHS_22
|
|
1191
1026
|
}
|
|
1192
1027
|
]
|
|
1193
1028
|
);
|
|
@@ -1200,18 +1035,15 @@ async function updateCart2(_id, options) {
|
|
|
1200
1035
|
transformPaths2(result.data, [
|
|
1201
1036
|
{
|
|
1202
1037
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1203
|
-
paths:
|
|
1038
|
+
paths: TRANSFORM_PATHS_32
|
|
1204
1039
|
},
|
|
1205
1040
|
{
|
|
1206
1041
|
transformFn: transformRESTImageToSDKImage,
|
|
1207
|
-
paths:
|
|
1208
|
-
{ path: "cart.lineItems.image" },
|
|
1209
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1210
|
-
]
|
|
1042
|
+
paths: TRANSFORM_PATHS_42
|
|
1211
1043
|
},
|
|
1212
1044
|
{
|
|
1213
1045
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1214
|
-
paths:
|
|
1046
|
+
paths: TRANSFORM_PATHS_52
|
|
1215
1047
|
}
|
|
1216
1048
|
])
|
|
1217
1049
|
)?.cart;
|
|
@@ -1246,18 +1078,15 @@ async function getCart2(_id) {
|
|
|
1246
1078
|
transformPaths2(result.data, [
|
|
1247
1079
|
{
|
|
1248
1080
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1249
|
-
paths:
|
|
1081
|
+
paths: TRANSFORM_PATHS_32
|
|
1250
1082
|
},
|
|
1251
1083
|
{
|
|
1252
1084
|
transformFn: transformRESTImageToSDKImage,
|
|
1253
|
-
paths:
|
|
1254
|
-
{ path: "cart.lineItems.image" },
|
|
1255
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1256
|
-
]
|
|
1085
|
+
paths: TRANSFORM_PATHS_42
|
|
1257
1086
|
},
|
|
1258
1087
|
{
|
|
1259
1088
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1260
|
-
paths:
|
|
1089
|
+
paths: TRANSFORM_PATHS_52
|
|
1261
1090
|
}
|
|
1262
1091
|
])
|
|
1263
1092
|
)?.cart;
|
|
@@ -1287,18 +1116,15 @@ async function getCartByCheckoutId2(_id) {
|
|
|
1287
1116
|
transformPaths2(result.data, [
|
|
1288
1117
|
{
|
|
1289
1118
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1290
|
-
paths:
|
|
1119
|
+
paths: TRANSFORM_PATHS_32
|
|
1291
1120
|
},
|
|
1292
1121
|
{
|
|
1293
1122
|
transformFn: transformRESTImageToSDKImage,
|
|
1294
|
-
paths:
|
|
1295
|
-
{ path: "cart.lineItems.image" },
|
|
1296
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1297
|
-
]
|
|
1123
|
+
paths: TRANSFORM_PATHS_42
|
|
1298
1124
|
},
|
|
1299
1125
|
{
|
|
1300
1126
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1301
|
-
paths:
|
|
1127
|
+
paths: TRANSFORM_PATHS_52
|
|
1302
1128
|
}
|
|
1303
1129
|
])
|
|
1304
1130
|
);
|
|
@@ -1328,15 +1154,11 @@ async function addToCart2(_id, options) {
|
|
|
1328
1154
|
[
|
|
1329
1155
|
{
|
|
1330
1156
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
1331
|
-
paths:
|
|
1157
|
+
paths: TRANSFORM_PATHS_62
|
|
1332
1158
|
},
|
|
1333
1159
|
{
|
|
1334
1160
|
transformFn: transformSDKImageToRESTImage,
|
|
1335
|
-
paths:
|
|
1336
|
-
{ path: "lineItems.image" },
|
|
1337
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1338
|
-
{ path: "customLineItems.media" }
|
|
1339
|
-
]
|
|
1161
|
+
paths: TRANSFORM_PATHS_72
|
|
1340
1162
|
}
|
|
1341
1163
|
]
|
|
1342
1164
|
);
|
|
@@ -1349,18 +1171,15 @@ async function addToCart2(_id, options) {
|
|
|
1349
1171
|
transformPaths2(result.data, [
|
|
1350
1172
|
{
|
|
1351
1173
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1352
|
-
paths:
|
|
1174
|
+
paths: TRANSFORM_PATHS_32
|
|
1353
1175
|
},
|
|
1354
1176
|
{
|
|
1355
1177
|
transformFn: transformRESTImageToSDKImage,
|
|
1356
|
-
paths:
|
|
1357
|
-
{ path: "cart.lineItems.image" },
|
|
1358
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1359
|
-
]
|
|
1178
|
+
paths: TRANSFORM_PATHS_42
|
|
1360
1179
|
},
|
|
1361
1180
|
{
|
|
1362
1181
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1363
|
-
paths:
|
|
1182
|
+
paths: TRANSFORM_PATHS_52
|
|
1364
1183
|
}
|
|
1365
1184
|
])
|
|
1366
1185
|
);
|
|
@@ -1398,18 +1217,15 @@ async function removeLineItems2(_id, lineItemIds) {
|
|
|
1398
1217
|
transformPaths2(result.data, [
|
|
1399
1218
|
{
|
|
1400
1219
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1401
|
-
paths:
|
|
1220
|
+
paths: TRANSFORM_PATHS_32
|
|
1402
1221
|
},
|
|
1403
1222
|
{
|
|
1404
1223
|
transformFn: transformRESTImageToSDKImage,
|
|
1405
|
-
paths:
|
|
1406
|
-
{ path: "cart.lineItems.image" },
|
|
1407
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1408
|
-
]
|
|
1224
|
+
paths: TRANSFORM_PATHS_42
|
|
1409
1225
|
},
|
|
1410
1226
|
{
|
|
1411
1227
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1412
|
-
paths:
|
|
1228
|
+
paths: TRANSFORM_PATHS_52
|
|
1413
1229
|
}
|
|
1414
1230
|
])
|
|
1415
1231
|
);
|
|
@@ -1441,7 +1257,7 @@ async function createCheckout2(_id, options) {
|
|
|
1441
1257
|
[
|
|
1442
1258
|
{
|
|
1443
1259
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1444
|
-
paths:
|
|
1260
|
+
paths: TRANSFORM_PATHS_82
|
|
1445
1261
|
}
|
|
1446
1262
|
]
|
|
1447
1263
|
);
|
|
@@ -1484,18 +1300,15 @@ async function removeCoupon2(_id) {
|
|
|
1484
1300
|
transformPaths2(result.data, [
|
|
1485
1301
|
{
|
|
1486
1302
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1487
|
-
paths:
|
|
1303
|
+
paths: TRANSFORM_PATHS_32
|
|
1488
1304
|
},
|
|
1489
1305
|
{
|
|
1490
1306
|
transformFn: transformRESTImageToSDKImage,
|
|
1491
|
-
paths:
|
|
1492
|
-
{ path: "cart.lineItems.image" },
|
|
1493
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1494
|
-
]
|
|
1307
|
+
paths: TRANSFORM_PATHS_42
|
|
1495
1308
|
},
|
|
1496
1309
|
{
|
|
1497
1310
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1498
|
-
paths:
|
|
1311
|
+
paths: TRANSFORM_PATHS_52
|
|
1499
1312
|
}
|
|
1500
1313
|
])
|
|
1501
1314
|
);
|
|
@@ -1528,18 +1341,15 @@ async function updateLineItemsQuantity2(_id, lineItems) {
|
|
|
1528
1341
|
transformPaths2(result.data, [
|
|
1529
1342
|
{
|
|
1530
1343
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1531
|
-
paths:
|
|
1344
|
+
paths: TRANSFORM_PATHS_32
|
|
1532
1345
|
},
|
|
1533
1346
|
{
|
|
1534
1347
|
transformFn: transformRESTImageToSDKImage,
|
|
1535
|
-
paths:
|
|
1536
|
-
{ path: "cart.lineItems.image" },
|
|
1537
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1538
|
-
]
|
|
1348
|
+
paths: TRANSFORM_PATHS_42
|
|
1539
1349
|
},
|
|
1540
1350
|
{
|
|
1541
1351
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1542
|
-
paths:
|
|
1352
|
+
paths: TRANSFORM_PATHS_52
|
|
1543
1353
|
}
|
|
1544
1354
|
])
|
|
1545
1355
|
);
|
|
@@ -1573,7 +1383,7 @@ async function estimateTotals2(_id, options) {
|
|
|
1573
1383
|
[
|
|
1574
1384
|
{
|
|
1575
1385
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1576
|
-
paths:
|
|
1386
|
+
paths: TRANSFORM_PATHS_82
|
|
1577
1387
|
}
|
|
1578
1388
|
]
|
|
1579
1389
|
);
|
|
@@ -1586,26 +1396,15 @@ async function estimateTotals2(_id, options) {
|
|
|
1586
1396
|
transformPaths2(result.data, [
|
|
1587
1397
|
{
|
|
1588
1398
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1589
|
-
paths:
|
|
1399
|
+
paths: TRANSFORM_PATHS_32
|
|
1590
1400
|
},
|
|
1591
1401
|
{
|
|
1592
1402
|
transformFn: transformRESTImageToSDKImage,
|
|
1593
|
-
paths:
|
|
1594
|
-
{ path: "cart.lineItems.image" },
|
|
1595
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1596
|
-
]
|
|
1403
|
+
paths: TRANSFORM_PATHS_42
|
|
1597
1404
|
},
|
|
1598
1405
|
{
|
|
1599
1406
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1600
|
-
paths:
|
|
1601
|
-
{ path: "cart.contactInfo.address" },
|
|
1602
|
-
{
|
|
1603
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1604
|
-
},
|
|
1605
|
-
{
|
|
1606
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1607
|
-
}
|
|
1608
|
-
]
|
|
1407
|
+
paths: TRANSFORM_PATHS_92
|
|
1609
1408
|
}
|
|
1610
1409
|
])
|
|
1611
1410
|
);
|
|
@@ -1666,18 +1465,15 @@ async function removeBusinessLocation2(_id) {
|
|
|
1666
1465
|
transformPaths2(result.data, [
|
|
1667
1466
|
{
|
|
1668
1467
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1669
|
-
paths:
|
|
1468
|
+
paths: TRANSFORM_PATHS_32
|
|
1670
1469
|
},
|
|
1671
1470
|
{
|
|
1672
1471
|
transformFn: transformRESTImageToSDKImage,
|
|
1673
|
-
paths:
|
|
1674
|
-
{ path: "cart.lineItems.image" },
|
|
1675
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1676
|
-
]
|
|
1472
|
+
paths: TRANSFORM_PATHS_42
|
|
1677
1473
|
},
|
|
1678
1474
|
{
|
|
1679
1475
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1680
|
-
paths:
|
|
1476
|
+
paths: TRANSFORM_PATHS_52
|
|
1681
1477
|
}
|
|
1682
1478
|
])
|
|
1683
1479
|
);
|
|
@@ -1697,6 +1493,87 @@ async function removeBusinessLocation2(_id) {
|
|
|
1697
1493
|
}
|
|
1698
1494
|
|
|
1699
1495
|
// src/ecom-v1-cart-cart.public.ts
|
|
1496
|
+
var TRANSFORM_PATHS_03 = [
|
|
1497
|
+
{ path: "undefined.createdDate" },
|
|
1498
|
+
{ path: "undefined.updatedDate" },
|
|
1499
|
+
{
|
|
1500
|
+
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1501
|
+
},
|
|
1502
|
+
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
1503
|
+
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
1504
|
+
{ path: "metadata.eventTime" }
|
|
1505
|
+
];
|
|
1506
|
+
var TRANSFORM_PATHS_13 = [{ path: "undefined.lineItems.url" }];
|
|
1507
|
+
var TRANSFORM_PATHS_23 = [
|
|
1508
|
+
{ path: "undefined.lineItems.image" },
|
|
1509
|
+
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
1510
|
+
];
|
|
1511
|
+
var TRANSFORM_PATHS_33 = [
|
|
1512
|
+
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
1513
|
+
{
|
|
1514
|
+
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1515
|
+
}
|
|
1516
|
+
];
|
|
1517
|
+
var TRANSFORM_PATHS_43 = [{ path: "undefined.contactInfo.address" }];
|
|
1518
|
+
var TRANSFORM_PATHS_53 = [
|
|
1519
|
+
{ path: "entity.createdDate" },
|
|
1520
|
+
{ path: "entity.updatedDate" },
|
|
1521
|
+
{
|
|
1522
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1523
|
+
},
|
|
1524
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1525
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1526
|
+
{ path: "metadata.eventTime" },
|
|
1527
|
+
{ path: "modifiedFields.createdDate" },
|
|
1528
|
+
{ path: "modifiedFields.updatedDate" },
|
|
1529
|
+
{
|
|
1530
|
+
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1531
|
+
},
|
|
1532
|
+
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
1533
|
+
{ path: "modifiedFields.lineItems.serviceProperties.endDate" }
|
|
1534
|
+
];
|
|
1535
|
+
var TRANSFORM_PATHS_63 = [
|
|
1536
|
+
{ path: "entity.lineItems.url" },
|
|
1537
|
+
{ path: "modifiedFields.lineItems.url" }
|
|
1538
|
+
];
|
|
1539
|
+
var TRANSFORM_PATHS_73 = [
|
|
1540
|
+
{ path: "entity.lineItems.image" },
|
|
1541
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
1542
|
+
{ path: "modifiedFields.lineItems.image" },
|
|
1543
|
+
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
1544
|
+
];
|
|
1545
|
+
var TRANSFORM_PATHS_83 = [
|
|
1546
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1547
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
1548
|
+
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
1549
|
+
{
|
|
1550
|
+
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1551
|
+
}
|
|
1552
|
+
];
|
|
1553
|
+
var TRANSFORM_PATHS_93 = [
|
|
1554
|
+
{ path: "entity.contactInfo.address" },
|
|
1555
|
+
{ path: "modifiedFields.contactInfo.address" }
|
|
1556
|
+
];
|
|
1557
|
+
var TRANSFORM_PATHS_10 = [
|
|
1558
|
+
{ path: "entity.createdDate" },
|
|
1559
|
+
{ path: "entity.updatedDate" },
|
|
1560
|
+
{
|
|
1561
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1562
|
+
},
|
|
1563
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1564
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1565
|
+
{ path: "metadata.eventTime" }
|
|
1566
|
+
];
|
|
1567
|
+
var TRANSFORM_PATHS_11 = [{ path: "entity.lineItems.url" }];
|
|
1568
|
+
var TRANSFORM_PATHS_122 = [
|
|
1569
|
+
{ path: "entity.lineItems.image" },
|
|
1570
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
1571
|
+
];
|
|
1572
|
+
var TRANSFORM_PATHS_132 = [
|
|
1573
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1574
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" }
|
|
1575
|
+
];
|
|
1576
|
+
var TRANSFORM_PATHS_14 = [{ path: "entity.contactInfo.address" }];
|
|
1700
1577
|
function createCart3(httpClient) {
|
|
1701
1578
|
return (options) => createCart2(
|
|
1702
1579
|
options,
|
|
@@ -1794,40 +1671,23 @@ var onCartDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
1794
1671
|
transformPaths3(event, [
|
|
1795
1672
|
{
|
|
1796
1673
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1797
|
-
paths:
|
|
1798
|
-
{ path: "undefined.createdDate" },
|
|
1799
|
-
{ path: "undefined.updatedDate" },
|
|
1800
|
-
{
|
|
1801
|
-
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1802
|
-
},
|
|
1803
|
-
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
1804
|
-
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
1805
|
-
{ path: "metadata.eventTime" }
|
|
1806
|
-
]
|
|
1674
|
+
paths: TRANSFORM_PATHS_03
|
|
1807
1675
|
},
|
|
1808
1676
|
{
|
|
1809
1677
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
1810
|
-
paths:
|
|
1678
|
+
paths: TRANSFORM_PATHS_13
|
|
1811
1679
|
},
|
|
1812
1680
|
{
|
|
1813
1681
|
transformFn: transformRESTImageToSDKImage2,
|
|
1814
|
-
paths:
|
|
1815
|
-
{ path: "undefined.lineItems.image" },
|
|
1816
|
-
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
1817
|
-
]
|
|
1682
|
+
paths: TRANSFORM_PATHS_23
|
|
1818
1683
|
},
|
|
1819
1684
|
{
|
|
1820
1685
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1821
|
-
paths:
|
|
1822
|
-
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
1823
|
-
{
|
|
1824
|
-
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1825
|
-
}
|
|
1826
|
-
]
|
|
1686
|
+
paths: TRANSFORM_PATHS_33
|
|
1827
1687
|
},
|
|
1828
1688
|
{
|
|
1829
1689
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
1830
|
-
paths:
|
|
1690
|
+
paths: TRANSFORM_PATHS_43
|
|
1831
1691
|
}
|
|
1832
1692
|
])
|
|
1833
1693
|
)
|
|
@@ -1839,61 +1699,23 @@ var onCartUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
1839
1699
|
transformPaths3(event, [
|
|
1840
1700
|
{
|
|
1841
1701
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1842
|
-
paths:
|
|
1843
|
-
{ path: "entity.createdDate" },
|
|
1844
|
-
{ path: "entity.updatedDate" },
|
|
1845
|
-
{
|
|
1846
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1847
|
-
},
|
|
1848
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1849
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1850
|
-
{ path: "metadata.eventTime" },
|
|
1851
|
-
{ path: "modifiedFields.createdDate" },
|
|
1852
|
-
{ path: "modifiedFields.updatedDate" },
|
|
1853
|
-
{
|
|
1854
|
-
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1855
|
-
},
|
|
1856
|
-
{
|
|
1857
|
-
path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
|
|
1858
|
-
},
|
|
1859
|
-
{ path: "modifiedFields.lineItems.serviceProperties.endDate" }
|
|
1860
|
-
]
|
|
1702
|
+
paths: TRANSFORM_PATHS_53
|
|
1861
1703
|
},
|
|
1862
1704
|
{
|
|
1863
1705
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
1864
|
-
paths:
|
|
1865
|
-
{ path: "entity.lineItems.url" },
|
|
1866
|
-
{ path: "modifiedFields.lineItems.url" }
|
|
1867
|
-
]
|
|
1706
|
+
paths: TRANSFORM_PATHS_63
|
|
1868
1707
|
},
|
|
1869
1708
|
{
|
|
1870
1709
|
transformFn: transformRESTImageToSDKImage2,
|
|
1871
|
-
paths:
|
|
1872
|
-
{ path: "entity.lineItems.image" },
|
|
1873
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
1874
|
-
{ path: "modifiedFields.lineItems.image" },
|
|
1875
|
-
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
1876
|
-
]
|
|
1710
|
+
paths: TRANSFORM_PATHS_73
|
|
1877
1711
|
},
|
|
1878
1712
|
{
|
|
1879
1713
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1880
|
-
paths:
|
|
1881
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1882
|
-
{
|
|
1883
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1884
|
-
},
|
|
1885
|
-
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
1886
|
-
{
|
|
1887
|
-
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1888
|
-
}
|
|
1889
|
-
]
|
|
1714
|
+
paths: TRANSFORM_PATHS_83
|
|
1890
1715
|
},
|
|
1891
1716
|
{
|
|
1892
1717
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
1893
|
-
paths:
|
|
1894
|
-
{ path: "entity.contactInfo.address" },
|
|
1895
|
-
{ path: "modifiedFields.contactInfo.address" }
|
|
1896
|
-
]
|
|
1718
|
+
paths: TRANSFORM_PATHS_93
|
|
1897
1719
|
}
|
|
1898
1720
|
])
|
|
1899
1721
|
)
|
|
@@ -1905,40 +1727,23 @@ var onCartCreated = /* @__PURE__ */ EventDefinition(
|
|
|
1905
1727
|
transformPaths3(event, [
|
|
1906
1728
|
{
|
|
1907
1729
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1908
|
-
paths:
|
|
1909
|
-
{ path: "entity.createdDate" },
|
|
1910
|
-
{ path: "entity.updatedDate" },
|
|
1911
|
-
{
|
|
1912
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1913
|
-
},
|
|
1914
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1915
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1916
|
-
{ path: "metadata.eventTime" }
|
|
1917
|
-
]
|
|
1730
|
+
paths: TRANSFORM_PATHS_10
|
|
1918
1731
|
},
|
|
1919
1732
|
{
|
|
1920
1733
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
1921
|
-
paths:
|
|
1734
|
+
paths: TRANSFORM_PATHS_11
|
|
1922
1735
|
},
|
|
1923
1736
|
{
|
|
1924
1737
|
transformFn: transformRESTImageToSDKImage2,
|
|
1925
|
-
paths:
|
|
1926
|
-
{ path: "entity.lineItems.image" },
|
|
1927
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
1928
|
-
]
|
|
1738
|
+
paths: TRANSFORM_PATHS_122
|
|
1929
1739
|
},
|
|
1930
1740
|
{
|
|
1931
1741
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1932
|
-
paths:
|
|
1933
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1934
|
-
{
|
|
1935
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1936
|
-
}
|
|
1937
|
-
]
|
|
1742
|
+
paths: TRANSFORM_PATHS_132
|
|
1938
1743
|
},
|
|
1939
1744
|
{
|
|
1940
1745
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
1941
|
-
paths:
|
|
1746
|
+
paths: TRANSFORM_PATHS_14
|
|
1942
1747
|
}
|
|
1943
1748
|
])
|
|
1944
1749
|
)
|