@wix/auto_sdk_ecom_current-cart-v-2 1.0.220 → 1.0.222
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 +1 -1
- package/build/cjs/index.js +68 -23
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1723 -1629
- package/build/cjs/index.typings.js +38 -17
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1727 -1633
- package/build/cjs/meta.js +30 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +68 -23
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1723 -1629
- package/build/es/index.typings.mjs +38 -17
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1727 -1633
- package/build/es/meta.mjs +30 -15
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +1934 -1826
- package/build/internal/cjs/meta.d.ts +1952 -1844
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +1934 -1826
- package/build/internal/es/meta.d.mts +1952 -1844
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
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, CartCompletedEnvelope, 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, CartCompleted, 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, CyclePriceOverride, 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, GiftCardPaymentNotSupportedOnDemoCartErrorData, 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, MembershipSummaryMembershipIdentifierOneOf, MerchantDiscount, MessageEnvelope, MinLineItemQuantityNotReachedDetails, MinSubtotalNotReachedDetails, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlaceOrderRequest, PlaceOrderResponse, PlainTextValue, PlatformFee, 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, V1PlatformFeeChargeType, V1PlatformFeeChargeTypeWithLiterals, 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';
|
|
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, BundleInfo, BundledItem, BundledItemAttributes, BundledItemSource, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartCompleted, 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, CyclePriceOverride, 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, GiftCardPaymentNotSupportedOnDemoCartErrorData, 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, MembershipSummaryMembershipIdentifierOneOf, MerchantDiscount, MessageEnvelope, MinLineItemQuantityNotReachedDetails, MinSubtotalNotReachedDetails, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlaceOrderRequest, PlaceOrderResponse, PlainTextValue, PlatformFee, 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, V1PlatformFeeChargeType, V1PlatformFeeChargeTypeWithLiterals, 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 {
|
package/build/cjs/index.js
CHANGED
|
@@ -124,6 +124,9 @@ var TRANSFORM_PATHS_0 = [
|
|
|
124
124
|
},
|
|
125
125
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
126
126
|
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
127
|
+
{
|
|
128
|
+
path: "cart.lineItems.bundleInfo.items.attributes.image.urlExpirationDate"
|
|
129
|
+
},
|
|
127
130
|
{ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate" },
|
|
128
131
|
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
129
132
|
{ path: "customItems.attributes.serviceProperties.scheduledDate" },
|
|
@@ -137,6 +140,9 @@ var TRANSFORM_PATHS_1 = [
|
|
|
137
140
|
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
138
141
|
},
|
|
139
142
|
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
143
|
+
{
|
|
144
|
+
path: "cart.lineItems.bundleInfo.items.attributes.physicalProperties.weight"
|
|
145
|
+
},
|
|
140
146
|
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
141
147
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
142
148
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
@@ -156,13 +162,19 @@ var TRANSFORM_PATHS_2 = [
|
|
|
156
162
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
157
163
|
},
|
|
158
164
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
159
|
-
{ path: "cart.lineItems.attributes.serviceProperties.endDate" }
|
|
165
|
+
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
166
|
+
{
|
|
167
|
+
path: "cart.lineItems.bundleInfo.items.attributes.image.urlExpirationDate"
|
|
168
|
+
}
|
|
160
169
|
];
|
|
161
170
|
var TRANSFORM_PATHS_3 = [
|
|
162
171
|
{
|
|
163
172
|
path: "cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
164
173
|
},
|
|
165
174
|
{ path: "cart.lineItems.attributes.physicalProperties.weight" },
|
|
175
|
+
{
|
|
176
|
+
path: "cart.lineItems.bundleInfo.items.attributes.physicalProperties.weight"
|
|
177
|
+
},
|
|
166
178
|
{ path: "cart.deliveryInfo.address.geocode.latitude" },
|
|
167
179
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
168
180
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
@@ -182,6 +194,9 @@ var TRANSFORM_PATHS_5 = [
|
|
|
182
194
|
},
|
|
183
195
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
184
196
|
{ path: "cart.lineItems.attributes.serviceProperties.endDate" },
|
|
197
|
+
{
|
|
198
|
+
path: "cart.lineItems.bundleInfo.items.attributes.image.urlExpirationDate"
|
|
199
|
+
},
|
|
185
200
|
{
|
|
186
201
|
path: "summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate"
|
|
187
202
|
}
|
|
@@ -873,11 +888,13 @@ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transfor
|
|
|
873
888
|
var TRANSFORM_PATHS_02 = [
|
|
874
889
|
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
875
890
|
{ path: "cart.lineItems.attributes.image" },
|
|
891
|
+
{ path: "cart.lineItems.bundleInfo.items.attributes.image" },
|
|
876
892
|
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
877
893
|
{ path: "customItems.attributes.image" }
|
|
878
894
|
];
|
|
879
895
|
var TRANSFORM_PATHS_12 = [
|
|
880
896
|
{ path: "cart.lineItems.attributes.url" },
|
|
897
|
+
{ path: "cart.lineItems.bundleInfo.items.attributes.url" },
|
|
881
898
|
{ path: "customItems.attributes.url" }
|
|
882
899
|
];
|
|
883
900
|
var TRANSFORM_PATHS_22 = [
|
|
@@ -886,9 +903,13 @@ var TRANSFORM_PATHS_22 = [
|
|
|
886
903
|
];
|
|
887
904
|
var TRANSFORM_PATHS_32 = [
|
|
888
905
|
{ path: "cart.lineItems.source.catalogOverrideFields.image" },
|
|
889
|
-
{ path: "cart.lineItems.attributes.image" }
|
|
906
|
+
{ path: "cart.lineItems.attributes.image" },
|
|
907
|
+
{ path: "cart.lineItems.bundleInfo.items.attributes.image" }
|
|
908
|
+
];
|
|
909
|
+
var TRANSFORM_PATHS_42 = [
|
|
910
|
+
{ path: "cart.lineItems.attributes.url" },
|
|
911
|
+
{ path: "cart.lineItems.bundleInfo.items.attributes.url" }
|
|
890
912
|
];
|
|
891
|
-
var TRANSFORM_PATHS_42 = [{ path: "cart.lineItems.attributes.url" }];
|
|
892
913
|
var TRANSFORM_PATHS_52 = [
|
|
893
914
|
{ path: "catalogItems.catalogOverrideFields.image" },
|
|
894
915
|
{ path: "customItems.attributes.image" }
|
|
@@ -1147,18 +1168,26 @@ var V1PlatformFeeChargeType = /* @__PURE__ */ ((V1PlatformFeeChargeType2) => {
|
|
|
1147
1168
|
V1PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
|
|
1148
1169
|
return V1PlatformFeeChargeType2;
|
|
1149
1170
|
})(V1PlatformFeeChargeType || {});
|
|
1150
|
-
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
1151
|
-
BenefitType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1152
|
-
BenefitType2["FIXED_PRICE"] = "FIXED_PRICE";
|
|
1153
|
-
BenefitType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
|
|
1154
|
-
return BenefitType2;
|
|
1155
|
-
})(BenefitType || {});
|
|
1156
1171
|
var ValidationsConfig = /* @__PURE__ */ ((ValidationsConfig2) => {
|
|
1157
1172
|
ValidationsConfig2["SKIP_VALIDATIONS"] = "SKIP_VALIDATIONS";
|
|
1158
1173
|
ValidationsConfig2["PRE_CHECKOUT_VALIDATIONS"] = "PRE_CHECKOUT_VALIDATIONS";
|
|
1159
1174
|
ValidationsConfig2["CHECKOUT_VALIDATIONS"] = "CHECKOUT_VALIDATIONS";
|
|
1160
1175
|
return ValidationsConfig2;
|
|
1161
1176
|
})(ValidationsConfig || {});
|
|
1177
|
+
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
1178
|
+
BenefitType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1179
|
+
BenefitType2["FIXED_PRICE"] = "FIXED_PRICE";
|
|
1180
|
+
BenefitType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
|
|
1181
|
+
return BenefitType2;
|
|
1182
|
+
})(BenefitType || {});
|
|
1183
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1184
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1185
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1186
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1187
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1188
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1189
|
+
return WebhookIdentityType2;
|
|
1190
|
+
})(WebhookIdentityType || {});
|
|
1162
1191
|
var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
1163
1192
|
JurisdictionType2["UNDEFINED"] = "UNDEFINED";
|
|
1164
1193
|
JurisdictionType2["COUNTRY"] = "COUNTRY";
|
|
@@ -1224,14 +1253,6 @@ var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
|
|
|
1224
1253
|
PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
|
|
1225
1254
|
return PlatformFeeChargeType2;
|
|
1226
1255
|
})(PlatformFeeChargeType || {});
|
|
1227
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1228
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1229
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1230
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1231
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1232
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1233
|
-
return WebhookIdentityType2;
|
|
1234
|
-
})(WebhookIdentityType || {});
|
|
1235
1256
|
async function createCurrentCart2(options) {
|
|
1236
1257
|
const { httpClient, sideEffects } = arguments[1];
|
|
1237
1258
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -1993,16 +2014,23 @@ var TRANSFORM_PATHS_13 = [
|
|
|
1993
2014
|
];
|
|
1994
2015
|
var TRANSFORM_PATHS_23 = [
|
|
1995
2016
|
{ path: "data.cart.lineItems.source.catalogOverrideFields.image" },
|
|
1996
|
-
{ path: "data.cart.lineItems.attributes.image" }
|
|
2017
|
+
{ path: "data.cart.lineItems.attributes.image" },
|
|
2018
|
+
{ path: "data.cart.lineItems.bundleInfo.items.attributes.image" }
|
|
1997
2019
|
];
|
|
1998
2020
|
var TRANSFORM_PATHS_33 = [
|
|
1999
2021
|
{
|
|
2000
2022
|
path: "data.cart.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2001
2023
|
},
|
|
2002
2024
|
{ path: "data.cart.lineItems.attributes.physicalProperties.weight" },
|
|
2025
|
+
{
|
|
2026
|
+
path: "data.cart.lineItems.bundleInfo.items.attributes.physicalProperties.weight"
|
|
2027
|
+
},
|
|
2003
2028
|
{ path: "data.cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2004
2029
|
];
|
|
2005
|
-
var TRANSFORM_PATHS_43 = [
|
|
2030
|
+
var TRANSFORM_PATHS_43 = [
|
|
2031
|
+
{ path: "data.cart.lineItems.attributes.url" },
|
|
2032
|
+
{ path: "data.cart.lineItems.bundleInfo.items.attributes.url" }
|
|
2033
|
+
];
|
|
2006
2034
|
var TRANSFORM_PATHS_53 = [
|
|
2007
2035
|
{ path: "data.cart.deliveryInfo.address" },
|
|
2008
2036
|
{ path: "data.cart.paymentInfo.billingAddress" }
|
|
@@ -2019,16 +2047,23 @@ var TRANSFORM_PATHS_63 = [
|
|
|
2019
2047
|
];
|
|
2020
2048
|
var TRANSFORM_PATHS_72 = [
|
|
2021
2049
|
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2022
|
-
{ path: "entity.lineItems.attributes.image" }
|
|
2050
|
+
{ path: "entity.lineItems.attributes.image" },
|
|
2051
|
+
{ path: "entity.lineItems.bundleInfo.items.attributes.image" }
|
|
2023
2052
|
];
|
|
2024
2053
|
var TRANSFORM_PATHS_8 = [
|
|
2025
2054
|
{
|
|
2026
2055
|
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2027
2056
|
},
|
|
2028
2057
|
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2058
|
+
{
|
|
2059
|
+
path: "entity.lineItems.bundleInfo.items.attributes.physicalProperties.weight"
|
|
2060
|
+
},
|
|
2029
2061
|
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2030
2062
|
];
|
|
2031
|
-
var TRANSFORM_PATHS_9 = [
|
|
2063
|
+
var TRANSFORM_PATHS_9 = [
|
|
2064
|
+
{ path: "entity.lineItems.attributes.url" },
|
|
2065
|
+
{ path: "entity.lineItems.bundleInfo.items.attributes.url" }
|
|
2066
|
+
];
|
|
2032
2067
|
var TRANSFORM_PATHS_10 = [
|
|
2033
2068
|
{ path: "entity.deliveryInfo.address" },
|
|
2034
2069
|
{ path: "entity.paymentInfo.billingAddress" }
|
|
@@ -2055,24 +2090,34 @@ var TRANSFORM_PATHS_11 = [
|
|
|
2055
2090
|
var TRANSFORM_PATHS_122 = [
|
|
2056
2091
|
{ path: "entity.lineItems.source.catalogOverrideFields.image" },
|
|
2057
2092
|
{ path: "entity.lineItems.attributes.image" },
|
|
2093
|
+
{ path: "entity.lineItems.bundleInfo.items.attributes.image" },
|
|
2058
2094
|
{ path: "modifiedFields.lineItems.source.catalogOverrideFields.image" },
|
|
2059
|
-
{ path: "modifiedFields.lineItems.attributes.image" }
|
|
2095
|
+
{ path: "modifiedFields.lineItems.attributes.image" },
|
|
2096
|
+
{ path: "modifiedFields.lineItems.bundleInfo.items.attributes.image" }
|
|
2060
2097
|
];
|
|
2061
2098
|
var TRANSFORM_PATHS_132 = [
|
|
2062
2099
|
{
|
|
2063
2100
|
path: "entity.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2064
2101
|
},
|
|
2065
2102
|
{ path: "entity.lineItems.attributes.physicalProperties.weight" },
|
|
2103
|
+
{
|
|
2104
|
+
path: "entity.lineItems.bundleInfo.items.attributes.physicalProperties.weight"
|
|
2105
|
+
},
|
|
2066
2106
|
{ path: "entity.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
2067
2107
|
{
|
|
2068
2108
|
path: "modifiedFields.lineItems.source.catalogOverrideFields.physicalProperties.weight"
|
|
2069
2109
|
},
|
|
2070
2110
|
{ path: "modifiedFields.lineItems.attributes.physicalProperties.weight" },
|
|
2111
|
+
{
|
|
2112
|
+
path: "modifiedFields.lineItems.bundleInfo.items.attributes.physicalProperties.weight"
|
|
2113
|
+
},
|
|
2071
2114
|
{ path: "modifiedFields.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
2072
2115
|
];
|
|
2073
2116
|
var TRANSFORM_PATHS_14 = [
|
|
2074
2117
|
{ path: "entity.lineItems.attributes.url" },
|
|
2075
|
-
{ path: "
|
|
2118
|
+
{ path: "entity.lineItems.bundleInfo.items.attributes.url" },
|
|
2119
|
+
{ path: "modifiedFields.lineItems.attributes.url" },
|
|
2120
|
+
{ path: "modifiedFields.lineItems.bundleInfo.items.attributes.url" }
|
|
2076
2121
|
];
|
|
2077
2122
|
var TRANSFORM_PATHS_15 = [
|
|
2078
2123
|
{ path: "entity.deliveryInfo.address" },
|