@wix/auto_sdk_ecom_cart 1.0.102 → 1.0.104
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 +24 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +36 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +25 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +24 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +36 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +25 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +24 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +36 -7
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +25 -5
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +24 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +36 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +25 -5
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1417,7 +1417,11 @@ interface AddToCurrentCartAndEstimateTotalsRequest {
|
|
|
1417
1417
|
* @maxSize 100
|
|
1418
1418
|
*/
|
|
1419
1419
|
customLineItems?: CustomLineItem[];
|
|
1420
|
-
/**
|
|
1420
|
+
/**
|
|
1421
|
+
* Selected shipping option.
|
|
1422
|
+
*
|
|
1423
|
+
* Pass this field only when there is no existing shipping option in the cart.
|
|
1424
|
+
*/
|
|
1421
1425
|
selectedShippingOption?: SelectedShippingOption;
|
|
1422
1426
|
/** Shipping address. Used for calculating tax and shipping (when applicable). */
|
|
1423
1427
|
shippingAddress?: Address;
|
|
@@ -2551,7 +2555,11 @@ interface CreateCheckoutFromCurrentCartRequest {
|
|
|
2551
2555
|
shippingAddress?: Address;
|
|
2552
2556
|
/** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
|
|
2553
2557
|
billingAddress?: Address;
|
|
2554
|
-
/**
|
|
2558
|
+
/**
|
|
2559
|
+
* Selected shipping option.
|
|
2560
|
+
*
|
|
2561
|
+
* Pass this field only when there is no existing shipping option in the cart.
|
|
2562
|
+
*/
|
|
2555
2563
|
selectedShippingOption?: SelectedShippingOption;
|
|
2556
2564
|
/**
|
|
2557
2565
|
* Required when setting billing or shipping address and user is not logged in.
|
|
@@ -2633,7 +2641,11 @@ interface UpdateLineItemsQuantityResponse {
|
|
|
2633
2641
|
cart?: Cart;
|
|
2634
2642
|
}
|
|
2635
2643
|
interface EstimateCurrentCartTotalsRequest {
|
|
2636
|
-
/**
|
|
2644
|
+
/**
|
|
2645
|
+
* Selected shipping option
|
|
2646
|
+
*
|
|
2647
|
+
* Pass this field only when there is no existing shipping option in the cart.
|
|
2648
|
+
*/
|
|
2637
2649
|
selectedShippingOption?: SelectedShippingOption;
|
|
2638
2650
|
/** Shipping address. Used for calculating tax and shipping (when applicable). */
|
|
2639
2651
|
shippingAddress?: Address;
|
|
@@ -2904,7 +2916,11 @@ interface CreateCheckoutRequest {
|
|
|
2904
2916
|
shippingAddress?: Address;
|
|
2905
2917
|
/** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
|
|
2906
2918
|
billingAddress?: Address;
|
|
2907
|
-
/**
|
|
2919
|
+
/**
|
|
2920
|
+
* Selected shipping option.
|
|
2921
|
+
*
|
|
2922
|
+
* Pass this field only when there is no existing shipping option in the cart.
|
|
2923
|
+
*/
|
|
2908
2924
|
selectedShippingOption?: SelectedShippingOption;
|
|
2909
2925
|
/**
|
|
2910
2926
|
* Required when setting a billing or shipping address if the site visitor isn't logged in.
|
|
@@ -2938,7 +2954,11 @@ interface EstimateTotalsRequest {
|
|
|
2938
2954
|
* @format GUID
|
|
2939
2955
|
*/
|
|
2940
2956
|
_id: string;
|
|
2941
|
-
/**
|
|
2957
|
+
/**
|
|
2958
|
+
* Selected shipping option.
|
|
2959
|
+
*
|
|
2960
|
+
* Pass this field only when there is no existing shipping option in the cart.
|
|
2961
|
+
*/
|
|
2942
2962
|
selectedShippingOption?: SelectedShippingOption;
|
|
2943
2963
|
/** Shipping address. Used for calculating tax and shipping (when applicable). */
|
|
2944
2964
|
shippingAddress?: Address;
|
|
@@ -3098,6 +3118,7 @@ declare function onCartDeleted(handler: (event: CartDeletedEnvelope) => void | P
|
|
|
3098
3118
|
interface CartUpdatedEnvelope {
|
|
3099
3119
|
entity: Cart;
|
|
3100
3120
|
metadata: EventMetadata;
|
|
3121
|
+
modifiedFields: Record<string, any>;
|
|
3101
3122
|
}
|
|
3102
3123
|
/** @permissionScope Manage Stores - all permissions
|
|
3103
3124
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
@@ -3472,7 +3493,11 @@ interface CreateCheckoutOptions {
|
|
|
3472
3493
|
shippingAddress?: Address;
|
|
3473
3494
|
/** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
|
|
3474
3495
|
billingAddress?: Address;
|
|
3475
|
-
/**
|
|
3496
|
+
/**
|
|
3497
|
+
* Selected shipping option.
|
|
3498
|
+
*
|
|
3499
|
+
* Pass this field only when there is no existing shipping option in the cart.
|
|
3500
|
+
*/
|
|
3476
3501
|
selectedShippingOption?: SelectedShippingOption;
|
|
3477
3502
|
/**
|
|
3478
3503
|
* Required when setting a billing or shipping address if the site visitor isn't logged in.
|
|
@@ -3530,7 +3555,11 @@ declare function updateLineItemsQuantity(_id: string, lineItems: LineItemQuantit
|
|
|
3530
3555
|
*/
|
|
3531
3556
|
declare function estimateTotals(_id: string, options?: EstimateTotalsOptions): Promise<NonNullablePaths<EstimateTotalsResponse, `cart.lineItems` | `cart.lineItems.${number}.quantity` | `cart.lineItems.${number}.catalogReference.catalogItemId` | `cart.lineItems.${number}.catalogReference.appId` | `cart.lineItems.${number}.productName.original` | `cart.lineItems.${number}.price.amount` | `cart.lineItems.${number}.price.convertedAmount` | `cart.lineItems.${number}.price.formattedAmount` | `cart.lineItems.${number}.price.formattedConvertedAmount` | `cart.lineItems.${number}.availability.status` | `cart.lineItems.${number}.physicalProperties.shippable` | `cart.lineItems.${number}.itemType.preset` | `cart.lineItems.${number}.itemType.custom` | `cart.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency` | `cart.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal` | `cart.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation` | `cart.lineItems.${number}.subscriptionOptionInfo.title.original` | `cart.lineItems.${number}.subscriptionOptionInfo.description.original` | `cart.lineItems.${number}.paymentOption` | `cart.lineItems.${number}.priceDescription.original` | `cart.lineItems.${number}.selectedMembership._id` | `cart.lineItems.${number}.selectedMembership.appId` | `cart.lineItems.${number}.customLineItem` | `cart.lineItems.${number}.priceUndetermined` | `cart.lineItems.${number}.fixedQuantity` | `cart.lineItems.${number}.catalogOverrideFields.paymentOption.value` | `cart.lineItems.${number}.savePaymentMethod` | `cart.lineItems.${number}.taxableAddress.addressType` | `cart.lineItems.${number}.membersOnly` | `cart.buyerInfo.visitorId` | `cart.buyerInfo.memberId` | `cart.buyerInfo.userId` | `cart.currency` | `cart.conversionCurrency` | `cart.weightUnit` | `cart.appliedDiscounts` | `cart.appliedDiscounts.${number}.coupon._id` | `cart.appliedDiscounts.${number}.coupon.code` | `cart.contactInfo.address.streetAddress.number` | `cart.contactInfo.address.streetAddress.name` | `cart.contactInfo.contactDetails.vatId._id` | `cart.contactInfo.contactDetails.vatId.type` | `cart.selectedShippingOption.code` | `cart.paymentCurrency` | `calculatedLineItems` | `calculatedLineItems.${number}.lineItemId` | `calculatedLineItems.${number}.pricesBreakdown.totalPriceAfterTax.amount` | `calculatedLineItems.${number}.pricesBreakdown.totalPriceAfterTax.convertedAmount` | `calculatedLineItems.${number}.pricesBreakdown.totalPriceAfterTax.formattedAmount` | `calculatedLineItems.${number}.pricesBreakdown.totalPriceAfterTax.formattedConvertedAmount` | `calculatedLineItems.${number}.pricesBreakdown.taxDetails.taxRate` | `calculatedLineItems.${number}.paymentOption` | `calculatedLineItems.${number}.taxableAddress.addressType` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.convertedAmount` | `priceSummary.subtotal.formattedAmount` | `priceSummary.subtotal.formattedConvertedAmount` | `giftCard._id` | `giftCard.obfuscatedCode` | `giftCard.amount.amount` | `giftCard.amount.convertedAmount` | `giftCard.amount.formattedAmount` | `giftCard.amount.formattedConvertedAmount` | `giftCard.appId` | `taxSummary.taxableAmount.amount` | `taxSummary.taxableAmount.convertedAmount` | `taxSummary.taxableAmount.formattedAmount` | `taxSummary.taxableAmount.formattedConvertedAmount` | `taxSummary.calculationDetails.manualRateReason` | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason` | `taxSummary.calculationDetails.autoTaxFallbackDetails.error.code` | `taxSummary.calculationDetails.autoTaxFallbackDetails.error.description` | `taxSummary.calculationDetails.rateType` | `shippingInfo.region._id` | `shippingInfo.region.name` | `shippingInfo.selectedCarrierServiceOption.code` | `shippingInfo.selectedCarrierServiceOption.title` | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.streetAddress.number` | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.streetAddress.name` | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation` | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod` | `shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax.amount` | `shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax.convertedAmount` | `shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax.formattedAmount` | `shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax.formattedConvertedAmount` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.taxRate` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.rateBreakdown` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.rateBreakdown.${number}.name` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.rateBreakdown.${number}.rate` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.taxBreakdown` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.taxBreakdown.${number}.jurisdictionType` | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption` | `shippingInfo.selectedCarrierServiceOption.otherCharges` | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type` | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations` | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code` | `shippingInfo.carrierServiceOptions` | `shippingInfo.carrierServiceOptions.${number}.carrierId` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.convertedAmount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.coupon.amount.formattedConvertedAmount` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `calculationErrors.generalShippingCalculationError.applicationError.code` | `calculationErrors.generalShippingCalculationError.applicationError.description` | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `calculationErrors.carrierErrors.errors` | `calculationErrors.carrierErrors.errors.${number}.carrierId` | `calculationErrors.orderValidationErrors` | `weightUnit` | `currency` | `payNow.subtotal.amount` | `payNow.subtotal.convertedAmount` | `payNow.subtotal.formattedAmount` | `payNow.subtotal.formattedConvertedAmount` | `payLater.subtotal.amount` | `payLater.subtotal.convertedAmount` | `payLater.subtotal.formattedAmount` | `payLater.subtotal.formattedConvertedAmount` | `membershipOptions.eligibleMemberships` | `membershipOptions.eligibleMemberships.${number}._id` | `membershipOptions.eligibleMemberships.${number}.appId` | `membershipOptions.eligibleMemberships.${number}.name.original` | `membershipOptions.eligibleMemberships.${number}.credits.total` | `membershipOptions.eligibleMemberships.${number}.credits.remaining` | `membershipOptions.invalidMemberships` | `membershipOptions.invalidMemberships.${number}.reason` | `membershipOptions.selectedMemberships` | `membershipOptions.selectedMemberships.${number}._id` | `membershipOptions.selectedMemberships.${number}.appId` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.convertedAmount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.price.formattedConvertedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}.source` | `violations` | `violations.${number}.severity` | `violations.${number}.target.other.name` | `violations.${number}.target.lineItem.name`, 8>>;
|
|
3532
3557
|
interface EstimateTotalsOptions {
|
|
3533
|
-
/**
|
|
3558
|
+
/**
|
|
3559
|
+
* Selected shipping option.
|
|
3560
|
+
*
|
|
3561
|
+
* Pass this field only when there is no existing shipping option in the cart.
|
|
3562
|
+
*/
|
|
3534
3563
|
selectedShippingOption?: SelectedShippingOption;
|
|
3535
3564
|
/** Shipping address. Used for calculating tax and shipping (when applicable). */
|
|
3536
3565
|
shippingAddress?: Address;
|