@cimplify/sdk 0.27.0 → 0.28.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/dist/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/{chunk-MISITC47.mjs → chunk-FFUCCUG4.mjs} +47 -1
- package/dist/{chunk-4JSRPSNA.js → chunk-GS7AX6B3.js} +47 -0
- package/dist/{index-DBM89ktY.d.ts → index-C2U1gHyP.d.ts} +2 -2
- package/dist/{index-DT-24csu.d.mts → index-ClrQ0yTH.d.mts} +23 -2
- package/dist/{index-2JxW7TuQ.d.mts → index-EGhIxwfI.d.mts} +2 -2
- package/dist/{index-BAu-zmIP.d.ts → index-iHKILmG9.d.ts} +23 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +13 -9
- package/dist/index.mjs +1 -1
- package/dist/{payment-5a21yzi7.d.ts → payment-k8feV7r8.d.mts} +55 -1
- package/dist/{payment-5a21yzi7.d.mts → payment-k8feV7r8.d.ts} +55 -1
- package/dist/{price-BS0Z5Oi9.d.ts → price-4EK-0zF5.d.ts} +1 -1
- package/dist/{price-CGPMlQUk.d.mts → price-Den0zv61.d.mts} +1 -1
- package/dist/react.d.mts +42 -4
- package/dist/react.d.ts +42 -4
- package/dist/react.js +360 -17
- package/dist/react.mjs +340 -3
- package/dist/utils.d.mts +3 -3
- package/dist/utils.d.ts +3 -3
- package/package.json +1 -1
- package/registry/product-card.json +1 -1
- package/registry/product-page.json +1 -1
package/dist/advanced.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService,
|
|
2
|
-
import './payment-
|
|
1
|
+
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, N as CimplifyElement, M as CimplifyElements, Y as ELEMENT_TYPES, X as EVENT_TYPES, a0 as ElementEventType, _ as ElementOptions, $ as ElementType, Z as ElementsOptions, F as FetchQuoteInput, s as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, r as LiteService, W as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, q as SchedulingService, V as createElements, m as generateIdempotencyKey } from './index-ClrQ0yTH.mjs';
|
|
2
|
+
import './payment-k8feV7r8.mjs';
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService,
|
|
2
|
-
import './payment-
|
|
1
|
+
export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, N as CimplifyElement, M as CimplifyElements, Y as ELEMENT_TYPES, X as EVENT_TYPES, a0 as ElementEventType, _ as ElementOptions, $ as ElementType, Z as ElementsOptions, F as FetchQuoteInput, s as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, r as LiteService, W as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, q as SchedulingService, V as createElements, m as generateIdempotencyKey } from './index-iHKILmG9.js';
|
|
2
|
+
import './payment-k8feV7r8.js';
|
|
@@ -54,6 +54,46 @@ function currentPath() {
|
|
|
54
54
|
return void 0;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
// src/subscriptions.ts
|
|
58
|
+
var SubscriptionService = class {
|
|
59
|
+
constructor(client) {
|
|
60
|
+
this.client = client;
|
|
61
|
+
}
|
|
62
|
+
async list() {
|
|
63
|
+
return safe(this.client.get("/api/v1/subscriptions"));
|
|
64
|
+
}
|
|
65
|
+
async get(id) {
|
|
66
|
+
const encodedId = encodeURIComponent(id);
|
|
67
|
+
return safe(this.client.get(`/api/v1/subscriptions/${encodedId}`));
|
|
68
|
+
}
|
|
69
|
+
async cancel(id, reason) {
|
|
70
|
+
const encodedId = encodeURIComponent(id);
|
|
71
|
+
return safe(
|
|
72
|
+
this.client.post(`/api/v1/subscriptions/${encodedId}/cancel`, {
|
|
73
|
+
reason
|
|
74
|
+
})
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
async pause(id) {
|
|
78
|
+
const encodedId = encodeURIComponent(id);
|
|
79
|
+
return safe(
|
|
80
|
+
this.client.post(`/api/v1/subscriptions/${encodedId}/pause`)
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
async resume(id) {
|
|
84
|
+
const encodedId = encodeURIComponent(id);
|
|
85
|
+
return safe(
|
|
86
|
+
this.client.post(`/api/v1/subscriptions/${encodedId}/resume`)
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
async skipNextRenewal(id) {
|
|
90
|
+
const encodedId = encodeURIComponent(id);
|
|
91
|
+
return safe(
|
|
92
|
+
this.client.post(`/api/v1/subscriptions/${encodedId}/skip`)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
|
|
57
97
|
// src/delivery.ts
|
|
58
98
|
var DeliveryService = class {
|
|
59
99
|
constructor(client) {
|
|
@@ -617,6 +657,12 @@ var CimplifyClient = class {
|
|
|
617
657
|
}
|
|
618
658
|
return this._orders;
|
|
619
659
|
}
|
|
660
|
+
get subscriptions() {
|
|
661
|
+
if (!this._subscriptions) {
|
|
662
|
+
this._subscriptions = new SubscriptionService(this);
|
|
663
|
+
}
|
|
664
|
+
return this._subscriptions;
|
|
665
|
+
}
|
|
620
666
|
get link() {
|
|
621
667
|
if (!this._link) {
|
|
622
668
|
this._link = new LinkService(this);
|
|
@@ -742,4 +788,4 @@ var DURATION_UNIT = {
|
|
|
742
788
|
Years: "years"
|
|
743
789
|
};
|
|
744
790
|
|
|
745
|
-
export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, PRODUCT_TYPE, RENDER_HINT, createCimplifyClient, getVariantDisplayName };
|
|
791
|
+
export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, PRODUCT_TYPE, RENDER_HINT, SubscriptionService, createCimplifyClient, getVariantDisplayName };
|
|
@@ -56,6 +56,46 @@ function currentPath() {
|
|
|
56
56
|
return void 0;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
// src/subscriptions.ts
|
|
60
|
+
var SubscriptionService = class {
|
|
61
|
+
constructor(client) {
|
|
62
|
+
this.client = client;
|
|
63
|
+
}
|
|
64
|
+
async list() {
|
|
65
|
+
return chunk2CGA3MUW_js.safe(this.client.get("/api/v1/subscriptions"));
|
|
66
|
+
}
|
|
67
|
+
async get(id) {
|
|
68
|
+
const encodedId = encodeURIComponent(id);
|
|
69
|
+
return chunk2CGA3MUW_js.safe(this.client.get(`/api/v1/subscriptions/${encodedId}`));
|
|
70
|
+
}
|
|
71
|
+
async cancel(id, reason) {
|
|
72
|
+
const encodedId = encodeURIComponent(id);
|
|
73
|
+
return chunk2CGA3MUW_js.safe(
|
|
74
|
+
this.client.post(`/api/v1/subscriptions/${encodedId}/cancel`, {
|
|
75
|
+
reason
|
|
76
|
+
})
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
async pause(id) {
|
|
80
|
+
const encodedId = encodeURIComponent(id);
|
|
81
|
+
return chunk2CGA3MUW_js.safe(
|
|
82
|
+
this.client.post(`/api/v1/subscriptions/${encodedId}/pause`)
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
async resume(id) {
|
|
86
|
+
const encodedId = encodeURIComponent(id);
|
|
87
|
+
return chunk2CGA3MUW_js.safe(
|
|
88
|
+
this.client.post(`/api/v1/subscriptions/${encodedId}/resume`)
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
async skipNextRenewal(id) {
|
|
92
|
+
const encodedId = encodeURIComponent(id);
|
|
93
|
+
return chunk2CGA3MUW_js.safe(
|
|
94
|
+
this.client.post(`/api/v1/subscriptions/${encodedId}/skip`)
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
59
99
|
// src/delivery.ts
|
|
60
100
|
var DeliveryService = class {
|
|
61
101
|
constructor(client) {
|
|
@@ -619,6 +659,12 @@ var CimplifyClient = class {
|
|
|
619
659
|
}
|
|
620
660
|
return this._orders;
|
|
621
661
|
}
|
|
662
|
+
get subscriptions() {
|
|
663
|
+
if (!this._subscriptions) {
|
|
664
|
+
this._subscriptions = new SubscriptionService(this);
|
|
665
|
+
}
|
|
666
|
+
return this._subscriptions;
|
|
667
|
+
}
|
|
622
668
|
get link() {
|
|
623
669
|
if (!this._link) {
|
|
624
670
|
this._link = new chunk2CGA3MUW_js.LinkService(this);
|
|
@@ -750,5 +796,6 @@ exports.DURATION_UNIT = DURATION_UNIT;
|
|
|
750
796
|
exports.DeliveryService = DeliveryService;
|
|
751
797
|
exports.PRODUCT_TYPE = PRODUCT_TYPE;
|
|
752
798
|
exports.RENDER_HINT = RENDER_HINT;
|
|
799
|
+
exports.SubscriptionService = SubscriptionService;
|
|
753
800
|
exports.createCimplifyClient = createCimplifyClient;
|
|
754
801
|
exports.getVariantDisplayName = getVariantDisplayName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Money, a as CurrencyCode, aW as PricePathTaxInfo, Q as QuantityPricingTier, N as Product, U as ProductWithDetails, bH as PaymentErrorDetails, bF as PaymentResponse, bG as PaymentStatusResponse } from './payment-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
1
|
+
import { M as Money, a as CurrencyCode, aW as PricePathTaxInfo, Q as QuantityPricingTier, N as Product, U as ProductWithDetails, bH as PaymentErrorDetails, bF as PaymentResponse, bG as PaymentStatusResponse } from './payment-k8feV7r8.js';
|
|
2
|
+
import { P as ProductWithPrice } from './price-4EK-0zF5.js';
|
|
3
3
|
import { CountryCode } from 'libphonenumber-js';
|
|
4
4
|
|
|
5
5
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as Category, N as Product, a5 as AddOnWithOptions, d as Pagination, h as CimplifyError, U as ProductWithDetails, X as ProductVariant, _ as VariantAxis, a3 as VariantAxisSelection, a4 as AddOn, ab as Collection, ag as BundleSummary, af as Bundle, as as Composite, az as ComponentSelectionInput, aA as CompositePriceResult, C as ChosenPrice, aH as ProductTaxonomy, aI as TaxonomyWithChildren, bN as EligiblePlansQuery, bM as ProductBillingPlan, aG as ProductTimeProfile, aJ as ProductAvailabilityNow, aL as Deal, aM as ProductDealInfo, aN as DiscountValidation, aP as TagsResponse, B as CustomAttributeDefinition, F as CustomAttributeValue, J as PropertyFacet, T as TaxonomyAttributeTemplate, L as KnowledgeArticle, br as UICart, bc as Cart, bd as CartItem, bv as CartSummary, bt as AddToCartInput, bu as UpdateCartItemInput, a$ as DiscountDetails, M as Money, a as CurrencyCode, bb as LineConfiguration, bA as AuthorizationType, bC as PaymentMethod, bE as InitializePaymentResult, bI as SubmitAuthorizationInput, bG as PaymentStatusResponse, t as DurationUnit } from './payment-
|
|
1
|
+
import { a9 as Category, N as Product, a5 as AddOnWithOptions, d as Pagination, h as CimplifyError, U as ProductWithDetails, X as ProductVariant, _ as VariantAxis, a3 as VariantAxisSelection, a4 as AddOn, ab as Collection, ag as BundleSummary, af as Bundle, as as Composite, az as ComponentSelectionInput, aA as CompositePriceResult, C as ChosenPrice, aH as ProductTaxonomy, aI as TaxonomyWithChildren, bN as EligiblePlansQuery, bM as ProductBillingPlan, aG as ProductTimeProfile, aJ as ProductAvailabilityNow, aL as Deal, aM as ProductDealInfo, aN as DiscountValidation, aP as TagsResponse, B as CustomAttributeDefinition, F as CustomAttributeValue, J as PropertyFacet, T as TaxonomyAttributeTemplate, L as KnowledgeArticle, br as UICart, bc as Cart, bd as CartItem, bv as CartSummary, bt as AddToCartInput, bu as UpdateCartItemInput, a$ as DiscountDetails, M as Money, a as CurrencyCode, bb as LineConfiguration, bA as AuthorizationType, bC as PaymentMethod, bE as InitializePaymentResult, bI as SubmitAuthorizationInput, bG as PaymentStatusResponse, t as DurationUnit, bQ as Subscription, bT as SubscriptionWithDetails } from './payment-k8feV7r8.mjs';
|
|
2
2
|
|
|
3
3
|
interface RequestContext {
|
|
4
4
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -1770,6 +1770,25 @@ declare class ActivityService {
|
|
|
1770
1770
|
private sendEvents;
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
|
+
declare class SubscriptionService {
|
|
1774
|
+
private client;
|
|
1775
|
+
constructor(client: CimplifyClient);
|
|
1776
|
+
list(): Promise<Result<Subscription[], CimplifyError>>;
|
|
1777
|
+
get(id: string): Promise<Result<SubscriptionWithDetails, CimplifyError>>;
|
|
1778
|
+
cancel(id: string, reason?: string): Promise<Result<{
|
|
1779
|
+
success: boolean;
|
|
1780
|
+
}, CimplifyError>>;
|
|
1781
|
+
pause(id: string): Promise<Result<{
|
|
1782
|
+
success: boolean;
|
|
1783
|
+
}, CimplifyError>>;
|
|
1784
|
+
resume(id: string): Promise<Result<{
|
|
1785
|
+
success: boolean;
|
|
1786
|
+
}, CimplifyError>>;
|
|
1787
|
+
skipNextRenewal(id: string): Promise<Result<{
|
|
1788
|
+
success: boolean;
|
|
1789
|
+
}, CimplifyError>>;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1773
1792
|
interface DeliveryFeeResponse {
|
|
1774
1793
|
serviceable: boolean;
|
|
1775
1794
|
fee: Money | null;
|
|
@@ -2142,6 +2161,7 @@ declare class CimplifyClient {
|
|
|
2142
2161
|
private _cart?;
|
|
2143
2162
|
private _checkout?;
|
|
2144
2163
|
private _orders?;
|
|
2164
|
+
private _subscriptions?;
|
|
2145
2165
|
private _link?;
|
|
2146
2166
|
private _auth?;
|
|
2147
2167
|
private _business?;
|
|
@@ -2186,6 +2206,7 @@ declare class CimplifyClient {
|
|
|
2186
2206
|
get cart(): CartOperations;
|
|
2187
2207
|
get checkout(): CheckoutService;
|
|
2188
2208
|
get orders(): OrderQueries;
|
|
2209
|
+
get subscriptions(): SubscriptionService;
|
|
2189
2210
|
get link(): LinkService;
|
|
2190
2211
|
get auth(): AuthService;
|
|
2191
2212
|
get business(): BusinessService;
|
|
@@ -2199,4 +2220,4 @@ declare class CimplifyClient {
|
|
|
2199
2220
|
}
|
|
2200
2221
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2201
2222
|
|
|
2202
|
-
export { type
|
|
2223
|
+
export { type ElementType as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, DeliveryService as E, type FetchQuoteInput as F, type GetProductsOptions as G, type DeliveryFeeResponse as H, InventoryService as I, type LiteBootstrap as J, type TableInfo as K, LinkService as L, CimplifyElements as M, CimplifyElement as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, createElements as V, MESSAGE_TYPES as W, EVENT_TYPES as X, ELEMENT_TYPES as Y, type ElementsOptions as Z, type ElementOptions as _, type CimplifyConfig as a, type OrderFulfillmentSummary as a$, type ElementEventType as a0, type CheckoutMode as a1, type CheckoutOrderType as a2, type CheckoutPaymentMethod as a3, type CheckoutStep as a4, type CheckoutFormData as a5, type CheckoutResult as a6, type NextAction as a7, type ProcessCheckoutOptions as a8, type ProcessCheckoutResult as a9, type Ok as aA, type Err as aB, ok as aC, err as aD, isOk as aE, isErr as aF, mapResult as aG, mapError as aH, flatMap as aI, getOrElse as aJ, unwrap as aK, toNullable as aL, fromPromise as aM, tryCatch as aN, combine as aO, combineObject as aP, type CatalogueResult as aQ, type CatalogueSnapshot as aR, type OrderStatus as aS, type PaymentState as aT, type OrderChannel as aU, type LineType as aV, type OrderLineState as aW, type OrderLineStatus as aX, type FulfillmentType as aY, type FulfillmentStatus as aZ, type FulfillmentLink as a_, type ProcessAndResolveOptions as aa, type CheckoutStatus as ab, type CheckoutStatusContext as ac, type AbortablePromise as ad, type MobileMoneyProvider as ae, type DeviceType as af, type ContactType as ag, CHECKOUT_MODE as ah, ORDER_TYPE as ai, PAYMENT_METHOD as aj, CHECKOUT_STEP as ak, PAYMENT_STATE as al, PICKUP_TIME_TYPE as am, MOBILE_MONEY_PROVIDER as an, AUTHORIZATION_TYPE as ao, DEVICE_TYPE as ap, CONTACT_TYPE as aq, LINK_QUERY as ar, LINK_MUTATION as as, AUTH_MUTATION as at, CHECKOUT_MUTATION as au, PAYMENT_MUTATION as av, ORDER_MUTATION as aw, DEFAULT_CURRENCY as ax, DEFAULT_COUNTRY as ay, type Result as az, CatalogueQueries as b, type SlotResourceInfo as b$, type FeeBearerType as b0, type AmountToPay as b1, type LineItem as b2, type Order as b3, type OrderHistory as b4, type OrderGroupStatus as b5, type OrderGroupPaymentState as b6, type OrderGroupPaymentStatus as b7, type OrderGroup as b8, type OrderGroupPayment as b9, type ProviderResolutionSource as bA, type DeliveryFeeDetails as bB, type RelationType as bC, type RelatedProduct as bD, type RelatedCandidate as bE, type RelatedProductsEnrichment as bF, type BusinessType as bG, type BusinessPreferences as bH, type Business as bI, type LocationTaxBehavior as bJ, type LocationTaxOverrides as bK, type Location as bL, type TimeRange as bM, type TimeRanges as bN, type LocationTimeProfile as bO, type Table as bP, type Room as bQ, type ServiceCharge as bR, type StorefrontBootstrap as bS, type BusinessWithLocations as bT, type LocationWithDetails as bU, type BusinessSettings as bV, type BusinessHours as bW, type CategoryInfo as bX, type Service as bY, type Staff as bZ, type TimeSlot as b_, type OrderSplitDetail as ba, type OrderGroupPaymentSummary as bb, type OrderGroupDetails as bc, type OrderPaymentEvent as bd, type OrderFilter as be, type CheckoutInput as bf, type UpdateOrderStatusInput as bg, type CancelOrderInput as bh, type RefundOrderInput as bi, type ServiceStatus as bj, type StaffRole as bk, type ReminderMethod as bl, type CustomerServicePreferences as bm, type BufferTimes as bn, type ReminderSettings as bo, type CancellationPolicy as bp, type ServiceNotes as bq, type PricingOverrides as br, type SchedulingMetadata as bs, type StaffAssignment as bt, type ResourceAssignment as bu, type SchedulingResult as bv, type DepositResult as bw, type ServiceScheduleRequest as bx, type StaffScheduleItem as by, type LocationAppointment as bz, createCimplifyClient as c, type AuthenticatedCustomer as c$, type SlotStaffInfo as c0, type AvailableSlot as c1, type DayAvailability as c2, type BookingStatus as c3, type Booking as c4, type BookingWithDetails as c5, type CustomerBookingServiceItem as c6, type CustomerBooking as c7, type GetAvailableSlotsInput as c8, type CheckSlotAvailabilityInput as c9, type LinkEnrollResult as cA, type EnrollAndLinkOrderResult as cB, type LinkSession as cC, type RevokeSessionResult as cD, type RevokeAllSessionsResult as cE, type RequestOtpInput as cF, type VerifyOtpInput as cG, type AuthResponse as cH, type PickupTimeType as cI, type PickupTime as cJ, type CheckoutAddressInfo as cK, type MobileMoneyDetails as cL, type CheckoutCustomerInfo as cM, type FxQuoteRequest as cN, type FxQuote as cO, type FxRateResponse as cP, type RequestContext as cQ, type RequestStartEvent as cR, type RequestSuccessEvent as cS, type RequestErrorEvent as cT, type RetryEvent as cU, type SessionChangeEvent as cV, type ObservabilityHooks as cW, type OrderType as cX, type ElementAppearance as cY, type AddressInfo as cZ, type PaymentMethodInfo as c_, type CheckSlotAvailabilityResult as ca, type RescheduleBookingInput as cb, type CancelBookingInput as cc, type CancelBookingResult as cd, type RescheduleBookingResult as ce, type ServiceAvailabilityParams as cf, type ServiceAvailabilityResult as cg, type StockStatus as ch, type StockLevel as ci, type ProductStock as cj, type VariantStock as ck, type LocationStock as cl, type AvailabilityResult as cm, type Customer as cn, type CustomerAddress as co, type CustomerMobileMoney as cp, type CustomerLinkPreferences as cq, type LinkData as cr, type CreateAddressInput as cs, type UpdateAddressInput as ct, type CreateMobileMoneyInput as cu, type EnrollmentData as cv, type AddressData as cw, type MobileMoneyData as cx, type EnrollAndLinkOrderInput as cy, type LinkStatusResult as cz, type QuoteBundleSelectionInput as d, type ElementsCustomerInfo as d0, type AuthenticatedData as d1, type ElementsCheckoutData as d2, type ElementsCheckoutResult as d3, type CheckoutCartItem as d4, type CheckoutCartData as d5, type ParentToIframeMessage as d6, type IframeToParentMessage as d7, type ElementEventHandler as d8, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, type ReorderResult as k, CheckoutService as l, generateIdempotencyKey as m, type GetOrdersOptions as n, type AuthStatus as o, type OtpResult as p, SchedulingService as q, LiteService as r, FxService as s, ActivityService as t, type TrackCategoryViewOptions as u, type SessionMessage as v, type SessionActivityData as w, type ActivityStateResponse as x, type ActivityRecommendation as y, type ActivityRecommendationsResponse as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Money, a as CurrencyCode, aW as PricePathTaxInfo, Q as QuantityPricingTier, N as Product, U as ProductWithDetails, bH as PaymentErrorDetails, bF as PaymentResponse, bG as PaymentStatusResponse } from './payment-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
1
|
+
import { M as Money, a as CurrencyCode, aW as PricePathTaxInfo, Q as QuantityPricingTier, N as Product, U as ProductWithDetails, bH as PaymentErrorDetails, bF as PaymentResponse, bG as PaymentStatusResponse } from './payment-k8feV7r8.mjs';
|
|
2
|
+
import { P as ProductWithPrice } from './price-Den0zv61.mjs';
|
|
3
3
|
import { CountryCode } from 'libphonenumber-js';
|
|
4
4
|
|
|
5
5
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as Category, N as Product, a5 as AddOnWithOptions, d as Pagination, h as CimplifyError, U as ProductWithDetails, X as ProductVariant, _ as VariantAxis, a3 as VariantAxisSelection, a4 as AddOn, ab as Collection, ag as BundleSummary, af as Bundle, as as Composite, az as ComponentSelectionInput, aA as CompositePriceResult, C as ChosenPrice, aH as ProductTaxonomy, aI as TaxonomyWithChildren, bN as EligiblePlansQuery, bM as ProductBillingPlan, aG as ProductTimeProfile, aJ as ProductAvailabilityNow, aL as Deal, aM as ProductDealInfo, aN as DiscountValidation, aP as TagsResponse, B as CustomAttributeDefinition, F as CustomAttributeValue, J as PropertyFacet, T as TaxonomyAttributeTemplate, L as KnowledgeArticle, br as UICart, bc as Cart, bd as CartItem, bv as CartSummary, bt as AddToCartInput, bu as UpdateCartItemInput, a$ as DiscountDetails, M as Money, a as CurrencyCode, bb as LineConfiguration, bA as AuthorizationType, bC as PaymentMethod, bE as InitializePaymentResult, bI as SubmitAuthorizationInput, bG as PaymentStatusResponse, t as DurationUnit } from './payment-
|
|
1
|
+
import { a9 as Category, N as Product, a5 as AddOnWithOptions, d as Pagination, h as CimplifyError, U as ProductWithDetails, X as ProductVariant, _ as VariantAxis, a3 as VariantAxisSelection, a4 as AddOn, ab as Collection, ag as BundleSummary, af as Bundle, as as Composite, az as ComponentSelectionInput, aA as CompositePriceResult, C as ChosenPrice, aH as ProductTaxonomy, aI as TaxonomyWithChildren, bN as EligiblePlansQuery, bM as ProductBillingPlan, aG as ProductTimeProfile, aJ as ProductAvailabilityNow, aL as Deal, aM as ProductDealInfo, aN as DiscountValidation, aP as TagsResponse, B as CustomAttributeDefinition, F as CustomAttributeValue, J as PropertyFacet, T as TaxonomyAttributeTemplate, L as KnowledgeArticle, br as UICart, bc as Cart, bd as CartItem, bv as CartSummary, bt as AddToCartInput, bu as UpdateCartItemInput, a$ as DiscountDetails, M as Money, a as CurrencyCode, bb as LineConfiguration, bA as AuthorizationType, bC as PaymentMethod, bE as InitializePaymentResult, bI as SubmitAuthorizationInput, bG as PaymentStatusResponse, t as DurationUnit, bQ as Subscription, bT as SubscriptionWithDetails } from './payment-k8feV7r8.js';
|
|
2
2
|
|
|
3
3
|
interface RequestContext {
|
|
4
4
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -1770,6 +1770,25 @@ declare class ActivityService {
|
|
|
1770
1770
|
private sendEvents;
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
|
+
declare class SubscriptionService {
|
|
1774
|
+
private client;
|
|
1775
|
+
constructor(client: CimplifyClient);
|
|
1776
|
+
list(): Promise<Result<Subscription[], CimplifyError>>;
|
|
1777
|
+
get(id: string): Promise<Result<SubscriptionWithDetails, CimplifyError>>;
|
|
1778
|
+
cancel(id: string, reason?: string): Promise<Result<{
|
|
1779
|
+
success: boolean;
|
|
1780
|
+
}, CimplifyError>>;
|
|
1781
|
+
pause(id: string): Promise<Result<{
|
|
1782
|
+
success: boolean;
|
|
1783
|
+
}, CimplifyError>>;
|
|
1784
|
+
resume(id: string): Promise<Result<{
|
|
1785
|
+
success: boolean;
|
|
1786
|
+
}, CimplifyError>>;
|
|
1787
|
+
skipNextRenewal(id: string): Promise<Result<{
|
|
1788
|
+
success: boolean;
|
|
1789
|
+
}, CimplifyError>>;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1773
1792
|
interface DeliveryFeeResponse {
|
|
1774
1793
|
serviceable: boolean;
|
|
1775
1794
|
fee: Money | null;
|
|
@@ -2142,6 +2161,7 @@ declare class CimplifyClient {
|
|
|
2142
2161
|
private _cart?;
|
|
2143
2162
|
private _checkout?;
|
|
2144
2163
|
private _orders?;
|
|
2164
|
+
private _subscriptions?;
|
|
2145
2165
|
private _link?;
|
|
2146
2166
|
private _auth?;
|
|
2147
2167
|
private _business?;
|
|
@@ -2186,6 +2206,7 @@ declare class CimplifyClient {
|
|
|
2186
2206
|
get cart(): CartOperations;
|
|
2187
2207
|
get checkout(): CheckoutService;
|
|
2188
2208
|
get orders(): OrderQueries;
|
|
2209
|
+
get subscriptions(): SubscriptionService;
|
|
2189
2210
|
get link(): LinkService;
|
|
2190
2211
|
get auth(): AuthService;
|
|
2191
2212
|
get business(): BusinessService;
|
|
@@ -2199,4 +2220,4 @@ declare class CimplifyClient {
|
|
|
2199
2220
|
}
|
|
2200
2221
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2201
2222
|
|
|
2202
|
-
export { type
|
|
2223
|
+
export { type ElementType as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, DeliveryService as E, type FetchQuoteInput as F, type GetProductsOptions as G, type DeliveryFeeResponse as H, InventoryService as I, type LiteBootstrap as J, type TableInfo as K, LinkService as L, CimplifyElements as M, CimplifyElement as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SubscriptionService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, createElements as V, MESSAGE_TYPES as W, EVENT_TYPES as X, ELEMENT_TYPES as Y, type ElementsOptions as Z, type ElementOptions as _, type CimplifyConfig as a, type OrderFulfillmentSummary as a$, type ElementEventType as a0, type CheckoutMode as a1, type CheckoutOrderType as a2, type CheckoutPaymentMethod as a3, type CheckoutStep as a4, type CheckoutFormData as a5, type CheckoutResult as a6, type NextAction as a7, type ProcessCheckoutOptions as a8, type ProcessCheckoutResult as a9, type Ok as aA, type Err as aB, ok as aC, err as aD, isOk as aE, isErr as aF, mapResult as aG, mapError as aH, flatMap as aI, getOrElse as aJ, unwrap as aK, toNullable as aL, fromPromise as aM, tryCatch as aN, combine as aO, combineObject as aP, type CatalogueResult as aQ, type CatalogueSnapshot as aR, type OrderStatus as aS, type PaymentState as aT, type OrderChannel as aU, type LineType as aV, type OrderLineState as aW, type OrderLineStatus as aX, type FulfillmentType as aY, type FulfillmentStatus as aZ, type FulfillmentLink as a_, type ProcessAndResolveOptions as aa, type CheckoutStatus as ab, type CheckoutStatusContext as ac, type AbortablePromise as ad, type MobileMoneyProvider as ae, type DeviceType as af, type ContactType as ag, CHECKOUT_MODE as ah, ORDER_TYPE as ai, PAYMENT_METHOD as aj, CHECKOUT_STEP as ak, PAYMENT_STATE as al, PICKUP_TIME_TYPE as am, MOBILE_MONEY_PROVIDER as an, AUTHORIZATION_TYPE as ao, DEVICE_TYPE as ap, CONTACT_TYPE as aq, LINK_QUERY as ar, LINK_MUTATION as as, AUTH_MUTATION as at, CHECKOUT_MUTATION as au, PAYMENT_MUTATION as av, ORDER_MUTATION as aw, DEFAULT_CURRENCY as ax, DEFAULT_COUNTRY as ay, type Result as az, CatalogueQueries as b, type SlotResourceInfo as b$, type FeeBearerType as b0, type AmountToPay as b1, type LineItem as b2, type Order as b3, type OrderHistory as b4, type OrderGroupStatus as b5, type OrderGroupPaymentState as b6, type OrderGroupPaymentStatus as b7, type OrderGroup as b8, type OrderGroupPayment as b9, type ProviderResolutionSource as bA, type DeliveryFeeDetails as bB, type RelationType as bC, type RelatedProduct as bD, type RelatedCandidate as bE, type RelatedProductsEnrichment as bF, type BusinessType as bG, type BusinessPreferences as bH, type Business as bI, type LocationTaxBehavior as bJ, type LocationTaxOverrides as bK, type Location as bL, type TimeRange as bM, type TimeRanges as bN, type LocationTimeProfile as bO, type Table as bP, type Room as bQ, type ServiceCharge as bR, type StorefrontBootstrap as bS, type BusinessWithLocations as bT, type LocationWithDetails as bU, type BusinessSettings as bV, type BusinessHours as bW, type CategoryInfo as bX, type Service as bY, type Staff as bZ, type TimeSlot as b_, type OrderSplitDetail as ba, type OrderGroupPaymentSummary as bb, type OrderGroupDetails as bc, type OrderPaymentEvent as bd, type OrderFilter as be, type CheckoutInput as bf, type UpdateOrderStatusInput as bg, type CancelOrderInput as bh, type RefundOrderInput as bi, type ServiceStatus as bj, type StaffRole as bk, type ReminderMethod as bl, type CustomerServicePreferences as bm, type BufferTimes as bn, type ReminderSettings as bo, type CancellationPolicy as bp, type ServiceNotes as bq, type PricingOverrides as br, type SchedulingMetadata as bs, type StaffAssignment as bt, type ResourceAssignment as bu, type SchedulingResult as bv, type DepositResult as bw, type ServiceScheduleRequest as bx, type StaffScheduleItem as by, type LocationAppointment as bz, createCimplifyClient as c, type AuthenticatedCustomer as c$, type SlotStaffInfo as c0, type AvailableSlot as c1, type DayAvailability as c2, type BookingStatus as c3, type Booking as c4, type BookingWithDetails as c5, type CustomerBookingServiceItem as c6, type CustomerBooking as c7, type GetAvailableSlotsInput as c8, type CheckSlotAvailabilityInput as c9, type LinkEnrollResult as cA, type EnrollAndLinkOrderResult as cB, type LinkSession as cC, type RevokeSessionResult as cD, type RevokeAllSessionsResult as cE, type RequestOtpInput as cF, type VerifyOtpInput as cG, type AuthResponse as cH, type PickupTimeType as cI, type PickupTime as cJ, type CheckoutAddressInfo as cK, type MobileMoneyDetails as cL, type CheckoutCustomerInfo as cM, type FxQuoteRequest as cN, type FxQuote as cO, type FxRateResponse as cP, type RequestContext as cQ, type RequestStartEvent as cR, type RequestSuccessEvent as cS, type RequestErrorEvent as cT, type RetryEvent as cU, type SessionChangeEvent as cV, type ObservabilityHooks as cW, type OrderType as cX, type ElementAppearance as cY, type AddressInfo as cZ, type PaymentMethodInfo as c_, type CheckSlotAvailabilityResult as ca, type RescheduleBookingInput as cb, type CancelBookingInput as cc, type CancelBookingResult as cd, type RescheduleBookingResult as ce, type ServiceAvailabilityParams as cf, type ServiceAvailabilityResult as cg, type StockStatus as ch, type StockLevel as ci, type ProductStock as cj, type VariantStock as ck, type LocationStock as cl, type AvailabilityResult as cm, type Customer as cn, type CustomerAddress as co, type CustomerMobileMoney as cp, type CustomerLinkPreferences as cq, type LinkData as cr, type CreateAddressInput as cs, type UpdateAddressInput as ct, type CreateMobileMoneyInput as cu, type EnrollmentData as cv, type AddressData as cw, type MobileMoneyData as cx, type EnrollAndLinkOrderInput as cy, type LinkStatusResult as cz, type QuoteBundleSelectionInput as d, type ElementsCustomerInfo as d0, type AuthenticatedData as d1, type ElementsCheckoutData as d2, type ElementsCheckoutResult as d3, type CheckoutCartItem as d4, type CheckoutCartData as d5, type ParentToIframeMessage as d6, type IframeToParentMessage as d7, type ElementEventHandler as d8, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, type ReorderResult as k, CheckoutService as l, generateIdempotencyKey as m, type GetOrdersOptions as n, type AuthStatus as o, type OtpResult as p, SchedulingService as q, LiteService as r, FxService as s, ActivityService as t, type TrackCategoryViewOptions as u, type SessionMessage as v, type SessionActivityData as w, type ActivityStateResponse as x, type ActivityRecommendation as y, type ActivityRecommendationsResponse as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { A as ApiError } from './payment-
|
|
3
|
-
export { a4 as AddOn, b1 as AddOnDetails, bo as AddOnGroupDetails, a6 as AddOnOption, bn as AddOnOptionDetails, a7 as AddOnOptionPrice, a5 as AddOnWithOptions, bt as AddToCartInput, bz as AddressAuthorizationData, aT as AdjustmentType, aZ as AppliedDiscount, w as AttributeAppliesTo, v as AttributeType, z as AttributeValidationRules, x as AttributeVisibility, bA as AuthorizationType, aY as BenefitType, bJ as BillingFrequency, bL as BillingMarkupType, bK as BillingPlanType, af as Bundle, aj as BundleComponentData, ak as BundleComponentInfo, am as BundleComponentVariantView, al as BundleComponentView, ae as BundlePriceType, ah as BundleProduct, b7 as BundleSelectionData, b4 as BundleSelectionInput, b6 as BundleStoredSelection, ag as BundleSummary, ai as BundleWithDetails, bc as Cart, b2 as CartAddOn, aR as CartChannel, bd as CartItem, bq as CartItemDetails, aQ as CartStatus, bv as CartSummary, be as CartTotals, a9 as Category, aa as CategorySummary, C as ChosenPrice, h as CimplifyError, ab as Collection, ad as CollectionProduct, ac as CollectionSummary, au as ComponentGroup, av as ComponentGroupWithComponents, aB as ComponentPriceBreakdown, b5 as ComponentSchedulingData, az as ComponentSelectionInput, ar as ComponentSourceType, as as Composite, ay as CompositeComponent, ax as CompositeComponentView, aw as CompositeGroupView, b9 as CompositePriceBreakdown, aA as CompositePriceResult, ap as CompositePricingMode, ba as CompositeSelectionData, az as CompositeSelectionInput, b8 as CompositeStoredSelection, at as CompositeWithDetails, a as CurrencyCode, B as CustomAttributeDefinition, F as CustomAttributeValue, u as DURATION_UNIT, aL as Deal, aK as DealBenefitType, s as DepositType, r as DigitalProductType, a_ as DiscountBreakdown, a$ as DiscountDetails, aN as DiscountValidation, bh as DisplayAddOn, bi as DisplayAddOnOption, bf as DisplayCart, bg as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bN as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, K as FacetValue, bO as FormattedPlanOption, aq as GroupPricingBehavior, bE as InitializePaymentResult, I as InventoryType, L as KnowledgeArticle, bb as LineConfiguration, aE as LocationProductPrice, y as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bD as Payment, bH as PaymentErrorDetails, bC as PaymentMethod, by as PaymentMethodType, bB as PaymentProcessingState, bx as PaymentProvider, bF as PaymentResponse, bw as PaymentStatus, bG as PaymentStatusResponse, aD as Price, aU as PriceAdjustment, aX as PriceDecisionPath, aC as PriceEntryType, aW as PricePathTaxInfo, aS as PriceSource, N as Product, a8 as ProductAddOn, aF as ProductAvailability, aJ as ProductAvailabilityNow, bM as ProductBillingPlan, aM as ProductDealInfo, H as ProductProperty, q as ProductRenderHint, aH as ProductTaxonomy, aG as ProductTimeProfile, o as ProductType, X as ProductVariant, a1 as ProductVariantValue, U as ProductWithDetails, J as PropertyFacet, G as PropertySource, Q as QuantityPricingTier, R as RENDER_HINT, O as RelatedProductView, S as SalesChannel, b0 as SelectedAddOnOption, bI as SubmitAuthorizationInput, aO as Tag, aP as TagsResponse, aV as TaxPathComponent, T as TaxonomyAttributeTemplate, aI as TaxonomyWithChildren, br as UICart, bj as UICartBusiness, bl as UICartCustomer, bk as UICartLocation, bm as UICartPricing, bs as UICartResponse, bu as UpdateCartItemInput, _ as VariantAxis, a3 as VariantAxisSelection, a0 as VariantAxisValue, ao as VariantAxisValueView, an as VariantAxisView, $ as VariantAxisWithValues, b3 as VariantDetails, bp as VariantDetailsDTO, Y as VariantDisplayAttribute, a2 as VariantLocationAvailability, V as VariantStrategy, W as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-
|
|
4
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-
|
|
1
|
+
export { ao as AUTHORIZATION_TYPE, at as AUTH_MUTATION, ad as AbortablePromise, y as ActivityRecommendation, z as ActivityRecommendationsResponse, t as ActivityService, x as ActivityStateResponse, cw as AddressData, cZ as AddressInfo, b1 as AmountToPay, cH as AuthResponse, A as AuthService, o as AuthStatus, c$ as AuthenticatedCustomer, d1 as AuthenticatedData, cm as AvailabilityResult, c1 as AvailableSlot, c4 as Booking, c3 as BookingStatus, c5 as BookingWithDetails, bn as BufferTimes, bI as Business, bW as BusinessHours, bH as BusinessPreferences, B as BusinessService, bV as BusinessSettings, bG as BusinessType, bT as BusinessWithLocations, ah as CHECKOUT_MODE, au as CHECKOUT_MUTATION, ak as CHECKOUT_STEP, aq as CONTACT_TYPE, cc as CancelBookingInput, cd as CancelBookingResult, bh as CancelOrderInput, bp as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aQ as CatalogueResult, aR as CatalogueSnapshot, bX as CategoryInfo, c9 as CheckSlotAvailabilityInput, ca as CheckSlotAvailabilityResult, cK as CheckoutAddressInfo, d5 as CheckoutCartData, d4 as CheckoutCartItem, cM as CheckoutCustomerInfo, a5 as CheckoutFormData, bf as CheckoutInput, a1 as CheckoutMode, l as CheckoutOperations, a2 as CheckoutOrderType, a3 as CheckoutPaymentMethod, a6 as CheckoutResult, l as CheckoutService, ab as CheckoutStatus, ac as CheckoutStatusContext, a4 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, N as CimplifyElement, M as CimplifyElements, ag as ContactType, cs as CreateAddressInput, cu as CreateMobileMoneyInput, cn as Customer, co as CustomerAddress, c7 as CustomerBooking, c6 as CustomerBookingServiceItem, cq as CustomerLinkPreferences, cp as CustomerMobileMoney, bm as CustomerServicePreferences, ay as DEFAULT_COUNTRY, ax as DEFAULT_CURRENCY, ap as DEVICE_TYPE, c2 as DayAvailability, bB as DeliveryFeeDetails, H as DeliveryFeeResponse, E as DeliveryService, bw as DepositResult, af as DeviceType, D as DismissMessageResponse, Y as ELEMENT_TYPES, X as EVENT_TYPES, cY as ElementAppearance, d8 as ElementEventHandler, a0 as ElementEventType, _ as ElementOptions, $ as ElementType, d2 as ElementsCheckoutData, d3 as ElementsCheckoutResult, d0 as ElementsCustomerInfo, Z as ElementsOptions, cy as EnrollAndLinkOrderInput, cB as EnrollAndLinkOrderResult, cv as EnrollmentData, aB as Err, b0 as FeeBearerType, F as FetchQuoteInput, a_ as FulfillmentLink, aZ as FulfillmentStatus, aY as FulfillmentType, cO as FxQuote, cN as FxQuoteRequest, cP as FxRateResponse, s as FxService, c8 as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, d7 as IframeToParentMessage, I as InventoryService, as as LINK_MUTATION, ar as LINK_QUERY, b2 as LineItem, aV as LineType, cr as LinkData, cA as LinkEnrollResult, L as LinkService, cC as LinkSession, cz as LinkStatusResult, J as LiteBootstrap, r as LiteService, bL as Location, bz as LocationAppointment, cl as LocationStock, bJ as LocationTaxBehavior, bK as LocationTaxOverrides, bO as LocationTimeProfile, bU as LocationWithDetails, W as MESSAGE_TYPES, an as MOBILE_MONEY_PROVIDER, cx as MobileMoneyData, cL as MobileMoneyDetails, ae as MobileMoneyProvider, a7 as NextAction, aw as ORDER_MUTATION, ai as ORDER_TYPE, cW as ObservabilityHooks, aA as Ok, b3 as Order, aU as OrderChannel, be as OrderFilter, a$ as OrderFulfillmentSummary, b8 as OrderGroup, bc as OrderGroupDetails, b9 as OrderGroupPayment, b6 as OrderGroupPaymentState, b7 as OrderGroupPaymentStatus, bb as OrderGroupPaymentSummary, b5 as OrderGroupStatus, b4 as OrderHistory, aW as OrderLineState, aX as OrderLineStatus, bd as OrderPaymentEvent, O as OrderQueries, ba as OrderSplitDetail, aS as OrderStatus, cX as OrderType, p as OtpResult, aj as PAYMENT_METHOD, av as PAYMENT_MUTATION, al as PAYMENT_STATE, am as PICKUP_TIME_TYPE, d6 as ParentToIframeMessage, c_ as PaymentMethodInfo, aT as PaymentState, cJ as PickupTime, cI as PickupTimeType, P as PriceQuote, br as PricingOverrides, aa as ProcessAndResolveOptions, a8 as ProcessCheckoutOptions, a9 as ProcessCheckoutResult, cj as ProductStock, bA as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bi as RefundOrderInput, bE as RelatedCandidate, bD as RelatedProduct, bF as RelatedProductsEnrichment, bC as RelationType, bl as ReminderMethod, bo as ReminderSettings, k as ReorderResult, cQ as RequestContext, cT as RequestErrorEvent, cF as RequestOtpInput, h as RequestSource, cR as RequestStartEvent, cS as RequestSuccessEvent, cb as RescheduleBookingInput, ce as RescheduleBookingResult, bu as ResourceAssignment, az as Result, cU as RetryEvent, cE as RevokeAllSessionsResult, cD as RevokeSessionResult, bQ as Room, bs as SchedulingMetadata, bv as SchedulingResult, q as SchedulingService, bY as Service, cf as ServiceAvailabilityParams, cg as ServiceAvailabilityResult, bR as ServiceCharge, bq as ServiceNotes, bx as ServiceScheduleRequest, bj as ServiceStatus, w as SessionActivityData, cV as SessionChangeEvent, v as SessionMessage, b$ as SlotResourceInfo, c0 as SlotStaffInfo, bZ as Staff, bt as StaffAssignment, bk as StaffRole, by as StaffScheduleItem, ci as StockLevel, ch as StockStatus, bS as StorefrontBootstrap, S as SubscriptionService, bP as Table, K as TableInfo, bM as TimeRange, bN as TimeRanges, b_ as TimeSlot, u as TrackCategoryViewOptions, T as TrackProductViewOptions, ct as UpdateAddressInput, bg as UpdateOrderStatusInput, U as UpdateProfileInput, ck as VariantStock, cG as VerifyOtpInput, aO as combine, aP as combineObject, c as createCimplifyClient, V as createElements, aD as err, aI as flatMap, aM as fromPromise, m as generateIdempotencyKey, aJ as getOrElse, aF as isErr, aE as isOk, aH as mapError, aG as mapResult, aC as ok, aL as toNullable, aN as tryCatch, aK as unwrap } from './index-ClrQ0yTH.mjs';
|
|
2
|
+
import { A as ApiError } from './payment-k8feV7r8.mjs';
|
|
3
|
+
export { a4 as AddOn, b1 as AddOnDetails, bo as AddOnGroupDetails, a6 as AddOnOption, bn as AddOnOptionDetails, a7 as AddOnOptionPrice, a5 as AddOnWithOptions, bt as AddToCartInput, bz as AddressAuthorizationData, aT as AdjustmentType, aZ as AppliedDiscount, w as AttributeAppliesTo, v as AttributeType, z as AttributeValidationRules, x as AttributeVisibility, bA as AuthorizationType, aY as BenefitType, bJ as BillingFrequency, bL as BillingMarkupType, bK as BillingPlanType, af as Bundle, aj as BundleComponentData, ak as BundleComponentInfo, am as BundleComponentVariantView, al as BundleComponentView, ae as BundlePriceType, ah as BundleProduct, b7 as BundleSelectionData, b4 as BundleSelectionInput, b6 as BundleStoredSelection, ag as BundleSummary, ai as BundleWithDetails, bc as Cart, b2 as CartAddOn, aR as CartChannel, bd as CartItem, bq as CartItemDetails, aQ as CartStatus, bv as CartSummary, be as CartTotals, a9 as Category, aa as CategorySummary, C as ChosenPrice, h as CimplifyError, ab as Collection, ad as CollectionProduct, ac as CollectionSummary, au as ComponentGroup, av as ComponentGroupWithComponents, aB as ComponentPriceBreakdown, b5 as ComponentSchedulingData, az as ComponentSelectionInput, ar as ComponentSourceType, as as Composite, ay as CompositeComponent, ax as CompositeComponentView, aw as CompositeGroupView, b9 as CompositePriceBreakdown, aA as CompositePriceResult, ap as CompositePricingMode, ba as CompositeSelectionData, az as CompositeSelectionInput, b8 as CompositeStoredSelection, at as CompositeWithDetails, a as CurrencyCode, B as CustomAttributeDefinition, F as CustomAttributeValue, u as DURATION_UNIT, aL as Deal, aK as DealBenefitType, s as DepositType, r as DigitalProductType, a_ as DiscountBreakdown, a$ as DiscountDetails, aN as DiscountValidation, bh as DisplayAddOn, bi as DisplayAddOnOption, bf as DisplayCart, bg as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bN as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, K as FacetValue, bO as FormattedPlanOption, aq as GroupPricingBehavior, bE as InitializePaymentResult, I as InventoryType, L as KnowledgeArticle, bb as LineConfiguration, aE as LocationProductPrice, y as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bD as Payment, bH as PaymentErrorDetails, bC as PaymentMethod, by as PaymentMethodType, bB as PaymentProcessingState, bx as PaymentProvider, bF as PaymentResponse, bw as PaymentStatus, bG as PaymentStatusResponse, aD as Price, aU as PriceAdjustment, aX as PriceDecisionPath, aC as PriceEntryType, aW as PricePathTaxInfo, aS as PriceSource, N as Product, a8 as ProductAddOn, aF as ProductAvailability, aJ as ProductAvailabilityNow, bM as ProductBillingPlan, aM as ProductDealInfo, H as ProductProperty, q as ProductRenderHint, aH as ProductTaxonomy, aG as ProductTimeProfile, o as ProductType, X as ProductVariant, a1 as ProductVariantValue, U as ProductWithDetails, J as PropertyFacet, G as PropertySource, Q as QuantityPricingTier, R as RENDER_HINT, O as RelatedProductView, S as SalesChannel, b0 as SelectedAddOnOption, bI as SubmitAuthorizationInput, bQ as Subscription, bS as SubscriptionInvoice, bR as SubscriptionItem, bP as SubscriptionStatus, bT as SubscriptionWithDetails, aO as Tag, aP as TagsResponse, aV as TaxPathComponent, T as TaxonomyAttributeTemplate, aI as TaxonomyWithChildren, br as UICart, bj as UICartBusiness, bl as UICartCustomer, bk as UICartLocation, bm as UICartPricing, bs as UICartResponse, bu as UpdateCartItemInput, _ as VariantAxis, a3 as VariantAxisSelection, a0 as VariantAxisValue, ao as VariantAxisValueView, an as VariantAxisView, $ as VariantAxisWithValues, b3 as VariantDetails, bp as VariantDetailsDTO, Y as VariantDisplayAttribute, a2 as VariantLocationAvailability, V as VariantStrategy, W as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-k8feV7r8.mjs';
|
|
4
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-EGhIxwfI.mjs';
|
|
5
5
|
export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
|
|
6
|
-
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
6
|
+
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-Den0zv61.mjs';
|
|
7
7
|
import 'libphonenumber-js';
|
|
8
8
|
|
|
9
9
|
interface CustomerGroup {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { A as ApiError } from './payment-
|
|
3
|
-
export { a4 as AddOn, b1 as AddOnDetails, bo as AddOnGroupDetails, a6 as AddOnOption, bn as AddOnOptionDetails, a7 as AddOnOptionPrice, a5 as AddOnWithOptions, bt as AddToCartInput, bz as AddressAuthorizationData, aT as AdjustmentType, aZ as AppliedDiscount, w as AttributeAppliesTo, v as AttributeType, z as AttributeValidationRules, x as AttributeVisibility, bA as AuthorizationType, aY as BenefitType, bJ as BillingFrequency, bL as BillingMarkupType, bK as BillingPlanType, af as Bundle, aj as BundleComponentData, ak as BundleComponentInfo, am as BundleComponentVariantView, al as BundleComponentView, ae as BundlePriceType, ah as BundleProduct, b7 as BundleSelectionData, b4 as BundleSelectionInput, b6 as BundleStoredSelection, ag as BundleSummary, ai as BundleWithDetails, bc as Cart, b2 as CartAddOn, aR as CartChannel, bd as CartItem, bq as CartItemDetails, aQ as CartStatus, bv as CartSummary, be as CartTotals, a9 as Category, aa as CategorySummary, C as ChosenPrice, h as CimplifyError, ab as Collection, ad as CollectionProduct, ac as CollectionSummary, au as ComponentGroup, av as ComponentGroupWithComponents, aB as ComponentPriceBreakdown, b5 as ComponentSchedulingData, az as ComponentSelectionInput, ar as ComponentSourceType, as as Composite, ay as CompositeComponent, ax as CompositeComponentView, aw as CompositeGroupView, b9 as CompositePriceBreakdown, aA as CompositePriceResult, ap as CompositePricingMode, ba as CompositeSelectionData, az as CompositeSelectionInput, b8 as CompositeStoredSelection, at as CompositeWithDetails, a as CurrencyCode, B as CustomAttributeDefinition, F as CustomAttributeValue, u as DURATION_UNIT, aL as Deal, aK as DealBenefitType, s as DepositType, r as DigitalProductType, a_ as DiscountBreakdown, a$ as DiscountDetails, aN as DiscountValidation, bh as DisplayAddOn, bi as DisplayAddOnOption, bf as DisplayCart, bg as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bN as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, K as FacetValue, bO as FormattedPlanOption, aq as GroupPricingBehavior, bE as InitializePaymentResult, I as InventoryType, L as KnowledgeArticle, bb as LineConfiguration, aE as LocationProductPrice, y as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bD as Payment, bH as PaymentErrorDetails, bC as PaymentMethod, by as PaymentMethodType, bB as PaymentProcessingState, bx as PaymentProvider, bF as PaymentResponse, bw as PaymentStatus, bG as PaymentStatusResponse, aD as Price, aU as PriceAdjustment, aX as PriceDecisionPath, aC as PriceEntryType, aW as PricePathTaxInfo, aS as PriceSource, N as Product, a8 as ProductAddOn, aF as ProductAvailability, aJ as ProductAvailabilityNow, bM as ProductBillingPlan, aM as ProductDealInfo, H as ProductProperty, q as ProductRenderHint, aH as ProductTaxonomy, aG as ProductTimeProfile, o as ProductType, X as ProductVariant, a1 as ProductVariantValue, U as ProductWithDetails, J as PropertyFacet, G as PropertySource, Q as QuantityPricingTier, R as RENDER_HINT, O as RelatedProductView, S as SalesChannel, b0 as SelectedAddOnOption, bI as SubmitAuthorizationInput, aO as Tag, aP as TagsResponse, aV as TaxPathComponent, T as TaxonomyAttributeTemplate, aI as TaxonomyWithChildren, br as UICart, bj as UICartBusiness, bl as UICartCustomer, bk as UICartLocation, bm as UICartPricing, bs as UICartResponse, bu as UpdateCartItemInput, _ as VariantAxis, a3 as VariantAxisSelection, a0 as VariantAxisValue, ao as VariantAxisValueView, an as VariantAxisView, $ as VariantAxisWithValues, b3 as VariantDetails, bp as VariantDetailsDTO, Y as VariantDisplayAttribute, a2 as VariantLocationAvailability, V as VariantStrategy, W as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-
|
|
4
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-
|
|
1
|
+
export { ao as AUTHORIZATION_TYPE, at as AUTH_MUTATION, ad as AbortablePromise, y as ActivityRecommendation, z as ActivityRecommendationsResponse, t as ActivityService, x as ActivityStateResponse, cw as AddressData, cZ as AddressInfo, b1 as AmountToPay, cH as AuthResponse, A as AuthService, o as AuthStatus, c$ as AuthenticatedCustomer, d1 as AuthenticatedData, cm as AvailabilityResult, c1 as AvailableSlot, c4 as Booking, c3 as BookingStatus, c5 as BookingWithDetails, bn as BufferTimes, bI as Business, bW as BusinessHours, bH as BusinessPreferences, B as BusinessService, bV as BusinessSettings, bG as BusinessType, bT as BusinessWithLocations, ah as CHECKOUT_MODE, au as CHECKOUT_MUTATION, ak as CHECKOUT_STEP, aq as CONTACT_TYPE, cc as CancelBookingInput, cd as CancelBookingResult, bh as CancelOrderInput, bp as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aQ as CatalogueResult, aR as CatalogueSnapshot, bX as CategoryInfo, c9 as CheckSlotAvailabilityInput, ca as CheckSlotAvailabilityResult, cK as CheckoutAddressInfo, d5 as CheckoutCartData, d4 as CheckoutCartItem, cM as CheckoutCustomerInfo, a5 as CheckoutFormData, bf as CheckoutInput, a1 as CheckoutMode, l as CheckoutOperations, a2 as CheckoutOrderType, a3 as CheckoutPaymentMethod, a6 as CheckoutResult, l as CheckoutService, ab as CheckoutStatus, ac as CheckoutStatusContext, a4 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, N as CimplifyElement, M as CimplifyElements, ag as ContactType, cs as CreateAddressInput, cu as CreateMobileMoneyInput, cn as Customer, co as CustomerAddress, c7 as CustomerBooking, c6 as CustomerBookingServiceItem, cq as CustomerLinkPreferences, cp as CustomerMobileMoney, bm as CustomerServicePreferences, ay as DEFAULT_COUNTRY, ax as DEFAULT_CURRENCY, ap as DEVICE_TYPE, c2 as DayAvailability, bB as DeliveryFeeDetails, H as DeliveryFeeResponse, E as DeliveryService, bw as DepositResult, af as DeviceType, D as DismissMessageResponse, Y as ELEMENT_TYPES, X as EVENT_TYPES, cY as ElementAppearance, d8 as ElementEventHandler, a0 as ElementEventType, _ as ElementOptions, $ as ElementType, d2 as ElementsCheckoutData, d3 as ElementsCheckoutResult, d0 as ElementsCustomerInfo, Z as ElementsOptions, cy as EnrollAndLinkOrderInput, cB as EnrollAndLinkOrderResult, cv as EnrollmentData, aB as Err, b0 as FeeBearerType, F as FetchQuoteInput, a_ as FulfillmentLink, aZ as FulfillmentStatus, aY as FulfillmentType, cO as FxQuote, cN as FxQuoteRequest, cP as FxRateResponse, s as FxService, c8 as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, d7 as IframeToParentMessage, I as InventoryService, as as LINK_MUTATION, ar as LINK_QUERY, b2 as LineItem, aV as LineType, cr as LinkData, cA as LinkEnrollResult, L as LinkService, cC as LinkSession, cz as LinkStatusResult, J as LiteBootstrap, r as LiteService, bL as Location, bz as LocationAppointment, cl as LocationStock, bJ as LocationTaxBehavior, bK as LocationTaxOverrides, bO as LocationTimeProfile, bU as LocationWithDetails, W as MESSAGE_TYPES, an as MOBILE_MONEY_PROVIDER, cx as MobileMoneyData, cL as MobileMoneyDetails, ae as MobileMoneyProvider, a7 as NextAction, aw as ORDER_MUTATION, ai as ORDER_TYPE, cW as ObservabilityHooks, aA as Ok, b3 as Order, aU as OrderChannel, be as OrderFilter, a$ as OrderFulfillmentSummary, b8 as OrderGroup, bc as OrderGroupDetails, b9 as OrderGroupPayment, b6 as OrderGroupPaymentState, b7 as OrderGroupPaymentStatus, bb as OrderGroupPaymentSummary, b5 as OrderGroupStatus, b4 as OrderHistory, aW as OrderLineState, aX as OrderLineStatus, bd as OrderPaymentEvent, O as OrderQueries, ba as OrderSplitDetail, aS as OrderStatus, cX as OrderType, p as OtpResult, aj as PAYMENT_METHOD, av as PAYMENT_MUTATION, al as PAYMENT_STATE, am as PICKUP_TIME_TYPE, d6 as ParentToIframeMessage, c_ as PaymentMethodInfo, aT as PaymentState, cJ as PickupTime, cI as PickupTimeType, P as PriceQuote, br as PricingOverrides, aa as ProcessAndResolveOptions, a8 as ProcessCheckoutOptions, a9 as ProcessCheckoutResult, cj as ProductStock, bA as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bi as RefundOrderInput, bE as RelatedCandidate, bD as RelatedProduct, bF as RelatedProductsEnrichment, bC as RelationType, bl as ReminderMethod, bo as ReminderSettings, k as ReorderResult, cQ as RequestContext, cT as RequestErrorEvent, cF as RequestOtpInput, h as RequestSource, cR as RequestStartEvent, cS as RequestSuccessEvent, cb as RescheduleBookingInput, ce as RescheduleBookingResult, bu as ResourceAssignment, az as Result, cU as RetryEvent, cE as RevokeAllSessionsResult, cD as RevokeSessionResult, bQ as Room, bs as SchedulingMetadata, bv as SchedulingResult, q as SchedulingService, bY as Service, cf as ServiceAvailabilityParams, cg as ServiceAvailabilityResult, bR as ServiceCharge, bq as ServiceNotes, bx as ServiceScheduleRequest, bj as ServiceStatus, w as SessionActivityData, cV as SessionChangeEvent, v as SessionMessage, b$ as SlotResourceInfo, c0 as SlotStaffInfo, bZ as Staff, bt as StaffAssignment, bk as StaffRole, by as StaffScheduleItem, ci as StockLevel, ch as StockStatus, bS as StorefrontBootstrap, S as SubscriptionService, bP as Table, K as TableInfo, bM as TimeRange, bN as TimeRanges, b_ as TimeSlot, u as TrackCategoryViewOptions, T as TrackProductViewOptions, ct as UpdateAddressInput, bg as UpdateOrderStatusInput, U as UpdateProfileInput, ck as VariantStock, cG as VerifyOtpInput, aO as combine, aP as combineObject, c as createCimplifyClient, V as createElements, aD as err, aI as flatMap, aM as fromPromise, m as generateIdempotencyKey, aJ as getOrElse, aF as isErr, aE as isOk, aH as mapError, aG as mapResult, aC as ok, aL as toNullable, aN as tryCatch, aK as unwrap } from './index-iHKILmG9.js';
|
|
2
|
+
import { A as ApiError } from './payment-k8feV7r8.js';
|
|
3
|
+
export { a4 as AddOn, b1 as AddOnDetails, bo as AddOnGroupDetails, a6 as AddOnOption, bn as AddOnOptionDetails, a7 as AddOnOptionPrice, a5 as AddOnWithOptions, bt as AddToCartInput, bz as AddressAuthorizationData, aT as AdjustmentType, aZ as AppliedDiscount, w as AttributeAppliesTo, v as AttributeType, z as AttributeValidationRules, x as AttributeVisibility, bA as AuthorizationType, aY as BenefitType, bJ as BillingFrequency, bL as BillingMarkupType, bK as BillingPlanType, af as Bundle, aj as BundleComponentData, ak as BundleComponentInfo, am as BundleComponentVariantView, al as BundleComponentView, ae as BundlePriceType, ah as BundleProduct, b7 as BundleSelectionData, b4 as BundleSelectionInput, b6 as BundleStoredSelection, ag as BundleSummary, ai as BundleWithDetails, bc as Cart, b2 as CartAddOn, aR as CartChannel, bd as CartItem, bq as CartItemDetails, aQ as CartStatus, bv as CartSummary, be as CartTotals, a9 as Category, aa as CategorySummary, C as ChosenPrice, h as CimplifyError, ab as Collection, ad as CollectionProduct, ac as CollectionSummary, au as ComponentGroup, av as ComponentGroupWithComponents, aB as ComponentPriceBreakdown, b5 as ComponentSchedulingData, az as ComponentSelectionInput, ar as ComponentSourceType, as as Composite, ay as CompositeComponent, ax as CompositeComponentView, aw as CompositeGroupView, b9 as CompositePriceBreakdown, aA as CompositePriceResult, ap as CompositePricingMode, ba as CompositeSelectionData, az as CompositeSelectionInput, b8 as CompositeStoredSelection, at as CompositeWithDetails, a as CurrencyCode, B as CustomAttributeDefinition, F as CustomAttributeValue, u as DURATION_UNIT, aL as Deal, aK as DealBenefitType, s as DepositType, r as DigitalProductType, a_ as DiscountBreakdown, a$ as DiscountDetails, aN as DiscountValidation, bh as DisplayAddOn, bi as DisplayAddOnOption, bf as DisplayCart, bg as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bN as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, K as FacetValue, bO as FormattedPlanOption, aq as GroupPricingBehavior, bE as InitializePaymentResult, I as InventoryType, L as KnowledgeArticle, bb as LineConfiguration, aE as LocationProductPrice, y as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bD as Payment, bH as PaymentErrorDetails, bC as PaymentMethod, by as PaymentMethodType, bB as PaymentProcessingState, bx as PaymentProvider, bF as PaymentResponse, bw as PaymentStatus, bG as PaymentStatusResponse, aD as Price, aU as PriceAdjustment, aX as PriceDecisionPath, aC as PriceEntryType, aW as PricePathTaxInfo, aS as PriceSource, N as Product, a8 as ProductAddOn, aF as ProductAvailability, aJ as ProductAvailabilityNow, bM as ProductBillingPlan, aM as ProductDealInfo, H as ProductProperty, q as ProductRenderHint, aH as ProductTaxonomy, aG as ProductTimeProfile, o as ProductType, X as ProductVariant, a1 as ProductVariantValue, U as ProductWithDetails, J as PropertyFacet, G as PropertySource, Q as QuantityPricingTier, R as RENDER_HINT, O as RelatedProductView, S as SalesChannel, b0 as SelectedAddOnOption, bI as SubmitAuthorizationInput, bQ as Subscription, bS as SubscriptionInvoice, bR as SubscriptionItem, bP as SubscriptionStatus, bT as SubscriptionWithDetails, aO as Tag, aP as TagsResponse, aV as TaxPathComponent, T as TaxonomyAttributeTemplate, aI as TaxonomyWithChildren, br as UICart, bj as UICartBusiness, bl as UICartCustomer, bk as UICartLocation, bm as UICartPricing, bs as UICartResponse, bu as UpdateCartItemInput, _ as VariantAxis, a3 as VariantAxisSelection, a0 as VariantAxisValue, ao as VariantAxisValueView, an as VariantAxisView, $ as VariantAxisWithValues, b3 as VariantDetails, bp as VariantDetailsDTO, Y as VariantDisplayAttribute, a2 as VariantLocationAvailability, V as VariantStrategy, W as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-k8feV7r8.js';
|
|
4
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-C2U1gHyP.js';
|
|
5
5
|
export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
|
|
6
|
-
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
6
|
+
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-4EK-0zF5.js';
|
|
7
7
|
import 'libphonenumber-js';
|
|
8
8
|
|
|
9
9
|
interface CustomerGroup {
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGS7AX6B3_js = require('./chunk-GS7AX6B3.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
5
|
var chunk2CGA3MUW_js = require('./chunk-2CGA3MUW.js');
|
|
6
6
|
var chunkPEDLCL72_js = require('./chunk-PEDLCL72.js');
|
|
@@ -9,35 +9,39 @@ var chunkPEDLCL72_js = require('./chunk-PEDLCL72.js');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ActivityService", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkGS7AX6B3_js.ActivityService; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "CimplifyClient", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkGS7AX6B3_js.CimplifyClient; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "DURATION_UNIT", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkGS7AX6B3_js.DURATION_UNIT; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "DeliveryService", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkGS7AX6B3_js.DeliveryService; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "PRODUCT_TYPE", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkGS7AX6B3_js.PRODUCT_TYPE; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "RENDER_HINT", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkGS7AX6B3_js.RENDER_HINT; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "SubscriptionService", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunkGS7AX6B3_js.SubscriptionService; }
|
|
33
37
|
});
|
|
34
38
|
Object.defineProperty(exports, "createCimplifyClient", {
|
|
35
39
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkGS7AX6B3_js.createCimplifyClient; }
|
|
37
41
|
});
|
|
38
42
|
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
39
43
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkGS7AX6B3_js.getVariantDisplayName; }
|
|
41
45
|
});
|
|
42
46
|
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
43
47
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, PRODUCT_TYPE, RENDER_HINT, createCimplifyClient, getVariantDisplayName } from './chunk-
|
|
1
|
+
export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, PRODUCT_TYPE, RENDER_HINT, SubscriptionService, createCimplifyClient, getVariantDisplayName } from './chunk-FFUCCUG4.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
3
|
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-3J4PPSMI.mjs';
|
|
4
4
|
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-E3HC2YAE.mjs';
|