@cimplify/sdk 0.65.0 → 0.67.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.
Files changed (53) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +20 -20
  4. package/dist/advanced.mjs +1 -1
  5. package/dist/{chunk-AVQL3TSJ.js → chunk-3QSW33RG.js} +389 -78
  6. package/dist/chunk-E6T5VJMG.mjs +156 -0
  7. package/dist/{chunk-WDTFIIY6.mjs → chunk-FNK6UZOE.mjs} +2 -2
  8. package/dist/{chunk-3G4QCENX.mjs → chunk-FVGVJ4TC.mjs} +12 -50
  9. package/dist/chunk-IQLJJW2H.js +168 -0
  10. package/dist/{chunk-PKYZBKZD.mjs → chunk-JAPCAZN4.mjs} +10 -29
  11. package/dist/{chunk-R6363CC7.mjs → chunk-QQMDEGAK.mjs} +382 -79
  12. package/dist/{chunk-VKID3QUE.js → chunk-SH6HJW4A.js} +4 -4
  13. package/dist/{chunk-VAMZPBA4.js → chunk-SSLFZPAI.js} +44 -63
  14. package/dist/{chunk-HCZTBWU4.js → chunk-SXGFJEME.js} +12 -50
  15. package/dist/{client-BS5lNWWH.d.mts → client-ByI_3jfL.d.mts} +33 -20
  16. package/dist/{client-p1Iofyc9.d.ts → client-CQlEWH5j.d.ts} +1 -1
  17. package/dist/{client-QTrsv6Gu.d.ts → client-DVFQoDtI.d.ts} +33 -20
  18. package/dist/{client-XoswXzib.d.mts → client-Dd82KQ_G.d.mts} +1 -1
  19. package/dist/index.d.mts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +80 -81
  22. package/dist/index.mjs +4 -5
  23. package/dist/mock/cli.mjs +12 -50
  24. package/dist/mock/library.js +12 -50
  25. package/dist/mock/library.mjs +12 -50
  26. package/dist/mock/msw.js +12 -50
  27. package/dist/mock/msw.mjs +12 -50
  28. package/dist/react.d.mts +4 -7
  29. package/dist/react.d.ts +4 -7
  30. package/dist/react.js +63 -71
  31. package/dist/react.mjs +5 -13
  32. package/dist/server.d.mts +18 -3
  33. package/dist/server.d.ts +18 -3
  34. package/dist/server.js +175 -29
  35. package/dist/server.mjs +167 -25
  36. package/dist/{sign-in-dr7m09nm.d.ts → sign-in-RFuWZOgF.d.mts} +6 -1
  37. package/dist/{sign-in-dr7m09nm.d.mts → sign-in-RFuWZOgF.d.ts} +6 -1
  38. package/dist/styles.css +1 -1
  39. package/dist/testing/msw.js +2 -2
  40. package/dist/testing/msw.mjs +1 -1
  41. package/dist/testing/suite.d.mts +2 -2
  42. package/dist/testing/suite.d.ts +2 -2
  43. package/dist/testing/suite.js +23 -23
  44. package/dist/testing/suite.mjs +4 -4
  45. package/dist/testing.d.mts +2 -2
  46. package/dist/testing.d.ts +2 -2
  47. package/dist/testing.js +79 -79
  48. package/dist/testing.mjs +5 -5
  49. package/package.json +1 -1
  50. package/dist/chunk-2AU263DK.mjs +0 -323
  51. package/dist/chunk-6DMHVQ42.js +0 -338
  52. package/dist/chunk-DKT62WQW.js +0 -53
  53. package/dist/chunk-XSOYJLMZ.mjs +0 -45
@@ -999,11 +999,11 @@ 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
1007
  customer_id: string | null;
1008
1008
  message: string;
1009
1009
  }
