@wix/auto_sdk_ecom_cart 1.0.40 → 1.0.42
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 +14 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{ecom-v1-cart-cart.universal-B6O4guqp.d.ts → index.typings.d.ts} +310 -1
- package/build/cjs/index.typings.js +1680 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +7 -1
- package/build/es/index.d.mts +14 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/{ecom-v1-cart-cart.universal-B6O4guqp.d.mts → index.typings.d.mts} +310 -1
- package/build/es/index.typings.mjs +1620 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +7 -1
- package/build/internal/cjs/index.d.ts +14 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{ecom-v1-cart-cart.universal-C4hqggNx.d.ts → index.typings.d.ts} +320 -1
- package/build/internal/cjs/index.typings.js +1680 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +7 -1
- package/build/internal/es/index.d.mts +14 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{ecom-v1-cart-cart.universal-C4hqggNx.d.mts → index.typings.d.mts} +320 -1
- package/build/internal/es/index.typings.mjs +1620 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +7 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { CreateCartOptions, Cart, CreateCartApplicationErrors, UpdateCartOptions, UpdateCartApplicationErrors, AddToCartOptions, AddToCartResponse, AddToCartApplicationErrors, RemoveLineItemsResponse, CreateCheckoutOptions, CreateCheckoutResponse, CreateCheckoutApplicationErrors, RemoveCouponResponse, LineItemQuantityUpdate, UpdateLineItemsQuantityResponse, EstimateTotalsOptions, EstimateTotalsResponse, RemoveBusinessLocationResponse, CartDeletedEnvelope, CartUpdatedEnvelope, CartCreatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, AddToCartRequest, AddToCurrentCartAndEstimateTotalsRequest, AddToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, AutoTaxFallbackCalculationDetails, BaseEventMetadata, BuyerInfo, BuyerInfoIdOneOf, CalculatedItemModifier, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartDiscount, CartDiscountDiscountSourceOneOf, CatalogOverrideFields, CatalogReference, ChannelType, ChargeType, Color, Coupon, CreateCartRequest, CreateCartResponse, CreateCheckoutFromCurrentCartRequest, CreateCheckoutRequest, CustomLineItem, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCurrentCartTotalsRequest, EstimateTotalsRequest, EventMetadata, ExtendedFields, FallbackReason, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCartByCheckoutIdRequest, GetCartByCheckoutIdResponse, GetCartRequest, GetCartResponse, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, Group, HostSelectedMembership, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, LineItemPricesData, ManualCalculationReason, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInOther, Other, OtherCharge, PaymentOption, PaymentOptionType, PhysicalProperties, PickupDetails, PickupMethod, PlainTextValue, Policy, PriceDescription, PriceSummary, ProductName, RateType, Region, RemoveBusinessLocationRequest, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RestoreInfo, RuleType, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, Severity, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, Title, TranslatableString, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartLineItemQuantityRequest, UpdateLineItemsQuantityRequest, V1Coupon, V1DiscountRule, V1DiscountRuleName, V1ItemModifier, V1MerchantDiscount, V1ModifierGroup, ValidationError, VatId, VatType, Violation, WebhookIdentityType, WeightUnit } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createCart$1(httpClient: HttpClient): CreateCartSignature;
|
|
6
6
|
interface CreateCartSignature {
|
|
@@ -11,7 +11,9 @@ interface CreateCartSignature {
|
|
|
11
11
|
* @param - Cart creation options.
|
|
12
12
|
* @returns Cart.
|
|
13
13
|
*/
|
|
14
|
-
(options?: CreateCartOptions | undefined): Promise<Cart
|
|
14
|
+
(options?: CreateCartOptions | undefined): Promise<Cart & {
|
|
15
|
+
__applicationErrorsType?: CreateCartApplicationErrors | undefined;
|
|
16
|
+
}>;
|
|
15
17
|
}
|
|
16
18
|
declare function updateCart$1(httpClient: HttpClient): UpdateCartSignature;
|
|
17
19
|
interface UpdateCartSignature {
|
|
@@ -23,7 +25,9 @@ interface UpdateCartSignature {
|
|
|
23
25
|
* @param - ID of the cart to be updated.
|
|
24
26
|
* @returns Updated Cart.
|
|
25
27
|
*/
|
|
26
|
-
(_id: string, options?: UpdateCartOptions | undefined): Promise<Cart
|
|
28
|
+
(_id: string, options?: UpdateCartOptions | undefined): Promise<Cart & {
|
|
29
|
+
__applicationErrorsType?: UpdateCartApplicationErrors | undefined;
|
|
30
|
+
}>;
|
|
27
31
|
}
|
|
28
32
|
declare function getCart$1(httpClient: HttpClient): GetCartSignature;
|
|
29
33
|
interface GetCartSignature {
|
|
@@ -43,7 +47,9 @@ interface AddToCartSignature {
|
|
|
43
47
|
* @param - Cart ID.
|
|
44
48
|
* @param - Items to be added to cart.
|
|
45
49
|
*/
|
|
46
|
-
(_id: string, options?: AddToCartOptions | undefined): Promise<AddToCartResponse
|
|
50
|
+
(_id: string, options?: AddToCartOptions | undefined): Promise<AddToCartResponse & {
|
|
51
|
+
__applicationErrorsType?: AddToCartApplicationErrors | undefined;
|
|
52
|
+
}>;
|
|
47
53
|
}
|
|
48
54
|
declare function removeLineItems$1(httpClient: HttpClient): RemoveLineItemsSignature;
|
|
49
55
|
interface RemoveLineItemsSignature {
|
|
@@ -66,7 +72,9 @@ interface CreateCheckoutSignature {
|
|
|
66
72
|
* @param - Cart ID.
|
|
67
73
|
* @param - Checkout creation options.
|
|
68
74
|
*/
|
|
69
|
-
(_id: string, options?: CreateCheckoutOptions | undefined): Promise<CreateCheckoutResponse
|
|
75
|
+
(_id: string, options?: CreateCheckoutOptions | undefined): Promise<CreateCheckoutResponse & {
|
|
76
|
+
__applicationErrorsType?: CreateCheckoutApplicationErrors | undefined;
|
|
77
|
+
}>;
|
|
70
78
|
}
|
|
71
79
|
declare function removeCoupon$1(httpClient: HttpClient): RemoveCouponSignature;
|
|
72
80
|
interface RemoveCouponSignature {
|