@wix/auto_sdk_ecom_cart-v-2 1.0.66 → 1.0.68
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 +4 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +61 -67
- package/build/cjs/index.typings.js +4 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +56 -56
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +4 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +61 -67
- package/build/es/index.typings.mjs +4 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +56 -56
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +4 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +61 -67
- package/build/internal/cjs/index.typings.js +4 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +56 -56
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +4 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +61 -67
- package/build/internal/es/index.typings.mjs +4 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +56 -56
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -1775,6 +1775,7 @@ async function estimateCart2(cartId, options) {
|
|
|
1775
1775
|
cartId,
|
|
1776
1776
|
refreshCart: options?.refreshCart,
|
|
1777
1777
|
validationConfig: options?.validationConfig,
|
|
1778
|
+
calculateOrderDiscounts: options?.calculateOrderDiscounts,
|
|
1778
1779
|
calculateDelivery: options?.calculateDelivery,
|
|
1779
1780
|
calculateAdditionalFees: options?.calculateAdditionalFees,
|
|
1780
1781
|
calculateTax: options?.calculateTax,
|
|
@@ -1816,6 +1817,7 @@ async function estimateCart2(cartId, options) {
|
|
|
1816
1817
|
cartId: "$[0]",
|
|
1817
1818
|
refreshCart: "$[1].refreshCart",
|
|
1818
1819
|
validationConfig: "$[1].validationConfig",
|
|
1820
|
+
calculateOrderDiscounts: "$[1].calculateOrderDiscounts",
|
|
1819
1821
|
calculateDelivery: "$[1].calculateDelivery",
|
|
1820
1822
|
calculateAdditionalFees: "$[1].calculateAdditionalFees",
|
|
1821
1823
|
calculateTax: "$[1].calculateTax",
|
|
@@ -1833,9 +1835,7 @@ async function calculateCart2(cartId, options) {
|
|
|
1833
1835
|
const { httpClient, sideEffects } = arguments[2];
|
|
1834
1836
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1835
1837
|
cartId,
|
|
1836
|
-
refreshCart: options?.refreshCart
|
|
1837
|
-
validationsConfig: options?.validationsConfig,
|
|
1838
|
-
customCalculationConfig: options?.customCalculationConfig
|
|
1838
|
+
refreshCart: options?.refreshCart
|
|
1839
1839
|
});
|
|
1840
1840
|
const reqOpts = calculateCart(payload);
|
|
1841
1841
|
sideEffects?.onSiteCall?.();
|
|
@@ -1871,9 +1871,7 @@ async function calculateCart2(cartId, options) {
|
|
|
1871
1871
|
spreadPathsToArguments: {},
|
|
1872
1872
|
explicitPathsToArguments: {
|
|
1873
1873
|
cartId: "$[0]",
|
|
1874
|
-
refreshCart: "$[1].refreshCart"
|
|
1875
|
-
validationsConfig: "$[1].validationsConfig",
|
|
1876
|
-
customCalculationConfig: "$[1].customCalculationConfig"
|
|
1874
|
+
refreshCart: "$[1].refreshCart"
|
|
1877
1875
|
},
|
|
1878
1876
|
singleArgumentUnchanged: false
|
|
1879
1877
|
},
|