@wix/auto_sdk_ecom_orders 1.0.300 → 1.0.301
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 +480 -1275
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +307 -978
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +239 -808
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +480 -1275
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +307 -978
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +239 -808
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -149,6 +149,196 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
149
149
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
150
150
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
151
151
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
152
|
+
var TRANSFORM_PATHS_0 = [
|
|
153
|
+
{ path: "order.createdDate" },
|
|
154
|
+
{ path: "order.updatedDate" },
|
|
155
|
+
{ path: "order.purchasedDate" },
|
|
156
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
157
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
158
|
+
{ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
159
|
+
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
160
|
+
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
161
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
162
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
163
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
164
|
+
{ path: "order.activities.createdDate" }
|
|
165
|
+
];
|
|
166
|
+
var TRANSFORM_PATHS_1 = [
|
|
167
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
168
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
169
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
170
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
171
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
172
|
+
{
|
|
173
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
183
|
+
},
|
|
184
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
185
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
186
|
+
];
|
|
187
|
+
var TRANSFORM_PATHS_2 = [
|
|
188
|
+
{ path: "results.item.createdDate" },
|
|
189
|
+
{ path: "results.item.updatedDate" },
|
|
190
|
+
{ path: "results.item.purchasedDate" },
|
|
191
|
+
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
192
|
+
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
193
|
+
{
|
|
194
|
+
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
195
|
+
},
|
|
196
|
+
{ path: "results.item.lineItems.serviceProperties.scheduledDate" },
|
|
197
|
+
{ path: "results.item.lineItems.serviceProperties.endDate" },
|
|
198
|
+
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
199
|
+
{ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
200
|
+
{ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
201
|
+
{ path: "results.item.activities.createdDate" }
|
|
202
|
+
];
|
|
203
|
+
var TRANSFORM_PATHS_3 = [
|
|
204
|
+
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
205
|
+
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
206
|
+
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
207
|
+
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
208
|
+
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
209
|
+
{
|
|
210
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
220
|
+
},
|
|
221
|
+
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
222
|
+
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
223
|
+
];
|
|
224
|
+
var TRANSFORM_PATHS_4 = [
|
|
225
|
+
{ path: "membershipCharges.serviceProperties.scheduledDate" },
|
|
226
|
+
{ path: "membershipCharges.serviceProperties.endDate" }
|
|
227
|
+
];
|
|
228
|
+
var TRANSFORM_PATHS_5 = [
|
|
229
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
230
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
231
|
+
{
|
|
232
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
248
|
+
},
|
|
249
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
250
|
+
];
|
|
251
|
+
var TRANSFORM_PATHS_6 = [
|
|
252
|
+
{ path: "search.sort.origin.latitude" },
|
|
253
|
+
{ path: "search.sort.origin.longitude" }
|
|
254
|
+
];
|
|
255
|
+
var TRANSFORM_PATHS_7 = [
|
|
256
|
+
{ path: "orders.createdDate" },
|
|
257
|
+
{ path: "orders.updatedDate" },
|
|
258
|
+
{ path: "orders.purchasedDate" },
|
|
259
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
260
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
261
|
+
{ path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
262
|
+
{ path: "orders.lineItems.serviceProperties.scheduledDate" },
|
|
263
|
+
{ path: "orders.lineItems.serviceProperties.endDate" },
|
|
264
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
265
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
266
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
267
|
+
{ path: "orders.activities.createdDate" }
|
|
268
|
+
];
|
|
269
|
+
var TRANSFORM_PATHS_8 = [
|
|
270
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
271
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
272
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
273
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
274
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
275
|
+
{
|
|
276
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
286
|
+
},
|
|
287
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
288
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
289
|
+
];
|
|
290
|
+
var TRANSFORM_PATHS_9 = [{ path: "fieldMask" }];
|
|
291
|
+
var TRANSFORM_PATHS_10 = [{ path: "orders.fieldMask" }];
|
|
292
|
+
var TRANSFORM_PATHS_11 = [
|
|
293
|
+
{ path: "orders.order.createdDate" },
|
|
294
|
+
{ path: "orders.order.updatedDate" },
|
|
295
|
+
{ path: "orders.order.purchasedDate" },
|
|
296
|
+
{ path: "orders.order.lineItems.image.urlExpirationDate" },
|
|
297
|
+
{ path: "orders.order.lineItems.digitalFile.expirationDate" },
|
|
298
|
+
{
|
|
299
|
+
path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
300
|
+
},
|
|
301
|
+
{ path: "orders.order.lineItems.serviceProperties.scheduledDate" },
|
|
302
|
+
{ path: "orders.order.lineItems.serviceProperties.endDate" },
|
|
303
|
+
{ path: "orders.order.shippingInfo.logistics.deliverByDate" },
|
|
304
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
305
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
306
|
+
{ path: "orders.order.activities.createdDate" }
|
|
307
|
+
];
|
|
308
|
+
var TRANSFORM_PATHS_12 = [
|
|
309
|
+
{ path: "orders.order.lineItems.image.focalPoint.x" },
|
|
310
|
+
{ path: "orders.order.lineItems.image.focalPoint.y" },
|
|
311
|
+
{ path: "orders.order.lineItems.physicalProperties.weight" },
|
|
312
|
+
{ path: "orders.order.billingInfo.address.geocode.latitude" },
|
|
313
|
+
{ path: "orders.order.billingInfo.address.geocode.longitude" },
|
|
314
|
+
{
|
|
315
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
325
|
+
},
|
|
326
|
+
{ path: "orders.order.recipientInfo.address.geocode.latitude" },
|
|
327
|
+
{ path: "orders.order.recipientInfo.address.geocode.longitude" }
|
|
328
|
+
];
|
|
329
|
+
var TRANSFORM_PATHS_13 = [
|
|
330
|
+
{ path: "lineItem.image.urlExpirationDate" },
|
|
331
|
+
{ path: "lineItem.digitalFile.expirationDate" },
|
|
332
|
+
{ path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
|
|
333
|
+
{ path: "lineItem.serviceProperties.scheduledDate" },
|
|
334
|
+
{ path: "lineItem.serviceProperties.endDate" }
|
|
335
|
+
];
|
|
336
|
+
var TRANSFORM_PATHS_14 = [
|
|
337
|
+
{ path: "lineItem.image.focalPoint.x" },
|
|
338
|
+
{ path: "lineItem.image.focalPoint.y" },
|
|
339
|
+
{ path: "lineItem.physicalProperties.weight" }
|
|
340
|
+
];
|
|
341
|
+
var TRANSFORM_PATHS_15 = [{ path: "orderActivities.createdDate" }];
|
|
152
342
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
153
343
|
const domainToMappings = {
|
|
154
344
|
_: [
|
|
@@ -312,46 +502,11 @@ function importOrder(payload) {
|
|
|
312
502
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
313
503
|
{
|
|
314
504
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
315
|
-
paths:
|
|
316
|
-
{ path: "order.createdDate" },
|
|
317
|
-
{ path: "order.updatedDate" },
|
|
318
|
-
{ path: "order.purchasedDate" },
|
|
319
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
320
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
321
|
-
{
|
|
322
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
323
|
-
},
|
|
324
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
325
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
326
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
327
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
328
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
329
|
-
{ path: "order.activities.createdDate" }
|
|
330
|
-
]
|
|
505
|
+
paths: TRANSFORM_PATHS_0
|
|
331
506
|
},
|
|
332
507
|
{
|
|
333
508
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
334
|
-
paths:
|
|
335
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
336
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
337
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
338
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
339
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
340
|
-
{
|
|
341
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
351
|
-
},
|
|
352
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
353
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
354
|
-
]
|
|
509
|
+
paths: TRANSFORM_PATHS_1
|
|
355
510
|
}
|
|
356
511
|
]);
|
|
357
512
|
const metadata = {
|
|
@@ -371,46 +526,11 @@ function importOrder(payload) {
|
|
|
371
526
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
372
527
|
{
|
|
373
528
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
374
|
-
paths:
|
|
375
|
-
{ path: "order.createdDate" },
|
|
376
|
-
{ path: "order.updatedDate" },
|
|
377
|
-
{ path: "order.purchasedDate" },
|
|
378
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
379
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
380
|
-
{
|
|
381
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
382
|
-
},
|
|
383
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
384
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
385
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
386
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
387
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
388
|
-
{ path: "order.activities.createdDate" }
|
|
389
|
-
]
|
|
529
|
+
paths: TRANSFORM_PATHS_0
|
|
390
530
|
},
|
|
391
531
|
{
|
|
392
532
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
393
|
-
paths:
|
|
394
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
395
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
396
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
397
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
398
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
399
|
-
{
|
|
400
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
410
|
-
},
|
|
411
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
412
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
413
|
-
]
|
|
533
|
+
paths: TRANSFORM_PATHS_1
|
|
414
534
|
}
|
|
415
535
|
])
|
|
416
536
|
};
|
|
@@ -542,46 +662,11 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
542
662
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
543
663
|
{
|
|
544
664
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
545
|
-
paths:
|
|
546
|
-
{ path: "order.createdDate" },
|
|
547
|
-
{ path: "order.updatedDate" },
|
|
548
|
-
{ path: "order.purchasedDate" },
|
|
549
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
550
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
551
|
-
{
|
|
552
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
553
|
-
},
|
|
554
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
555
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
556
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
557
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
558
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
559
|
-
{ path: "order.activities.createdDate" }
|
|
560
|
-
]
|
|
665
|
+
paths: TRANSFORM_PATHS_0
|
|
561
666
|
},
|
|
562
667
|
{
|
|
563
668
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
564
|
-
paths:
|
|
565
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
566
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
567
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
568
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
569
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
570
|
-
{
|
|
571
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
581
|
-
},
|
|
582
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
583
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
584
|
-
]
|
|
669
|
+
paths: TRANSFORM_PATHS_1
|
|
585
670
|
}
|
|
586
671
|
])
|
|
587
672
|
};
|
|
@@ -608,52 +693,11 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
608
693
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
609
694
|
{
|
|
610
695
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
611
|
-
paths:
|
|
612
|
-
{ path: "results.item.createdDate" },
|
|
613
|
-
{ path: "results.item.updatedDate" },
|
|
614
|
-
{ path: "results.item.purchasedDate" },
|
|
615
|
-
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
616
|
-
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
617
|
-
{
|
|
618
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
path: "results.item.lineItems.serviceProperties.scheduledDate"
|
|
622
|
-
},
|
|
623
|
-
{ path: "results.item.lineItems.serviceProperties.endDate" },
|
|
624
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
625
|
-
{
|
|
626
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
630
|
-
},
|
|
631
|
-
{ path: "results.item.activities.createdDate" }
|
|
632
|
-
]
|
|
696
|
+
paths: TRANSFORM_PATHS_2
|
|
633
697
|
},
|
|
634
698
|
{
|
|
635
699
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
636
|
-
paths:
|
|
637
|
-
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
638
|
-
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
639
|
-
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
640
|
-
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
641
|
-
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
642
|
-
{
|
|
643
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
644
|
-
},
|
|
645
|
-
{
|
|
646
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
653
|
-
},
|
|
654
|
-
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
655
|
-
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
656
|
-
]
|
|
700
|
+
paths: TRANSFORM_PATHS_3
|
|
657
701
|
}
|
|
658
702
|
])
|
|
659
703
|
};
|
|
@@ -708,10 +752,7 @@ function chargeMemberships(payload) {
|
|
|
708
752
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
709
753
|
{
|
|
710
754
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
711
|
-
paths:
|
|
712
|
-
{ path: "membershipCharges.serviceProperties.scheduledDate" },
|
|
713
|
-
{ path: "membershipCharges.serviceProperties.endDate" }
|
|
714
|
-
]
|
|
755
|
+
paths: TRANSFORM_PATHS_4
|
|
715
756
|
}
|
|
716
757
|
]);
|
|
717
758
|
const metadata = {
|
|
@@ -752,29 +793,7 @@ function triggerRefund(payload) {
|
|
|
752
793
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
753
794
|
{
|
|
754
795
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
755
|
-
paths:
|
|
756
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
757
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
758
|
-
{
|
|
759
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
763
|
-
},
|
|
764
|
-
{
|
|
765
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
772
|
-
},
|
|
773
|
-
{
|
|
774
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
775
|
-
},
|
|
776
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
777
|
-
]
|
|
796
|
+
paths: TRANSFORM_PATHS_5
|
|
778
797
|
}
|
|
779
798
|
])
|
|
780
799
|
};
|
|
@@ -801,29 +820,7 @@ function voidAuthorizedPayments(payload) {
|
|
|
801
820
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
802
821
|
{
|
|
803
822
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
804
|
-
paths:
|
|
805
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
806
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
807
|
-
{
|
|
808
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
821
|
-
},
|
|
822
|
-
{
|
|
823
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
824
|
-
},
|
|
825
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
826
|
-
]
|
|
823
|
+
paths: TRANSFORM_PATHS_5
|
|
827
824
|
}
|
|
828
825
|
])
|
|
829
826
|
};
|
|
@@ -850,29 +847,7 @@ function captureAuthorizedPayments(payload) {
|
|
|
850
847
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
851
848
|
{
|
|
852
849
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
853
|
-
paths:
|
|
854
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
855
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
856
|
-
{
|
|
857
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
858
|
-
},
|
|
859
|
-
{
|
|
860
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
873
|
-
},
|
|
874
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
875
|
-
]
|
|
850
|
+
paths: TRANSFORM_PATHS_5
|
|
876
851
|
}
|
|
877
852
|
])
|
|
878
853
|
};
|
|
@@ -899,46 +874,11 @@ function getOrder(payload) {
|
|
|
899
874
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
900
875
|
{
|
|
901
876
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
902
|
-
paths:
|
|
903
|
-
{ path: "order.createdDate" },
|
|
904
|
-
{ path: "order.updatedDate" },
|
|
905
|
-
{ path: "order.purchasedDate" },
|
|
906
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
907
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
908
|
-
{
|
|
909
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
910
|
-
},
|
|
911
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
912
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
913
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
914
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
915
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
916
|
-
{ path: "order.activities.createdDate" }
|
|
917
|
-
]
|
|
877
|
+
paths: TRANSFORM_PATHS_0
|
|
918
878
|
},
|
|
919
879
|
{
|
|
920
880
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
921
|
-
paths:
|
|
922
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
923
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
924
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
925
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
926
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
927
|
-
{
|
|
928
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
929
|
-
},
|
|
930
|
-
{
|
|
931
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
938
|
-
},
|
|
939
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
940
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
941
|
-
]
|
|
881
|
+
paths: TRANSFORM_PATHS_1
|
|
942
882
|
}
|
|
943
883
|
])
|
|
944
884
|
};
|
|
@@ -951,10 +891,7 @@ function searchOrders(payload) {
|
|
|
951
891
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
952
892
|
{
|
|
953
893
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
954
|
-
paths:
|
|
955
|
-
{ path: "search.sort.origin.latitude" },
|
|
956
|
-
{ path: "search.sort.origin.longitude" }
|
|
957
|
-
]
|
|
894
|
+
paths: TRANSFORM_PATHS_6
|
|
958
895
|
}
|
|
959
896
|
]);
|
|
960
897
|
const metadata = {
|
|
@@ -974,46 +911,11 @@ function searchOrders(payload) {
|
|
|
974
911
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
975
912
|
{
|
|
976
913
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
977
|
-
paths:
|
|
978
|
-
{ path: "orders.createdDate" },
|
|
979
|
-
{ path: "orders.updatedDate" },
|
|
980
|
-
{ path: "orders.purchasedDate" },
|
|
981
|
-
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
982
|
-
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
983
|
-
{
|
|
984
|
-
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
985
|
-
},
|
|
986
|
-
{ path: "orders.lineItems.serviceProperties.scheduledDate" },
|
|
987
|
-
{ path: "orders.lineItems.serviceProperties.endDate" },
|
|
988
|
-
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
989
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
990
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
991
|
-
{ path: "orders.activities.createdDate" }
|
|
992
|
-
]
|
|
914
|
+
paths: TRANSFORM_PATHS_7
|
|
993
915
|
},
|
|
994
916
|
{
|
|
995
917
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
996
|
-
paths:
|
|
997
|
-
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
998
|
-
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
999
|
-
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
1000
|
-
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
1001
|
-
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
1002
|
-
{
|
|
1003
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1007
|
-
},
|
|
1008
|
-
{
|
|
1009
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1010
|
-
},
|
|
1011
|
-
{
|
|
1012
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1013
|
-
},
|
|
1014
|
-
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
1015
|
-
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
1016
|
-
]
|
|
918
|
+
paths: TRANSFORM_PATHS_8
|
|
1017
919
|
}
|
|
1018
920
|
])
|
|
1019
921
|
};
|
|
@@ -1026,46 +928,11 @@ function createOrder(payload) {
|
|
|
1026
928
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1027
929
|
{
|
|
1028
930
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1029
|
-
paths:
|
|
1030
|
-
{ path: "order.createdDate" },
|
|
1031
|
-
{ path: "order.updatedDate" },
|
|
1032
|
-
{ path: "order.purchasedDate" },
|
|
1033
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1034
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1035
|
-
{
|
|
1036
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1037
|
-
},
|
|
1038
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1039
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1040
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1041
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1042
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1043
|
-
{ path: "order.activities.createdDate" }
|
|
1044
|
-
]
|
|
931
|
+
paths: TRANSFORM_PATHS_0
|
|
1045
932
|
},
|
|
1046
933
|
{
|
|
1047
934
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1048
|
-
paths:
|
|
1049
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1050
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1051
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1052
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1053
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1054
|
-
{
|
|
1055
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1059
|
-
},
|
|
1060
|
-
{
|
|
1061
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1062
|
-
},
|
|
1063
|
-
{
|
|
1064
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1065
|
-
},
|
|
1066
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1067
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1068
|
-
]
|
|
935
|
+
paths: TRANSFORM_PATHS_1
|
|
1069
936
|
}
|
|
1070
937
|
]);
|
|
1071
938
|
const metadata = {
|
|
@@ -1085,46 +952,11 @@ function createOrder(payload) {
|
|
|
1085
952
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1086
953
|
{
|
|
1087
954
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1088
|
-
paths:
|
|
1089
|
-
{ path: "order.createdDate" },
|
|
1090
|
-
{ path: "order.updatedDate" },
|
|
1091
|
-
{ path: "order.purchasedDate" },
|
|
1092
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1093
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1094
|
-
{
|
|
1095
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1096
|
-
},
|
|
1097
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1098
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1099
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1100
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1101
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1102
|
-
{ path: "order.activities.createdDate" }
|
|
1103
|
-
]
|
|
955
|
+
paths: TRANSFORM_PATHS_0
|
|
1104
956
|
},
|
|
1105
957
|
{
|
|
1106
958
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1107
|
-
paths:
|
|
1108
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1109
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1110
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1111
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1112
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1113
|
-
{
|
|
1114
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1118
|
-
},
|
|
1119
|
-
{
|
|
1120
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1121
|
-
},
|
|
1122
|
-
{
|
|
1123
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1124
|
-
},
|
|
1125
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1126
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1127
|
-
]
|
|
959
|
+
paths: TRANSFORM_PATHS_1
|
|
1128
960
|
}
|
|
1129
961
|
])
|
|
1130
962
|
};
|
|
@@ -1137,50 +969,15 @@ function updateOrder(payload) {
|
|
|
1137
969
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1138
970
|
{
|
|
1139
971
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1140
|
-
paths:
|
|
972
|
+
paths: TRANSFORM_PATHS_9
|
|
1141
973
|
},
|
|
1142
974
|
{
|
|
1143
975
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1144
|
-
paths:
|
|
1145
|
-
{ path: "order.createdDate" },
|
|
1146
|
-
{ path: "order.updatedDate" },
|
|
1147
|
-
{ path: "order.purchasedDate" },
|
|
1148
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1149
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1150
|
-
{
|
|
1151
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1152
|
-
},
|
|
1153
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1154
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1155
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1156
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1157
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1158
|
-
{ path: "order.activities.createdDate" }
|
|
1159
|
-
]
|
|
976
|
+
paths: TRANSFORM_PATHS_0
|
|
1160
977
|
},
|
|
1161
978
|
{
|
|
1162
979
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1163
|
-
paths:
|
|
1164
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1165
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1166
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1167
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1168
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1169
|
-
{
|
|
1170
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1177
|
-
},
|
|
1178
|
-
{
|
|
1179
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1180
|
-
},
|
|
1181
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1182
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1183
|
-
]
|
|
980
|
+
paths: TRANSFORM_PATHS_1
|
|
1184
981
|
}
|
|
1185
982
|
]);
|
|
1186
983
|
const metadata = {
|
|
@@ -1200,46 +997,11 @@ function updateOrder(payload) {
|
|
|
1200
997
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1201
998
|
{
|
|
1202
999
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1203
|
-
paths:
|
|
1204
|
-
{ path: "order.createdDate" },
|
|
1205
|
-
{ path: "order.updatedDate" },
|
|
1206
|
-
{ path: "order.purchasedDate" },
|
|
1207
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1208
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1209
|
-
{
|
|
1210
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1211
|
-
},
|
|
1212
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1213
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1214
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1215
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1216
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1217
|
-
{ path: "order.activities.createdDate" }
|
|
1218
|
-
]
|
|
1000
|
+
paths: TRANSFORM_PATHS_0
|
|
1219
1001
|
},
|
|
1220
1002
|
{
|
|
1221
1003
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1222
|
-
paths:
|
|
1223
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1224
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1225
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1226
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1227
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1228
|
-
{
|
|
1229
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1236
|
-
},
|
|
1237
|
-
{
|
|
1238
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1239
|
-
},
|
|
1240
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1241
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1242
|
-
]
|
|
1004
|
+
paths: TRANSFORM_PATHS_1
|
|
1243
1005
|
}
|
|
1244
1006
|
])
|
|
1245
1007
|
};
|
|
@@ -1252,50 +1014,15 @@ function bulkUpdateOrders(payload) {
|
|
|
1252
1014
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1253
1015
|
{
|
|
1254
1016
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1255
|
-
paths:
|
|
1017
|
+
paths: TRANSFORM_PATHS_10
|
|
1256
1018
|
},
|
|
1257
1019
|
{
|
|
1258
1020
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1259
|
-
paths:
|
|
1260
|
-
{ path: "orders.order.createdDate" },
|
|
1261
|
-
{ path: "orders.order.updatedDate" },
|
|
1262
|
-
{ path: "orders.order.purchasedDate" },
|
|
1263
|
-
{ path: "orders.order.lineItems.image.urlExpirationDate" },
|
|
1264
|
-
{ path: "orders.order.lineItems.digitalFile.expirationDate" },
|
|
1265
|
-
{
|
|
1266
|
-
path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1267
|
-
},
|
|
1268
|
-
{ path: "orders.order.lineItems.serviceProperties.scheduledDate" },
|
|
1269
|
-
{ path: "orders.order.lineItems.serviceProperties.endDate" },
|
|
1270
|
-
{ path: "orders.order.shippingInfo.logistics.deliverByDate" },
|
|
1271
|
-
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1272
|
-
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1273
|
-
{ path: "orders.order.activities.createdDate" }
|
|
1274
|
-
]
|
|
1021
|
+
paths: TRANSFORM_PATHS_11
|
|
1275
1022
|
},
|
|
1276
1023
|
{
|
|
1277
1024
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1278
|
-
paths:
|
|
1279
|
-
{ path: "orders.order.lineItems.image.focalPoint.x" },
|
|
1280
|
-
{ path: "orders.order.lineItems.image.focalPoint.y" },
|
|
1281
|
-
{ path: "orders.order.lineItems.physicalProperties.weight" },
|
|
1282
|
-
{ path: "orders.order.billingInfo.address.geocode.latitude" },
|
|
1283
|
-
{ path: "orders.order.billingInfo.address.geocode.longitude" },
|
|
1284
|
-
{
|
|
1285
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1286
|
-
},
|
|
1287
|
-
{
|
|
1288
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1289
|
-
},
|
|
1290
|
-
{
|
|
1291
|
-
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1292
|
-
},
|
|
1293
|
-
{
|
|
1294
|
-
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1295
|
-
},
|
|
1296
|
-
{ path: "orders.order.recipientInfo.address.geocode.latitude" },
|
|
1297
|
-
{ path: "orders.order.recipientInfo.address.geocode.longitude" }
|
|
1298
|
-
]
|
|
1025
|
+
paths: TRANSFORM_PATHS_12
|
|
1299
1026
|
}
|
|
1300
1027
|
]);
|
|
1301
1028
|
const metadata = {
|
|
@@ -1315,52 +1042,11 @@ function bulkUpdateOrders(payload) {
|
|
|
1315
1042
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1316
1043
|
{
|
|
1317
1044
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1318
|
-
paths:
|
|
1319
|
-
{ path: "results.item.createdDate" },
|
|
1320
|
-
{ path: "results.item.updatedDate" },
|
|
1321
|
-
{ path: "results.item.purchasedDate" },
|
|
1322
|
-
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
1323
|
-
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
1324
|
-
{
|
|
1325
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
path: "results.item.lineItems.serviceProperties.scheduledDate"
|
|
1329
|
-
},
|
|
1330
|
-
{ path: "results.item.lineItems.serviceProperties.endDate" },
|
|
1331
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
1332
|
-
{
|
|
1333
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1334
|
-
},
|
|
1335
|
-
{
|
|
1336
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1337
|
-
},
|
|
1338
|
-
{ path: "results.item.activities.createdDate" }
|
|
1339
|
-
]
|
|
1045
|
+
paths: TRANSFORM_PATHS_2
|
|
1340
1046
|
},
|
|
1341
1047
|
{
|
|
1342
1048
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1343
|
-
paths:
|
|
1344
|
-
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
1345
|
-
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
1346
|
-
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
1347
|
-
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
1348
|
-
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
1349
|
-
{
|
|
1350
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1351
|
-
},
|
|
1352
|
-
{
|
|
1353
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1354
|
-
},
|
|
1355
|
-
{
|
|
1356
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1357
|
-
},
|
|
1358
|
-
{
|
|
1359
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1360
|
-
},
|
|
1361
|
-
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
1362
|
-
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
1363
|
-
]
|
|
1049
|
+
paths: TRANSFORM_PATHS_3
|
|
1364
1050
|
}
|
|
1365
1051
|
])
|
|
1366
1052
|
};
|
|
@@ -1373,25 +1059,15 @@ function updateOrderLineItem(payload) {
|
|
|
1373
1059
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1374
1060
|
{
|
|
1375
1061
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1376
|
-
paths:
|
|
1062
|
+
paths: TRANSFORM_PATHS_9
|
|
1377
1063
|
},
|
|
1378
1064
|
{
|
|
1379
1065
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1380
|
-
paths:
|
|
1381
|
-
{ path: "lineItem.image.urlExpirationDate" },
|
|
1382
|
-
{ path: "lineItem.digitalFile.expirationDate" },
|
|
1383
|
-
{ path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
|
|
1384
|
-
{ path: "lineItem.serviceProperties.scheduledDate" },
|
|
1385
|
-
{ path: "lineItem.serviceProperties.endDate" }
|
|
1386
|
-
]
|
|
1066
|
+
paths: TRANSFORM_PATHS_13
|
|
1387
1067
|
},
|
|
1388
1068
|
{
|
|
1389
1069
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1390
|
-
paths:
|
|
1391
|
-
{ path: "lineItem.image.focalPoint.x" },
|
|
1392
|
-
{ path: "lineItem.image.focalPoint.y" },
|
|
1393
|
-
{ path: "lineItem.physicalProperties.weight" }
|
|
1394
|
-
]
|
|
1070
|
+
paths: TRANSFORM_PATHS_14
|
|
1395
1071
|
}
|
|
1396
1072
|
]);
|
|
1397
1073
|
const metadata = {
|
|
@@ -1411,46 +1087,11 @@ function updateOrderLineItem(payload) {
|
|
|
1411
1087
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1412
1088
|
{
|
|
1413
1089
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1414
|
-
paths:
|
|
1415
|
-
{ path: "order.createdDate" },
|
|
1416
|
-
{ path: "order.updatedDate" },
|
|
1417
|
-
{ path: "order.purchasedDate" },
|
|
1418
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1419
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1420
|
-
{
|
|
1421
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1422
|
-
},
|
|
1423
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1424
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1425
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1426
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1427
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1428
|
-
{ path: "order.activities.createdDate" }
|
|
1429
|
-
]
|
|
1090
|
+
paths: TRANSFORM_PATHS_0
|
|
1430
1091
|
},
|
|
1431
1092
|
{
|
|
1432
1093
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1433
|
-
paths:
|
|
1434
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1435
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1436
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1437
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1438
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1439
|
-
{
|
|
1440
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1444
|
-
},
|
|
1445
|
-
{
|
|
1446
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1447
|
-
},
|
|
1448
|
-
{
|
|
1449
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1450
|
-
},
|
|
1451
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1452
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1453
|
-
]
|
|
1094
|
+
paths: TRANSFORM_PATHS_1
|
|
1454
1095
|
}
|
|
1455
1096
|
])
|
|
1456
1097
|
};
|
|
@@ -1477,46 +1118,11 @@ function addActivity(payload) {
|
|
|
1477
1118
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1478
1119
|
{
|
|
1479
1120
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1480
|
-
paths:
|
|
1481
|
-
{ path: "order.createdDate" },
|
|
1482
|
-
{ path: "order.updatedDate" },
|
|
1483
|
-
{ path: "order.purchasedDate" },
|
|
1484
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1485
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1486
|
-
{
|
|
1487
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1488
|
-
},
|
|
1489
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1490
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1491
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1492
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1493
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1494
|
-
{ path: "order.activities.createdDate" }
|
|
1495
|
-
]
|
|
1121
|
+
paths: TRANSFORM_PATHS_0
|
|
1496
1122
|
},
|
|
1497
1123
|
{
|
|
1498
1124
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1499
|
-
paths:
|
|
1500
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1501
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1502
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1503
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1504
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1505
|
-
{
|
|
1506
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1507
|
-
},
|
|
1508
|
-
{
|
|
1509
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1510
|
-
},
|
|
1511
|
-
{
|
|
1512
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1513
|
-
},
|
|
1514
|
-
{
|
|
1515
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1516
|
-
},
|
|
1517
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1518
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1519
|
-
]
|
|
1125
|
+
paths: TRANSFORM_PATHS_1
|
|
1520
1126
|
}
|
|
1521
1127
|
])
|
|
1522
1128
|
};
|
|
@@ -1529,7 +1135,7 @@ function addActivities(payload) {
|
|
|
1529
1135
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1530
1136
|
{
|
|
1531
1137
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1532
|
-
paths:
|
|
1138
|
+
paths: TRANSFORM_PATHS_15
|
|
1533
1139
|
}
|
|
1534
1140
|
]);
|
|
1535
1141
|
const metadata = {
|
|
@@ -1549,46 +1155,11 @@ function addActivities(payload) {
|
|
|
1549
1155
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1550
1156
|
{
|
|
1551
1157
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1552
|
-
paths:
|
|
1553
|
-
{ path: "order.createdDate" },
|
|
1554
|
-
{ path: "order.updatedDate" },
|
|
1555
|
-
{ path: "order.purchasedDate" },
|
|
1556
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1557
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1558
|
-
{
|
|
1559
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1560
|
-
},
|
|
1561
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1562
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1563
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1564
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1565
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1566
|
-
{ path: "order.activities.createdDate" }
|
|
1567
|
-
]
|
|
1158
|
+
paths: TRANSFORM_PATHS_0
|
|
1568
1159
|
},
|
|
1569
1160
|
{
|
|
1570
1161
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1571
|
-
paths:
|
|
1572
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1573
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1574
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1575
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1576
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1577
|
-
{
|
|
1578
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1579
|
-
},
|
|
1580
|
-
{
|
|
1581
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1585
|
-
},
|
|
1586
|
-
{
|
|
1587
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1588
|
-
},
|
|
1589
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1590
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1591
|
-
]
|
|
1162
|
+
paths: TRANSFORM_PATHS_1
|
|
1592
1163
|
}
|
|
1593
1164
|
])
|
|
1594
1165
|
};
|
|
@@ -1615,46 +1186,11 @@ function updateActivity(payload) {
|
|
|
1615
1186
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1616
1187
|
{
|
|
1617
1188
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1618
|
-
paths:
|
|
1619
|
-
{ path: "order.createdDate" },
|
|
1620
|
-
{ path: "order.updatedDate" },
|
|
1621
|
-
{ path: "order.purchasedDate" },
|
|
1622
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1623
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1624
|
-
{
|
|
1625
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1626
|
-
},
|
|
1627
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1628
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1629
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1630
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1631
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1632
|
-
{ path: "order.activities.createdDate" }
|
|
1633
|
-
]
|
|
1189
|
+
paths: TRANSFORM_PATHS_0
|
|
1634
1190
|
},
|
|
1635
1191
|
{
|
|
1636
1192
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1637
|
-
paths:
|
|
1638
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1639
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1640
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1641
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1642
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1643
|
-
{
|
|
1644
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1645
|
-
},
|
|
1646
|
-
{
|
|
1647
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1648
|
-
},
|
|
1649
|
-
{
|
|
1650
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1651
|
-
},
|
|
1652
|
-
{
|
|
1653
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1654
|
-
},
|
|
1655
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1656
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1657
|
-
]
|
|
1193
|
+
paths: TRANSFORM_PATHS_1
|
|
1658
1194
|
}
|
|
1659
1195
|
])
|
|
1660
1196
|
};
|
|
@@ -1681,46 +1217,11 @@ function deleteActivity(payload) {
|
|
|
1681
1217
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1682
1218
|
{
|
|
1683
1219
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1684
|
-
paths:
|
|
1685
|
-
{ path: "order.createdDate" },
|
|
1686
|
-
{ path: "order.updatedDate" },
|
|
1687
|
-
{ path: "order.purchasedDate" },
|
|
1688
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1689
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1690
|
-
{
|
|
1691
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1692
|
-
},
|
|
1693
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1694
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1695
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1696
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1697
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1698
|
-
{ path: "order.activities.createdDate" }
|
|
1699
|
-
]
|
|
1220
|
+
paths: TRANSFORM_PATHS_0
|
|
1700
1221
|
},
|
|
1701
1222
|
{
|
|
1702
1223
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1703
|
-
paths:
|
|
1704
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1705
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1706
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1707
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1708
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1709
|
-
{
|
|
1710
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1711
|
-
},
|
|
1712
|
-
{
|
|
1713
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1714
|
-
},
|
|
1715
|
-
{
|
|
1716
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1717
|
-
},
|
|
1718
|
-
{
|
|
1719
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1720
|
-
},
|
|
1721
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1722
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1723
|
-
]
|
|
1224
|
+
paths: TRANSFORM_PATHS_1
|
|
1724
1225
|
}
|
|
1725
1226
|
])
|
|
1726
1227
|
};
|
|
@@ -1747,46 +1248,11 @@ function cancelOrder(payload) {
|
|
|
1747
1248
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1748
1249
|
{
|
|
1749
1250
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1750
|
-
paths:
|
|
1751
|
-
{ path: "order.createdDate" },
|
|
1752
|
-
{ path: "order.updatedDate" },
|
|
1753
|
-
{ path: "order.purchasedDate" },
|
|
1754
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1755
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1756
|
-
{
|
|
1757
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1758
|
-
},
|
|
1759
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1760
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1761
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1762
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1763
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1764
|
-
{ path: "order.activities.createdDate" }
|
|
1765
|
-
]
|
|
1251
|
+
paths: TRANSFORM_PATHS_0
|
|
1766
1252
|
},
|
|
1767
1253
|
{
|
|
1768
1254
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1769
|
-
paths:
|
|
1770
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1771
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1772
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1773
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1774
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1775
|
-
{
|
|
1776
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1777
|
-
},
|
|
1778
|
-
{
|
|
1779
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1780
|
-
},
|
|
1781
|
-
{
|
|
1782
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1783
|
-
},
|
|
1784
|
-
{
|
|
1785
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1786
|
-
},
|
|
1787
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1788
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1789
|
-
]
|
|
1255
|
+
paths: TRANSFORM_PATHS_1
|
|
1790
1256
|
}
|
|
1791
1257
|
])
|
|
1792
1258
|
};
|
|
@@ -1813,46 +1279,11 @@ function updateOrderStatus(payload) {
|
|
|
1813
1279
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1814
1280
|
{
|
|
1815
1281
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1816
|
-
paths:
|
|
1817
|
-
{ path: "order.createdDate" },
|
|
1818
|
-
{ path: "order.updatedDate" },
|
|
1819
|
-
{ path: "order.purchasedDate" },
|
|
1820
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1821
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1822
|
-
{
|
|
1823
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1824
|
-
},
|
|
1825
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1826
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1827
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1828
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1829
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1830
|
-
{ path: "order.activities.createdDate" }
|
|
1831
|
-
]
|
|
1282
|
+
paths: TRANSFORM_PATHS_0
|
|
1832
1283
|
},
|
|
1833
1284
|
{
|
|
1834
1285
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1835
|
-
paths:
|
|
1836
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1837
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1838
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1839
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1840
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1841
|
-
{
|
|
1842
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1843
|
-
},
|
|
1844
|
-
{
|
|
1845
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1846
|
-
},
|
|
1847
|
-
{
|
|
1848
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1849
|
-
},
|
|
1850
|
-
{
|
|
1851
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1852
|
-
},
|
|
1853
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1854
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1855
|
-
]
|
|
1286
|
+
paths: TRANSFORM_PATHS_1
|
|
1856
1287
|
}
|
|
1857
1288
|
])
|
|
1858
1289
|
};
|
|
@@ -1910,6 +1341,35 @@ var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
|
1910
1341
|
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
1911
1342
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
1912
1343
|
var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
|
|
1344
|
+
var TRANSFORM_PATHS_02 = [{ path: "order.lineItems.image" }];
|
|
1345
|
+
var TRANSFORM_PATHS_16 = [
|
|
1346
|
+
{ path: "order.billingInfo.address" },
|
|
1347
|
+
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
1348
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
1349
|
+
{ path: "order.recipientInfo.address" }
|
|
1350
|
+
];
|
|
1351
|
+
var TRANSFORM_PATHS_22 = [{ path: "results.item.lineItems.image" }];
|
|
1352
|
+
var TRANSFORM_PATHS_32 = [
|
|
1353
|
+
{ path: "results.item.billingInfo.address" },
|
|
1354
|
+
{ path: "results.item.shippingInfo.logistics.shippingDestination.address" },
|
|
1355
|
+
{ path: "results.item.shippingInfo.logistics.pickupDetails.address" },
|
|
1356
|
+
{ path: "results.item.recipientInfo.address" }
|
|
1357
|
+
];
|
|
1358
|
+
var TRANSFORM_PATHS_42 = [{ path: "orders.lineItems.image" }];
|
|
1359
|
+
var TRANSFORM_PATHS_52 = [
|
|
1360
|
+
{ path: "orders.billingInfo.address" },
|
|
1361
|
+
{ path: "orders.shippingInfo.logistics.shippingDestination.address" },
|
|
1362
|
+
{ path: "orders.shippingInfo.logistics.pickupDetails.address" },
|
|
1363
|
+
{ path: "orders.recipientInfo.address" }
|
|
1364
|
+
];
|
|
1365
|
+
var TRANSFORM_PATHS_62 = [{ path: "orders.order.lineItems.image" }];
|
|
1366
|
+
var TRANSFORM_PATHS_72 = [
|
|
1367
|
+
{ path: "orders.order.billingInfo.address" },
|
|
1368
|
+
{ path: "orders.order.shippingInfo.logistics.shippingDestination.address" },
|
|
1369
|
+
{ path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
|
|
1370
|
+
{ path: "orders.order.recipientInfo.address" }
|
|
1371
|
+
];
|
|
1372
|
+
var TRANSFORM_PATHS_82 = [{ path: "lineItem.image" }];
|
|
1913
1373
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
1914
1374
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
1915
1375
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -2544,16 +2004,11 @@ async function importOrder2(order) {
|
|
|
2544
2004
|
[
|
|
2545
2005
|
{
|
|
2546
2006
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2547
|
-
paths:
|
|
2007
|
+
paths: TRANSFORM_PATHS_02
|
|
2548
2008
|
},
|
|
2549
2009
|
{
|
|
2550
2010
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2551
|
-
paths:
|
|
2552
|
-
{ path: "order.billingInfo.address" },
|
|
2553
|
-
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
2554
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2555
|
-
{ path: "order.recipientInfo.address" }
|
|
2556
|
-
]
|
|
2011
|
+
paths: TRANSFORM_PATHS_16
|
|
2557
2012
|
}
|
|
2558
2013
|
]
|
|
2559
2014
|
);
|
|
@@ -2566,18 +2021,11 @@ async function importOrder2(order) {
|
|
|
2566
2021
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2567
2022
|
{
|
|
2568
2023
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2569
|
-
paths:
|
|
2024
|
+
paths: TRANSFORM_PATHS_02
|
|
2570
2025
|
},
|
|
2571
2026
|
{
|
|
2572
2027
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2573
|
-
paths:
|
|
2574
|
-
{ path: "order.billingInfo.address" },
|
|
2575
|
-
{
|
|
2576
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2577
|
-
},
|
|
2578
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2579
|
-
{ path: "order.recipientInfo.address" }
|
|
2580
|
-
]
|
|
2028
|
+
paths: TRANSFORM_PATHS_16
|
|
2581
2029
|
}
|
|
2582
2030
|
])
|
|
2583
2031
|
);
|
|
@@ -2757,18 +2205,11 @@ async function paymentCollectionMarkOrderAsPaid2(ecomOrderId, options) {
|
|
|
2757
2205
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2758
2206
|
{
|
|
2759
2207
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2760
|
-
paths:
|
|
2208
|
+
paths: TRANSFORM_PATHS_02
|
|
2761
2209
|
},
|
|
2762
2210
|
{
|
|
2763
2211
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2764
|
-
paths:
|
|
2765
|
-
{ path: "order.billingInfo.address" },
|
|
2766
|
-
{
|
|
2767
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2768
|
-
},
|
|
2769
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2770
|
-
{ path: "order.recipientInfo.address" }
|
|
2771
|
-
]
|
|
2212
|
+
paths: TRANSFORM_PATHS_16
|
|
2772
2213
|
}
|
|
2773
2214
|
])
|
|
2774
2215
|
);
|
|
@@ -2803,20 +2244,11 @@ async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
|
2803
2244
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2804
2245
|
{
|
|
2805
2246
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2806
|
-
paths:
|
|
2247
|
+
paths: TRANSFORM_PATHS_22
|
|
2807
2248
|
},
|
|
2808
2249
|
{
|
|
2809
2250
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2810
|
-
paths:
|
|
2811
|
-
{ path: "results.item.billingInfo.address" },
|
|
2812
|
-
{
|
|
2813
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2814
|
-
},
|
|
2815
|
-
{
|
|
2816
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2817
|
-
},
|
|
2818
|
-
{ path: "results.item.recipientInfo.address" }
|
|
2819
|
-
]
|
|
2251
|
+
paths: TRANSFORM_PATHS_32
|
|
2820
2252
|
}
|
|
2821
2253
|
])
|
|
2822
2254
|
);
|
|
@@ -3017,18 +2449,11 @@ async function getOrder2(_id) {
|
|
|
3017
2449
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3018
2450
|
{
|
|
3019
2451
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3020
|
-
paths:
|
|
2452
|
+
paths: TRANSFORM_PATHS_02
|
|
3021
2453
|
},
|
|
3022
2454
|
{
|
|
3023
2455
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3024
|
-
paths:
|
|
3025
|
-
{ path: "order.billingInfo.address" },
|
|
3026
|
-
{
|
|
3027
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3028
|
-
},
|
|
3029
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3030
|
-
{ path: "order.recipientInfo.address" }
|
|
3031
|
-
]
|
|
2456
|
+
paths: TRANSFORM_PATHS_16
|
|
3032
2457
|
}
|
|
3033
2458
|
])
|
|
3034
2459
|
)?.order;
|
|
@@ -3058,18 +2483,11 @@ async function searchOrders2(search) {
|
|
|
3058
2483
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3059
2484
|
{
|
|
3060
2485
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3061
|
-
paths:
|
|
2486
|
+
paths: TRANSFORM_PATHS_42
|
|
3062
2487
|
},
|
|
3063
2488
|
{
|
|
3064
2489
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3065
|
-
paths:
|
|
3066
|
-
{ path: "orders.billingInfo.address" },
|
|
3067
|
-
{
|
|
3068
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address"
|
|
3069
|
-
},
|
|
3070
|
-
{ path: "orders.shippingInfo.logistics.pickupDetails.address" },
|
|
3071
|
-
{ path: "orders.recipientInfo.address" }
|
|
3072
|
-
]
|
|
2490
|
+
paths: TRANSFORM_PATHS_52
|
|
3073
2491
|
}
|
|
3074
2492
|
])
|
|
3075
2493
|
);
|
|
@@ -3100,16 +2518,11 @@ async function createOrder2(order, options) {
|
|
|
3100
2518
|
[
|
|
3101
2519
|
{
|
|
3102
2520
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
3103
|
-
paths:
|
|
2521
|
+
paths: TRANSFORM_PATHS_02
|
|
3104
2522
|
},
|
|
3105
2523
|
{
|
|
3106
2524
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
3107
|
-
paths:
|
|
3108
|
-
{ path: "order.billingInfo.address" },
|
|
3109
|
-
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
3110
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3111
|
-
{ path: "order.recipientInfo.address" }
|
|
3112
|
-
]
|
|
2525
|
+
paths: TRANSFORM_PATHS_16
|
|
3113
2526
|
}
|
|
3114
2527
|
]
|
|
3115
2528
|
);
|
|
@@ -3122,18 +2535,11 @@ async function createOrder2(order, options) {
|
|
|
3122
2535
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3123
2536
|
{
|
|
3124
2537
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3125
|
-
paths:
|
|
2538
|
+
paths: TRANSFORM_PATHS_02
|
|
3126
2539
|
},
|
|
3127
2540
|
{
|
|
3128
2541
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3129
|
-
paths:
|
|
3130
|
-
{ path: "order.billingInfo.address" },
|
|
3131
|
-
{
|
|
3132
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3133
|
-
},
|
|
3134
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3135
|
-
{ path: "order.recipientInfo.address" }
|
|
3136
|
-
]
|
|
2542
|
+
paths: TRANSFORM_PATHS_16
|
|
3137
2543
|
}
|
|
3138
2544
|
])
|
|
3139
2545
|
)?.order;
|
|
@@ -3158,16 +2564,11 @@ async function updateOrder2(_id, order) {
|
|
|
3158
2564
|
[
|
|
3159
2565
|
{
|
|
3160
2566
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
3161
|
-
paths:
|
|
2567
|
+
paths: TRANSFORM_PATHS_02
|
|
3162
2568
|
},
|
|
3163
2569
|
{
|
|
3164
2570
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
3165
|
-
paths:
|
|
3166
|
-
{ path: "order.billingInfo.address" },
|
|
3167
|
-
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
3168
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3169
|
-
{ path: "order.recipientInfo.address" }
|
|
3170
|
-
]
|
|
2571
|
+
paths: TRANSFORM_PATHS_16
|
|
3171
2572
|
}
|
|
3172
2573
|
]
|
|
3173
2574
|
);
|
|
@@ -3180,18 +2581,11 @@ async function updateOrder2(_id, order) {
|
|
|
3180
2581
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3181
2582
|
{
|
|
3182
2583
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3183
|
-
paths:
|
|
2584
|
+
paths: TRANSFORM_PATHS_02
|
|
3184
2585
|
},
|
|
3185
2586
|
{
|
|
3186
2587
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3187
|
-
paths:
|
|
3188
|
-
{ path: "order.billingInfo.address" },
|
|
3189
|
-
{
|
|
3190
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3191
|
-
},
|
|
3192
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3193
|
-
{ path: "order.recipientInfo.address" }
|
|
3194
|
-
]
|
|
2588
|
+
paths: TRANSFORM_PATHS_16
|
|
3195
2589
|
}
|
|
3196
2590
|
])
|
|
3197
2591
|
)?.order;
|
|
@@ -3219,18 +2613,11 @@ async function bulkUpdateOrders2(orders, options) {
|
|
|
3219
2613
|
[
|
|
3220
2614
|
{
|
|
3221
2615
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
3222
|
-
paths:
|
|
2616
|
+
paths: TRANSFORM_PATHS_62
|
|
3223
2617
|
},
|
|
3224
2618
|
{
|
|
3225
2619
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
3226
|
-
paths:
|
|
3227
|
-
{ path: "orders.order.billingInfo.address" },
|
|
3228
|
-
{
|
|
3229
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address"
|
|
3230
|
-
},
|
|
3231
|
-
{ path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3232
|
-
{ path: "orders.order.recipientInfo.address" }
|
|
3233
|
-
]
|
|
2620
|
+
paths: TRANSFORM_PATHS_72
|
|
3234
2621
|
}
|
|
3235
2622
|
]
|
|
3236
2623
|
);
|
|
@@ -3243,20 +2630,11 @@ async function bulkUpdateOrders2(orders, options) {
|
|
|
3243
2630
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3244
2631
|
{
|
|
3245
2632
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3246
|
-
paths:
|
|
2633
|
+
paths: TRANSFORM_PATHS_22
|
|
3247
2634
|
},
|
|
3248
2635
|
{
|
|
3249
2636
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3250
|
-
paths:
|
|
3251
|
-
{ path: "results.item.billingInfo.address" },
|
|
3252
|
-
{
|
|
3253
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
3254
|
-
},
|
|
3255
|
-
{
|
|
3256
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
3257
|
-
},
|
|
3258
|
-
{ path: "results.item.recipientInfo.address" }
|
|
3259
|
-
]
|
|
2637
|
+
paths: TRANSFORM_PATHS_32
|
|
3260
2638
|
}
|
|
3261
2639
|
])
|
|
3262
2640
|
);
|
|
@@ -3287,7 +2665,7 @@ async function updateOrderLineItem2(identifiers, lineItem) {
|
|
|
3287
2665
|
[
|
|
3288
2666
|
{
|
|
3289
2667
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
3290
|
-
paths:
|
|
2668
|
+
paths: TRANSFORM_PATHS_82
|
|
3291
2669
|
}
|
|
3292
2670
|
]
|
|
3293
2671
|
);
|
|
@@ -3300,18 +2678,11 @@ async function updateOrderLineItem2(identifiers, lineItem) {
|
|
|
3300
2678
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3301
2679
|
{
|
|
3302
2680
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3303
|
-
paths:
|
|
2681
|
+
paths: TRANSFORM_PATHS_02
|
|
3304
2682
|
},
|
|
3305
2683
|
{
|
|
3306
2684
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3307
|
-
paths:
|
|
3308
|
-
{ path: "order.billingInfo.address" },
|
|
3309
|
-
{
|
|
3310
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3311
|
-
},
|
|
3312
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3313
|
-
{ path: "order.recipientInfo.address" }
|
|
3314
|
-
]
|
|
2685
|
+
paths: TRANSFORM_PATHS_16
|
|
3315
2686
|
}
|
|
3316
2687
|
])
|
|
3317
2688
|
);
|
|
@@ -3347,18 +2718,11 @@ async function addActivity2(_id, activity) {
|
|
|
3347
2718
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3348
2719
|
{
|
|
3349
2720
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3350
|
-
paths:
|
|
2721
|
+
paths: TRANSFORM_PATHS_02
|
|
3351
2722
|
},
|
|
3352
2723
|
{
|
|
3353
2724
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3354
|
-
paths:
|
|
3355
|
-
{ path: "order.billingInfo.address" },
|
|
3356
|
-
{
|
|
3357
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3358
|
-
},
|
|
3359
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3360
|
-
{ path: "order.recipientInfo.address" }
|
|
3361
|
-
]
|
|
2725
|
+
paths: TRANSFORM_PATHS_16
|
|
3362
2726
|
}
|
|
3363
2727
|
])
|
|
3364
2728
|
);
|
|
@@ -3391,18 +2755,11 @@ async function addActivities2(orderId, options) {
|
|
|
3391
2755
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3392
2756
|
{
|
|
3393
2757
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3394
|
-
paths:
|
|
2758
|
+
paths: TRANSFORM_PATHS_02
|
|
3395
2759
|
},
|
|
3396
2760
|
{
|
|
3397
2761
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3398
|
-
paths:
|
|
3399
|
-
{ path: "order.billingInfo.address" },
|
|
3400
|
-
{
|
|
3401
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3402
|
-
},
|
|
3403
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3404
|
-
{ path: "order.recipientInfo.address" }
|
|
3405
|
-
]
|
|
2762
|
+
paths: TRANSFORM_PATHS_16
|
|
3406
2763
|
}
|
|
3407
2764
|
])
|
|
3408
2765
|
);
|
|
@@ -3439,18 +2796,11 @@ async function updateActivity2(identifiers, activity) {
|
|
|
3439
2796
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3440
2797
|
{
|
|
3441
2798
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3442
|
-
paths:
|
|
2799
|
+
paths: TRANSFORM_PATHS_02
|
|
3443
2800
|
},
|
|
3444
2801
|
{
|
|
3445
2802
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3446
|
-
paths:
|
|
3447
|
-
{ path: "order.billingInfo.address" },
|
|
3448
|
-
{
|
|
3449
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3450
|
-
},
|
|
3451
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3452
|
-
{ path: "order.recipientInfo.address" }
|
|
3453
|
-
]
|
|
2803
|
+
paths: TRANSFORM_PATHS_16
|
|
3454
2804
|
}
|
|
3455
2805
|
])
|
|
3456
2806
|
);
|
|
@@ -3487,18 +2837,11 @@ async function deleteActivity2(identifiers) {
|
|
|
3487
2837
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3488
2838
|
{
|
|
3489
2839
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3490
|
-
paths:
|
|
2840
|
+
paths: TRANSFORM_PATHS_02
|
|
3491
2841
|
},
|
|
3492
2842
|
{
|
|
3493
2843
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3494
|
-
paths:
|
|
3495
|
-
{ path: "order.billingInfo.address" },
|
|
3496
|
-
{
|
|
3497
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3498
|
-
},
|
|
3499
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3500
|
-
{ path: "order.recipientInfo.address" }
|
|
3501
|
-
]
|
|
2844
|
+
paths: TRANSFORM_PATHS_16
|
|
3502
2845
|
}
|
|
3503
2846
|
])
|
|
3504
2847
|
);
|
|
@@ -3536,18 +2879,11 @@ async function cancelOrder2(_id, options) {
|
|
|
3536
2879
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3537
2880
|
{
|
|
3538
2881
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3539
|
-
paths:
|
|
2882
|
+
paths: TRANSFORM_PATHS_02
|
|
3540
2883
|
},
|
|
3541
2884
|
{
|
|
3542
2885
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3543
|
-
paths:
|
|
3544
|
-
{ path: "order.billingInfo.address" },
|
|
3545
|
-
{
|
|
3546
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3547
|
-
},
|
|
3548
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3549
|
-
{ path: "order.recipientInfo.address" }
|
|
3550
|
-
]
|
|
2886
|
+
paths: TRANSFORM_PATHS_16
|
|
3551
2887
|
}
|
|
3552
2888
|
])
|
|
3553
2889
|
);
|
|
@@ -3585,18 +2921,11 @@ async function updateOrderStatus2(orderId, status) {
|
|
|
3585
2921
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3586
2922
|
{
|
|
3587
2923
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3588
|
-
paths:
|
|
2924
|
+
paths: TRANSFORM_PATHS_02
|
|
3589
2925
|
},
|
|
3590
2926
|
{
|
|
3591
2927
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3592
|
-
paths:
|
|
3593
|
-
{ path: "order.billingInfo.address" },
|
|
3594
|
-
{
|
|
3595
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3596
|
-
},
|
|
3597
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3598
|
-
{ path: "order.recipientInfo.address" }
|
|
3599
|
-
]
|
|
2928
|
+
paths: TRANSFORM_PATHS_16
|
|
3600
2929
|
}
|
|
3601
2930
|
])
|
|
3602
2931
|
);
|
|
@@ -3678,6 +3007,143 @@ async function bulkUpdateOrderTags2(orderIds, options) {
|
|
|
3678
3007
|
}
|
|
3679
3008
|
|
|
3680
3009
|
// src/ecom-v1-order-orders.public.ts
|
|
3010
|
+
var TRANSFORM_PATHS_03 = [
|
|
3011
|
+
{ path: "data.order.createdDate" },
|
|
3012
|
+
{ path: "data.order.updatedDate" },
|
|
3013
|
+
{ path: "data.order.purchasedDate" },
|
|
3014
|
+
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
3015
|
+
{
|
|
3016
|
+
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3017
|
+
},
|
|
3018
|
+
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
3019
|
+
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
3020
|
+
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
3021
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3022
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3023
|
+
{ path: "data.order.activities.createdDate" },
|
|
3024
|
+
{ path: "metadata.eventTime" }
|
|
3025
|
+
];
|
|
3026
|
+
var TRANSFORM_PATHS_17 = [{ path: "data.order.lineItems.image" }];
|
|
3027
|
+
var TRANSFORM_PATHS_23 = [
|
|
3028
|
+
{ path: "data.order.lineItems.physicalProperties.weight" }
|
|
3029
|
+
];
|
|
3030
|
+
var TRANSFORM_PATHS_33 = [
|
|
3031
|
+
{ path: "data.order.billingInfo.address" },
|
|
3032
|
+
{ path: "data.order.shippingInfo.logistics.shippingDestination.address" },
|
|
3033
|
+
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3034
|
+
{ path: "data.order.recipientInfo.address" }
|
|
3035
|
+
];
|
|
3036
|
+
var TRANSFORM_PATHS_43 = [
|
|
3037
|
+
{ path: "data.commitDate" },
|
|
3038
|
+
{ path: "data.order.createdDate" },
|
|
3039
|
+
{ path: "data.order.updatedDate" },
|
|
3040
|
+
{ path: "data.order.purchasedDate" },
|
|
3041
|
+
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
3042
|
+
{
|
|
3043
|
+
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3044
|
+
},
|
|
3045
|
+
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
3046
|
+
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
3047
|
+
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
3048
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3049
|
+
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3050
|
+
{ path: "data.order.activities.createdDate" },
|
|
3051
|
+
{ path: "data.changes.changedShippingInfo.logistics.deliverByDate" },
|
|
3052
|
+
{ path: "data.changes.changedShippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3053
|
+
{ path: "data.changes.changedShippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3054
|
+
{ path: "data.changes.lineItems.lineItemRemoved.digitalFile.expirationDate" },
|
|
3055
|
+
{
|
|
3056
|
+
path: "data.changes.lineItems.lineItemRemoved.subscriptionInfo.subscriptionSettings.startDate"
|
|
3057
|
+
},
|
|
3058
|
+
{ path: "metadata.eventTime" }
|
|
3059
|
+
];
|
|
3060
|
+
var TRANSFORM_PATHS_53 = [
|
|
3061
|
+
{ path: "data.order.lineItems.image" },
|
|
3062
|
+
{ path: "data.changes.lineItems.lineItemRemoved.image" }
|
|
3063
|
+
];
|
|
3064
|
+
var TRANSFORM_PATHS_63 = [
|
|
3065
|
+
{ path: "data.order.lineItems.physicalProperties.weight" },
|
|
3066
|
+
{ path: "data.changes.lineItems.lineItemRemoved.physicalProperties.weight" }
|
|
3067
|
+
];
|
|
3068
|
+
var TRANSFORM_PATHS_73 = [
|
|
3069
|
+
{ path: "data.order.billingInfo.address" },
|
|
3070
|
+
{ path: "data.order.shippingInfo.logistics.shippingDestination.address" },
|
|
3071
|
+
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3072
|
+
{ path: "data.order.recipientInfo.address" },
|
|
3073
|
+
{
|
|
3074
|
+
path: "data.changes.changedShippingInfo.logistics.shippingDestination.address"
|
|
3075
|
+
},
|
|
3076
|
+
{ path: "data.changes.changedShippingInfo.logistics.pickupDetails.address" }
|
|
3077
|
+
];
|
|
3078
|
+
var TRANSFORM_PATHS_83 = [
|
|
3079
|
+
{ path: "entity.createdDate" },
|
|
3080
|
+
{ path: "entity.updatedDate" },
|
|
3081
|
+
{ path: "entity.purchasedDate" },
|
|
3082
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
3083
|
+
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
3084
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
3085
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
3086
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
3087
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3088
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3089
|
+
{ path: "entity.activities.createdDate" },
|
|
3090
|
+
{ path: "metadata.eventTime" }
|
|
3091
|
+
];
|
|
3092
|
+
var TRANSFORM_PATHS_92 = [{ path: "entity.lineItems.image" }];
|
|
3093
|
+
var TRANSFORM_PATHS_102 = [
|
|
3094
|
+
{ path: "entity.lineItems.physicalProperties.weight" }
|
|
3095
|
+
];
|
|
3096
|
+
var TRANSFORM_PATHS_112 = [
|
|
3097
|
+
{ path: "entity.billingInfo.address" },
|
|
3098
|
+
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
3099
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
3100
|
+
{ path: "entity.recipientInfo.address" }
|
|
3101
|
+
];
|
|
3102
|
+
var TRANSFORM_PATHS_122 = [
|
|
3103
|
+
{ path: "entity.createdDate" },
|
|
3104
|
+
{ path: "entity.updatedDate" },
|
|
3105
|
+
{ path: "entity.purchasedDate" },
|
|
3106
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
3107
|
+
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
3108
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
3109
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
3110
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
3111
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3112
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3113
|
+
{ path: "entity.activities.createdDate" },
|
|
3114
|
+
{ path: "metadata.eventTime" },
|
|
3115
|
+
{ path: "modifiedFields.createdDate" },
|
|
3116
|
+
{ path: "modifiedFields.updatedDate" },
|
|
3117
|
+
{ path: "modifiedFields.purchasedDate" },
|
|
3118
|
+
{ path: "modifiedFields.lineItems.digitalFile.expirationDate" },
|
|
3119
|
+
{
|
|
3120
|
+
path: "modifiedFields.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3121
|
+
},
|
|
3122
|
+
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
3123
|
+
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
3124
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
|
|
3125
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3126
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3127
|
+
{ path: "modifiedFields.activities.createdDate" }
|
|
3128
|
+
];
|
|
3129
|
+
var TRANSFORM_PATHS_132 = [
|
|
3130
|
+
{ path: "entity.lineItems.image" },
|
|
3131
|
+
{ path: "modifiedFields.lineItems.image" }
|
|
3132
|
+
];
|
|
3133
|
+
var TRANSFORM_PATHS_142 = [
|
|
3134
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
3135
|
+
{ path: "modifiedFields.lineItems.physicalProperties.weight" }
|
|
3136
|
+
];
|
|
3137
|
+
var TRANSFORM_PATHS_152 = [
|
|
3138
|
+
{ path: "entity.billingInfo.address" },
|
|
3139
|
+
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
3140
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
3141
|
+
{ path: "entity.recipientInfo.address" },
|
|
3142
|
+
{ path: "modifiedFields.billingInfo.address" },
|
|
3143
|
+
{ path: "modifiedFields.shippingInfo.logistics.shippingDestination.address" },
|
|
3144
|
+
{ path: "modifiedFields.shippingInfo.logistics.pickupDetails.address" },
|
|
3145
|
+
{ path: "modifiedFields.recipientInfo.address" }
|
|
3146
|
+
];
|
|
3681
3147
|
function importOrder3(httpClient) {
|
|
3682
3148
|
return (order) => importOrder2(
|
|
3683
3149
|
order,
|
|
@@ -3904,41 +3370,19 @@ var onOrderApproved = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
3904
3370
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
3905
3371
|
{
|
|
3906
3372
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
3907
|
-
paths:
|
|
3908
|
-
{ path: "data.order.createdDate" },
|
|
3909
|
-
{ path: "data.order.updatedDate" },
|
|
3910
|
-
{ path: "data.order.purchasedDate" },
|
|
3911
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
3912
|
-
{
|
|
3913
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3914
|
-
},
|
|
3915
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
3916
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
3917
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
3918
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3919
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3920
|
-
{ path: "data.order.activities.createdDate" },
|
|
3921
|
-
{ path: "metadata.eventTime" }
|
|
3922
|
-
]
|
|
3373
|
+
paths: TRANSFORM_PATHS_03
|
|
3923
3374
|
},
|
|
3924
3375
|
{
|
|
3925
3376
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
3926
|
-
paths:
|
|
3377
|
+
paths: TRANSFORM_PATHS_17
|
|
3927
3378
|
},
|
|
3928
3379
|
{
|
|
3929
3380
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
3930
|
-
paths:
|
|
3381
|
+
paths: TRANSFORM_PATHS_23
|
|
3931
3382
|
},
|
|
3932
3383
|
{
|
|
3933
3384
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
3934
|
-
paths:
|
|
3935
|
-
{ path: "data.order.billingInfo.address" },
|
|
3936
|
-
{
|
|
3937
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
3938
|
-
},
|
|
3939
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3940
|
-
{ path: "data.order.recipientInfo.address" }
|
|
3941
|
-
]
|
|
3385
|
+
paths: TRANSFORM_PATHS_33
|
|
3942
3386
|
}
|
|
3943
3387
|
])
|
|
3944
3388
|
)
|
|
@@ -3950,41 +3394,19 @@ var onOrderCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
3950
3394
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
3951
3395
|
{
|
|
3952
3396
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
3953
|
-
paths:
|
|
3954
|
-
{ path: "data.order.createdDate" },
|
|
3955
|
-
{ path: "data.order.updatedDate" },
|
|
3956
|
-
{ path: "data.order.purchasedDate" },
|
|
3957
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
3958
|
-
{
|
|
3959
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
3960
|
-
},
|
|
3961
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
3962
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
3963
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
3964
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
3965
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
3966
|
-
{ path: "data.order.activities.createdDate" },
|
|
3967
|
-
{ path: "metadata.eventTime" }
|
|
3968
|
-
]
|
|
3397
|
+
paths: TRANSFORM_PATHS_03
|
|
3969
3398
|
},
|
|
3970
3399
|
{
|
|
3971
3400
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
3972
|
-
paths:
|
|
3401
|
+
paths: TRANSFORM_PATHS_17
|
|
3973
3402
|
},
|
|
3974
3403
|
{
|
|
3975
3404
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
3976
|
-
paths:
|
|
3405
|
+
paths: TRANSFORM_PATHS_23
|
|
3977
3406
|
},
|
|
3978
3407
|
{
|
|
3979
3408
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
3980
|
-
paths:
|
|
3981
|
-
{ path: "data.order.billingInfo.address" },
|
|
3982
|
-
{
|
|
3983
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
3984
|
-
},
|
|
3985
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3986
|
-
{ path: "data.order.recipientInfo.address" }
|
|
3987
|
-
]
|
|
3409
|
+
paths: TRANSFORM_PATHS_33
|
|
3988
3410
|
}
|
|
3989
3411
|
])
|
|
3990
3412
|
)
|
|
@@ -3996,71 +3418,19 @@ var onOrderCommitted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
3996
3418
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
3997
3419
|
{
|
|
3998
3420
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
3999
|
-
paths:
|
|
4000
|
-
{ path: "data.commitDate" },
|
|
4001
|
-
{ path: "data.order.createdDate" },
|
|
4002
|
-
{ path: "data.order.updatedDate" },
|
|
4003
|
-
{ path: "data.order.purchasedDate" },
|
|
4004
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
4005
|
-
{
|
|
4006
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4007
|
-
},
|
|
4008
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
4009
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
4010
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
4011
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4012
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4013
|
-
{ path: "data.order.activities.createdDate" },
|
|
4014
|
-
{
|
|
4015
|
-
path: "data.changes.changedShippingInfo.logistics.deliverByDate"
|
|
4016
|
-
},
|
|
4017
|
-
{
|
|
4018
|
-
path: "data.changes.changedShippingInfo.logistics.deliveryTimeSlot.from"
|
|
4019
|
-
},
|
|
4020
|
-
{
|
|
4021
|
-
path: "data.changes.changedShippingInfo.logistics.deliveryTimeSlot.to"
|
|
4022
|
-
},
|
|
4023
|
-
{
|
|
4024
|
-
path: "data.changes.lineItems.lineItemRemoved.digitalFile.expirationDate"
|
|
4025
|
-
},
|
|
4026
|
-
{
|
|
4027
|
-
path: "data.changes.lineItems.lineItemRemoved.subscriptionInfo.subscriptionSettings.startDate"
|
|
4028
|
-
},
|
|
4029
|
-
{ path: "metadata.eventTime" }
|
|
4030
|
-
]
|
|
3421
|
+
paths: TRANSFORM_PATHS_43
|
|
4031
3422
|
},
|
|
4032
3423
|
{
|
|
4033
3424
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
4034
|
-
paths:
|
|
4035
|
-
{ path: "data.order.lineItems.image" },
|
|
4036
|
-
{ path: "data.changes.lineItems.lineItemRemoved.image" }
|
|
4037
|
-
]
|
|
3425
|
+
paths: TRANSFORM_PATHS_53
|
|
4038
3426
|
},
|
|
4039
3427
|
{
|
|
4040
3428
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
4041
|
-
paths:
|
|
4042
|
-
{ path: "data.order.lineItems.physicalProperties.weight" },
|
|
4043
|
-
{
|
|
4044
|
-
path: "data.changes.lineItems.lineItemRemoved.physicalProperties.weight"
|
|
4045
|
-
}
|
|
4046
|
-
]
|
|
3429
|
+
paths: TRANSFORM_PATHS_63
|
|
4047
3430
|
},
|
|
4048
3431
|
{
|
|
4049
3432
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
4050
|
-
paths:
|
|
4051
|
-
{ path: "data.order.billingInfo.address" },
|
|
4052
|
-
{
|
|
4053
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
4054
|
-
},
|
|
4055
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
4056
|
-
{ path: "data.order.recipientInfo.address" },
|
|
4057
|
-
{
|
|
4058
|
-
path: "data.changes.changedShippingInfo.logistics.shippingDestination.address"
|
|
4059
|
-
},
|
|
4060
|
-
{
|
|
4061
|
-
path: "data.changes.changedShippingInfo.logistics.pickupDetails.address"
|
|
4062
|
-
}
|
|
4063
|
-
]
|
|
3433
|
+
paths: TRANSFORM_PATHS_73
|
|
4064
3434
|
}
|
|
4065
3435
|
])
|
|
4066
3436
|
)
|
|
@@ -4072,41 +3442,19 @@ var onOrderCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
4072
3442
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
4073
3443
|
{
|
|
4074
3444
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
4075
|
-
paths:
|
|
4076
|
-
{ path: "entity.createdDate" },
|
|
4077
|
-
{ path: "entity.updatedDate" },
|
|
4078
|
-
{ path: "entity.purchasedDate" },
|
|
4079
|
-
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
4080
|
-
{
|
|
4081
|
-
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4082
|
-
},
|
|
4083
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
4084
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
4085
|
-
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
4086
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4087
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4088
|
-
{ path: "entity.activities.createdDate" },
|
|
4089
|
-
{ path: "metadata.eventTime" }
|
|
4090
|
-
]
|
|
3445
|
+
paths: TRANSFORM_PATHS_83
|
|
4091
3446
|
},
|
|
4092
3447
|
{
|
|
4093
3448
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
4094
|
-
paths:
|
|
3449
|
+
paths: TRANSFORM_PATHS_92
|
|
4095
3450
|
},
|
|
4096
3451
|
{
|
|
4097
3452
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
4098
|
-
paths:
|
|
3453
|
+
paths: TRANSFORM_PATHS_102
|
|
4099
3454
|
},
|
|
4100
3455
|
{
|
|
4101
3456
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
4102
|
-
paths:
|
|
4103
|
-
{ path: "entity.billingInfo.address" },
|
|
4104
|
-
{
|
|
4105
|
-
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
4106
|
-
},
|
|
4107
|
-
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
4108
|
-
{ path: "entity.recipientInfo.address" }
|
|
4109
|
-
]
|
|
3457
|
+
paths: TRANSFORM_PATHS_112
|
|
4110
3458
|
}
|
|
4111
3459
|
])
|
|
4112
3460
|
)
|
|
@@ -4118,41 +3466,19 @@ var onOrderFulfilled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
4118
3466
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
4119
3467
|
{
|
|
4120
3468
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
4121
|
-
paths:
|
|
4122
|
-
{ path: "data.order.createdDate" },
|
|
4123
|
-
{ path: "data.order.updatedDate" },
|
|
4124
|
-
{ path: "data.order.purchasedDate" },
|
|
4125
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
4126
|
-
{
|
|
4127
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4128
|
-
},
|
|
4129
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
4130
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
4131
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
4132
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4133
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4134
|
-
{ path: "data.order.activities.createdDate" },
|
|
4135
|
-
{ path: "metadata.eventTime" }
|
|
4136
|
-
]
|
|
3469
|
+
paths: TRANSFORM_PATHS_03
|
|
4137
3470
|
},
|
|
4138
3471
|
{
|
|
4139
3472
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
4140
|
-
paths:
|
|
3473
|
+
paths: TRANSFORM_PATHS_17
|
|
4141
3474
|
},
|
|
4142
3475
|
{
|
|
4143
3476
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
4144
|
-
paths:
|
|
3477
|
+
paths: TRANSFORM_PATHS_23
|
|
4145
3478
|
},
|
|
4146
3479
|
{
|
|
4147
3480
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
4148
|
-
paths:
|
|
4149
|
-
{ path: "data.order.billingInfo.address" },
|
|
4150
|
-
{
|
|
4151
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
4152
|
-
},
|
|
4153
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
4154
|
-
{ path: "data.order.recipientInfo.address" }
|
|
4155
|
-
]
|
|
3481
|
+
paths: TRANSFORM_PATHS_33
|
|
4156
3482
|
}
|
|
4157
3483
|
])
|
|
4158
3484
|
)
|
|
@@ -4164,41 +3490,19 @@ var onOrderImported = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
4164
3490
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
4165
3491
|
{
|
|
4166
3492
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
4167
|
-
paths:
|
|
4168
|
-
{ path: "data.order.createdDate" },
|
|
4169
|
-
{ path: "data.order.updatedDate" },
|
|
4170
|
-
{ path: "data.order.purchasedDate" },
|
|
4171
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
4172
|
-
{
|
|
4173
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4174
|
-
},
|
|
4175
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
4176
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
4177
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
4178
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4179
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4180
|
-
{ path: "data.order.activities.createdDate" },
|
|
4181
|
-
{ path: "metadata.eventTime" }
|
|
4182
|
-
]
|
|
3493
|
+
paths: TRANSFORM_PATHS_03
|
|
4183
3494
|
},
|
|
4184
3495
|
{
|
|
4185
3496
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
4186
|
-
paths:
|
|
3497
|
+
paths: TRANSFORM_PATHS_17
|
|
4187
3498
|
},
|
|
4188
3499
|
{
|
|
4189
3500
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
4190
|
-
paths:
|
|
3501
|
+
paths: TRANSFORM_PATHS_23
|
|
4191
3502
|
},
|
|
4192
3503
|
{
|
|
4193
3504
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
4194
|
-
paths:
|
|
4195
|
-
{ path: "data.order.billingInfo.address" },
|
|
4196
|
-
{
|
|
4197
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
4198
|
-
},
|
|
4199
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
4200
|
-
{ path: "data.order.recipientInfo.address" }
|
|
4201
|
-
]
|
|
3505
|
+
paths: TRANSFORM_PATHS_33
|
|
4202
3506
|
}
|
|
4203
3507
|
])
|
|
4204
3508
|
)
|
|
@@ -4210,41 +3514,19 @@ var onOrderImportedOrderDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefi
|
|
|
4210
3514
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
4211
3515
|
{
|
|
4212
3516
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
4213
|
-
paths:
|
|
4214
|
-
{ path: "data.order.createdDate" },
|
|
4215
|
-
{ path: "data.order.updatedDate" },
|
|
4216
|
-
{ path: "data.order.purchasedDate" },
|
|
4217
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
4218
|
-
{
|
|
4219
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4220
|
-
},
|
|
4221
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
4222
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
4223
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
4224
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4225
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4226
|
-
{ path: "data.order.activities.createdDate" },
|
|
4227
|
-
{ path: "metadata.eventTime" }
|
|
4228
|
-
]
|
|
3517
|
+
paths: TRANSFORM_PATHS_03
|
|
4229
3518
|
},
|
|
4230
3519
|
{
|
|
4231
3520
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
4232
|
-
paths:
|
|
3521
|
+
paths: TRANSFORM_PATHS_17
|
|
4233
3522
|
},
|
|
4234
3523
|
{
|
|
4235
3524
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
4236
|
-
paths:
|
|
3525
|
+
paths: TRANSFORM_PATHS_23
|
|
4237
3526
|
},
|
|
4238
3527
|
{
|
|
4239
3528
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
4240
|
-
paths:
|
|
4241
|
-
{ path: "data.order.billingInfo.address" },
|
|
4242
|
-
{
|
|
4243
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
4244
|
-
},
|
|
4245
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
4246
|
-
{ path: "data.order.recipientInfo.address" }
|
|
4247
|
-
]
|
|
3529
|
+
paths: TRANSFORM_PATHS_33
|
|
4248
3530
|
}
|
|
4249
3531
|
])
|
|
4250
3532
|
)
|
|
@@ -4256,41 +3538,19 @@ var onOrderPaymentStatusUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefi
|
|
|
4256
3538
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
4257
3539
|
{
|
|
4258
3540
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
4259
|
-
paths:
|
|
4260
|
-
{ path: "data.order.createdDate" },
|
|
4261
|
-
{ path: "data.order.updatedDate" },
|
|
4262
|
-
{ path: "data.order.purchasedDate" },
|
|
4263
|
-
{ path: "data.order.lineItems.digitalFile.expirationDate" },
|
|
4264
|
-
{
|
|
4265
|
-
path: "data.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4266
|
-
},
|
|
4267
|
-
{ path: "data.order.lineItems.serviceProperties.scheduledDate" },
|
|
4268
|
-
{ path: "data.order.lineItems.serviceProperties.endDate" },
|
|
4269
|
-
{ path: "data.order.shippingInfo.logistics.deliverByDate" },
|
|
4270
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4271
|
-
{ path: "data.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4272
|
-
{ path: "data.order.activities.createdDate" },
|
|
4273
|
-
{ path: "metadata.eventTime" }
|
|
4274
|
-
]
|
|
3541
|
+
paths: TRANSFORM_PATHS_03
|
|
4275
3542
|
},
|
|
4276
3543
|
{
|
|
4277
3544
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
4278
|
-
paths:
|
|
3545
|
+
paths: TRANSFORM_PATHS_17
|
|
4279
3546
|
},
|
|
4280
3547
|
{
|
|
4281
3548
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
4282
|
-
paths:
|
|
3549
|
+
paths: TRANSFORM_PATHS_23
|
|
4283
3550
|
},
|
|
4284
3551
|
{
|
|
4285
3552
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
4286
|
-
paths:
|
|
4287
|
-
{ path: "data.order.billingInfo.address" },
|
|
4288
|
-
{
|
|
4289
|
-
path: "data.order.shippingInfo.logistics.shippingDestination.address"
|
|
4290
|
-
},
|
|
4291
|
-
{ path: "data.order.shippingInfo.logistics.pickupDetails.address" },
|
|
4292
|
-
{ path: "data.order.recipientInfo.address" }
|
|
4293
|
-
]
|
|
3553
|
+
paths: TRANSFORM_PATHS_33
|
|
4294
3554
|
}
|
|
4295
3555
|
])
|
|
4296
3556
|
)
|
|
@@ -4302,74 +3562,19 @@ var onOrderUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
4302
3562
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
4303
3563
|
{
|
|
4304
3564
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
4305
|
-
paths:
|
|
4306
|
-
{ path: "entity.createdDate" },
|
|
4307
|
-
{ path: "entity.updatedDate" },
|
|
4308
|
-
{ path: "entity.purchasedDate" },
|
|
4309
|
-
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
4310
|
-
{
|
|
4311
|
-
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4312
|
-
},
|
|
4313
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
4314
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
4315
|
-
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
4316
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
4317
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
4318
|
-
{ path: "entity.activities.createdDate" },
|
|
4319
|
-
{ path: "metadata.eventTime" },
|
|
4320
|
-
{ path: "modifiedFields.createdDate" },
|
|
4321
|
-
{ path: "modifiedFields.updatedDate" },
|
|
4322
|
-
{ path: "modifiedFields.purchasedDate" },
|
|
4323
|
-
{ path: "modifiedFields.lineItems.digitalFile.expirationDate" },
|
|
4324
|
-
{
|
|
4325
|
-
path: "modifiedFields.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
4326
|
-
},
|
|
4327
|
-
{
|
|
4328
|
-
path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
|
|
4329
|
-
},
|
|
4330
|
-
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
4331
|
-
{ path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
|
|
4332
|
-
{
|
|
4333
|
-
path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
4334
|
-
},
|
|
4335
|
-
{
|
|
4336
|
-
path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
4337
|
-
},
|
|
4338
|
-
{ path: "modifiedFields.activities.createdDate" }
|
|
4339
|
-
]
|
|
3565
|
+
paths: TRANSFORM_PATHS_122
|
|
4340
3566
|
},
|
|
4341
3567
|
{
|
|
4342
3568
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
4343
|
-
paths:
|
|
4344
|
-
{ path: "entity.lineItems.image" },
|
|
4345
|
-
{ path: "modifiedFields.lineItems.image" }
|
|
4346
|
-
]
|
|
3569
|
+
paths: TRANSFORM_PATHS_132
|
|
4347
3570
|
},
|
|
4348
3571
|
{
|
|
4349
3572
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
4350
|
-
paths:
|
|
4351
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
4352
|
-
{ path: "modifiedFields.lineItems.physicalProperties.weight" }
|
|
4353
|
-
]
|
|
3573
|
+
paths: TRANSFORM_PATHS_142
|
|
4354
3574
|
},
|
|
4355
3575
|
{
|
|
4356
3576
|
transformFn: import_address3.transformRESTAddressToSDKAddress,
|
|
4357
|
-
paths:
|
|
4358
|
-
{ path: "entity.billingInfo.address" },
|
|
4359
|
-
{
|
|
4360
|
-
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
4361
|
-
},
|
|
4362
|
-
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
4363
|
-
{ path: "entity.recipientInfo.address" },
|
|
4364
|
-
{ path: "modifiedFields.billingInfo.address" },
|
|
4365
|
-
{
|
|
4366
|
-
path: "modifiedFields.shippingInfo.logistics.shippingDestination.address"
|
|
4367
|
-
},
|
|
4368
|
-
{
|
|
4369
|
-
path: "modifiedFields.shippingInfo.logistics.pickupDetails.address"
|
|
4370
|
-
},
|
|
4371
|
-
{ path: "modifiedFields.recipientInfo.address" }
|
|
4372
|
-
]
|
|
3577
|
+
paths: TRANSFORM_PATHS_152
|
|
4373
3578
|
}
|
|
4374
3579
|
])
|
|
4375
3580
|
)
|