@@ -1239,6 +1239,7 @@ declare class LinkService {
1239
1239
  constructor(client: CimplifyClient);
1240
1240
  requestOtp(input: RequestOtpInput, opts?: IdempotencyOption$6): Promise<Result<SuccessResult$1, CimplifyError>>;
1241
1241
  verifyOtp(input: VerifyOtpInput, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
1242
+ refreshSession(sessionToken?: string, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
1242
1243
  logout(): Promise<Result<SuccessResult$1, CimplifyError>>;
1243
1244
  checkStatus(contact: string): Promise<Result<LinkStatusResult, CimplifyError>>;
1244
1245
  getLinkData(): Promise<Result<LinkData, CimplifyError>>;
@@ -2026,20 +2027,19 @@ declare const MESSAGE_TYPES: {
2026
2027
  readonly SET_TOKEN: "set_token";
2027
2028
  readonly SET_CART: "set_cart";
2028
2029
  readonly GET_DATA: "get_data";
2030
+ readonly NAVIGATE: "navigate";
2029
2031
  readonly REFRESH_TOKEN: "refresh_token";
2030
2032
  readonly LOGOUT: "logout";
2031
2033
  readonly PROCESS_CHECKOUT: "process_checkout";
2032
2034
  readonly ABORT_CHECKOUT: "abort_checkout";
2033
2035
  readonly READY: "ready";
2034
2036
  readonly HEIGHT_CHANGE: "height_change";
2035
- readonly AUTHENTICATED: "authenticated";
2036
- readonly REQUIRES_OTP: "requires_otp";
2037
2037
  readonly ERROR: "error";
2038
2038
  readonly ADDRESS_CHANGED: "address_changed";
2039
2039
  readonly ADDRESS_SELECTED: "address_selected";
2040
2040
  readonly PAYMENT_METHOD_SELECTED: "payment_method_selected";
2041
- readonly TOKEN_REFRESHED: "token_refreshed";
2042
2041
  readonly LOGOUT_COMPLETE: "logout_complete";
2042
+ readonly AUTH_REQUESTED: "auth_requested";
2043
2043
  readonly CONTACT_PROVIDED: "contact_provided";
2044
2044
  readonly CHECKOUT_STATUS: "checkout_status";
2045
2045
  readonly CHECKOUT_COMPLETE: "checkout_complete";
@@ -2049,6 +2049,15 @@ declare const MESSAGE_TYPES: {
2049
2049
  interface ElementsOptions {
2050
2050
  linkUrl?: string;
2051
2051
  appearance?: ElementAppearance;
2052
+ auth?: ElementsAuthOptions;
2053
+ }
2054
+ interface ElementsAuthOptions {
2055
+ clientId?: string;
2056
+ redirectUri?: string;
2057
+ callbackUri?: string;
2058
+ scope?: string;
2059
+ issuer?: string;
2060
+ authUrl?: string;
2052
2061
  }
2053
2062
  interface ElementAppearance {
2054
2063
  theme?: "light" | "dark";
@@ -2164,9 +2173,14 @@ type ParentToIframeMessage = {
2164
2173
  defaultOrderType?: OrderType;
2165
2174
  renderSubmitButton?: boolean;
2166
2175
  submitLabel?: string;
2176
+ token?: string;
2177
+ merchantName?: string;
2167
2178
  } | {
2168
2179
  type: typeof MESSAGE_TYPES.SET_TOKEN;
2169
2180
  token: string;
2181
+ } | {
2182
+ type: typeof MESSAGE_TYPES.NAVIGATE;
2183
+ path: string;
2170
2184
  } | {
2171
2185
  type: typeof MESSAGE_TYPES.SET_CART;
2172
2186
  cart: CheckoutCartData;
@@ -2199,15 +2213,6 @@ type IframeToParentMessage = {
2199
2213
  } | {
2200
2214
  type: typeof MESSAGE_TYPES.HEIGHT_CHANGE;
2201
2215
  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
2216
  } | {
2212
2217
  type: typeof MESSAGE_TYPES.CONTACT_PROVIDED;
2213
2218
  contact: string;
@@ -2227,11 +2232,10 @@ type IframeToParentMessage = {
2227
2232
  type: typeof MESSAGE_TYPES.PAYMENT_METHOD_SELECTED;
2228
2233
  method: PaymentMethodInfo;
2229
2234
  saveToLink: boolean;
2230
- } | {
2231
- type: typeof MESSAGE_TYPES.TOKEN_REFRESHED;
2232
- token: string;
2233
2235
  } | {
2234
2236
  type: typeof MESSAGE_TYPES.LOGOUT_COMPLETE;
2237
+ } | {
2238
+ type: typeof MESSAGE_TYPES.AUTH_REQUESTED;
2235
2239
  } | {
2236
2240
  type: typeof MESSAGE_TYPES.CHECKOUT_STATUS;
2237
2241
  status: CheckoutStatus;
@@ -2261,7 +2265,6 @@ type IframeToParentMessage = {
2261
2265
  declare const EVENT_TYPES: {
2262
2266
  readonly READY: "ready";
2263
2267
  readonly AUTHENTICATED: "authenticated";
2264
- readonly REQUIRES_OTP: "requires_otp";
2265
2268
  readonly ERROR: "error";
2266
2269
  readonly CHANGE: "change";
2267
2270
  readonly BLUR: "blur";
@@ -2285,6 +2288,7 @@ declare class CimplifyElements {
2285
2288
  private addressData;
2286
2289
  private paymentData;
2287
2290
  private checkoutInProgress;
2291
+ private authInProgress;
2288
2292
  private activeCheckoutAbort;
2289
2293
  private boundHandleMessage;
2290
2294
  private businessIdResolvePromise;
@@ -2303,6 +2307,10 @@ declare class CimplifyElements {
2303
2307
  resolveBusinessId(): Promise<string | null>;
2304
2308
  getAppearance(): ElementsOptions["appearance"];
2305
2309
  private hydrateCustomerData;
2310
+ private sourceElementFor;
2311
+ private applyAccessToken;
2312
+ private broadcastAccessToken;
2313
+ private startEmbeddedAuth;
2306
2314
  private handleMessage;
2307
2315
  _setAddressData(data: AddressInfo): void;
2308
2316
  _setPaymentData(data: PaymentMethodInfo): void;
@@ -2336,6 +2344,12 @@ declare class CimplifyElement {
2336
2344
  private flushPending;
2337
2345
  getContentWindow(): Window | null;
2338
2346
  isMounted(): boolean;
2347
+ _acceptsMessageEvent(event: MessageEvent, message: IframeToParentMessage): boolean;
2348
+ _emitAuthenticated(data: AuthenticatedData): void;
2349
+ _emitError(error: {
2350
+ code: string;
2351
+ message: string;
2352
+ }): void;
2339
2353
  private createIframe;
2340
2354
  private handleMessage;
2341
2355
  private emit;
@@ -2437,8 +2451,7 @@ declare class CimplifyClient {
2437
2451
  setBusinessId(businessId: string): void;
2438
2452
  getBusinessId(): string | null;
2439
2453
  resolveBusinessId(): Promise<string>;
2440
- private loadAccessToken;
2441
- private saveAccessToken;
2454
+ private authedFetch;
2442
2455
  private loadSessionToken;
2443
2456
  private saveSessionToken;
2444
2457
  private captureSessionToken;
@@ -2476,4 +2489,4 @@ declare class CimplifyClient {
2476
2489
  }
2477
2490
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2478
2491
 
2479
- 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 GetProductsOptions 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, ELEMENT_TYPES as aB, EVENT_TYPES as aC, type ElementAppearance as aD, type ElementEventHandler as aE, type ElementEventType as aF, type ElementOptions as aG, type ElementType as aH, type ElementsCheckoutData as aI, type ElementsCheckoutResult as aJ, type ElementsCustomerInfo as aK, type ElementsOptions as aL, type EnrollAndLinkOrderInput as aM, type EnrollAndLinkOrderResult as aN, type EnrollmentData as aO, type Err as aP, type FeeBearerType as aQ, type FetchQuoteInput as aR, type FulfillmentLink as aS, type FulfillmentStatus as aT, type FulfillmentType as aU, type FxQuote as aV, type FxQuoteRequest as aW, type FxRateResponse as aX, FxService as aY, type GetAvailableSlotsInput as aZ, type GetOrdersOptions 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 ProcessCheckoutOptions as b$, type IframeToParentMessage as b0, InventoryService as b1, LINK_MUTATION as b2, LINK_QUERY as b3, type LineItem as b4, type LineType as b5, type LinkData as b6, type LinkEnrollResult as b7, LinkService as b8, type LinkSession as b9, type OrderGroupPaymentState as bA, type OrderGroupPaymentStatus as bB, type OrderGroupPaymentSummary as bC, type OrderGroupStatus as bD, type OrderHistory as bE, type OrderLineState as bF, type OrderLineStatus as bG, type OrderPaymentEvent as bH, OrderQueries as bI, type OrderSplitDetail as bJ, type OrderStatus as bK, type OrderType as bL, type OtpResult as bM, PAYMENT_METHOD as bN, PAYMENT_MUTATION as bO, PAYMENT_STATE as bP, PICKUP_TIME_TYPE as bQ, type ParentToIframeMessage as bR, type PaymentMethodInfo as bS, type PaymentState as bT, type PickupTime as bU, type PickupTimeType as bV, type PlaceDetailsResponse as bW, PlacesService as bX, type PriceQuote as bY, type PricingOverrides as bZ, type ProcessAndResolveOptions as b_, type LinkStatusResult as ba, type LiteBootstrap as bb, LiteService as bc, type Location as bd, type LocationBooking as be, type LocationTaxBehavior as bf, type LocationTaxOverrides as bg, type LocationTimeProfile as bh, type LocationWithDetails as bi, MESSAGE_TYPES as bj, MOBILE_MONEY_PROVIDER as bk, type MobileMoneyData as bl, type MobileMoneyDetails as bm, type MobileMoneyProvider as bn, type NextAction as bo, ORDER_MUTATION as bp, ORDER_TYPE as bq, type ObservabilityHooks as br, type Ok as bs, type Order as bt, type OrderChannel as bu, type OrderFilter as bv, type OrderFulfillmentSummary as bw, type OrderGroup as bx, type OrderGroupDetails as by, type OrderGroupPayment as bz, type ActivityRecommendation as c, type TimeSlot as c$, type ProcessCheckoutResult as c0, type ProviderResolutionSource as c1, type QuoteBundleSelectionInput as c2, type QuoteCompositeSelectionInput as c3, type QuoteDynamicBuckets as c4, type QuoteStatus as c5, type QuoteUiMessage as c6, type ReadRequestOptions as c7, type RefreshQuoteInput as c8, type RefreshQuoteResult as c9, SchedulingService as cA, type SenderType as cB, type Service as cC, type ServiceAvailabilityParams as cD, type ServiceAvailabilityResult as cE, type ServiceCharge as cF, type ServiceNotes as cG, type ServiceScheduleRequest as cH, type ServiceStatus as cI, type SessionActivityData as cJ, type SessionChangeEvent as cK, type SessionMessage as cL, type SlotResourceInfo as cM, type SlotStaffInfo as cN, type Staff as cO, type StaffAssignment as cP, type StaffRole as cQ, type StaffScheduleItem as cR, type StockLevel as cS, type StockStatus as cT, type StorefrontBootstrap as cU, SubscriptionService as cV, SupportService as cW, type Table as cX, type TableInfo as cY, type TimeRange as cZ, type TimeRanges as c_, type RefundOrderInput as ca, type RelatedCandidate as cb, type RelatedProduct as cc, type RelatedProductsEnrichment as cd, type RelationType as ce, type ReminderMethod as cf, type ReminderSettings as cg, type ReorderResult as ch, type RequestContext as ci, type RequestErrorEvent as cj, type RequestOptions as ck, type RequestOtpInput as cl, type RequestSource as cm, type RequestStartEvent as cn, type RequestSuccessEvent as co, type RescheduleBookingInput as cp, type RescheduleBookingResult as cq, type RescheduleHistoryRecord as cr, type ResourceAssignment as cs, type Result as ct, type RetryEvent as cu, type RevokeAllSessionsResult as cv, type RevokeSessionResult as cw, type Room as cx, type SchedulingMetadata as cy, type SchedulingResult as cz, type ActivityRecommendationsResponse as d, type TrackCategoryViewOptions as d0, type TrackProductViewOptions as d1, type UpdateAddressInput as d2, type UpdateOrderStatusInput as d3, type UpdateProfileInput as d4, type UploadInitResponse as d5, type UploadResult as d6, UploadService as d7, type VerifyOtpInput as d8, combine as d9, combineObject as da, createCimplifyClient as db, createElements as dc, err as dd, flatMap as de, fromPromise as df, getOrElse as dg, isErr as dh, isOk as di, mapError as dj, mapResult as dk, ok as dl, toNullable as dm, tryCatch as dn, unwrap as dp, 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 };
2492
+ 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 GetOrdersOptions 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, ELEMENT_TYPES as aB, EVENT_TYPES as aC, type ElementAppearance as aD, type ElementEventHandler as aE, type ElementEventType as aF, type ElementOptions as aG, type ElementType as aH, type ElementsAuthOptions as aI, type ElementsCheckoutData as aJ, type ElementsCheckoutResult as aK, type ElementsCustomerInfo as aL, type ElementsOptions as aM, type EnrollAndLinkOrderInput as aN, type EnrollAndLinkOrderResult as aO, type EnrollmentData as aP, type Err as aQ, type FeeBearerType as aR, type FetchQuoteInput as aS, type FulfillmentLink as aT, type FulfillmentStatus as aU, type FulfillmentType as aV, type FxQuote as aW, type FxQuoteRequest as aX, type FxRateResponse as aY, FxService as aZ, type GetAvailableSlotsInput 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 ProcessAndResolveOptions as b$, type GetProductsOptions as b0, type IframeToParentMessage as b1, InventoryService as b2, LINK_MUTATION as b3, LINK_QUERY as b4, type LineItem as b5, type LineType as b6, type LinkData as b7, type LinkEnrollResult as b8, LinkService as b9, type OrderGroupPayment as bA, type OrderGroupPaymentState as bB, type OrderGroupPaymentStatus as bC, type OrderGroupPaymentSummary as bD, type OrderGroupStatus as bE, type OrderHistory as bF, type OrderLineState as bG, type OrderLineStatus as bH, type OrderPaymentEvent as bI, OrderQueries as bJ, type OrderSplitDetail as bK, type OrderStatus as bL, type OrderType as bM, type OtpResult as bN, PAYMENT_METHOD as bO, PAYMENT_MUTATION as bP, PAYMENT_STATE as bQ, PICKUP_TIME_TYPE as bR, type ParentToIframeMessage as bS, type PaymentMethodInfo as bT, type PaymentState as bU, type PickupTime as bV, type PickupTimeType as bW, type PlaceDetailsResponse as bX, PlacesService as bY, type PriceQuote as bZ, type PricingOverrides as b_, type LinkSession as ba, type LinkStatusResult as bb, type LiteBootstrap as bc, LiteService as bd, type Location as be, type LocationBooking as bf, type LocationTaxBehavior as bg, type LocationTaxOverrides as bh, type LocationTimeProfile as bi, type LocationWithDetails as bj, MESSAGE_TYPES as bk, MOBILE_MONEY_PROVIDER as bl, type MobileMoneyData as bm, type MobileMoneyDetails as bn, type MobileMoneyProvider as bo, type NextAction as bp, ORDER_MUTATION as bq, ORDER_TYPE as br, type ObservabilityHooks as bs, type Ok as bt, type Order as bu, type OrderChannel as bv, type OrderFilter as bw, type OrderFulfillmentSummary as bx, type OrderGroup as by, type OrderGroupDetails as bz, type ActivityRecommendation as c, type TimeRanges as c$, type ProcessCheckoutOptions as c0, type ProcessCheckoutResult as c1, type ProviderResolutionSource as c2, type QuoteBundleSelectionInput as c3, type QuoteCompositeSelectionInput as c4, type QuoteDynamicBuckets as c5, type QuoteStatus as c6, type QuoteUiMessage as c7, type ReadRequestOptions as c8, type RefreshQuoteInput as c9, type SchedulingResult as cA, SchedulingService as cB, type SenderType as cC, type Service as cD, type ServiceAvailabilityParams as cE, type ServiceAvailabilityResult as cF, type ServiceCharge as cG, type ServiceNotes as cH, type ServiceScheduleRequest as cI, type ServiceStatus as cJ, type SessionActivityData as cK, type SessionChangeEvent as cL, type SessionMessage as cM, type SlotResourceInfo as cN, type SlotStaffInfo as cO, type Staff as cP, type StaffAssignment as cQ, type StaffRole as cR, type StaffScheduleItem as cS, type StockLevel as cT, type StockStatus as cU, type StorefrontBootstrap as cV, SubscriptionService as cW, SupportService as cX, type Table as cY, type TableInfo as cZ, type TimeRange as c_, type RefreshQuoteResult as ca, type RefundOrderInput as cb, type RelatedCandidate as cc, type RelatedProduct as cd, type RelatedProductsEnrichment as ce, type RelationType as cf, type ReminderMethod as cg, type ReminderSettings as ch, type ReorderResult as ci, type RequestContext as cj, type RequestErrorEvent as ck, type RequestOptions as cl, type RequestOtpInput as cm, type RequestSource as cn, type RequestStartEvent as co, type RequestSuccessEvent as cp, type RescheduleBookingInput as cq, type RescheduleBookingResult as cr, type RescheduleHistoryRecord as cs, type ResourceAssignment as ct, type Result as cu, type RetryEvent as cv, type RevokeAllSessionsResult as cw, type RevokeSessionResult as cx, type Room as cy, type SchedulingMetadata as cz, type ActivityRecommendationsResponse as d, type TimeSlot as d0, type TrackCategoryViewOptions as d1, type TrackProductViewOptions as d2, type UpdateAddressInput as d3, type UpdateOrderStatusInput as d4, type UpdateProfileInput as d5, type UploadInitResponse as d6, type UploadResult as d7, UploadService as d8, type VerifyOtpInput as d9, combine as da, combineObject as db, createCimplifyClient as dc, createElements as dd, err as de, flatMap as df, fromPromise as dg, getOrElse as dh, isErr as di, isOk as dj, mapError as dk, mapResult as dl, ok as dm, toNullable as dn, tryCatch as dp, unwrap as dq, 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 };
@@ -1,4 +1,4 @@
1
- import { ac as CimplifyClient } from './client-BS5lNWWH.mjs';
1
+ import { ac as CimplifyClient } from './client-ByI_3jfL.mjs';
2
2
  import { A as AppHandle, C as CreateAppOptions } from './server-D8rwqZQ6.mjs';
3
3
 
4
4
  /**
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 ELEMENT_TYPES, aC as EVENT_TYPES, aD as ElementAppearance, aE as ElementEventHandler, aF as ElementEventType, aG as ElementOptions, aH as ElementType, aI as ElementsCheckoutData, aJ as ElementsCheckoutResult, aK as ElementsCustomerInfo, aL as ElementsOptions, aM as EnrollAndLinkOrderInput, aN as EnrollAndLinkOrderResult, aO as EnrollmentData, aP as Err, aQ as FeeBearerType, aR as FetchQuoteInput, aS as FulfillmentLink, aT as FulfillmentStatus, aU as FulfillmentType, aV as FxQuote, aW as FxQuoteRequest, aX as FxRateResponse, aY as FxService, aZ as GetAvailableSlotsInput, a_ as GetOrdersOptions, a$ as GetProductsOptions, b0 as IframeToParentMessage, b1 as InventoryService, b2 as LINK_MUTATION, b3 as LINK_QUERY, b4 as LineItem, b5 as LineType, b6 as LinkData, b7 as LinkEnrollResult, b8 as LinkService, b9 as LinkSession, ba as LinkStatusResult, bb as LiteBootstrap, bc as LiteService, bd as Location, be as LocationBooking, bf as LocationTaxBehavior, bg as LocationTaxOverrides, bh as LocationTimeProfile, bi as LocationWithDetails, bj as MESSAGE_TYPES, bk as MOBILE_MONEY_PROVIDER, bl as MobileMoneyData, bm as MobileMoneyDetails, bn as MobileMoneyProvider, bo as NextAction, bp as ORDER_MUTATION, bq as ORDER_TYPE, br as ObservabilityHooks, bs as Ok, bt as Order, bu as OrderChannel, bv as OrderFilter, bw as OrderFulfillmentSummary, bx as OrderGroup, by as OrderGroupDetails, bz as OrderGroupPayment, bA as OrderGroupPaymentState, bB as OrderGroupPaymentStatus, bC as OrderGroupPaymentSummary, bD as OrderGroupStatus, bE as OrderHistory, bF as OrderLineState, bG as OrderLineStatus, bH as OrderPaymentEvent, bI as OrderQueries, bJ as OrderSplitDetail, bK as OrderStatus, bL as OrderType, bM as OtpResult, bN as PAYMENT_METHOD, bO as PAYMENT_MUTATION, bP as PAYMENT_STATE, bQ as PICKUP_TIME_TYPE, bR as ParentToIframeMessage, bS as PaymentMethodInfo, bT as PaymentState, bU as PickupTime, bV as PickupTimeType, bW as PlaceDetailsResponse, bX as PlacesService, bY as PriceQuote, bZ as PricingOverrides, b_ as ProcessAndResolveOptions, b$ as ProcessCheckoutOptions, c0 as ProcessCheckoutResult, c1 as ProviderResolutionSource, c2 as QuoteBundleSelectionInput, c3 as QuoteCompositeSelectionInput, c4 as QuoteDynamicBuckets, c5 as QuoteStatus, c6 as QuoteUiMessage, c7 as ReadRequestOptions, c8 as RefreshQuoteInput, c9 as RefreshQuoteResult, ca as RefundOrderInput, cb as RelatedCandidate, cc as RelatedProduct, cd as RelatedProductsEnrichment, ce as RelationType, cf as ReminderMethod, cg as ReminderSettings, ch as ReorderResult, ci as RequestContext, cj as RequestErrorEvent, ck as RequestOptions, cl as RequestOtpInput, cm as RequestSource, cn as RequestStartEvent, co as RequestSuccessEvent, cp as RescheduleBookingInput, cq as RescheduleBookingResult, cr as RescheduleHistoryRecord, cs as ResourceAssignment, ct as Result, cu as RetryEvent, cv as RevokeAllSessionsResult, cw as RevokeSessionResult, cx as Room, cy as SchedulingMetadata, cz as SchedulingResult, cA as SchedulingService, cB as SenderType, cC as Service, cD as ServiceAvailabilityParams, cE as ServiceAvailabilityResult, cF as ServiceCharge, cG as ServiceNotes, cH as ServiceScheduleRequest, cI as ServiceStatus, cJ as SessionActivityData, cK as SessionChangeEvent, cL as SessionMessage, cM as SlotResourceInfo, cN as SlotStaffInfo, cO as Staff, cP as StaffAssignment, cQ as StaffRole, cR as StaffScheduleItem, cS as StockLevel, cT as StockStatus, cU as StorefrontBootstrap, cV as SubscriptionService, cW as SupportService, cX as Table, cY as TableInfo, cZ as TimeRange, c_ as TimeRanges, c$ as TimeSlot, d0 as TrackCategoryViewOptions, d1 as TrackProductViewOptions, d2 as UpdateAddressInput, d3 as UpdateOrderStatusInput, d4 as UpdateProfileInput, d5 as UploadInitResponse, d6 as UploadResult, d7 as UploadService, d8 as VerifyOtpInput, d9 as combine, da as combineObject, db as createCimplifyClient, dc as createElements, dd as err, de as flatMap, df as fromPromise, dg as getOrElse, dh as isErr, di as isOk, dj as mapError, dk as mapResult, dl as ok, dm as toNullable, dn as tryCatch, dp as unwrap } from './client-BS5lNWWH.mjs';
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 ELEMENT_TYPES, aC as EVENT_TYPES, aD as ElementAppearance, aE as ElementEventHandler, aF as ElementEventType, aG as ElementOptions, aH as ElementType, aI as ElementsAuthOptions, aJ as ElementsCheckoutData, aK as ElementsCheckoutResult, aL as ElementsCustomerInfo, aM as ElementsOptions, aN as EnrollAndLinkOrderInput, aO as EnrollAndLinkOrderResult, aP as EnrollmentData, aQ as Err, aR as FeeBearerType, aS as FetchQuoteInput, aT as FulfillmentLink, aU as FulfillmentStatus, aV as FulfillmentType, aW as FxQuote, aX as FxQuoteRequest, aY as FxRateResponse, aZ as FxService, a_ as GetAvailableSlotsInput, a$ as GetOrdersOptions, b0 as GetProductsOptions, b1 as IframeToParentMessage, b2 as InventoryService, b3 as LINK_MUTATION, b4 as LINK_QUERY, b5 as LineItem, b6 as LineType, b7 as LinkData, b8 as LinkEnrollResult, b9 as LinkService, ba as LinkSession, bb as LinkStatusResult, bc as LiteBootstrap, bd as LiteService, be as Location, bf as LocationBooking, bg as LocationTaxBehavior, bh as LocationTaxOverrides, bi as LocationTimeProfile, bj as LocationWithDetails, bk as MESSAGE_TYPES, bl as MOBILE_MONEY_PROVIDER, bm as MobileMoneyData, bn as MobileMoneyDetails, bo as MobileMoneyProvider, bp as NextAction, bq as ORDER_MUTATION, br as ORDER_TYPE, bs as ObservabilityHooks, bt as Ok, bu as Order, bv as OrderChannel, bw as OrderFilter, bx as OrderFulfillmentSummary, by as OrderGroup, bz as OrderGroupDetails, bA as OrderGroupPayment, bB as OrderGroupPaymentState, bC as OrderGroupPaymentStatus, bD as OrderGroupPaymentSummary, bE as OrderGroupStatus, bF as OrderHistory, bG as OrderLineState, bH as OrderLineStatus, bI as OrderPaymentEvent, bJ as OrderQueries, bK as OrderSplitDetail, bL as OrderStatus, bM as OrderType, bN as OtpResult, bO as PAYMENT_METHOD, bP as PAYMENT_MUTATION, bQ as PAYMENT_STATE, bR as PICKUP_TIME_TYPE, bS as ParentToIframeMessage, bT as PaymentMethodInfo, bU as PaymentState, bV as PickupTime, bW as PickupTimeType, bX as PlaceDetailsResponse, bY as PlacesService, bZ as PriceQuote, b_ as PricingOverrides, b$ as ProcessAndResolveOptions, c0 as ProcessCheckoutOptions, c1 as ProcessCheckoutResult, c2 as ProviderResolutionSource, c3 as QuoteBundleSelectionInput, c4 as QuoteCompositeSelectionInput, c5 as QuoteDynamicBuckets, c6 as QuoteStatus, c7 as QuoteUiMessage, c8 as ReadRequestOptions, c9 as RefreshQuoteInput, ca as RefreshQuoteResult, cb as RefundOrderInput, cc as RelatedCandidate, cd as RelatedProduct, ce as RelatedProductsEnrichment, cf as RelationType, cg as ReminderMethod, ch as ReminderSettings, ci as ReorderResult, cj as RequestContext, ck as RequestErrorEvent, cl as RequestOptions, cm as RequestOtpInput, cn as RequestSource, co as RequestStartEvent, cp as RequestSuccessEvent, cq as RescheduleBookingInput, cr as RescheduleBookingResult, cs as RescheduleHistoryRecord, ct as ResourceAssignment, cu as Result, cv as RetryEvent, cw as RevokeAllSessionsResult, cx as RevokeSessionResult, cy as Room, cz as SchedulingMetadata, cA as SchedulingResult, cB as SchedulingService, cC as SenderType, cD as Service, cE as ServiceAvailabilityParams, cF as ServiceAvailabilityResult, cG as ServiceCharge, cH as ServiceNotes, cI as ServiceScheduleRequest, cJ as ServiceStatus, cK as SessionActivityData, cL as SessionChangeEvent, cM as SessionMessage, cN as SlotResourceInfo, cO as SlotStaffInfo, cP as Staff, cQ as StaffAssignment, cR as StaffRole, cS as StaffScheduleItem, cT as StockLevel, cU as StockStatus, cV as StorefrontBootstrap, cW as SubscriptionService, cX as SupportService, cY as Table, cZ as TableInfo, c_ as TimeRange, c$ as TimeRanges, d0 as TimeSlot, d1 as TrackCategoryViewOptions, d2 as TrackProductViewOptions, d3 as UpdateAddressInput, d4 as UpdateOrderStatusInput, d5 as UpdateProfileInput, d6 as UploadInitResponse, d7 as UploadResult, d8 as UploadService, d9 as VerifyOtpInput, da as combine, db as combineObject, dc as createCimplifyClient, dd as createElements, de as err, df as flatMap, dg as fromPromise, dh as getOrElse, di as isErr, dj as isOk, dk as mapError, dl as mapResult, dm as ok, dn as toNullable, dp as tryCatch, dq as unwrap } from './client-ByI_3jfL.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-dr7m09nm.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-RFuWZOgF.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 ELEMENT_TYPES, aC as EVENT_TYPES, aD as ElementAppearance, aE as ElementEventHandler, aF as ElementEventType, aG as ElementOptions, aH as ElementType, aI as ElementsCheckoutData, aJ as ElementsCheckoutResult, aK as ElementsCustomerInfo, aL as ElementsOptions, aM as EnrollAndLinkOrderInput, aN as EnrollAndLinkOrderResult, aO as EnrollmentData, aP as Err, aQ as FeeBearerType, aR as FetchQuoteInput, aS as FulfillmentLink, aT as FulfillmentStatus, aU as FulfillmentType, aV as FxQuote, aW as FxQuoteRequest, aX as FxRateResponse, aY as FxService, aZ as GetAvailableSlotsInput, a_ as GetOrdersOptions, a$ as GetProductsOptions, b0 as IframeToParentMessage, b1 as InventoryService, b2 as LINK_MUTATION, b3 as LINK_QUERY, b4 as LineItem, b5 as LineType, b6 as LinkData, b7 as LinkEnrollResult, b8 as LinkService, b9 as LinkSession, ba as LinkStatusResult, bb as LiteBootstrap, bc as LiteService, bd as Location, be as LocationBooking, bf as LocationTaxBehavior, bg as LocationTaxOverrides, bh as LocationTimeProfile, bi as LocationWithDetails, bj as MESSAGE_TYPES, bk as MOBILE_MONEY_PROVIDER, bl as MobileMoneyData, bm as MobileMoneyDetails, bn as MobileMoneyProvider, bo as NextAction, bp as ORDER_MUTATION, bq as ORDER_TYPE, br as ObservabilityHooks, bs as Ok, bt as Order, bu as OrderChannel, bv as OrderFilter, bw as OrderFulfillmentSummary, bx as OrderGroup, by as OrderGroupDetails, bz as OrderGroupPayment, bA as OrderGroupPaymentState, bB as OrderGroupPaymentStatus, bC as OrderGroupPaymentSummary, bD as OrderGroupStatus, bE as OrderHistory, bF as OrderLineState, bG as OrderLineStatus, bH as OrderPaymentEvent, bI as OrderQueries, bJ as OrderSplitDetail, bK as OrderStatus, bL as OrderType, bM as OtpResult, bN as PAYMENT_METHOD, bO as PAYMENT_MUTATION, bP as PAYMENT_STATE, bQ as PICKUP_TIME_TYPE, bR as ParentToIframeMessage, bS as PaymentMethodInfo, bT as PaymentState, bU as PickupTime, bV as PickupTimeType, bW as PlaceDetailsResponse, bX as PlacesService, bY as PriceQuote, bZ as PricingOverrides, b_ as ProcessAndResolveOptions, b$ as ProcessCheckoutOptions, c0 as ProcessCheckoutResult, c1 as ProviderResolutionSource, c2 as QuoteBundleSelectionInput, c3 as QuoteCompositeSelectionInput, c4 as QuoteDynamicBuckets, c5 as QuoteStatus, c6 as QuoteUiMessage, c7 as ReadRequestOptions, c8 as RefreshQuoteInput, c9 as RefreshQuoteResult, ca as RefundOrderInput, cb as RelatedCandidate, cc as RelatedProduct, cd as RelatedProductsEnrichment, ce as RelationType, cf as ReminderMethod, cg as ReminderSettings, ch as ReorderResult, ci as RequestContext, cj as RequestErrorEvent, ck as RequestOptions, cl as RequestOtpInput, cm as RequestSource, cn as RequestStartEvent, co as RequestSuccessEvent, cp as RescheduleBookingInput, cq as RescheduleBookingResult, cr as RescheduleHistoryRecord, cs as ResourceAssignment, ct as Result, cu as RetryEvent, cv as RevokeAllSessionsResult, cw as RevokeSessionResult, cx as Room, cy as SchedulingMetadata, cz as SchedulingResult, cA as SchedulingService, cB as SenderType, cC as Service, cD as ServiceAvailabilityParams, cE as ServiceAvailabilityResult, cF as ServiceCharge, cG as ServiceNotes, cH as ServiceScheduleRequest, cI as ServiceStatus, cJ as SessionActivityData, cK as SessionChangeEvent, cL as SessionMessage, cM as SlotResourceInfo, cN as SlotStaffInfo, cO as Staff, cP as StaffAssignment, cQ as StaffRole, cR as StaffScheduleItem, cS as StockLevel, cT as StockStatus, cU as StorefrontBootstrap, cV as SubscriptionService, cW as SupportService, cX as Table, cY as TableInfo, cZ as TimeRange, c_ as TimeRanges, c$ as TimeSlot, d0 as TrackCategoryViewOptions, d1 as TrackProductViewOptions, d2 as UpdateAddressInput, d3 as UpdateOrderStatusInput, d4 as UpdateProfileInput, d5 as UploadInitResponse, d6 as UploadResult, d7 as UploadService, d8 as VerifyOtpInput, d9 as combine, da as combineObject, db as createCimplifyClient, dc as createElements, dd as err, de as flatMap, df as fromPromise, dg as getOrElse, dh as isErr, di as isOk, dj as mapError, dk as mapResult, dl as ok, dm as toNullable, dn as tryCatch, dp as unwrap } from './client-QTrsv6Gu.js';
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 ELEMENT_TYPES, aC as EVENT_TYPES, aD as ElementAppearance, aE as ElementEventHandler, aF as ElementEventType, aG as ElementOptions, aH as ElementType, aI as ElementsAuthOptions, aJ as ElementsCheckoutData, aK as ElementsCheckoutResult, aL as ElementsCustomerInfo, aM as ElementsOptions, aN as EnrollAndLinkOrderInput, aO as EnrollAndLinkOrderResult, aP as EnrollmentData, aQ as Err, aR as FeeBearerType, aS as FetchQuoteInput, aT as FulfillmentLink, aU as FulfillmentStatus, aV as FulfillmentType, aW as FxQuote, aX as FxQuoteRequest, aY as FxRateResponse, aZ as FxService, a_ as GetAvailableSlotsInput, a$ as GetOrdersOptions, b0 as GetProductsOptions, b1 as IframeToParentMessage, b2 as InventoryService, b3 as LINK_MUTATION, b4 as LINK_QUERY, b5 as LineItem, b6 as LineType, b7 as LinkData, b8 as LinkEnrollResult, b9 as LinkService, ba as LinkSession, bb as LinkStatusResult, bc as LiteBootstrap, bd as LiteService, be as Location, bf as LocationBooking, bg as LocationTaxBehavior, bh as LocationTaxOverrides, bi as LocationTimeProfile, bj as LocationWithDetails, bk as MESSAGE_TYPES, bl as MOBILE_MONEY_PROVIDER, bm as MobileMoneyData, bn as MobileMoneyDetails, bo as MobileMoneyProvider, bp as NextAction, bq as ORDER_MUTATION, br as ORDER_TYPE, bs as ObservabilityHooks, bt as Ok, bu as Order, bv as OrderChannel, bw as OrderFilter, bx as OrderFulfillmentSummary, by as OrderGroup, bz as OrderGroupDetails, bA as OrderGroupPayment, bB as OrderGroupPaymentState, bC as OrderGroupPaymentStatus, bD as OrderGroupPaymentSummary, bE as OrderGroupStatus, bF as OrderHistory, bG as OrderLineState, bH as OrderLineStatus, bI as OrderPaymentEvent, bJ as OrderQueries, bK as OrderSplitDetail, bL as OrderStatus, bM as OrderType, bN as OtpResult, bO as PAYMENT_METHOD, bP as PAYMENT_MUTATION, bQ as PAYMENT_STATE, bR as PICKUP_TIME_TYPE, bS as ParentToIframeMessage, bT as PaymentMethodInfo, bU as PaymentState, bV as PickupTime, bW as PickupTimeType, bX as PlaceDetailsResponse, bY as PlacesService, bZ as PriceQuote, b_ as PricingOverrides, b$ as ProcessAndResolveOptions, c0 as ProcessCheckoutOptions, c1 as ProcessCheckoutResult, c2 as ProviderResolutionSource, c3 as QuoteBundleSelectionInput, c4 as QuoteCompositeSelectionInput, c5 as QuoteDynamicBuckets, c6 as QuoteStatus, c7 as QuoteUiMessage, c8 as ReadRequestOptions, c9 as RefreshQuoteInput, ca as RefreshQuoteResult, cb as RefundOrderInput, cc as RelatedCandidate, cd as RelatedProduct, ce as RelatedProductsEnrichment, cf as RelationType, cg as ReminderMethod, ch as ReminderSettings, ci as ReorderResult, cj as RequestContext, ck as RequestErrorEvent, cl as RequestOptions, cm as RequestOtpInput, cn as RequestSource, co as RequestStartEvent, cp as RequestSuccessEvent, cq as RescheduleBookingInput, cr as RescheduleBookingResult, cs as RescheduleHistoryRecord, ct as ResourceAssignment, cu as Result, cv as RetryEvent, cw as RevokeAllSessionsResult, cx as RevokeSessionResult, cy as Room, cz as SchedulingMetadata, cA as SchedulingResult, cB as SchedulingService, cC as SenderType, cD as Service, cE as ServiceAvailabilityParams, cF as ServiceAvailabilityResult, cG as ServiceCharge, cH as ServiceNotes, cI as ServiceScheduleRequest, cJ as ServiceStatus, cK as SessionActivityData, cL as SessionChangeEvent, cM as SessionMessage, cN as SlotResourceInfo, cO as SlotStaffInfo, cP as Staff, cQ as StaffAssignment, cR as StaffRole, cS as StaffScheduleItem, cT as StockLevel, cU as StockStatus, cV as StorefrontBootstrap, cW as SubscriptionService, cX as SupportService, cY as Table, cZ as TableInfo, c_ as TimeRange, c$ as TimeRanges, d0 as TimeSlot, d1 as TrackCategoryViewOptions, d2 as TrackProductViewOptions, d3 as UpdateAddressInput, d4 as UpdateOrderStatusInput, d5 as UpdateProfileInput, d6 as UploadInitResponse, d7 as UploadResult, d8 as UploadService, d9 as VerifyOtpInput, da as combine, db as combineObject, dc as createCimplifyClient, dd as createElements, de as err, df as flatMap, dg as fromPromise, dh as getOrElse, di as isErr, dj as isOk, dk as mapError, dl as mapResult, dm as ok, dn as toNullable, dp as tryCatch, dq as unwrap } from './client-DVFQoDtI.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-dr7m09nm.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-RFuWZOgF.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';