@wix/auto_sdk_ecom_current-cart-v-2 1.0.0 → 1.0.2
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.d.ts +122 -123
- package/build/cjs/index.js +11 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +11 -18
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +85 -102
- package/build/es/index.d.mts +122 -123
- package/build/es/index.mjs +11 -17
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +11 -17
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +85 -102
- package/build/internal/cjs/index.d.ts +13 -13
- package/build/internal/cjs/index.js +11 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +136 -137
- package/build/internal/cjs/index.typings.js +11 -18
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +85 -102
- package/build/internal/es/index.d.mts +13 -13
- package/build/internal/es/index.mjs +11 -17
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +136 -137
- package/build/internal/es/index.typings.mjs +11 -17
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +85 -102
- package/package.json +2 -2
|
@@ -880,10 +880,10 @@ var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
|
|
|
880
880
|
})(TaxableAddressType || {});
|
|
881
881
|
var ItemStatus = /* @__PURE__ */ ((ItemStatus2) => {
|
|
882
882
|
ItemStatus2["UNKNOWN_ITEM_STATUS"] = "UNKNOWN_ITEM_STATUS";
|
|
883
|
-
ItemStatus2["
|
|
884
|
-
ItemStatus2["
|
|
883
|
+
ItemStatus2["IN_STOCK"] = "IN_STOCK";
|
|
884
|
+
ItemStatus2["PARTIALLY_IN_STOCK"] = "PARTIALLY_IN_STOCK";
|
|
885
885
|
ItemStatus2["OUT_OF_STOCK"] = "OUT_OF_STOCK";
|
|
886
|
-
ItemStatus2["
|
|
886
|
+
ItemStatus2["REMOVED_FROM_CATALOG"] = "REMOVED_FROM_CATALOG";
|
|
887
887
|
return ItemStatus2;
|
|
888
888
|
})(ItemStatus || {});
|
|
889
889
|
var DiscountSourceType = /* @__PURE__ */ ((DiscountSourceType2) => {
|
|
@@ -927,23 +927,18 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
927
927
|
ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
|
|
928
928
|
return ChannelType2;
|
|
929
929
|
})(ChannelType || {});
|
|
930
|
-
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
931
|
-
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
932
|
-
WeightUnit2["KG"] = "KG";
|
|
933
|
-
WeightUnit2["LB"] = "LB";
|
|
934
|
-
return WeightUnit2;
|
|
935
|
-
})(WeightUnit || {});
|
|
936
930
|
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
937
931
|
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
938
932
|
VatType2["CPF"] = "CPF";
|
|
939
933
|
VatType2["CNPJ"] = "CNPJ";
|
|
940
934
|
return VatType2;
|
|
941
935
|
})(VatType || {});
|
|
942
|
-
var
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
936
|
+
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
937
|
+
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
938
|
+
WeightUnit2["KG"] = "KG";
|
|
939
|
+
WeightUnit2["LB"] = "LB";
|
|
940
|
+
return WeightUnit2;
|
|
941
|
+
})(WeightUnit || {});
|
|
947
942
|
var CalculationComponent = /* @__PURE__ */ ((CalculationComponent2) => {
|
|
948
943
|
CalculationComponent2["UNKNOWN_CALCULATION_COMPONENT"] = "UNKNOWN_CALCULATION_COMPONENT";
|
|
949
944
|
CalculationComponent2["DISCOUNTS"] = "DISCOUNTS";
|
|
@@ -1437,7 +1432,7 @@ async function removeLineItemsFromCurrentCart2(lineItemIds) {
|
|
|
1437
1432
|
async function updateLineItemsInCurrentCart2(options) {
|
|
1438
1433
|
const { httpClient, sideEffects } = arguments[1];
|
|
1439
1434
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1440
|
-
|
|
1435
|
+
lineItems: options?.lineItems
|
|
1441
1436
|
});
|
|
1442
1437
|
const reqOpts = updateLineItemsInCurrentCart(payload);
|
|
1443
1438
|
sideEffects?.onSiteCall?.();
|
|
@@ -1471,7 +1466,7 @@ async function updateLineItemsInCurrentCart2(options) {
|
|
|
1471
1466
|
err,
|
|
1472
1467
|
{
|
|
1473
1468
|
spreadPathsToArguments: {},
|
|
1474
|
-
explicitPathsToArguments: {
|
|
1469
|
+
explicitPathsToArguments: { lineItems: "$[0].lineItems" },
|
|
1475
1470
|
singleArgumentUnchanged: false
|
|
1476
1471
|
},
|
|
1477
1472
|
["options"]
|
|
@@ -1666,7 +1661,6 @@ async function removeGiftCardFromCurrentCart2(giftCardId) {
|
|
|
1666
1661
|
}
|
|
1667
1662
|
export {
|
|
1668
1663
|
CalculationComponent,
|
|
1669
|
-
CartStatus,
|
|
1670
1664
|
ChannelType,
|
|
1671
1665
|
DescriptionLineType,
|
|
1672
1666
|
DiscountScope,
|