@wix/auto_sdk_ecom_cart 1.0.0
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 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-cart.context.d.ts +30 -0
- package/build/cjs/src/ecom-v1-cart-cart.context.js +58 -0
- package/build/cjs/src/ecom-v1-cart-cart.context.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-cart.http.d.ts +92 -0
- package/build/cjs/src/ecom-v1-cart-cart.http.js +844 -0
- package/build/cjs/src/ecom-v1-cart-cart.http.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-cart.meta.d.ts +46 -0
- package/build/cjs/src/ecom-v1-cart-cart.meta.js +256 -0
- package/build/cjs/src/ecom-v1-cart-cart.meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-cart.public.d.ts +152 -0
- package/build/cjs/src/ecom-v1-cart-cart.public.js +228 -0
- package/build/cjs/src/ecom-v1-cart-cart.public.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-cart.types.d.ts +2506 -0
- package/build/cjs/src/ecom-v1-cart-cart.types.js +255 -0
- package/build/cjs/src/ecom-v1-cart-cart.types.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-cart.universal.d.ts +2996 -0
- package/build/cjs/src/ecom-v1-cart-cart.universal.js +1169 -0
- package/build/cjs/src/ecom-v1-cart-cart.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/ecom-v1-cart-cart.context.d.ts +30 -0
- package/build/es/src/ecom-v1-cart-cart.context.js +30 -0
- package/build/es/src/ecom-v1-cart-cart.context.js.map +1 -0
- package/build/es/src/ecom-v1-cart-cart.http.d.ts +92 -0
- package/build/es/src/ecom-v1-cart-cart.http.js +829 -0
- package/build/es/src/ecom-v1-cart-cart.http.js.map +1 -0
- package/build/es/src/ecom-v1-cart-cart.meta.d.ts +46 -0
- package/build/es/src/ecom-v1-cart-cart.meta.js +218 -0
- package/build/es/src/ecom-v1-cart-cart.meta.js.map +1 -0
- package/build/es/src/ecom-v1-cart-cart.public.d.ts +152 -0
- package/build/es/src/ecom-v1-cart-cart.public.js +188 -0
- package/build/es/src/ecom-v1-cart-cart.public.js.map +1 -0
- package/build/es/src/ecom-v1-cart-cart.types.d.ts +2506 -0
- package/build/es/src/ecom-v1-cart-cart.types.js +252 -0
- package/build/es/src/ecom-v1-cart-cart.types.js.map +1 -0
- package/build/es/src/ecom-v1-cart-cart.universal.d.ts +2996 -0
- package/build/es/src/ecom-v1-cart-cart.universal.js +1131 -0
- package/build/es/src/ecom-v1-cart-cart.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.context.d.ts +30 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.context.js +58 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.context.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.http.d.ts +92 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.http.js +844 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.http.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.meta.d.ts +46 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.meta.js +256 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.public.d.ts +170 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.public.js +228 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.public.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.types.d.ts +2565 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.types.js +255 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.types.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.universal.d.ts +3261 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.universal.js +1169 -0
- package/build/internal/cjs/src/ecom-v1-cart-cart.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-cart.context.d.ts +30 -0
- package/build/internal/es/src/ecom-v1-cart-cart.context.js +30 -0
- package/build/internal/es/src/ecom-v1-cart-cart.context.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-cart.http.d.ts +92 -0
- package/build/internal/es/src/ecom-v1-cart-cart.http.js +829 -0
- package/build/internal/es/src/ecom-v1-cart-cart.http.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-cart.meta.d.ts +46 -0
- package/build/internal/es/src/ecom-v1-cart-cart.meta.js +218 -0
- package/build/internal/es/src/ecom-v1-cart-cart.meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-cart.public.d.ts +170 -0
- package/build/internal/es/src/ecom-v1-cart-cart.public.js +188 -0
- package/build/internal/es/src/ecom-v1-cart-cart.public.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-cart.types.d.ts +2565 -0
- package/build/internal/es/src/ecom-v1-cart-cart.types.js +252 -0
- package/build/internal/es/src/ecom-v1-cart-cart.types.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-cart.universal.d.ts +3261 -0
- package/build/internal/es/src/ecom-v1-cart-cart.universal.js +1131 -0
- package/build/internal/es/src/ecom-v1-cart-cart.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/ecom-v1-cart-cart.context.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/ecom-v1-cart-cart.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/ecom-v1-cart-cart.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/ecom-v1-cart-cart.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/ecom-v1-cart-cart.meta.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/ecom-v1-cart-cart.meta.js"), exports);
|
|
18
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createCart as publicCreateCart, updateCart as publicUpdateCart, getCart as publicGetCart, getCartByCheckoutId as publicGetCartByCheckoutId, addToCart as publicAddToCart, removeLineItems as publicRemoveLineItems, createCheckout as publicCreateCheckout, removeCoupon as publicRemoveCoupon, updateLineItemsQuantity as publicUpdateLineItemsQuantity, estimateTotals as publicEstimateTotals, deleteCart as publicDeleteCart, removeBusinessLocation as publicRemoveBusinessLocation } from './ecom-v1-cart-cart.public.js';
|
|
2
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
+
import { onCartDeleted as publicOnCartDeleted } from './ecom-v1-cart-cart.public.js';
|
|
5
|
+
import { onCartUpdated as publicOnCartUpdated } from './ecom-v1-cart-cart.public.js';
|
|
6
|
+
import { onCartCreated as publicOnCartCreated } from './ecom-v1-cart-cart.public.js';
|
|
7
|
+
export declare const createCart: MaybeContext<BuildRESTFunction<typeof publicCreateCart> & typeof publicCreateCart>;
|
|
8
|
+
export declare const updateCart: MaybeContext<BuildRESTFunction<typeof publicUpdateCart> & typeof publicUpdateCart>;
|
|
9
|
+
export declare const getCart: MaybeContext<BuildRESTFunction<typeof publicGetCart> & typeof publicGetCart>;
|
|
10
|
+
export declare const getCartByCheckoutId: MaybeContext<BuildRESTFunction<typeof publicGetCartByCheckoutId> & typeof publicGetCartByCheckoutId>;
|
|
11
|
+
export declare const addToCart: MaybeContext<BuildRESTFunction<typeof publicAddToCart> & typeof publicAddToCart>;
|
|
12
|
+
export declare const removeLineItems: MaybeContext<BuildRESTFunction<typeof publicRemoveLineItems> & typeof publicRemoveLineItems>;
|
|
13
|
+
export declare const createCheckout: MaybeContext<BuildRESTFunction<typeof publicCreateCheckout> & typeof publicCreateCheckout>;
|
|
14
|
+
export declare const removeCoupon: MaybeContext<BuildRESTFunction<typeof publicRemoveCoupon> & typeof publicRemoveCoupon>;
|
|
15
|
+
export declare const updateLineItemsQuantity: MaybeContext<BuildRESTFunction<typeof publicUpdateLineItemsQuantity> & typeof publicUpdateLineItemsQuantity>;
|
|
16
|
+
export declare const estimateTotals: MaybeContext<BuildRESTFunction<typeof publicEstimateTotals> & typeof publicEstimateTotals>;
|
|
17
|
+
export declare const deleteCart: MaybeContext<BuildRESTFunction<typeof publicDeleteCart> & typeof publicDeleteCart>;
|
|
18
|
+
export declare const removeBusinessLocation: MaybeContext<BuildRESTFunction<typeof publicRemoveBusinessLocation> & typeof publicRemoveBusinessLocation>;
|
|
19
|
+
/**
|
|
20
|
+
* Triggered when a cart is deleted.
|
|
21
|
+
*/
|
|
22
|
+
export declare const onCartDeleted: ReturnType<typeof createEventModule<typeof publicOnCartDeleted>>;
|
|
23
|
+
/** */
|
|
24
|
+
export declare const onCartUpdated: ReturnType<typeof createEventModule<typeof publicOnCartUpdated>>;
|
|
25
|
+
/**
|
|
26
|
+
* Triggered when a cart is created.
|
|
27
|
+
*/
|
|
28
|
+
export declare const onCartCreated: ReturnType<typeof createEventModule<typeof publicOnCartCreated>>;
|
|
29
|
+
export { DescriptionLineType, ItemAvailabilityStatus, ItemTypeItemType, SubscriptionFrequency, FileType, PaymentOptionType, TaxableAddressType, WeightUnit, DiscountType, VatType, JurisdictionType, RateType, ManualCalculationReason, FallbackReason, PickupMethod, ChargeType, AppliedDiscountDiscountType, RuleType, AdditionalFeeSource, Severity, NameInOther, NameInLineItem, SuggestedFix, ChannelType, WebhookIdentityType, } from './ecom-v1-cart-cart.universal.js';
|
|
30
|
+
export { Cart, LineItem, CatalogReference, ProductName, MultiCurrencyPrice, DescriptionLine, DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, PlainTextValue, Color, FocalPoint, ItemAvailabilityInfo, PhysicalProperties, Scope, Group, ItemType, ItemTypeItemTypeDataOneOf, SubscriptionOptionInfo, SubscriptionSettings, FreeTrialPeriod, Title, Description, SecuredMedia, ServiceProperties, PriceDescription, SelectedMembership, CatalogOverrideFields, PaymentOption, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, ExtendedFields, Policy, BuyerInfo, BuyerInfoIdOneOf, CartDiscount, CartDiscountDiscountSourceOneOf, Coupon, MerchantDiscount, DiscountRule, DiscountRuleName, AddressWithContact, Address, StreetAddress, AddressLocation, FullAddressContactDetails, VatId, SelectedShippingOption, GetCurrentCartRequest, GetCurrentCartResponse, UpdateCartRequest, MerchantDiscountInput, CustomLineItem, UpdateCartResponse, AddToCurrentCartRequest, AddToCartResponse, AddToCurrentCartAndEstimateTotalsRequest, SelectedMemberships, HostSelectedMembership, EstimateTotalsResponse, CalculatedLineItem, LineItemPricesData, ItemTaxFullDetails, TaxRateBreakdown, TaxBreakdown, PriceSummary, GiftCard, TaxSummary, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, AutoTaxFallbackCalculationDetails, ApplicationError, AggregatedTaxBreakdown, ShippingInformation, ShippingRegion, SelectedCarrierServiceOption, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, SelectedCarrierServiceOptionPrices, SelectedCarrierServiceOptionOtherCharge, DeliveryAllocation, Carrier, Region, ApplicableLineItems, CarrierServiceOption, ShippingOption, ShippingPrice, OtherCharge, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, V1Coupon, V1MerchantDiscount, V1DiscountRule, V1DiscountRuleName, LineItemDiscount, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Details, DetailsKindOneOf, ValidationError, FieldViolation, SystemError, CarrierErrors, CarrierError, MembershipOptions, Membership, MembershipName, MembershipPaymentCredits, InvalidMembership, AdditionalFee, Violation, Target, TargetTargetTypeOneOf, Other, TargetLineItem, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsResponse, CreateCheckoutFromCurrentCartRequest, CreateCheckoutResponse, RemoveCouponFromCurrentCartRequest, RemoveCouponResponse, UpdateCurrentCartLineItemQuantityRequest, LineItemQuantityUpdate, UpdateLineItemsQuantityResponse, EstimateCurrentCartTotalsRequest, DeleteCurrentCartRequest, DeleteCartResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, CreateCartRequest, CreateCartResponse, GetCartRequest, GetCartResponse, GetCartByCheckoutIdRequest, GetCartByCheckoutIdResponse, AddToCartRequest, RemoveLineItemsRequest, CreateCheckoutRequest, RemoveCouponRequest, UpdateLineItemsQuantityRequest, EstimateTotalsRequest, DeleteCartRequest, Empty, RemoveBusinessLocationRequest, RemoveBusinessLocationResponse, CartNonNullableFields, CreateCartResponseNonNullableFields, UpdateCartResponseNonNullableFields, GetCartResponseNonNullableFields, GetCartByCheckoutIdResponseNonNullableFields, AddToCartResponseNonNullableFields, RemoveLineItemsResponseNonNullableFields, CreateCheckoutResponseNonNullableFields, RemoveCouponResponseNonNullableFields, UpdateLineItemsQuantityResponseNonNullableFields, EstimateTotalsResponseNonNullableFields, RemoveBusinessLocationResponseNonNullableFields, BaseEventMetadata, EventMetadata, CartDeletedEnvelope, CartUpdatedEnvelope, CartCreatedEnvelope, CreateCartOptions, UpdateCartOptions, AddToCartOptions, CreateCheckoutOptions, EstimateTotalsOptions, } from './ecom-v1-cart-cart.universal.js';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.ChannelType = exports.SuggestedFix = exports.NameInLineItem = exports.NameInOther = exports.Severity = exports.AdditionalFeeSource = exports.RuleType = exports.AppliedDiscountDiscountType = exports.ChargeType = exports.PickupMethod = exports.FallbackReason = exports.ManualCalculationReason = exports.RateType = exports.JurisdictionType = exports.VatType = exports.DiscountType = exports.WeightUnit = exports.TaxableAddressType = exports.PaymentOptionType = exports.FileType = exports.SubscriptionFrequency = exports.ItemTypeItemType = exports.ItemAvailabilityStatus = exports.DescriptionLineType = exports.onCartCreated = exports.onCartUpdated = exports.onCartDeleted = exports.removeBusinessLocation = exports.deleteCart = exports.estimateTotals = exports.updateLineItemsQuantity = exports.removeCoupon = exports.createCheckout = exports.removeLineItems = exports.addToCart = exports.getCartByCheckoutId = exports.getCart = exports.updateCart = exports.createCart = void 0;
|
|
4
|
+
const ecom_v1_cart_cart_public_js_1 = require("./ecom-v1-cart-cart.public.js");
|
|
5
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
7
|
+
const ecom_v1_cart_cart_public_js_2 = require("./ecom-v1-cart-cart.public.js");
|
|
8
|
+
const ecom_v1_cart_cart_public_js_3 = require("./ecom-v1-cart-cart.public.js");
|
|
9
|
+
const ecom_v1_cart_cart_public_js_4 = require("./ecom-v1-cart-cart.public.js");
|
|
10
|
+
exports.createCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.createCart);
|
|
11
|
+
exports.updateCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.updateCart);
|
|
12
|
+
exports.getCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.getCart);
|
|
13
|
+
exports.getCartByCheckoutId = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.getCartByCheckoutId);
|
|
14
|
+
exports.addToCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.addToCart);
|
|
15
|
+
exports.removeLineItems = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.removeLineItems);
|
|
16
|
+
exports.createCheckout = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.createCheckout);
|
|
17
|
+
exports.removeCoupon = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.removeCoupon);
|
|
18
|
+
exports.updateLineItemsQuantity = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.updateLineItemsQuantity);
|
|
19
|
+
exports.estimateTotals = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.estimateTotals);
|
|
20
|
+
exports.deleteCart = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.deleteCart);
|
|
21
|
+
exports.removeBusinessLocation = (0, rest_modules_1.createRESTModule)(ecom_v1_cart_cart_public_js_1.removeBusinessLocation);
|
|
22
|
+
/**
|
|
23
|
+
* Triggered when a cart is deleted.
|
|
24
|
+
*/
|
|
25
|
+
exports.onCartDeleted = (0, event_definition_modules_1.createEventModule)(ecom_v1_cart_cart_public_js_2.onCartDeleted);
|
|
26
|
+
/** */
|
|
27
|
+
exports.onCartUpdated = (0, event_definition_modules_1.createEventModule)(ecom_v1_cart_cart_public_js_3.onCartUpdated);
|
|
28
|
+
/**
|
|
29
|
+
* Triggered when a cart is created.
|
|
30
|
+
*/
|
|
31
|
+
exports.onCartCreated = (0, event_definition_modules_1.createEventModule)(ecom_v1_cart_cart_public_js_4.onCartCreated);
|
|
32
|
+
var ecom_v1_cart_cart_universal_js_1 = require("./ecom-v1-cart-cart.universal.js");
|
|
33
|
+
Object.defineProperty(exports, "DescriptionLineType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.DescriptionLineType; } });
|
|
34
|
+
Object.defineProperty(exports, "ItemAvailabilityStatus", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.ItemAvailabilityStatus; } });
|
|
35
|
+
Object.defineProperty(exports, "ItemTypeItemType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.ItemTypeItemType; } });
|
|
36
|
+
Object.defineProperty(exports, "SubscriptionFrequency", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.SubscriptionFrequency; } });
|
|
37
|
+
Object.defineProperty(exports, "FileType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.FileType; } });
|
|
38
|
+
Object.defineProperty(exports, "PaymentOptionType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.PaymentOptionType; } });
|
|
39
|
+
Object.defineProperty(exports, "TaxableAddressType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.TaxableAddressType; } });
|
|
40
|
+
Object.defineProperty(exports, "WeightUnit", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.WeightUnit; } });
|
|
41
|
+
Object.defineProperty(exports, "DiscountType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.DiscountType; } });
|
|
42
|
+
Object.defineProperty(exports, "VatType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.VatType; } });
|
|
43
|
+
Object.defineProperty(exports, "JurisdictionType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.JurisdictionType; } });
|
|
44
|
+
Object.defineProperty(exports, "RateType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.RateType; } });
|
|
45
|
+
Object.defineProperty(exports, "ManualCalculationReason", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.ManualCalculationReason; } });
|
|
46
|
+
Object.defineProperty(exports, "FallbackReason", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.FallbackReason; } });
|
|
47
|
+
Object.defineProperty(exports, "PickupMethod", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.PickupMethod; } });
|
|
48
|
+
Object.defineProperty(exports, "ChargeType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.ChargeType; } });
|
|
49
|
+
Object.defineProperty(exports, "AppliedDiscountDiscountType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.AppliedDiscountDiscountType; } });
|
|
50
|
+
Object.defineProperty(exports, "RuleType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.RuleType; } });
|
|
51
|
+
Object.defineProperty(exports, "AdditionalFeeSource", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.AdditionalFeeSource; } });
|
|
52
|
+
Object.defineProperty(exports, "Severity", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.Severity; } });
|
|
53
|
+
Object.defineProperty(exports, "NameInOther", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.NameInOther; } });
|
|
54
|
+
Object.defineProperty(exports, "NameInLineItem", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.NameInLineItem; } });
|
|
55
|
+
Object.defineProperty(exports, "SuggestedFix", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.SuggestedFix; } });
|
|
56
|
+
Object.defineProperty(exports, "ChannelType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.ChannelType; } });
|
|
57
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return ecom_v1_cart_cart_universal_js_1.WebhookIdentityType; } });
|
|
58
|
+
//# sourceMappingURL=ecom-v1-cart-cart.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecom-v1-cart-cart.context.js","sourceRoot":"","sources":["../../../src/ecom-v1-cart-cart.context.ts"],"names":[],"mappings":";;;AAAA,+EAauC;AACvC,gEAAiE;AACjE,wFAA8E;AAE9E,+EAAqF;AACrF,+EAAqF;AACrF,+EAAqF;AAExE,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,wCAAgB,CAAC,CAAC;AACxC,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,wCAAgB,CAAC,CAAC;AACxC,QAAA,OAAO,GAEF,IAAA,+BAAgB,EAAC,qCAAa,CAAC,CAAC;AACrC,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,iDAAyB,CAAC,CAAC;AACjD,QAAA,SAAS,GAEJ,IAAA,+BAAgB,EAAC,uCAAe,CAAC,CAAC;AACvC,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,6CAAqB,CAAC,CAAC;AAC7C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,4CAAoB,CAAC,CAAC;AAC5C,QAAA,YAAY,GAEP,IAAA,+BAAgB,EAAC,0CAAkB,CAAC,CAAC;AAC1C,QAAA,uBAAuB,GAGlB,IAAA,+BAAgB,EAAC,qDAA6B,CAAC,CAAC;AACrD,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,4CAAoB,CAAC,CAAC;AAC5C,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,wCAAgB,CAAC,CAAC;AACxC,QAAA,sBAAsB,GAGjB,IAAA,+BAAgB,EAAC,oDAA4B,CAAC,CAAC;AACjE;;GAEG;AACU,QAAA,aAAa,GAEtB,IAAA,4CAAiB,EAAC,2CAAmB,CAAC,CAAC;AAC3C,MAAM;AACO,QAAA,aAAa,GAEtB,IAAA,4CAAiB,EAAC,2CAAmB,CAAC,CAAC;AAC3C;;GAEG;AACU,QAAA,aAAa,GAEtB,IAAA,4CAAiB,EAAC,2CAAmB,CAAC,CAAC;AAE3C,mFA0B0C;AAzBxC,qIAAA,mBAAmB,OAAA;AACnB,wIAAA,sBAAsB,OAAA;AACtB,kIAAA,gBAAgB,OAAA;AAChB,uIAAA,qBAAqB,OAAA;AACrB,0HAAA,QAAQ,OAAA;AACR,mIAAA,iBAAiB,OAAA;AACjB,oIAAA,kBAAkB,OAAA;AAClB,4HAAA,UAAU,OAAA;AACV,8HAAA,YAAY,OAAA;AACZ,yHAAA,OAAO,OAAA;AACP,kIAAA,gBAAgB,OAAA;AAChB,0HAAA,QAAQ,OAAA;AACR,yIAAA,uBAAuB,OAAA;AACvB,gIAAA,cAAc,OAAA;AACd,8HAAA,YAAY,OAAA;AACZ,4HAAA,UAAU,OAAA;AACV,6IAAA,2BAA2B,OAAA;AAC3B,0HAAA,QAAQ,OAAA;AACR,qIAAA,mBAAmB,OAAA;AACnB,0HAAA,QAAQ,OAAA;AACR,6HAAA,WAAW,OAAA;AACX,gIAAA,cAAc,OAAA;AACd,8HAAA,YAAY,OAAA;AACZ,6HAAA,WAAW,OAAA;AACX,qIAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new cart.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* The `createCart()` function returns a Promise that resolves to the new cart when it's created.
|
|
7
|
+
*
|
|
8
|
+
* > **Note:** When adding catalog items, `options.lineItems.catalogReference` is required.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createCart(payload: object): RequestOptionsFactory<any>;
|
|
11
|
+
/**
|
|
12
|
+
* Updates a specified cart's properties.
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* The `updateCart()` function returns a Promise that resolves when the specified cart's properties are updated.
|
|
16
|
+
*
|
|
17
|
+
* > **Note:** When updating catalog items, `options.lineItems.catalogReference` is required.
|
|
18
|
+
*/
|
|
19
|
+
export declare function updateCart(payload: object): RequestOptionsFactory<any>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a cart.
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* The `getCart()` function returns a Promise that resolves when the specified cart is retrieved.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getCart(payload: object): RequestOptionsFactory<any>;
|
|
27
|
+
/** Retrieves the cart associated with a specified checkout. */
|
|
28
|
+
export declare function getCartByCheckoutId(payload: object): RequestOptionsFactory<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Adds catalog line items to a cart.
|
|
31
|
+
*
|
|
32
|
+
*
|
|
33
|
+
* The `addToCart()` function returns a Promise that resolves to the updated cart when the specified items have been added.
|
|
34
|
+
*
|
|
35
|
+
* > **Note:** When adding catalog items, `options.lineItems.catalogReference` is required.
|
|
36
|
+
*/
|
|
37
|
+
export declare function addToCart(payload: object): RequestOptionsFactory<any>;
|
|
38
|
+
/**
|
|
39
|
+
* Removes line items from the specified cart.
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* The `removeLineItems()` function returns a Promise that resolves to the updated cart when the line items are removed from the specified cart.
|
|
43
|
+
*/
|
|
44
|
+
export declare function removeLineItems(payload: object): RequestOptionsFactory<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a checkout from a cart.
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
* The `createCheckout()` function returns a Promise that resolves to the new checkout's ID when it's created.
|
|
50
|
+
*
|
|
51
|
+
* If a checkout was already created from the specified cart, that checkout will be
|
|
52
|
+
* updated with any new information from the cart.
|
|
53
|
+
*
|
|
54
|
+
* > **Note:** `options.channelType` is a required field.
|
|
55
|
+
*/
|
|
56
|
+
export declare function createCheckout(payload: object): RequestOptionsFactory<any>;
|
|
57
|
+
/**
|
|
58
|
+
* Removes the coupon from a specified cart.
|
|
59
|
+
*
|
|
60
|
+
*
|
|
61
|
+
* The `removeCoupon()` function returns a Promise that resolves to the updated cart when the coupon is removed from the specified cart.
|
|
62
|
+
*/
|
|
63
|
+
export declare function removeCoupon(payload: object): RequestOptionsFactory<any>;
|
|
64
|
+
/**
|
|
65
|
+
* Updates the quantity of one or more line items in a specified cart.
|
|
66
|
+
*
|
|
67
|
+
*
|
|
68
|
+
* The `updateLineItemsQuantity()` function returns a Promise that resolves when the quantities of the specified cart's line items are updated.
|
|
69
|
+
*
|
|
70
|
+
* This endpoint is only for updating the quantity of line items. To entirely remove a line item from the cart, use [`removeLineItems()`](#removelineitems). To add a new line item to the cart, use [`addToCart()`](#addtocart).
|
|
71
|
+
*
|
|
72
|
+
* This endpoint checks the amount of stock remaining for this line item. If the specified `quantity` is greater than the remaining stock, then the `quantity` returned in the response is the total amount of remaining stock.
|
|
73
|
+
*/
|
|
74
|
+
export declare function updateLineItemsQuantity(payload: object): RequestOptionsFactory<any>;
|
|
75
|
+
/**
|
|
76
|
+
* Estimates the subtotal and total for current site visitor’s cart. Totals include tax and are based on the selected carrier service, shipping address, and billing information.
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* The `estimateTotals()` function returns a Promise that resolves when the estimated totals are generated.
|
|
80
|
+
*
|
|
81
|
+
* > **Note:** Not passing any `options` properties will only estimate the cart items price totals.
|
|
82
|
+
*/
|
|
83
|
+
export declare function estimateTotals(payload: object): RequestOptionsFactory<any>;
|
|
84
|
+
/**
|
|
85
|
+
* Deletes a cart.
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* The `deleteCart()` function returns a Promise that resolves when the specified cart is deleted.
|
|
89
|
+
*/
|
|
90
|
+
export declare function deleteCart(payload: object): RequestOptionsFactory<any>;
|
|
91
|
+
/** Removes the location associated with a cart. */
|
|
92
|
+
export declare function removeBusinessLocation(payload: object): RequestOptionsFactory<any>;
|