@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.
@@ -14,6 +14,196 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
14
14
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
15
15
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
16
16
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
17
+ var TRANSFORM_PATHS_0 = [
18
+ { path: "order.createdDate" },
19
+ { path: "order.updatedDate" },
20
+ { path: "order.purchasedDate" },
21
+ { path: "order.lineItems.image.urlExpirationDate" },
22
+ { path: "order.lineItems.digitalFile.expirationDate" },
23
+ { path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
24
+ { path: "order.lineItems.serviceProperties.scheduledDate" },
25
+ { path: "order.lineItems.serviceProperties.endDate" },
26
+ { path: "order.shippingInfo.logistics.deliverByDate" },
27
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
28
+ { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
29
+ { path: "order.activities.createdDate" }
30
+ ];
31
+ var TRANSFORM_PATHS_1 = [
32
+ { path: "order.lineItems.image.focalPoint.x" },
33
+ { path: "order.lineItems.image.focalPoint.y" },
34
+ { path: "order.lineItems.physicalProperties.weight" },
35
+ { path: "order.billingInfo.address.geocode.latitude" },
36
+ { path: "order.billingInfo.address.geocode.longitude" },
37
+ {
38
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
39
+ },
40
+ {
41
+ path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
42
+ },
43
+ {
44
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
45
+ },
46
+ {
47
+ path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
48
+ },
49
+ { path: "order.recipientInfo.address.geocode.latitude" },
50
+ { path: "order.recipientInfo.address.geocode.longitude" }
51
+ ];
52
+ var TRANSFORM_PATHS_2 = [
53
+ { path: "results.item.createdDate" },
54
+ { path: "results.item.updatedDate" },
55
+ { path: "results.item.purchasedDate" },
56
+ { path: "results.item.lineItems.image.urlExpirationDate" },
57
+ { path: "results.item.lineItems.digitalFile.expirationDate" },
58
+ {
59
+ path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
60
+ },
61
+ { path: "results.item.lineItems.serviceProperties.scheduledDate" },
62
+ { path: "results.item.lineItems.serviceProperties.endDate" },
63
+ { path: "results.item.shippingInfo.logistics.deliverByDate" },
64
+ { path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from" },
65
+ { path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to" },
66
+ { path: "results.item.activities.createdDate" }
67
+ ];
68
+ var TRANSFORM_PATHS_3 = [
69
+ { path: "results.item.lineItems.image.focalPoint.x" },
70
+ { path: "results.item.lineItems.image.focalPoint.y" },
71
+ { path: "results.item.lineItems.physicalProperties.weight" },
72
+ { path: "results.item.billingInfo.address.geocode.latitude" },
73
+ { path: "results.item.billingInfo.address.geocode.longitude" },
74
+ {
75
+ path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
76
+ },
77
+ {
78
+ path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
79
+ },
80
+ {
81
+ path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
82
+ },
83
+ {
84
+ path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
85
+ },
86
+ { path: "results.item.recipientInfo.address.geocode.latitude" },
87
+ { path: "results.item.recipientInfo.address.geocode.longitude" }
88
+ ];
89
+ var TRANSFORM_PATHS_4 = [
90
+ { path: "membershipCharges.serviceProperties.scheduledDate" },
91
+ { path: "membershipCharges.serviceProperties.endDate" }
92
+ ];
93
+ var TRANSFORM_PATHS_5 = [
94
+ { path: "orderTransactions.payments.createdDate" },
95
+ { path: "orderTransactions.payments.updatedDate" },
96
+ {
97
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
98
+ },
99
+ {
100
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
101
+ },
102
+ {
103
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
104
+ },
105
+ {
106
+ path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
107
+ },
108
+ {
109
+ path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
110
+ },
111
+ {
112
+ path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
113
+ },
114
+ { path: "orderTransactions.refunds.createdDate" }
115
+ ];
116
+ var TRANSFORM_PATHS_6 = [
117
+ { path: "search.sort.origin.latitude" },
118
+ { path: "search.sort.origin.longitude" }
119
+ ];
120
+ var TRANSFORM_PATHS_7 = [
121
+ { path: "orders.createdDate" },
122
+ { path: "orders.updatedDate" },
123
+ { path: "orders.purchasedDate" },
124
+ { path: "orders.lineItems.image.urlExpirationDate" },
125
+ { path: "orders.lineItems.digitalFile.expirationDate" },
126
+ { path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
127
+ { path: "orders.lineItems.serviceProperties.scheduledDate" },
128
+ { path: "orders.lineItems.serviceProperties.endDate" },
129
+ { path: "orders.shippingInfo.logistics.deliverByDate" },
130
+ { path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
131
+ { path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
132
+ { path: "orders.activities.createdDate" }
133
+ ];
134
+ var TRANSFORM_PATHS_8 = [
135
+ { path: "orders.lineItems.image.focalPoint.x" },
136
+ { path: "orders.lineItems.image.focalPoint.y" },
137
+ { path: "orders.lineItems.physicalProperties.weight" },
138
+ { path: "orders.billingInfo.address.geocode.latitude" },
139
+ { path: "orders.billingInfo.address.geocode.longitude" },
140
+ {
141
+ path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
142
+ },
143
+ {
144
+ path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
145
+ },
146
+ {
147
+ path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
148
+ },
149
+ {
150
+ path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
151
+ },
152
+ { path: "orders.recipientInfo.address.geocode.latitude" },
153
+ { path: "orders.recipientInfo.address.geocode.longitude" }
154
+ ];
155
+ var TRANSFORM_PATHS_9 = [{ path: "fieldMask" }];
156
+ var TRANSFORM_PATHS_10 = [{ path: "orders.fieldMask" }];
157
+ var TRANSFORM_PATHS_11 = [
158
+ { path: "orders.order.createdDate" },
159
+ { path: "orders.order.updatedDate" },
160
+ { path: "orders.order.purchasedDate" },
161
+ { path: "orders.order.lineItems.image.urlExpirationDate" },
162
+ { path: "orders.order.lineItems.digitalFile.expirationDate" },
163
+ {
164
+ path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
165
+ },
166
+ { path: "orders.order.lineItems.serviceProperties.scheduledDate" },
167
+ { path: "orders.order.lineItems.serviceProperties.endDate" },
168
+ { path: "orders.order.shippingInfo.logistics.deliverByDate" },
169
+ { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
170
+ { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
171
+ { path: "orders.order.activities.createdDate" }
172
+ ];
173
+ var TRANSFORM_PATHS_12 = [
174
+ { path: "orders.order.lineItems.image.focalPoint.x" },
175
+ { path: "orders.order.lineItems.image.focalPoint.y" },
176
+ { path: "orders.order.lineItems.physicalProperties.weight" },
177
+ { path: "orders.order.billingInfo.address.geocode.latitude" },
178
+ { path: "orders.order.billingInfo.address.geocode.longitude" },
179
+ {
180
+ path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
181
+ },
182
+ {
183
+ path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
184
+ },
185
+ {
186
+ path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
187
+ },
188
+ {
189
+ path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
190
+ },
191
+ { path: "orders.order.recipientInfo.address.geocode.latitude" },
192
+ { path: "orders.order.recipientInfo.address.geocode.longitude" }
193
+ ];
194
+ var TRANSFORM_PATHS_13 = [
195
+ { path: "lineItem.image.urlExpirationDate" },
196
+ { path: "lineItem.digitalFile.expirationDate" },
197
+ { path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
198
+ { path: "lineItem.serviceProperties.scheduledDate" },
199
+ { path: "lineItem.serviceProperties.endDate" }
200
+ ];
201
+ var TRANSFORM_PATHS_14 = [
202
+ { path: "lineItem.image.focalPoint.x" },
203
+ { path: "lineItem.image.focalPoint.y" },
204
+ { path: "lineItem.physicalProperties.weight" }
205
+ ];
206
+ var TRANSFORM_PATHS_15 = [{ path: "orderActivities.createdDate" }];
17
207
  function resolveComWixEcomOrdersV1OrdersUrl(opts) {
18
208
  const domainToMappings = {
19
209
  _: [
@@ -177,46 +367,11 @@ function importOrder(payload) {
177
367
  const serializedData = transformPaths(payload, [
178
368
  {
179
369
  transformFn: transformSDKTimestampToRESTTimestamp,
180
- paths: [
181
- { path: "order.createdDate" },
182
- { path: "order.updatedDate" },
183
- { path: "order.purchasedDate" },
184
- { path: "order.lineItems.image.urlExpirationDate" },
185
- { path: "order.lineItems.digitalFile.expirationDate" },
186
- {
187
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
188
- },
189
- { path: "order.lineItems.serviceProperties.scheduledDate" },
190
- { path: "order.lineItems.serviceProperties.endDate" },
191
- { path: "order.shippingInfo.logistics.deliverByDate" },
192
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
193
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
194
- { path: "order.activities.createdDate" }
195
- ]
370
+ paths: TRANSFORM_PATHS_0
196
371
  },
197
372
  {
198
373
  transformFn: transformSDKFloatToRESTFloat,
199
- paths: [
200
- { path: "order.lineItems.image.focalPoint.x" },
201
- { path: "order.lineItems.image.focalPoint.y" },
202
- { path: "order.lineItems.physicalProperties.weight" },
203
- { path: "order.billingInfo.address.geocode.latitude" },
204
- { path: "order.billingInfo.address.geocode.longitude" },
205
- {
206
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
207
- },
208
- {
209
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
210
- },
211
- {
212
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
213
- },
214
- {
215
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
216
- },
217
- { path: "order.recipientInfo.address.geocode.latitude" },
218
- { path: "order.recipientInfo.address.geocode.longitude" }
219
- ]
374
+ paths: TRANSFORM_PATHS_1
220
375
  }
221
376
  ]);
222
377
  const metadata = {
@@ -236,46 +391,11 @@ function importOrder(payload) {
236
391
  transformResponse: (payload2) => transformPaths(payload2, [
237
392
  {
238
393
  transformFn: transformRESTTimestampToSDKTimestamp,
239
- paths: [
240
- { path: "order.createdDate" },
241
- { path: "order.updatedDate" },
242
- { path: "order.purchasedDate" },
243
- { path: "order.lineItems.image.urlExpirationDate" },
244
- { path: "order.lineItems.digitalFile.expirationDate" },
245
- {
246
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
247
- },
248
- { path: "order.lineItems.serviceProperties.scheduledDate" },
249
- { path: "order.lineItems.serviceProperties.endDate" },
250
- { path: "order.shippingInfo.logistics.deliverByDate" },
251
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
252
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
253
- { path: "order.activities.createdDate" }
254
- ]
394
+ paths: TRANSFORM_PATHS_0
255
395
  },
256
396
  {
257
397
  transformFn: transformRESTFloatToSDKFloat,
258
- paths: [
259
- { path: "order.lineItems.image.focalPoint.x" },
260
- { path: "order.lineItems.image.focalPoint.y" },
261
- { path: "order.lineItems.physicalProperties.weight" },
262
- { path: "order.billingInfo.address.geocode.latitude" },
263
- { path: "order.billingInfo.address.geocode.longitude" },
264
- {
265
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
266
- },
267
- {
268
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
269
- },
270
- {
271
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
272
- },
273
- {
274
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
275
- },
276
- { path: "order.recipientInfo.address.geocode.latitude" },
277
- { path: "order.recipientInfo.address.geocode.longitude" }
278
- ]
398
+ paths: TRANSFORM_PATHS_1
279
399
  }
280
400
  ])
281
401
  };
@@ -407,46 +527,11 @@ function paymentCollectionMarkOrderAsPaid(payload) {
407
527
  transformResponse: (payload2) => transformPaths(payload2, [
408
528
  {
409
529
  transformFn: transformRESTTimestampToSDKTimestamp,
410
- paths: [
411
- { path: "order.createdDate" },
412
- { path: "order.updatedDate" },
413
- { path: "order.purchasedDate" },
414
- { path: "order.lineItems.image.urlExpirationDate" },
415
- { path: "order.lineItems.digitalFile.expirationDate" },
416
- {
417
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
418
- },
419
- { path: "order.lineItems.serviceProperties.scheduledDate" },
420
- { path: "order.lineItems.serviceProperties.endDate" },
421
- { path: "order.shippingInfo.logistics.deliverByDate" },
422
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
423
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
424
- { path: "order.activities.createdDate" }
425
- ]
530
+ paths: TRANSFORM_PATHS_0
426
531
  },
427
532
  {
428
533
  transformFn: transformRESTFloatToSDKFloat,
429
- paths: [
430
- { path: "order.lineItems.image.focalPoint.x" },
431
- { path: "order.lineItems.image.focalPoint.y" },
432
- { path: "order.lineItems.physicalProperties.weight" },
433
- { path: "order.billingInfo.address.geocode.latitude" },
434
- { path: "order.billingInfo.address.geocode.longitude" },
435
- {
436
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
437
- },
438
- {
439
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
440
- },
441
- {
442
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
443
- },
444
- {
445
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
446
- },
447
- { path: "order.recipientInfo.address.geocode.latitude" },
448
- { path: "order.recipientInfo.address.geocode.longitude" }
449
- ]
534
+ paths: TRANSFORM_PATHS_1
450
535
  }
451
536
  ])
452
537
  };
@@ -473,52 +558,11 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
473
558
  transformResponse: (payload2) => transformPaths(payload2, [
474
559
  {
475
560
  transformFn: transformRESTTimestampToSDKTimestamp,
476
- paths: [
477
- { path: "results.item.createdDate" },
478
- { path: "results.item.updatedDate" },
479
- { path: "results.item.purchasedDate" },
480
- { path: "results.item.lineItems.image.urlExpirationDate" },
481
- { path: "results.item.lineItems.digitalFile.expirationDate" },
482
- {
483
- path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
484
- },
485
- {
486
- path: "results.item.lineItems.serviceProperties.scheduledDate"
487
- },
488
- { path: "results.item.lineItems.serviceProperties.endDate" },
489
- { path: "results.item.shippingInfo.logistics.deliverByDate" },
490
- {
491
- path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
492
- },
493
- {
494
- path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
495
- },
496
- { path: "results.item.activities.createdDate" }
497
- ]
561
+ paths: TRANSFORM_PATHS_2
498
562
  },
499
563
  {
500
564
  transformFn: transformRESTFloatToSDKFloat,
501
- paths: [
502
- { path: "results.item.lineItems.image.focalPoint.x" },
503
- { path: "results.item.lineItems.image.focalPoint.y" },
504
- { path: "results.item.lineItems.physicalProperties.weight" },
505
- { path: "results.item.billingInfo.address.geocode.latitude" },
506
- { path: "results.item.billingInfo.address.geocode.longitude" },
507
- {
508
- path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
509
- },
510
- {
511
- path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
512
- },
513
- {
514
- path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
515
- },
516
- {
517
- path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
518
- },
519
- { path: "results.item.recipientInfo.address.geocode.latitude" },
520
- { path: "results.item.recipientInfo.address.geocode.longitude" }
521
- ]
565
+ paths: TRANSFORM_PATHS_3
522
566
  }
523
567
  ])
524
568
  };
@@ -573,10 +617,7 @@ function chargeMemberships(payload) {
573
617
  const serializedData = transformPaths(payload, [
574
618
  {
575
619
  transformFn: transformSDKTimestampToRESTTimestamp,
576
- paths: [
577
- { path: "membershipCharges.serviceProperties.scheduledDate" },
578
- { path: "membershipCharges.serviceProperties.endDate" }
579
- ]
620
+ paths: TRANSFORM_PATHS_4
580
621
  }
581
622
  ]);
582
623
  const metadata = {
@@ -617,29 +658,7 @@ function triggerRefund(payload) {
617
658
  transformResponse: (payload2) => transformPaths(payload2, [
618
659
  {
619
660
  transformFn: transformRESTTimestampToSDKTimestamp,
620
- paths: [
621
- { path: "orderTransactions.payments.createdDate" },
622
- { path: "orderTransactions.payments.updatedDate" },
623
- {
624
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
625
- },
626
- {
627
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
628
- },
629
- {
630
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
631
- },
632
- {
633
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
634
- },
635
- {
636
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
637
- },
638
- {
639
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
640
- },
641
- { path: "orderTransactions.refunds.createdDate" }
642
- ]
661
+ paths: TRANSFORM_PATHS_5
643
662
  }
644
663
  ])
645
664
  };
@@ -666,29 +685,7 @@ function voidAuthorizedPayments(payload) {
666
685
  transformResponse: (payload2) => transformPaths(payload2, [
667
686
  {
668
687
  transformFn: transformRESTTimestampToSDKTimestamp,
669
- paths: [
670
- { path: "orderTransactions.payments.createdDate" },
671
- { path: "orderTransactions.payments.updatedDate" },
672
- {
673
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
674
- },
675
- {
676
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
677
- },
678
- {
679
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
680
- },
681
- {
682
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
683
- },
684
- {
685
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
686
- },
687
- {
688
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
689
- },
690
- { path: "orderTransactions.refunds.createdDate" }
691
- ]
688
+ paths: TRANSFORM_PATHS_5
692
689
  }
693
690
  ])
694
691
  };
@@ -715,29 +712,7 @@ function captureAuthorizedPayments(payload) {
715
712
  transformResponse: (payload2) => transformPaths(payload2, [
716
713
  {
717
714
  transformFn: transformRESTTimestampToSDKTimestamp,
718
- paths: [
719
- { path: "orderTransactions.payments.createdDate" },
720
- { path: "orderTransactions.payments.updatedDate" },
721
- {
722
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
723
- },
724
- {
725
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
726
- },
727
- {
728
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
729
- },
730
- {
731
- path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
732
- },
733
- {
734
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
735
- },
736
- {
737
- path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
738
- },
739
- { path: "orderTransactions.refunds.createdDate" }
740
- ]
715
+ paths: TRANSFORM_PATHS_5
741
716
  }
742
717
  ])
743
718
  };
@@ -764,46 +739,11 @@ function getOrder(payload) {
764
739
  transformResponse: (payload2) => transformPaths(payload2, [
765
740
  {
766
741
  transformFn: transformRESTTimestampToSDKTimestamp,
767
- paths: [
768
- { path: "order.createdDate" },
769
- { path: "order.updatedDate" },
770
- { path: "order.purchasedDate" },
771
- { path: "order.lineItems.image.urlExpirationDate" },
772
- { path: "order.lineItems.digitalFile.expirationDate" },
773
- {
774
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
775
- },
776
- { path: "order.lineItems.serviceProperties.scheduledDate" },
777
- { path: "order.lineItems.serviceProperties.endDate" },
778
- { path: "order.shippingInfo.logistics.deliverByDate" },
779
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
780
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
781
- { path: "order.activities.createdDate" }
782
- ]
742
+ paths: TRANSFORM_PATHS_0
783
743
  },
784
744
  {
785
745
  transformFn: transformRESTFloatToSDKFloat,
786
- paths: [
787
- { path: "order.lineItems.image.focalPoint.x" },
788
- { path: "order.lineItems.image.focalPoint.y" },
789
- { path: "order.lineItems.physicalProperties.weight" },
790
- { path: "order.billingInfo.address.geocode.latitude" },
791
- { path: "order.billingInfo.address.geocode.longitude" },
792
- {
793
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
794
- },
795
- {
796
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
797
- },
798
- {
799
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
800
- },
801
- {
802
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
803
- },
804
- { path: "order.recipientInfo.address.geocode.latitude" },
805
- { path: "order.recipientInfo.address.geocode.longitude" }
806
- ]
746
+ paths: TRANSFORM_PATHS_1
807
747
  }
808
748
  ])
809
749
  };
@@ -816,10 +756,7 @@ function searchOrders(payload) {
816
756
  const serializedData = transformPaths(payload, [
817
757
  {
818
758
  transformFn: transformSDKFloatToRESTFloat,
819
- paths: [
820
- { path: "search.sort.origin.latitude" },
821
- { path: "search.sort.origin.longitude" }
822
- ]
759
+ paths: TRANSFORM_PATHS_6
823
760
  }
824
761
  ]);
825
762
  const metadata = {
@@ -839,46 +776,11 @@ function searchOrders(payload) {
839
776
  transformResponse: (payload2) => transformPaths(payload2, [
840
777
  {
841
778
  transformFn: transformRESTTimestampToSDKTimestamp,
842
- paths: [
843
- { path: "orders.createdDate" },
844
- { path: "orders.updatedDate" },
845
- { path: "orders.purchasedDate" },
846
- { path: "orders.lineItems.image.urlExpirationDate" },
847
- { path: "orders.lineItems.digitalFile.expirationDate" },
848
- {
849
- path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
850
- },
851
- { path: "orders.lineItems.serviceProperties.scheduledDate" },
852
- { path: "orders.lineItems.serviceProperties.endDate" },
853
- { path: "orders.shippingInfo.logistics.deliverByDate" },
854
- { path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
855
- { path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
856
- { path: "orders.activities.createdDate" }
857
- ]
779
+ paths: TRANSFORM_PATHS_7
858
780
  },
859
781
  {
860
782
  transformFn: transformRESTFloatToSDKFloat,
861
- paths: [
862
- { path: "orders.lineItems.image.focalPoint.x" },
863
- { path: "orders.lineItems.image.focalPoint.y" },
864
- { path: "orders.lineItems.physicalProperties.weight" },
865
- { path: "orders.billingInfo.address.geocode.latitude" },
866
- { path: "orders.billingInfo.address.geocode.longitude" },
867
- {
868
- path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
869
- },
870
- {
871
- path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
872
- },
873
- {
874
- path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
875
- },
876
- {
877
- path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
878
- },
879
- { path: "orders.recipientInfo.address.geocode.latitude" },
880
- { path: "orders.recipientInfo.address.geocode.longitude" }
881
- ]
783
+ paths: TRANSFORM_PATHS_8
882
784
  }
883
785
  ])
884
786
  };
@@ -891,46 +793,11 @@ function createOrder(payload) {
891
793
  const serializedData = transformPaths(payload, [
892
794
  {
893
795
  transformFn: transformSDKTimestampToRESTTimestamp,
894
- paths: [
895
- { path: "order.createdDate" },
896
- { path: "order.updatedDate" },
897
- { path: "order.purchasedDate" },
898
- { path: "order.lineItems.image.urlExpirationDate" },
899
- { path: "order.lineItems.digitalFile.expirationDate" },
900
- {
901
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
902
- },
903
- { path: "order.lineItems.serviceProperties.scheduledDate" },
904
- { path: "order.lineItems.serviceProperties.endDate" },
905
- { path: "order.shippingInfo.logistics.deliverByDate" },
906
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
907
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
908
- { path: "order.activities.createdDate" }
909
- ]
796
+ paths: TRANSFORM_PATHS_0
910
797
  },
911
798
  {
912
799
  transformFn: transformSDKFloatToRESTFloat,
913
- paths: [
914
- { path: "order.lineItems.image.focalPoint.x" },
915
- { path: "order.lineItems.image.focalPoint.y" },
916
- { path: "order.lineItems.physicalProperties.weight" },
917
- { path: "order.billingInfo.address.geocode.latitude" },
918
- { path: "order.billingInfo.address.geocode.longitude" },
919
- {
920
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
921
- },
922
- {
923
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
924
- },
925
- {
926
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
927
- },
928
- {
929
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
930
- },
931
- { path: "order.recipientInfo.address.geocode.latitude" },
932
- { path: "order.recipientInfo.address.geocode.longitude" }
933
- ]
800
+ paths: TRANSFORM_PATHS_1
934
801
  }
935
802
  ]);
936
803
  const metadata = {
@@ -950,46 +817,11 @@ function createOrder(payload) {
950
817
  transformResponse: (payload2) => transformPaths(payload2, [
951
818
  {
952
819
  transformFn: transformRESTTimestampToSDKTimestamp,
953
- paths: [
954
- { path: "order.createdDate" },
955
- { path: "order.updatedDate" },
956
- { path: "order.purchasedDate" },
957
- { path: "order.lineItems.image.urlExpirationDate" },
958
- { path: "order.lineItems.digitalFile.expirationDate" },
959
- {
960
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
961
- },
962
- { path: "order.lineItems.serviceProperties.scheduledDate" },
963
- { path: "order.lineItems.serviceProperties.endDate" },
964
- { path: "order.shippingInfo.logistics.deliverByDate" },
965
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
966
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
967
- { path: "order.activities.createdDate" }
968
- ]
820
+ paths: TRANSFORM_PATHS_0
969
821
  },
970
822
  {
971
823
  transformFn: transformRESTFloatToSDKFloat,
972
- paths: [
973
- { path: "order.lineItems.image.focalPoint.x" },
974
- { path: "order.lineItems.image.focalPoint.y" },
975
- { path: "order.lineItems.physicalProperties.weight" },
976
- { path: "order.billingInfo.address.geocode.latitude" },
977
- { path: "order.billingInfo.address.geocode.longitude" },
978
- {
979
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
980
- },
981
- {
982
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
983
- },
984
- {
985
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
986
- },
987
- {
988
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
989
- },
990
- { path: "order.recipientInfo.address.geocode.latitude" },
991
- { path: "order.recipientInfo.address.geocode.longitude" }
992
- ]
824
+ paths: TRANSFORM_PATHS_1
993
825
  }
994
826
  ])
995
827
  };
@@ -1002,50 +834,15 @@ function updateOrder(payload) {
1002
834
  const serializedData = transformPaths(payload, [
1003
835
  {
1004
836
  transformFn: transformSDKFieldMaskToRESTFieldMask,
1005
- paths: [{ path: "fieldMask" }]
837
+ paths: TRANSFORM_PATHS_9
1006
838
  },
1007
839
  {
1008
840
  transformFn: transformSDKTimestampToRESTTimestamp,
1009
- paths: [
1010
- { path: "order.createdDate" },
1011
- { path: "order.updatedDate" },
1012
- { path: "order.purchasedDate" },
1013
- { path: "order.lineItems.image.urlExpirationDate" },
1014
- { path: "order.lineItems.digitalFile.expirationDate" },
1015
- {
1016
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1017
- },
1018
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1019
- { path: "order.lineItems.serviceProperties.endDate" },
1020
- { path: "order.shippingInfo.logistics.deliverByDate" },
1021
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1022
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1023
- { path: "order.activities.createdDate" }
1024
- ]
841
+ paths: TRANSFORM_PATHS_0
1025
842
  },
1026
843
  {
1027
844
  transformFn: transformSDKFloatToRESTFloat,
1028
- paths: [
1029
- { path: "order.lineItems.image.focalPoint.x" },
1030
- { path: "order.lineItems.image.focalPoint.y" },
1031
- { path: "order.lineItems.physicalProperties.weight" },
1032
- { path: "order.billingInfo.address.geocode.latitude" },
1033
- { path: "order.billingInfo.address.geocode.longitude" },
1034
- {
1035
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1036
- },
1037
- {
1038
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1039
- },
1040
- {
1041
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1042
- },
1043
- {
1044
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1045
- },
1046
- { path: "order.recipientInfo.address.geocode.latitude" },
1047
- { path: "order.recipientInfo.address.geocode.longitude" }
1048
- ]
845
+ paths: TRANSFORM_PATHS_1
1049
846
  }
1050
847
  ]);
1051
848
  const metadata = {
@@ -1065,46 +862,11 @@ function updateOrder(payload) {
1065
862
  transformResponse: (payload2) => transformPaths(payload2, [
1066
863
  {
1067
864
  transformFn: transformRESTTimestampToSDKTimestamp,
1068
- paths: [
1069
- { path: "order.createdDate" },
1070
- { path: "order.updatedDate" },
1071
- { path: "order.purchasedDate" },
1072
- { path: "order.lineItems.image.urlExpirationDate" },
1073
- { path: "order.lineItems.digitalFile.expirationDate" },
1074
- {
1075
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1076
- },
1077
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1078
- { path: "order.lineItems.serviceProperties.endDate" },
1079
- { path: "order.shippingInfo.logistics.deliverByDate" },
1080
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1081
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1082
- { path: "order.activities.createdDate" }
1083
- ]
865
+ paths: TRANSFORM_PATHS_0
1084
866
  },
1085
867
  {
1086
868
  transformFn: transformRESTFloatToSDKFloat,
1087
- paths: [
1088
- { path: "order.lineItems.image.focalPoint.x" },
1089
- { path: "order.lineItems.image.focalPoint.y" },
1090
- { path: "order.lineItems.physicalProperties.weight" },
1091
- { path: "order.billingInfo.address.geocode.latitude" },
1092
- { path: "order.billingInfo.address.geocode.longitude" },
1093
- {
1094
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1095
- },
1096
- {
1097
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1098
- },
1099
- {
1100
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1101
- },
1102
- {
1103
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1104
- },
1105
- { path: "order.recipientInfo.address.geocode.latitude" },
1106
- { path: "order.recipientInfo.address.geocode.longitude" }
1107
- ]
869
+ paths: TRANSFORM_PATHS_1
1108
870
  }
1109
871
  ])
1110
872
  };
@@ -1117,50 +879,15 @@ function bulkUpdateOrders(payload) {
1117
879
  const serializedData = transformPaths(payload, [
1118
880
  {
1119
881
  transformFn: transformSDKFieldMaskToRESTFieldMask,
1120
- paths: [{ path: "orders.fieldMask" }]
882
+ paths: TRANSFORM_PATHS_10
1121
883
  },
1122
884
  {
1123
885
  transformFn: transformSDKTimestampToRESTTimestamp,
1124
- paths: [
1125
- { path: "orders.order.createdDate" },
1126
- { path: "orders.order.updatedDate" },
1127
- { path: "orders.order.purchasedDate" },
1128
- { path: "orders.order.lineItems.image.urlExpirationDate" },
1129
- { path: "orders.order.lineItems.digitalFile.expirationDate" },
1130
- {
1131
- path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1132
- },
1133
- { path: "orders.order.lineItems.serviceProperties.scheduledDate" },
1134
- { path: "orders.order.lineItems.serviceProperties.endDate" },
1135
- { path: "orders.order.shippingInfo.logistics.deliverByDate" },
1136
- { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
1137
- { path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
1138
- { path: "orders.order.activities.createdDate" }
1139
- ]
886
+ paths: TRANSFORM_PATHS_11
1140
887
  },
1141
888
  {
1142
889
  transformFn: transformSDKFloatToRESTFloat,
1143
- paths: [
1144
- { path: "orders.order.lineItems.image.focalPoint.x" },
1145
- { path: "orders.order.lineItems.image.focalPoint.y" },
1146
- { path: "orders.order.lineItems.physicalProperties.weight" },
1147
- { path: "orders.order.billingInfo.address.geocode.latitude" },
1148
- { path: "orders.order.billingInfo.address.geocode.longitude" },
1149
- {
1150
- path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1151
- },
1152
- {
1153
- path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1154
- },
1155
- {
1156
- path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1157
- },
1158
- {
1159
- path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1160
- },
1161
- { path: "orders.order.recipientInfo.address.geocode.latitude" },
1162
- { path: "orders.order.recipientInfo.address.geocode.longitude" }
1163
- ]
890
+ paths: TRANSFORM_PATHS_12
1164
891
  }
1165
892
  ]);
1166
893
  const metadata = {
@@ -1180,52 +907,11 @@ function bulkUpdateOrders(payload) {
1180
907
  transformResponse: (payload2) => transformPaths(payload2, [
1181
908
  {
1182
909
  transformFn: transformRESTTimestampToSDKTimestamp,
1183
- paths: [
1184
- { path: "results.item.createdDate" },
1185
- { path: "results.item.updatedDate" },
1186
- { path: "results.item.purchasedDate" },
1187
- { path: "results.item.lineItems.image.urlExpirationDate" },
1188
- { path: "results.item.lineItems.digitalFile.expirationDate" },
1189
- {
1190
- path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1191
- },
1192
- {
1193
- path: "results.item.lineItems.serviceProperties.scheduledDate"
1194
- },
1195
- { path: "results.item.lineItems.serviceProperties.endDate" },
1196
- { path: "results.item.shippingInfo.logistics.deliverByDate" },
1197
- {
1198
- path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
1199
- },
1200
- {
1201
- path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
1202
- },
1203
- { path: "results.item.activities.createdDate" }
1204
- ]
910
+ paths: TRANSFORM_PATHS_2
1205
911
  },
1206
912
  {
1207
913
  transformFn: transformRESTFloatToSDKFloat,
1208
- paths: [
1209
- { path: "results.item.lineItems.image.focalPoint.x" },
1210
- { path: "results.item.lineItems.image.focalPoint.y" },
1211
- { path: "results.item.lineItems.physicalProperties.weight" },
1212
- { path: "results.item.billingInfo.address.geocode.latitude" },
1213
- { path: "results.item.billingInfo.address.geocode.longitude" },
1214
- {
1215
- path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1216
- },
1217
- {
1218
- path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1219
- },
1220
- {
1221
- path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1222
- },
1223
- {
1224
- path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1225
- },
1226
- { path: "results.item.recipientInfo.address.geocode.latitude" },
1227
- { path: "results.item.recipientInfo.address.geocode.longitude" }
1228
- ]
914
+ paths: TRANSFORM_PATHS_3
1229
915
  }
1230
916
  ])
1231
917
  };
@@ -1238,25 +924,15 @@ function updateOrderLineItem(payload) {
1238
924
  const serializedData = transformPaths(payload, [
1239
925
  {
1240
926
  transformFn: transformSDKFieldMaskToRESTFieldMask,
1241
- paths: [{ path: "fieldMask" }]
927
+ paths: TRANSFORM_PATHS_9
1242
928
  },
1243
929
  {
1244
930
  transformFn: transformSDKTimestampToRESTTimestamp,
1245
- paths: [
1246
- { path: "lineItem.image.urlExpirationDate" },
1247
- { path: "lineItem.digitalFile.expirationDate" },
1248
- { path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
1249
- { path: "lineItem.serviceProperties.scheduledDate" },
1250
- { path: "lineItem.serviceProperties.endDate" }
1251
- ]
931
+ paths: TRANSFORM_PATHS_13
1252
932
  },
1253
933
  {
1254
934
  transformFn: transformSDKFloatToRESTFloat,
1255
- paths: [
1256
- { path: "lineItem.image.focalPoint.x" },
1257
- { path: "lineItem.image.focalPoint.y" },
1258
- { path: "lineItem.physicalProperties.weight" }
1259
- ]
935
+ paths: TRANSFORM_PATHS_14
1260
936
  }
1261
937
  ]);
1262
938
  const metadata = {
@@ -1276,46 +952,11 @@ function updateOrderLineItem(payload) {
1276
952
  transformResponse: (payload2) => transformPaths(payload2, [
1277
953
  {
1278
954
  transformFn: transformRESTTimestampToSDKTimestamp,
1279
- paths: [
1280
- { path: "order.createdDate" },
1281
- { path: "order.updatedDate" },
1282
- { path: "order.purchasedDate" },
1283
- { path: "order.lineItems.image.urlExpirationDate" },
1284
- { path: "order.lineItems.digitalFile.expirationDate" },
1285
- {
1286
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1287
- },
1288
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1289
- { path: "order.lineItems.serviceProperties.endDate" },
1290
- { path: "order.shippingInfo.logistics.deliverByDate" },
1291
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1292
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1293
- { path: "order.activities.createdDate" }
1294
- ]
955
+ paths: TRANSFORM_PATHS_0
1295
956
  },
1296
957
  {
1297
958
  transformFn: transformRESTFloatToSDKFloat,
1298
- paths: [
1299
- { path: "order.lineItems.image.focalPoint.x" },
1300
- { path: "order.lineItems.image.focalPoint.y" },
1301
- { path: "order.lineItems.physicalProperties.weight" },
1302
- { path: "order.billingInfo.address.geocode.latitude" },
1303
- { path: "order.billingInfo.address.geocode.longitude" },
1304
- {
1305
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1306
- },
1307
- {
1308
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1309
- },
1310
- {
1311
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1312
- },
1313
- {
1314
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1315
- },
1316
- { path: "order.recipientInfo.address.geocode.latitude" },
1317
- { path: "order.recipientInfo.address.geocode.longitude" }
1318
- ]
959
+ paths: TRANSFORM_PATHS_1
1319
960
  }
1320
961
  ])
1321
962
  };
@@ -1342,46 +983,11 @@ function addActivity(payload) {
1342
983
  transformResponse: (payload2) => transformPaths(payload2, [
1343
984
  {
1344
985
  transformFn: transformRESTTimestampToSDKTimestamp,
1345
- paths: [
1346
- { path: "order.createdDate" },
1347
- { path: "order.updatedDate" },
1348
- { path: "order.purchasedDate" },
1349
- { path: "order.lineItems.image.urlExpirationDate" },
1350
- { path: "order.lineItems.digitalFile.expirationDate" },
1351
- {
1352
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1353
- },
1354
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1355
- { path: "order.lineItems.serviceProperties.endDate" },
1356
- { path: "order.shippingInfo.logistics.deliverByDate" },
1357
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1358
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1359
- { path: "order.activities.createdDate" }
1360
- ]
986
+ paths: TRANSFORM_PATHS_0
1361
987
  },
1362
988
  {
1363
989
  transformFn: transformRESTFloatToSDKFloat,
1364
- paths: [
1365
- { path: "order.lineItems.image.focalPoint.x" },
1366
- { path: "order.lineItems.image.focalPoint.y" },
1367
- { path: "order.lineItems.physicalProperties.weight" },
1368
- { path: "order.billingInfo.address.geocode.latitude" },
1369
- { path: "order.billingInfo.address.geocode.longitude" },
1370
- {
1371
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1372
- },
1373
- {
1374
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1375
- },
1376
- {
1377
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1378
- },
1379
- {
1380
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1381
- },
1382
- { path: "order.recipientInfo.address.geocode.latitude" },
1383
- { path: "order.recipientInfo.address.geocode.longitude" }
1384
- ]
990
+ paths: TRANSFORM_PATHS_1
1385
991
  }
1386
992
  ])
1387
993
  };
@@ -1394,7 +1000,7 @@ function addActivities(payload) {
1394
1000
  const serializedData = transformPaths(payload, [
1395
1001
  {
1396
1002
  transformFn: transformSDKTimestampToRESTTimestamp,
1397
- paths: [{ path: "orderActivities.createdDate" }]
1003
+ paths: TRANSFORM_PATHS_15
1398
1004
  }
1399
1005
  ]);
1400
1006
  const metadata = {
@@ -1414,46 +1020,11 @@ function addActivities(payload) {
1414
1020
  transformResponse: (payload2) => transformPaths(payload2, [
1415
1021
  {
1416
1022
  transformFn: transformRESTTimestampToSDKTimestamp,
1417
- paths: [
1418
- { path: "order.createdDate" },
1419
- { path: "order.updatedDate" },
1420
- { path: "order.purchasedDate" },
1421
- { path: "order.lineItems.image.urlExpirationDate" },
1422
- { path: "order.lineItems.digitalFile.expirationDate" },
1423
- {
1424
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1425
- },
1426
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1427
- { path: "order.lineItems.serviceProperties.endDate" },
1428
- { path: "order.shippingInfo.logistics.deliverByDate" },
1429
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1430
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1431
- { path: "order.activities.createdDate" }
1432
- ]
1023
+ paths: TRANSFORM_PATHS_0
1433
1024
  },
1434
1025
  {
1435
1026
  transformFn: transformRESTFloatToSDKFloat,
1436
- paths: [
1437
- { path: "order.lineItems.image.focalPoint.x" },
1438
- { path: "order.lineItems.image.focalPoint.y" },
1439
- { path: "order.lineItems.physicalProperties.weight" },
1440
- { path: "order.billingInfo.address.geocode.latitude" },
1441
- { path: "order.billingInfo.address.geocode.longitude" },
1442
- {
1443
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1444
- },
1445
- {
1446
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1447
- },
1448
- {
1449
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1450
- },
1451
- {
1452
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1453
- },
1454
- { path: "order.recipientInfo.address.geocode.latitude" },
1455
- { path: "order.recipientInfo.address.geocode.longitude" }
1456
- ]
1027
+ paths: TRANSFORM_PATHS_1
1457
1028
  }
1458
1029
  ])
1459
1030
  };
@@ -1480,46 +1051,11 @@ function updateActivity(payload) {
1480
1051
  transformResponse: (payload2) => transformPaths(payload2, [
1481
1052
  {
1482
1053
  transformFn: transformRESTTimestampToSDKTimestamp,
1483
- paths: [
1484
- { path: "order.createdDate" },
1485
- { path: "order.updatedDate" },
1486
- { path: "order.purchasedDate" },
1487
- { path: "order.lineItems.image.urlExpirationDate" },
1488
- { path: "order.lineItems.digitalFile.expirationDate" },
1489
- {
1490
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1491
- },
1492
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1493
- { path: "order.lineItems.serviceProperties.endDate" },
1494
- { path: "order.shippingInfo.logistics.deliverByDate" },
1495
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1496
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1497
- { path: "order.activities.createdDate" }
1498
- ]
1054
+ paths: TRANSFORM_PATHS_0
1499
1055
  },
1500
1056
  {
1501
1057
  transformFn: transformRESTFloatToSDKFloat,
1502
- paths: [
1503
- { path: "order.lineItems.image.focalPoint.x" },
1504
- { path: "order.lineItems.image.focalPoint.y" },
1505
- { path: "order.lineItems.physicalProperties.weight" },
1506
- { path: "order.billingInfo.address.geocode.latitude" },
1507
- { path: "order.billingInfo.address.geocode.longitude" },
1508
- {
1509
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1510
- },
1511
- {
1512
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1513
- },
1514
- {
1515
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1516
- },
1517
- {
1518
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1519
- },
1520
- { path: "order.recipientInfo.address.geocode.latitude" },
1521
- { path: "order.recipientInfo.address.geocode.longitude" }
1522
- ]
1058
+ paths: TRANSFORM_PATHS_1
1523
1059
  }
1524
1060
  ])
1525
1061
  };
@@ -1546,46 +1082,11 @@ function deleteActivity(payload) {
1546
1082
  transformResponse: (payload2) => transformPaths(payload2, [
1547
1083
  {
1548
1084
  transformFn: transformRESTTimestampToSDKTimestamp,
1549
- paths: [
1550
- { path: "order.createdDate" },
1551
- { path: "order.updatedDate" },
1552
- { path: "order.purchasedDate" },
1553
- { path: "order.lineItems.image.urlExpirationDate" },
1554
- { path: "order.lineItems.digitalFile.expirationDate" },
1555
- {
1556
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1557
- },
1558
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1559
- { path: "order.lineItems.serviceProperties.endDate" },
1560
- { path: "order.shippingInfo.logistics.deliverByDate" },
1561
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1562
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1563
- { path: "order.activities.createdDate" }
1564
- ]
1085
+ paths: TRANSFORM_PATHS_0
1565
1086
  },
1566
1087
  {
1567
1088
  transformFn: transformRESTFloatToSDKFloat,
1568
- paths: [
1569
- { path: "order.lineItems.image.focalPoint.x" },
1570
- { path: "order.lineItems.image.focalPoint.y" },
1571
- { path: "order.lineItems.physicalProperties.weight" },
1572
- { path: "order.billingInfo.address.geocode.latitude" },
1573
- { path: "order.billingInfo.address.geocode.longitude" },
1574
- {
1575
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1576
- },
1577
- {
1578
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1579
- },
1580
- {
1581
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1582
- },
1583
- {
1584
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1585
- },
1586
- { path: "order.recipientInfo.address.geocode.latitude" },
1587
- { path: "order.recipientInfo.address.geocode.longitude" }
1588
- ]
1089
+ paths: TRANSFORM_PATHS_1
1589
1090
  }
1590
1091
  ])
1591
1092
  };
@@ -1612,46 +1113,11 @@ function cancelOrder(payload) {
1612
1113
  transformResponse: (payload2) => transformPaths(payload2, [
1613
1114
  {
1614
1115
  transformFn: transformRESTTimestampToSDKTimestamp,
1615
- paths: [
1616
- { path: "order.createdDate" },
1617
- { path: "order.updatedDate" },
1618
- { path: "order.purchasedDate" },
1619
- { path: "order.lineItems.image.urlExpirationDate" },
1620
- { path: "order.lineItems.digitalFile.expirationDate" },
1621
- {
1622
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1623
- },
1624
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1625
- { path: "order.lineItems.serviceProperties.endDate" },
1626
- { path: "order.shippingInfo.logistics.deliverByDate" },
1627
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1628
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1629
- { path: "order.activities.createdDate" }
1630
- ]
1116
+ paths: TRANSFORM_PATHS_0
1631
1117
  },
1632
1118
  {
1633
1119
  transformFn: transformRESTFloatToSDKFloat,
1634
- paths: [
1635
- { path: "order.lineItems.image.focalPoint.x" },
1636
- { path: "order.lineItems.image.focalPoint.y" },
1637
- { path: "order.lineItems.physicalProperties.weight" },
1638
- { path: "order.billingInfo.address.geocode.latitude" },
1639
- { path: "order.billingInfo.address.geocode.longitude" },
1640
- {
1641
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1642
- },
1643
- {
1644
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1645
- },
1646
- {
1647
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1648
- },
1649
- {
1650
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1651
- },
1652
- { path: "order.recipientInfo.address.geocode.latitude" },
1653
- { path: "order.recipientInfo.address.geocode.longitude" }
1654
- ]
1120
+ paths: TRANSFORM_PATHS_1
1655
1121
  }
1656
1122
  ])
1657
1123
  };
@@ -1678,46 +1144,11 @@ function updateOrderStatus(payload) {
1678
1144
  transformResponse: (payload2) => transformPaths(payload2, [
1679
1145
  {
1680
1146
  transformFn: transformRESTTimestampToSDKTimestamp,
1681
- paths: [
1682
- { path: "order.createdDate" },
1683
- { path: "order.updatedDate" },
1684
- { path: "order.purchasedDate" },
1685
- { path: "order.lineItems.image.urlExpirationDate" },
1686
- { path: "order.lineItems.digitalFile.expirationDate" },
1687
- {
1688
- path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
1689
- },
1690
- { path: "order.lineItems.serviceProperties.scheduledDate" },
1691
- { path: "order.lineItems.serviceProperties.endDate" },
1692
- { path: "order.shippingInfo.logistics.deliverByDate" },
1693
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
1694
- { path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
1695
- { path: "order.activities.createdDate" }
1696
- ]
1147
+ paths: TRANSFORM_PATHS_0
1697
1148
  },
1698
1149
  {
1699
1150
  transformFn: transformRESTFloatToSDKFloat,
1700
- paths: [
1701
- { path: "order.lineItems.image.focalPoint.x" },
1702
- { path: "order.lineItems.image.focalPoint.y" },
1703
- { path: "order.lineItems.physicalProperties.weight" },
1704
- { path: "order.billingInfo.address.geocode.latitude" },
1705
- { path: "order.billingInfo.address.geocode.longitude" },
1706
- {
1707
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
1708
- },
1709
- {
1710
- path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
1711
- },
1712
- {
1713
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
1714
- },
1715
- {
1716
- path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
1717
- },
1718
- { path: "order.recipientInfo.address.geocode.latitude" },
1719
- { path: "order.recipientInfo.address.geocode.longitude" }
1720
- ]
1151
+ paths: TRANSFORM_PATHS_1
1721
1152
  }
1722
1153
  ])
1723
1154
  };
@@ -1775,6 +1206,35 @@ import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/i
1775
1206
  import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
1776
1207
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
1777
1208
  import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
1209
+ var TRANSFORM_PATHS_02 = [{ path: "order.lineItems.image" }];
1210
+ var TRANSFORM_PATHS_16 = [
1211
+ { path: "order.billingInfo.address" },
1212
+ { path: "order.shippingInfo.logistics.shippingDestination.address" },
1213
+ { path: "order.shippingInfo.logistics.pickupDetails.address" },
1214
+ { path: "order.recipientInfo.address" }
1215
+ ];
1216
+ var TRANSFORM_PATHS_22 = [{ path: "results.item.lineItems.image" }];
1217
+ var TRANSFORM_PATHS_32 = [
1218
+ { path: "results.item.billingInfo.address" },
1219
+ { path: "results.item.shippingInfo.logistics.shippingDestination.address" },
1220
+ { path: "results.item.shippingInfo.logistics.pickupDetails.address" },
1221
+ { path: "results.item.recipientInfo.address" }
1222
+ ];
1223
+ var TRANSFORM_PATHS_42 = [{ path: "orders.lineItems.image" }];
1224
+ var TRANSFORM_PATHS_52 = [
1225
+ { path: "orders.billingInfo.address" },
1226
+ { path: "orders.shippingInfo.logistics.shippingDestination.address" },
1227
+ { path: "orders.shippingInfo.logistics.pickupDetails.address" },
1228
+ { path: "orders.recipientInfo.address" }
1229
+ ];
1230
+ var TRANSFORM_PATHS_62 = [{ path: "orders.order.lineItems.image" }];
1231
+ var TRANSFORM_PATHS_72 = [
1232
+ { path: "orders.order.billingInfo.address" },
1233
+ { path: "orders.order.shippingInfo.logistics.shippingDestination.address" },
1234
+ { path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
1235
+ { path: "orders.order.recipientInfo.address" }
1236
+ ];
1237
+ var TRANSFORM_PATHS_82 = [{ path: "lineItem.image" }];
1778
1238
  var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
1779
1239
  DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
1780
1240
  DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
@@ -2409,16 +1869,11 @@ async function importOrder2(order) {
2409
1869
  [
2410
1870
  {
2411
1871
  transformFn: transformSDKImageToRESTImage,
2412
- paths: [{ path: "order.lineItems.image" }]
1872
+ paths: TRANSFORM_PATHS_02
2413
1873
  },
2414
1874
  {
2415
1875
  transformFn: transformSDKAddressToRESTAddress,
2416
- paths: [
2417
- { path: "order.billingInfo.address" },
2418
- { path: "order.shippingInfo.logistics.shippingDestination.address" },
2419
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2420
- { path: "order.recipientInfo.address" }
2421
- ]
1876
+ paths: TRANSFORM_PATHS_16
2422
1877
  }
2423
1878
  ]
2424
1879
  );
@@ -2431,18 +1886,11 @@ async function importOrder2(order) {
2431
1886
  transformPaths2(result.data, [
2432
1887
  {
2433
1888
  transformFn: transformRESTImageToSDKImage,
2434
- paths: [{ path: "order.lineItems.image" }]
1889
+ paths: TRANSFORM_PATHS_02
2435
1890
  },
2436
1891
  {
2437
1892
  transformFn: transformRESTAddressToSDKAddress,
2438
- paths: [
2439
- { path: "order.billingInfo.address" },
2440
- {
2441
- path: "order.shippingInfo.logistics.shippingDestination.address"
2442
- },
2443
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2444
- { path: "order.recipientInfo.address" }
2445
- ]
1893
+ paths: TRANSFORM_PATHS_16
2446
1894
  }
2447
1895
  ])
2448
1896
  );
@@ -2622,18 +2070,11 @@ async function paymentCollectionMarkOrderAsPaid2(ecomOrderId, options) {
2622
2070
  transformPaths2(result.data, [
2623
2071
  {
2624
2072
  transformFn: transformRESTImageToSDKImage,
2625
- paths: [{ path: "order.lineItems.image" }]
2073
+ paths: TRANSFORM_PATHS_02
2626
2074
  },
2627
2075
  {
2628
2076
  transformFn: transformRESTAddressToSDKAddress,
2629
- paths: [
2630
- { path: "order.billingInfo.address" },
2631
- {
2632
- path: "order.shippingInfo.logistics.shippingDestination.address"
2633
- },
2634
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2635
- { path: "order.recipientInfo.address" }
2636
- ]
2077
+ paths: TRANSFORM_PATHS_16
2637
2078
  }
2638
2079
  ])
2639
2080
  );
@@ -2668,20 +2109,11 @@ async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
2668
2109
  transformPaths2(result.data, [
2669
2110
  {
2670
2111
  transformFn: transformRESTImageToSDKImage,
2671
- paths: [{ path: "results.item.lineItems.image" }]
2112
+ paths: TRANSFORM_PATHS_22
2672
2113
  },
2673
2114
  {
2674
2115
  transformFn: transformRESTAddressToSDKAddress,
2675
- paths: [
2676
- { path: "results.item.billingInfo.address" },
2677
- {
2678
- path: "results.item.shippingInfo.logistics.shippingDestination.address"
2679
- },
2680
- {
2681
- path: "results.item.shippingInfo.logistics.pickupDetails.address"
2682
- },
2683
- { path: "results.item.recipientInfo.address" }
2684
- ]
2116
+ paths: TRANSFORM_PATHS_32
2685
2117
  }
2686
2118
  ])
2687
2119
  );
@@ -2882,18 +2314,11 @@ async function getOrder2(_id) {
2882
2314
  transformPaths2(result.data, [
2883
2315
  {
2884
2316
  transformFn: transformRESTImageToSDKImage,
2885
- paths: [{ path: "order.lineItems.image" }]
2317
+ paths: TRANSFORM_PATHS_02
2886
2318
  },
2887
2319
  {
2888
2320
  transformFn: transformRESTAddressToSDKAddress,
2889
- paths: [
2890
- { path: "order.billingInfo.address" },
2891
- {
2892
- path: "order.shippingInfo.logistics.shippingDestination.address"
2893
- },
2894
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2895
- { path: "order.recipientInfo.address" }
2896
- ]
2321
+ paths: TRANSFORM_PATHS_16
2897
2322
  }
2898
2323
  ])
2899
2324
  )?.order;
@@ -2923,18 +2348,11 @@ async function searchOrders2(search) {
2923
2348
  transformPaths2(result.data, [
2924
2349
  {
2925
2350
  transformFn: transformRESTImageToSDKImage,
2926
- paths: [{ path: "orders.lineItems.image" }]
2351
+ paths: TRANSFORM_PATHS_42
2927
2352
  },
2928
2353
  {
2929
2354
  transformFn: transformRESTAddressToSDKAddress,
2930
- paths: [
2931
- { path: "orders.billingInfo.address" },
2932
- {
2933
- path: "orders.shippingInfo.logistics.shippingDestination.address"
2934
- },
2935
- { path: "orders.shippingInfo.logistics.pickupDetails.address" },
2936
- { path: "orders.recipientInfo.address" }
2937
- ]
2355
+ paths: TRANSFORM_PATHS_52
2938
2356
  }
2939
2357
  ])
2940
2358
  );
@@ -2965,16 +2383,11 @@ async function createOrder2(order, options) {
2965
2383
  [
2966
2384
  {
2967
2385
  transformFn: transformSDKImageToRESTImage,
2968
- paths: [{ path: "order.lineItems.image" }]
2386
+ paths: TRANSFORM_PATHS_02
2969
2387
  },
2970
2388
  {
2971
2389
  transformFn: transformSDKAddressToRESTAddress,
2972
- paths: [
2973
- { path: "order.billingInfo.address" },
2974
- { path: "order.shippingInfo.logistics.shippingDestination.address" },
2975
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
2976
- { path: "order.recipientInfo.address" }
2977
- ]
2390
+ paths: TRANSFORM_PATHS_16
2978
2391
  }
2979
2392
  ]
2980
2393
  );
@@ -2987,18 +2400,11 @@ async function createOrder2(order, options) {
2987
2400
  transformPaths2(result.data, [
2988
2401
  {
2989
2402
  transformFn: transformRESTImageToSDKImage,
2990
- paths: [{ path: "order.lineItems.image" }]
2403
+ paths: TRANSFORM_PATHS_02
2991
2404
  },
2992
2405
  {
2993
2406
  transformFn: transformRESTAddressToSDKAddress,
2994
- paths: [
2995
- { path: "order.billingInfo.address" },
2996
- {
2997
- path: "order.shippingInfo.logistics.shippingDestination.address"
2998
- },
2999
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3000
- { path: "order.recipientInfo.address" }
3001
- ]
2407
+ paths: TRANSFORM_PATHS_16
3002
2408
  }
3003
2409
  ])
3004
2410
  )?.order;
@@ -3023,16 +2429,11 @@ async function updateOrder2(_id, order) {
3023
2429
  [
3024
2430
  {
3025
2431
  transformFn: transformSDKImageToRESTImage,
3026
- paths: [{ path: "order.lineItems.image" }]
2432
+ paths: TRANSFORM_PATHS_02
3027
2433
  },
3028
2434
  {
3029
2435
  transformFn: transformSDKAddressToRESTAddress,
3030
- paths: [
3031
- { path: "order.billingInfo.address" },
3032
- { path: "order.shippingInfo.logistics.shippingDestination.address" },
3033
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3034
- { path: "order.recipientInfo.address" }
3035
- ]
2436
+ paths: TRANSFORM_PATHS_16
3036
2437
  }
3037
2438
  ]
3038
2439
  );
@@ -3045,18 +2446,11 @@ async function updateOrder2(_id, order) {
3045
2446
  transformPaths2(result.data, [
3046
2447
  {
3047
2448
  transformFn: transformRESTImageToSDKImage,
3048
- paths: [{ path: "order.lineItems.image" }]
2449
+ paths: TRANSFORM_PATHS_02
3049
2450
  },
3050
2451
  {
3051
2452
  transformFn: transformRESTAddressToSDKAddress,
3052
- paths: [
3053
- { path: "order.billingInfo.address" },
3054
- {
3055
- path: "order.shippingInfo.logistics.shippingDestination.address"
3056
- },
3057
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3058
- { path: "order.recipientInfo.address" }
3059
- ]
2453
+ paths: TRANSFORM_PATHS_16
3060
2454
  }
3061
2455
  ])
3062
2456
  )?.order;
@@ -3084,18 +2478,11 @@ async function bulkUpdateOrders2(orders, options) {
3084
2478
  [
3085
2479
  {
3086
2480
  transformFn: transformSDKImageToRESTImage,
3087
- paths: [{ path: "orders.order.lineItems.image" }]
2481
+ paths: TRANSFORM_PATHS_62
3088
2482
  },
3089
2483
  {
3090
2484
  transformFn: transformSDKAddressToRESTAddress,
3091
- paths: [
3092
- { path: "orders.order.billingInfo.address" },
3093
- {
3094
- path: "orders.order.shippingInfo.logistics.shippingDestination.address"
3095
- },
3096
- { path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
3097
- { path: "orders.order.recipientInfo.address" }
3098
- ]
2485
+ paths: TRANSFORM_PATHS_72
3099
2486
  }
3100
2487
  ]
3101
2488
  );
@@ -3108,20 +2495,11 @@ async function bulkUpdateOrders2(orders, options) {
3108
2495
  transformPaths2(result.data, [
3109
2496
  {
3110
2497
  transformFn: transformRESTImageToSDKImage,
3111
- paths: [{ path: "results.item.lineItems.image" }]
2498
+ paths: TRANSFORM_PATHS_22
3112
2499
  },
3113
2500
  {
3114
2501
  transformFn: transformRESTAddressToSDKAddress,
3115
- paths: [
3116
- { path: "results.item.billingInfo.address" },
3117
- {
3118
- path: "results.item.shippingInfo.logistics.shippingDestination.address"
3119
- },
3120
- {
3121
- path: "results.item.shippingInfo.logistics.pickupDetails.address"
3122
- },
3123
- { path: "results.item.recipientInfo.address" }
3124
- ]
2502
+ paths: TRANSFORM_PATHS_32
3125
2503
  }
3126
2504
  ])
3127
2505
  );
@@ -3152,7 +2530,7 @@ async function updateOrderLineItem2(identifiers, lineItem) {
3152
2530
  [
3153
2531
  {
3154
2532
  transformFn: transformSDKImageToRESTImage,
3155
- paths: [{ path: "lineItem.image" }]
2533
+ paths: TRANSFORM_PATHS_82
3156
2534
  }
3157
2535
  ]
3158
2536
  );
@@ -3165,18 +2543,11 @@ async function updateOrderLineItem2(identifiers, lineItem) {
3165
2543
  transformPaths2(result.data, [
3166
2544
  {
3167
2545
  transformFn: transformRESTImageToSDKImage,
3168
- paths: [{ path: "order.lineItems.image" }]
2546
+ paths: TRANSFORM_PATHS_02
3169
2547
  },
3170
2548
  {
3171
2549
  transformFn: transformRESTAddressToSDKAddress,
3172
- paths: [
3173
- { path: "order.billingInfo.address" },
3174
- {
3175
- path: "order.shippingInfo.logistics.shippingDestination.address"
3176
- },
3177
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3178
- { path: "order.recipientInfo.address" }
3179
- ]
2550
+ paths: TRANSFORM_PATHS_16
3180
2551
  }
3181
2552
  ])
3182
2553
  );
@@ -3212,18 +2583,11 @@ async function addActivity2(_id, activity) {
3212
2583
  transformPaths2(result.data, [
3213
2584
  {
3214
2585
  transformFn: transformRESTImageToSDKImage,
3215
- paths: [{ path: "order.lineItems.image" }]
2586
+ paths: TRANSFORM_PATHS_02
3216
2587
  },
3217
2588
  {
3218
2589
  transformFn: transformRESTAddressToSDKAddress,
3219
- paths: [
3220
- { path: "order.billingInfo.address" },
3221
- {
3222
- path: "order.shippingInfo.logistics.shippingDestination.address"
3223
- },
3224
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3225
- { path: "order.recipientInfo.address" }
3226
- ]
2590
+ paths: TRANSFORM_PATHS_16
3227
2591
  }
3228
2592
  ])
3229
2593
  );
@@ -3256,18 +2620,11 @@ async function addActivities2(orderId, options) {
3256
2620
  transformPaths2(result.data, [
3257
2621
  {
3258
2622
  transformFn: transformRESTImageToSDKImage,
3259
- paths: [{ path: "order.lineItems.image" }]
2623
+ paths: TRANSFORM_PATHS_02
3260
2624
  },
3261
2625
  {
3262
2626
  transformFn: transformRESTAddressToSDKAddress,
3263
- paths: [
3264
- { path: "order.billingInfo.address" },
3265
- {
3266
- path: "order.shippingInfo.logistics.shippingDestination.address"
3267
- },
3268
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3269
- { path: "order.recipientInfo.address" }
3270
- ]
2627
+ paths: TRANSFORM_PATHS_16
3271
2628
  }
3272
2629
  ])
3273
2630
  );
@@ -3304,18 +2661,11 @@ async function updateActivity2(identifiers, activity) {
3304
2661
  transformPaths2(result.data, [
3305
2662
  {
3306
2663
  transformFn: transformRESTImageToSDKImage,
3307
- paths: [{ path: "order.lineItems.image" }]
2664
+ paths: TRANSFORM_PATHS_02
3308
2665
  },
3309
2666
  {
3310
2667
  transformFn: transformRESTAddressToSDKAddress,
3311
- paths: [
3312
- { path: "order.billingInfo.address" },
3313
- {
3314
- path: "order.shippingInfo.logistics.shippingDestination.address"
3315
- },
3316
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3317
- { path: "order.recipientInfo.address" }
3318
- ]
2668
+ paths: TRANSFORM_PATHS_16
3319
2669
  }
3320
2670
  ])
3321
2671
  );
@@ -3352,18 +2702,11 @@ async function deleteActivity2(identifiers) {
3352
2702
  transformPaths2(result.data, [
3353
2703
  {
3354
2704
  transformFn: transformRESTImageToSDKImage,
3355
- paths: [{ path: "order.lineItems.image" }]
2705
+ paths: TRANSFORM_PATHS_02
3356
2706
  },
3357
2707
  {
3358
2708
  transformFn: transformRESTAddressToSDKAddress,
3359
- paths: [
3360
- { path: "order.billingInfo.address" },
3361
- {
3362
- path: "order.shippingInfo.logistics.shippingDestination.address"
3363
- },
3364
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3365
- { path: "order.recipientInfo.address" }
3366
- ]
2709
+ paths: TRANSFORM_PATHS_16
3367
2710
  }
3368
2711
  ])
3369
2712
  );
@@ -3401,18 +2744,11 @@ async function cancelOrder2(_id, options) {
3401
2744
  transformPaths2(result.data, [
3402
2745
  {
3403
2746
  transformFn: transformRESTImageToSDKImage,
3404
- paths: [{ path: "order.lineItems.image" }]
2747
+ paths: TRANSFORM_PATHS_02
3405
2748
  },
3406
2749
  {
3407
2750
  transformFn: transformRESTAddressToSDKAddress,
3408
- paths: [
3409
- { path: "order.billingInfo.address" },
3410
- {
3411
- path: "order.shippingInfo.logistics.shippingDestination.address"
3412
- },
3413
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3414
- { path: "order.recipientInfo.address" }
3415
- ]
2751
+ paths: TRANSFORM_PATHS_16
3416
2752
  }
3417
2753
  ])
3418
2754
  );
@@ -3450,18 +2786,11 @@ async function updateOrderStatus2(orderId, status) {
3450
2786
  transformPaths2(result.data, [
3451
2787
  {
3452
2788
  transformFn: transformRESTImageToSDKImage,
3453
- paths: [{ path: "order.lineItems.image" }]
2789
+ paths: TRANSFORM_PATHS_02
3454
2790
  },
3455
2791
  {
3456
2792
  transformFn: transformRESTAddressToSDKAddress,
3457
- paths: [
3458
- { path: "order.billingInfo.address" },
3459
- {
3460
- path: "order.shippingInfo.logistics.shippingDestination.address"
3461
- },
3462
- { path: "order.shippingInfo.logistics.pickupDetails.address" },
3463
- { path: "order.recipientInfo.address" }
3464
- ]
2793
+ paths: TRANSFORM_PATHS_16
3465
2794
  }
3466
2795
  ])
3467
2796
  );