@cimplify/sdk 0.66.0 → 0.68.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 +1 -1
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +20 -20
- package/dist/advanced.mjs +1 -1
- package/dist/{chunk-J3MGY6AU.js → chunk-5HAUJBOK.js} +36 -82
- package/dist/chunk-E6T5VJMG.mjs +156 -0
- package/dist/{chunk-3G4QCENX.mjs → chunk-FVGVJ4TC.mjs} +12 -50
- package/dist/chunk-IQLJJW2H.js +168 -0
- package/dist/{chunk-227XTAEB.mjs → chunk-KNPE4WCQ.mjs} +2 -48
- package/dist/{chunk-H6DBPHMZ.js → chunk-NGQCWFKF.js} +4 -4
- package/dist/{chunk-R6363CC7.mjs → chunk-SOV4H6PQ.mjs} +509 -79
- package/dist/{chunk-HCZTBWU4.js → chunk-SXGFJEME.js} +12 -50
- package/dist/{chunk-MWI5GAUF.mjs → chunk-TAKORJP4.mjs} +2 -2
- package/dist/{chunk-AVQL3TSJ.js → chunk-WCSAZRNC.js} +519 -78
- package/dist/{client-CUrA1uQ0.d.mts → client-CBE7ksYC.d.mts} +1 -1
- package/dist/{client-Bo5rujc2.d.ts → client-CfeQRwhl.d.ts} +55 -21
- package/dist/{client-DasPHOJh.d.ts → client-DlXfZy7N.d.ts} +1 -1
- package/dist/{client-Dka2cGhu.d.mts → client-Dyo3dvNy.d.mts} +55 -21
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +104 -88
- package/dist/index.mjs +16 -12
- package/dist/mock/cli.mjs +12 -50
- package/dist/mock/library.js +12 -50
- package/dist/mock/library.mjs +12 -50
- package/dist/mock/msw.js +12 -50
- package/dist/mock/msw.mjs +12 -50
- package/dist/react.d.mts +44 -44
- package/dist/react.d.ts +44 -44
- package/dist/react.js +298 -175
- package/dist/react.mjs +240 -117
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +16 -9
- package/dist/server.mjs +11 -4
- package/dist/{sign-in-dr7m09nm.d.ts → sign-in-DQlIdqsi.d.mts} +14 -1
- package/dist/{sign-in-dr7m09nm.d.mts → sign-in-DQlIdqsi.d.ts} +14 -1
- package/dist/styles.css +1 -1
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.d.mts +2 -2
- package/dist/testing/suite.d.ts +2 -2
- package/dist/testing/suite.js +23 -23
- package/dist/testing/suite.mjs +4 -4
- package/dist/testing.d.mts +17 -17
- package/dist/testing.d.ts +17 -17
- package/dist/testing.js +79 -79
- package/dist/testing.mjs +5 -5
- package/package.json +1 -1
- package/registry/index.json +0 -9
- package/dist/chunk-3Z3FQH7X.mjs +0 -323
- package/dist/chunk-7BKKBJQM.mjs +0 -52
- package/dist/chunk-GDAGM26J.js +0 -338
- package/dist/chunk-KWYI2TTA.js +0 -60
- package/registry/account.json +0 -15
|
@@ -999,12 +999,16 @@ interface VerifyOtpInput {
|
|
|
999
999
|
contact: string;
|
|
1000
1000
|
contact_type: ContactType;
|
|
1001
1001
|
otp_code: string;
|
|
1002
|
-
business_id?: string;
|
|
1003
1002
|
}
|
|
1004
1003
|
interface AuthResponse {
|
|
1005
1004
|
success: boolean;
|
|
1006
1005
|
session_token: string | null;
|
|
1006
|
+
refresh_token?: string | null;
|
|
1007
|
+
account_id?: string | null;
|
|
1007
1008
|
customer_id: string | null;
|
|
1009
|
+
name?: string | null;
|
|
1010
|
+
email?: string | null;
|
|
1011
|
+
phone?: string | null;
|
|
1008
1012
|
message: string;
|
|
1009
1013
|
}
|
|
1010
1014
|
|
|
@@ -1239,6 +1243,7 @@ declare class LinkService {
|
|
|
1239
1243
|
constructor(client: CimplifyClient);
|
|
1240
1244
|
requestOtp(input: RequestOtpInput, opts?: IdempotencyOption$6): Promise<Result<SuccessResult$1, CimplifyError>>;
|
|
1241
1245
|
verifyOtp(input: VerifyOtpInput, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
|
|
1246
|
+
refreshSession(sessionToken?: string, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
|
|
1242
1247
|
logout(): Promise<Result<SuccessResult$1, CimplifyError>>;
|
|
1243
1248
|
checkStatus(contact: string): Promise<Result<LinkStatusResult, CimplifyError>>;
|
|
1244
1249
|
getLinkData(): Promise<Result<LinkData, CimplifyError>>;
|
|
@@ -2026,20 +2031,19 @@ declare const MESSAGE_TYPES: {
|
|
|
2026
2031
|
readonly SET_TOKEN: "set_token";
|
|
2027
2032
|
readonly SET_CART: "set_cart";
|
|
2028
2033
|
readonly GET_DATA: "get_data";
|
|
2034
|
+
readonly NAVIGATE: "navigate";
|
|
2029
2035
|
readonly REFRESH_TOKEN: "refresh_token";
|
|
2030
2036
|
readonly LOGOUT: "logout";
|
|
2031
2037
|
readonly PROCESS_CHECKOUT: "process_checkout";
|
|
2032
2038
|
readonly ABORT_CHECKOUT: "abort_checkout";
|
|
2033
2039
|
readonly READY: "ready";
|
|
2034
2040
|
readonly HEIGHT_CHANGE: "height_change";
|
|
2035
|
-
readonly AUTHENTICATED: "authenticated";
|
|
2036
|
-
readonly REQUIRES_OTP: "requires_otp";
|
|
2037
2041
|
readonly ERROR: "error";
|
|
2038
2042
|
readonly ADDRESS_CHANGED: "address_changed";
|
|
2039
2043
|
readonly ADDRESS_SELECTED: "address_selected";
|
|
2040
2044
|
readonly PAYMENT_METHOD_SELECTED: "payment_method_selected";
|
|
2041
|
-
readonly TOKEN_REFRESHED: "token_refreshed";
|
|
2042
2045
|
readonly LOGOUT_COMPLETE: "logout_complete";
|
|
2046
|
+
readonly AUTH_REQUESTED: "auth_requested";
|
|
2043
2047
|
readonly CONTACT_PROVIDED: "contact_provided";
|
|
2044
2048
|
readonly CHECKOUT_STATUS: "checkout_status";
|
|
2045
2049
|
readonly CHECKOUT_COMPLETE: "checkout_complete";
|
|
@@ -2049,6 +2053,15 @@ declare const MESSAGE_TYPES: {
|
|
|
2049
2053
|
interface ElementsOptions {
|
|
2050
2054
|
linkUrl?: string;
|
|
2051
2055
|
appearance?: ElementAppearance;
|
|
2056
|
+
auth?: ElementsAuthOptions;
|
|
2057
|
+
}
|
|
2058
|
+
interface ElementsAuthOptions {
|
|
2059
|
+
clientId?: string;
|
|
2060
|
+
redirectUri?: string;
|
|
2061
|
+
callbackUri?: string;
|
|
2062
|
+
scope?: string;
|
|
2063
|
+
issuer?: string;
|
|
2064
|
+
authUrl?: string;
|
|
2052
2065
|
}
|
|
2053
2066
|
interface ElementAppearance {
|
|
2054
2067
|
theme?: "light" | "dark";
|
|
@@ -2098,6 +2111,20 @@ type ElementsCustomerInfo = {
|
|
|
2098
2111
|
email: string | null;
|
|
2099
2112
|
phone: string | null;
|
|
2100
2113
|
} | null;
|
|
2114
|
+
declare const ELEMENTS_AUTH_CONTACT_TYPES: {
|
|
2115
|
+
readonly EMAIL: "email";
|
|
2116
|
+
readonly PHONE: "phone";
|
|
2117
|
+
};
|
|
2118
|
+
type ElementsAuthContactType = (typeof ELEMENTS_AUTH_CONTACT_TYPES)[keyof typeof ELEMENTS_AUTH_CONTACT_TYPES];
|
|
2119
|
+
declare const ELEMENTS_AUTH_PROMPTS: {
|
|
2120
|
+
readonly LOGIN: "login";
|
|
2121
|
+
};
|
|
2122
|
+
type ElementsAuthPrompt = (typeof ELEMENTS_AUTH_PROMPTS)[keyof typeof ELEMENTS_AUTH_PROMPTS];
|
|
2123
|
+
declare const ELEMENTS_AUTH_MODES: {
|
|
2124
|
+
readonly CHECKOUT: "checkout";
|
|
2125
|
+
readonly DEFAULT: "default";
|
|
2126
|
+
};
|
|
2127
|
+
type ElementsAuthMode = (typeof ELEMENTS_AUTH_MODES)[keyof typeof ELEMENTS_AUTH_MODES];
|
|
2101
2128
|
interface AuthenticatedData {
|
|
2102
2129
|
accountId: string;
|
|
2103
2130
|
customerId: string;
|
|
@@ -2164,9 +2191,14 @@ type ParentToIframeMessage = {
|
|
|
2164
2191
|
defaultOrderType?: OrderType;
|
|
2165
2192
|
renderSubmitButton?: boolean;
|
|
2166
2193
|
submitLabel?: string;
|
|
2194
|
+
token?: string;
|
|
2195
|
+
merchantName?: string;
|
|
2167
2196
|
} | {
|
|
2168
2197
|
type: typeof MESSAGE_TYPES.SET_TOKEN;
|
|
2169
2198
|
token: string;
|
|
2199
|
+
} | {
|
|
2200
|
+
type: typeof MESSAGE_TYPES.NAVIGATE;
|
|
2201
|
+
path: string;
|
|
2170
2202
|
} | {
|
|
2171
2203
|
type: typeof MESSAGE_TYPES.SET_CART;
|
|
2172
2204
|
cart: CheckoutCartData;
|
|
@@ -2199,19 +2231,10 @@ type IframeToParentMessage = {
|
|
|
2199
2231
|
} | {
|
|
2200
2232
|
type: typeof MESSAGE_TYPES.HEIGHT_CHANGE;
|
|
2201
2233
|
height: number;
|
|
2202
|
-
} | {
|
|
2203
|
-
type: typeof MESSAGE_TYPES.AUTHENTICATED;
|
|
2204
|
-
accountId: string;
|
|
2205
|
-
customerId: string;
|
|
2206
|
-
token: string;
|
|
2207
|
-
customer: AuthenticatedCustomer;
|
|
2208
|
-
} | {
|
|
2209
|
-
type: typeof MESSAGE_TYPES.REQUIRES_OTP;
|
|
2210
|
-
contactMasked: string;
|
|
2211
2234
|
} | {
|
|
2212
2235
|
type: typeof MESSAGE_TYPES.CONTACT_PROVIDED;
|
|
2213
2236
|
contact: string;
|
|
2214
|
-
contactType:
|
|
2237
|
+
contactType: ElementsAuthContactType;
|
|
2215
2238
|
} | {
|
|
2216
2239
|
type: typeof MESSAGE_TYPES.ERROR;
|
|
2217
2240
|
code: string;
|
|
@@ -2227,11 +2250,14 @@ type IframeToParentMessage = {
|
|
|
2227
2250
|
type: typeof MESSAGE_TYPES.PAYMENT_METHOD_SELECTED;
|
|
2228
2251
|
method: PaymentMethodInfo;
|
|
2229
2252
|
saveToLink: boolean;
|
|
2230
|
-
} | {
|
|
2231
|
-
type: typeof MESSAGE_TYPES.TOKEN_REFRESHED;
|
|
2232
|
-
token: string;
|
|
2233
2253
|
} | {
|
|
2234
2254
|
type: typeof MESSAGE_TYPES.LOGOUT_COMPLETE;
|
|
2255
|
+
} | {
|
|
2256
|
+
type: typeof MESSAGE_TYPES.AUTH_REQUESTED;
|
|
2257
|
+
loginHint?: string;
|
|
2258
|
+
contactType?: ElementsAuthContactType;
|
|
2259
|
+
mode?: ElementsAuthMode;
|
|
2260
|
+
prompt?: ElementsAuthPrompt;
|
|
2235
2261
|
} | {
|
|
2236
2262
|
type: typeof MESSAGE_TYPES.CHECKOUT_STATUS;
|
|
2237
2263
|
status: CheckoutStatus;
|
|
@@ -2261,7 +2287,6 @@ type IframeToParentMessage = {
|
|
|
2261
2287
|
declare const EVENT_TYPES: {
|
|
2262
2288
|
readonly READY: "ready";
|
|
2263
2289
|
readonly AUTHENTICATED: "authenticated";
|
|
2264
|
-
readonly REQUIRES_OTP: "requires_otp";
|
|
2265
2290
|
readonly ERROR: "error";
|
|
2266
2291
|
readonly CHANGE: "change";
|
|
2267
2292
|
readonly BLUR: "blur";
|
|
@@ -2285,6 +2310,7 @@ declare class CimplifyElements {
|
|
|
2285
2310
|
private addressData;
|
|
2286
2311
|
private paymentData;
|
|
2287
2312
|
private checkoutInProgress;
|
|
2313
|
+
private authInProgress;
|
|
2288
2314
|
private activeCheckoutAbort;
|
|
2289
2315
|
private boundHandleMessage;
|
|
2290
2316
|
private businessIdResolvePromise;
|
|
@@ -2303,6 +2329,10 @@ declare class CimplifyElements {
|
|
|
2303
2329
|
resolveBusinessId(): Promise<string | null>;
|
|
2304
2330
|
getAppearance(): ElementsOptions["appearance"];
|
|
2305
2331
|
private hydrateCustomerData;
|
|
2332
|
+
private sourceElementFor;
|
|
2333
|
+
private applyAccessToken;
|
|
2334
|
+
private broadcastAccessToken;
|
|
2335
|
+
private startEmbeddedAuth;
|
|
2306
2336
|
private handleMessage;
|
|
2307
2337
|
_setAddressData(data: AddressInfo): void;
|
|
2308
2338
|
_setPaymentData(data: PaymentMethodInfo): void;
|
|
@@ -2336,6 +2366,12 @@ declare class CimplifyElement {
|
|
|
2336
2366
|
private flushPending;
|
|
2337
2367
|
getContentWindow(): Window | null;
|
|
2338
2368
|
isMounted(): boolean;
|
|
2369
|
+
_acceptsMessageEvent(event: MessageEvent, message: IframeToParentMessage): boolean;
|
|
2370
|
+
_emitAuthenticated(data: AuthenticatedData): void;
|
|
2371
|
+
_emitError(error: {
|
|
2372
|
+
code: string;
|
|
2373
|
+
message: string;
|
|
2374
|
+
}): void;
|
|
2339
2375
|
private createIframe;
|
|
2340
2376
|
private handleMessage;
|
|
2341
2377
|
private emit;
|
|
@@ -2397,7 +2433,6 @@ declare class CimplifyClient {
|
|
|
2397
2433
|
private context;
|
|
2398
2434
|
private businessId;
|
|
2399
2435
|
private businessIdResolvePromise;
|
|
2400
|
-
private refreshInflight;
|
|
2401
2436
|
private inflightRequests;
|
|
2402
2437
|
/**
|
|
2403
2438
|
* App-level event channel. Subscribe to surface mutation rollbacks, outbox
|
|
@@ -2438,7 +2473,6 @@ declare class CimplifyClient {
|
|
|
2438
2473
|
setBusinessId(businessId: string): void;
|
|
2439
2474
|
getBusinessId(): string | null;
|
|
2440
2475
|
resolveBusinessId(): Promise<string>;
|
|
2441
|
-
private refreshAccessToken;
|
|
2442
2476
|
private authedFetch;
|
|
2443
2477
|
private loadSessionToken;
|
|
2444
2478
|
private saveSessionToken;
|
|
@@ -2477,4 +2511,4 @@ declare class CimplifyClient {
|
|
|
2477
2511
|
}
|
|
2478
2512
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2479
2513
|
|
|
2480
|
-
export { type CheckoutCartData as $, AUTHORIZATION_TYPE as A, type Booking as B, type BusinessSettings as C, type BusinessType as D, type BusinessWithLocations as E, CHECKOUT_MODE as F, CHECKOUT_MUTATION as G, CHECKOUT_STEP as H, CONTACT_TYPE as I, type CacheOptions as J, type CancelBookingInput as K, type CancelBookingResult as L, type CancelOrderInput as M, type CancellationPolicy as N, CartOperations as O, CatalogueQueries as P, type CatalogueResult as Q, type CatalogueSnapshot as R, type CategoryInfo as S, type ChatAttachment as T, type ChatConversation as U, type ChatConversationResponse as V, type ChatMessage as W, type ChatWidgetStarter as X, type CheckSlotAvailabilityInput as Y, type CheckSlotAvailabilityResult as Z, type CheckoutAddressInfo as _, AUTH_MUTATION as a, type
|
|
2514
|
+
export { type CheckoutCartData as $, AUTHORIZATION_TYPE as A, type Booking as B, type BusinessSettings as C, type BusinessType as D, type BusinessWithLocations as E, CHECKOUT_MODE as F, CHECKOUT_MUTATION as G, CHECKOUT_STEP as H, CONTACT_TYPE as I, type CacheOptions as J, type CancelBookingInput as K, type CancelBookingResult as L, type CancelOrderInput as M, type CancellationPolicy as N, CartOperations as O, CatalogueQueries as P, type CatalogueResult as Q, type CatalogueSnapshot as R, type CategoryInfo as S, type ChatAttachment as T, type ChatConversation as U, type ChatConversationResponse as V, type ChatMessage as W, type ChatWidgetStarter as X, type CheckSlotAvailabilityInput as Y, type CheckSlotAvailabilityResult as Z, type CheckoutAddressInfo as _, AUTH_MUTATION as a, type FulfillmentType as a$, type CheckoutCartItem as a0, type CheckoutCustomerInfo as a1, type CheckoutFormData as a2, type CheckoutInput as a3, type CheckoutMode as a4, type CheckoutOrderType as a5, type CheckoutPaymentMethod as a6, type CheckoutResult as a7, CheckoutService as a8, type CheckoutStatus as a9, type DismissMessageResponse as aA, ELEMENTS_AUTH_CONTACT_TYPES as aB, ELEMENTS_AUTH_MODES as aC, ELEMENTS_AUTH_PROMPTS as aD, ELEMENT_TYPES as aE, EVENT_TYPES as aF, type ElementAppearance as aG, type ElementEventHandler as aH, type ElementEventType as aI, type ElementOptions as aJ, type ElementType as aK, type ElementsAuthContactType as aL, type ElementsAuthMode as aM, type ElementsAuthOptions as aN, type ElementsAuthPrompt as aO, type ElementsCheckoutData as aP, type ElementsCheckoutResult as aQ, type ElementsCustomerInfo as aR, type ElementsOptions as aS, type EnrollAndLinkOrderInput as aT, type EnrollAndLinkOrderResult as aU, type EnrollmentData as aV, type Err as aW, type FeeBearerType as aX, type FetchQuoteInput as aY, type FulfillmentLink as aZ, type FulfillmentStatus as a_, type CheckoutStatusContext as aa, type CheckoutStep as ab, CimplifyClient as ac, type CimplifyConfig as ad, CimplifyElement as ae, CimplifyElements as af, type ContactType as ag, type ContentType as ah, type CreateAddressInput as ai, type CreateMobileMoneyInput as aj, type Customer as ak, type CustomerAddress as al, type CustomerBooking as am, type CustomerBookingServiceItem as an, type CustomerLinkPreferences as ao, type CustomerMobileMoney as ap, type CustomerServicePreferences as aq, DEFAULT_COUNTRY as ar, DEFAULT_CURRENCY as as, DEVICE_TYPE as at, type DayAvailability as au, type DeliveryFeeDetails as av, type DeliveryFeeResponse as aw, DeliveryService as ax, type DepositResult as ay, type DeviceType as az, type AbortablePromise as b, type PickupTime as b$, type FxQuote as b0, type FxQuoteRequest as b1, type FxRateResponse as b2, FxService as b3, type GetAvailableSlotsInput as b4, type GetOrdersOptions as b5, type GetProductsOptions as b6, type IframeToParentMessage as b7, InventoryService as b8, LINK_MUTATION as b9, type Order as bA, type OrderChannel as bB, type OrderFilter as bC, type OrderFulfillmentSummary as bD, type OrderGroup as bE, type OrderGroupDetails as bF, type OrderGroupPayment as bG, type OrderGroupPaymentState as bH, type OrderGroupPaymentStatus as bI, type OrderGroupPaymentSummary as bJ, type OrderGroupStatus as bK, type OrderHistory as bL, type OrderLineState as bM, type OrderLineStatus as bN, type OrderPaymentEvent as bO, OrderQueries as bP, type OrderSplitDetail as bQ, type OrderStatus as bR, type OrderType as bS, type OtpResult as bT, PAYMENT_METHOD as bU, PAYMENT_MUTATION as bV, PAYMENT_STATE as bW, PICKUP_TIME_TYPE as bX, type ParentToIframeMessage as bY, type PaymentMethodInfo as bZ, type PaymentState as b_, LINK_QUERY as ba, type LineItem as bb, type LineType as bc, type LinkData as bd, type LinkEnrollResult as be, LinkService as bf, type LinkSession as bg, type LinkStatusResult as bh, type LiteBootstrap as bi, LiteService as bj, type Location as bk, type LocationBooking as bl, type LocationTaxBehavior as bm, type LocationTaxOverrides as bn, type LocationTimeProfile as bo, type LocationWithDetails as bp, MESSAGE_TYPES as bq, MOBILE_MONEY_PROVIDER as br, type MobileMoneyData as bs, type MobileMoneyDetails as bt, type MobileMoneyProvider as bu, type NextAction as bv, ORDER_MUTATION as bw, ORDER_TYPE as bx, type ObservabilityHooks as by, type Ok as bz, type ActivityRecommendation as c, type StorefrontBootstrap as c$, type PickupTimeType as c0, type PlaceDetailsResponse as c1, PlacesService as c2, type PriceQuote as c3, type PricingOverrides as c4, type ProcessAndResolveOptions as c5, type ProcessCheckoutOptions as c6, type ProcessCheckoutResult as c7, type ProviderResolutionSource as c8, type QuoteBundleSelectionInput as c9, type Result as cA, type RetryEvent as cB, type RevokeAllSessionsResult as cC, type RevokeSessionResult as cD, type Room as cE, type SchedulingMetadata as cF, type SchedulingResult as cG, SchedulingService as cH, type SenderType as cI, type Service as cJ, type ServiceAvailabilityParams as cK, type ServiceAvailabilityResult as cL, type ServiceCharge as cM, type ServiceNotes as cN, type ServiceScheduleRequest as cO, type ServiceStatus as cP, type SessionActivityData as cQ, type SessionChangeEvent as cR, type SessionMessage as cS, type SlotResourceInfo as cT, type SlotStaffInfo as cU, type Staff as cV, type StaffAssignment as cW, type StaffRole as cX, type StaffScheduleItem as cY, type StockLevel as cZ, type StockStatus as c_, type QuoteCompositeSelectionInput as ca, type QuoteDynamicBuckets as cb, type QuoteStatus as cc, type QuoteUiMessage as cd, type ReadRequestOptions as ce, type RefreshQuoteInput as cf, type RefreshQuoteResult as cg, type RefundOrderInput as ch, type RelatedCandidate as ci, type RelatedProduct as cj, type RelatedProductsEnrichment as ck, type RelationType as cl, type ReminderMethod as cm, type ReminderSettings as cn, type ReorderResult as co, type RequestContext as cp, type RequestErrorEvent as cq, type RequestOptions as cr, type RequestOtpInput as cs, type RequestSource as ct, type RequestStartEvent as cu, type RequestSuccessEvent as cv, type RescheduleBookingInput as cw, type RescheduleBookingResult as cx, type RescheduleHistoryRecord as cy, type ResourceAssignment as cz, type ActivityRecommendationsResponse as d, SubscriptionService as d0, SupportService as d1, type Table as d2, type TableInfo as d3, type TimeRange as d4, type TimeRanges as d5, type TimeSlot as d6, type TrackCategoryViewOptions as d7, type TrackProductViewOptions as d8, type UpdateAddressInput as d9, type UpdateOrderStatusInput as da, type UpdateProfileInput as db, type UploadInitResponse as dc, type UploadResult as dd, UploadService as de, type VerifyOtpInput as df, combine as dg, combineObject as dh, createCimplifyClient as di, createElements as dj, err as dk, flatMap as dl, fromPromise as dm, getOrElse as dn, isErr as dp, isOk as dq, mapError as dr, mapResult as ds, ok as dt, toNullable as du, tryCatch as dv, unwrap as dw, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessHours as x, type BusinessPreferences as y, BusinessService as z };
|
|
@@ -999,12 +999,16 @@ interface VerifyOtpInput {
|
|
|
999
999
|
contact: string;
|
|
1000
1000
|
contact_type: ContactType;
|
|
1001
1001
|
otp_code: string;
|
|
1002
|
-
business_id?: string;
|
|
1003
1002
|
}
|
|
1004
1003
|
interface AuthResponse {
|
|
1005
1004
|
success: boolean;
|
|
1006
1005
|
session_token: string | null;
|
|
1006
|
+
refresh_token?: string | null;
|
|
1007
|
+
account_id?: string | null;
|
|
1007
1008
|
customer_id: string | null;
|
|
1009
|
+
name?: string | null;
|
|
1010
|
+
email?: string | null;
|
|
1011
|
+
phone?: string | null;
|
|
1008
1012
|
message: string;
|
|
1009
1013
|
}
|
|
1010
1014
|
|
|
@@ -1239,6 +1243,7 @@ declare class LinkService {
|
|
|
1239
1243
|
constructor(client: CimplifyClient);
|
|
1240
1244
|
requestOtp(input: RequestOtpInput, opts?: IdempotencyOption$6): Promise<Result<SuccessResult$1, CimplifyError>>;
|
|
1241
1245
|
verifyOtp(input: VerifyOtpInput, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
|
|
1246
|
+
refreshSession(sessionToken?: string, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
|
|
1242
1247
|
logout(): Promise<Result<SuccessResult$1, CimplifyError>>;
|
|
1243
1248
|
checkStatus(contact: string): Promise<Result<LinkStatusResult, CimplifyError>>;
|
|
1244
1249
|
getLinkData(): Promise<Result<LinkData, CimplifyError>>;
|
|
@@ -2026,20 +2031,19 @@ declare const MESSAGE_TYPES: {
|
|
|
2026
2031
|
readonly SET_TOKEN: "set_token";
|
|
2027
2032
|
readonly SET_CART: "set_cart";
|
|
2028
2033
|
readonly GET_DATA: "get_data";
|
|
2034
|
+
readonly NAVIGATE: "navigate";
|
|
2029
2035
|
readonly REFRESH_TOKEN: "refresh_token";
|
|
2030
2036
|
readonly LOGOUT: "logout";
|
|
2031
2037
|
readonly PROCESS_CHECKOUT: "process_checkout";
|
|
2032
2038
|
readonly ABORT_CHECKOUT: "abort_checkout";
|
|
2033
2039
|
readonly READY: "ready";
|
|
2034
2040
|
readonly HEIGHT_CHANGE: "height_change";
|
|
2035
|
-
readonly AUTHENTICATED: "authenticated";
|
|
2036
|
-
readonly REQUIRES_OTP: "requires_otp";
|
|
2037
2041
|
readonly ERROR: "error";
|
|
2038
2042
|
readonly ADDRESS_CHANGED: "address_changed";
|
|
2039
2043
|
readonly ADDRESS_SELECTED: "address_selected";
|
|
2040
2044
|
readonly PAYMENT_METHOD_SELECTED: "payment_method_selected";
|
|
2041
|
-
readonly TOKEN_REFRESHED: "token_refreshed";
|
|
2042
2045
|
readonly LOGOUT_COMPLETE: "logout_complete";
|
|
2046
|
+
readonly AUTH_REQUESTED: "auth_requested";
|
|
2043
2047
|
readonly CONTACT_PROVIDED: "contact_provided";
|
|
2044
2048
|
readonly CHECKOUT_STATUS: "checkout_status";
|
|
2045
2049
|
readonly CHECKOUT_COMPLETE: "checkout_complete";
|
|
@@ -2049,6 +2053,15 @@ declare const MESSAGE_TYPES: {
|
|
|
2049
2053
|
interface ElementsOptions {
|
|
2050
2054
|
linkUrl?: string;
|
|
2051
2055
|
appearance?: ElementAppearance;
|
|
2056
|
+
auth?: ElementsAuthOptions;
|
|
2057
|
+
}
|
|
2058
|
+
interface ElementsAuthOptions {
|
|
2059
|
+
clientId?: string;
|
|
2060
|
+
redirectUri?: string;
|
|
2061
|
+
callbackUri?: string;
|
|
2062
|
+
scope?: string;
|
|
2063
|
+
issuer?: string;
|
|
2064
|
+
authUrl?: string;
|
|
2052
2065
|
}
|
|
2053
2066
|
interface ElementAppearance {
|
|
2054
2067
|
theme?: "light" | "dark";
|
|
@@ -2098,6 +2111,20 @@ type ElementsCustomerInfo = {
|
|
|
2098
2111
|
email: string | null;
|
|
2099
2112
|
phone: string | null;
|
|
2100
2113
|
} | null;
|
|
2114
|
+
declare const ELEMENTS_AUTH_CONTACT_TYPES: {
|
|
2115
|
+
readonly EMAIL: "email";
|
|
2116
|
+
readonly PHONE: "phone";
|
|
2117
|
+
};
|
|
2118
|
+
type ElementsAuthContactType = (typeof ELEMENTS_AUTH_CONTACT_TYPES)[keyof typeof ELEMENTS_AUTH_CONTACT_TYPES];
|
|
2119
|
+
declare const ELEMENTS_AUTH_PROMPTS: {
|
|
2120
|
+
readonly LOGIN: "login";
|
|
2121
|
+
};
|
|
2122
|
+
type ElementsAuthPrompt = (typeof ELEMENTS_AUTH_PROMPTS)[keyof typeof ELEMENTS_AUTH_PROMPTS];
|
|
2123
|
+
declare const ELEMENTS_AUTH_MODES: {
|
|
2124
|
+
readonly CHECKOUT: "checkout";
|
|
2125
|
+
readonly DEFAULT: "default";
|
|
2126
|
+
};
|
|
2127
|
+
type ElementsAuthMode = (typeof ELEMENTS_AUTH_MODES)[keyof typeof ELEMENTS_AUTH_MODES];
|
|
2101
2128
|
interface AuthenticatedData {
|
|
2102
2129
|
accountId: string;
|
|
2103
2130
|
customerId: string;
|
|
@@ -2164,9 +2191,14 @@ type ParentToIframeMessage = {
|
|
|
2164
2191
|
defaultOrderType?: OrderType;
|
|
2165
2192
|
renderSubmitButton?: boolean;
|
|
2166
2193
|
submitLabel?: string;
|
|
2194
|
+
token?: string;
|
|
2195
|
+
merchantName?: string;
|
|
2167
2196
|
} | {
|
|
2168
2197
|
type: typeof MESSAGE_TYPES.SET_TOKEN;
|
|
2169
2198
|
token: string;
|
|
2199
|
+
} | {
|
|
2200
|
+
type: typeof MESSAGE_TYPES.NAVIGATE;
|
|
2201
|
+
path: string;
|
|
2170
2202
|
} | {
|
|
2171
2203
|
type: typeof MESSAGE_TYPES.SET_CART;
|
|
2172
2204
|
cart: CheckoutCartData;
|
|
@@ -2199,19 +2231,10 @@ type IframeToParentMessage = {
|
|
|
2199
2231
|
} | {
|
|
2200
2232
|
type: typeof MESSAGE_TYPES.HEIGHT_CHANGE;
|
|
2201
2233
|
height: number;
|
|
2202
|
-
} | {
|
|
2203
|
-
type: typeof MESSAGE_TYPES.AUTHENTICATED;
|
|
2204
|
-
accountId: string;
|
|
2205
|
-
customerId: string;
|
|
2206
|
-
token: string;
|
|
2207
|
-
customer: AuthenticatedCustomer;
|
|
2208
|
-
} | {
|
|
2209
|
-
type: typeof MESSAGE_TYPES.REQUIRES_OTP;
|
|
2210
|
-
contactMasked: string;
|
|
2211
2234
|
} | {
|
|
2212
2235
|
type: typeof MESSAGE_TYPES.CONTACT_PROVIDED;
|
|
2213
2236
|
contact: string;
|
|
2214
|
-
contactType:
|
|
2237
|
+
contactType: ElementsAuthContactType;
|
|
2215
2238
|
} | {
|
|
2216
2239
|
type: typeof MESSAGE_TYPES.ERROR;
|
|
2217
2240
|
code: string;
|
|
@@ -2227,11 +2250,14 @@ type IframeToParentMessage = {
|
|
|
2227
2250
|
type: typeof MESSAGE_TYPES.PAYMENT_METHOD_SELECTED;
|
|
2228
2251
|
method: PaymentMethodInfo;
|
|
2229
2252
|
saveToLink: boolean;
|
|
2230
|
-
} | {
|
|
2231
|
-
type: typeof MESSAGE_TYPES.TOKEN_REFRESHED;
|
|
2232
|
-
token: string;
|
|
2233
2253
|
} | {
|
|
2234
2254
|
type: typeof MESSAGE_TYPES.LOGOUT_COMPLETE;
|
|
2255
|
+
} | {
|
|
2256
|
+
type: typeof MESSAGE_TYPES.AUTH_REQUESTED;
|
|
2257
|
+
loginHint?: string;
|
|
2258
|
+
contactType?: ElementsAuthContactType;
|
|
2259
|
+
mode?: ElementsAuthMode;
|
|
2260
|
+
prompt?: ElementsAuthPrompt;
|
|
2235
2261
|
} | {
|
|
2236
2262
|
type: typeof MESSAGE_TYPES.CHECKOUT_STATUS;
|
|
2237
2263
|
status: CheckoutStatus;
|
|
@@ -2261,7 +2287,6 @@ type IframeToParentMessage = {
|
|
|
2261
2287
|
declare const EVENT_TYPES: {
|
|
2262
2288
|
readonly READY: "ready";
|
|
2263
2289
|
readonly AUTHENTICATED: "authenticated";
|
|
2264
|
-
readonly REQUIRES_OTP: "requires_otp";
|
|
2265
2290
|
readonly ERROR: "error";
|
|
2266
2291
|
readonly CHANGE: "change";
|
|
2267
2292
|
readonly BLUR: "blur";
|
|
@@ -2285,6 +2310,7 @@ declare class CimplifyElements {
|
|
|
2285
2310
|
private addressData;
|
|
2286
2311
|
private paymentData;
|
|
2287
2312
|
private checkoutInProgress;
|
|
2313
|
+
private authInProgress;
|
|
2288
2314
|
private activeCheckoutAbort;
|
|
2289
2315
|
private boundHandleMessage;
|
|
2290
2316
|
private businessIdResolvePromise;
|
|
@@ -2303,6 +2329,10 @@ declare class CimplifyElements {
|
|
|
2303
2329
|
resolveBusinessId(): Promise<string | null>;
|
|
2304
2330
|
getAppearance(): ElementsOptions["appearance"];
|
|
2305
2331
|
private hydrateCustomerData;
|
|
2332
|
+
private sourceElementFor;
|
|
2333
|
+
private applyAccessToken;
|
|
2334
|
+
private broadcastAccessToken;
|
|
2335
|
+
private startEmbeddedAuth;
|
|
2306
2336
|
private handleMessage;
|
|
2307
2337
|
_setAddressData(data: AddressInfo): void;
|
|
2308
2338
|
_setPaymentData(data: PaymentMethodInfo): void;
|
|
@@ -2336,6 +2366,12 @@ declare class CimplifyElement {
|
|
|
2336
2366
|
private flushPending;
|
|
2337
2367
|
getContentWindow(): Window | null;
|
|
2338
2368
|
isMounted(): boolean;
|
|
2369
|
+
_acceptsMessageEvent(event: MessageEvent, message: IframeToParentMessage): boolean;
|
|
2370
|
+
_emitAuthenticated(data: AuthenticatedData): void;
|
|
2371
|
+
_emitError(error: {
|
|
2372
|
+
code: string;
|
|
2373
|
+
message: string;
|
|
2374
|
+
}): void;
|
|
2339
2375
|
private createIframe;
|
|
2340
2376
|
private handleMessage;
|
|
2341
2377
|
private emit;
|
|
@@ -2397,7 +2433,6 @@ declare class CimplifyClient {
|
|
|
2397
2433
|
private context;
|
|
2398
2434
|
private businessId;
|
|
2399
2435
|
private businessIdResolvePromise;
|
|
2400
|
-
private refreshInflight;
|
|
2401
2436
|
private inflightRequests;
|
|
2402
2437
|
/**
|
|
2403
2438
|
* App-level event channel. Subscribe to surface mutation rollbacks, outbox
|
|
@@ -2438,7 +2473,6 @@ declare class CimplifyClient {
|
|
|
2438
2473
|
setBusinessId(businessId: string): void;
|
|
2439
2474
|
getBusinessId(): string | null;
|
|
2440
2475
|
resolveBusinessId(): Promise<string>;
|
|
2441
|
-
private refreshAccessToken;
|
|
2442
2476
|
private authedFetch;
|
|
2443
2477
|
private loadSessionToken;
|
|
2444
2478
|
private saveSessionToken;
|
|
@@ -2477,4 +2511,4 @@ declare class CimplifyClient {
|
|
|
2477
2511
|
}
|
|
2478
2512
|
declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
|
|
2479
2513
|
|
|
2480
|
-
export { type CheckoutCartData as $, AUTHORIZATION_TYPE as A, type Booking as B, type BusinessSettings as C, type BusinessType as D, type BusinessWithLocations as E, CHECKOUT_MODE as F, CHECKOUT_MUTATION as G, CHECKOUT_STEP as H, CONTACT_TYPE as I, type CacheOptions as J, type CancelBookingInput as K, type CancelBookingResult as L, type CancelOrderInput as M, type CancellationPolicy as N, CartOperations as O, CatalogueQueries as P, type CatalogueResult as Q, type CatalogueSnapshot as R, type CategoryInfo as S, type ChatAttachment as T, type ChatConversation as U, type ChatConversationResponse as V, type ChatMessage as W, type ChatWidgetStarter as X, type CheckSlotAvailabilityInput as Y, type CheckSlotAvailabilityResult as Z, type CheckoutAddressInfo as _, AUTH_MUTATION as a, type
|
|
2514
|
+
export { type CheckoutCartData as $, AUTHORIZATION_TYPE as A, type Booking as B, type BusinessSettings as C, type BusinessType as D, type BusinessWithLocations as E, CHECKOUT_MODE as F, CHECKOUT_MUTATION as G, CHECKOUT_STEP as H, CONTACT_TYPE as I, type CacheOptions as J, type CancelBookingInput as K, type CancelBookingResult as L, type CancelOrderInput as M, type CancellationPolicy as N, CartOperations as O, CatalogueQueries as P, type CatalogueResult as Q, type CatalogueSnapshot as R, type CategoryInfo as S, type ChatAttachment as T, type ChatConversation as U, type ChatConversationResponse as V, type ChatMessage as W, type ChatWidgetStarter as X, type CheckSlotAvailabilityInput as Y, type CheckSlotAvailabilityResult as Z, type CheckoutAddressInfo as _, AUTH_MUTATION as a, type FulfillmentType as a$, type CheckoutCartItem as a0, type CheckoutCustomerInfo as a1, type CheckoutFormData as a2, type CheckoutInput as a3, type CheckoutMode as a4, type CheckoutOrderType as a5, type CheckoutPaymentMethod as a6, type CheckoutResult as a7, CheckoutService as a8, type CheckoutStatus as a9, type DismissMessageResponse as aA, ELEMENTS_AUTH_CONTACT_TYPES as aB, ELEMENTS_AUTH_MODES as aC, ELEMENTS_AUTH_PROMPTS as aD, ELEMENT_TYPES as aE, EVENT_TYPES as aF, type ElementAppearance as aG, type ElementEventHandler as aH, type ElementEventType as aI, type ElementOptions as aJ, type ElementType as aK, type ElementsAuthContactType as aL, type ElementsAuthMode as aM, type ElementsAuthOptions as aN, type ElementsAuthPrompt as aO, type ElementsCheckoutData as aP, type ElementsCheckoutResult as aQ, type ElementsCustomerInfo as aR, type ElementsOptions as aS, type EnrollAndLinkOrderInput as aT, type EnrollAndLinkOrderResult as aU, type EnrollmentData as aV, type Err as aW, type FeeBearerType as aX, type FetchQuoteInput as aY, type FulfillmentLink as aZ, type FulfillmentStatus as a_, type CheckoutStatusContext as aa, type CheckoutStep as ab, CimplifyClient as ac, type CimplifyConfig as ad, CimplifyElement as ae, CimplifyElements as af, type ContactType as ag, type ContentType as ah, type CreateAddressInput as ai, type CreateMobileMoneyInput as aj, type Customer as ak, type CustomerAddress as al, type CustomerBooking as am, type CustomerBookingServiceItem as an, type CustomerLinkPreferences as ao, type CustomerMobileMoney as ap, type CustomerServicePreferences as aq, DEFAULT_COUNTRY as ar, DEFAULT_CURRENCY as as, DEVICE_TYPE as at, type DayAvailability as au, type DeliveryFeeDetails as av, type DeliveryFeeResponse as aw, DeliveryService as ax, type DepositResult as ay, type DeviceType as az, type AbortablePromise as b, type PickupTime as b$, type FxQuote as b0, type FxQuoteRequest as b1, type FxRateResponse as b2, FxService as b3, type GetAvailableSlotsInput as b4, type GetOrdersOptions as b5, type GetProductsOptions as b6, type IframeToParentMessage as b7, InventoryService as b8, LINK_MUTATION as b9, type Order as bA, type OrderChannel as bB, type OrderFilter as bC, type OrderFulfillmentSummary as bD, type OrderGroup as bE, type OrderGroupDetails as bF, type OrderGroupPayment as bG, type OrderGroupPaymentState as bH, type OrderGroupPaymentStatus as bI, type OrderGroupPaymentSummary as bJ, type OrderGroupStatus as bK, type OrderHistory as bL, type OrderLineState as bM, type OrderLineStatus as bN, type OrderPaymentEvent as bO, OrderQueries as bP, type OrderSplitDetail as bQ, type OrderStatus as bR, type OrderType as bS, type OtpResult as bT, PAYMENT_METHOD as bU, PAYMENT_MUTATION as bV, PAYMENT_STATE as bW, PICKUP_TIME_TYPE as bX, type ParentToIframeMessage as bY, type PaymentMethodInfo as bZ, type PaymentState as b_, LINK_QUERY as ba, type LineItem as bb, type LineType as bc, type LinkData as bd, type LinkEnrollResult as be, LinkService as bf, type LinkSession as bg, type LinkStatusResult as bh, type LiteBootstrap as bi, LiteService as bj, type Location as bk, type LocationBooking as bl, type LocationTaxBehavior as bm, type LocationTaxOverrides as bn, type LocationTimeProfile as bo, type LocationWithDetails as bp, MESSAGE_TYPES as bq, MOBILE_MONEY_PROVIDER as br, type MobileMoneyData as bs, type MobileMoneyDetails as bt, type MobileMoneyProvider as bu, type NextAction as bv, ORDER_MUTATION as bw, ORDER_TYPE as bx, type ObservabilityHooks as by, type Ok as bz, type ActivityRecommendation as c, type StorefrontBootstrap as c$, type PickupTimeType as c0, type PlaceDetailsResponse as c1, PlacesService as c2, type PriceQuote as c3, type PricingOverrides as c4, type ProcessAndResolveOptions as c5, type ProcessCheckoutOptions as c6, type ProcessCheckoutResult as c7, type ProviderResolutionSource as c8, type QuoteBundleSelectionInput as c9, type Result as cA, type RetryEvent as cB, type RevokeAllSessionsResult as cC, type RevokeSessionResult as cD, type Room as cE, type SchedulingMetadata as cF, type SchedulingResult as cG, SchedulingService as cH, type SenderType as cI, type Service as cJ, type ServiceAvailabilityParams as cK, type ServiceAvailabilityResult as cL, type ServiceCharge as cM, type ServiceNotes as cN, type ServiceScheduleRequest as cO, type ServiceStatus as cP, type SessionActivityData as cQ, type SessionChangeEvent as cR, type SessionMessage as cS, type SlotResourceInfo as cT, type SlotStaffInfo as cU, type Staff as cV, type StaffAssignment as cW, type StaffRole as cX, type StaffScheduleItem as cY, type StockLevel as cZ, type StockStatus as c_, type QuoteCompositeSelectionInput as ca, type QuoteDynamicBuckets as cb, type QuoteStatus as cc, type QuoteUiMessage as cd, type ReadRequestOptions as ce, type RefreshQuoteInput as cf, type RefreshQuoteResult as cg, type RefundOrderInput as ch, type RelatedCandidate as ci, type RelatedProduct as cj, type RelatedProductsEnrichment as ck, type RelationType as cl, type ReminderMethod as cm, type ReminderSettings as cn, type ReorderResult as co, type RequestContext as cp, type RequestErrorEvent as cq, type RequestOptions as cr, type RequestOtpInput as cs, type RequestSource as ct, type RequestStartEvent as cu, type RequestSuccessEvent as cv, type RescheduleBookingInput as cw, type RescheduleBookingResult as cx, type RescheduleHistoryRecord as cy, type ResourceAssignment as cz, type ActivityRecommendationsResponse as d, SubscriptionService as d0, SupportService as d1, type Table as d2, type TableInfo as d3, type TimeRange as d4, type TimeRanges as d5, type TimeSlot as d6, type TrackCategoryViewOptions as d7, type TrackProductViewOptions as d8, type UpdateAddressInput as d9, type UpdateOrderStatusInput as da, type UpdateProfileInput as db, type UploadInitResponse as dc, type UploadResult as dd, UploadService as de, type VerifyOtpInput as df, combine as dg, combineObject as dh, createCimplifyClient as di, createElements as dj, err as dk, flatMap as dl, fromPromise as dm, getOrElse as dn, isErr as dp, isOk as dq, mapError as dr, mapResult as ds, ok as dt, toNullable as du, tryCatch as dv, unwrap as dw, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessHours as x, type BusinessPreferences as y, BusinessService as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 BusinessHours, y as BusinessPreferences, z as BusinessService, C as BusinessSettings, D as BusinessType, 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 DeliveryService, ay as DepositResult, az as DeviceType, aA as DismissMessageResponse, aB as
|
|
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 BusinessHours, y as BusinessPreferences, z as BusinessService, C as BusinessSettings, D as BusinessType, 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 DeliveryService, ay as DepositResult, az as DeviceType, aA as DismissMessageResponse, aB as ELEMENTS_AUTH_CONTACT_TYPES, aC as ELEMENTS_AUTH_MODES, aD as ELEMENTS_AUTH_PROMPTS, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aG as ElementAppearance, aH as ElementEventHandler, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aL as ElementsAuthContactType, aM as ElementsAuthMode, aN as ElementsAuthOptions, aO as ElementsAuthPrompt, aP as ElementsCheckoutData, aQ as ElementsCheckoutResult, aR as ElementsCustomerInfo, aS as ElementsOptions, aT as EnrollAndLinkOrderInput, aU as EnrollAndLinkOrderResult, aV as EnrollmentData, aW as Err, aX as FeeBearerType, aY as FetchQuoteInput, aZ as FulfillmentLink, a_ as FulfillmentStatus, a$ as FulfillmentType, b0 as FxQuote, b1 as FxQuoteRequest, b2 as FxRateResponse, b3 as FxService, b4 as GetAvailableSlotsInput, b5 as GetOrdersOptions, b6 as GetProductsOptions, b7 as IframeToParentMessage, b8 as InventoryService, b9 as LINK_MUTATION, ba as LINK_QUERY, bb as LineItem, bc as LineType, bd as LinkData, be as LinkEnrollResult, bf as LinkService, bg as LinkSession, bh as LinkStatusResult, bi as LiteBootstrap, bj as LiteService, bk as Location, bl as LocationBooking, bm as LocationTaxBehavior, bn as LocationTaxOverrides, bo as LocationTimeProfile, bp as LocationWithDetails, bq as MESSAGE_TYPES, br as MOBILE_MONEY_PROVIDER, bs as MobileMoneyData, bt as MobileMoneyDetails, bu as MobileMoneyProvider, bv as NextAction, bw as ORDER_MUTATION, bx as ORDER_TYPE, by as ObservabilityHooks, bz as Ok, bA as Order, bB as OrderChannel, bC as OrderFilter, bD as OrderFulfillmentSummary, bE as OrderGroup, bF as OrderGroupDetails, bG as OrderGroupPayment, bH as OrderGroupPaymentState, bI as OrderGroupPaymentStatus, bJ as OrderGroupPaymentSummary, bK as OrderGroupStatus, bL as OrderHistory, bM as OrderLineState, bN as OrderLineStatus, bO as OrderPaymentEvent, bP as OrderQueries, bQ as OrderSplitDetail, bR as OrderStatus, bS as OrderType, bT as OtpResult, bU as PAYMENT_METHOD, bV as PAYMENT_MUTATION, bW as PAYMENT_STATE, bX as PICKUP_TIME_TYPE, bY as ParentToIframeMessage, bZ as PaymentMethodInfo, b_ as PaymentState, b$ as PickupTime, c0 as PickupTimeType, c1 as PlaceDetailsResponse, c2 as PlacesService, c3 as PriceQuote, c4 as PricingOverrides, c5 as ProcessAndResolveOptions, c6 as ProcessCheckoutOptions, c7 as ProcessCheckoutResult, c8 as ProviderResolutionSource, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, ce as ReadRequestOptions, cf as RefreshQuoteInput, cg as RefreshQuoteResult, ch as RefundOrderInput, ci as RelatedCandidate, cj as RelatedProduct, ck as RelatedProductsEnrichment, cl as RelationType, cm as ReminderMethod, cn as ReminderSettings, co as ReorderResult, cp as RequestContext, cq as RequestErrorEvent, cr as RequestOptions, cs as RequestOtpInput, ct as RequestSource, cu as RequestStartEvent, cv as RequestSuccessEvent, cw as RescheduleBookingInput, cx as RescheduleBookingResult, cy as RescheduleHistoryRecord, cz as ResourceAssignment, cA as Result, cB as RetryEvent, cC as RevokeAllSessionsResult, cD as RevokeSessionResult, cE as Room, cF as SchedulingMetadata, cG as SchedulingResult, cH as SchedulingService, cI as SenderType, cJ as Service, cK as ServiceAvailabilityParams, cL as ServiceAvailabilityResult, cM as ServiceCharge, cN as ServiceNotes, cO as ServiceScheduleRequest, cP as ServiceStatus, cQ as SessionActivityData, cR as SessionChangeEvent, cS as SessionMessage, cT as SlotResourceInfo, cU as SlotStaffInfo, cV as Staff, cW as StaffAssignment, cX as StaffRole, cY as StaffScheduleItem, cZ as StockLevel, c_ as StockStatus, c$ as StorefrontBootstrap, d0 as SubscriptionService, d1 as SupportService, d2 as Table, d3 as TableInfo, d4 as TimeRange, d5 as TimeRanges, d6 as TimeSlot, d7 as TrackCategoryViewOptions, d8 as TrackProductViewOptions, d9 as UpdateAddressInput, da as UpdateOrderStatusInput, db as UpdateProfileInput, dc as UploadInitResponse, dd as UploadResult, de as UploadService, df as VerifyOtpInput, dg as combine, dh as combineObject, di as createCimplifyClient, dj as createElements, dk as err, dl as flatMap, dm as fromPromise, dn 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-Dyo3dvNy.mjs';
|
|
2
2
|
import { b9 as ProductWithDetails, j as ApiError } from './product-B_kS4Oxa.mjs';
|
|
3
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 BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-B_kS4Oxa.mjs';
|
|
4
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-D8vnKlOQ.mjs';
|
|
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-
|
|
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
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-DVS7ZUEp.mjs';
|
|
7
7
|
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-Cm0tU0V5.mjs';
|
|
8
8
|
export { generateIdempotencyKey } from './advanced.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 BusinessHours, y as BusinessPreferences, z as BusinessService, C as BusinessSettings, D as BusinessType, 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 DeliveryService, ay as DepositResult, az as DeviceType, aA as DismissMessageResponse, aB as
|
|
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 BusinessHours, y as BusinessPreferences, z as BusinessService, C as BusinessSettings, D as BusinessType, 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 DeliveryService, ay as DepositResult, az as DeviceType, aA as DismissMessageResponse, aB as ELEMENTS_AUTH_CONTACT_TYPES, aC as ELEMENTS_AUTH_MODES, aD as ELEMENTS_AUTH_PROMPTS, aE as ELEMENT_TYPES, aF as EVENT_TYPES, aG as ElementAppearance, aH as ElementEventHandler, aI as ElementEventType, aJ as ElementOptions, aK as ElementType, aL as ElementsAuthContactType, aM as ElementsAuthMode, aN as ElementsAuthOptions, aO as ElementsAuthPrompt, aP as ElementsCheckoutData, aQ as ElementsCheckoutResult, aR as ElementsCustomerInfo, aS as ElementsOptions, aT as EnrollAndLinkOrderInput, aU as EnrollAndLinkOrderResult, aV as EnrollmentData, aW as Err, aX as FeeBearerType, aY as FetchQuoteInput, aZ as FulfillmentLink, a_ as FulfillmentStatus, a$ as FulfillmentType, b0 as FxQuote, b1 as FxQuoteRequest, b2 as FxRateResponse, b3 as FxService, b4 as GetAvailableSlotsInput, b5 as GetOrdersOptions, b6 as GetProductsOptions, b7 as IframeToParentMessage, b8 as InventoryService, b9 as LINK_MUTATION, ba as LINK_QUERY, bb as LineItem, bc as LineType, bd as LinkData, be as LinkEnrollResult, bf as LinkService, bg as LinkSession, bh as LinkStatusResult, bi as LiteBootstrap, bj as LiteService, bk as Location, bl as LocationBooking, bm as LocationTaxBehavior, bn as LocationTaxOverrides, bo as LocationTimeProfile, bp as LocationWithDetails, bq as MESSAGE_TYPES, br as MOBILE_MONEY_PROVIDER, bs as MobileMoneyData, bt as MobileMoneyDetails, bu as MobileMoneyProvider, bv as NextAction, bw as ORDER_MUTATION, bx as ORDER_TYPE, by as ObservabilityHooks, bz as Ok, bA as Order, bB as OrderChannel, bC as OrderFilter, bD as OrderFulfillmentSummary, bE as OrderGroup, bF as OrderGroupDetails, bG as OrderGroupPayment, bH as OrderGroupPaymentState, bI as OrderGroupPaymentStatus, bJ as OrderGroupPaymentSummary, bK as OrderGroupStatus, bL as OrderHistory, bM as OrderLineState, bN as OrderLineStatus, bO as OrderPaymentEvent, bP as OrderQueries, bQ as OrderSplitDetail, bR as OrderStatus, bS as OrderType, bT as OtpResult, bU as PAYMENT_METHOD, bV as PAYMENT_MUTATION, bW as PAYMENT_STATE, bX as PICKUP_TIME_TYPE, bY as ParentToIframeMessage, bZ as PaymentMethodInfo, b_ as PaymentState, b$ as PickupTime, c0 as PickupTimeType, c1 as PlaceDetailsResponse, c2 as PlacesService, c3 as PriceQuote, c4 as PricingOverrides, c5 as ProcessAndResolveOptions, c6 as ProcessCheckoutOptions, c7 as ProcessCheckoutResult, c8 as ProviderResolutionSource, c9 as QuoteBundleSelectionInput, ca as QuoteCompositeSelectionInput, cb as QuoteDynamicBuckets, cc as QuoteStatus, cd as QuoteUiMessage, ce as ReadRequestOptions, cf as RefreshQuoteInput, cg as RefreshQuoteResult, ch as RefundOrderInput, ci as RelatedCandidate, cj as RelatedProduct, ck as RelatedProductsEnrichment, cl as RelationType, cm as ReminderMethod, cn as ReminderSettings, co as ReorderResult, cp as RequestContext, cq as RequestErrorEvent, cr as RequestOptions, cs as RequestOtpInput, ct as RequestSource, cu as RequestStartEvent, cv as RequestSuccessEvent, cw as RescheduleBookingInput, cx as RescheduleBookingResult, cy as RescheduleHistoryRecord, cz as ResourceAssignment, cA as Result, cB as RetryEvent, cC as RevokeAllSessionsResult, cD as RevokeSessionResult, cE as Room, cF as SchedulingMetadata, cG as SchedulingResult, cH as SchedulingService, cI as SenderType, cJ as Service, cK as ServiceAvailabilityParams, cL as ServiceAvailabilityResult, cM as ServiceCharge, cN as ServiceNotes, cO as ServiceScheduleRequest, cP as ServiceStatus, cQ as SessionActivityData, cR as SessionChangeEvent, cS as SessionMessage, cT as SlotResourceInfo, cU as SlotStaffInfo, cV as Staff, cW as StaffAssignment, cX as StaffRole, cY as StaffScheduleItem, cZ as StockLevel, c_ as StockStatus, c$ as StorefrontBootstrap, d0 as SubscriptionService, d1 as SupportService, d2 as Table, d3 as TableInfo, d4 as TimeRange, d5 as TimeRanges, d6 as TimeSlot, d7 as TrackCategoryViewOptions, d8 as TrackProductViewOptions, d9 as UpdateAddressInput, da as UpdateOrderStatusInput, db as UpdateProfileInput, dc as UploadInitResponse, dd as UploadResult, de as UploadService, df as VerifyOtpInput, dg as combine, dh as combineObject, di as createCimplifyClient, dj as createElements, dk as err, dl as flatMap, dm as fromPromise, dn 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-CfeQRwhl.js';
|
|
2
2
|
import { b9 as ProductWithDetails, j as ApiError } from './product-B_kS4Oxa.js';
|
|
3
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 BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-B_kS4Oxa.js';
|
|
4
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-DIIlPUOC.js';
|
|
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-
|
|
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
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-sn-yGL7v.js';
|
|
7
7
|
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-9T1Y47oS.js';
|
|
8
8
|
export { generateIdempotencyKey } from './advanced.js';
|