@wix/auto_sdk_ecom_current-cart 1.0.174 → 1.0.175
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 +0 -14
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -58
- package/build/cjs/index.typings.js +0 -14
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -58
- package/build/cjs/meta.js +0 -14
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +0 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -58
- package/build/es/index.typings.mjs +0 -12
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -58
- package/build/es/meta.mjs +0 -12
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +0 -14
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1 -69
- package/build/internal/cjs/index.typings.js +0 -14
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -58
- package/build/internal/cjs/meta.js +0 -14
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +0 -12
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +1 -69
- package/build/internal/es/index.typings.mjs +0 -12
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -58
- package/build/internal/es/meta.mjs +0 -12
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2420,63 +2420,6 @@ declare enum BalanceType {
|
|
|
2420
2420
|
}
|
|
2421
2421
|
/** @enumType */
|
|
2422
2422
|
type BalanceTypeWithLiterals = BalanceType | 'PUNCH_CARD' | 'CREDIT';
|
|
2423
|
-
/**
|
|
2424
|
-
* A single redeemable benefit. A purchasable plan grants one or more benefits (`PurchasablePlan.benefits`);
|
|
2425
|
-
* once the plan is paid, each benefit becomes its own membership (charged via `membership_id`).
|
|
2426
|
-
* (Also present on the deprecated `Membership.benefits`, retained for backward compatibility.)
|
|
2427
|
-
*/
|
|
2428
|
-
interface Benefit extends BenefitQuotaOneOf {
|
|
2429
|
-
limitedQuota?: LimitedQuota;
|
|
2430
|
-
/**
|
|
2431
|
-
* Identifier for this benefit. On a `PurchasablePlan` it must be unique within the response so
|
|
2432
|
-
* `coverages` (`LineItemCoverage.benefit_id`) can reference it unambiguously across the plan's benefits.
|
|
2433
|
-
* @minLength 1
|
|
2434
|
-
* @maxLength 200
|
|
2435
|
-
*/
|
|
2436
|
-
benefitId?: string;
|
|
2437
|
-
/**
|
|
2438
|
-
* Human-readable label for this benefit (for example, "Manicure" or "Pedicure" on multi-set punchcards).
|
|
2439
|
-
* @maxLength 200
|
|
2440
|
-
*/
|
|
2441
|
-
label?: string | null;
|
|
2442
|
-
/**
|
|
2443
|
-
* The kind of quota this benefit grants: a countable amount drawn down on redemption (`LIMITED`),
|
|
2444
|
-
* or an unbounded amount that is never drawn down (`UNLIMITED`).
|
|
2445
|
-
*/
|
|
2446
|
-
quotaType?: QuotaTypeWithLiterals;
|
|
2447
|
-
}
|
|
2448
|
-
/** @oneof */
|
|
2449
|
-
interface BenefitQuotaOneOf {
|
|
2450
|
-
limitedQuota?: LimitedQuota;
|
|
2451
|
-
}
|
|
2452
|
-
declare enum QuotaType {
|
|
2453
|
-
/** The benefit grants a countable quota that is drawn down on redemption. */
|
|
2454
|
-
LIMITED = "LIMITED",
|
|
2455
|
-
/** The benefit is unlimited (unbounded) and is never drawn down. */
|
|
2456
|
-
UNLIMITED = "UNLIMITED"
|
|
2457
|
-
}
|
|
2458
|
-
/** @enumType */
|
|
2459
|
-
type QuotaTypeWithLiterals = QuotaType | 'LIMITED' | 'UNLIMITED';
|
|
2460
|
-
/** A limited, countable redeemable amount. */
|
|
2461
|
-
interface LimitedQuota {
|
|
2462
|
-
/**
|
|
2463
|
-
* The quota's initial value.
|
|
2464
|
-
* @min 1
|
|
2465
|
-
*/
|
|
2466
|
-
total?: number;
|
|
2467
|
-
/** The quota's remaining value. */
|
|
2468
|
-
remaining?: number;
|
|
2469
|
-
/** How the quota is measured. */
|
|
2470
|
-
limitedQuotaType?: LimitedQuotaTypeWithLiterals;
|
|
2471
|
-
}
|
|
2472
|
-
declare enum LimitedQuotaType {
|
|
2473
|
-
/** Quota is measured in discrete uses (e.g., sessions, visits). */
|
|
2474
|
-
PUNCH_CARD = "PUNCH_CARD",
|
|
2475
|
-
/** Quota is measured in a currency-like value (e.g., points). */
|
|
2476
|
-
CREDIT = "CREDIT"
|
|
2477
|
-
}
|
|
2478
|
-
/** @enumType */
|
|
2479
|
-
type LimitedQuotaTypeWithLiterals = LimitedQuotaType | 'PUNCH_CARD' | 'CREDIT';
|
|
2480
2423
|
interface InvalidMembership {
|
|
2481
2424
|
/** Membership details. */
|
|
2482
2425
|
membership?: Membership;
|
|
@@ -3480,4 +3423,4 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
3480
3423
|
*/
|
|
3481
3424
|
declare function deleteCurrentCart(): Promise<void>;
|
|
3482
3425
|
|
|
3483
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddToCartRequest, type AddToCartResponse, type AddToCurrentCartAndEstimateTotalsRequest, type AddToCurrentCartOptions, type AddToCurrentCartRequest, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, type AppliedDiscountDiscountTypeWithLiterals, type AutoTaxFallbackCalculationDetails, BalanceType, type BalanceTypeWithLiterals, type BaseEventMetadata, type
|
|
3426
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddToCartRequest, type AddToCartResponse, type AddToCurrentCartAndEstimateTotalsRequest, type AddToCurrentCartOptions, type AddToCurrentCartRequest, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, type AppliedDiscountDiscountTypeWithLiterals, type AutoTaxFallbackCalculationDetails, BalanceType, type BalanceTypeWithLiterals, type BaseEventMetadata, type BillingSettings, type BuyerInfo, type BuyerInfoIdOneOf, type CalculatedItemModifier, type CalculatedLineItem, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type Cart, type CartCreatedEnvelope, type CartDeletedEnvelope, type CartDiscount, type CartDiscountDiscountSourceOneOf, type CartUpdatedEnvelope, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type Coupon, type CreateCartRequest, type CreateCartResponse, type CreateCheckoutFromCurrentCartOptions, type CreateCheckoutFromCurrentCartRequest, type CreateCheckoutRequest, type CreateCheckoutResponse, type CustomLineItem, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeliveryAllocation, type DeliveryLogistics, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EstimateCurrentCartTotalsOptions, type EstimateCurrentCartTotalsRequest, type EstimateTotalsRequest, type EstimateTotalsResponse, type EventMetadata, type ExtendedFields, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartByCheckoutIdRequest, type GetCartByCheckoutIdResponse, type GetCartRequest, type GetCartResponse, type GetCurrentCartApplicationErrors, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardCalculationError, type Group, type HostSelectedMembership, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemCombination, type ItemCombinationLineItem, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItem, type LineItemAdded, type LineItemDiscount, type LineItemPricesData, type LineItemQuantityUpdate, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, type Policy, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, RateType, type RateTypeWithLiterals, type Region, type RemoveBusinessLocationRequest, type RemoveBusinessLocationResponse, type RemoveCouponFromCurrentCartRequest, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMemberships, type SelectedShippingOption, type ServiceProperties, Severity, type SeverityWithLiterals, type ShippingInformation, type ShippingOption, type ShippingPrice, type ShippingRegion, type StreetAddress, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetLineItem, type TargetTargetTypeOneOf, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartLineItemQuantityRequest, type UpdateCurrentCartOptions, type UpdateLineItemsQuantityRequest, type UpdateLineItemsQuantityResponse, type V1Coupon, type V1DiscountRule, type V1DiscountRuleName, type V1ItemModifier, type V1MerchantDiscount, type V1ModifierGroup, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, addToCurrentCart, createCheckoutFromCurrentCart, deleteCurrentCart, estimateCurrentCartTotals, getCurrentCart, onCartCreated, onCartDeleted, onCartUpdated, removeCouponFromCurrentCart, removeLineItemsFromCurrentCart, updateCurrentCart, updateCurrentCartLineItemQuantity };
|
|
@@ -808,16 +808,6 @@ var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
|
|
|
808
808
|
BalanceType2["CREDIT"] = "CREDIT";
|
|
809
809
|
return BalanceType2;
|
|
810
810
|
})(BalanceType || {});
|
|
811
|
-
var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
|
|
812
|
-
QuotaType2["LIMITED"] = "LIMITED";
|
|
813
|
-
QuotaType2["UNLIMITED"] = "UNLIMITED";
|
|
814
|
-
return QuotaType2;
|
|
815
|
-
})(QuotaType || {});
|
|
816
|
-
var LimitedQuotaType = /* @__PURE__ */ ((LimitedQuotaType2) => {
|
|
817
|
-
LimitedQuotaType2["PUNCH_CARD"] = "PUNCH_CARD";
|
|
818
|
-
LimitedQuotaType2["CREDIT"] = "CREDIT";
|
|
819
|
-
return LimitedQuotaType2;
|
|
820
|
-
})(LimitedQuotaType || {});
|
|
821
811
|
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
822
812
|
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
823
813
|
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
@@ -1338,7 +1328,6 @@ export {
|
|
|
1338
1328
|
ItemAvailabilityStatus,
|
|
1339
1329
|
ItemTypePreset,
|
|
1340
1330
|
JurisdictionType,
|
|
1341
|
-
LimitedQuotaType,
|
|
1342
1331
|
ManualCalculationReason,
|
|
1343
1332
|
NameInLineItem,
|
|
1344
1333
|
NameInOther,
|
|
@@ -1346,7 +1335,6 @@ export {
|
|
|
1346
1335
|
PickupMethod,
|
|
1347
1336
|
PlatformFeeChargeType,
|
|
1348
1337
|
ProductPeriodAlignment,
|
|
1349
|
-
QuotaType,
|
|
1350
1338
|
RateType,
|
|
1351
1339
|
RuleType,
|
|
1352
1340
|
Severity,
|