@cimplify/sdk 0.92.0 → 0.93.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 +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-OAHSF542.js → chunk-6Y7KC5YZ.js} +11 -0
- package/dist/{chunk-3MBMIEWT.js → chunk-AWNWP5J3.js} +4 -4
- package/dist/{chunk-3XD2FVP4.mjs → chunk-FKARGZK3.mjs} +195 -60
- package/dist/{chunk-DCRN67NO.js → chunk-QLGZIBRO.js} +237 -102
- package/dist/{chunk-54H2YYIW.mjs → chunk-QXWX7CD2.mjs} +2 -2
- package/dist/{chunk-IVJEUGWF.js → chunk-VEOAMBEX.js} +1 -3
- package/dist/{chunk-T7LDBZZZ.mjs → chunk-VUSHG3HA.mjs} +1 -3
- package/dist/{chunk-PYBFTMHI.mjs → chunk-X36FZZT6.mjs} +11 -0
- package/dist/{client-CeW3acve.d.ts → client-BTL9d_nN.d.mts} +29 -2
- package/dist/{client-BQbSKlHS.d.mts → client-BX30FAWZ.d.ts} +29 -2
- package/dist/{client-Bw4HtLP1.d.mts → client-Bhe2TnFW.d.mts} +2 -2
- package/dist/{client-Otzv_rgP.d.ts → client-DrkuEK_I.d.ts} +2 -2
- package/dist/{index-CmIboQjl.d.mts → index-BuNjyfaV.d.mts} +3 -3
- package/dist/{index-DgoRwz8l.d.ts → index-D-w5h82t.d.ts} +3 -3
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +69 -69
- package/dist/index.mjs +3 -3
- package/dist/mock/cli.mjs +11 -0
- package/dist/mock/library.js +11 -0
- package/dist/mock/library.mjs +11 -0
- package/dist/mock/msw.js +11 -0
- package/dist/mock/msw.mjs +11 -0
- package/dist/{payment-Cq8FT1B6.d.ts → payment-By0JidTe.d.ts} +1 -1
- package/dist/{payment-BFtLqiG2.d.mts → payment-pKPpaORI.d.mts} +1 -1
- package/dist/{price-DaFXT-Lr.d.ts → price-23RNXftz.d.ts} +1 -1
- package/dist/{price-DleDWk_s.d.mts → price-BvRtp6ak.d.mts} +1 -1
- package/dist/{product-bZ8G5Z8D.d.mts → product-O8-wcHSe.d.mts} +11 -0
- package/dist/{product-bZ8G5Z8D.d.ts → product-O8-wcHSe.d.ts} +11 -0
- package/dist/react.d.mts +13 -5
- package/dist/react.d.ts +13 -5
- package/dist/react.js +174 -75
- package/dist/react.mjs +156 -58
- package/dist/{server-D-iK-bNt.d.mts → server-BN9ZCAKT.d.mts} +5 -1
- package/dist/{server-DwsY9hlX.d.ts → server-DDGbfW_S.d.ts} +5 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +7 -7
- package/dist/server.mjs +2 -2
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +4 -4
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +79 -79
- package/dist/testing.mjs +5 -5
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +1 -1
- package/registry/chat-widget.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createMockApp } from './chunk-
|
|
2
|
-
import { createCimplifyClient } from './chunk-
|
|
1
|
+
import { createMockApp } from './chunk-X36FZZT6.mjs';
|
|
2
|
+
import { createCimplifyClient } from './chunk-FKARGZK3.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var cimplifyRegistry = z.registry();
|
|
@@ -1825,9 +1825,7 @@ var LinkService = class {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
async logout() {
|
|
1827
1827
|
const result = await safe(this.client.linkPost("/v1/link/auth/logout"));
|
|
1828
|
-
|
|
1829
|
-
this.client.clearSession();
|
|
1830
|
-
}
|
|
1828
|
+
this.client.clearSession();
|
|
1831
1829
|
return result;
|
|
1832
1830
|
}
|
|
1833
1831
|
async checkStatus(contact) {
|
|
@@ -1823,9 +1823,7 @@ var LinkService = class {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
async logout() {
|
|
1825
1825
|
const result = await safe(this.client.linkPost("/v1/link/auth/logout"));
|
|
1826
|
-
|
|
1827
|
-
this.client.clearSession();
|
|
1828
|
-
}
|
|
1826
|
+
this.client.clearSession();
|
|
1829
1827
|
return result;
|
|
1830
1828
|
}
|
|
1831
1829
|
async checkStatus(contact) {
|
|
@@ -2480,6 +2480,10 @@ function buildV1(deps) {
|
|
|
2480
2480
|
"/support/conversation",
|
|
2481
2481
|
(c) => tryRoute(c, () => deps.support.openConversation(deps.defaultBusinessId, c.var.session.customer_id))
|
|
2482
2482
|
);
|
|
2483
|
+
app.get(
|
|
2484
|
+
"/support/conversation",
|
|
2485
|
+
(c) => tryRoute(c, () => deps.support.peekConversation(deps.defaultBusinessId, c.var.session.customer_id))
|
|
2486
|
+
);
|
|
2483
2487
|
app.post("/support/conversation/messages", async (c) => {
|
|
2484
2488
|
const body = await c.req.json().catch(() => ({}));
|
|
2485
2489
|
return tryRoute(
|
|
@@ -5478,6 +5482,13 @@ function createSupportService(opts) {
|
|
|
5478
5482
|
registry.conversations.put(id, conv);
|
|
5479
5483
|
return conv;
|
|
5480
5484
|
},
|
|
5485
|
+
peekConversation(businessId, customerId) {
|
|
5486
|
+
const matches = registry.conversations.list(
|
|
5487
|
+
(c) => c.business_id === businessId && c.customer_id === customerId
|
|
5488
|
+
);
|
|
5489
|
+
const conv = matches[matches.length - 1];
|
|
5490
|
+
return conv ? { conversation: conv, messages: conv.messages } : { conversation: null, messages: [] };
|
|
5491
|
+
},
|
|
5481
5492
|
sendMessage(conversationId, body) {
|
|
5482
5493
|
const conv = registry.conversations.get(conversationId);
|
|
5483
5494
|
if (!conv) throw notFound(`Conversation ${conversationId} not found`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as CimplifyError, S as Category, aZ as Product, f as AddOnWithOptions, aQ as Pagination, bb as ProductWithDetails, b9 as ProductVariant, bF as VariantAxis, bG as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, U as ChosenPrice, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, ax as EligiblePlansQuery, b1 as ProductBillingPlan, b7 as ProductTimeProfile, b0 as ProductAvailabilityNow, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, bu as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bc as PropertyFacet, bw as TaxonomyAttributeTemplate, aJ as KnowledgeArticle, by as UICart, L as CartItem, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bE as UpdateCartItemInput, ao as DiscountDetails, aO as Money, ad as CurrencyCode, aK as LineConfiguration, bL as VariantDetails, bM as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bS as components, bk as SchedulingMode, av as DurationUnit, bo as Subscription, bs as SubscriptionWithDetails } from './product-
|
|
2
|
-
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { V as CimplifyError, S as Category, aZ as Product, f as AddOnWithOptions, aQ as Pagination, bb as ProductWithDetails, b9 as ProductVariant, bF as VariantAxis, bG as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, U as ChosenPrice, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, ax as EligiblePlansQuery, b1 as ProductBillingPlan, b7 as ProductTimeProfile, b0 as ProductAvailabilityNow, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, bu as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bc as PropertyFacet, bw as TaxonomyAttributeTemplate, aJ as KnowledgeArticle, by as UICart, L as CartItem, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bE as UpdateCartItemInput, ao as DiscountDetails, aO as Money, ad as CurrencyCode, aK as LineConfiguration, bL as VariantDetails, bM as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bS as components, bk as SchedulingMode, av as DurationUnit, bo as Subscription, bs as SubscriptionWithDetails } from './product-O8-wcHSe.mjs';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-pKPpaORI.mjs';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -2344,6 +2344,10 @@ declare class FxService {
|
|
|
2344
2344
|
lockQuote(request: FxQuoteRequest, opts?: IdempotencyOption$3): Promise<Result<FxQuote, CimplifyError>>;
|
|
2345
2345
|
}
|
|
2346
2346
|
|
|
2347
|
+
interface TrackPageViewOptions {
|
|
2348
|
+
pagePath?: string;
|
|
2349
|
+
pageTitle?: string;
|
|
2350
|
+
}
|
|
2347
2351
|
interface TrackProductViewOptions {
|
|
2348
2352
|
productName?: string;
|
|
2349
2353
|
categoryId?: string;
|
|
@@ -2417,6 +2421,13 @@ declare class ActivityService {
|
|
|
2417
2421
|
*/
|
|
2418
2422
|
startSession(): void;
|
|
2419
2423
|
private buildSessionPayload;
|
|
2424
|
+
/**
|
|
2425
|
+
* Record a page the visitor landed on. Product and category views already
|
|
2426
|
+
* imply one, so call this for everything else — home, listings, booking,
|
|
2427
|
+
* checkout — or entry pages, exits and bounce rate are computed from
|
|
2428
|
+
* product pages alone.
|
|
2429
|
+
*/
|
|
2430
|
+
trackPageView(options?: TrackPageViewOptions): void;
|
|
2420
2431
|
trackProductView(productId: string, options?: TrackProductViewOptions): void;
|
|
2421
2432
|
trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
|
|
2422
2433
|
getState(): Promise<Result<ActivityStateResponse, CimplifyError>>;
|
|
@@ -2554,6 +2565,8 @@ interface ChatMessage {
|
|
|
2554
2565
|
metadata: Record<string, unknown>;
|
|
2555
2566
|
/** Server-resolved quote context; absent when the message isn't a reply. */
|
|
2556
2567
|
reply_to?: ChatReplyContext | null;
|
|
2568
|
+
/** Echo of the sender's idempotency key on widget customer messages. */
|
|
2569
|
+
client_id?: string | null;
|
|
2557
2570
|
created_at: string;
|
|
2558
2571
|
}
|
|
2559
2572
|
/**
|
|
@@ -2627,6 +2640,7 @@ interface IdempotencyOption {
|
|
|
2627
2640
|
declare class SupportService {
|
|
2628
2641
|
private client;
|
|
2629
2642
|
private claimInFlight;
|
|
2643
|
+
private claimInFlightToken;
|
|
2630
2644
|
private lastClaimedAccessToken;
|
|
2631
2645
|
private claimedName;
|
|
2632
2646
|
constructor(client: CimplifyClient);
|
|
@@ -2643,6 +2657,12 @@ declare class SupportService {
|
|
|
2643
2657
|
* round trip. Emits `session:claimed` on the client's event channel.
|
|
2644
2658
|
*/
|
|
2645
2659
|
claimConversation(): Promise<Result<ClaimConversationResult, CimplifyError>>;
|
|
2660
|
+
/**
|
|
2661
|
+
* Peek at the conversation without creating one: resolves the existing
|
|
2662
|
+
* thread (or null) so a page load can hydrate history without littering
|
|
2663
|
+
* the inbox with empty threads.
|
|
2664
|
+
*/
|
|
2665
|
+
peekConversation(): Promise<Result<ChatConversationResponse | null, CimplifyError>>;
|
|
2646
2666
|
/** Open (or resume) the customer's widget conversation. */
|
|
2647
2667
|
openConversation(opts?: IdempotencyOption): Promise<Result<ChatConversationResponse, CimplifyError>>;
|
|
2648
2668
|
/**
|
|
@@ -2773,6 +2793,7 @@ declare function createElements(client: CimplifyClient, businessId?: string, opt
|
|
|
2773
2793
|
interface RequestOptions {
|
|
2774
2794
|
idempotencyKey?: string;
|
|
2775
2795
|
headers?: Record<string, string>;
|
|
2796
|
+
timeoutMs?: number;
|
|
2776
2797
|
}
|
|
2777
2798
|
/**
|
|
2778
2799
|
* Per-call cache hints for server-side reads. Forwarded as `next: { revalidate, tags }`
|
|
@@ -2816,6 +2837,7 @@ declare class CimplifyClient {
|
|
|
2816
2837
|
private credentials;
|
|
2817
2838
|
private accessToken;
|
|
2818
2839
|
private sessionToken;
|
|
2840
|
+
private sessionEpoch;
|
|
2819
2841
|
private timeout;
|
|
2820
2842
|
private maxRetries;
|
|
2821
2843
|
private retryDelay;
|
|
@@ -2874,6 +2896,10 @@ declare class CimplifyClient {
|
|
|
2874
2896
|
*/
|
|
2875
2897
|
adoptSessionToken(token: string): void;
|
|
2876
2898
|
clearSession(): void;
|
|
2899
|
+
getSessionEpoch(): number;
|
|
2900
|
+
publishSessionClaimed(customerName: string | null): void;
|
|
2901
|
+
private broadcastSessionSync;
|
|
2902
|
+
private watchCrossTabSession;
|
|
2877
2903
|
setOrderToken(orderId: string, token: string): void;
|
|
2878
2904
|
getOrderToken(orderId: string): string | null;
|
|
2879
2905
|
clearOrderTokens(): void;
|
|
@@ -2884,6 +2910,7 @@ declare class CimplifyClient {
|
|
|
2884
2910
|
getBusinessId(): string | null;
|
|
2885
2911
|
resolveBusinessId(): Promise<string>;
|
|
2886
2912
|
private authedFetch;
|
|
2913
|
+
private safeStorage;
|
|
2887
2914
|
private loadSessionToken;
|
|
2888
2915
|
/**
|
|
2889
2916
|
* Mint the session token client-side so the very first request already
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as CimplifyError, S as Category, aZ as Product, f as AddOnWithOptions, aQ as Pagination, bb as ProductWithDetails, b9 as ProductVariant, bF as VariantAxis, bG as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, U as ChosenPrice, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, ax as EligiblePlansQuery, b1 as ProductBillingPlan, b7 as ProductTimeProfile, b0 as ProductAvailabilityNow, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, bu as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bc as PropertyFacet, bw as TaxonomyAttributeTemplate, aJ as KnowledgeArticle, by as UICart, L as CartItem, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bE as UpdateCartItemInput, ao as DiscountDetails, aO as Money, ad as CurrencyCode, aK as LineConfiguration, bL as VariantDetails, bM as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bS as components, bk as SchedulingMode, av as DurationUnit, bo as Subscription, bs as SubscriptionWithDetails } from './product-
|
|
2
|
-
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { V as CimplifyError, S as Category, aZ as Product, f as AddOnWithOptions, aQ as Pagination, bb as ProductWithDetails, b9 as ProductVariant, bF as VariantAxis, bG as VariantAxisSelection, A as AddOn, W as Collection, G as BundleSummary, u as Bundle, a3 as Composite, a1 as ComponentSelectionInput, a8 as CompositePriceResult, U as ChosenPrice, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, ax as EligiblePlansQuery, b1 as ProductBillingPlan, b7 as ProductTimeProfile, b0 as ProductAvailabilityNow, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, bu as TagsResponse, ae as CustomAttributeDefinition, af as CustomAttributeValue, bc as PropertyFacet, bw as TaxonomyAttributeTemplate, aJ as KnowledgeArticle, by as UICart, L as CartItem, Q as CartSummary, g as AddToCartInput, N as CartMutationResult, bE as UpdateCartItemInput, ao as DiscountDetails, aO as Money, ad as CurrencyCode, aK as LineConfiguration, bL as VariantDetails, bM as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, D as BundleSelectionData, aa as CompositeSelectionData, ag as CustomerInputValue, bS as components, bk as SchedulingMode, av as DurationUnit, bo as Subscription, bs as SubscriptionWithDetails } from './product-O8-wcHSe.js';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-By0JidTe.js';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -2344,6 +2344,10 @@ declare class FxService {
|
|
|
2344
2344
|
lockQuote(request: FxQuoteRequest, opts?: IdempotencyOption$3): Promise<Result<FxQuote, CimplifyError>>;
|
|
2345
2345
|
}
|
|
2346
2346
|
|
|
2347
|
+
interface TrackPageViewOptions {
|
|
2348
|
+
pagePath?: string;
|
|
2349
|
+
pageTitle?: string;
|
|
2350
|
+
}
|
|
2347
2351
|
interface TrackProductViewOptions {
|
|
2348
2352
|
productName?: string;
|
|
2349
2353
|
categoryId?: string;
|
|
@@ -2417,6 +2421,13 @@ declare class ActivityService {
|
|
|
2417
2421
|
*/
|
|
2418
2422
|
startSession(): void;
|
|
2419
2423
|
private buildSessionPayload;
|
|
2424
|
+
/**
|
|
2425
|
+
* Record a page the visitor landed on. Product and category views already
|
|
2426
|
+
* imply one, so call this for everything else — home, listings, booking,
|
|
2427
|
+
* checkout — or entry pages, exits and bounce rate are computed from
|
|
2428
|
+
* product pages alone.
|
|
2429
|
+
*/
|
|
2430
|
+
trackPageView(options?: TrackPageViewOptions): void;
|
|
2420
2431
|
trackProductView(productId: string, options?: TrackProductViewOptions): void;
|
|
2421
2432
|
trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
|
|
2422
2433
|
getState(): Promise<Result<ActivityStateResponse, CimplifyError>>;
|
|
@@ -2554,6 +2565,8 @@ interface ChatMessage {
|
|
|
2554
2565
|
metadata: Record<string, unknown>;
|
|
2555
2566
|
/** Server-resolved quote context; absent when the message isn't a reply. */
|
|
2556
2567
|
reply_to?: ChatReplyContext | null;
|
|
2568
|
+
/** Echo of the sender's idempotency key on widget customer messages. */
|
|
2569
|
+
client_id?: string | null;
|
|
2557
2570
|
created_at: string;
|
|
2558
2571
|
}
|
|
2559
2572
|
/**
|
|
@@ -2627,6 +2640,7 @@ interface IdempotencyOption {
|
|
|
2627
2640
|
declare class SupportService {
|
|
2628
2641
|
private client;
|
|
2629
2642
|
private claimInFlight;
|
|
2643
|
+
private claimInFlightToken;
|
|
2630
2644
|
private lastClaimedAccessToken;
|
|
2631
2645
|
private claimedName;
|
|
2632
2646
|
constructor(client: CimplifyClient);
|
|
@@ -2643,6 +2657,12 @@ declare class SupportService {
|
|
|
2643
2657
|
* round trip. Emits `session:claimed` on the client's event channel.
|
|
2644
2658
|
*/
|
|
2645
2659
|
claimConversation(): Promise<Result<ClaimConversationResult, CimplifyError>>;
|
|
2660
|
+
/**
|
|
2661
|
+
* Peek at the conversation without creating one: resolves the existing
|
|
2662
|
+
* thread (or null) so a page load can hydrate history without littering
|
|
2663
|
+
* the inbox with empty threads.
|
|
2664
|
+
*/
|
|
2665
|
+
peekConversation(): Promise<Result<ChatConversationResponse | null, CimplifyError>>;
|
|
2646
2666
|
/** Open (or resume) the customer's widget conversation. */
|
|
2647
2667
|
openConversation(opts?: IdempotencyOption): Promise<Result<ChatConversationResponse, CimplifyError>>;
|
|
2648
2668
|
/**
|
|
@@ -2773,6 +2793,7 @@ declare function createElements(client: CimplifyClient, businessId?: string, opt
|
|
|
2773
2793
|
interface RequestOptions {
|
|
2774
2794
|
idempotencyKey?: string;
|
|
2775
2795
|
headers?: Record<string, string>;
|
|
2796
|
+
timeoutMs?: number;
|
|
2776
2797
|
}
|
|
2777
2798
|
/**
|
|
2778
2799
|
* Per-call cache hints for server-side reads. Forwarded as `next: { revalidate, tags }`
|
|
@@ -2816,6 +2837,7 @@ declare class CimplifyClient {
|
|
|
2816
2837
|
private credentials;
|
|
2817
2838
|
private accessToken;
|
|
2818
2839
|
private sessionToken;
|
|
2840
|
+
private sessionEpoch;
|
|
2819
2841
|
private timeout;
|
|
2820
2842
|
private maxRetries;
|
|
2821
2843
|
private retryDelay;
|
|
@@ -2874,6 +2896,10 @@ declare class CimplifyClient {
|
|
|
2874
2896
|
*/
|
|
2875
2897
|
adoptSessionToken(token: string): void;
|
|
2876
2898
|
clearSession(): void;
|
|
2899
|
+
getSessionEpoch(): number;
|
|
2900
|
+
publishSessionClaimed(customerName: string | null): void;
|
|
2901
|
+
private broadcastSessionSync;
|
|
2902
|
+
private watchCrossTabSession;
|
|
2877
2903
|
setOrderToken(orderId: string, token: string): void;
|
|
2878
2904
|
getOrderToken(orderId: string): string | null;
|
|
2879
2905
|
clearOrderTokens(): void;
|
|
@@ -2884,6 +2910,7 @@ declare class CimplifyClient {
|
|
|
2884
2910
|
getBusinessId(): string | null;
|
|
2885
2911
|
resolveBusinessId(): Promise<string>;
|
|
2886
2912
|
private authedFetch;
|
|
2913
|
+
private safeStorage;
|
|
2887
2914
|
private loadSessionToken;
|
|
2888
2915
|
/**
|
|
2889
2916
|
* Mint the session token client-side so the very first request already
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { af as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { af as CimplifyClient } from './client-BTL9d_nN.mjs';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-BN9ZCAKT.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { af as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { af as CimplifyClient } from './client-BX30FAWZ.js';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-DDGbfW_S.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode, aX as PricePathTaxInfo, aZ as Product, bb as ProductWithDetails, be as QuantityPricingTier } from './product-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode, aX as PricePathTaxInfo, aZ as Product, bb as ProductWithDetails, be as QuantityPricingTier } from './product-O8-wcHSe.mjs';
|
|
2
|
+
import { P as ProductWithPrice } from './price-BvRtp6ak.mjs';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-pKPpaORI.mjs';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aO as Money, ad as CurrencyCode, aX as PricePathTaxInfo, aZ as Product, bb as ProductWithDetails, be as QuantityPricingTier } from './product-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { aO as Money, ad as CurrencyCode, aX as PricePathTaxInfo, aZ as Product, bb as ProductWithDetails, be as QuantityPricingTier } from './product-O8-wcHSe.js';
|
|
2
|
+
import { P as ProductWithPrice } from './price-23RNXftz.js';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-By0JidTe.js';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { X as ChatReplyCard } from './client-
|
|
2
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsResponse, aD as DeliveryService, aE as DepositResult, aF as DeviceType, aG as DismissMessageResponse, aH as ELEMENTS_AUTH_CONTACT_TYPES, aI as ELEMENTS_AUTH_MODES, aJ as ELEMENTS_AUTH_PROMPTS, aK as ELEMENT_TYPES, aL as EVENT_TYPES, aM as ElementAppearance, aN as ElementEventHandler, aO as ElementEventType, aP as ElementOptions, aQ as ElementType, aR as ElementsAuthContactType, aS as ElementsAuthMode, aT as ElementsAuthOptions, aU as ElementsAuthPrompt, aV as ElementsCheckoutData, aW as ElementsCheckoutResult, aX as ElementsCustomerInfo, aY as ElementsOptions, aZ as EnrichedOrder, a_ as EnrichedOrderItem, a$ as EnrollAndLinkOrderInput, b0 as EnrollAndLinkOrderResult, b1 as EnrollmentData, b2 as Err, b3 as FeeBearerType, b4 as FetchQuoteInput, b5 as FulfillmentLink, b6 as FulfillmentStatus, b7 as FulfillmentSummaryDTO, b8 as FulfillmentType, b9 as FxQuote, ba as FxQuoteRequest, bb as FxQuoteStatus, bc as FxRateResponse, bd as FxService, be as GetAvailableSlotsInput, bf as GetDeliveryOptionsParams, bg as GetOrdersOptions, bh as GetProductsOptions, bi as GroupOrderInfo, bj as IframeToParentMessage, bk as InventoryService, bl as LINK_MUTATION, bm as LINK_QUERY, bn as LifecyclePhase, bo as LineItem, bp as LineType, bq as LinkData, br as LinkEnrollResult, bs as LinkService, bt as LinkSession, bu as LinkStatusResult, bv as LiteBootstrap, bw as LiteDayHours, bx as LiteHoursRange, by as LiteService, bz as Location, bA as LocationBooking, bB as LocationTaxBehavior, bC as LocationTaxOverrides, bD as LocationTimeProfile, bE as LocationWithDetails, bF as MESSAGE_TYPES, bG as MOBILE_MONEY_PROVIDER, bH as MobileMoneyData, bI as MobileMoneyDetails, bJ as MobileMoneyProvider, bK as NextAction, bL as ORDER_MUTATION, bM as ORDER_TYPE, bN as ObservabilityHooks, bO as Ok, bP as Order, bQ as OrderCustomerInfo, bR as OrderDiscountInfo, bS as OrderFilter, bT as OrderFulfillmentSummary, bU as OrderGroup, bV as OrderGroupDetails, bW as OrderGroupPayment, bX as OrderGroupPaymentState, bY as OrderGroupPaymentStatus, bZ as OrderGroupPaymentSummary, b_ as OrderGroupStatus, b$ as OrderHistory, c0 as OrderLineState, c1 as OrderLineStatus, c2 as OrderLocationInfo, c3 as OrderPaymentEvent, c4 as OrderPricingView, c5 as OrderQueries, c6 as OrderSplitDetail, c7 as OrderStaffInfo, c8 as OrderStatus, c9 as OrderTimestampsDTO, ca as OrderType, cb as Origin, cc as OriginActor, cd as OriginChannel, ce as OtpResult, cf as PAYMENT_METHOD, cg as PAYMENT_MUTATION, ch as PAYMENT_STATE, ci as PICKUP_TIME_TYPE, cj as ParentToIframeMessage, ck as PaymentInfoDTO, cl as PaymentMethodInfo, cm as PaymentState, cn as PickupTime, co as PickupTimeType, cp as PlaceDetailsResponse, cq as PlacesService, cr as PriceQuote, cs as PricingOverrides, ct as ProcessAndResolveOptions, cu as ProcessCheckoutOptions, cv as ProcessCheckoutResult, cw as ProviderResolutionSource, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cz as QuoteDynamicBuckets, cA as QuoteStatus, cB as QuoteUiMessage, cC as ReadRequestOptions, cD as RefreshQuoteInput, cE as RefreshQuoteResult, cF as RefundOrderInput, cG as RelatedCandidate, cH as RelatedProduct, cI as RelatedProductsEnrichment, cJ as RelationType, cK as ReminderMethod, cL as ReminderSettings, cM as ReorderResult, cN as RequestContext, cO as RequestErrorEvent, cP as RequestOptions, cQ as RequestOtpInput, cR as RequestSource, cS as RequestStartEvent, cT as RequestSuccessEvent, cU as RescheduleBookingInput, cV as RescheduleBookingResult, cW as RescheduleHistoryRecord, cX as ResourceAssignment, cY as ResourceInfo, cZ as Result, c_ as RetryEvent, c$ as RevokeAllSessionsResult, d0 as RevokeSessionResult, d1 as Room, d2 as SchedulingMetadata, d3 as SchedulingResult, d4 as SchedulingService, d5 as SenderType, d6 as Service, d7 as ServiceAvailabilityParams, d8 as ServiceAvailabilityResult, d9 as ServiceCharge, da as ServiceNotes, db as ServiceScheduleRequest, dc as ServiceStatus, dd as SessionActivityData, de as SessionChangeEvent, df as SessionMessage, dg as SlotResourceInfo, dh as SlotStaffInfo, di as Staff, dj as StaffAssignment, dk as StaffRole, dl as StaffScheduleItem, dm as StockLevel, dn as StockStatus, dp as StoreCreditBalance, dq as StoreCreditQueries, dr as StorefrontBootstrap, ds as SubscriptionService, dt as SupportService, du as Table, dv as TimeRange, dw as TimeRanges, dx as TimeSlot, dy as TrackCategoryViewOptions, dz as TrackProductViewOptions, dA as UpdateAddressInput, dB as UpdateOrderStatusInput, dC as UpdateProfileInput, dD as UploadInitResponse, dE as UploadResult, dF as UploadService, dG as VerifyOtpInput, dH as combine, dI as combineObject, dJ as createCimplifyClient, dK as createElements, dL as err, dM as flatMap, dN as fromPromise, dO as getOrElse, dP as isErr, dQ as isOk, dR as mapError, dS as mapResult, dT as ok, dU as toNullable, dV as tryCatch, dW as unwrap } from './client-
|
|
3
|
-
import { bb as ProductWithDetails, aZ as Product, av as DurationUnit, j as ApiError } from './product-
|
|
4
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-
|
|
5
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-
|
|
1
|
+
import { X as ChatReplyCard } from './client-BTL9d_nN.mjs';
|
|
2
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsResponse, aD as DeliveryService, aE as DepositResult, aF as DeviceType, aG as DismissMessageResponse, aH as ELEMENTS_AUTH_CONTACT_TYPES, aI as ELEMENTS_AUTH_MODES, aJ as ELEMENTS_AUTH_PROMPTS, aK as ELEMENT_TYPES, aL as EVENT_TYPES, aM as ElementAppearance, aN as ElementEventHandler, aO as ElementEventType, aP as ElementOptions, aQ as ElementType, aR as ElementsAuthContactType, aS as ElementsAuthMode, aT as ElementsAuthOptions, aU as ElementsAuthPrompt, aV as ElementsCheckoutData, aW as ElementsCheckoutResult, aX as ElementsCustomerInfo, aY as ElementsOptions, aZ as EnrichedOrder, a_ as EnrichedOrderItem, a$ as EnrollAndLinkOrderInput, b0 as EnrollAndLinkOrderResult, b1 as EnrollmentData, b2 as Err, b3 as FeeBearerType, b4 as FetchQuoteInput, b5 as FulfillmentLink, b6 as FulfillmentStatus, b7 as FulfillmentSummaryDTO, b8 as FulfillmentType, b9 as FxQuote, ba as FxQuoteRequest, bb as FxQuoteStatus, bc as FxRateResponse, bd as FxService, be as GetAvailableSlotsInput, bf as GetDeliveryOptionsParams, bg as GetOrdersOptions, bh as GetProductsOptions, bi as GroupOrderInfo, bj as IframeToParentMessage, bk as InventoryService, bl as LINK_MUTATION, bm as LINK_QUERY, bn as LifecyclePhase, bo as LineItem, bp as LineType, bq as LinkData, br as LinkEnrollResult, bs as LinkService, bt as LinkSession, bu as LinkStatusResult, bv as LiteBootstrap, bw as LiteDayHours, bx as LiteHoursRange, by as LiteService, bz as Location, bA as LocationBooking, bB as LocationTaxBehavior, bC as LocationTaxOverrides, bD as LocationTimeProfile, bE as LocationWithDetails, bF as MESSAGE_TYPES, bG as MOBILE_MONEY_PROVIDER, bH as MobileMoneyData, bI as MobileMoneyDetails, bJ as MobileMoneyProvider, bK as NextAction, bL as ORDER_MUTATION, bM as ORDER_TYPE, bN as ObservabilityHooks, bO as Ok, bP as Order, bQ as OrderCustomerInfo, bR as OrderDiscountInfo, bS as OrderFilter, bT as OrderFulfillmentSummary, bU as OrderGroup, bV as OrderGroupDetails, bW as OrderGroupPayment, bX as OrderGroupPaymentState, bY as OrderGroupPaymentStatus, bZ as OrderGroupPaymentSummary, b_ as OrderGroupStatus, b$ as OrderHistory, c0 as OrderLineState, c1 as OrderLineStatus, c2 as OrderLocationInfo, c3 as OrderPaymentEvent, c4 as OrderPricingView, c5 as OrderQueries, c6 as OrderSplitDetail, c7 as OrderStaffInfo, c8 as OrderStatus, c9 as OrderTimestampsDTO, ca as OrderType, cb as Origin, cc as OriginActor, cd as OriginChannel, ce as OtpResult, cf as PAYMENT_METHOD, cg as PAYMENT_MUTATION, ch as PAYMENT_STATE, ci as PICKUP_TIME_TYPE, cj as ParentToIframeMessage, ck as PaymentInfoDTO, cl as PaymentMethodInfo, cm as PaymentState, cn as PickupTime, co as PickupTimeType, cp as PlaceDetailsResponse, cq as PlacesService, cr as PriceQuote, cs as PricingOverrides, ct as ProcessAndResolveOptions, cu as ProcessCheckoutOptions, cv as ProcessCheckoutResult, cw as ProviderResolutionSource, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cz as QuoteDynamicBuckets, cA as QuoteStatus, cB as QuoteUiMessage, cC as ReadRequestOptions, cD as RefreshQuoteInput, cE as RefreshQuoteResult, cF as RefundOrderInput, cG as RelatedCandidate, cH as RelatedProduct, cI as RelatedProductsEnrichment, cJ as RelationType, cK as ReminderMethod, cL as ReminderSettings, cM as ReorderResult, cN as RequestContext, cO as RequestErrorEvent, cP as RequestOptions, cQ as RequestOtpInput, cR as RequestSource, cS as RequestStartEvent, cT as RequestSuccessEvent, cU as RescheduleBookingInput, cV as RescheduleBookingResult, cW as RescheduleHistoryRecord, cX as ResourceAssignment, cY as ResourceInfo, cZ as Result, c_ as RetryEvent, c$ as RevokeAllSessionsResult, d0 as RevokeSessionResult, d1 as Room, d2 as SchedulingMetadata, d3 as SchedulingResult, d4 as SchedulingService, d5 as SenderType, d6 as Service, d7 as ServiceAvailabilityParams, d8 as ServiceAvailabilityResult, d9 as ServiceCharge, da as ServiceNotes, db as ServiceScheduleRequest, dc as ServiceStatus, dd as SessionActivityData, de as SessionChangeEvent, df as SessionMessage, dg as SlotResourceInfo, dh as SlotStaffInfo, di as Staff, dj as StaffAssignment, dk as StaffRole, dl as StaffScheduleItem, dm as StockLevel, dn as StockStatus, dp as StoreCreditBalance, dq as StoreCreditQueries, dr as StorefrontBootstrap, ds as SubscriptionService, dt as SupportService, du as Table, dv as TimeRange, dw as TimeRanges, dx as TimeSlot, dy as TrackCategoryViewOptions, dz as TrackProductViewOptions, dA as UpdateAddressInput, dB as UpdateOrderStatusInput, dC as UpdateProfileInput, dD as UploadInitResponse, dE as UploadResult, dF as UploadService, dG as VerifyOtpInput, dH as combine, dI as combineObject, dJ as createCimplifyClient, dK as createElements, dL as err, dM as flatMap, dN as fromPromise, dO as getOrElse, dP as isErr, dQ as isOk, dR as mapError, dS as mapResult, dT as ok, dU as toNullable, dV as tryCatch, dW as unwrap } from './client-BTL9d_nN.mjs';
|
|
3
|
+
import { bb as ProductWithDetails, aZ as Product, av as DurationUnit, j as ApiError } from './product-O8-wcHSe.mjs';
|
|
4
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-O8-wcHSe.mjs';
|
|
5
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-BuNjyfaV.mjs';
|
|
6
6
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.mjs';
|
|
7
|
-
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
7
|
+
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-pKPpaORI.mjs';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-BvRtp6ak.mjs';
|
|
9
9
|
export { generateIdempotencyKey } from './advanced.mjs';
|
|
10
10
|
import 'libphonenumber-js';
|
|
11
11
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { X as ChatReplyCard } from './client-
|
|
2
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsResponse, aD as DeliveryService, aE as DepositResult, aF as DeviceType, aG as DismissMessageResponse, aH as ELEMENTS_AUTH_CONTACT_TYPES, aI as ELEMENTS_AUTH_MODES, aJ as ELEMENTS_AUTH_PROMPTS, aK as ELEMENT_TYPES, aL as EVENT_TYPES, aM as ElementAppearance, aN as ElementEventHandler, aO as ElementEventType, aP as ElementOptions, aQ as ElementType, aR as ElementsAuthContactType, aS as ElementsAuthMode, aT as ElementsAuthOptions, aU as ElementsAuthPrompt, aV as ElementsCheckoutData, aW as ElementsCheckoutResult, aX as ElementsCustomerInfo, aY as ElementsOptions, aZ as EnrichedOrder, a_ as EnrichedOrderItem, a$ as EnrollAndLinkOrderInput, b0 as EnrollAndLinkOrderResult, b1 as EnrollmentData, b2 as Err, b3 as FeeBearerType, b4 as FetchQuoteInput, b5 as FulfillmentLink, b6 as FulfillmentStatus, b7 as FulfillmentSummaryDTO, b8 as FulfillmentType, b9 as FxQuote, ba as FxQuoteRequest, bb as FxQuoteStatus, bc as FxRateResponse, bd as FxService, be as GetAvailableSlotsInput, bf as GetDeliveryOptionsParams, bg as GetOrdersOptions, bh as GetProductsOptions, bi as GroupOrderInfo, bj as IframeToParentMessage, bk as InventoryService, bl as LINK_MUTATION, bm as LINK_QUERY, bn as LifecyclePhase, bo as LineItem, bp as LineType, bq as LinkData, br as LinkEnrollResult, bs as LinkService, bt as LinkSession, bu as LinkStatusResult, bv as LiteBootstrap, bw as LiteDayHours, bx as LiteHoursRange, by as LiteService, bz as Location, bA as LocationBooking, bB as LocationTaxBehavior, bC as LocationTaxOverrides, bD as LocationTimeProfile, bE as LocationWithDetails, bF as MESSAGE_TYPES, bG as MOBILE_MONEY_PROVIDER, bH as MobileMoneyData, bI as MobileMoneyDetails, bJ as MobileMoneyProvider, bK as NextAction, bL as ORDER_MUTATION, bM as ORDER_TYPE, bN as ObservabilityHooks, bO as Ok, bP as Order, bQ as OrderCustomerInfo, bR as OrderDiscountInfo, bS as OrderFilter, bT as OrderFulfillmentSummary, bU as OrderGroup, bV as OrderGroupDetails, bW as OrderGroupPayment, bX as OrderGroupPaymentState, bY as OrderGroupPaymentStatus, bZ as OrderGroupPaymentSummary, b_ as OrderGroupStatus, b$ as OrderHistory, c0 as OrderLineState, c1 as OrderLineStatus, c2 as OrderLocationInfo, c3 as OrderPaymentEvent, c4 as OrderPricingView, c5 as OrderQueries, c6 as OrderSplitDetail, c7 as OrderStaffInfo, c8 as OrderStatus, c9 as OrderTimestampsDTO, ca as OrderType, cb as Origin, cc as OriginActor, cd as OriginChannel, ce as OtpResult, cf as PAYMENT_METHOD, cg as PAYMENT_MUTATION, ch as PAYMENT_STATE, ci as PICKUP_TIME_TYPE, cj as ParentToIframeMessage, ck as PaymentInfoDTO, cl as PaymentMethodInfo, cm as PaymentState, cn as PickupTime, co as PickupTimeType, cp as PlaceDetailsResponse, cq as PlacesService, cr as PriceQuote, cs as PricingOverrides, ct as ProcessAndResolveOptions, cu as ProcessCheckoutOptions, cv as ProcessCheckoutResult, cw as ProviderResolutionSource, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cz as QuoteDynamicBuckets, cA as QuoteStatus, cB as QuoteUiMessage, cC as ReadRequestOptions, cD as RefreshQuoteInput, cE as RefreshQuoteResult, cF as RefundOrderInput, cG as RelatedCandidate, cH as RelatedProduct, cI as RelatedProductsEnrichment, cJ as RelationType, cK as ReminderMethod, cL as ReminderSettings, cM as ReorderResult, cN as RequestContext, cO as RequestErrorEvent, cP as RequestOptions, cQ as RequestOtpInput, cR as RequestSource, cS as RequestStartEvent, cT as RequestSuccessEvent, cU as RescheduleBookingInput, cV as RescheduleBookingResult, cW as RescheduleHistoryRecord, cX as ResourceAssignment, cY as ResourceInfo, cZ as Result, c_ as RetryEvent, c$ as RevokeAllSessionsResult, d0 as RevokeSessionResult, d1 as Room, d2 as SchedulingMetadata, d3 as SchedulingResult, d4 as SchedulingService, d5 as SenderType, d6 as Service, d7 as ServiceAvailabilityParams, d8 as ServiceAvailabilityResult, d9 as ServiceCharge, da as ServiceNotes, db as ServiceScheduleRequest, dc as ServiceStatus, dd as SessionActivityData, de as SessionChangeEvent, df as SessionMessage, dg as SlotResourceInfo, dh as SlotStaffInfo, di as Staff, dj as StaffAssignment, dk as StaffRole, dl as StaffScheduleItem, dm as StockLevel, dn as StockStatus, dp as StoreCreditBalance, dq as StoreCreditQueries, dr as StorefrontBootstrap, ds as SubscriptionService, dt as SupportService, du as Table, dv as TimeRange, dw as TimeRanges, dx as TimeSlot, dy as TrackCategoryViewOptions, dz as TrackProductViewOptions, dA as UpdateAddressInput, dB as UpdateOrderStatusInput, dC as UpdateProfileInput, dD as UploadInitResponse, dE as UploadResult, dF as UploadService, dG as VerifyOtpInput, dH as combine, dI as combineObject, dJ as createCimplifyClient, dK as createElements, dL as err, dM as flatMap, dN as fromPromise, dO as getOrElse, dP as isErr, dQ as isOk, dR as mapError, dS as mapResult, dT as ok, dU as toNullable, dV as tryCatch, dW as unwrap } from './client-
|
|
3
|
-
import { bb as ProductWithDetails, aZ as Product, av as DurationUnit, j as ApiError } from './product-
|
|
4
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-
|
|
5
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-
|
|
1
|
+
import { X as ChatReplyCard } from './client-BX30FAWZ.js';
|
|
2
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsResponse, aD as DeliveryService, aE as DepositResult, aF as DeviceType, aG as DismissMessageResponse, aH as ELEMENTS_AUTH_CONTACT_TYPES, aI as ELEMENTS_AUTH_MODES, aJ as ELEMENTS_AUTH_PROMPTS, aK as ELEMENT_TYPES, aL as EVENT_TYPES, aM as ElementAppearance, aN as ElementEventHandler, aO as ElementEventType, aP as ElementOptions, aQ as ElementType, aR as ElementsAuthContactType, aS as ElementsAuthMode, aT as ElementsAuthOptions, aU as ElementsAuthPrompt, aV as ElementsCheckoutData, aW as ElementsCheckoutResult, aX as ElementsCustomerInfo, aY as ElementsOptions, aZ as EnrichedOrder, a_ as EnrichedOrderItem, a$ as EnrollAndLinkOrderInput, b0 as EnrollAndLinkOrderResult, b1 as EnrollmentData, b2 as Err, b3 as FeeBearerType, b4 as FetchQuoteInput, b5 as FulfillmentLink, b6 as FulfillmentStatus, b7 as FulfillmentSummaryDTO, b8 as FulfillmentType, b9 as FxQuote, ba as FxQuoteRequest, bb as FxQuoteStatus, bc as FxRateResponse, bd as FxService, be as GetAvailableSlotsInput, bf as GetDeliveryOptionsParams, bg as GetOrdersOptions, bh as GetProductsOptions, bi as GroupOrderInfo, bj as IframeToParentMessage, bk as InventoryService, bl as LINK_MUTATION, bm as LINK_QUERY, bn as LifecyclePhase, bo as LineItem, bp as LineType, bq as LinkData, br as LinkEnrollResult, bs as LinkService, bt as LinkSession, bu as LinkStatusResult, bv as LiteBootstrap, bw as LiteDayHours, bx as LiteHoursRange, by as LiteService, bz as Location, bA as LocationBooking, bB as LocationTaxBehavior, bC as LocationTaxOverrides, bD as LocationTimeProfile, bE as LocationWithDetails, bF as MESSAGE_TYPES, bG as MOBILE_MONEY_PROVIDER, bH as MobileMoneyData, bI as MobileMoneyDetails, bJ as MobileMoneyProvider, bK as NextAction, bL as ORDER_MUTATION, bM as ORDER_TYPE, bN as ObservabilityHooks, bO as Ok, bP as Order, bQ as OrderCustomerInfo, bR as OrderDiscountInfo, bS as OrderFilter, bT as OrderFulfillmentSummary, bU as OrderGroup, bV as OrderGroupDetails, bW as OrderGroupPayment, bX as OrderGroupPaymentState, bY as OrderGroupPaymentStatus, bZ as OrderGroupPaymentSummary, b_ as OrderGroupStatus, b$ as OrderHistory, c0 as OrderLineState, c1 as OrderLineStatus, c2 as OrderLocationInfo, c3 as OrderPaymentEvent, c4 as OrderPricingView, c5 as OrderQueries, c6 as OrderSplitDetail, c7 as OrderStaffInfo, c8 as OrderStatus, c9 as OrderTimestampsDTO, ca as OrderType, cb as Origin, cc as OriginActor, cd as OriginChannel, ce as OtpResult, cf as PAYMENT_METHOD, cg as PAYMENT_MUTATION, ch as PAYMENT_STATE, ci as PICKUP_TIME_TYPE, cj as ParentToIframeMessage, ck as PaymentInfoDTO, cl as PaymentMethodInfo, cm as PaymentState, cn as PickupTime, co as PickupTimeType, cp as PlaceDetailsResponse, cq as PlacesService, cr as PriceQuote, cs as PricingOverrides, ct as ProcessAndResolveOptions, cu as ProcessCheckoutOptions, cv as ProcessCheckoutResult, cw as ProviderResolutionSource, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cz as QuoteDynamicBuckets, cA as QuoteStatus, cB as QuoteUiMessage, cC as ReadRequestOptions, cD as RefreshQuoteInput, cE as RefreshQuoteResult, cF as RefundOrderInput, cG as RelatedCandidate, cH as RelatedProduct, cI as RelatedProductsEnrichment, cJ as RelationType, cK as ReminderMethod, cL as ReminderSettings, cM as ReorderResult, cN as RequestContext, cO as RequestErrorEvent, cP as RequestOptions, cQ as RequestOtpInput, cR as RequestSource, cS as RequestStartEvent, cT as RequestSuccessEvent, cU as RescheduleBookingInput, cV as RescheduleBookingResult, cW as RescheduleHistoryRecord, cX as ResourceAssignment, cY as ResourceInfo, cZ as Result, c_ as RetryEvent, c$ as RevokeAllSessionsResult, d0 as RevokeSessionResult, d1 as Room, d2 as SchedulingMetadata, d3 as SchedulingResult, d4 as SchedulingService, d5 as SenderType, d6 as Service, d7 as ServiceAvailabilityParams, d8 as ServiceAvailabilityResult, d9 as ServiceCharge, da as ServiceNotes, db as ServiceScheduleRequest, dc as ServiceStatus, dd as SessionActivityData, de as SessionChangeEvent, df as SessionMessage, dg as SlotResourceInfo, dh as SlotStaffInfo, di as Staff, dj as StaffAssignment, dk as StaffRole, dl as StaffScheduleItem, dm as StockLevel, dn as StockStatus, dp as StoreCreditBalance, dq as StoreCreditQueries, dr as StorefrontBootstrap, ds as SubscriptionService, dt as SupportService, du as Table, dv as TimeRange, dw as TimeRanges, dx as TimeSlot, dy as TrackCategoryViewOptions, dz as TrackProductViewOptions, dA as UpdateAddressInput, dB as UpdateOrderStatusInput, dC as UpdateProfileInput, dD as UploadInitResponse, dE as UploadResult, dF as UploadService, dG as VerifyOtpInput, dH as combine, dI as combineObject, dJ as createCimplifyClient, dK as createElements, dL as err, dM as flatMap, dN as fromPromise, dO as getOrElse, dP as isErr, dQ as isOk, dR as mapError, dS as mapResult, dT as ok, dU as toNullable, dV as tryCatch, dW as unwrap } from './client-BX30FAWZ.js';
|
|
3
|
+
import { bb as ProductWithDetails, aZ as Product, av as DurationUnit, j as ApiError } from './product-O8-wcHSe.js';
|
|
4
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-O8-wcHSe.js';
|
|
5
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-D-w5h82t.js';
|
|
6
6
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.js';
|
|
7
|
-
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-
|
|
8
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
7
|
+
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-By0JidTe.js';
|
|
8
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-23RNXftz.js';
|
|
9
9
|
export { generateIdempotencyKey } from './advanced.js';
|
|
10
10
|
import 'libphonenumber-js';
|
|
11
11
|
|