@wix/auto_sdk_ecom_current-cart 1.0.190 → 1.0.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +311 -399
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +215 -312
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +146 -241
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +311 -399
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +215 -312
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +146 -241
- package/build/es/meta.mjs.map +1 -1
- 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: "cart.createdDate" },
|
|
29
|
+
{ path: "cart.updatedDate" },
|
|
30
|
+
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
31
|
+
{
|
|
32
|
+
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
33
|
+
},
|
|
34
|
+
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
35
|
+
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
36
|
+
];
|
|
37
|
+
var TRANSFORM_PATHS_1 = [
|
|
38
|
+
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
39
|
+
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
40
|
+
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
41
|
+
{ path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
42
|
+
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
43
|
+
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
44
|
+
];
|
|
45
|
+
var TRANSFORM_PATHS_2 = [{ path: "cartFieldmask" }];
|
|
46
|
+
var TRANSFORM_PATHS_3 = [
|
|
47
|
+
{ path: "cartInfo.createdDate" },
|
|
48
|
+
{ path: "cartInfo.updatedDate" },
|
|
49
|
+
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
50
|
+
{
|
|
51
|
+
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
52
|
+
},
|
|
53
|
+
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
54
|
+
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
55
|
+
{ path: "lineItems.image.urlExpirationDate" },
|
|
56
|
+
{ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate" },
|
|
57
|
+
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
58
|
+
{ path: "lineItems.serviceProperties.endDate" },
|
|
59
|
+
{
|
|
60
|
+
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
61
|
+
},
|
|
62
|
+
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
63
|
+
{ path: "customLineItems.serviceProperties.endDate" }
|
|
64
|
+
];
|
|
65
|
+
var TRANSFORM_PATHS_4 = [
|
|
66
|
+
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
67
|
+
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
68
|
+
{ path: "lineItems.image.focalPoint.x" },
|
|
69
|
+
{ path: "lineItems.image.focalPoint.y" },
|
|
70
|
+
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
71
|
+
{
|
|
72
|
+
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
73
|
+
},
|
|
74
|
+
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
75
|
+
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
76
|
+
{ path: "lineItems.physicalProperties.weight" },
|
|
77
|
+
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
78
|
+
{ path: "customLineItems.physicalProperties.weight" }
|
|
79
|
+
];
|
|
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 resolveComWixEcomCartApiV1CurrentCartServiceUrl(opts) {
|
|
28
153
|
const domainToMappings = {
|
|
29
154
|
"www.wixapis.com": [
|
|
@@ -153,29 +278,11 @@ function currentCartGetCurrentCart(payload) {
|
|
|
153
278
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
154
279
|
{
|
|
155
280
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
156
|
-
paths:
|
|
157
|
-
{ path: "cart.createdDate" },
|
|
158
|
-
{ path: "cart.updatedDate" },
|
|
159
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
160
|
-
{
|
|
161
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
162
|
-
},
|
|
163
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
164
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
165
|
-
]
|
|
281
|
+
paths: TRANSFORM_PATHS_0
|
|
166
282
|
},
|
|
167
283
|
{
|
|
168
284
|
transformFn: transformRESTFloatToSDKFloat,
|
|
169
|
-
paths:
|
|
170
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
171
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
172
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
173
|
-
{
|
|
174
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
175
|
-
},
|
|
176
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
177
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
178
|
-
]
|
|
285
|
+
paths: TRANSFORM_PATHS_1
|
|
179
286
|
}
|
|
180
287
|
])
|
|
181
288
|
};
|
|
@@ -188,49 +295,15 @@ function updateCurrentCart(payload) {
|
|
|
188
295
|
const serializedData = transformPaths(payload, [
|
|
189
296
|
{
|
|
190
297
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
191
|
-
paths:
|
|
298
|
+
paths: TRANSFORM_PATHS_2
|
|
192
299
|
},
|
|
193
300
|
{
|
|
194
301
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
195
|
-
paths:
|
|
196
|
-
{ path: "cartInfo.createdDate" },
|
|
197
|
-
{ path: "cartInfo.updatedDate" },
|
|
198
|
-
{ path: "cartInfo.lineItems.image.urlExpirationDate" },
|
|
199
|
-
{
|
|
200
|
-
path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
201
|
-
},
|
|
202
|
-
{ path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
|
|
203
|
-
{ path: "cartInfo.lineItems.serviceProperties.endDate" },
|
|
204
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
205
|
-
{
|
|
206
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
207
|
-
},
|
|
208
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
209
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
210
|
-
{
|
|
211
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
212
|
-
},
|
|
213
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
214
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
215
|
-
]
|
|
302
|
+
paths: TRANSFORM_PATHS_3
|
|
216
303
|
},
|
|
217
304
|
{
|
|
218
305
|
transformFn: transformSDKFloatToRESTFloat,
|
|
219
|
-
paths:
|
|
220
|
-
{ path: "cartInfo.lineItems.image.focalPoint.x" },
|
|
221
|
-
{ path: "cartInfo.lineItems.image.focalPoint.y" },
|
|
222
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
223
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
224
|
-
{ path: "cartInfo.lineItems.physicalProperties.weight" },
|
|
225
|
-
{
|
|
226
|
-
path: "cartInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
227
|
-
},
|
|
228
|
-
{ path: "cartInfo.contactInfo.address.geocode.latitude" },
|
|
229
|
-
{ path: "cartInfo.contactInfo.address.geocode.longitude" },
|
|
230
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
231
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
232
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
233
|
-
]
|
|
306
|
+
paths: TRANSFORM_PATHS_4
|
|
234
307
|
}
|
|
235
308
|
]);
|
|
236
309
|
const metadata = {
|
|
@@ -250,29 +323,11 @@ function updateCurrentCart(payload) {
|
|
|
250
323
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
251
324
|
{
|
|
252
325
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
253
|
-
paths:
|
|
254
|
-
{ path: "cart.createdDate" },
|
|
255
|
-
{ path: "cart.updatedDate" },
|
|
256
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
257
|
-
{
|
|
258
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
259
|
-
},
|
|
260
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
261
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
262
|
-
]
|
|
326
|
+
paths: TRANSFORM_PATHS_0
|
|
263
327
|
},
|
|
264
328
|
{
|
|
265
329
|
transformFn: transformRESTFloatToSDKFloat,
|
|
266
|
-
paths:
|
|
267
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
268
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
269
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
270
|
-
{
|
|
271
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
272
|
-
},
|
|
273
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
274
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
275
|
-
]
|
|
330
|
+
paths: TRANSFORM_PATHS_1
|
|
276
331
|
}
|
|
277
332
|
])
|
|
278
333
|
};
|
|
@@ -285,29 +340,11 @@ function addToCurrentCart(payload) {
|
|
|
285
340
|
const serializedData = transformPaths(payload, [
|
|
286
341
|
{
|
|
287
342
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
288
|
-
paths:
|
|
289
|
-
{ path: "lineItems.image.urlExpirationDate" },
|
|
290
|
-
{
|
|
291
|
-
path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
292
|
-
},
|
|
293
|
-
{ path: "lineItems.serviceProperties.scheduledDate" },
|
|
294
|
-
{ path: "lineItems.serviceProperties.endDate" },
|
|
295
|
-
{
|
|
296
|
-
path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
297
|
-
},
|
|
298
|
-
{ path: "customLineItems.serviceProperties.scheduledDate" },
|
|
299
|
-
{ path: "customLineItems.serviceProperties.endDate" }
|
|
300
|
-
]
|
|
343
|
+
paths: TRANSFORM_PATHS_5
|
|
301
344
|
},
|
|
302
345
|
{
|
|
303
346
|
transformFn: transformSDKFloatToRESTFloat,
|
|
304
|
-
paths:
|
|
305
|
-
{ path: "lineItems.image.focalPoint.x" },
|
|
306
|
-
{ path: "lineItems.image.focalPoint.y" },
|
|
307
|
-
{ path: "lineItems.physicalProperties.weight" },
|
|
308
|
-
{ path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
309
|
-
{ path: "customLineItems.physicalProperties.weight" }
|
|
310
|
-
]
|
|
347
|
+
paths: TRANSFORM_PATHS_6
|
|
311
348
|
}
|
|
312
349
|
]);
|
|
313
350
|
const metadata = {
|
|
@@ -327,29 +364,11 @@ function addToCurrentCart(payload) {
|
|
|
327
364
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
328
365
|
{
|
|
329
366
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
330
|
-
paths:
|
|
331
|
-
{ path: "cart.createdDate" },
|
|
332
|
-
{ path: "cart.updatedDate" },
|
|
333
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
334
|
-
{
|
|
335
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
336
|
-
},
|
|
337
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
338
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
339
|
-
]
|
|
367
|
+
paths: TRANSFORM_PATHS_0
|
|
340
368
|
},
|
|
341
369
|
{
|
|
342
370
|
transformFn: transformRESTFloatToSDKFloat,
|
|
343
|
-
paths:
|
|
344
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
345
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
346
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
347
|
-
{
|
|
348
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
349
|
-
},
|
|
350
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
351
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
352
|
-
]
|
|
371
|
+
paths: TRANSFORM_PATHS_1
|
|
353
372
|
}
|
|
354
373
|
])
|
|
355
374
|
};
|
|
@@ -376,29 +395,11 @@ function removeLineItemsFromCurrentCart(payload) {
|
|
|
376
395
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
377
396
|
{
|
|
378
397
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
379
|
-
paths:
|
|
380
|
-
{ path: "cart.createdDate" },
|
|
381
|
-
{ path: "cart.updatedDate" },
|
|
382
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
383
|
-
{
|
|
384
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
385
|
-
},
|
|
386
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
387
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
388
|
-
]
|
|
398
|
+
paths: TRANSFORM_PATHS_0
|
|
389
399
|
},
|
|
390
400
|
{
|
|
391
401
|
transformFn: transformRESTFloatToSDKFloat,
|
|
392
|
-
paths:
|
|
393
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
394
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
395
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
396
|
-
{
|
|
397
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
398
|
-
},
|
|
399
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
400
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
401
|
-
]
|
|
402
|
+
paths: TRANSFORM_PATHS_1
|
|
402
403
|
}
|
|
403
404
|
])
|
|
404
405
|
};
|
|
@@ -411,12 +412,7 @@ function createCheckoutFromCurrentCart(payload) {
|
|
|
411
412
|
const serializedData = transformPaths(payload, [
|
|
412
413
|
{
|
|
413
414
|
transformFn: transformSDKFloatToRESTFloat,
|
|
414
|
-
paths:
|
|
415
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
416
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
417
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
418
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
419
|
-
]
|
|
415
|
+
paths: TRANSFORM_PATHS_7
|
|
420
416
|
}
|
|
421
417
|
]);
|
|
422
418
|
const metadata = {
|
|
@@ -457,29 +453,11 @@ function removeCouponFromCurrentCart(payload) {
|
|
|
457
453
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
458
454
|
{
|
|
459
455
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
460
|
-
paths:
|
|
461
|
-
{ path: "cart.createdDate" },
|
|
462
|
-
{ path: "cart.updatedDate" },
|
|
463
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
464
|
-
{
|
|
465
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
466
|
-
},
|
|
467
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
468
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
469
|
-
]
|
|
456
|
+
paths: TRANSFORM_PATHS_0
|
|
470
457
|
},
|
|
471
458
|
{
|
|
472
459
|
transformFn: transformRESTFloatToSDKFloat,
|
|
473
|
-
paths:
|
|
474
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
475
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
476
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
477
|
-
{
|
|
478
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
479
|
-
},
|
|
480
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
481
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
482
|
-
]
|
|
460
|
+
paths: TRANSFORM_PATHS_1
|
|
483
461
|
}
|
|
484
462
|
])
|
|
485
463
|
};
|
|
@@ -506,29 +484,11 @@ function updateCurrentCartLineItemQuantity(payload) {
|
|
|
506
484
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
507
485
|
{
|
|
508
486
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
509
|
-
paths:
|
|
510
|
-
{ path: "cart.createdDate" },
|
|
511
|
-
{ path: "cart.updatedDate" },
|
|
512
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
513
|
-
{
|
|
514
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
515
|
-
},
|
|
516
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
517
|
-
{ path: "cart.lineItems.serviceProperties.endDate" }
|
|
518
|
-
]
|
|
487
|
+
paths: TRANSFORM_PATHS_0
|
|
519
488
|
},
|
|
520
489
|
{
|
|
521
490
|
transformFn: transformRESTFloatToSDKFloat,
|
|
522
|
-
paths:
|
|
523
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
524
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
525
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
526
|
-
{
|
|
527
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
528
|
-
},
|
|
529
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
530
|
-
{ path: "cart.contactInfo.address.geocode.longitude" }
|
|
531
|
-
]
|
|
491
|
+
paths: TRANSFORM_PATHS_1
|
|
532
492
|
}
|
|
533
493
|
])
|
|
534
494
|
};
|
|
@@ -541,12 +501,7 @@ function estimateCurrentCartTotals(payload) {
|
|
|
541
501
|
const serializedData = transformPaths(payload, [
|
|
542
502
|
{
|
|
543
503
|
transformFn: transformSDKFloatToRESTFloat,
|
|
544
|
-
paths:
|
|
545
|
-
{ path: "shippingAddress.geocode.latitude" },
|
|
546
|
-
{ path: "shippingAddress.geocode.longitude" },
|
|
547
|
-
{ path: "billingAddress.geocode.latitude" },
|
|
548
|
-
{ path: "billingAddress.geocode.longitude" }
|
|
549
|
-
]
|
|
504
|
+
paths: TRANSFORM_PATHS_7
|
|
550
505
|
}
|
|
551
506
|
]);
|
|
552
507
|
const metadata = {
|
|
@@ -566,61 +521,11 @@ function estimateCurrentCartTotals(payload) {
|
|
|
566
521
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
567
522
|
{
|
|
568
523
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
569
|
-
paths:
|
|
570
|
-
{ path: "cart.createdDate" },
|
|
571
|
-
{ path: "cart.updatedDate" },
|
|
572
|
-
{ path: "cart.lineItems.image.urlExpirationDate" },
|
|
573
|
-
{
|
|
574
|
-
path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
575
|
-
},
|
|
576
|
-
{ path: "cart.lineItems.serviceProperties.scheduledDate" },
|
|
577
|
-
{ path: "cart.lineItems.serviceProperties.endDate" },
|
|
578
|
-
{
|
|
579
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
|
|
589
|
-
},
|
|
590
|
-
{ path: "membershipOptions.eligibleMemberships.expirationDate" },
|
|
591
|
-
{
|
|
592
|
-
path: "membershipOptions.invalidMemberships.membership.expirationDate"
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
path: "membershipOptions.validatedExistingMemberships.memberships.membership.expirationDate"
|
|
596
|
-
}
|
|
597
|
-
]
|
|
524
|
+
paths: TRANSFORM_PATHS_8
|
|
598
525
|
},
|
|
599
526
|
{
|
|
600
527
|
transformFn: transformRESTFloatToSDKFloat,
|
|
601
|
-
paths:
|
|
602
|
-
{ path: "cart.lineItems.image.focalPoint.x" },
|
|
603
|
-
{ path: "cart.lineItems.image.focalPoint.y" },
|
|
604
|
-
{ path: "cart.lineItems.physicalProperties.weight" },
|
|
605
|
-
{
|
|
606
|
-
path: "cart.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
607
|
-
},
|
|
608
|
-
{ path: "cart.contactInfo.address.geocode.latitude" },
|
|
609
|
-
{ path: "cart.contactInfo.address.geocode.longitude" },
|
|
610
|
-
{
|
|
611
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
|
|
621
|
-
},
|
|
622
|
-
{ path: "appliedDiscounts.merchantDiscount.percentage" }
|
|
623
|
-
]
|
|
528
|
+
paths: TRANSFORM_PATHS_9
|
|
624
529
|
}
|
|
625
530
|
])
|
|
626
531
|
};
|
|
@@ -658,6 +563,47 @@ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/i
|
|
|
658
563
|
import { transformSDKPageURLV2ToRESTPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
|
|
659
564
|
import { transformRESTPageURLV2ToSDKPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
|
|
660
565
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
566
|
+
var TRANSFORM_PATHS_02 = [{ path: "cart.lineItems.url" }];
|
|
567
|
+
var TRANSFORM_PATHS_12 = [
|
|
568
|
+
{ path: "cart.lineItems.image" },
|
|
569
|
+
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
570
|
+
];
|
|
571
|
+
var TRANSFORM_PATHS_22 = [{ path: "cart.contactInfo.address" }];
|
|
572
|
+
var TRANSFORM_PATHS_32 = [
|
|
573
|
+
{ path: "cartInfo.lineItems.url" },
|
|
574
|
+
{ path: "lineItems.url" },
|
|
575
|
+
{ path: "customLineItems.url" }
|
|
576
|
+
];
|
|
577
|
+
var TRANSFORM_PATHS_42 = [
|
|
578
|
+
{ path: "cartInfo.lineItems.image" },
|
|
579
|
+
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
580
|
+
{ path: "lineItems.image" },
|
|
581
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
582
|
+
{ path: "customLineItems.media" }
|
|
583
|
+
];
|
|
584
|
+
var TRANSFORM_PATHS_52 = [{ path: "cartInfo.contactInfo.address" }];
|
|
585
|
+
var TRANSFORM_PATHS_62 = [
|
|
586
|
+
{ path: "lineItems.url" },
|
|
587
|
+
{ path: "customLineItems.url" }
|
|
588
|
+
];
|
|
589
|
+
var TRANSFORM_PATHS_72 = [
|
|
590
|
+
{ path: "lineItems.image" },
|
|
591
|
+
{ path: "lineItems.catalogOverrideFields.image" },
|
|
592
|
+
{ path: "customLineItems.media" }
|
|
593
|
+
];
|
|
594
|
+
var TRANSFORM_PATHS_82 = [
|
|
595
|
+
{ path: "shippingAddress" },
|
|
596
|
+
{ path: "billingAddress" }
|
|
597
|
+
];
|
|
598
|
+
var TRANSFORM_PATHS_92 = [
|
|
599
|
+
{ path: "cart.contactInfo.address" },
|
|
600
|
+
{
|
|
601
|
+
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
605
|
+
}
|
|
606
|
+
];
|
|
661
607
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
662
608
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
663
609
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -901,18 +847,15 @@ async function getCurrentCart() {
|
|
|
901
847
|
transformPaths2(result.data, [
|
|
902
848
|
{
|
|
903
849
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
904
|
-
paths:
|
|
850
|
+
paths: TRANSFORM_PATHS_02
|
|
905
851
|
},
|
|
906
852
|
{
|
|
907
853
|
transformFn: transformRESTImageToSDKImage,
|
|
908
|
-
paths:
|
|
909
|
-
{ path: "cart.lineItems.image" },
|
|
910
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
911
|
-
]
|
|
854
|
+
paths: TRANSFORM_PATHS_12
|
|
912
855
|
},
|
|
913
856
|
{
|
|
914
857
|
transformFn: transformRESTAddressToSDKAddress,
|
|
915
|
-
paths:
|
|
858
|
+
paths: TRANSFORM_PATHS_22
|
|
916
859
|
}
|
|
917
860
|
])
|
|
918
861
|
)?.cart;
|
|
@@ -942,25 +885,15 @@ async function updateCurrentCart2(options) {
|
|
|
942
885
|
[
|
|
943
886
|
{
|
|
944
887
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
945
|
-
paths:
|
|
946
|
-
{ path: "cartInfo.lineItems.url" },
|
|
947
|
-
{ path: "lineItems.url" },
|
|
948
|
-
{ path: "customLineItems.url" }
|
|
949
|
-
]
|
|
888
|
+
paths: TRANSFORM_PATHS_32
|
|
950
889
|
},
|
|
951
890
|
{
|
|
952
891
|
transformFn: transformSDKImageToRESTImage,
|
|
953
|
-
paths:
|
|
954
|
-
{ path: "cartInfo.lineItems.image" },
|
|
955
|
-
{ path: "cartInfo.lineItems.catalogOverrideFields.image" },
|
|
956
|
-
{ path: "lineItems.image" },
|
|
957
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
958
|
-
{ path: "customLineItems.media" }
|
|
959
|
-
]
|
|
892
|
+
paths: TRANSFORM_PATHS_42
|
|
960
893
|
},
|
|
961
894
|
{
|
|
962
895
|
transformFn: transformSDKAddressToRESTAddress,
|
|
963
|
-
paths:
|
|
896
|
+
paths: TRANSFORM_PATHS_52
|
|
964
897
|
}
|
|
965
898
|
]
|
|
966
899
|
);
|
|
@@ -973,18 +906,15 @@ async function updateCurrentCart2(options) {
|
|
|
973
906
|
transformPaths2(result.data, [
|
|
974
907
|
{
|
|
975
908
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
976
|
-
paths:
|
|
909
|
+
paths: TRANSFORM_PATHS_02
|
|
977
910
|
},
|
|
978
911
|
{
|
|
979
912
|
transformFn: transformRESTImageToSDKImage,
|
|
980
|
-
paths:
|
|
981
|
-
{ path: "cart.lineItems.image" },
|
|
982
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
983
|
-
]
|
|
913
|
+
paths: TRANSFORM_PATHS_12
|
|
984
914
|
},
|
|
985
915
|
{
|
|
986
916
|
transformFn: transformRESTAddressToSDKAddress,
|
|
987
|
-
paths:
|
|
917
|
+
paths: TRANSFORM_PATHS_22
|
|
988
918
|
}
|
|
989
919
|
])
|
|
990
920
|
)?.cart;
|
|
@@ -1018,15 +948,11 @@ async function addToCurrentCart2(options) {
|
|
|
1018
948
|
[
|
|
1019
949
|
{
|
|
1020
950
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
1021
|
-
paths:
|
|
951
|
+
paths: TRANSFORM_PATHS_62
|
|
1022
952
|
},
|
|
1023
953
|
{
|
|
1024
954
|
transformFn: transformSDKImageToRESTImage,
|
|
1025
|
-
paths:
|
|
1026
|
-
{ path: "lineItems.image" },
|
|
1027
|
-
{ path: "lineItems.catalogOverrideFields.image" },
|
|
1028
|
-
{ path: "customLineItems.media" }
|
|
1029
|
-
]
|
|
955
|
+
paths: TRANSFORM_PATHS_72
|
|
1030
956
|
}
|
|
1031
957
|
]
|
|
1032
958
|
);
|
|
@@ -1039,18 +965,15 @@ async function addToCurrentCart2(options) {
|
|
|
1039
965
|
transformPaths2(result.data, [
|
|
1040
966
|
{
|
|
1041
967
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1042
|
-
paths:
|
|
968
|
+
paths: TRANSFORM_PATHS_02
|
|
1043
969
|
},
|
|
1044
970
|
{
|
|
1045
971
|
transformFn: transformRESTImageToSDKImage,
|
|
1046
|
-
paths:
|
|
1047
|
-
{ path: "cart.lineItems.image" },
|
|
1048
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1049
|
-
]
|
|
972
|
+
paths: TRANSFORM_PATHS_12
|
|
1050
973
|
},
|
|
1051
974
|
{
|
|
1052
975
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1053
|
-
paths:
|
|
976
|
+
paths: TRANSFORM_PATHS_22
|
|
1054
977
|
}
|
|
1055
978
|
])
|
|
1056
979
|
);
|
|
@@ -1086,18 +1009,15 @@ async function removeLineItemsFromCurrentCart2(lineItemIds) {
|
|
|
1086
1009
|
transformPaths2(result.data, [
|
|
1087
1010
|
{
|
|
1088
1011
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1089
|
-
paths:
|
|
1012
|
+
paths: TRANSFORM_PATHS_02
|
|
1090
1013
|
},
|
|
1091
1014
|
{
|
|
1092
1015
|
transformFn: transformRESTImageToSDKImage,
|
|
1093
|
-
paths:
|
|
1094
|
-
{ path: "cart.lineItems.image" },
|
|
1095
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1096
|
-
]
|
|
1016
|
+
paths: TRANSFORM_PATHS_12
|
|
1097
1017
|
},
|
|
1098
1018
|
{
|
|
1099
1019
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1100
|
-
paths:
|
|
1020
|
+
paths: TRANSFORM_PATHS_22
|
|
1101
1021
|
}
|
|
1102
1022
|
])
|
|
1103
1023
|
);
|
|
@@ -1128,7 +1048,7 @@ async function createCheckoutFromCurrentCart2(options) {
|
|
|
1128
1048
|
[
|
|
1129
1049
|
{
|
|
1130
1050
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1131
|
-
paths:
|
|
1051
|
+
paths: TRANSFORM_PATHS_82
|
|
1132
1052
|
}
|
|
1133
1053
|
]
|
|
1134
1054
|
);
|
|
@@ -1170,18 +1090,15 @@ async function removeCouponFromCurrentCart2() {
|
|
|
1170
1090
|
transformPaths2(result.data, [
|
|
1171
1091
|
{
|
|
1172
1092
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1173
|
-
paths:
|
|
1093
|
+
paths: TRANSFORM_PATHS_02
|
|
1174
1094
|
},
|
|
1175
1095
|
{
|
|
1176
1096
|
transformFn: transformRESTImageToSDKImage,
|
|
1177
|
-
paths:
|
|
1178
|
-
{ path: "cart.lineItems.image" },
|
|
1179
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1180
|
-
]
|
|
1097
|
+
paths: TRANSFORM_PATHS_12
|
|
1181
1098
|
},
|
|
1182
1099
|
{
|
|
1183
1100
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1184
|
-
paths:
|
|
1101
|
+
paths: TRANSFORM_PATHS_22
|
|
1185
1102
|
}
|
|
1186
1103
|
])
|
|
1187
1104
|
);
|
|
@@ -1213,18 +1130,15 @@ async function updateCurrentCartLineItemQuantity2(lineItems) {
|
|
|
1213
1130
|
transformPaths2(result.data, [
|
|
1214
1131
|
{
|
|
1215
1132
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1216
|
-
paths:
|
|
1133
|
+
paths: TRANSFORM_PATHS_02
|
|
1217
1134
|
},
|
|
1218
1135
|
{
|
|
1219
1136
|
transformFn: transformRESTImageToSDKImage,
|
|
1220
|
-
paths:
|
|
1221
|
-
{ path: "cart.lineItems.image" },
|
|
1222
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1223
|
-
]
|
|
1137
|
+
paths: TRANSFORM_PATHS_12
|
|
1224
1138
|
},
|
|
1225
1139
|
{
|
|
1226
1140
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1227
|
-
paths:
|
|
1141
|
+
paths: TRANSFORM_PATHS_22
|
|
1228
1142
|
}
|
|
1229
1143
|
])
|
|
1230
1144
|
);
|
|
@@ -1257,7 +1171,7 @@ async function estimateCurrentCartTotals2(options) {
|
|
|
1257
1171
|
[
|
|
1258
1172
|
{
|
|
1259
1173
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1260
|
-
paths:
|
|
1174
|
+
paths: TRANSFORM_PATHS_82
|
|
1261
1175
|
}
|
|
1262
1176
|
]
|
|
1263
1177
|
);
|
|
@@ -1270,26 +1184,15 @@ async function estimateCurrentCartTotals2(options) {
|
|
|
1270
1184
|
transformPaths2(result.data, [
|
|
1271
1185
|
{
|
|
1272
1186
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
1273
|
-
paths:
|
|
1187
|
+
paths: TRANSFORM_PATHS_02
|
|
1274
1188
|
},
|
|
1275
1189
|
{
|
|
1276
1190
|
transformFn: transformRESTImageToSDKImage,
|
|
1277
|
-
paths:
|
|
1278
|
-
{ path: "cart.lineItems.image" },
|
|
1279
|
-
{ path: "cart.lineItems.catalogOverrideFields.image" }
|
|
1280
|
-
]
|
|
1191
|
+
paths: TRANSFORM_PATHS_12
|
|
1281
1192
|
},
|
|
1282
1193
|
{
|
|
1283
1194
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1284
|
-
paths:
|
|
1285
|
-
{ path: "cart.contactInfo.address" },
|
|
1286
|
-
{
|
|
1287
|
-
path: "shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
|
|
1288
|
-
},
|
|
1289
|
-
{
|
|
1290
|
-
path: "shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
|
|
1291
|
-
}
|
|
1292
|
-
]
|
|
1195
|
+
paths: TRANSFORM_PATHS_92
|
|
1293
1196
|
}
|
|
1294
1197
|
])
|
|
1295
1198
|
);
|
|
@@ -1339,6 +1242,87 @@ async function deleteCurrentCart2() {
|
|
|
1339
1242
|
}
|
|
1340
1243
|
|
|
1341
1244
|
// src/ecom-v1-cart-current-cart.public.ts
|
|
1245
|
+
var TRANSFORM_PATHS_03 = [
|
|
1246
|
+
{ path: "undefined.createdDate" },
|
|
1247
|
+
{ path: "undefined.updatedDate" },
|
|
1248
|
+
{
|
|
1249
|
+
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1250
|
+
},
|
|
1251
|
+
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
1252
|
+
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
1253
|
+
{ path: "metadata.eventTime" }
|
|
1254
|
+
];
|
|
1255
|
+
var TRANSFORM_PATHS_13 = [{ path: "undefined.lineItems.url" }];
|
|
1256
|
+
var TRANSFORM_PATHS_23 = [
|
|
1257
|
+
{ path: "undefined.lineItems.image" },
|
|
1258
|
+
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
1259
|
+
];
|
|
1260
|
+
var TRANSFORM_PATHS_33 = [
|
|
1261
|
+
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
1262
|
+
{
|
|
1263
|
+
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1264
|
+
}
|
|
1265
|
+
];
|
|
1266
|
+
var TRANSFORM_PATHS_43 = [{ path: "undefined.contactInfo.address" }];
|
|
1267
|
+
var TRANSFORM_PATHS_53 = [
|
|
1268
|
+
{ path: "entity.createdDate" },
|
|
1269
|
+
{ path: "entity.updatedDate" },
|
|
1270
|
+
{
|
|
1271
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1272
|
+
},
|
|
1273
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1274
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1275
|
+
{ path: "metadata.eventTime" },
|
|
1276
|
+
{ path: "modifiedFields.createdDate" },
|
|
1277
|
+
{ path: "modifiedFields.updatedDate" },
|
|
1278
|
+
{
|
|
1279
|
+
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1280
|
+
},
|
|
1281
|
+
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
1282
|
+
{ path: "modifiedFields.lineItems.serviceProperties.endDate" }
|
|
1283
|
+
];
|
|
1284
|
+
var TRANSFORM_PATHS_63 = [
|
|
1285
|
+
{ path: "entity.lineItems.url" },
|
|
1286
|
+
{ path: "modifiedFields.lineItems.url" }
|
|
1287
|
+
];
|
|
1288
|
+
var TRANSFORM_PATHS_73 = [
|
|
1289
|
+
{ path: "entity.lineItems.image" },
|
|
1290
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
1291
|
+
{ path: "modifiedFields.lineItems.image" },
|
|
1292
|
+
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
1293
|
+
];
|
|
1294
|
+
var TRANSFORM_PATHS_83 = [
|
|
1295
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1296
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" },
|
|
1297
|
+
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
1298
|
+
{
|
|
1299
|
+
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1300
|
+
}
|
|
1301
|
+
];
|
|
1302
|
+
var TRANSFORM_PATHS_93 = [
|
|
1303
|
+
{ path: "entity.contactInfo.address" },
|
|
1304
|
+
{ path: "modifiedFields.contactInfo.address" }
|
|
1305
|
+
];
|
|
1306
|
+
var TRANSFORM_PATHS_10 = [
|
|
1307
|
+
{ path: "entity.createdDate" },
|
|
1308
|
+
{ path: "entity.updatedDate" },
|
|
1309
|
+
{
|
|
1310
|
+
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1311
|
+
},
|
|
1312
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1313
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1314
|
+
{ path: "metadata.eventTime" }
|
|
1315
|
+
];
|
|
1316
|
+
var TRANSFORM_PATHS_11 = [{ path: "entity.lineItems.url" }];
|
|
1317
|
+
var TRANSFORM_PATHS_122 = [
|
|
1318
|
+
{ path: "entity.lineItems.image" },
|
|
1319
|
+
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
1320
|
+
];
|
|
1321
|
+
var TRANSFORM_PATHS_132 = [
|
|
1322
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1323
|
+
{ path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight" }
|
|
1324
|
+
];
|
|
1325
|
+
var TRANSFORM_PATHS_14 = [{ path: "entity.contactInfo.address" }];
|
|
1342
1326
|
function getCurrentCart2(httpClient) {
|
|
1343
1327
|
return () => getCurrentCart(
|
|
1344
1328
|
// @ts-ignore
|
|
@@ -1406,40 +1390,23 @@ var onCartDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
1406
1390
|
transformPaths3(event, [
|
|
1407
1391
|
{
|
|
1408
1392
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1409
|
-
paths:
|
|
1410
|
-
{ path: "undefined.createdDate" },
|
|
1411
|
-
{ path: "undefined.updatedDate" },
|
|
1412
|
-
{
|
|
1413
|
-
path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1414
|
-
},
|
|
1415
|
-
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
1416
|
-
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
1417
|
-
{ path: "metadata.eventTime" }
|
|
1418
|
-
]
|
|
1393
|
+
paths: TRANSFORM_PATHS_03
|
|
1419
1394
|
},
|
|
1420
1395
|
{
|
|
1421
1396
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
1422
|
-
paths:
|
|
1397
|
+
paths: TRANSFORM_PATHS_13
|
|
1423
1398
|
},
|
|
1424
1399
|
{
|
|
1425
1400
|
transformFn: transformRESTImageToSDKImage2,
|
|
1426
|
-
paths:
|
|
1427
|
-
{ path: "undefined.lineItems.image" },
|
|
1428
|
-
{ path: "undefined.lineItems.catalogOverrideFields.image" }
|
|
1429
|
-
]
|
|
1401
|
+
paths: TRANSFORM_PATHS_23
|
|
1430
1402
|
},
|
|
1431
1403
|
{
|
|
1432
1404
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1433
|
-
paths:
|
|
1434
|
-
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
1435
|
-
{
|
|
1436
|
-
path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1437
|
-
}
|
|
1438
|
-
]
|
|
1405
|
+
paths: TRANSFORM_PATHS_33
|
|
1439
1406
|
},
|
|
1440
1407
|
{
|
|
1441
1408
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
1442
|
-
paths:
|
|
1409
|
+
paths: TRANSFORM_PATHS_43
|
|
1443
1410
|
}
|
|
1444
1411
|
])
|
|
1445
1412
|
)
|
|
@@ -1451,61 +1418,23 @@ var onCartUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
1451
1418
|
transformPaths3(event, [
|
|
1452
1419
|
{
|
|
1453
1420
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1454
|
-
paths:
|
|
1455
|
-
{ path: "entity.createdDate" },
|
|
1456
|
-
{ path: "entity.updatedDate" },
|
|
1457
|
-
{
|
|
1458
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1459
|
-
},
|
|
1460
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1461
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1462
|
-
{ path: "metadata.eventTime" },
|
|
1463
|
-
{ path: "modifiedFields.createdDate" },
|
|
1464
|
-
{ path: "modifiedFields.updatedDate" },
|
|
1465
|
-
{
|
|
1466
|
-
path: "modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1467
|
-
},
|
|
1468
|
-
{
|
|
1469
|
-
path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
|
|
1470
|
-
},
|
|
1471
|
-
{ path: "modifiedFields.lineItems.serviceProperties.endDate" }
|
|
1472
|
-
]
|
|
1421
|
+
paths: TRANSFORM_PATHS_53
|
|
1473
1422
|
},
|
|
1474
1423
|
{
|
|
1475
1424
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
1476
|
-
paths:
|
|
1477
|
-
{ path: "entity.lineItems.url" },
|
|
1478
|
-
{ path: "modifiedFields.lineItems.url" }
|
|
1479
|
-
]
|
|
1425
|
+
paths: TRANSFORM_PATHS_63
|
|
1480
1426
|
},
|
|
1481
1427
|
{
|
|
1482
1428
|
transformFn: transformRESTImageToSDKImage2,
|
|
1483
|
-
paths:
|
|
1484
|
-
{ path: "entity.lineItems.image" },
|
|
1485
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" },
|
|
1486
|
-
{ path: "modifiedFields.lineItems.image" },
|
|
1487
|
-
{ path: "modifiedFields.lineItems.catalogOverrideFields.image" }
|
|
1488
|
-
]
|
|
1429
|
+
paths: TRANSFORM_PATHS_73
|
|
1489
1430
|
},
|
|
1490
1431
|
{
|
|
1491
1432
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1492
|
-
paths:
|
|
1493
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1494
|
-
{
|
|
1495
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1496
|
-
},
|
|
1497
|
-
{ path: "modifiedFields.lineItems.physicalProperties.weight" },
|
|
1498
|
-
{
|
|
1499
|
-
path: "modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1500
|
-
}
|
|
1501
|
-
]
|
|
1433
|
+
paths: TRANSFORM_PATHS_83
|
|
1502
1434
|
},
|
|
1503
1435
|
{
|
|
1504
1436
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
1505
|
-
paths:
|
|
1506
|
-
{ path: "entity.contactInfo.address" },
|
|
1507
|
-
{ path: "modifiedFields.contactInfo.address" }
|
|
1508
|
-
]
|
|
1437
|
+
paths: TRANSFORM_PATHS_93
|
|
1509
1438
|
}
|
|
1510
1439
|
])
|
|
1511
1440
|
)
|
|
@@ -1517,40 +1446,23 @@ var onCartCreated = /* @__PURE__ */ EventDefinition(
|
|
|
1517
1446
|
transformPaths3(event, [
|
|
1518
1447
|
{
|
|
1519
1448
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1520
|
-
paths:
|
|
1521
|
-
{ path: "entity.createdDate" },
|
|
1522
|
-
{ path: "entity.updatedDate" },
|
|
1523
|
-
{
|
|
1524
|
-
path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
|
|
1525
|
-
},
|
|
1526
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
1527
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
1528
|
-
{ path: "metadata.eventTime" }
|
|
1529
|
-
]
|
|
1449
|
+
paths: TRANSFORM_PATHS_10
|
|
1530
1450
|
},
|
|
1531
1451
|
{
|
|
1532
1452
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
1533
|
-
paths:
|
|
1453
|
+
paths: TRANSFORM_PATHS_11
|
|
1534
1454
|
},
|
|
1535
1455
|
{
|
|
1536
1456
|
transformFn: transformRESTImageToSDKImage2,
|
|
1537
|
-
paths:
|
|
1538
|
-
{ path: "entity.lineItems.image" },
|
|
1539
|
-
{ path: "entity.lineItems.catalogOverrideFields.image" }
|
|
1540
|
-
]
|
|
1457
|
+
paths: TRANSFORM_PATHS_122
|
|
1541
1458
|
},
|
|
1542
1459
|
{
|
|
1543
1460
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1544
|
-
paths:
|
|
1545
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
1546
|
-
{
|
|
1547
|
-
path: "entity.lineItems.catalogOverrideFields.physicalProperties.weight"
|
|
1548
|
-
}
|
|
1549
|
-
]
|
|
1461
|
+
paths: TRANSFORM_PATHS_132
|
|
1550
1462
|
},
|
|
1551
1463
|
{
|
|
1552
1464
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
1553
|
-
paths:
|
|
1465
|
+
paths: TRANSFORM_PATHS_14
|
|
1554
1466
|
}
|
|
1555
1467
|
])
|
|
1556
1468
|
)
|