@wix/auto_sdk_ecom_cart-v-2 1.0.159 → 1.0.161
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 +14 -28
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1377 -1440
- package/build/cjs/index.typings.js +14 -28
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1381 -1444
- package/build/cjs/meta.js +14 -28
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +14 -26
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1377 -1440
- package/build/es/index.typings.mjs +14 -26
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1381 -1444
- package/build/es/meta.mjs +14 -26
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +14 -28
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1471 -1541
- package/build/internal/cjs/index.typings.js +14 -28
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1381 -1444
- package/build/internal/cjs/meta.js +14 -28
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +14 -26
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +1471 -1541
- package/build/internal/es/index.typings.mjs +14 -26
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1381 -1444
- package/build/internal/es/meta.mjs +14 -26
- package/build/internal/es/meta.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 { CreateCartOptions, Cart, CreateCartApplicationErrors, UpdateCart, UpdateCartApplicationErrors, RefreshCartResponse, RefreshCartApplicationErrors, EstimateCartOptions, EstimateCartResponse, EstimateCartApplicationErrors, CalculateCartOptions, CalculateCartResponse, CalculateCartApplicationErrors, GetCheckoutUrlOptions, GetCheckoutURLResponse, GetCheckoutUrlApplicationErrors, PlaceOrderOptions, PlaceOrderResponse, PlaceOrderApplicationErrors, AddLineItemsOptions, AddLineItemsResponse, AddLineItemsApplicationErrors, RemoveLineItemsResponse, RemoveLineItemsApplicationErrors, UpdateLineItemsOptions, UpdateLineItemsResponse, UpdateLineItemsApplicationErrors, CouponInput, AddCouponResponse, AddCouponApplicationErrors, RemoveCouponResponse, RemoveCouponApplicationErrors, DeliveryMethodInput, SetDeliveryMethodResponse, SetDeliveryMethodApplicationErrors, RemoveDeliveryMethodResponse, RemoveDeliveryMethodApplicationErrors, GiftCardInput, AddGiftCardResponse, AddGiftCardApplicationErrors, RemoveGiftCardResponse, RemoveGiftCardApplicationErrors, MarkCartAsCompletedOptions, MarkCartAsCompletedResponse, RawHttpResponse, UpdateFormSubmissionsOptions, UpdateFormSubmissionsResponse } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, ActionEvent, AddCouponRequest, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals,
|
|
3
|
+
export { AccountInfo, ActionEvent, AddCouponRequest, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, AdditionalFeeTax, Address, AddressLocation, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BenefitType, BenefitTypeWithLiterals, BillingSettings, BusinessInfo, CalculateCartForV1Request, CalculateCartForV1Response, CalculateCartRequest, CalculateCurrentCartRequest, CalculateCurrentCartResponse, 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, Color, ConvertedMoney, Coupon, CouponAdded, CouponAlreadyExistsErrorData, CouponNotFoundInCartErrorData, CouponRemoved, CreateCartRequest, CreateCartResponse, CreateCurrentCartRequest, CreateCurrentCartResponse, 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, EstimateCurrentCartRequest, EstimateCurrentCartResponse, ExistingMembership, ExistingMembershipInput, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FixedQuantityItemErrorData, FormIdentifier, FormInfo, FormSubmission, FreeTrialPeriod, FullAddressContactDetails, FutureMembership, FutureMembershipInput, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCurrentCartRequest, GetCurrentCartResponse, 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, LineItem, LineItemAdded, LineItemDiscount, LineItemIdentifier, LineItemIdentifierIdOneOf, LineItemNotFoundInCartErrorData, LineItemPriceConflictErrorData, LineItemPricesData, LineItemSummary, LineItemTax, LineItemUpdate, LineItemsOutOfStockErrorData, ManualCalculationReason, ManualCalculationReasonWithLiterals, MarkCartAsCompletedRequest, 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, PlainTextValue, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, PlatformFeeSummary, Policy, Price, PriceDescription, PriceDetails, PriceSummary, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QuantityUpdate, RateType, RateTypeWithLiterals, RedirectUrls, RefreshCartRequest, RefreshCurrentCartRequest, RefreshCurrentCartResponse, Region, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse, RemoveCouponRequest, RemoveDeliveryMethodFromCurrentCartRequest, RemoveDeliveryMethodFromCurrentCartResponse, RemoveDeliveryMethodRequest, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsRequest, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMembershipUpdate, SelectedMemberships, ServiceProperties, SetDeliveryMethodForCurrentCartRequest, SetDeliveryMethodForCurrentCartResponse, SetDeliveryMethodRequest, 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, UpdateCurrentCartResponse, UpdateFormSubmissionsInCurrentCartRequest, UpdateFormSubmissionsInCurrentCartResponse, UpdateFormSubmissionsRequest, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsRequest, UpsellBenefitMetadata, 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 createCart$1(httpClient: HttpClient): CreateCartSignature;
|
|
6
6
|
interface CreateCartSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -38,7 +38,6 @@ __export(index_exports, {
|
|
|
38
38
|
ItemStatus: () => ItemStatus,
|
|
39
39
|
ItemTypePreset: () => ItemTypePreset,
|
|
40
40
|
JurisdictionType: () => JurisdictionType,
|
|
41
|
-
LimitedQuotaType: () => LimitedQuotaType,
|
|
42
41
|
ManualCalculationReason: () => ManualCalculationReason,
|
|
43
42
|
NameInLineItem: () => NameInLineItem,
|
|
44
43
|
NameInOther: () => NameInOther,
|
|
@@ -46,7 +45,6 @@ __export(index_exports, {
|
|
|
46
45
|
PickupMethod: () => PickupMethod,
|
|
47
46
|
PlatformFeeChargeType: () => PlatformFeeChargeType,
|
|
48
47
|
ProductPeriodAlignment: () => ProductPeriodAlignment,
|
|
49
|
-
QuotaType: () => QuotaType,
|
|
50
48
|
RateType: () => RateType,
|
|
51
49
|
RuleType: () => RuleType,
|
|
52
50
|
Severity: () => Severity,
|
|
@@ -1644,18 +1642,26 @@ var InvalidMembershipReason = /* @__PURE__ */ ((InvalidMembershipReason2) => {
|
|
|
1644
1642
|
InvalidMembershipReason2["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
|
|
1645
1643
|
return InvalidMembershipReason2;
|
|
1646
1644
|
})(InvalidMembershipReason || {});
|
|
1647
|
-
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
1648
|
-
BenefitType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1649
|
-
BenefitType2["FIXED_PRICE"] = "FIXED_PRICE";
|
|
1650
|
-
BenefitType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
|
|
1651
|
-
return BenefitType2;
|
|
1652
|
-
})(BenefitType || {});
|
|
1653
1645
|
var ValidationsConfig = /* @__PURE__ */ ((ValidationsConfig2) => {
|
|
1654
1646
|
ValidationsConfig2["SKIP_VALIDATIONS"] = "SKIP_VALIDATIONS";
|
|
1655
1647
|
ValidationsConfig2["PRE_CHECKOUT_VALIDATIONS"] = "PRE_CHECKOUT_VALIDATIONS";
|
|
1656
1648
|
ValidationsConfig2["CHECKOUT_VALIDATIONS"] = "CHECKOUT_VALIDATIONS";
|
|
1657
1649
|
return ValidationsConfig2;
|
|
1658
1650
|
})(ValidationsConfig || {});
|
|
1651
|
+
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
1652
|
+
BenefitType2["PERCENTAGE"] = "PERCENTAGE";
|
|
1653
|
+
BenefitType2["FIXED_PRICE"] = "FIXED_PRICE";
|
|
1654
|
+
BenefitType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
|
|
1655
|
+
return BenefitType2;
|
|
1656
|
+
})(BenefitType || {});
|
|
1657
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1658
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1659
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1660
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1661
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1662
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1663
|
+
return WebhookIdentityType2;
|
|
1664
|
+
})(WebhookIdentityType || {});
|
|
1659
1665
|
var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
1660
1666
|
JurisdictionType2["UNDEFINED"] = "UNDEFINED";
|
|
1661
1667
|
JurisdictionType2["COUNTRY"] = "COUNTRY";
|
|
@@ -1697,16 +1703,6 @@ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
|
|
|
1697
1703
|
BalanceType2["CREDIT"] = "CREDIT";
|
|
1698
1704
|
return BalanceType2;
|
|
1699
1705
|
})(BalanceType || {});
|
|
1700
|
-
var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
|
|
1701
|
-
QuotaType2["LIMITED"] = "LIMITED";
|
|
1702
|
-
QuotaType2["UNLIMITED"] = "UNLIMITED";
|
|
1703
|
-
return QuotaType2;
|
|
1704
|
-
})(QuotaType || {});
|
|
1705
|
-
var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
|
|
1706
|
-
LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
|
|
1707
|
-
LimitedQuotaType2["CREDIT"] = "CREDIT";
|
|
1708
|
-
return LimitedQuotaType2;
|
|
1709
|
-
})(LimitedQuotaType || {});
|
|
1710
1706
|
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
1711
1707
|
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
1712
1708
|
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
@@ -1721,14 +1717,6 @@ var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
|
|
|
1721
1717
|
PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
|
|
1722
1718
|
return PlatformFeeChargeType2;
|
|
1723
1719
|
})(PlatformFeeChargeType || {});
|
|
1724
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1725
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1726
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1727
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1728
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1729
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1730
|
-
return WebhookIdentityType2;
|
|
1731
|
-
})(WebhookIdentityType || {});
|
|
1732
1720
|
async function createCart2(options) {
|
|
1733
1721
|
const { httpClient, sideEffects } = arguments[1];
|
|
1734
1722
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -2970,7 +2958,6 @@ var updateFormSubmissions4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
|
|
|
2970
2958
|
ItemStatus,
|
|
2971
2959
|
ItemTypePreset,
|
|
2972
2960
|
JurisdictionType,
|
|
2973
|
-
LimitedQuotaType,
|
|
2974
2961
|
ManualCalculationReason,
|
|
2975
2962
|
NameInLineItem,
|
|
2976
2963
|
NameInOther,
|
|
@@ -2978,7 +2965,6 @@ var updateFormSubmissions4 = /* @__PURE__ */ (0, import_rest_modules3.createREST
|
|
|
2978
2965
|
PickupMethod,
|
|
2979
2966
|
PlatformFeeChargeType,
|
|
2980
2967
|
ProductPeriodAlignment,
|
|
2981
|
-
QuotaType,
|
|
2982
2968
|
RateType,
|
|
2983
2969
|
RuleType,
|
|
2984
2970
|
Severity,
|