@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(meta_exports, {
25
25
  AdjustmentTypeOriginal: () => AdjustmentType,
26
26
  AppliedDiscountDiscountTypeOriginal: () => AppliedDiscountDiscountType,
27
27
  AttributionSourceOriginal: () => AttributionSource,
28
+ CalculationBehaviorOriginal: () => CalculationBehavior,
28
29
  ChannelTypeOriginal: () => ChannelType,
29
30
  ChargeTypeOriginal: () => ChargeType,
30
31
  DescriptionLineTypeOriginal: () => DescriptionLineType,
@@ -200,6 +201,12 @@ function createDraftOrder(payload) {
200
201
  {
201
202
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
202
203
  },
204
+ {
205
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
206
+ },
207
+ {
208
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
209
+ },
203
210
  {
204
211
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
205
212
  },
@@ -337,6 +344,12 @@ function createEmptyDraftOrder(payload) {
337
344
  {
338
345
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
339
346
  },
347
+ {
348
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
349
+ },
350
+ {
351
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
352
+ },
340
353
  {
341
354
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
342
355
  },
@@ -492,6 +505,12 @@ function addLineItemsToDraftOrder(payload) {
492
505
  {
493
506
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
494
507
  },
508
+ {
509
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
510
+ },
511
+ {
512
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
513
+ },
495
514
  {
496
515
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
497
516
  },
@@ -635,6 +654,12 @@ function updateLineItems(payload) {
635
654
  {
636
655
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
637
656
  },
657
+ {
658
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
659
+ },
660
+ {
661
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
662
+ },
638
663
  {
639
664
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
640
665
  },
@@ -772,6 +797,12 @@ function setDeposit(payload) {
772
797
  {
773
798
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
774
799
  },
800
+ {
801
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
802
+ },
803
+ {
804
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
805
+ },
775
806
  {
776
807
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
777
808
  },
@@ -909,6 +940,12 @@ function setDiscounts(payload) {
909
940
  {
910
941
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
911
942
  },
943
+ {
944
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
945
+ },
946
+ {
947
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
948
+ },
912
949
  {
913
950
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
914
951
  },
@@ -1046,6 +1083,12 @@ function createCustomDiscounts(payload) {
1046
1083
  {
1047
1084
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1048
1085
  },
1086
+ {
1087
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1088
+ },
1089
+ {
1090
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1091
+ },
1049
1092
  {
1050
1093
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1051
1094
  },
@@ -1183,6 +1226,12 @@ function deleteCustomDiscounts(payload) {
1183
1226
  {
1184
1227
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1185
1228
  },
1229
+ {
1230
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1231
+ },
1232
+ {
1233
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1234
+ },
1186
1235
  {
1187
1236
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1188
1237
  },
@@ -1320,6 +1369,12 @@ function setAdditionalFees(payload) {
1320
1369
  {
1321
1370
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1322
1371
  },
1372
+ {
1373
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1374
+ },
1375
+ {
1376
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1377
+ },
1323
1378
  {
1324
1379
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1325
1380
  },
@@ -1457,6 +1512,12 @@ function createCustomAdditionalFees(payload) {
1457
1512
  {
1458
1513
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1459
1514
  },
1515
+ {
1516
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1517
+ },
1518
+ {
1519
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1520
+ },
1460
1521
  {
1461
1522
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1462
1523
  },
@@ -1594,6 +1655,12 @@ function deleteCustomAdditionalFees(payload) {
1594
1655
  {
1595
1656
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1596
1657
  },
1658
+ {
1659
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1660
+ },
1661
+ {
1662
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1663
+ },
1597
1664
  {
1598
1665
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1599
1666
  },
@@ -1758,6 +1825,12 @@ function setShippingInfo(payload) {
1758
1825
  {
1759
1826
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1760
1827
  },
1828
+ {
1829
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1830
+ },
1831
+ {
1832
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1833
+ },
1761
1834
  {
1762
1835
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1763
1836
  },
@@ -1895,6 +1968,12 @@ function setBuyerInfo(payload) {
1895
1968
  {
1896
1969
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
1897
1970
  },
1971
+ {
1972
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
1973
+ },
1974
+ {
1975
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
1976
+ },
1898
1977
  {
1899
1978
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
1900
1979
  },
@@ -2041,6 +2120,12 @@ function setRecipientInfo(payload) {
2041
2120
  {
2042
2121
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2043
2122
  },
2123
+ {
2124
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2125
+ },
2126
+ {
2127
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
2128
+ },
2044
2129
  {
2045
2130
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2046
2131
  },
@@ -2187,6 +2272,12 @@ function setBillingInfo(payload) {
2187
2272
  {
2188
2273
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2189
2274
  },
2275
+ {
2276
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2277
+ },
2278
+ {
2279
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
2280
+ },
2190
2281
  {
2191
2282
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2192
2283
  },
@@ -2324,6 +2415,12 @@ function getDraftOrder(payload) {
2324
2415
  {
2325
2416
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2326
2417
  },
2418
+ {
2419
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2420
+ },
2421
+ {
2422
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
2423
+ },
2327
2424
  {
2328
2425
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2329
2426
  },
@@ -2493,6 +2590,12 @@ function commitDraftOrder(payload) {
2493
2590
  {
2494
2591
  path: "committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2495
2592
  },
2593
+ {
2594
+ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2595
+ },
2596
+ {
2597
+ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.endDate"
2598
+ },
2496
2599
  {
2497
2600
  path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2498
2601
  },
@@ -2519,6 +2622,10 @@ function commitDraftOrder(payload) {
2519
2622
  {
2520
2623
  path: "orderAfterCommit.lineItems.subscriptionInfo.subscriptionSettings.startDate"
2521
2624
  },
2625
+ {
2626
+ path: "orderAfterCommit.lineItems.serviceProperties.scheduledDate"
2627
+ },
2628
+ { path: "orderAfterCommit.lineItems.serviceProperties.endDate" },
2522
2629
  { path: "orderAfterCommit.shippingInfo.logistics.deliverByDate" },
2523
2630
  {
2524
2631
  path: "orderAfterCommit.shippingInfo.logistics.deliveryTimeSlot.from"
@@ -2659,6 +2766,12 @@ function createOrderFromDraft(payload) {
2659
2766
  {
2660
2767
  path: "committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2661
2768
  },
2769
+ {
2770
+ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
2771
+ },
2772
+ {
2773
+ path: "committedDraftOrder.lineItems.lineItem.serviceProperties.endDate"
2774
+ },
2662
2775
  {
2663
2776
  path: "committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2664
2777
  },
@@ -2685,6 +2798,10 @@ function createOrderFromDraft(payload) {
2685
2798
  {
2686
2799
  path: "createdOrder.lineItems.subscriptionInfo.subscriptionSettings.startDate"
2687
2800
  },
2801
+ {
2802
+ path: "createdOrder.lineItems.serviceProperties.scheduledDate"
2803
+ },
2804
+ { path: "createdOrder.lineItems.serviceProperties.endDate" },
2688
2805
  { path: "createdOrder.shippingInfo.logistics.deliverByDate" },
2689
2806
  {
2690
2807
  path: "createdOrder.shippingInfo.logistics.deliveryTimeSlot.from"
@@ -2849,6 +2966,12 @@ function queryDraftOrders(payload) {
2849
2966
  {
2850
2967
  path: "draftOrders.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2851
2968
  },
2969
+ {
2970
+ path: "draftOrders.lineItems.lineItem.serviceProperties.scheduledDate"
2971
+ },
2972
+ {
2973
+ path: "draftOrders.lineItems.lineItem.serviceProperties.endDate"
2974
+ },
2852
2975
  {
2853
2976
  path: "draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2854
2977
  },
@@ -2964,6 +3087,12 @@ function updateExtendedFields(payload) {
2964
3087
  {
2965
3088
  path: "draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
2966
3089
  },
3090
+ {
3091
+ path: "draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
3092
+ },
3093
+ {
3094
+ path: "draftOrder.lineItems.lineItem.serviceProperties.endDate"
3095
+ },
2967
3096
  {
2968
3097
  path: "draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
2969
3098
  },
@@ -3081,6 +3210,12 @@ function setTaxExemption(payload) {
3081
3210
  {
3082
3211
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
3083
3212
  },
3213
+ {
3214
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
3215
+ },
3216
+ {
3217
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
3218
+ },
3084
3219
  {
3085
3220
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
3086
3221
  },
@@ -3218,6 +3353,12 @@ function setBusinessLocation(payload) {
3218
3353
  {
3219
3354
  path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate"
3220
3355
  },
3356
+ {
3357
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.scheduledDate"
3358
+ },
3359
+ {
3360
+ path: "calculatedDraftOrder.draftOrder.lineItems.lineItem.serviceProperties.endDate"
3361
+ },
3221
3362
  {
3222
3363
  path: "calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate"
3223
3364
  },
@@ -3529,8 +3670,19 @@ var NonDraftableReason = /* @__PURE__ */ ((NonDraftableReason2) => {
3529
3670
  NonDraftableReason2["ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT"] = "ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT";
3530
3671
  NonDraftableReason2["ORDER_NOT_FOUND"] = "ORDER_NOT_FOUND";
3531
3672
  NonDraftableReason2["SUBSCRIPTION_LINE_ITEM_EXISTS"] = "SUBSCRIPTION_LINE_ITEM_EXISTS";
3673
+ NonDraftableReason2["AMOUNTS_DO_NOT_ADD_UP"] = "AMOUNTS_DO_NOT_ADD_UP";
3674
+ NonDraftableReason2["UNSUPPORTED_CATALOG_ITEM"] = "UNSUPPORTED_CATALOG_ITEM";
3675
+ NonDraftableReason2["TAXABLE_EXISTING_ADDITIONAL_FEE"] = "TAXABLE_EXISTING_ADDITIONAL_FEE";
3676
+ NonDraftableReason2["ORDER_HAS_CHARGEBACKS"] = "ORDER_HAS_CHARGEBACKS";
3677
+ NonDraftableReason2["EDITING_IS_NOT_ALLOWED_FOR_APP"] = "EDITING_IS_NOT_ALLOWED_FOR_APP";
3678
+ NonDraftableReason2["COUPON_BEHAVIOR_IS_UNDEFINED"] = "COUPON_BEHAVIOR_IS_UNDEFINED";
3532
3679
  return NonDraftableReason2;
3533
3680
  })(NonDraftableReason || {});
3681
+ var CalculationBehavior = /* @__PURE__ */ ((CalculationBehavior2) => {
3682
+ CalculationBehavior2["RECALCULATE"] = "RECALCULATE";
3683
+ CalculationBehavior2["REUSE_LAST"] = "REUSE_LAST";
3684
+ return CalculationBehavior2;
3685
+ })(CalculationBehavior || {});
3534
3686
  var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
3535
3687
  PaymentStatus2["UNSPECIFIED"] = "UNSPECIFIED";
3536
3688
  PaymentStatus2["NOT_PAID"] = "NOT_PAID";
@@ -3670,6 +3822,8 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
3670
3822
  ChannelType2["FAIRE_COM"] = "FAIRE_COM";
3671
3823
  ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
3672
3824
  ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
3825
+ ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
3826
+ ChannelType2["UCP_AGENTIC_CHECKOUT"] = "UCP_AGENTIC_CHECKOUT";
3673
3827
  return ChannelType2;
3674
3828
  })(ChannelType || {});
3675
3829
  var OrderActionType = /* @__PURE__ */ ((OrderActionType2) => {
@@ -4150,6 +4304,7 @@ function setBusinessLocation2() {
4150
4304
  AdjustmentTypeOriginal,
4151
4305
  AppliedDiscountDiscountTypeOriginal,
4152
4306
  AttributionSourceOriginal,
4307
+ CalculationBehaviorOriginal,
4153
4308
  ChannelTypeOriginal,
4154
4309
  ChargeTypeOriginal,
4155
4310
  DescriptionLineTypeOriginal,