@wix/auto_sdk_ecom_draft-orders 1.0.165 → 1.0.167

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +171 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +29 -1
  5. package/build/cjs/index.typings.js +153 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +29 -1
  8. package/build/cjs/meta.js +155 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +170 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +29 -1
  14. package/build/es/index.typings.mjs +152 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +29 -1
  17. package/build/es/meta.mjs +154 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +171 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +333 -2
  23. package/build/internal/cjs/index.typings.js +153 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +840 -3
  26. package/build/internal/cjs/meta.js +155 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +170 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +333 -2
  32. package/build/internal/es/index.typings.mjs +152 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +840 -3
  35. package/build/internal/es/meta.mjs +154 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +4 -4
@@ -25,6 +25,7 @@ __export(index_typings_exports, {
25
25
  AdjustmentType: () => AdjustmentType,
26
26
  AppliedDiscountDiscountType: () => AppliedDiscountDiscountType,
27
27
  AttributionSource: () => AttributionSource,
28
+ CalculationBehavior: () => CalculationBehavior,
28
29
  ChannelType: () => ChannelType,
29
30
  ChargeType: () => ChargeType,
30
31
  DescriptionLineType: () => DescriptionLineType,
@@ -207,6 +208,12 @@ function createDraftOrder(payload) {
207
208
  {
208
209
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
209
210
  },
211
+ {
212
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
213
+ },
214
+ {
215
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
216
+ },
210
217
  {
211
218
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
212
219
  },
@@ -344,6 +351,12 @@ function createEmptyDraftOrder(payload) {
344
351
  {
345
352
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
346
353
  },
354
+ {
355
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
356
+ },
357
+ {
358
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
359
+ },
347
360
  {
348
361
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
349
362
  },
@@ -499,6 +512,12 @@ function addLineItemsToDraftOrder(payload) {
499
512
  {
500
513
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
501
514
  },
515
+ {
516
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
517
+ },
518
+ {
519
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
520
+ },
502
521
  {
503
522
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
504
523
  },
@@ -642,6 +661,12 @@ function updateLineItems(payload) {
642
661
  {
643
662
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
644
663
  },
664
+ {
665
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
666
+ },
667
+ {
668
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
669
+ },
645
670
  {
646
671
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
647
672
  },
@@ -779,6 +804,12 @@ function setDeposit(payload) {
779
804
  {
780
805
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
781
806
  },
807
+ {
808
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
809
+ },
810
+ {
811
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
812
+ },
782
813
  {
783
814
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
784
815
  },
@@ -916,6 +947,12 @@ function setDiscounts(payload) {
916
947
  {
917
948
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
918
949
  },
950
+ {
951
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
952
+ },
953
+ {
954
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
955
+ },
919
956
  {
920
957
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
921
958
  },
@@ -1053,6 +1090,12 @@ function createCustomDiscounts(payload) {
1053
1090
  {
1054
1091
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1055
1092
  },
1093
+ {
1094
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1095
+ },
1096
+ {
1097
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1098
+ },
1056
1099
  {
1057
1100
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1058
1101
  },
@@ -1190,6 +1233,12 @@ function deleteCustomDiscounts(payload) {
1190
1233
  {
1191
1234
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1192
1235
  },
1236
+ {
1237
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1238
+ },
1239
+ {
1240
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1241
+ },
1193
1242
  {
1194
1243
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1195
1244
  },
@@ -1327,6 +1376,12 @@ function setAdditionalFees(payload) {
1327
1376
  {
1328
1377
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1329
1378
  },
1379
+ {
1380
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1381
+ },
1382
+ {
1383
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1384
+ },
1330
1385
  {
1331
1386
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1332
1387
  },
@@ -1464,6 +1519,12 @@ function createCustomAdditionalFees(payload) {
1464
1519
  {
1465
1520
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1466
1521
  },
1522
+ {
1523
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1524
+ },
1525
+ {
1526
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1527
+ },
1467
1528
  {
1468
1529
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1469
1530
  },
@@ -1601,6 +1662,12 @@ function deleteCustomAdditionalFees(payload) {
1601
1662
  {
1602
1663
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1603
1664
  },
1665
+ {
1666
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1667
+ },
1668
+ {
1669
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1670
+ },
1604
1671
  {
1605
1672
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1606
1673
  },
@@ -1765,6 +1832,12 @@ function setShippingInfo(payload) {
1765
1832
  {
1766
1833
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1767
1834
  },
1835
+ {
1836
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1837
+ },
1838
+ {
1839
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1840
+ },
1768
1841
  {
1769
1842
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1770
1843
  },
@@ -1902,6 +1975,12 @@ function setBuyerInfo(payload) {
1902
1975
  {
1903
1976
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1904
1977
  },
1978
+ {
1979
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1980
+ },
1981
+ {
1982
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1983
+ },
1905
1984
  {
1906
1985
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1907
1986
  },
@@ -2048,6 +2127,12 @@ function setRecipientInfo(payload) {
2048
2127
  {
2049
2128
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2050
2129
  },
2130
+ {
2131
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2132
+ },
2133
+ {
2134
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
2135
+ },
2051
2136
  {
2052
2137
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2053
2138
  },
@@ -2194,6 +2279,12 @@ function setBillingInfo(payload) {
2194
2279
  {
2195
2280
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2196
2281
  },
2282
+ {
2283
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2284
+ },
2285
+ {
2286
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
2287
+ },
2197
2288
  {
2198
2289
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2199
2290
  },
@@ -2331,6 +2422,12 @@ function getDraftOrder(payload) {
2331
2422
  {
2332
2423
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2333
2424
  },
2425
+ {
2426
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2427
+ },
2428
+ {
2429
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
2430
+ },
2334
2431
  {
2335
2432
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2336
2433
  },
@@ -2500,6 +2597,12 @@ function commitDraftOrder(payload) {
2500
2597
  {
2501
2598
  path: "committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2502
2599
  },
2600
+ {
2601
+ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2602
+ },
2603
+ {
2604
+ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.endDate"
2605
+ },
2503
2606
  {
2504
2607
  path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2505
2608
  },
@@ -2526,6 +2629,10 @@ function commitDraftOrder(payload) {
2526
2629
  {
2527
2630
  path: "orderAfterCommit.lineItems.subscriptionInfo.subscriptionSettings.startDate"
2528
2631
  },
2632
+ {
2633
+ path: "orderAfterCommit.lineItems.serviceProperties.scheduledDate"
2634
+ },
2635
+ { path: "orderAfterCommit.lineItems.serviceProperties.endDate" },
2529
2636
  { path: "orderAfterCommit.shippingInfo.logistics.deliverByDate" },
2530
2637
  {
2531
2638
  path: "orderAfterCommit.shippingInfo.logistics.deliveryTimeSlot.from"
@@ -2666,6 +2773,12 @@ function createOrderFromDraft(payload) {
2666
2773
  {
2667
2774
  path: "committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2668
2775
  },
2776
+ {
2777
+ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2778
+ },
2779
+ {
2780
+ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.endDate"
2781
+ },
2669
2782
  {
2670
2783
  path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2671
2784
  },
@@ -2692,6 +2805,10 @@ function createOrderFromDraft(payload) {
2692
2805
  {
2693
2806
  path: "createdOrder.lineItems.subscriptionInfo.subscriptionSettings.startDate"
2694
2807
  },
2808
+ {
2809
+ path: "createdOrder.lineItems.serviceProperties.scheduledDate"
2810
+ },
2811
+ { path: "createdOrder.lineItems.serviceProperties.endDate" },
2695
2812
  { path: "createdOrder.shippingInfo.logistics.deliverByDate" },
2696
2813
  {
2697
2814
  path: "createdOrder.shippingInfo.logistics.deliveryTimeSlot.from"
@@ -2856,6 +2973,12 @@ function queryDraftOrders(payload) {
2856
2973
  {
2857
2974
  path: "draftOrders.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2858
2975
  },
2976
+ {
2977
+ path: "draftOrders.lineItems.lineItem.serviceProperties.scheduledDate"
2978
+ },
2979
+ {
2980
+ path: "draftOrders.lineItems.lineItem.serviceProperties.endDate"
2981
+ },
2859
2982
  {
2860
2983
  path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2861
2984
  },
@@ -2971,6 +3094,12 @@ function updateExtendedFields(payload) {
2971
3094
  {
2972
3095
  path: "draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2973
3096
  },
3097
+ {
3098
+ path: "draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
3099
+ },
3100
+ {
3101
+ path: "draftOrder.lineItems.lineItem.serviceProperties.endDate"
3102
+ },
2974
3103
  {
2975
3104
  path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2976
3105
  },
@@ -3088,6 +3217,12 @@ function setTaxExemption(payload) {
3088
3217
  {
3089
3218
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
3090
3219
  },
3220
+ {
3221
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
3222
+ },
3223
+ {
3224
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
3225
+ },
3091
3226
  {
3092
3227
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
3093
3228
  },
@@ -3225,6 +3360,12 @@ function setBusinessLocation(payload) {
3225
3360
  {
3226
3361
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
3227
3362
  },
3363
+ {
3364
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
3365
+ },
3366
+ {
3367
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
3368
+ },
3228
3369
  {
3229
3370
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
3230
3371
  },
@@ -3543,8 +3684,19 @@ var NonDraftableReason = /* @__PURE__ */ ((NonDraftableReason2) => {
3543
3684
  NonDraftableReason2["ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT"] = "ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT";
3544
3685
  NonDraftableReason2["ORDER_NOT_FOUND"] = "ORDER_NOT_FOUND";
3545
3686
  NonDraftableReason2["SUBSCRIPTION_LINE_ITEM_EXISTS"] = "SUBSCRIPTION_LINE_ITEM_EXISTS";
3687
+ NonDraftableReason2["AMOUNTS_DO_NOT_ADD_UP"] = "AMOUNTS_DO_NOT_ADD_UP";
3688
+ NonDraftableReason2["UNSUPPORTED_CATALOG_ITEM"] = "UNSUPPORTED_CATALOG_ITEM";
3689
+ NonDraftableReason2["TAXABLE_EXISTING_ADDITIONAL_FEE"] = "TAXABLE_EXISTING_ADDITIONAL_FEE";
3690
+ NonDraftableReason2["ORDER_HAS_CHARGEBACKS"] = "ORDER_HAS_CHARGEBACKS";
3691
+ NonDraftableReason2["EDITING_IS_NOT_ALLOWED_FOR_APP"] = "EDITING_IS_NOT_ALLOWED_FOR_APP";
3692
+ NonDraftableReason2["COUPON_BEHAVIOR_IS_UNDEFINED"] = "COUPON_BEHAVIOR_IS_UNDEFINED";
3546
3693
  return NonDraftableReason2;
3547
3694
  })(NonDraftableReason || {});
3695
+ var CalculationBehavior = /* @__PURE__ */ ((CalculationBehavior2) => {
3696
+ CalculationBehavior2["RECALCULATE"] = "RECALCULATE";
3697
+ CalculationBehavior2["REUSE_LAST"] = "REUSE_LAST";
3698
+ return CalculationBehavior2;
3699
+ })(CalculationBehavior || {});
3548
3700
  var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
3549
3701
  PaymentStatus2["UNSPECIFIED"] = "UNSPECIFIED";
3550
3702
  PaymentStatus2["NOT_PAID"] = "NOT_PAID";
@@ -5495,6 +5647,7 @@ async function setBusinessLocation2(draftOrderId, options) {
5495
5647
  AdjustmentType,
5496
5648
  AppliedDiscountDiscountType,
5497
5649
  AttributionSource,
5650
+ CalculationBehavior,
5498
5651
  ChannelType,
5499
5652
  ChargeType,
5500
5653
  DescriptionLineType,