@wix/auto_sdk_ecom_current-cart-v-2 1.0.173 → 1.0.174

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 (49) hide show
  1. package/build/cjs/index.d.ts +24 -4
  2. package/build/cjs/index.js +236 -14
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1774 -1595
  5. package/build/cjs/index.typings.js +14 -14
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1612 -1598
  8. package/build/cjs/meta.js +14 -14
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +0 -20
  11. package/build/cjs/schemas.js +92 -110
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +24 -4
  14. package/build/es/index.mjs +232 -14
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +1774 -1595
  17. package/build/es/index.typings.mjs +14 -14
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +1612 -1598
  20. package/build/es/meta.mjs +14 -14
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +0 -20
  23. package/build/es/schemas.mjs +92 -110
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +24 -4
  26. package/build/internal/cjs/index.js +236 -14
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +1871 -1692
  29. package/build/internal/cjs/index.typings.js +14 -14
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +1612 -1598
  32. package/build/internal/cjs/meta.js +14 -14
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +0 -20
  35. package/build/internal/cjs/schemas.js +92 -110
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +24 -4
  38. package/build/internal/es/index.mjs +232 -14
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +1871 -1692
  41. package/build/internal/es/index.typings.mjs +14 -14
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +1612 -1598
  44. package/build/internal/es/meta.mjs +14 -14
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +0 -20
  47. package/build/internal/es/schemas.mjs +92 -110
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
- import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { CreateCurrentCartOptions, CreateCurrentCartResponse, CreateCurrentCartApplicationErrors, GetCurrentCartResponse, Cart, UpdateCurrentCartResponse, UpdateCurrentCartApplicationErrors, RefreshCurrentCartResponse, RefreshCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, CalculateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, EstimateCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, CouponInput, AddCouponToCurrentCartResponse, AddCouponToCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, DeliveryMethodInput, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, RemoveDeliveryMethodFromCurrentCartResponse, RemoveDeliveryMethodFromCurrentCartApplicationErrors, GiftCardInput, AddGiftCardToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse } from './index.typings.js';
3
- export { AccountInfo, ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, Benefit, BenefitQuotaOneOf, BenefitType, BenefitTypeWithLiterals, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartEstimationIndicators, CartRevisionMismatchErrorData, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, CoveredLineItem, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomValidationErrorData, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, Discount, DiscountBenefit, DiscountBenefitValueOneOf, DiscountRule, DiscountRuleName, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DuplicateItemModifierIdsErrorData, DuplicateLineItemUpdatesErrorData, DuplicateModifierGroupIdsErrorData, Empty, EmptyLineItemUpdatesErrorData, EmptyPaymentTokenErrorData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCartRequest, EstimateCartResponse, EstimateCurrentCartRequest, ExistingMembership, ExistingMembershipInput, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, FutureMembership, FutureMembershipInput, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCurrentCartRequest, GetUpsellOptionsForCurrentCartRequest, GetUpsellOptionsForCurrentCartResponse, GetUpsellOptionsRequest, GetUpsellOptionsResponse, GiftCard, GiftCardAdded, GiftCardAlreadyExistsErrorData, GiftCardCalculationError, GiftCardNotFoundInCartErrorData, GiftCardRedeemErrorData, GiftCardRemoved, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InsufficientInventoryEntry, InsufficientInventoryErrorData, InvalidCartErrorData, InvalidCouponCodeErrorData, InvalidCouponReason, InvalidCouponReasonWithLiterals, InvalidCouponStatusErrorData, InvalidCouponStatusErrorDataDetailsOneOf, InvalidGiftCardCodeErrorData, InvalidGiftCardReason, InvalidGiftCardReasonWithLiterals, InvalidGiftCardStatusErrorData, InvalidMembership, InvalidMembershipEntry, InvalidMembershipErrorData, InvalidMembershipPaymentOptionErrorData, InvalidMembershipReason, InvalidMembershipReasonWithLiterals, InvalidMembershipStatusErrorData, InvalidPaymentStatusErrorData, InvalidPriceVerificationTokenErrorData, InvalidThirdPartyCheckoutTokenErrorData, ItemAttributes, ItemCombination, ItemCombinationLineItem, ItemDeliveryConfig, ItemDiscount, ItemModifier, ItemNotFoundInCatalogErrorData, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, ItemUpsells, JurisdictionType, JurisdictionTypeWithLiterals, LegacyFields, LimitedQuota, LimitedQuotaType, LimitedQuotaTypeWithLiterals, LineItem, LineItemAdded, LineItemCoverage, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, MaxItemModifiersExceededErrorData, MaxLineItemsExceededErrorData, MembersOnlyItemErrorData, Membership, MembershipInput, MembershipInputMembershipOneOf, MembershipName, MembershipOptions, MembershipPaymentCredits, MembershipSummary, MerchantDiscount, MessageEnvelope, MinLineItemQuantityNotReachedDetails, MinSubtotalNotReachedDetails, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlaceOrderRequest, PlaceOrderResponse, PlainTextValue, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, Policy, Price, PriceDescription, PriceDetails, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, PurchasablePlan, QuantityUpdate, QuotaType, QuotaTypeWithLiterals, RateType, RateTypeWithLiterals, RawHttpResponse, RedemptionType, RedemptionTypeWithLiterals, RedirectUrls, RefreshCartRequest, RefreshCartResponse, RefreshCurrentCartRequest, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveCouponResponse, RemoveDeliveryMethodFromCurrentCartRequest, RemoveDeliveryMethodRequest, RemoveDeliveryMethodResponse, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RemoveLineItemsResponse, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodRequest, SetDeliveryMethodResponse, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, Source, SourceWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SubtotalBelowOrderMinimumErrorData, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetTargetTypeOneOf, Tax, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxInfo, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UnmarkAsCurrentCartRequest, UnmarkAsCurrentCartResponse, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsRequest, UpdateFormSubmissionsResponse, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsRequest, UpdateLineItemsResponse, UpsellBenefitMetadata, UpsellOption, V1AdditionalFee, V1Membership, V1PriceSummary, V2AdditionalFee, V2CalculationErrors, V2CalculationErrorsShippingCalculationErrorOneOf, V2CarrierError, V2CarrierErrors, V2Coupon, V2ExistingMembership, V2GiftCard, V2LineItem, V2LineItemDiscount, V2Membership, V2MembershipIdentifierOneOf, V2PriceSummary, V2SelectedMembership, V2TaxSummary, V2Violation, V2ViolationDataOneOf, ValidatedExistingMemberships, ValidatedPurchasablePlans, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, ViolationCode, ViolationCodeWithLiterals, ViolationScope, ViolationScopeWithLiterals, ViolationSeverity, ViolationSeverityWithLiterals, ViolationWithErrorSeverityErrorData, ViolationsList, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { CreateCurrentCartOptions, CreateCurrentCartResponse, CreateCurrentCartApplicationErrors, GetCurrentCartResponse, Cart, UpdateCurrentCartResponse, UpdateCurrentCartApplicationErrors, RefreshCurrentCartResponse, RefreshCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, CalculateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, EstimateCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, CouponInput, AddCouponToCurrentCartResponse, AddCouponToCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, DeliveryMethodInput, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, RemoveDeliveryMethodFromCurrentCartResponse, RemoveDeliveryMethodFromCurrentCartApplicationErrors, GiftCardInput, AddGiftCardToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse, CartCalculatedEnvelope, CartCreatedEnvelope, CartDeletedEnvelope, CartUpdatedEnvelope } from './index.typings.js';
3
+ export { AccountInfo, AccountInfoMetadata, ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, Benefit, BenefitQuotaOneOf, BenefitType, BenefitTypeWithLiterals, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartEstimationIndicators, CartRevisionMismatchErrorData, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, CoveredLineItem, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomValidationErrorData, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryAllocation, DeliveryInfo, DeliveryLogistics, DeliveryMethod, DeliveryMethodNotFoundErrorData, DeliverySummary, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, Discount, DiscountRule, DiscountRuleName, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DuplicateItemModifierIdsErrorData, DuplicateLineItemUpdatesErrorData, DuplicateModifierGroupIdsErrorData, Empty, EmptyLineItemUpdatesErrorData, EmptyPaymentTokenErrorData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCartRequest, EstimateCartResponse, EstimateCurrentCartRequest, EventMetadata, ExistingMembership, ExistingMembershipInput, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, FutureMembership, FutureMembershipInput, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCurrentCartRequest, GetUpsellOptionsForCurrentCartRequest, GetUpsellOptionsForCurrentCartResponse, GetUpsellOptionsRequest, GetUpsellOptionsResponse, GiftCard, GiftCardAdded, GiftCardAlreadyExistsErrorData, GiftCardCalculationError, GiftCardNotFoundInCartErrorData, GiftCardRedeemErrorData, GiftCardRemoved, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InsufficientInventoryEntry, InsufficientInventoryErrorData, InvalidCartErrorData, InvalidCouponCodeErrorData, InvalidCouponReason, InvalidCouponReasonWithLiterals, InvalidCouponStatusErrorData, InvalidCouponStatusErrorDataDetailsOneOf, InvalidGiftCardCodeErrorData, InvalidGiftCardReason, InvalidGiftCardReasonWithLiterals, InvalidGiftCardStatusErrorData, InvalidMembership, InvalidMembershipEntry, InvalidMembershipErrorData, InvalidMembershipPaymentOptionErrorData, InvalidMembershipReason, InvalidMembershipReasonWithLiterals, InvalidMembershipStatusErrorData, InvalidPaymentStatusErrorData, InvalidPriceVerificationTokenErrorData, InvalidThirdPartyCheckoutTokenErrorData, ItemAttributes, ItemCombination, ItemCombinationLineItem, ItemDeliveryConfig, ItemDiscount, ItemModifier, ItemNotFoundInCatalogErrorData, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, ItemUpsells, JurisdictionType, JurisdictionTypeWithLiterals, LegacyFields, LimitedQuota, LimitedQuotaType, LimitedQuotaTypeWithLiterals, LineItem, LineItemAdded, LineItemCoverage, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, MaxItemModifiersExceededErrorData, MaxLineItemsExceededErrorData, MembersOnlyItemErrorData, Membership, MembershipInput, MembershipInputMembershipOneOf, MembershipName, MembershipOptions, MembershipPaymentCredits, MembershipSummary, MerchantDiscount, MessageEnvelope, MinLineItemQuantityNotReachedDetails, MinSubtotalNotReachedDetails, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlaceOrderRequest, PlaceOrderResponse, PlainTextValue, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, Policy, Price, PriceDescription, PriceDetails, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, PurchasablePlan, QuantityUpdate, QuotaType, QuotaTypeWithLiterals, RateType, RateTypeWithLiterals, RawHttpResponse, RedemptionType, RedemptionTypeWithLiterals, RedirectUrls, RefreshCartRequest, RefreshCartResponse, RefreshCurrentCartRequest, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveCouponResponse, RemoveDeliveryMethodFromCurrentCartRequest, RemoveDeliveryMethodRequest, RemoveDeliveryMethodResponse, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RemoveLineItemsResponse, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodRequest, SetDeliveryMethodResponse, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, Source, SourceWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SubtotalBelowOrderMinimumErrorData, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetTargetTypeOneOf, Tax, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxDetails, TaxInfo, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UnmarkAsCurrentCartRequest, UnmarkAsCurrentCartResponse, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsRequest, UpdateFormSubmissionsResponse, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsRequest, UpdateLineItemsResponse, UpsellBenefitMetadata, UpsellOption, V1AdditionalFee, V1Membership, V1PriceSummary, V2AdditionalFee, V2CalculationErrors, V2CalculationErrorsShippingCalculationErrorOneOf, V2CarrierError, V2CarrierErrors, V2Coupon, V2ExistingMembership, V2GiftCard, V2LineItem, V2LineItemDiscount, V2Membership, V2MembershipIdentifierOneOf, V2PriceSummary, V2SelectedMembership, V2TaxSummary, V2Violation, V2ViolationDataOneOf, ValidatedExistingMemberships, ValidatedPurchasablePlans, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, ViolationCode, ViolationCodeWithLiterals, ViolationScope, ViolationScopeWithLiterals, ViolationSeverity, ViolationSeverityWithLiterals, ViolationWithErrorSeverityErrorData, ViolationsList, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.js';
4
4
 
5
5
  declare function createCurrentCart$1(httpClient: HttpClient): CreateCurrentCartSignature;
6
6
  interface CreateCurrentCartSignature {
@@ -185,6 +185,10 @@ interface UpdateFormSubmissionsInCurrentCartSignature {
185
185
  */
186
186
  (options?: UpdateFormSubmissionsInCurrentCartOptions): Promise<NonNullablePaths<UpdateFormSubmissionsInCurrentCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.openAccess` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `cart.demo`, 7>>;
187
187
  }
188
+ declare const onCartCalculated$1: EventDefinition<CartCalculatedEnvelope, "wix.ecom.v2.cart_calculated">;
189
+ declare const onCartCreated$1: EventDefinition<CartCreatedEnvelope, "wix.ecom.v2.cart_created">;
190
+ declare const onCartDeleted$1: EventDefinition<CartDeletedEnvelope, "wix.ecom.v2.cart_deleted">;
191
+ declare const onCartUpdated$1: EventDefinition<CartUpdatedEnvelope, "wix.ecom.v2.cart_updated">;
188
192
 
189
193
  declare const createCurrentCart: MaybeContext<BuildRESTFunction<typeof createCurrentCart$1> & typeof createCurrentCart$1>;
190
194
  declare const getCurrentCart: MaybeContext<BuildRESTFunction<typeof getCurrentCart$1> & typeof getCurrentCart$1>;
@@ -203,5 +207,21 @@ declare const removeDeliveryMethodFromCurrentCart: MaybeContext<BuildRESTFunctio
203
207
  declare const addGiftCardToCurrentCart: MaybeContext<BuildRESTFunction<typeof addGiftCardToCurrentCart$1> & typeof addGiftCardToCurrentCart$1>;
204
208
  declare const removeGiftCardFromCurrentCart: MaybeContext<BuildRESTFunction<typeof removeGiftCardFromCurrentCart$1> & typeof removeGiftCardFromCurrentCart$1>;
205
209
  declare const updateFormSubmissionsInCurrentCart: MaybeContext<BuildRESTFunction<typeof updateFormSubmissionsInCurrentCart$1> & typeof updateFormSubmissionsInCurrentCart$1>;
210
+ /**
211
+ * Triggered when a cart is calculated.
212
+ */
213
+ declare const onCartCalculated: BuildEventDefinition<typeof onCartCalculated$1> & typeof onCartCalculated$1;
214
+ /**
215
+ * Triggered when a cart is created.
216
+ */
217
+ declare const onCartCreated: BuildEventDefinition<typeof onCartCreated$1> & typeof onCartCreated$1;
218
+ /**
219
+ * Triggered when a cart is deleted.
220
+ */
221
+ declare const onCartDeleted: BuildEventDefinition<typeof onCartDeleted$1> & typeof onCartDeleted$1;
222
+ /**
223
+ * Triggered when a cart is updated.
224
+ */
225
+ declare const onCartUpdated: BuildEventDefinition<typeof onCartUpdated$1> & typeof onCartUpdated$1;
206
226
 
207
- export { AddCouponToCurrentCartApplicationErrors, AddCouponToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, AddGiftCardToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, CalculateCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, Cart, CouponInput, CreateCurrentCartApplicationErrors, CreateCurrentCartOptions, CreateCurrentCartResponse, DeliveryMethodInput, EstimateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, GetCurrentCartResponse, GiftCardInput, RefreshCurrentCartApplicationErrors, RefreshCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveDeliveryMethodFromCurrentCartApplicationErrors, RemoveDeliveryMethodFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, SetDeliveryMethodForCurrentCartResponse, UpdateCurrentCartApplicationErrors, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, estimateCurrentCart, getCurrentCart, refreshCurrentCart, removeCouponFromCurrentCart, removeDeliveryMethodFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateFormSubmissionsInCurrentCart, updateLineItemsInCurrentCart };
227
+ export { AddCouponToCurrentCartApplicationErrors, AddCouponToCurrentCartResponse, AddGiftCardToCurrentCartApplicationErrors, AddGiftCardToCurrentCartResponse, AddLineItemsToCurrentCartApplicationErrors, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartResponse, CalculateCurrentCartApplicationErrors, CalculateCurrentCartOptions, CalculateCurrentCartResponse, Cart, CartCalculatedEnvelope, CartCreatedEnvelope, CartDeletedEnvelope, CartUpdatedEnvelope, CouponInput, CreateCurrentCartApplicationErrors, CreateCurrentCartOptions, CreateCurrentCartResponse, DeliveryMethodInput, EstimateCurrentCartApplicationErrors, EstimateCurrentCartOptions, EstimateCurrentCartResponse, GetCurrentCartResponse, GiftCardInput, RefreshCurrentCartApplicationErrors, RefreshCurrentCartResponse, RemoveCouponFromCurrentCartApplicationErrors, RemoveCouponFromCurrentCartResponse, RemoveDeliveryMethodFromCurrentCartApplicationErrors, RemoveDeliveryMethodFromCurrentCartResponse, RemoveGiftCardFromCurrentCartApplicationErrors, RemoveGiftCardFromCurrentCartResponse, RemoveLineItemsFromCurrentCartApplicationErrors, RemoveLineItemsFromCurrentCartResponse, SetDeliveryMethodForCurrentCartApplicationErrors, SetDeliveryMethodForCurrentCartResponse, UpdateCurrentCartApplicationErrors, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartOptions, UpdateFormSubmissionsInCurrentCartResponse, UpdateLineItemsInCurrentCartApplicationErrors, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartResponse, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, estimateCurrentCart, getCurrentCart, onCartCalculated, onCartCreated, onCartDeleted, onCartUpdated, refreshCurrentCart, removeCouponFromCurrentCart, removeDeliveryMethodFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateFormSubmissionsInCurrentCart, updateLineItemsInCurrentCart };
@@ -71,6 +71,10 @@ __export(index_exports, {
71
71
  estimateCurrentCart: () => estimateCurrentCart4,
72
72
  getCurrentCart: () => getCurrentCart4,
73
73
  getUpsellOptionsForCurrentCart: () => getUpsellOptionsForCurrentCart4,
74
+ onCartCalculated: () => onCartCalculated2,
75
+ onCartCreated: () => onCartCreated2,
76
+ onCartDeleted: () => onCartDeleted2,
77
+ onCartUpdated: () => onCartUpdated2,
74
78
  refreshCurrentCart: () => refreshCurrentCart4,
75
79
  removeCouponFromCurrentCart: () => removeCouponFromCurrentCart4,
76
80
  removeDeliveryMethodFromCurrentCart: () => removeDeliveryMethodFromCurrentCart4,
@@ -83,6 +87,16 @@ __export(index_exports, {
83
87
  });
84
88
  module.exports = __toCommonJS(index_exports);
85
89
 
90
+ // src/ecom-v2-cart-current-cart-v-2.public.ts
91
+ var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
92
+ var import_address3 = require("@wix/sdk-runtime/transformations/address");
93
+ var import_float3 = require("@wix/sdk-runtime/transformations/float");
94
+ var import_image3 = require("@wix/sdk-runtime/transformations/image");
95
+ var import_page_url_v23 = require("@wix/sdk-runtime/transformations/page-url-v2");
96
+ var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
97
+ var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
98
+ var import_sdk_types = require("@wix/sdk-types");
99
+
86
100
  // src/ecom-v2-cart-current-cart-v-2.universal.ts
87
101
  var import_transform_error = require("@wix/sdk-runtime/transform-error");
88
102
  var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
@@ -1468,26 +1482,18 @@ var InvalidMembershipReason = /* @__PURE__ */ ((InvalidMembershipReason2) => {
1468
1482
  InvalidMembershipReason2["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
1469
1483
  return InvalidMembershipReason2;
1470
1484
  })(InvalidMembershipReason || {});
1471
- var ValidationsConfig = /* @__PURE__ */ ((ValidationsConfig2) => {
1472
- ValidationsConfig2["SKIP_VALIDATIONS"] = "SKIP_VALIDATIONS";
1473
- ValidationsConfig2["PRE_CHECKOUT_VALIDATIONS"] = "PRE_CHECKOUT_VALIDATIONS";
1474
- ValidationsConfig2["CHECKOUT_VALIDATIONS"] = "CHECKOUT_VALIDATIONS";
1475
- return ValidationsConfig2;
1476
- })(ValidationsConfig || {});
1477
1485
  var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
1478
1486
  BenefitType2["PERCENTAGE"] = "PERCENTAGE";
1479
1487
  BenefitType2["FIXED_PRICE"] = "FIXED_PRICE";
1480
1488
  BenefitType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
1481
1489
  return BenefitType2;
1482
1490
  })(BenefitType || {});
1483
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1484
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1485
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1486
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1487
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1488
- WebhookIdentityType2["APP"] = "APP";
1489
- return WebhookIdentityType2;
1490
- })(WebhookIdentityType || {});
1491
+ var ValidationsConfig = /* @__PURE__ */ ((ValidationsConfig2) => {
1492
+ ValidationsConfig2["SKIP_VALIDATIONS"] = "SKIP_VALIDATIONS";
1493
+ ValidationsConfig2["PRE_CHECKOUT_VALIDATIONS"] = "PRE_CHECKOUT_VALIDATIONS";
1494
+ ValidationsConfig2["CHECKOUT_VALIDATIONS"] = "CHECKOUT_VALIDATIONS";
1495
+ return ValidationsConfig2;
1496
+ })(ValidationsConfig || {});
1491
1497
  var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
1492
1498
  JurisdictionType2["UNDEFINED"] = "UNDEFINED";
1493
1499
  JurisdictionType2["COUNTRY"] = "COUNTRY";
@@ -1553,6 +1559,14 @@ var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
1553
1559
  PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
1554
1560
  return PlatformFeeChargeType2;
1555
1561
  })(PlatformFeeChargeType || {});
1562
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1563
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1564
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1565
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1566
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1567
+ WebhookIdentityType2["APP"] = "APP";
1568
+ return WebhookIdentityType2;
1569
+ })(WebhookIdentityType || {});
1556
1570
  async function createCurrentCart2(options) {
1557
1571
  const { httpClient, sideEffects } = arguments[1];
1558
1572
  const payload = (0, import_transform_paths2.transformPaths)(
@@ -2535,9 +2549,209 @@ function getUpsellOptionsForCurrentCart3(httpClient) {
2535
2549
  { httpClient }
2536
2550
  );
2537
2551
  }
2552
+ var onCartCalculated = (0, import_sdk_types.EventDefinition)(
2553
+ "wix.ecom.v2.cart_calculated",
2554
+ true,
2555
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
2556
+ (0, import_transform_paths3.transformPaths)(event, [
2557
+ {
2558
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2559
+ paths: [
2560
+ {
2561
+ path: "data.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
2562
+ },
2563
+ { path: "metadata.eventTime" }
2564
+ ]
2565
+ }
2566
+ ])
2567
+ )
2568
+ )();
2569
+ var onCartCreated = (0, import_sdk_types.EventDefinition)(
2570
+ "wix.ecom.v2.cart_created",
2571
+ true,
2572
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
2573
+ (0, import_transform_paths3.transformPaths)(event, [
2574
+ {
2575
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2576
+ paths: [
2577
+ { path: "entity.createdDate" },
2578
+ { path: "entity.updatedDate" },
2579
+ {
2580
+ path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
2581
+ },
2582
+ {
2583
+ path: "entity.lineItems.attributes.serviceProperties.scheduledDate"
2584
+ },
2585
+ { path: "entity.lineItems.attributes.serviceProperties.endDate" },
2586
+ { path: "metadata.eventTime" }
2587
+ ]
2588
+ },
2589
+ {
2590
+ transformFn: import_image3.transformRESTImageToSDKImage,
2591
+ paths: [
2592
+ { path: "entity.lineItems.source.catalogOverrideFields.image" },
2593
+ { path: "entity.lineItems.attributes.image" }
2594
+ ]
2595
+ },
2596
+ {
2597
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2598
+ paths: [
2599
+ {
2600
+ path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
2601
+ },
2602
+ { path: "entity.lineItems.attributes.physicalProperties.weight" },
2603
+ { path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
2604
+ ]
2605
+ },
2606
+ {
2607
+ transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
2608
+ paths: [{ path: "entity.lineItems.attributes.url" }]
2609
+ },
2610
+ {
2611
+ transformFn: import_address3.transformRESTAddressToSDKAddress,
2612
+ paths: [
2613
+ { path: "entity.deliveryInfo.address" },
2614
+ { path: "entity.paymentInfo.billingAddress" }
2615
+ ]
2616
+ }
2617
+ ])
2618
+ )
2619
+ )();
2620
+ var onCartDeleted = (0, import_sdk_types.EventDefinition)(
2621
+ "wix.ecom.v2.cart_deleted",
2622
+ true,
2623
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
2624
+ (0, import_transform_paths3.transformPaths)(event, [
2625
+ {
2626
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2627
+ paths: [
2628
+ { path: "entity.createdDate" },
2629
+ { path: "entity.updatedDate" },
2630
+ {
2631
+ path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
2632
+ },
2633
+ {
2634
+ path: "entity.lineItems.attributes.serviceProperties.scheduledDate"
2635
+ },
2636
+ { path: "entity.lineItems.attributes.serviceProperties.endDate" },
2637
+ { path: "metadata.eventTime" }
2638
+ ]
2639
+ },
2640
+ {
2641
+ transformFn: import_image3.transformRESTImageToSDKImage,
2642
+ paths: [
2643
+ { path: "entity.lineItems.source.catalogOverrideFields.image" },
2644
+ { path: "entity.lineItems.attributes.image" }
2645
+ ]
2646
+ },
2647
+ {
2648
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2649
+ paths: [
2650
+ {
2651
+ path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
2652
+ },
2653
+ { path: "entity.lineItems.attributes.physicalProperties.weight" },
2654
+ { path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
2655
+ ]
2656
+ },
2657
+ {
2658
+ transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
2659
+ paths: [{ path: "entity.lineItems.attributes.url" }]
2660
+ },
2661
+ {
2662
+ transformFn: import_address3.transformRESTAddressToSDKAddress,
2663
+ paths: [
2664
+ { path: "entity.deliveryInfo.address" },
2665
+ { path: "entity.paymentInfo.billingAddress" }
2666
+ ]
2667
+ }
2668
+ ])
2669
+ )
2670
+ )();
2671
+ var onCartUpdated = (0, import_sdk_types.EventDefinition)(
2672
+ "wix.ecom.v2.cart_updated",
2673
+ true,
2674
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
2675
+ (0, import_transform_paths3.transformPaths)(event, [
2676
+ {
2677
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
2678
+ paths: [
2679
+ { path: "entity.createdDate" },
2680
+ { path: "entity.updatedDate" },
2681
+ {
2682
+ path: "entity.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
2683
+ },
2684
+ {
2685
+ path: "entity.lineItems.attributes.serviceProperties.scheduledDate"
2686
+ },
2687
+ { path: "entity.lineItems.attributes.serviceProperties.endDate" },
2688
+ { path: "metadata.eventTime" },
2689
+ { path: "modifiedFields.createdDate" },
2690
+ { path: "modifiedFields.updatedDate" },
2691
+ {
2692
+ path: "modifiedFields.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
2693
+ },
2694
+ {
2695
+ path: "modifiedFields.lineItems.attributes.serviceProperties.scheduledDate"
2696
+ },
2697
+ {
2698
+ path: "modifiedFields.lineItems.attributes.serviceProperties.endDate"
2699
+ }
2700
+ ]
2701
+ },
2702
+ {
2703
+ transformFn: import_image3.transformRESTImageToSDKImage,
2704
+ paths: [
2705
+ { path: "entity.lineItems.source.catalogOverrideFields.image" },
2706
+ { path: "entity.lineItems.attributes.image" },
2707
+ {
2708
+ path: "modifiedFields.lineItems.source.catalogOverrideFields.image"
2709
+ },
2710
+ { path: "modifiedFields.lineItems.attributes.image" }
2711
+ ]
2712
+ },
2713
+ {
2714
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
2715
+ paths: [
2716
+ {
2717
+ path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
2718
+ },
2719
+ { path: "entity.lineItems.attributes.physicalProperties.weight" },
2720
+ { path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" },
2721
+ {
2722
+ path: "modifiedFields.lineItems.source.catalogOverrideFields.physicalProperties.weight"
2723
+ },
2724
+ {
2725
+ path: "modifiedFields.lineItems.attributes.physicalProperties.weight"
2726
+ },
2727
+ {
2728
+ path: "modifiedFields.tcAppliedDiscounts.merchantDiscount.percentage"
2729
+ }
2730
+ ]
2731
+ },
2732
+ {
2733
+ transformFn: import_page_url_v23.transformRESTPageURLV2ToSDKPageURLV2,
2734
+ paths: [
2735
+ { path: "entity.lineItems.attributes.url" },
2736
+ { path: "modifiedFields.lineItems.attributes.url" }
2737
+ ]
2738
+ },
2739
+ {
2740
+ transformFn: import_address3.transformRESTAddressToSDKAddress,
2741
+ paths: [
2742
+ { path: "entity.deliveryInfo.address" },
2743
+ { path: "entity.paymentInfo.billingAddress" },
2744
+ { path: "modifiedFields.deliveryInfo.address" },
2745
+ { path: "modifiedFields.paymentInfo.billingAddress" }
2746
+ ]
2747
+ }
2748
+ ])
2749
+ )
2750
+ )();
2538
2751
 
2539
2752
  // src/ecom-v2-cart-current-cart-v-2.context.ts
2540
2753
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
2754
+ var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
2541
2755
  var createCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createCurrentCart3);
2542
2756
  var getCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCurrentCart3);
2543
2757
  var updateCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateCurrentCart3);
@@ -2556,6 +2770,10 @@ var addGiftCardToCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createR
2556
2770
  var removeGiftCardFromCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeGiftCardFromCurrentCart3);
2557
2771
  var updateFormSubmissionsInCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateFormSubmissionsInCurrentCart3);
2558
2772
  var getUpsellOptionsForCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getUpsellOptionsForCurrentCart3);
2773
+ var onCartCalculated2 = (0, import_event_definition_modules.createEventModule)(onCartCalculated);
2774
+ var onCartCreated2 = (0, import_event_definition_modules.createEventModule)(onCartCreated);
2775
+ var onCartDeleted2 = (0, import_event_definition_modules.createEventModule)(onCartDeleted);
2776
+ var onCartUpdated2 = (0, import_event_definition_modules.createEventModule)(onCartUpdated);
2559
2777
  // Annotate the CommonJS export names for ESM import in node:
2560
2778
  0 && (module.exports = {
2561
2779
  AdditionalFeeSource,
@@ -2609,6 +2827,10 @@ var getUpsellOptionsForCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.c
2609
2827
  estimateCurrentCart,
2610
2828
  getCurrentCart,
2611
2829
  getUpsellOptionsForCurrentCart,
2830
+ onCartCalculated,
2831
+ onCartCreated,
2832
+ onCartDeleted,
2833
+ onCartUpdated,
2612
2834
  refreshCurrentCart,
2613
2835
  removeCouponFromCurrentCart,
2614
2836
  removeDeliveryMethodFromCurrentCart,