@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
|
@@ -131,6 +131,196 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
131
131
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
132
132
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
133
133
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
134
|
+
var TRANSFORM_PATHS_0 = [
|
|
135
|
+
{ path: "order.createdDate" },
|
|
136
|
+
{ path: "order.updatedDate" },
|
|
137
|
+
{ path: "order.purchasedDate" },
|
|
138
|
+
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
139
|
+
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
140
|
+
{ path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
141
|
+
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
142
|
+
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
143
|
+
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
144
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
145
|
+
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
146
|
+
{ path: "order.activities.createdDate" }
|
|
147
|
+
];
|
|
148
|
+
var TRANSFORM_PATHS_1 = [
|
|
149
|
+
{ path: "order.lineItems.image.focalPoint.x" },
|
|
150
|
+
{ path: "order.lineItems.image.focalPoint.y" },
|
|
151
|
+
{ path: "order.lineItems.physicalProperties.weight" },
|
|
152
|
+
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
153
|
+
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
154
|
+
{
|
|
155
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
165
|
+
},
|
|
166
|
+
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
167
|
+
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
168
|
+
];
|
|
169
|
+
var TRANSFORM_PATHS_2 = [
|
|
170
|
+
{ path: "results.item.createdDate" },
|
|
171
|
+
{ path: "results.item.updatedDate" },
|
|
172
|
+
{ path: "results.item.purchasedDate" },
|
|
173
|
+
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
174
|
+
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
175
|
+
{
|
|
176
|
+
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
177
|
+
},
|
|
178
|
+
{ path: "results.item.lineItems.serviceProperties.scheduledDate" },
|
|
179
|
+
{ path: "results.item.lineItems.serviceProperties.endDate" },
|
|
180
|
+
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
181
|
+
{ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
182
|
+
{ path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
183
|
+
{ path: "results.item.activities.createdDate" }
|
|
184
|
+
];
|
|
185
|
+
var TRANSFORM_PATHS_3 = [
|
|
186
|
+
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
187
|
+
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
188
|
+
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
189
|
+
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
190
|
+
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
191
|
+
{
|
|
192
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
202
|
+
},
|
|
203
|
+
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
204
|
+
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
205
|
+
];
|
|
206
|
+
var TRANSFORM_PATHS_4 = [
|
|
207
|
+
{ path: "membershipCharges.serviceProperties.scheduledDate" },
|
|
208
|
+
{ path: "membershipCharges.serviceProperties.endDate" }
|
|
209
|
+
];
|
|
210
|
+
var TRANSFORM_PATHS_5 = [
|
|
211
|
+
{ path: "orderTransactions.payments.createdDate" },
|
|
212
|
+
{ path: "orderTransactions.payments.updatedDate" },
|
|
213
|
+
{
|
|
214
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
230
|
+
},
|
|
231
|
+
{ path: "orderTransactions.refunds.createdDate" }
|
|
232
|
+
];
|
|
233
|
+
var TRANSFORM_PATHS_6 = [
|
|
234
|
+
{ path: "search.sort.origin.latitude" },
|
|
235
|
+
{ path: "search.sort.origin.longitude" }
|
|
236
|
+
];
|
|
237
|
+
var TRANSFORM_PATHS_7 = [
|
|
238
|
+
{ path: "orders.createdDate" },
|
|
239
|
+
{ path: "orders.updatedDate" },
|
|
240
|
+
{ path: "orders.purchasedDate" },
|
|
241
|
+
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
242
|
+
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
243
|
+
{ path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
244
|
+
{ path: "orders.lineItems.serviceProperties.scheduledDate" },
|
|
245
|
+
{ path: "orders.lineItems.serviceProperties.endDate" },
|
|
246
|
+
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
247
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
248
|
+
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
249
|
+
{ path: "orders.activities.createdDate" }
|
|
250
|
+
];
|
|
251
|
+
var TRANSFORM_PATHS_8 = [
|
|
252
|
+
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
253
|
+
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
254
|
+
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
255
|
+
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
256
|
+
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
257
|
+
{
|
|
258
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
268
|
+
},
|
|
269
|
+
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
270
|
+
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
271
|
+
];
|
|
272
|
+
var TRANSFORM_PATHS_9 = [{ path: "fieldMask" }];
|
|
273
|
+
var TRANSFORM_PATHS_10 = [{ path: "orders.fieldMask" }];
|
|
274
|
+
var TRANSFORM_PATHS_11 = [
|
|
275
|
+
{ path: "orders.order.createdDate" },
|
|
276
|
+
{ path: "orders.order.updatedDate" },
|
|
277
|
+
{ path: "orders.order.purchasedDate" },
|
|
278
|
+
{ path: "orders.order.lineItems.image.urlExpirationDate" },
|
|
279
|
+
{ path: "orders.order.lineItems.digitalFile.expirationDate" },
|
|
280
|
+
{
|
|
281
|
+
path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
282
|
+
},
|
|
283
|
+
{ path: "orders.order.lineItems.serviceProperties.scheduledDate" },
|
|
284
|
+
{ path: "orders.order.lineItems.serviceProperties.endDate" },
|
|
285
|
+
{ path: "orders.order.shippingInfo.logistics.deliverByDate" },
|
|
286
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
287
|
+
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
288
|
+
{ path: "orders.order.activities.createdDate" }
|
|
289
|
+
];
|
|
290
|
+
var TRANSFORM_PATHS_12 = [
|
|
291
|
+
{ path: "orders.order.lineItems.image.focalPoint.x" },
|
|
292
|
+
{ path: "orders.order.lineItems.image.focalPoint.y" },
|
|
293
|
+
{ path: "orders.order.lineItems.physicalProperties.weight" },
|
|
294
|
+
{ path: "orders.order.billingInfo.address.geocode.latitude" },
|
|
295
|
+
{ path: "orders.order.billingInfo.address.geocode.longitude" },
|
|
296
|
+
{
|
|
297
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
307
|
+
},
|
|
308
|
+
{ path: "orders.order.recipientInfo.address.geocode.latitude" },
|
|
309
|
+
{ path: "orders.order.recipientInfo.address.geocode.longitude" }
|
|
310
|
+
];
|
|
311
|
+
var TRANSFORM_PATHS_13 = [
|
|
312
|
+
{ path: "lineItem.image.urlExpirationDate" },
|
|
313
|
+
{ path: "lineItem.digitalFile.expirationDate" },
|
|
314
|
+
{ path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
|
|
315
|
+
{ path: "lineItem.serviceProperties.scheduledDate" },
|
|
316
|
+
{ path: "lineItem.serviceProperties.endDate" }
|
|
317
|
+
];
|
|
318
|
+
var TRANSFORM_PATHS_14 = [
|
|
319
|
+
{ path: "lineItem.image.focalPoint.x" },
|
|
320
|
+
{ path: "lineItem.image.focalPoint.y" },
|
|
321
|
+
{ path: "lineItem.physicalProperties.weight" }
|
|
322
|
+
];
|
|
323
|
+
var TRANSFORM_PATHS_15 = [{ path: "orderActivities.createdDate" }];
|
|
134
324
|
function resolveComWixEcomOrdersV1OrdersUrl(opts) {
|
|
135
325
|
const domainToMappings = {
|
|
136
326
|
_: [
|
|
@@ -294,46 +484,11 @@ function importOrder(payload) {
|
|
|
294
484
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
295
485
|
{
|
|
296
486
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
297
|
-
paths:
|
|
298
|
-
{ path: "order.createdDate" },
|
|
299
|
-
{ path: "order.updatedDate" },
|
|
300
|
-
{ path: "order.purchasedDate" },
|
|
301
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
302
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
303
|
-
{
|
|
304
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
305
|
-
},
|
|
306
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
307
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
308
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
309
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
310
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
311
|
-
{ path: "order.activities.createdDate" }
|
|
312
|
-
]
|
|
487
|
+
paths: TRANSFORM_PATHS_0
|
|
313
488
|
},
|
|
314
489
|
{
|
|
315
490
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
316
|
-
paths:
|
|
317
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
318
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
319
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
320
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
321
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
322
|
-
{
|
|
323
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
333
|
-
},
|
|
334
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
335
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
336
|
-
]
|
|
491
|
+
paths: TRANSFORM_PATHS_1
|
|
337
492
|
}
|
|
338
493
|
]);
|
|
339
494
|
const metadata = {
|
|
@@ -353,46 +508,11 @@ function importOrder(payload) {
|
|
|
353
508
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
354
509
|
{
|
|
355
510
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
356
|
-
paths:
|
|
357
|
-
{ path: "order.createdDate" },
|
|
358
|
-
{ path: "order.updatedDate" },
|
|
359
|
-
{ path: "order.purchasedDate" },
|
|
360
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
361
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
362
|
-
{
|
|
363
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
364
|
-
},
|
|
365
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
366
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
367
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
368
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
369
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
370
|
-
{ path: "order.activities.createdDate" }
|
|
371
|
-
]
|
|
511
|
+
paths: TRANSFORM_PATHS_0
|
|
372
512
|
},
|
|
373
513
|
{
|
|
374
514
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
375
|
-
paths:
|
|
376
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
377
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
378
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
379
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
380
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
381
|
-
{
|
|
382
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
392
|
-
},
|
|
393
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
394
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
395
|
-
]
|
|
515
|
+
paths: TRANSFORM_PATHS_1
|
|
396
516
|
}
|
|
397
517
|
])
|
|
398
518
|
};
|
|
@@ -524,46 +644,11 @@ function paymentCollectionMarkOrderAsPaid(payload) {
|
|
|
524
644
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
525
645
|
{
|
|
526
646
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
527
|
-
paths:
|
|
528
|
-
{ path: "order.createdDate" },
|
|
529
|
-
{ path: "order.updatedDate" },
|
|
530
|
-
{ path: "order.purchasedDate" },
|
|
531
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
532
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
533
|
-
{
|
|
534
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
535
|
-
},
|
|
536
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
537
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
538
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
539
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
540
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
541
|
-
{ path: "order.activities.createdDate" }
|
|
542
|
-
]
|
|
647
|
+
paths: TRANSFORM_PATHS_0
|
|
543
648
|
},
|
|
544
649
|
{
|
|
545
650
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
546
|
-
paths:
|
|
547
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
548
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
549
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
550
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
551
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
552
|
-
{
|
|
553
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
563
|
-
},
|
|
564
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
565
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
566
|
-
]
|
|
651
|
+
paths: TRANSFORM_PATHS_1
|
|
567
652
|
}
|
|
568
653
|
])
|
|
569
654
|
};
|
|
@@ -590,52 +675,11 @@ function paymentCollectionBulkMarkOrdersAsPaid(payload) {
|
|
|
590
675
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
591
676
|
{
|
|
592
677
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
593
|
-
paths:
|
|
594
|
-
{ path: "results.item.createdDate" },
|
|
595
|
-
{ path: "results.item.updatedDate" },
|
|
596
|
-
{ path: "results.item.purchasedDate" },
|
|
597
|
-
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
598
|
-
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
599
|
-
{
|
|
600
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
path: "results.item.lineItems.serviceProperties.scheduledDate"
|
|
604
|
-
},
|
|
605
|
-
{ path: "results.item.lineItems.serviceProperties.endDate" },
|
|
606
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
607
|
-
{
|
|
608
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
612
|
-
},
|
|
613
|
-
{ path: "results.item.activities.createdDate" }
|
|
614
|
-
]
|
|
678
|
+
paths: TRANSFORM_PATHS_2
|
|
615
679
|
},
|
|
616
680
|
{
|
|
617
681
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
618
|
-
paths:
|
|
619
|
-
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
620
|
-
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
621
|
-
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
622
|
-
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
623
|
-
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
624
|
-
{
|
|
625
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
635
|
-
},
|
|
636
|
-
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
637
|
-
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
638
|
-
]
|
|
682
|
+
paths: TRANSFORM_PATHS_3
|
|
639
683
|
}
|
|
640
684
|
])
|
|
641
685
|
};
|
|
@@ -690,10 +734,7 @@ function chargeMemberships(payload) {
|
|
|
690
734
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
691
735
|
{
|
|
692
736
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
693
|
-
paths:
|
|
694
|
-
{ path: "membershipCharges.serviceProperties.scheduledDate" },
|
|
695
|
-
{ path: "membershipCharges.serviceProperties.endDate" }
|
|
696
|
-
]
|
|
737
|
+
paths: TRANSFORM_PATHS_4
|
|
697
738
|
}
|
|
698
739
|
]);
|
|
699
740
|
const metadata = {
|
|
@@ -734,29 +775,7 @@ function triggerRefund(payload) {
|
|
|
734
775
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
735
776
|
{
|
|
736
777
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
737
|
-
paths:
|
|
738
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
739
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
740
|
-
{
|
|
741
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
754
|
-
},
|
|
755
|
-
{
|
|
756
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
757
|
-
},
|
|
758
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
759
|
-
]
|
|
778
|
+
paths: TRANSFORM_PATHS_5
|
|
760
779
|
}
|
|
761
780
|
])
|
|
762
781
|
};
|
|
@@ -783,29 +802,7 @@ function voidAuthorizedPayments(payload) {
|
|
|
783
802
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
784
803
|
{
|
|
785
804
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
786
|
-
paths:
|
|
787
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
788
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
789
|
-
{
|
|
790
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
806
|
-
},
|
|
807
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
808
|
-
]
|
|
805
|
+
paths: TRANSFORM_PATHS_5
|
|
809
806
|
}
|
|
810
807
|
])
|
|
811
808
|
};
|
|
@@ -832,29 +829,7 @@ function captureAuthorizedPayments(payload) {
|
|
|
832
829
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
833
830
|
{
|
|
834
831
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
835
|
-
paths:
|
|
836
|
-
{ path: "orderTransactions.payments.createdDate" },
|
|
837
|
-
{ path: "orderTransactions.payments.updatedDate" },
|
|
838
|
-
{
|
|
839
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.authorizedDate"
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.captures.createdDate"
|
|
843
|
-
},
|
|
844
|
-
{
|
|
845
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.void.voidedDate"
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
path: "orderTransactions.payments.regularPaymentDetails.authorizationDetails.scheduledAction.executionDate"
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.createdDate"
|
|
852
|
-
},
|
|
853
|
-
{
|
|
854
|
-
path: "orderTransactions.payments.regularPaymentDetails.chargebacks.updatedDate"
|
|
855
|
-
},
|
|
856
|
-
{ path: "orderTransactions.refunds.createdDate" }
|
|
857
|
-
]
|
|
832
|
+
paths: TRANSFORM_PATHS_5
|
|
858
833
|
}
|
|
859
834
|
])
|
|
860
835
|
};
|
|
@@ -881,46 +856,11 @@ function getOrder(payload) {
|
|
|
881
856
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
882
857
|
{
|
|
883
858
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
884
|
-
paths:
|
|
885
|
-
{ path: "order.createdDate" },
|
|
886
|
-
{ path: "order.updatedDate" },
|
|
887
|
-
{ path: "order.purchasedDate" },
|
|
888
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
889
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
890
|
-
{
|
|
891
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
892
|
-
},
|
|
893
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
894
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
895
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
896
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
897
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
898
|
-
{ path: "order.activities.createdDate" }
|
|
899
|
-
]
|
|
859
|
+
paths: TRANSFORM_PATHS_0
|
|
900
860
|
},
|
|
901
861
|
{
|
|
902
862
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
903
|
-
paths:
|
|
904
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
905
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
906
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
907
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
908
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
909
|
-
{
|
|
910
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
911
|
-
},
|
|
912
|
-
{
|
|
913
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
914
|
-
},
|
|
915
|
-
{
|
|
916
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
920
|
-
},
|
|
921
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
922
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
923
|
-
]
|
|
863
|
+
paths: TRANSFORM_PATHS_1
|
|
924
864
|
}
|
|
925
865
|
])
|
|
926
866
|
};
|
|
@@ -933,10 +873,7 @@ function searchOrders(payload) {
|
|
|
933
873
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
934
874
|
{
|
|
935
875
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
936
|
-
paths:
|
|
937
|
-
{ path: "search.sort.origin.latitude" },
|
|
938
|
-
{ path: "search.sort.origin.longitude" }
|
|
939
|
-
]
|
|
876
|
+
paths: TRANSFORM_PATHS_6
|
|
940
877
|
}
|
|
941
878
|
]);
|
|
942
879
|
const metadata = {
|
|
@@ -956,46 +893,11 @@ function searchOrders(payload) {
|
|
|
956
893
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
957
894
|
{
|
|
958
895
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
959
|
-
paths:
|
|
960
|
-
{ path: "orders.createdDate" },
|
|
961
|
-
{ path: "orders.updatedDate" },
|
|
962
|
-
{ path: "orders.purchasedDate" },
|
|
963
|
-
{ path: "orders.lineItems.image.urlExpirationDate" },
|
|
964
|
-
{ path: "orders.lineItems.digitalFile.expirationDate" },
|
|
965
|
-
{
|
|
966
|
-
path: "orders.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
967
|
-
},
|
|
968
|
-
{ path: "orders.lineItems.serviceProperties.scheduledDate" },
|
|
969
|
-
{ path: "orders.lineItems.serviceProperties.endDate" },
|
|
970
|
-
{ path: "orders.shippingInfo.logistics.deliverByDate" },
|
|
971
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
972
|
-
{ path: "orders.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
973
|
-
{ path: "orders.activities.createdDate" }
|
|
974
|
-
]
|
|
896
|
+
paths: TRANSFORM_PATHS_7
|
|
975
897
|
},
|
|
976
898
|
{
|
|
977
899
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
978
|
-
paths:
|
|
979
|
-
{ path: "orders.lineItems.image.focalPoint.x" },
|
|
980
|
-
{ path: "orders.lineItems.image.focalPoint.y" },
|
|
981
|
-
{ path: "orders.lineItems.physicalProperties.weight" },
|
|
982
|
-
{ path: "orders.billingInfo.address.geocode.latitude" },
|
|
983
|
-
{ path: "orders.billingInfo.address.geocode.longitude" },
|
|
984
|
-
{
|
|
985
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
path: "orders.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
995
|
-
},
|
|
996
|
-
{ path: "orders.recipientInfo.address.geocode.latitude" },
|
|
997
|
-
{ path: "orders.recipientInfo.address.geocode.longitude" }
|
|
998
|
-
]
|
|
900
|
+
paths: TRANSFORM_PATHS_8
|
|
999
901
|
}
|
|
1000
902
|
])
|
|
1001
903
|
};
|
|
@@ -1008,46 +910,11 @@ function createOrder(payload) {
|
|
|
1008
910
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1009
911
|
{
|
|
1010
912
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1011
|
-
paths:
|
|
1012
|
-
{ path: "order.createdDate" },
|
|
1013
|
-
{ path: "order.updatedDate" },
|
|
1014
|
-
{ path: "order.purchasedDate" },
|
|
1015
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1016
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1017
|
-
{
|
|
1018
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1019
|
-
},
|
|
1020
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1021
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1022
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1023
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1024
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1025
|
-
{ path: "order.activities.createdDate" }
|
|
1026
|
-
]
|
|
913
|
+
paths: TRANSFORM_PATHS_0
|
|
1027
914
|
},
|
|
1028
915
|
{
|
|
1029
916
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1030
|
-
paths:
|
|
1031
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1032
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1033
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1034
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1035
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1036
|
-
{
|
|
1037
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1038
|
-
},
|
|
1039
|
-
{
|
|
1040
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1041
|
-
},
|
|
1042
|
-
{
|
|
1043
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1044
|
-
},
|
|
1045
|
-
{
|
|
1046
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1047
|
-
},
|
|
1048
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1049
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1050
|
-
]
|
|
917
|
+
paths: TRANSFORM_PATHS_1
|
|
1051
918
|
}
|
|
1052
919
|
]);
|
|
1053
920
|
const metadata = {
|
|
@@ -1067,46 +934,11 @@ function createOrder(payload) {
|
|
|
1067
934
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1068
935
|
{
|
|
1069
936
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1070
|
-
paths:
|
|
1071
|
-
{ path: "order.createdDate" },
|
|
1072
|
-
{ path: "order.updatedDate" },
|
|
1073
|
-
{ path: "order.purchasedDate" },
|
|
1074
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1075
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1076
|
-
{
|
|
1077
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1078
|
-
},
|
|
1079
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1080
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1081
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1082
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1083
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1084
|
-
{ path: "order.activities.createdDate" }
|
|
1085
|
-
]
|
|
937
|
+
paths: TRANSFORM_PATHS_0
|
|
1086
938
|
},
|
|
1087
939
|
{
|
|
1088
940
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1089
|
-
paths:
|
|
1090
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1091
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1092
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1093
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1094
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1095
|
-
{
|
|
1096
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1100
|
-
},
|
|
1101
|
-
{
|
|
1102
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1106
|
-
},
|
|
1107
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1108
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1109
|
-
]
|
|
941
|
+
paths: TRANSFORM_PATHS_1
|
|
1110
942
|
}
|
|
1111
943
|
])
|
|
1112
944
|
};
|
|
@@ -1119,50 +951,15 @@ function updateOrder(payload) {
|
|
|
1119
951
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1120
952
|
{
|
|
1121
953
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1122
|
-
paths:
|
|
954
|
+
paths: TRANSFORM_PATHS_9
|
|
1123
955
|
},
|
|
1124
956
|
{
|
|
1125
957
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1126
|
-
paths:
|
|
1127
|
-
{ path: "order.createdDate" },
|
|
1128
|
-
{ path: "order.updatedDate" },
|
|
1129
|
-
{ path: "order.purchasedDate" },
|
|
1130
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1131
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1132
|
-
{
|
|
1133
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1134
|
-
},
|
|
1135
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1136
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1137
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1138
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1139
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1140
|
-
{ path: "order.activities.createdDate" }
|
|
1141
|
-
]
|
|
958
|
+
paths: TRANSFORM_PATHS_0
|
|
1142
959
|
},
|
|
1143
960
|
{
|
|
1144
961
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1145
|
-
paths:
|
|
1146
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1147
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1148
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1149
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1150
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1151
|
-
{
|
|
1152
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1153
|
-
},
|
|
1154
|
-
{
|
|
1155
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1156
|
-
},
|
|
1157
|
-
{
|
|
1158
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1159
|
-
},
|
|
1160
|
-
{
|
|
1161
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1162
|
-
},
|
|
1163
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1164
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1165
|
-
]
|
|
962
|
+
paths: TRANSFORM_PATHS_1
|
|
1166
963
|
}
|
|
1167
964
|
]);
|
|
1168
965
|
const metadata = {
|
|
@@ -1182,46 +979,11 @@ function updateOrder(payload) {
|
|
|
1182
979
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1183
980
|
{
|
|
1184
981
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1185
|
-
paths:
|
|
1186
|
-
{ path: "order.createdDate" },
|
|
1187
|
-
{ path: "order.updatedDate" },
|
|
1188
|
-
{ path: "order.purchasedDate" },
|
|
1189
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1190
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1191
|
-
{
|
|
1192
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1193
|
-
},
|
|
1194
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1195
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1196
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1197
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1198
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1199
|
-
{ path: "order.activities.createdDate" }
|
|
1200
|
-
]
|
|
982
|
+
paths: TRANSFORM_PATHS_0
|
|
1201
983
|
},
|
|
1202
984
|
{
|
|
1203
985
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1204
|
-
paths:
|
|
1205
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1206
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1207
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1208
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1209
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1210
|
-
{
|
|
1211
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1215
|
-
},
|
|
1216
|
-
{
|
|
1217
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1220
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1221
|
-
},
|
|
1222
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1223
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1224
|
-
]
|
|
986
|
+
paths: TRANSFORM_PATHS_1
|
|
1225
987
|
}
|
|
1226
988
|
])
|
|
1227
989
|
};
|
|
@@ -1234,50 +996,15 @@ function bulkUpdateOrders(payload) {
|
|
|
1234
996
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1235
997
|
{
|
|
1236
998
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1237
|
-
paths:
|
|
999
|
+
paths: TRANSFORM_PATHS_10
|
|
1238
1000
|
},
|
|
1239
1001
|
{
|
|
1240
1002
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1241
|
-
paths:
|
|
1242
|
-
{ path: "orders.order.createdDate" },
|
|
1243
|
-
{ path: "orders.order.updatedDate" },
|
|
1244
|
-
{ path: "orders.order.purchasedDate" },
|
|
1245
|
-
{ path: "orders.order.lineItems.image.urlExpirationDate" },
|
|
1246
|
-
{ path: "orders.order.lineItems.digitalFile.expirationDate" },
|
|
1247
|
-
{
|
|
1248
|
-
path: "orders.order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1249
|
-
},
|
|
1250
|
-
{ path: "orders.order.lineItems.serviceProperties.scheduledDate" },
|
|
1251
|
-
{ path: "orders.order.lineItems.serviceProperties.endDate" },
|
|
1252
|
-
{ path: "orders.order.shippingInfo.logistics.deliverByDate" },
|
|
1253
|
-
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1254
|
-
{ path: "orders.order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1255
|
-
{ path: "orders.order.activities.createdDate" }
|
|
1256
|
-
]
|
|
1003
|
+
paths: TRANSFORM_PATHS_11
|
|
1257
1004
|
},
|
|
1258
1005
|
{
|
|
1259
1006
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1260
|
-
paths:
|
|
1261
|
-
{ path: "orders.order.lineItems.image.focalPoint.x" },
|
|
1262
|
-
{ path: "orders.order.lineItems.image.focalPoint.y" },
|
|
1263
|
-
{ path: "orders.order.lineItems.physicalProperties.weight" },
|
|
1264
|
-
{ path: "orders.order.billingInfo.address.geocode.latitude" },
|
|
1265
|
-
{ path: "orders.order.billingInfo.address.geocode.longitude" },
|
|
1266
|
-
{
|
|
1267
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1268
|
-
},
|
|
1269
|
-
{
|
|
1270
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1271
|
-
},
|
|
1272
|
-
{
|
|
1273
|
-
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
path: "orders.order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1277
|
-
},
|
|
1278
|
-
{ path: "orders.order.recipientInfo.address.geocode.latitude" },
|
|
1279
|
-
{ path: "orders.order.recipientInfo.address.geocode.longitude" }
|
|
1280
|
-
]
|
|
1007
|
+
paths: TRANSFORM_PATHS_12
|
|
1281
1008
|
}
|
|
1282
1009
|
]);
|
|
1283
1010
|
const metadata = {
|
|
@@ -1297,52 +1024,11 @@ function bulkUpdateOrders(payload) {
|
|
|
1297
1024
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1298
1025
|
{
|
|
1299
1026
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1300
|
-
paths:
|
|
1301
|
-
{ path: "results.item.createdDate" },
|
|
1302
|
-
{ path: "results.item.updatedDate" },
|
|
1303
|
-
{ path: "results.item.purchasedDate" },
|
|
1304
|
-
{ path: "results.item.lineItems.image.urlExpirationDate" },
|
|
1305
|
-
{ path: "results.item.lineItems.digitalFile.expirationDate" },
|
|
1306
|
-
{
|
|
1307
|
-
path: "results.item.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1308
|
-
},
|
|
1309
|
-
{
|
|
1310
|
-
path: "results.item.lineItems.serviceProperties.scheduledDate"
|
|
1311
|
-
},
|
|
1312
|
-
{ path: "results.item.lineItems.serviceProperties.endDate" },
|
|
1313
|
-
{ path: "results.item.shippingInfo.logistics.deliverByDate" },
|
|
1314
|
-
{
|
|
1315
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
path: "results.item.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
1319
|
-
},
|
|
1320
|
-
{ path: "results.item.activities.createdDate" }
|
|
1321
|
-
]
|
|
1027
|
+
paths: TRANSFORM_PATHS_2
|
|
1322
1028
|
},
|
|
1323
1029
|
{
|
|
1324
1030
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1325
|
-
paths:
|
|
1326
|
-
{ path: "results.item.lineItems.image.focalPoint.x" },
|
|
1327
|
-
{ path: "results.item.lineItems.image.focalPoint.y" },
|
|
1328
|
-
{ path: "results.item.lineItems.physicalProperties.weight" },
|
|
1329
|
-
{ path: "results.item.billingInfo.address.geocode.latitude" },
|
|
1330
|
-
{ path: "results.item.billingInfo.address.geocode.longitude" },
|
|
1331
|
-
{
|
|
1332
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1333
|
-
},
|
|
1334
|
-
{
|
|
1335
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1336
|
-
},
|
|
1337
|
-
{
|
|
1338
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1342
|
-
},
|
|
1343
|
-
{ path: "results.item.recipientInfo.address.geocode.latitude" },
|
|
1344
|
-
{ path: "results.item.recipientInfo.address.geocode.longitude" }
|
|
1345
|
-
]
|
|
1031
|
+
paths: TRANSFORM_PATHS_3
|
|
1346
1032
|
}
|
|
1347
1033
|
])
|
|
1348
1034
|
};
|
|
@@ -1355,25 +1041,15 @@ function updateOrderLineItem(payload) {
|
|
|
1355
1041
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1356
1042
|
{
|
|
1357
1043
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1358
|
-
paths:
|
|
1044
|
+
paths: TRANSFORM_PATHS_9
|
|
1359
1045
|
},
|
|
1360
1046
|
{
|
|
1361
1047
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1362
|
-
paths:
|
|
1363
|
-
{ path: "lineItem.image.urlExpirationDate" },
|
|
1364
|
-
{ path: "lineItem.digitalFile.expirationDate" },
|
|
1365
|
-
{ path: "lineItem.subscriptionInfo.subscriptionSettings.startDate" },
|
|
1366
|
-
{ path: "lineItem.serviceProperties.scheduledDate" },
|
|
1367
|
-
{ path: "lineItem.serviceProperties.endDate" }
|
|
1368
|
-
]
|
|
1048
|
+
paths: TRANSFORM_PATHS_13
|
|
1369
1049
|
},
|
|
1370
1050
|
{
|
|
1371
1051
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1372
|
-
paths:
|
|
1373
|
-
{ path: "lineItem.image.focalPoint.x" },
|
|
1374
|
-
{ path: "lineItem.image.focalPoint.y" },
|
|
1375
|
-
{ path: "lineItem.physicalProperties.weight" }
|
|
1376
|
-
]
|
|
1052
|
+
paths: TRANSFORM_PATHS_14
|
|
1377
1053
|
}
|
|
1378
1054
|
]);
|
|
1379
1055
|
const metadata = {
|
|
@@ -1393,46 +1069,11 @@ function updateOrderLineItem(payload) {
|
|
|
1393
1069
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1394
1070
|
{
|
|
1395
1071
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1396
|
-
paths:
|
|
1397
|
-
{ path: "order.createdDate" },
|
|
1398
|
-
{ path: "order.updatedDate" },
|
|
1399
|
-
{ path: "order.purchasedDate" },
|
|
1400
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1401
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1402
|
-
{
|
|
1403
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1404
|
-
},
|
|
1405
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1406
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1407
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1408
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1409
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1410
|
-
{ path: "order.activities.createdDate" }
|
|
1411
|
-
]
|
|
1072
|
+
paths: TRANSFORM_PATHS_0
|
|
1412
1073
|
},
|
|
1413
1074
|
{
|
|
1414
1075
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1415
|
-
paths:
|
|
1416
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1417
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1418
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1419
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1420
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1421
|
-
{
|
|
1422
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1423
|
-
},
|
|
1424
|
-
{
|
|
1425
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1426
|
-
},
|
|
1427
|
-
{
|
|
1428
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1429
|
-
},
|
|
1430
|
-
{
|
|
1431
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1432
|
-
},
|
|
1433
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1434
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1435
|
-
]
|
|
1076
|
+
paths: TRANSFORM_PATHS_1
|
|
1436
1077
|
}
|
|
1437
1078
|
])
|
|
1438
1079
|
};
|
|
@@ -1459,46 +1100,11 @@ function addActivity(payload) {
|
|
|
1459
1100
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1460
1101
|
{
|
|
1461
1102
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1462
|
-
paths:
|
|
1463
|
-
{ path: "order.createdDate" },
|
|
1464
|
-
{ path: "order.updatedDate" },
|
|
1465
|
-
{ path: "order.purchasedDate" },
|
|
1466
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1467
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1468
|
-
{
|
|
1469
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1470
|
-
},
|
|
1471
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1472
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1473
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1474
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1475
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1476
|
-
{ path: "order.activities.createdDate" }
|
|
1477
|
-
]
|
|
1103
|
+
paths: TRANSFORM_PATHS_0
|
|
1478
1104
|
},
|
|
1479
1105
|
{
|
|
1480
1106
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1481
|
-
paths:
|
|
1482
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1483
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1484
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1485
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1486
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1487
|
-
{
|
|
1488
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1489
|
-
},
|
|
1490
|
-
{
|
|
1491
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1492
|
-
},
|
|
1493
|
-
{
|
|
1494
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1498
|
-
},
|
|
1499
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1500
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1501
|
-
]
|
|
1107
|
+
paths: TRANSFORM_PATHS_1
|
|
1502
1108
|
}
|
|
1503
1109
|
])
|
|
1504
1110
|
};
|
|
@@ -1511,7 +1117,7 @@ function addActivities(payload) {
|
|
|
1511
1117
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1512
1118
|
{
|
|
1513
1119
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1514
|
-
paths:
|
|
1120
|
+
paths: TRANSFORM_PATHS_15
|
|
1515
1121
|
}
|
|
1516
1122
|
]);
|
|
1517
1123
|
const metadata = {
|
|
@@ -1531,46 +1137,11 @@ function addActivities(payload) {
|
|
|
1531
1137
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1532
1138
|
{
|
|
1533
1139
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1534
|
-
paths:
|
|
1535
|
-
{ path: "order.createdDate" },
|
|
1536
|
-
{ path: "order.updatedDate" },
|
|
1537
|
-
{ path: "order.purchasedDate" },
|
|
1538
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1539
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1540
|
-
{
|
|
1541
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1542
|
-
},
|
|
1543
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1544
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1545
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1546
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1547
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1548
|
-
{ path: "order.activities.createdDate" }
|
|
1549
|
-
]
|
|
1140
|
+
paths: TRANSFORM_PATHS_0
|
|
1550
1141
|
},
|
|
1551
1142
|
{
|
|
1552
1143
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1553
|
-
paths:
|
|
1554
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1555
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1556
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1557
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1558
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1559
|
-
{
|
|
1560
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1561
|
-
},
|
|
1562
|
-
{
|
|
1563
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1564
|
-
},
|
|
1565
|
-
{
|
|
1566
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1567
|
-
},
|
|
1568
|
-
{
|
|
1569
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1570
|
-
},
|
|
1571
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1572
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1573
|
-
]
|
|
1144
|
+
paths: TRANSFORM_PATHS_1
|
|
1574
1145
|
}
|
|
1575
1146
|
])
|
|
1576
1147
|
};
|
|
@@ -1597,46 +1168,11 @@ function updateActivity(payload) {
|
|
|
1597
1168
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1598
1169
|
{
|
|
1599
1170
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1600
|
-
paths:
|
|
1601
|
-
{ path: "order.createdDate" },
|
|
1602
|
-
{ path: "order.updatedDate" },
|
|
1603
|
-
{ path: "order.purchasedDate" },
|
|
1604
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1605
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1606
|
-
{
|
|
1607
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1608
|
-
},
|
|
1609
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1610
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1611
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1612
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1613
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1614
|
-
{ path: "order.activities.createdDate" }
|
|
1615
|
-
]
|
|
1171
|
+
paths: TRANSFORM_PATHS_0
|
|
1616
1172
|
},
|
|
1617
1173
|
{
|
|
1618
1174
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1619
|
-
paths:
|
|
1620
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1621
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1622
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1623
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1624
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1625
|
-
{
|
|
1626
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1627
|
-
},
|
|
1628
|
-
{
|
|
1629
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1630
|
-
},
|
|
1631
|
-
{
|
|
1632
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1633
|
-
},
|
|
1634
|
-
{
|
|
1635
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1636
|
-
},
|
|
1637
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1638
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1639
|
-
]
|
|
1175
|
+
paths: TRANSFORM_PATHS_1
|
|
1640
1176
|
}
|
|
1641
1177
|
])
|
|
1642
1178
|
};
|
|
@@ -1663,46 +1199,11 @@ function deleteActivity(payload) {
|
|
|
1663
1199
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1664
1200
|
{
|
|
1665
1201
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1666
|
-
paths:
|
|
1667
|
-
{ path: "order.createdDate" },
|
|
1668
|
-
{ path: "order.updatedDate" },
|
|
1669
|
-
{ path: "order.purchasedDate" },
|
|
1670
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1671
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1672
|
-
{
|
|
1673
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1674
|
-
},
|
|
1675
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1676
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1677
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1678
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1679
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1680
|
-
{ path: "order.activities.createdDate" }
|
|
1681
|
-
]
|
|
1202
|
+
paths: TRANSFORM_PATHS_0
|
|
1682
1203
|
},
|
|
1683
1204
|
{
|
|
1684
1205
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1685
|
-
paths:
|
|
1686
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1687
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1688
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1689
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1690
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1691
|
-
{
|
|
1692
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1693
|
-
},
|
|
1694
|
-
{
|
|
1695
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1696
|
-
},
|
|
1697
|
-
{
|
|
1698
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1699
|
-
},
|
|
1700
|
-
{
|
|
1701
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1702
|
-
},
|
|
1703
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1704
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1705
|
-
]
|
|
1206
|
+
paths: TRANSFORM_PATHS_1
|
|
1706
1207
|
}
|
|
1707
1208
|
])
|
|
1708
1209
|
};
|
|
@@ -1729,46 +1230,11 @@ function cancelOrder(payload) {
|
|
|
1729
1230
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1730
1231
|
{
|
|
1731
1232
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1732
|
-
paths:
|
|
1733
|
-
{ path: "order.createdDate" },
|
|
1734
|
-
{ path: "order.updatedDate" },
|
|
1735
|
-
{ path: "order.purchasedDate" },
|
|
1736
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1737
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1738
|
-
{
|
|
1739
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1740
|
-
},
|
|
1741
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1742
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1743
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1744
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1745
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1746
|
-
{ path: "order.activities.createdDate" }
|
|
1747
|
-
]
|
|
1233
|
+
paths: TRANSFORM_PATHS_0
|
|
1748
1234
|
},
|
|
1749
1235
|
{
|
|
1750
1236
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1751
|
-
paths:
|
|
1752
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1753
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1754
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1755
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1756
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1757
|
-
{
|
|
1758
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1759
|
-
},
|
|
1760
|
-
{
|
|
1761
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1762
|
-
},
|
|
1763
|
-
{
|
|
1764
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1765
|
-
},
|
|
1766
|
-
{
|
|
1767
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1768
|
-
},
|
|
1769
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1770
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1771
|
-
]
|
|
1237
|
+
paths: TRANSFORM_PATHS_1
|
|
1772
1238
|
}
|
|
1773
1239
|
])
|
|
1774
1240
|
};
|
|
@@ -1795,46 +1261,11 @@ function updateOrderStatus(payload) {
|
|
|
1795
1261
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1796
1262
|
{
|
|
1797
1263
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1798
|
-
paths:
|
|
1799
|
-
{ path: "order.createdDate" },
|
|
1800
|
-
{ path: "order.updatedDate" },
|
|
1801
|
-
{ path: "order.purchasedDate" },
|
|
1802
|
-
{ path: "order.lineItems.image.urlExpirationDate" },
|
|
1803
|
-
{ path: "order.lineItems.digitalFile.expirationDate" },
|
|
1804
|
-
{
|
|
1805
|
-
path: "order.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
1806
|
-
},
|
|
1807
|
-
{ path: "order.lineItems.serviceProperties.scheduledDate" },
|
|
1808
|
-
{ path: "order.lineItems.serviceProperties.endDate" },
|
|
1809
|
-
{ path: "order.shippingInfo.logistics.deliverByDate" },
|
|
1810
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
1811
|
-
{ path: "order.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
1812
|
-
{ path: "order.activities.createdDate" }
|
|
1813
|
-
]
|
|
1264
|
+
paths: TRANSFORM_PATHS_0
|
|
1814
1265
|
},
|
|
1815
1266
|
{
|
|
1816
1267
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1817
|
-
paths:
|
|
1818
|
-
{ path: "order.lineItems.image.focalPoint.x" },
|
|
1819
|
-
{ path: "order.lineItems.image.focalPoint.y" },
|
|
1820
|
-
{ path: "order.lineItems.physicalProperties.weight" },
|
|
1821
|
-
{ path: "order.billingInfo.address.geocode.latitude" },
|
|
1822
|
-
{ path: "order.billingInfo.address.geocode.longitude" },
|
|
1823
|
-
{
|
|
1824
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
1825
|
-
},
|
|
1826
|
-
{
|
|
1827
|
-
path: "order.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
1828
|
-
},
|
|
1829
|
-
{
|
|
1830
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
1831
|
-
},
|
|
1832
|
-
{
|
|
1833
|
-
path: "order.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
1834
|
-
},
|
|
1835
|
-
{ path: "order.recipientInfo.address.geocode.latitude" },
|
|
1836
|
-
{ path: "order.recipientInfo.address.geocode.longitude" }
|
|
1837
|
-
]
|
|
1268
|
+
paths: TRANSFORM_PATHS_1
|
|
1838
1269
|
}
|
|
1839
1270
|
])
|
|
1840
1271
|
};
|
|
@@ -1892,6 +1323,35 @@ var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
|
1892
1323
|
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
1893
1324
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
1894
1325
|
var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
|
|
1326
|
+
var TRANSFORM_PATHS_02 = [{ path: "order.lineItems.image" }];
|
|
1327
|
+
var TRANSFORM_PATHS_16 = [
|
|
1328
|
+
{ path: "order.billingInfo.address" },
|
|
1329
|
+
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
1330
|
+
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
1331
|
+
{ path: "order.recipientInfo.address" }
|
|
1332
|
+
];
|
|
1333
|
+
var TRANSFORM_PATHS_22 = [{ path: "results.item.lineItems.image" }];
|
|
1334
|
+
var TRANSFORM_PATHS_32 = [
|
|
1335
|
+
{ path: "results.item.billingInfo.address" },
|
|
1336
|
+
{ path: "results.item.shippingInfo.logistics.shippingDestination.address" },
|
|
1337
|
+
{ path: "results.item.shippingInfo.logistics.pickupDetails.address" },
|
|
1338
|
+
{ path: "results.item.recipientInfo.address" }
|
|
1339
|
+
];
|
|
1340
|
+
var TRANSFORM_PATHS_42 = [{ path: "orders.lineItems.image" }];
|
|
1341
|
+
var TRANSFORM_PATHS_52 = [
|
|
1342
|
+
{ path: "orders.billingInfo.address" },
|
|
1343
|
+
{ path: "orders.shippingInfo.logistics.shippingDestination.address" },
|
|
1344
|
+
{ path: "orders.shippingInfo.logistics.pickupDetails.address" },
|
|
1345
|
+
{ path: "orders.recipientInfo.address" }
|
|
1346
|
+
];
|
|
1347
|
+
var TRANSFORM_PATHS_62 = [{ path: "orders.order.lineItems.image" }];
|
|
1348
|
+
var TRANSFORM_PATHS_72 = [
|
|
1349
|
+
{ path: "orders.order.billingInfo.address" },
|
|
1350
|
+
{ path: "orders.order.shippingInfo.logistics.shippingDestination.address" },
|
|
1351
|
+
{ path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
|
|
1352
|
+
{ path: "orders.order.recipientInfo.address" }
|
|
1353
|
+
];
|
|
1354
|
+
var TRANSFORM_PATHS_82 = [{ path: "lineItem.image" }];
|
|
1895
1355
|
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
1896
1356
|
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
1897
1357
|
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
@@ -2526,16 +1986,11 @@ async function importOrder2(order) {
|
|
|
2526
1986
|
[
|
|
2527
1987
|
{
|
|
2528
1988
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2529
|
-
paths:
|
|
1989
|
+
paths: TRANSFORM_PATHS_02
|
|
2530
1990
|
},
|
|
2531
1991
|
{
|
|
2532
1992
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2533
|
-
paths:
|
|
2534
|
-
{ path: "order.billingInfo.address" },
|
|
2535
|
-
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
2536
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2537
|
-
{ path: "order.recipientInfo.address" }
|
|
2538
|
-
]
|
|
1993
|
+
paths: TRANSFORM_PATHS_16
|
|
2539
1994
|
}
|
|
2540
1995
|
]
|
|
2541
1996
|
);
|
|
@@ -2548,18 +2003,11 @@ async function importOrder2(order) {
|
|
|
2548
2003
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2549
2004
|
{
|
|
2550
2005
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2551
|
-
paths:
|
|
2006
|
+
paths: TRANSFORM_PATHS_02
|
|
2552
2007
|
},
|
|
2553
2008
|
{
|
|
2554
2009
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2555
|
-
paths:
|
|
2556
|
-
{ path: "order.billingInfo.address" },
|
|
2557
|
-
{
|
|
2558
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2559
|
-
},
|
|
2560
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2561
|
-
{ path: "order.recipientInfo.address" }
|
|
2562
|
-
]
|
|
2010
|
+
paths: TRANSFORM_PATHS_16
|
|
2563
2011
|
}
|
|
2564
2012
|
])
|
|
2565
2013
|
);
|
|
@@ -2739,18 +2187,11 @@ async function paymentCollectionMarkOrderAsPaid2(ecomOrderId, options) {
|
|
|
2739
2187
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2740
2188
|
{
|
|
2741
2189
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2742
|
-
paths:
|
|
2190
|
+
paths: TRANSFORM_PATHS_02
|
|
2743
2191
|
},
|
|
2744
2192
|
{
|
|
2745
2193
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2746
|
-
paths:
|
|
2747
|
-
{ path: "order.billingInfo.address" },
|
|
2748
|
-
{
|
|
2749
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
2750
|
-
},
|
|
2751
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
2752
|
-
{ path: "order.recipientInfo.address" }
|
|
2753
|
-
]
|
|
2194
|
+
paths: TRANSFORM_PATHS_16
|
|
2754
2195
|
}
|
|
2755
2196
|
])
|
|
2756
2197
|
);
|
|
@@ -2785,20 +2226,11 @@ async function paymentCollectionBulkMarkOrdersAsPaid2(ecomOrderIds) {
|
|
|
2785
2226
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2786
2227
|
{
|
|
2787
2228
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2788
|
-
paths:
|
|
2229
|
+
paths: TRANSFORM_PATHS_22
|
|
2789
2230
|
},
|
|
2790
2231
|
{
|
|
2791
2232
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2792
|
-
paths:
|
|
2793
|
-
{ path: "results.item.billingInfo.address" },
|
|
2794
|
-
{
|
|
2795
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
2796
|
-
},
|
|
2797
|
-
{
|
|
2798
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
2799
|
-
},
|
|
2800
|
-
{ path: "results.item.recipientInfo.address" }
|
|
2801
|
-
]
|
|
2233
|
+
paths: TRANSFORM_PATHS_32
|
|
2802
2234
|
}
|
|
2803
2235
|
])
|
|
2804
2236
|
);
|
|
@@ -2999,18 +2431,11 @@ async function getOrder2(_id) {
|
|
|
2999
2431
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3000
2432
|
{
|
|
3001
2433
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3002
|
-
paths:
|
|
2434
|
+
paths: TRANSFORM_PATHS_02
|
|
3003
2435
|
},
|
|
3004
2436
|
{
|
|
3005
2437
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3006
|
-
paths:
|
|
3007
|
-
{ path: "order.billingInfo.address" },
|
|
3008
|
-
{
|
|
3009
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3010
|
-
},
|
|
3011
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3012
|
-
{ path: "order.recipientInfo.address" }
|
|
3013
|
-
]
|
|
2438
|
+
paths: TRANSFORM_PATHS_16
|
|
3014
2439
|
}
|
|
3015
2440
|
])
|
|
3016
2441
|
)?.order;
|
|
@@ -3040,18 +2465,11 @@ async function searchOrders2(search) {
|
|
|
3040
2465
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3041
2466
|
{
|
|
3042
2467
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3043
|
-
paths:
|
|
2468
|
+
paths: TRANSFORM_PATHS_42
|
|
3044
2469
|
},
|
|
3045
2470
|
{
|
|
3046
2471
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3047
|
-
paths:
|
|
3048
|
-
{ path: "orders.billingInfo.address" },
|
|
3049
|
-
{
|
|
3050
|
-
path: "orders.shippingInfo.logistics.shippingDestination.address"
|
|
3051
|
-
},
|
|
3052
|
-
{ path: "orders.shippingInfo.logistics.pickupDetails.address" },
|
|
3053
|
-
{ path: "orders.recipientInfo.address" }
|
|
3054
|
-
]
|
|
2472
|
+
paths: TRANSFORM_PATHS_52
|
|
3055
2473
|
}
|
|
3056
2474
|
])
|
|
3057
2475
|
);
|
|
@@ -3082,16 +2500,11 @@ async function createOrder2(order, options) {
|
|
|
3082
2500
|
[
|
|
3083
2501
|
{
|
|
3084
2502
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
3085
|
-
paths:
|
|
2503
|
+
paths: TRANSFORM_PATHS_02
|
|
3086
2504
|
},
|
|
3087
2505
|
{
|
|
3088
2506
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
3089
|
-
paths:
|
|
3090
|
-
{ path: "order.billingInfo.address" },
|
|
3091
|
-
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
3092
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3093
|
-
{ path: "order.recipientInfo.address" }
|
|
3094
|
-
]
|
|
2507
|
+
paths: TRANSFORM_PATHS_16
|
|
3095
2508
|
}
|
|
3096
2509
|
]
|
|
3097
2510
|
);
|
|
@@ -3104,18 +2517,11 @@ async function createOrder2(order, options) {
|
|
|
3104
2517
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3105
2518
|
{
|
|
3106
2519
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3107
|
-
paths:
|
|
2520
|
+
paths: TRANSFORM_PATHS_02
|
|
3108
2521
|
},
|
|
3109
2522
|
{
|
|
3110
2523
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3111
|
-
paths:
|
|
3112
|
-
{ path: "order.billingInfo.address" },
|
|
3113
|
-
{
|
|
3114
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3115
|
-
},
|
|
3116
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3117
|
-
{ path: "order.recipientInfo.address" }
|
|
3118
|
-
]
|
|
2524
|
+
paths: TRANSFORM_PATHS_16
|
|
3119
2525
|
}
|
|
3120
2526
|
])
|
|
3121
2527
|
)?.order;
|
|
@@ -3140,16 +2546,11 @@ async function updateOrder2(_id, order) {
|
|
|
3140
2546
|
[
|
|
3141
2547
|
{
|
|
3142
2548
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
3143
|
-
paths:
|
|
2549
|
+
paths: TRANSFORM_PATHS_02
|
|
3144
2550
|
},
|
|
3145
2551
|
{
|
|
3146
2552
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
3147
|
-
paths:
|
|
3148
|
-
{ path: "order.billingInfo.address" },
|
|
3149
|
-
{ path: "order.shippingInfo.logistics.shippingDestination.address" },
|
|
3150
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3151
|
-
{ path: "order.recipientInfo.address" }
|
|
3152
|
-
]
|
|
2553
|
+
paths: TRANSFORM_PATHS_16
|
|
3153
2554
|
}
|
|
3154
2555
|
]
|
|
3155
2556
|
);
|
|
@@ -3162,18 +2563,11 @@ async function updateOrder2(_id, order) {
|
|
|
3162
2563
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3163
2564
|
{
|
|
3164
2565
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3165
|
-
paths:
|
|
2566
|
+
paths: TRANSFORM_PATHS_02
|
|
3166
2567
|
},
|
|
3167
2568
|
{
|
|
3168
2569
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3169
|
-
paths:
|
|
3170
|
-
{ path: "order.billingInfo.address" },
|
|
3171
|
-
{
|
|
3172
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3173
|
-
},
|
|
3174
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3175
|
-
{ path: "order.recipientInfo.address" }
|
|
3176
|
-
]
|
|
2570
|
+
paths: TRANSFORM_PATHS_16
|
|
3177
2571
|
}
|
|
3178
2572
|
])
|
|
3179
2573
|
)?.order;
|
|
@@ -3201,18 +2595,11 @@ async function bulkUpdateOrders2(orders, options) {
|
|
|
3201
2595
|
[
|
|
3202
2596
|
{
|
|
3203
2597
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
3204
|
-
paths:
|
|
2598
|
+
paths: TRANSFORM_PATHS_62
|
|
3205
2599
|
},
|
|
3206
2600
|
{
|
|
3207
2601
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
3208
|
-
paths:
|
|
3209
|
-
{ path: "orders.order.billingInfo.address" },
|
|
3210
|
-
{
|
|
3211
|
-
path: "orders.order.shippingInfo.logistics.shippingDestination.address"
|
|
3212
|
-
},
|
|
3213
|
-
{ path: "orders.order.shippingInfo.logistics.pickupDetails.address" },
|
|
3214
|
-
{ path: "orders.order.recipientInfo.address" }
|
|
3215
|
-
]
|
|
2602
|
+
paths: TRANSFORM_PATHS_72
|
|
3216
2603
|
}
|
|
3217
2604
|
]
|
|
3218
2605
|
);
|
|
@@ -3225,20 +2612,11 @@ async function bulkUpdateOrders2(orders, options) {
|
|
|
3225
2612
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3226
2613
|
{
|
|
3227
2614
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3228
|
-
paths:
|
|
2615
|
+
paths: TRANSFORM_PATHS_22
|
|
3229
2616
|
},
|
|
3230
2617
|
{
|
|
3231
2618
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3232
|
-
paths:
|
|
3233
|
-
{ path: "results.item.billingInfo.address" },
|
|
3234
|
-
{
|
|
3235
|
-
path: "results.item.shippingInfo.logistics.shippingDestination.address"
|
|
3236
|
-
},
|
|
3237
|
-
{
|
|
3238
|
-
path: "results.item.shippingInfo.logistics.pickupDetails.address"
|
|
3239
|
-
},
|
|
3240
|
-
{ path: "results.item.recipientInfo.address" }
|
|
3241
|
-
]
|
|
2619
|
+
paths: TRANSFORM_PATHS_32
|
|
3242
2620
|
}
|
|
3243
2621
|
])
|
|
3244
2622
|
);
|
|
@@ -3269,7 +2647,7 @@ async function updateOrderLineItem2(identifiers, lineItem) {
|
|
|
3269
2647
|
[
|
|
3270
2648
|
{
|
|
3271
2649
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
3272
|
-
paths:
|
|
2650
|
+
paths: TRANSFORM_PATHS_82
|
|
3273
2651
|
}
|
|
3274
2652
|
]
|
|
3275
2653
|
);
|
|
@@ -3282,18 +2660,11 @@ async function updateOrderLineItem2(identifiers, lineItem) {
|
|
|
3282
2660
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3283
2661
|
{
|
|
3284
2662
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3285
|
-
paths:
|
|
2663
|
+
paths: TRANSFORM_PATHS_02
|
|
3286
2664
|
},
|
|
3287
2665
|
{
|
|
3288
2666
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3289
|
-
paths:
|
|
3290
|
-
{ path: "order.billingInfo.address" },
|
|
3291
|
-
{
|
|
3292
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3293
|
-
},
|
|
3294
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3295
|
-
{ path: "order.recipientInfo.address" }
|
|
3296
|
-
]
|
|
2667
|
+
paths: TRANSFORM_PATHS_16
|
|
3297
2668
|
}
|
|
3298
2669
|
])
|
|
3299
2670
|
);
|
|
@@ -3329,18 +2700,11 @@ async function addActivity2(_id, activity) {
|
|
|
3329
2700
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3330
2701
|
{
|
|
3331
2702
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3332
|
-
paths:
|
|
2703
|
+
paths: TRANSFORM_PATHS_02
|
|
3333
2704
|
},
|
|
3334
2705
|
{
|
|
3335
2706
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3336
|
-
paths:
|
|
3337
|
-
{ path: "order.billingInfo.address" },
|
|
3338
|
-
{
|
|
3339
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3340
|
-
},
|
|
3341
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3342
|
-
{ path: "order.recipientInfo.address" }
|
|
3343
|
-
]
|
|
2707
|
+
paths: TRANSFORM_PATHS_16
|
|
3344
2708
|
}
|
|
3345
2709
|
])
|
|
3346
2710
|
);
|
|
@@ -3373,18 +2737,11 @@ async function addActivities2(orderId, options) {
|
|
|
3373
2737
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3374
2738
|
{
|
|
3375
2739
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3376
|
-
paths:
|
|
2740
|
+
paths: TRANSFORM_PATHS_02
|
|
3377
2741
|
},
|
|
3378
2742
|
{
|
|
3379
2743
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3380
|
-
paths:
|
|
3381
|
-
{ path: "order.billingInfo.address" },
|
|
3382
|
-
{
|
|
3383
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3384
|
-
},
|
|
3385
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3386
|
-
{ path: "order.recipientInfo.address" }
|
|
3387
|
-
]
|
|
2744
|
+
paths: TRANSFORM_PATHS_16
|
|
3388
2745
|
}
|
|
3389
2746
|
])
|
|
3390
2747
|
);
|
|
@@ -3421,18 +2778,11 @@ async function updateActivity2(identifiers, activity) {
|
|
|
3421
2778
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3422
2779
|
{
|
|
3423
2780
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3424
|
-
paths:
|
|
2781
|
+
paths: TRANSFORM_PATHS_02
|
|
3425
2782
|
},
|
|
3426
2783
|
{
|
|
3427
2784
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3428
|
-
paths:
|
|
3429
|
-
{ path: "order.billingInfo.address" },
|
|
3430
|
-
{
|
|
3431
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3432
|
-
},
|
|
3433
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3434
|
-
{ path: "order.recipientInfo.address" }
|
|
3435
|
-
]
|
|
2785
|
+
paths: TRANSFORM_PATHS_16
|
|
3436
2786
|
}
|
|
3437
2787
|
])
|
|
3438
2788
|
);
|
|
@@ -3469,18 +2819,11 @@ async function deleteActivity2(identifiers) {
|
|
|
3469
2819
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3470
2820
|
{
|
|
3471
2821
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3472
|
-
paths:
|
|
2822
|
+
paths: TRANSFORM_PATHS_02
|
|
3473
2823
|
},
|
|
3474
2824
|
{
|
|
3475
2825
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3476
|
-
paths:
|
|
3477
|
-
{ path: "order.billingInfo.address" },
|
|
3478
|
-
{
|
|
3479
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3480
|
-
},
|
|
3481
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3482
|
-
{ path: "order.recipientInfo.address" }
|
|
3483
|
-
]
|
|
2826
|
+
paths: TRANSFORM_PATHS_16
|
|
3484
2827
|
}
|
|
3485
2828
|
])
|
|
3486
2829
|
);
|
|
@@ -3518,18 +2861,11 @@ async function cancelOrder2(_id, options) {
|
|
|
3518
2861
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3519
2862
|
{
|
|
3520
2863
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3521
|
-
paths:
|
|
2864
|
+
paths: TRANSFORM_PATHS_02
|
|
3522
2865
|
},
|
|
3523
2866
|
{
|
|
3524
2867
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3525
|
-
paths:
|
|
3526
|
-
{ path: "order.billingInfo.address" },
|
|
3527
|
-
{
|
|
3528
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3529
|
-
},
|
|
3530
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3531
|
-
{ path: "order.recipientInfo.address" }
|
|
3532
|
-
]
|
|
2868
|
+
paths: TRANSFORM_PATHS_16
|
|
3533
2869
|
}
|
|
3534
2870
|
])
|
|
3535
2871
|
);
|
|
@@ -3567,18 +2903,11 @@ async function updateOrderStatus2(orderId, status) {
|
|
|
3567
2903
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3568
2904
|
{
|
|
3569
2905
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3570
|
-
paths:
|
|
2906
|
+
paths: TRANSFORM_PATHS_02
|
|
3571
2907
|
},
|
|
3572
2908
|
{
|
|
3573
2909
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3574
|
-
paths:
|
|
3575
|
-
{ path: "order.billingInfo.address" },
|
|
3576
|
-
{
|
|
3577
|
-
path: "order.shippingInfo.logistics.shippingDestination.address"
|
|
3578
|
-
},
|
|
3579
|
-
{ path: "order.shippingInfo.logistics.pickupDetails.address" },
|
|
3580
|
-
{ path: "order.recipientInfo.address" }
|
|
3581
|
-
]
|
|
2910
|
+
paths: TRANSFORM_PATHS_16
|
|
3582
2911
|
}
|
|
3583
2912
|
])
|
|
3584
2913
|
);
|