@wix/auto_sdk_ecom_current-cart-v-2 1.0.151 → 1.0.153
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 +69 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +128 -7
- package/build/cjs/index.typings.js +62 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +130 -8
- package/build/cjs/meta.js +57 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +4 -0
- package/build/cjs/schemas.js +6 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +66 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +128 -7
- package/build/es/index.typings.mjs +59 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +130 -8
- package/build/es/meta.mjs +54 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +4 -0
- package/build/es/schemas.mjs +6 -2
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +13 -3
- package/build/internal/cjs/index.js +69 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +154 -7
- package/build/internal/cjs/index.typings.js +62 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +130 -8
- package/build/internal/cjs/meta.js +57 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +4 -0
- package/build/internal/cjs/schemas.js +6 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +13 -3
- package/build/internal/es/index.mjs +66 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +154 -7
- package/build/internal/es/index.typings.mjs +59 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +130 -8
- package/build/internal/es/meta.mjs +54 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +4 -0
- package/build/internal/es/schemas.mjs +6 -2
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } 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 } 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, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartEstimationIndicators, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, CheckoutStage, CheckoutStageWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, 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, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, FutureMembership, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCurrentCartRequest, 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, JurisdictionType, JurisdictionTypeWithLiterals, LegacyFields, LineItem, LineItemAdded, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, MaxItemModifiersExceededErrorData, MaxLineItemsExceededErrorData, MembersOnlyItemErrorData, Membership, 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, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QuantityUpdate, RateType, RateTypeWithLiterals, RawHttpResponse, 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, Stage, StageStagesOneOf, 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, V1AdditionalFee, V1PriceSummary, V2AdditionalFee, V2CalculationErrors, V2CalculationErrorsShippingCalculationErrorOneOf, V2CarrierError, V2CarrierErrors, V2Coupon, V2GiftCard, V2LineItem, V2LineItemDiscount, V2Membership, V2MembershipIdentifierOneOf, V2PriceSummary, V2SelectedMembership, V2TaxSummary, V2Violation, V2ViolationDataOneOf, 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, 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, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateTotalsResponse, CalculatedItemModifier, CalculatedLineItem, CalculatedPlatformFee, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CalculationOverrides, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartAlreadyOrderedErrorData, CartEstimationIndicators, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, CheckoutStage, CheckoutStageWithLiterals, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, 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, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, FutureMembership, 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, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, MaxItemModifiersExceededErrorData, MaxLineItemsExceededErrorData, MembersOnlyItemErrorData, Membership, 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, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QuantityUpdate, QuotaType, QuotaTypeWithLiterals, RateType, RateTypeWithLiterals, RawHttpResponse, 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, Stage, StageStagesOneOf, 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, UpsellOption, V1AdditionalFee, V1PriceSummary, V2AdditionalFee, V2CalculationErrors, V2CalculationErrorsShippingCalculationErrorOneOf, V2CarrierError, V2CarrierErrors, V2Coupon, V2GiftCard, V2LineItem, V2LineItemDiscount, V2Membership, V2MembershipIdentifierOneOf, V2PriceSummary, V2SelectedMembership, V2TaxSummary, V2Violation, V2ViolationDataOneOf, 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
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
ItemStatus: () => ItemStatus,
|
|
39
39
|
ItemTypePreset: () => ItemTypePreset,
|
|
40
40
|
JurisdictionType: () => JurisdictionType,
|
|
41
|
+
LimitedQuotaType: () => LimitedQuotaType,
|
|
41
42
|
ManualCalculationReason: () => ManualCalculationReason,
|
|
42
43
|
NameInLineItem: () => NameInLineItem,
|
|
43
44
|
NameInOther: () => NameInOther,
|
|
@@ -45,6 +46,7 @@ __export(index_exports, {
|
|
|
45
46
|
PickupMethod: () => PickupMethod,
|
|
46
47
|
PlatformFeeChargeType: () => PlatformFeeChargeType,
|
|
47
48
|
ProductPeriodAlignment: () => ProductPeriodAlignment,
|
|
49
|
+
QuotaType: () => QuotaType,
|
|
48
50
|
RateType: () => RateType,
|
|
49
51
|
RuleType: () => RuleType,
|
|
50
52
|
Severity: () => Severity,
|
|
@@ -67,6 +69,7 @@ __export(index_exports, {
|
|
|
67
69
|
deleteCurrentCart: () => deleteCurrentCart4,
|
|
68
70
|
estimateCurrentCart: () => estimateCurrentCart4,
|
|
69
71
|
getCurrentCart: () => getCurrentCart4,
|
|
72
|
+
getUpsellOptionsForCurrentCart: () => getUpsellOptionsForCurrentCart4,
|
|
70
73
|
refreshCurrentCart: () => refreshCurrentCart4,
|
|
71
74
|
removeCouponFromCurrentCart: () => removeCouponFromCurrentCart4,
|
|
72
75
|
removeDeliveryMethodFromCurrentCart: () => removeDeliveryMethodFromCurrentCart4,
|
|
@@ -1245,6 +1248,27 @@ function updateFormSubmissionsInCurrentCart(payload) {
|
|
|
1245
1248
|
}
|
|
1246
1249
|
return __updateFormSubmissionsInCurrentCart;
|
|
1247
1250
|
}
|
|
1251
|
+
function getUpsellOptionsForCurrentCart(payload) {
|
|
1252
|
+
function __getUpsellOptionsForCurrentCart({ host }) {
|
|
1253
|
+
const metadata = {
|
|
1254
|
+
entityFqdn: "wix.ecom.v2.cart",
|
|
1255
|
+
method: "GET",
|
|
1256
|
+
methodFqn: "wix.ecom.cart.v2.CurrentCartService.GetUpsellOptionsForCurrentCart",
|
|
1257
|
+
packageName: PACKAGE_NAME,
|
|
1258
|
+
migrationOptions: {
|
|
1259
|
+
optInTransformResponse: true
|
|
1260
|
+
},
|
|
1261
|
+
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
1262
|
+
protoPath: "/v2/carts/current/upsell-options",
|
|
1263
|
+
data: payload,
|
|
1264
|
+
host
|
|
1265
|
+
}),
|
|
1266
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
1267
|
+
};
|
|
1268
|
+
return metadata;
|
|
1269
|
+
}
|
|
1270
|
+
return __getUpsellOptionsForCurrentCart;
|
|
1271
|
+
}
|
|
1248
1272
|
|
|
1249
1273
|
// src/ecom-v2-cart-current-cart-v-2.universal.ts
|
|
1250
1274
|
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
@@ -1454,6 +1478,8 @@ var ViolationCode = /* @__PURE__ */ ((ViolationCode2) => {
|
|
|
1454
1478
|
ViolationCode2["CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD"] = "CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD";
|
|
1455
1479
|
ViolationCode2["SUBTOTAL_BELOW_ORDER_MINIMUM"] = "SUBTOTAL_BELOW_ORDER_MINIMUM";
|
|
1456
1480
|
ViolationCode2["INVALID_MEMBERSHIP_STATUS"] = "INVALID_MEMBERSHIP_STATUS";
|
|
1481
|
+
ViolationCode2["INVALID_POSTAL_CODE"] = "INVALID_POSTAL_CODE";
|
|
1482
|
+
ViolationCode2["INVALID_SUBDIVISION"] = "INVALID_SUBDIVISION";
|
|
1457
1483
|
return ViolationCode2;
|
|
1458
1484
|
})(ViolationCode || {});
|
|
1459
1485
|
var ViolationSeverity = /* @__PURE__ */ ((ViolationSeverity2) => {
|
|
@@ -1547,6 +1573,16 @@ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
|
|
|
1547
1573
|
BalanceType2["CREDIT"] = "CREDIT";
|
|
1548
1574
|
return BalanceType2;
|
|
1549
1575
|
})(BalanceType || {});
|
|
1576
|
+
var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
|
|
1577
|
+
QuotaType2["LIMITED"] = "LIMITED";
|
|
1578
|
+
QuotaType2["UNLIMITED"] = "UNLIMITED";
|
|
1579
|
+
return QuotaType2;
|
|
1580
|
+
})(QuotaType || {});
|
|
1581
|
+
var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
|
|
1582
|
+
LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
|
|
1583
|
+
LimitedQuotaType2["CREDIT"] = "CREDIT";
|
|
1584
|
+
return LimitedQuotaType2;
|
|
1585
|
+
})(LimitedQuotaType || {});
|
|
1550
1586
|
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
1551
1587
|
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
1552
1588
|
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
@@ -2397,6 +2433,29 @@ async function updateFormSubmissionsInCurrentCart2(options) {
|
|
|
2397
2433
|
throw transformedError;
|
|
2398
2434
|
}
|
|
2399
2435
|
}
|
|
2436
|
+
async function getUpsellOptionsForCurrentCart2() {
|
|
2437
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
2438
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
2439
|
+
const reqOpts = getUpsellOptionsForCurrentCart(payload);
|
|
2440
|
+
sideEffects?.onSiteCall?.();
|
|
2441
|
+
try {
|
|
2442
|
+
const result = await httpClient.request(reqOpts);
|
|
2443
|
+
sideEffects?.onSuccess?.(result);
|
|
2444
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2445
|
+
} catch (err) {
|
|
2446
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2447
|
+
err,
|
|
2448
|
+
{
|
|
2449
|
+
spreadPathsToArguments: {},
|
|
2450
|
+
explicitPathsToArguments: {},
|
|
2451
|
+
singleArgumentUnchanged: false
|
|
2452
|
+
},
|
|
2453
|
+
[]
|
|
2454
|
+
);
|
|
2455
|
+
sideEffects?.onError?.(err);
|
|
2456
|
+
throw transformedError;
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2400
2459
|
|
|
2401
2460
|
// src/ecom-v2-cart-current-cart-v-2.public.ts
|
|
2402
2461
|
function createCurrentCart3(httpClient) {
|
|
@@ -2514,6 +2573,12 @@ function updateFormSubmissionsInCurrentCart3(httpClient) {
|
|
|
2514
2573
|
{ httpClient }
|
|
2515
2574
|
);
|
|
2516
2575
|
}
|
|
2576
|
+
function getUpsellOptionsForCurrentCart3(httpClient) {
|
|
2577
|
+
return () => getUpsellOptionsForCurrentCart2(
|
|
2578
|
+
// @ts-ignore
|
|
2579
|
+
{ httpClient }
|
|
2580
|
+
);
|
|
2581
|
+
}
|
|
2517
2582
|
|
|
2518
2583
|
// src/ecom-v2-cart-current-cart-v-2.context.ts
|
|
2519
2584
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
@@ -2534,6 +2599,7 @@ var removeDeliveryMethodFromCurrentCart4 = /* @__PURE__ */ (0, import_rest_modul
|
|
|
2534
2599
|
var addGiftCardToCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addGiftCardToCurrentCart3);
|
|
2535
2600
|
var removeGiftCardFromCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeGiftCardFromCurrentCart3);
|
|
2536
2601
|
var updateFormSubmissionsInCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateFormSubmissionsInCurrentCart3);
|
|
2602
|
+
var getUpsellOptionsForCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getUpsellOptionsForCurrentCart3);
|
|
2537
2603
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2538
2604
|
0 && (module.exports = {
|
|
2539
2605
|
AdditionalFeeSource,
|
|
@@ -2554,6 +2620,7 @@ var updateFormSubmissionsInCurrentCart4 = /* @__PURE__ */ (0, import_rest_module
|
|
|
2554
2620
|
ItemStatus,
|
|
2555
2621
|
ItemTypePreset,
|
|
2556
2622
|
JurisdictionType,
|
|
2623
|
+
LimitedQuotaType,
|
|
2557
2624
|
ManualCalculationReason,
|
|
2558
2625
|
NameInLineItem,
|
|
2559
2626
|
NameInOther,
|
|
@@ -2561,6 +2628,7 @@ var updateFormSubmissionsInCurrentCart4 = /* @__PURE__ */ (0, import_rest_module
|
|
|
2561
2628
|
PickupMethod,
|
|
2562
2629
|
PlatformFeeChargeType,
|
|
2563
2630
|
ProductPeriodAlignment,
|
|
2631
|
+
QuotaType,
|
|
2564
2632
|
RateType,
|
|
2565
2633
|
RuleType,
|
|
2566
2634
|
Severity,
|
|
@@ -2583,6 +2651,7 @@ var updateFormSubmissionsInCurrentCart4 = /* @__PURE__ */ (0, import_rest_module
|
|
|
2583
2651
|
deleteCurrentCart,
|
|
2584
2652
|
estimateCurrentCart,
|
|
2585
2653
|
getCurrentCart,
|
|
2654
|
+
getUpsellOptionsForCurrentCart,
|
|
2586
2655
|
refreshCurrentCart,
|
|
2587
2656
|
removeCouponFromCurrentCart,
|
|
2588
2657
|
removeDeliveryMethodFromCurrentCart,
|