@wix/auto_sdk_ecom_current-cart-v-2 1.0.31 → 1.0.33

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 +961 -27
  2. package/build/cjs/index.js +78 -12
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +77 -10
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +959 -27
  8. package/build/cjs/meta.js +67 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +961 -27
  11. package/build/es/index.mjs +70 -12
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +69 -10
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +959 -27
  17. package/build/es/meta.mjs +59 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +4 -5
  20. package/build/internal/cjs/index.js +78 -12
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +1193 -197
  23. package/build/internal/cjs/index.typings.js +77 -10
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +959 -27
  26. package/build/internal/cjs/meta.js +67 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +4 -5
  29. package/build/internal/es/index.mjs +70 -12
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +1193 -197
  32. package/build/internal/es/index.typings.mjs +69 -10
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +959 -27
  35. package/build/internal/es/meta.mjs +59 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1083,11 +1083,62 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1083
1083
  WebhookIdentityType2["APP"] = "APP";
1084
1084
  return WebhookIdentityType2;
1085
1085
  })(WebhookIdentityType || {});
1086
- async function createCurrentCart2(cart, options) {
1087
- const { httpClient, sideEffects } = arguments[2];
1086
+ var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
1087
+ JurisdictionType2["UNDEFINED"] = "UNDEFINED";
1088
+ JurisdictionType2["COUNTRY"] = "COUNTRY";
1089
+ JurisdictionType2["STATE"] = "STATE";
1090
+ JurisdictionType2["COUNTY"] = "COUNTY";
1091
+ JurisdictionType2["CITY"] = "CITY";
1092
+ JurisdictionType2["SPECIAL"] = "SPECIAL";
1093
+ return JurisdictionType2;
1094
+ })(JurisdictionType || {});
1095
+ var RateType = /* @__PURE__ */ ((RateType2) => {
1096
+ RateType2["NO_TAX_COLLECTED"] = "NO_TAX_COLLECTED";
1097
+ RateType2["MANUAL_RATE"] = "MANUAL_RATE";
1098
+ RateType2["AUTO_RATE"] = "AUTO_RATE";
1099
+ RateType2["FALLBACK_RATE"] = "FALLBACK_RATE";
1100
+ return RateType2;
1101
+ })(RateType || {});
1102
+ var ManualCalculationReason = /* @__PURE__ */ ((ManualCalculationReason2) => {
1103
+ ManualCalculationReason2["GLOBAL_SETTING_TO_MANUAL"] = "GLOBAL_SETTING_TO_MANUAL";
1104
+ ManualCalculationReason2["REGION_SETTING_TO_MANUAL"] = "REGION_SETTING_TO_MANUAL";
1105
+ return ManualCalculationReason2;
1106
+ })(ManualCalculationReason || {});
1107
+ var FallbackReason = /* @__PURE__ */ ((FallbackReason2) => {
1108
+ FallbackReason2["AUTO_TAX_FAILED"] = "AUTO_TAX_FAILED";
1109
+ FallbackReason2["AUTO_TAX_DEACTIVATED"] = "AUTO_TAX_DEACTIVATED";
1110
+ return FallbackReason2;
1111
+ })(FallbackReason || {});
1112
+ var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
1113
+ PickupMethod2["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
1114
+ PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
1115
+ PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
1116
+ return PickupMethod2;
1117
+ })(PickupMethod || {});
1118
+ var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
1119
+ ChargeType2["HANDLING_FEE"] = "HANDLING_FEE";
1120
+ ChargeType2["INSURANCE"] = "INSURANCE";
1121
+ return ChargeType2;
1122
+ })(ChargeType || {});
1123
+ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
1124
+ DiscountType2["GLOBAL"] = "GLOBAL";
1125
+ DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
1126
+ DiscountType2["SHIPPING"] = "SHIPPING";
1127
+ return DiscountType2;
1128
+ })(DiscountType || {});
1129
+ var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
1130
+ AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
1131
+ AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
1132
+ AdditionalFeeSource2["ITEM"] = "ITEM";
1133
+ AdditionalFeeSource2["MANUAL"] = "MANUAL";
1134
+ AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
1135
+ return AdditionalFeeSource2;
1136
+ })(AdditionalFeeSource || {});
1137
+ async function createCurrentCart2(options) {
1138
+ const { httpClient, sideEffects } = arguments[1];
1088
1139
  const payload = transformPaths2(
1089
1140
  renameKeysFromSDKRequestToRESTRequest({
1090
- cart,
1141
+ cart: options?.cart,
1091
1142
  catalogItems: options?.catalogItems,
1092
1143
  customItems: options?.customItems,
1093
1144
  couponCodes: options?.couponCodes,
@@ -1153,16 +1204,16 @@ async function createCurrentCart2(cart, options) {
1153
1204
  {
1154
1205
  spreadPathsToArguments: {},
1155
1206
  explicitPathsToArguments: {
1156
- cart: "$[0]",
1157
- catalogItems: "$[1].catalogItems",
1158
- customItems: "$[1].customItems",
1159
- couponCodes: "$[1].couponCodes",
1160
- deliveryMethod: "$[1].deliveryMethod",
1161
- giftCardCodes: "$[1].giftCardCodes"
1207
+ cart: "$[0].cart",
1208
+ catalogItems: "$[0].catalogItems",
1209
+ customItems: "$[0].customItems",
1210
+ couponCodes: "$[0].couponCodes",
1211
+ deliveryMethod: "$[0].deliveryMethod",
1212
+ giftCardCodes: "$[0].giftCardCodes"
1162
1213
  },
1163
1214
  singleArgumentUnchanged: false
1164
1215
  },
1165
- ["cart", "options"]
1216
+ ["options"]
1166
1217
  );
1167
1218
  sideEffects?.onError?.(err);
1168
1219
  throw transformedError;
@@ -1782,16 +1833,24 @@ async function removeGiftCardFromCurrentCart2(giftCardId) {
1782
1833
  }
1783
1834
  }
1784
1835
  export {
1836
+ AdditionalFeeSource,
1785
1837
  ChannelType,
1838
+ ChargeType,
1786
1839
  DescriptionLineType,
1787
1840
  DiscountScope,
1788
1841
  DiscountSourceType,
1842
+ DiscountType,
1843
+ FallbackReason,
1789
1844
  FileType,
1790
1845
  ItemStatus,
1791
1846
  ItemTypeItemType,
1847
+ JurisdictionType,
1848
+ ManualCalculationReason,
1792
1849
  NameInLineItem,
1793
1850
  NameInOther,
1794
1851
  PaymentOptionType,
1852
+ PickupMethod,
1853
+ RateType,
1795
1854
  RuleType,
1796
1855
  Severity,
1797
1856
  SubscriptionFrequency,