@cimplify/sdk 0.87.0 → 0.88.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-PWDX5N2M.js → chunk-6JA4HBBD.js} +2 -2
- package/dist/{chunk-RCGSHS2Q.mjs → chunk-A7NODD4Q.mjs} +12 -1
- package/dist/{chunk-FWEF2DHR.js → chunk-GHFDYM5K.js} +66 -10
- package/dist/{chunk-J7JDCPNW.mjs → chunk-VU5LFNEX.mjs} +1 -1
- package/dist/{chunk-P3352VXA.js → chunk-W5BVGAO6.js} +48 -37
- package/dist/{chunk-U57TYZLD.mjs → chunk-ZU4ZRYUR.mjs} +66 -10
- package/dist/{client-BMOdyC1F.d.mts → client-B-8ceVyt.d.mts} +2 -2
- package/dist/{client-BvWtk822.d.ts → client-B3FBDfTg.d.ts} +2 -2
- package/dist/{client-BIt37FjS.d.mts → client-D0PrO1-Q.d.ts} +17 -6
- package/dist/{client-Dfl6WY2F.d.ts → client-r5VSGFRU.d.mts} +17 -6
- package/dist/{index-DW6JifS1.d.ts → index-C-Pxrzna.d.ts} +3 -3
- package/dist/{index-BxOJ3BLn.d.mts → index-DLulxmF1.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +69 -69
- package/dist/index.mjs +3 -3
- package/dist/{payment-DJrvivO_.d.ts → payment-Cfoo9MT7.d.ts} +1 -1
- package/dist/{payment-CLp__KpE.d.mts → payment-TnJUoHqL.d.mts} +1 -1
- package/dist/{price-B7_UzClY.d.ts → price-CCDSrIsc.d.ts} +1 -1
- package/dist/{price-Ddk8Vr8z.d.mts → price-CM0zVSyM.d.mts} +1 -1
- package/dist/{product-C0Lr81ze.d.mts → product-DoA36Eqh.d.mts} +22 -0
- package/dist/{product-C0Lr81ze.d.ts → product-DoA36Eqh.d.ts} +22 -0
- package/dist/react.d.mts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +16 -16
- package/dist/react.mjs +2 -2
- package/dist/{server-P2G43ENi.d.ts → server-CHfYeTAa.d.ts} +1 -1
- package/dist/{server-0TnEJt8U.d.mts → server-CI1CUFVu.d.mts} +1 -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/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +22 -22
- package/dist/testing/suite.mjs +3 -3
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +78 -78
- package/dist/testing.mjs +4 -4
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +1 -1
|
@@ -2304,6 +2304,7 @@ var MESSAGE_TYPES = {
|
|
|
2304
2304
|
PAYMENT_METHOD_SELECTED: "payment_method_selected",
|
|
2305
2305
|
LOGOUT_COMPLETE: "logout_complete",
|
|
2306
2306
|
AUTH_REQUESTED: "auth_requested",
|
|
2307
|
+
SESSION_ESTABLISHED: "session_established",
|
|
2307
2308
|
CONTACT_PROVIDED: "contact_provided",
|
|
2308
2309
|
CHECKOUT_STATUS: "checkout_status",
|
|
2309
2310
|
CHECKOUT_COMPLETE: "checkout_complete",
|
|
@@ -2798,6 +2799,7 @@ var CimplifyElements = class {
|
|
|
2798
2799
|
if (typeof window !== "undefined") {
|
|
2799
2800
|
window.addEventListener("message", this.boundHandleMessage);
|
|
2800
2801
|
}
|
|
2802
|
+
void this.restoreSession();
|
|
2801
2803
|
}
|
|
2802
2804
|
debug(...args) {
|
|
2803
2805
|
if (this.client.isTestMode()) {
|
|
@@ -3087,6 +3089,56 @@ var CimplifyElements = class {
|
|
|
3087
3089
|
}
|
|
3088
3090
|
return null;
|
|
3089
3091
|
}
|
|
3092
|
+
// Refresh token kept first-party (keyed by public key) so a signed-in shopper
|
|
3093
|
+
// survives reloads. Standard SPA tradeoff; far safer than the third-party
|
|
3094
|
+
// iframe, whose storage/cookies are partitioned or blocked.
|
|
3095
|
+
sessionStorageKey() {
|
|
3096
|
+
const key = this.client.getPublicKey().trim();
|
|
3097
|
+
return key ? `cimplify.link.rt.${key}` : null;
|
|
3098
|
+
}
|
|
3099
|
+
persistRefreshToken(refreshToken) {
|
|
3100
|
+
if (typeof window === "undefined") return;
|
|
3101
|
+
const storageKey = this.sessionStorageKey();
|
|
3102
|
+
if (!storageKey) return;
|
|
3103
|
+
try {
|
|
3104
|
+
if (refreshToken) {
|
|
3105
|
+
window.localStorage.setItem(storageKey, refreshToken);
|
|
3106
|
+
} else {
|
|
3107
|
+
window.localStorage.removeItem(storageKey);
|
|
3108
|
+
}
|
|
3109
|
+
} catch {
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
clearPersistedSession() {
|
|
3113
|
+
if (typeof window === "undefined") return;
|
|
3114
|
+
const storageKey = this.sessionStorageKey();
|
|
3115
|
+
if (!storageKey) return;
|
|
3116
|
+
try {
|
|
3117
|
+
window.localStorage.removeItem(storageKey);
|
|
3118
|
+
} catch {
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
async restoreSession() {
|
|
3122
|
+
if (typeof window === "undefined" || this.accessToken) return;
|
|
3123
|
+
const storageKey = this.sessionStorageKey();
|
|
3124
|
+
if (!storageKey) return;
|
|
3125
|
+
let refreshToken = null;
|
|
3126
|
+
try {
|
|
3127
|
+
refreshToken = window.localStorage.getItem(storageKey);
|
|
3128
|
+
} catch {
|
|
3129
|
+
return;
|
|
3130
|
+
}
|
|
3131
|
+
if (!refreshToken) return;
|
|
3132
|
+
const result = await this.client.link.refreshSession(refreshToken);
|
|
3133
|
+
if (!result.ok || !result.value.session_token) {
|
|
3134
|
+
this.clearPersistedSession();
|
|
3135
|
+
return;
|
|
3136
|
+
}
|
|
3137
|
+
this.persistRefreshToken(result.value.refresh_token ?? void 0);
|
|
3138
|
+
const data = await this.applyAccessToken(result.value.session_token);
|
|
3139
|
+
this.broadcastAccessToken(result.value.session_token);
|
|
3140
|
+
this.elements.forEach((element) => element._emitAuthenticated(data));
|
|
3141
|
+
}
|
|
3090
3142
|
async applyAccessToken(token) {
|
|
3091
3143
|
this.accessToken = token;
|
|
3092
3144
|
this.accountId = decodeJwtSub(token);
|
|
@@ -3169,6 +3221,13 @@ var CimplifyElements = class {
|
|
|
3169
3221
|
case MESSAGE_TYPES.AUTH_REQUESTED:
|
|
3170
3222
|
this.startEmbeddedAuth(sourceElement, message);
|
|
3171
3223
|
break;
|
|
3224
|
+
case MESSAGE_TYPES.SESSION_ESTABLISHED:
|
|
3225
|
+
this.persistRefreshToken(message.refreshToken);
|
|
3226
|
+
void this.applyAccessToken(message.accessToken).then((data) => {
|
|
3227
|
+
this.broadcastAccessToken(message.accessToken);
|
|
3228
|
+
sourceElement._emitAuthenticated(data);
|
|
3229
|
+
});
|
|
3230
|
+
break;
|
|
3172
3231
|
case MESSAGE_TYPES.ADDRESS_CHANGED:
|
|
3173
3232
|
case MESSAGE_TYPES.ADDRESS_SELECTED:
|
|
3174
3233
|
this.addressData = message.address;
|
|
@@ -3196,6 +3255,7 @@ var CimplifyElements = class {
|
|
|
3196
3255
|
this.customerData = null;
|
|
3197
3256
|
this.addressData = null;
|
|
3198
3257
|
this.paymentData = null;
|
|
3258
|
+
this.clearPersistedSession();
|
|
3199
3259
|
this.client.clearSession();
|
|
3200
3260
|
break;
|
|
3201
3261
|
}
|
|
@@ -3244,10 +3304,11 @@ var CimplifyElement = class {
|
|
|
3244
3304
|
}
|
|
3245
3305
|
}
|
|
3246
3306
|
/**
|
|
3247
|
-
* Size the iframe to the element's reported content height.
|
|
3248
|
-
*
|
|
3249
|
-
*
|
|
3250
|
-
*
|
|
3307
|
+
* Size the iframe to the element's reported content height (in pixels). We do
|
|
3308
|
+
* NOT cap checkout at the viewport: capping forced a tall checkout to scroll
|
|
3309
|
+
* *inside* a viewport-height iframe — a nested scroll-within-scroll. Sizing to
|
|
3310
|
+
* content lets the iframe grow and the host page scroll naturally as one
|
|
3311
|
+
* surface, which is the standard embedded-checkout behaviour.
|
|
3251
3312
|
*/
|
|
3252
3313
|
applyHeight(reportedHeight) {
|
|
3253
3314
|
if (!this.iframe) return;
|
|
@@ -3256,12 +3317,7 @@ var CimplifyElement = class {
|
|
|
3256
3317
|
}
|
|
3257
3318
|
const content = this.lastReportedHeight;
|
|
3258
3319
|
if (!content) return;
|
|
3259
|
-
|
|
3260
|
-
this.iframe.style.height = `${content}px`;
|
|
3261
|
-
return;
|
|
3262
|
-
}
|
|
3263
|
-
const capped = Math.max(320, Math.min(content, window.innerHeight));
|
|
3264
|
-
this.iframe.style.height = `${capped}px`;
|
|
3320
|
+
this.iframe.style.height = `${Math.max(320, content)}px`;
|
|
3265
3321
|
}
|
|
3266
3322
|
mount(container) {
|
|
3267
3323
|
if (this.mounted) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { ac as CimplifyClient } from './client-r5VSGFRU.mjs';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-CI1CUFVu.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { ac as CimplifyClient } from './client-D0PrO1-Q.js';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-CHfYeTAa.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -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-DoA36Eqh.js';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-Cfoo9MT7.js';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -1052,6 +1052,7 @@ declare const MESSAGE_TYPES: {
|
|
|
1052
1052
|
readonly PAYMENT_METHOD_SELECTED: "payment_method_selected";
|
|
1053
1053
|
readonly LOGOUT_COMPLETE: "logout_complete";
|
|
1054
1054
|
readonly AUTH_REQUESTED: "auth_requested";
|
|
1055
|
+
readonly SESSION_ESTABLISHED: "session_established";
|
|
1055
1056
|
readonly CONTACT_PROVIDED: "contact_provided";
|
|
1056
1057
|
readonly CHECKOUT_STATUS: "checkout_status";
|
|
1057
1058
|
readonly CHECKOUT_COMPLETE: "checkout_complete";
|
|
@@ -1269,6 +1270,10 @@ type IframeToParentMessage = {
|
|
|
1269
1270
|
saveToLink: boolean;
|
|
1270
1271
|
} | {
|
|
1271
1272
|
type: typeof MESSAGE_TYPES.LOGOUT_COMPLETE;
|
|
1273
|
+
} | {
|
|
1274
|
+
type: typeof MESSAGE_TYPES.SESSION_ESTABLISHED;
|
|
1275
|
+
accessToken: string;
|
|
1276
|
+
refreshToken?: string;
|
|
1272
1277
|
} | {
|
|
1273
1278
|
type: typeof MESSAGE_TYPES.AUTH_REQUESTED;
|
|
1274
1279
|
loginHint?: string;
|
|
@@ -2557,6 +2562,10 @@ declare class CimplifyElements {
|
|
|
2557
2562
|
getAppearance(): ElementsOptions["appearance"];
|
|
2558
2563
|
private hydrateCustomerData;
|
|
2559
2564
|
private sourceElementFor;
|
|
2565
|
+
private sessionStorageKey;
|
|
2566
|
+
private persistRefreshToken;
|
|
2567
|
+
private clearPersistedSession;
|
|
2568
|
+
private restoreSession;
|
|
2560
2569
|
private applyAccessToken;
|
|
2561
2570
|
private broadcastAccessToken;
|
|
2562
2571
|
private startEmbeddedAuth;
|
|
@@ -2586,10 +2595,11 @@ declare class CimplifyElement {
|
|
|
2586
2595
|
private listening;
|
|
2587
2596
|
constructor(type: ElementType, businessId: string | null, linkUrl: string, options: ElementOptions, parent: CimplifyElements);
|
|
2588
2597
|
/**
|
|
2589
|
-
* Size the iframe to the element's reported content height.
|
|
2590
|
-
*
|
|
2591
|
-
*
|
|
2592
|
-
*
|
|
2598
|
+
* Size the iframe to the element's reported content height (in pixels). We do
|
|
2599
|
+
* NOT cap checkout at the viewport: capping forced a tall checkout to scroll
|
|
2600
|
+
* *inside* a viewport-height iframe — a nested scroll-within-scroll. Sizing to
|
|
2601
|
+
* content lets the iframe grow and the host page scroll naturally as one
|
|
2602
|
+
* surface, which is the standard embedded-checkout behaviour.
|
|
2593
2603
|
*/
|
|
2594
2604
|
private applyHeight;
|
|
2595
2605
|
mount(container: string | HTMLElement): void;
|
|
@@ -2711,6 +2721,7 @@ declare class CimplifyClient {
|
|
|
2711
2721
|
setLocationId(locationId: string | null): void;
|
|
2712
2722
|
getLocationId(): string | null;
|
|
2713
2723
|
setBusinessId(businessId: string): void;
|
|
2724
|
+
setPublicKey(publicKey: string): void;
|
|
2714
2725
|
getBusinessId(): string | null;
|
|
2715
2726
|
resolveBusinessId(): Promise<string>;
|
|
2716
2727
|
private authedFetch;
|
|
@@ -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-DoA36Eqh.mjs';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-TnJUoHqL.mjs';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -1052,6 +1052,7 @@ declare const MESSAGE_TYPES: {
|
|
|
1052
1052
|
readonly PAYMENT_METHOD_SELECTED: "payment_method_selected";
|
|
1053
1053
|
readonly LOGOUT_COMPLETE: "logout_complete";
|
|
1054
1054
|
readonly AUTH_REQUESTED: "auth_requested";
|
|
1055
|
+
readonly SESSION_ESTABLISHED: "session_established";
|
|
1055
1056
|
readonly CONTACT_PROVIDED: "contact_provided";
|
|
1056
1057
|
readonly CHECKOUT_STATUS: "checkout_status";
|
|
1057
1058
|
readonly CHECKOUT_COMPLETE: "checkout_complete";
|
|
@@ -1269,6 +1270,10 @@ type IframeToParentMessage = {
|
|
|
1269
1270
|
saveToLink: boolean;
|
|
1270
1271
|
} | {
|
|
1271
1272
|
type: typeof MESSAGE_TYPES.LOGOUT_COMPLETE;
|
|
1273
|
+
} | {
|
|
1274
|
+
type: typeof MESSAGE_TYPES.SESSION_ESTABLISHED;
|
|
1275
|
+
accessToken: string;
|
|
1276
|
+
refreshToken?: string;
|
|
1272
1277
|
} | {
|
|
1273
1278
|
type: typeof MESSAGE_TYPES.AUTH_REQUESTED;
|
|
1274
1279
|
loginHint?: string;
|
|
@@ -2557,6 +2562,10 @@ declare class CimplifyElements {
|
|
|
2557
2562
|
getAppearance(): ElementsOptions["appearance"];
|
|
2558
2563
|
private hydrateCustomerData;
|
|
2559
2564
|
private sourceElementFor;
|
|
2565
|
+
private sessionStorageKey;
|
|
2566
|
+
private persistRefreshToken;
|
|
2567
|
+
private clearPersistedSession;
|
|
2568
|
+
private restoreSession;
|
|
2560
2569
|
private applyAccessToken;
|
|
2561
2570
|
private broadcastAccessToken;
|
|
2562
2571
|
private startEmbeddedAuth;
|
|
@@ -2586,10 +2595,11 @@ declare class CimplifyElement {
|
|
|
2586
2595
|
private listening;
|
|
2587
2596
|
constructor(type: ElementType, businessId: string | null, linkUrl: string, options: ElementOptions, parent: CimplifyElements);
|
|
2588
2597
|
/**
|
|
2589
|
-
* Size the iframe to the element's reported content height.
|
|
2590
|
-
*
|
|
2591
|
-
*
|
|
2592
|
-
*
|
|
2598
|
+
* Size the iframe to the element's reported content height (in pixels). We do
|
|
2599
|
+
* NOT cap checkout at the viewport: capping forced a tall checkout to scroll
|
|
2600
|
+
* *inside* a viewport-height iframe — a nested scroll-within-scroll. Sizing to
|
|
2601
|
+
* content lets the iframe grow and the host page scroll naturally as one
|
|
2602
|
+
* surface, which is the standard embedded-checkout behaviour.
|
|
2593
2603
|
*/
|
|
2594
2604
|
private applyHeight;
|
|
2595
2605
|
mount(container: string | HTMLElement): void;
|
|
@@ -2711,6 +2721,7 @@ declare class CimplifyClient {
|
|
|
2711
2721
|
setLocationId(locationId: string | null): void;
|
|
2712
2722
|
getLocationId(): string | null;
|
|
2713
2723
|
setBusinessId(businessId: string): void;
|
|
2724
|
+
setPublicKey(publicKey: string): void;
|
|
2714
2725
|
getBusinessId(): string | null;
|
|
2715
2726
|
resolveBusinessId(): Promise<string>;
|
|
2716
2727
|
private authedFetch;
|
|
@@ -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-DoA36Eqh.js';
|
|
2
|
+
import { P as ProductWithPrice } from './price-CCDSrIsc.js';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-Cfoo9MT7.js';
|
|
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-DoA36Eqh.mjs';
|
|
2
|
+
import { P as ProductWithPrice } from './price-CM0zVSyM.mjs';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-TnJUoHqL.mjs';
|
|
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,10 +1,10 @@
|
|
|
1
|
-
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, X as ChatWidgetStarter, Y as CheckSlotAvailabilityInput, Z as CheckSlotAvailabilityResult, _ as CheckoutAddressInfo, $ as CheckoutCartData, a0 as CheckoutCartItem, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ContactType, ah as ContentType, ai as CreateAddressInput, aj as CreateMobileMoneyInput, ak as Customer, al as CustomerAddress, am as CustomerBooking, an as CustomerBookingServiceItem, ao as CustomerLinkPreferences, ap as CustomerMobileMoney, aq as CustomerServicePreferences, ar as DEFAULT_COUNTRY, as as DEFAULT_CURRENCY, at as DEVICE_TYPE, au as DayAvailability, av as DeliveryFeeDetails, aw as DeliveryFeeResponse, ax as DeliveryOption, ay as DeliveryOptionsResponse, az as DeliveryService, aA as DepositResult, aB as DeviceType, aC as DismissMessageResponse, aD as ELEMENTS_AUTH_CONTACT_TYPES, aE as ELEMENTS_AUTH_MODES, aF as ELEMENTS_AUTH_PROMPTS, aG as ELEMENT_TYPES, aH as EVENT_TYPES, aI as ElementAppearance, aJ as ElementEventHandler, aK as ElementEventType, aL as ElementOptions, aM as ElementType, aN as ElementsAuthContactType, aO as ElementsAuthMode, aP as ElementsAuthOptions, aQ as ElementsAuthPrompt, aR as ElementsCheckoutData, aS as ElementsCheckoutResult, aT as ElementsCustomerInfo, aU as ElementsOptions, aV as EnrichedOrder, aW as EnrichedOrderItem, aX as EnrollAndLinkOrderInput, aY as EnrollAndLinkOrderResult, aZ as EnrollmentData, a_ as Err, a$ as FeeBearerType, b0 as FetchQuoteInput, b1 as FulfillmentLink, b2 as FulfillmentStatus, b3 as FulfillmentSummaryDTO, b4 as FulfillmentType, b5 as FxQuote, b6 as FxQuoteRequest, b7 as FxQuoteStatus, b8 as FxRateResponse, b9 as FxService, ba as GetAvailableSlotsInput, bb as GetDeliveryOptionsParams, bc as GetOrdersOptions, bd as GetProductsOptions, be as GroupOrderInfo, bf as IframeToParentMessage, bg as InventoryService, bh as LINK_MUTATION, bi as LINK_QUERY, bj as LifecyclePhase, bk as LineItem, bl as LineType, bm as LinkData, bn as LinkEnrollResult, bo as LinkService, bp as LinkSession, bq as LinkStatusResult, br as LiteBootstrap, bs as LiteService, bt as Location, bu as LocationBooking, bv as LocationTaxBehavior, bw as LocationTaxOverrides, bx as LocationTimeProfile, by as LocationWithDetails, bz as MESSAGE_TYPES, bA as MOBILE_MONEY_PROVIDER, bB as MobileMoneyData, bC as MobileMoneyDetails, bD as MobileMoneyProvider, bE as NextAction, bF as ORDER_MUTATION, bG as ORDER_TYPE, bH as ObservabilityHooks, bI as Ok, bJ as Order, bK as OrderCustomerInfo, bL as OrderDiscountInfo, bM as OrderFilter, bN as OrderFulfillmentSummary, bO as OrderGroup, bP as OrderGroupDetails, bQ as OrderGroupPayment, bR as OrderGroupPaymentState, bS as OrderGroupPaymentStatus, bT as OrderGroupPaymentSummary, bU as OrderGroupStatus, bV as OrderHistory, bW as OrderLineState, bX as OrderLineStatus, bY as OrderLocationInfo, bZ as OrderPaymentEvent, b_ as OrderPricingView, b$ as OrderQueries, c0 as OrderSplitDetail, c1 as OrderStaffInfo, c2 as OrderStatus, c3 as OrderTimestampsDTO, c4 as OrderType, c5 as Origin, c6 as OriginActor, c7 as OriginChannel, c8 as OtpResult, c9 as PAYMENT_METHOD, ca as PAYMENT_MUTATION, cb as PAYMENT_STATE, cc as PICKUP_TIME_TYPE, cd as ParentToIframeMessage, ce as PaymentInfoDTO, cf as PaymentMethodInfo, cg as PaymentState, ch as PickupTime, ci as PickupTimeType, cj as PlaceDetailsResponse, ck as PlacesService, cl as PriceQuote, cm as PricingOverrides, cn as ProcessAndResolveOptions, co as ProcessCheckoutOptions, cp as ProcessCheckoutResult, cq as ProviderResolutionSource, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, ct as QuoteDynamicBuckets, cu as QuoteStatus, cv as QuoteUiMessage, cw as ReadRequestOptions, cx as RefreshQuoteInput, cy as RefreshQuoteResult, cz as RefundOrderInput, cA as RelatedCandidate, cB as RelatedProduct, cC as RelatedProductsEnrichment, cD as RelationType, cE as ReminderMethod, cF as ReminderSettings, cG as ReorderResult, cH as RequestContext, cI as RequestErrorEvent, cJ as RequestOptions, cK as RequestOtpInput, cL as RequestSource, cM as RequestStartEvent, cN as RequestSuccessEvent, cO as RescheduleBookingInput, cP as RescheduleBookingResult, cQ as RescheduleHistoryRecord, cR as ResourceAssignment, cS as ResourceInfo, cT as Result, cU as RetryEvent, cV as RevokeAllSessionsResult, cW as RevokeSessionResult, cX as Room, cY as SchedulingMetadata, cZ as SchedulingResult, c_ as SchedulingService, c$ as SenderType, d0 as Service, d1 as ServiceAvailabilityParams, d2 as ServiceAvailabilityResult, d3 as ServiceCharge, d4 as ServiceNotes, d5 as ServiceScheduleRequest, d6 as ServiceStatus, d7 as SessionActivityData, d8 as SessionChangeEvent, d9 as SessionMessage, da as SlotResourceInfo, db as SlotStaffInfo, dc as Staff, dd as StaffAssignment, de as StaffRole, df as StaffScheduleItem, dg as StockLevel, dh as StockStatus, di as StoreCreditBalance, dj as StoreCreditQueries, dk as StorefrontBootstrap, dl as SubscriptionService, dm as SupportService, dn as Table, dp as TimeRange, dq as TimeRanges, dr as TimeSlot, ds as TrackCategoryViewOptions, dt as TrackProductViewOptions, du as UpdateAddressInput, dv as UpdateOrderStatusInput, dw as UpdateProfileInput, dx as UploadInitResponse, dy as UploadResult, dz as UploadService, dA as VerifyOtpInput, dB as combine, dC as combineObject, dD as createCimplifyClient, dE as createElements, dF as err, dG as flatMap, dH as fromPromise, dI as getOrElse, dJ as isErr, dK as isOk, dL as mapError, dM as mapResult, dN as ok, dO as toNullable, dP as tryCatch, dQ as unwrap } from './client-
|
|
2
|
-
import { bb as ProductWithDetails, j as ApiError } from './product-
|
|
3
|
-
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, av as DurationUnit, 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, aZ as Product, 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-
|
|
4
|
-
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
|
+
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, X as ChatWidgetStarter, Y as CheckSlotAvailabilityInput, Z as CheckSlotAvailabilityResult, _ as CheckoutAddressInfo, $ as CheckoutCartData, a0 as CheckoutCartItem, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ContactType, ah as ContentType, ai as CreateAddressInput, aj as CreateMobileMoneyInput, ak as Customer, al as CustomerAddress, am as CustomerBooking, an as CustomerBookingServiceItem, ao as CustomerLinkPreferences, ap as CustomerMobileMoney, aq as CustomerServicePreferences, ar as DEFAULT_COUNTRY, as as DEFAULT_CURRENCY, at as DEVICE_TYPE, au as DayAvailability, av as DeliveryFeeDetails, aw as DeliveryFeeResponse, ax as DeliveryOption, ay as DeliveryOptionsResponse, az as DeliveryService, aA as DepositResult, aB as DeviceType, aC as DismissMessageResponse, aD as ELEMENTS_AUTH_CONTACT_TYPES, aE as ELEMENTS_AUTH_MODES, aF as ELEMENTS_AUTH_PROMPTS, aG as ELEMENT_TYPES, aH as EVENT_TYPES, aI as ElementAppearance, aJ as ElementEventHandler, aK as ElementEventType, aL as ElementOptions, aM as ElementType, aN as ElementsAuthContactType, aO as ElementsAuthMode, aP as ElementsAuthOptions, aQ as ElementsAuthPrompt, aR as ElementsCheckoutData, aS as ElementsCheckoutResult, aT as ElementsCustomerInfo, aU as ElementsOptions, aV as EnrichedOrder, aW as EnrichedOrderItem, aX as EnrollAndLinkOrderInput, aY as EnrollAndLinkOrderResult, aZ as EnrollmentData, a_ as Err, a$ as FeeBearerType, b0 as FetchQuoteInput, b1 as FulfillmentLink, b2 as FulfillmentStatus, b3 as FulfillmentSummaryDTO, b4 as FulfillmentType, b5 as FxQuote, b6 as FxQuoteRequest, b7 as FxQuoteStatus, b8 as FxRateResponse, b9 as FxService, ba as GetAvailableSlotsInput, bb as GetDeliveryOptionsParams, bc as GetOrdersOptions, bd as GetProductsOptions, be as GroupOrderInfo, bf as IframeToParentMessage, bg as InventoryService, bh as LINK_MUTATION, bi as LINK_QUERY, bj as LifecyclePhase, bk as LineItem, bl as LineType, bm as LinkData, bn as LinkEnrollResult, bo as LinkService, bp as LinkSession, bq as LinkStatusResult, br as LiteBootstrap, bs as LiteService, bt as Location, bu as LocationBooking, bv as LocationTaxBehavior, bw as LocationTaxOverrides, bx as LocationTimeProfile, by as LocationWithDetails, bz as MESSAGE_TYPES, bA as MOBILE_MONEY_PROVIDER, bB as MobileMoneyData, bC as MobileMoneyDetails, bD as MobileMoneyProvider, bE as NextAction, bF as ORDER_MUTATION, bG as ORDER_TYPE, bH as ObservabilityHooks, bI as Ok, bJ as Order, bK as OrderCustomerInfo, bL as OrderDiscountInfo, bM as OrderFilter, bN as OrderFulfillmentSummary, bO as OrderGroup, bP as OrderGroupDetails, bQ as OrderGroupPayment, bR as OrderGroupPaymentState, bS as OrderGroupPaymentStatus, bT as OrderGroupPaymentSummary, bU as OrderGroupStatus, bV as OrderHistory, bW as OrderLineState, bX as OrderLineStatus, bY as OrderLocationInfo, bZ as OrderPaymentEvent, b_ as OrderPricingView, b$ as OrderQueries, c0 as OrderSplitDetail, c1 as OrderStaffInfo, c2 as OrderStatus, c3 as OrderTimestampsDTO, c4 as OrderType, c5 as Origin, c6 as OriginActor, c7 as OriginChannel, c8 as OtpResult, c9 as PAYMENT_METHOD, ca as PAYMENT_MUTATION, cb as PAYMENT_STATE, cc as PICKUP_TIME_TYPE, cd as ParentToIframeMessage, ce as PaymentInfoDTO, cf as PaymentMethodInfo, cg as PaymentState, ch as PickupTime, ci as PickupTimeType, cj as PlaceDetailsResponse, ck as PlacesService, cl as PriceQuote, cm as PricingOverrides, cn as ProcessAndResolveOptions, co as ProcessCheckoutOptions, cp as ProcessCheckoutResult, cq as ProviderResolutionSource, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, ct as QuoteDynamicBuckets, cu as QuoteStatus, cv as QuoteUiMessage, cw as ReadRequestOptions, cx as RefreshQuoteInput, cy as RefreshQuoteResult, cz as RefundOrderInput, cA as RelatedCandidate, cB as RelatedProduct, cC as RelatedProductsEnrichment, cD as RelationType, cE as ReminderMethod, cF as ReminderSettings, cG as ReorderResult, cH as RequestContext, cI as RequestErrorEvent, cJ as RequestOptions, cK as RequestOtpInput, cL as RequestSource, cM as RequestStartEvent, cN as RequestSuccessEvent, cO as RescheduleBookingInput, cP as RescheduleBookingResult, cQ as RescheduleHistoryRecord, cR as ResourceAssignment, cS as ResourceInfo, cT as Result, cU as RetryEvent, cV as RevokeAllSessionsResult, cW as RevokeSessionResult, cX as Room, cY as SchedulingMetadata, cZ as SchedulingResult, c_ as SchedulingService, c$ as SenderType, d0 as Service, d1 as ServiceAvailabilityParams, d2 as ServiceAvailabilityResult, d3 as ServiceCharge, d4 as ServiceNotes, d5 as ServiceScheduleRequest, d6 as ServiceStatus, d7 as SessionActivityData, d8 as SessionChangeEvent, d9 as SessionMessage, da as SlotResourceInfo, db as SlotStaffInfo, dc as Staff, dd as StaffAssignment, de as StaffRole, df as StaffScheduleItem, dg as StockLevel, dh as StockStatus, di as StoreCreditBalance, dj as StoreCreditQueries, dk as StorefrontBootstrap, dl as SubscriptionService, dm as SupportService, dn as Table, dp as TimeRange, dq as TimeRanges, dr as TimeSlot, ds as TrackCategoryViewOptions, dt as TrackProductViewOptions, du as UpdateAddressInput, dv as UpdateOrderStatusInput, dw as UpdateProfileInput, dx as UploadInitResponse, dy as UploadResult, dz as UploadService, dA as VerifyOtpInput, dB as combine, dC as combineObject, dD as createCimplifyClient, dE as createElements, dF as err, dG as flatMap, dH as fromPromise, dI as getOrElse, dJ as isErr, dK as isOk, dL as mapError, dM as mapResult, dN as ok, dO as toNullable, dP as tryCatch, dQ as unwrap } from './client-r5VSGFRU.mjs';
|
|
2
|
+
import { bb as ProductWithDetails, j as ApiError } from './product-DoA36Eqh.mjs';
|
|
3
|
+
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, av as DurationUnit, 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, aZ as Product, 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-DoA36Eqh.mjs';
|
|
4
|
+
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-DLulxmF1.mjs';
|
|
5
5
|
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';
|
|
6
|
-
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-
|
|
7
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
6
|
+
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-TnJUoHqL.mjs';
|
|
7
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-CM0zVSyM.mjs';
|
|
8
8
|
export { generateIdempotencyKey } from './advanced.mjs';
|
|
9
9
|
import 'libphonenumber-js';
|
|
10
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
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, X as ChatWidgetStarter, Y as CheckSlotAvailabilityInput, Z as CheckSlotAvailabilityResult, _ as CheckoutAddressInfo, $ as CheckoutCartData, a0 as CheckoutCartItem, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ContactType, ah as ContentType, ai as CreateAddressInput, aj as CreateMobileMoneyInput, ak as Customer, al as CustomerAddress, am as CustomerBooking, an as CustomerBookingServiceItem, ao as CustomerLinkPreferences, ap as CustomerMobileMoney, aq as CustomerServicePreferences, ar as DEFAULT_COUNTRY, as as DEFAULT_CURRENCY, at as DEVICE_TYPE, au as DayAvailability, av as DeliveryFeeDetails, aw as DeliveryFeeResponse, ax as DeliveryOption, ay as DeliveryOptionsResponse, az as DeliveryService, aA as DepositResult, aB as DeviceType, aC as DismissMessageResponse, aD as ELEMENTS_AUTH_CONTACT_TYPES, aE as ELEMENTS_AUTH_MODES, aF as ELEMENTS_AUTH_PROMPTS, aG as ELEMENT_TYPES, aH as EVENT_TYPES, aI as ElementAppearance, aJ as ElementEventHandler, aK as ElementEventType, aL as ElementOptions, aM as ElementType, aN as ElementsAuthContactType, aO as ElementsAuthMode, aP as ElementsAuthOptions, aQ as ElementsAuthPrompt, aR as ElementsCheckoutData, aS as ElementsCheckoutResult, aT as ElementsCustomerInfo, aU as ElementsOptions, aV as EnrichedOrder, aW as EnrichedOrderItem, aX as EnrollAndLinkOrderInput, aY as EnrollAndLinkOrderResult, aZ as EnrollmentData, a_ as Err, a$ as FeeBearerType, b0 as FetchQuoteInput, b1 as FulfillmentLink, b2 as FulfillmentStatus, b3 as FulfillmentSummaryDTO, b4 as FulfillmentType, b5 as FxQuote, b6 as FxQuoteRequest, b7 as FxQuoteStatus, b8 as FxRateResponse, b9 as FxService, ba as GetAvailableSlotsInput, bb as GetDeliveryOptionsParams, bc as GetOrdersOptions, bd as GetProductsOptions, be as GroupOrderInfo, bf as IframeToParentMessage, bg as InventoryService, bh as LINK_MUTATION, bi as LINK_QUERY, bj as LifecyclePhase, bk as LineItem, bl as LineType, bm as LinkData, bn as LinkEnrollResult, bo as LinkService, bp as LinkSession, bq as LinkStatusResult, br as LiteBootstrap, bs as LiteService, bt as Location, bu as LocationBooking, bv as LocationTaxBehavior, bw as LocationTaxOverrides, bx as LocationTimeProfile, by as LocationWithDetails, bz as MESSAGE_TYPES, bA as MOBILE_MONEY_PROVIDER, bB as MobileMoneyData, bC as MobileMoneyDetails, bD as MobileMoneyProvider, bE as NextAction, bF as ORDER_MUTATION, bG as ORDER_TYPE, bH as ObservabilityHooks, bI as Ok, bJ as Order, bK as OrderCustomerInfo, bL as OrderDiscountInfo, bM as OrderFilter, bN as OrderFulfillmentSummary, bO as OrderGroup, bP as OrderGroupDetails, bQ as OrderGroupPayment, bR as OrderGroupPaymentState, bS as OrderGroupPaymentStatus, bT as OrderGroupPaymentSummary, bU as OrderGroupStatus, bV as OrderHistory, bW as OrderLineState, bX as OrderLineStatus, bY as OrderLocationInfo, bZ as OrderPaymentEvent, b_ as OrderPricingView, b$ as OrderQueries, c0 as OrderSplitDetail, c1 as OrderStaffInfo, c2 as OrderStatus, c3 as OrderTimestampsDTO, c4 as OrderType, c5 as Origin, c6 as OriginActor, c7 as OriginChannel, c8 as OtpResult, c9 as PAYMENT_METHOD, ca as PAYMENT_MUTATION, cb as PAYMENT_STATE, cc as PICKUP_TIME_TYPE, cd as ParentToIframeMessage, ce as PaymentInfoDTO, cf as PaymentMethodInfo, cg as PaymentState, ch as PickupTime, ci as PickupTimeType, cj as PlaceDetailsResponse, ck as PlacesService, cl as PriceQuote, cm as PricingOverrides, cn as ProcessAndResolveOptions, co as ProcessCheckoutOptions, cp as ProcessCheckoutResult, cq as ProviderResolutionSource, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, ct as QuoteDynamicBuckets, cu as QuoteStatus, cv as QuoteUiMessage, cw as ReadRequestOptions, cx as RefreshQuoteInput, cy as RefreshQuoteResult, cz as RefundOrderInput, cA as RelatedCandidate, cB as RelatedProduct, cC as RelatedProductsEnrichment, cD as RelationType, cE as ReminderMethod, cF as ReminderSettings, cG as ReorderResult, cH as RequestContext, cI as RequestErrorEvent, cJ as RequestOptions, cK as RequestOtpInput, cL as RequestSource, cM as RequestStartEvent, cN as RequestSuccessEvent, cO as RescheduleBookingInput, cP as RescheduleBookingResult, cQ as RescheduleHistoryRecord, cR as ResourceAssignment, cS as ResourceInfo, cT as Result, cU as RetryEvent, cV as RevokeAllSessionsResult, cW as RevokeSessionResult, cX as Room, cY as SchedulingMetadata, cZ as SchedulingResult, c_ as SchedulingService, c$ as SenderType, d0 as Service, d1 as ServiceAvailabilityParams, d2 as ServiceAvailabilityResult, d3 as ServiceCharge, d4 as ServiceNotes, d5 as ServiceScheduleRequest, d6 as ServiceStatus, d7 as SessionActivityData, d8 as SessionChangeEvent, d9 as SessionMessage, da as SlotResourceInfo, db as SlotStaffInfo, dc as Staff, dd as StaffAssignment, de as StaffRole, df as StaffScheduleItem, dg as StockLevel, dh as StockStatus, di as StoreCreditBalance, dj as StoreCreditQueries, dk as StorefrontBootstrap, dl as SubscriptionService, dm as SupportService, dn as Table, dp as TimeRange, dq as TimeRanges, dr as TimeSlot, ds as TrackCategoryViewOptions, dt as TrackProductViewOptions, du as UpdateAddressInput, dv as UpdateOrderStatusInput, dw as UpdateProfileInput, dx as UploadInitResponse, dy as UploadResult, dz as UploadService, dA as VerifyOtpInput, dB as combine, dC as combineObject, dD as createCimplifyClient, dE as createElements, dF as err, dG as flatMap, dH as fromPromise, dI as getOrElse, dJ as isErr, dK as isOk, dL as mapError, dM as mapResult, dN as ok, dO as toNullable, dP as tryCatch, dQ as unwrap } from './client-
|
|
2
|
-
import { bb as ProductWithDetails, j as ApiError } from './product-
|
|
3
|
-
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, av as DurationUnit, 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, aZ as Product, 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-
|
|
4
|
-
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
|
+
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, X as ChatWidgetStarter, Y as CheckSlotAvailabilityInput, Z as CheckSlotAvailabilityResult, _ as CheckoutAddressInfo, $ as CheckoutCartData, a0 as CheckoutCartItem, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ContactType, ah as ContentType, ai as CreateAddressInput, aj as CreateMobileMoneyInput, ak as Customer, al as CustomerAddress, am as CustomerBooking, an as CustomerBookingServiceItem, ao as CustomerLinkPreferences, ap as CustomerMobileMoney, aq as CustomerServicePreferences, ar as DEFAULT_COUNTRY, as as DEFAULT_CURRENCY, at as DEVICE_TYPE, au as DayAvailability, av as DeliveryFeeDetails, aw as DeliveryFeeResponse, ax as DeliveryOption, ay as DeliveryOptionsResponse, az as DeliveryService, aA as DepositResult, aB as DeviceType, aC as DismissMessageResponse, aD as ELEMENTS_AUTH_CONTACT_TYPES, aE as ELEMENTS_AUTH_MODES, aF as ELEMENTS_AUTH_PROMPTS, aG as ELEMENT_TYPES, aH as EVENT_TYPES, aI as ElementAppearance, aJ as ElementEventHandler, aK as ElementEventType, aL as ElementOptions, aM as ElementType, aN as ElementsAuthContactType, aO as ElementsAuthMode, aP as ElementsAuthOptions, aQ as ElementsAuthPrompt, aR as ElementsCheckoutData, aS as ElementsCheckoutResult, aT as ElementsCustomerInfo, aU as ElementsOptions, aV as EnrichedOrder, aW as EnrichedOrderItem, aX as EnrollAndLinkOrderInput, aY as EnrollAndLinkOrderResult, aZ as EnrollmentData, a_ as Err, a$ as FeeBearerType, b0 as FetchQuoteInput, b1 as FulfillmentLink, b2 as FulfillmentStatus, b3 as FulfillmentSummaryDTO, b4 as FulfillmentType, b5 as FxQuote, b6 as FxQuoteRequest, b7 as FxQuoteStatus, b8 as FxRateResponse, b9 as FxService, ba as GetAvailableSlotsInput, bb as GetDeliveryOptionsParams, bc as GetOrdersOptions, bd as GetProductsOptions, be as GroupOrderInfo, bf as IframeToParentMessage, bg as InventoryService, bh as LINK_MUTATION, bi as LINK_QUERY, bj as LifecyclePhase, bk as LineItem, bl as LineType, bm as LinkData, bn as LinkEnrollResult, bo as LinkService, bp as LinkSession, bq as LinkStatusResult, br as LiteBootstrap, bs as LiteService, bt as Location, bu as LocationBooking, bv as LocationTaxBehavior, bw as LocationTaxOverrides, bx as LocationTimeProfile, by as LocationWithDetails, bz as MESSAGE_TYPES, bA as MOBILE_MONEY_PROVIDER, bB as MobileMoneyData, bC as MobileMoneyDetails, bD as MobileMoneyProvider, bE as NextAction, bF as ORDER_MUTATION, bG as ORDER_TYPE, bH as ObservabilityHooks, bI as Ok, bJ as Order, bK as OrderCustomerInfo, bL as OrderDiscountInfo, bM as OrderFilter, bN as OrderFulfillmentSummary, bO as OrderGroup, bP as OrderGroupDetails, bQ as OrderGroupPayment, bR as OrderGroupPaymentState, bS as OrderGroupPaymentStatus, bT as OrderGroupPaymentSummary, bU as OrderGroupStatus, bV as OrderHistory, bW as OrderLineState, bX as OrderLineStatus, bY as OrderLocationInfo, bZ as OrderPaymentEvent, b_ as OrderPricingView, b$ as OrderQueries, c0 as OrderSplitDetail, c1 as OrderStaffInfo, c2 as OrderStatus, c3 as OrderTimestampsDTO, c4 as OrderType, c5 as Origin, c6 as OriginActor, c7 as OriginChannel, c8 as OtpResult, c9 as PAYMENT_METHOD, ca as PAYMENT_MUTATION, cb as PAYMENT_STATE, cc as PICKUP_TIME_TYPE, cd as ParentToIframeMessage, ce as PaymentInfoDTO, cf as PaymentMethodInfo, cg as PaymentState, ch as PickupTime, ci as PickupTimeType, cj as PlaceDetailsResponse, ck as PlacesService, cl as PriceQuote, cm as PricingOverrides, cn as ProcessAndResolveOptions, co as ProcessCheckoutOptions, cp as ProcessCheckoutResult, cq as ProviderResolutionSource, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, ct as QuoteDynamicBuckets, cu as QuoteStatus, cv as QuoteUiMessage, cw as ReadRequestOptions, cx as RefreshQuoteInput, cy as RefreshQuoteResult, cz as RefundOrderInput, cA as RelatedCandidate, cB as RelatedProduct, cC as RelatedProductsEnrichment, cD as RelationType, cE as ReminderMethod, cF as ReminderSettings, cG as ReorderResult, cH as RequestContext, cI as RequestErrorEvent, cJ as RequestOptions, cK as RequestOtpInput, cL as RequestSource, cM as RequestStartEvent, cN as RequestSuccessEvent, cO as RescheduleBookingInput, cP as RescheduleBookingResult, cQ as RescheduleHistoryRecord, cR as ResourceAssignment, cS as ResourceInfo, cT as Result, cU as RetryEvent, cV as RevokeAllSessionsResult, cW as RevokeSessionResult, cX as Room, cY as SchedulingMetadata, cZ as SchedulingResult, c_ as SchedulingService, c$ as SenderType, d0 as Service, d1 as ServiceAvailabilityParams, d2 as ServiceAvailabilityResult, d3 as ServiceCharge, d4 as ServiceNotes, d5 as ServiceScheduleRequest, d6 as ServiceStatus, d7 as SessionActivityData, d8 as SessionChangeEvent, d9 as SessionMessage, da as SlotResourceInfo, db as SlotStaffInfo, dc as Staff, dd as StaffAssignment, de as StaffRole, df as StaffScheduleItem, dg as StockLevel, dh as StockStatus, di as StoreCreditBalance, dj as StoreCreditQueries, dk as StorefrontBootstrap, dl as SubscriptionService, dm as SupportService, dn as Table, dp as TimeRange, dq as TimeRanges, dr as TimeSlot, ds as TrackCategoryViewOptions, dt as TrackProductViewOptions, du as UpdateAddressInput, dv as UpdateOrderStatusInput, dw as UpdateProfileInput, dx as UploadInitResponse, dy as UploadResult, dz as UploadService, dA as VerifyOtpInput, dB as combine, dC as combineObject, dD as createCimplifyClient, dE as createElements, dF as err, dG as flatMap, dH as fromPromise, dI as getOrElse, dJ as isErr, dK as isOk, dL as mapError, dM as mapResult, dN as ok, dO as toNullable, dP as tryCatch, dQ as unwrap } from './client-D0PrO1-Q.js';
|
|
2
|
+
import { bb as ProductWithDetails, j as ApiError } from './product-DoA36Eqh.js';
|
|
3
|
+
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, av as DurationUnit, 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, aZ as Product, 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-DoA36Eqh.js';
|
|
4
|
+
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-C-Pxrzna.js';
|
|
5
5
|
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';
|
|
6
|
-
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-
|
|
7
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
6
|
+
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-Cfoo9MT7.js';
|
|
7
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-CCDSrIsc.js';
|
|
8
8
|
export { generateIdempotencyKey } from './advanced.js';
|
|
9
9
|
import 'libphonenumber-js';
|
|
10
10
|
|