@cimplify/sdk 0.6.2 → 0.6.3

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.
@@ -2195,6 +2195,56 @@ interface CheckoutResult {
2195
2195
  quote_id: string;
2196
2196
  };
2197
2197
  }
2198
+ type CheckoutStatus = "preparing" | "recovering" | "processing" | "awaiting_authorization" | "polling" | "finalizing" | "success" | "failed";
2199
+ interface CheckoutStatusContext {
2200
+ display_text?: string;
2201
+ authorization_type?: "otp" | "pin";
2202
+ poll_attempt?: number;
2203
+ max_poll_attempts?: number;
2204
+ order_id?: string;
2205
+ order_number?: string;
2206
+ provider?: string;
2207
+ }
2208
+ interface ProcessCheckoutOptions {
2209
+ cart_id: string;
2210
+ order_type: "delivery" | "pickup" | "dine_in";
2211
+ location_id?: string;
2212
+ notes?: string;
2213
+ scheduled_time?: string;
2214
+ tip_amount?: number;
2215
+ enroll_in_link?: boolean;
2216
+ pay_currency?: string;
2217
+ timeout_ms?: number;
2218
+ on_status_change?: (status: CheckoutStatus, context: CheckoutStatusContext) => void;
2219
+ }
2220
+ interface ProcessCheckoutResult {
2221
+ success: boolean;
2222
+ order?: {
2223
+ id: string;
2224
+ order_number: string;
2225
+ status: string;
2226
+ total: string;
2227
+ currency: string;
2228
+ };
2229
+ error?: {
2230
+ code: string;
2231
+ message: string;
2232
+ recoverable: boolean;
2233
+ };
2234
+ enrolled_in_link?: boolean;
2235
+ }
2236
+ interface ProcessAndResolveOptions {
2237
+ enroll_in_link?: boolean;
2238
+ poll_interval_ms?: number;
2239
+ max_poll_attempts?: number;
2240
+ on_status_change?: (status: CheckoutStatus, context: CheckoutStatusContext) => void;
2241
+ on_authorization_required?: (type: "otp" | "pin", submit: (code: string) => Promise<void>) => void | Promise<void>;
2242
+ return_url?: string;
2243
+ signal?: AbortSignal;
2244
+ }
2245
+ type AbortablePromise<T> = Promise<T> & {
2246
+ abort: () => void;
2247
+ };
2198
2248
 
2199
2249
  declare function generateIdempotencyKey(): string;
2200
2250
  declare class CheckoutService {
@@ -2206,6 +2256,7 @@ declare class CheckoutService {
2206
2256
  pollPaymentStatus(orderId: string): Promise<Result<PaymentStatusResponse, CimplifyError>>;
2207
2257
  updateOrderCustomer(orderId: string, customer: CheckoutCustomerInfo): Promise<Result<Order, CimplifyError>>;
2208
2258
  verifyPayment(orderId: string): Promise<Result<Order, CimplifyError>>;
2259
+ processAndResolve(data: CheckoutFormData & ProcessAndResolveOptions): Promise<Result<ProcessCheckoutResult, CimplifyError>>;
2209
2260
  }
2210
2261
 
2211
2262
  interface GetOrdersOptions {
@@ -3028,6 +3079,8 @@ declare const MESSAGE_TYPES: {
3028
3079
  readonly GET_DATA: "get_data";
3029
3080
  readonly REFRESH_TOKEN: "refresh_token";
3030
3081
  readonly LOGOUT: "logout";
3082
+ readonly PROCESS_CHECKOUT: "process_checkout";
3083
+ readonly ABORT_CHECKOUT: "abort_checkout";
3031
3084
  readonly READY: "ready";
3032
3085
  readonly HEIGHT_CHANGE: "height_change";
3033
3086
  readonly AUTHENTICATED: "authenticated";
@@ -3038,6 +3091,8 @@ declare const MESSAGE_TYPES: {
3038
3091
  readonly PAYMENT_METHOD_SELECTED: "payment_method_selected";
3039
3092
  readonly TOKEN_REFRESHED: "token_refreshed";
3040
3093
  readonly LOGOUT_COMPLETE: "logout_complete";
3094
+ readonly CHECKOUT_STATUS: "checkout_status";
3095
+ readonly CHECKOUT_COMPLETE: "checkout_complete";
3041
3096
  };
3042
3097
  interface ElementsOptions {
3043
3098
  linkUrl?: string;
@@ -3076,10 +3131,21 @@ interface PaymentMethodInfo {
3076
3131
  phone_number?: string;
3077
3132
  label?: string;
3078
3133
  }
3134
+ interface AuthenticatedCustomer {
3135
+ name: string;
3136
+ email: string | null;
3137
+ phone: string | null;
3138
+ }
3139
+ type ElementsCustomerInfo = {
3140
+ name: string;
3141
+ email: string | null;
3142
+ phone: string | null;
3143
+ } | null;
3079
3144
  interface AuthenticatedData {
3080
3145
  accountId: string;
3081
3146
  customerId: string;
3082
3147
  token: string;
3148
+ customer: AuthenticatedCustomer;
3083
3149
  }
3084
3150
  interface ElementsCheckoutData {
3085
3151
  cart_id: string;
@@ -3104,7 +3170,10 @@ interface ElementsCheckoutResult {
3104
3170
  type ParentToIframeMessage = {
3105
3171
  type: typeof MESSAGE_TYPES.INIT;
3106
3172
  businessId: string;
3173
+ publicKey: string;
3174
+ demoMode?: boolean;
3107
3175
  prefillEmail?: string;
3176
+ appearance?: ElementAppearance;
3108
3177
  } | {
3109
3178
  type: typeof MESSAGE_TYPES.SET_TOKEN;
3110
3179
  token: string;
@@ -3114,6 +3183,22 @@ type ParentToIframeMessage = {
3114
3183
  type: typeof MESSAGE_TYPES.REFRESH_TOKEN;
3115
3184
  } | {
3116
3185
  type: typeof MESSAGE_TYPES.LOGOUT;
3186
+ } | {
3187
+ type: typeof MESSAGE_TYPES.PROCESS_CHECKOUT;
3188
+ cart_id: string;
3189
+ order_type: "delivery" | "pickup" | "dine_in";
3190
+ location_id?: string;
3191
+ notes?: string;
3192
+ scheduled_time?: string;
3193
+ tip_amount?: number;
3194
+ pay_currency?: string;
3195
+ enroll_in_link?: boolean;
3196
+ address?: AddressInfo;
3197
+ customer: ElementsCustomerInfo;
3198
+ account_id?: string;
3199
+ customer_id?: string;
3200
+ } | {
3201
+ type: typeof MESSAGE_TYPES.ABORT_CHECKOUT;
3117
3202
  };
3118
3203
  type IframeToParentMessage = {
3119
3204
  type: typeof MESSAGE_TYPES.READY;
@@ -3126,6 +3211,7 @@ type IframeToParentMessage = {
3126
3211
  accountId: string;
3127
3212
  customerId: string;
3128
3213
  token: string;
3214
+ customer: AuthenticatedCustomer;
3129
3215
  } | {
3130
3216
  type: typeof MESSAGE_TYPES.REQUIRES_OTP;
3131
3217
  contactMasked: string;
@@ -3149,6 +3235,26 @@ type IframeToParentMessage = {
3149
3235
  token: string;
3150
3236
  } | {
3151
3237
  type: typeof MESSAGE_TYPES.LOGOUT_COMPLETE;
3238
+ } | {
3239
+ type: typeof MESSAGE_TYPES.CHECKOUT_STATUS;
3240
+ status: CheckoutStatus;
3241
+ context: CheckoutStatusContext;
3242
+ } | {
3243
+ type: typeof MESSAGE_TYPES.CHECKOUT_COMPLETE;
3244
+ success: boolean;
3245
+ order?: {
3246
+ id: string;
3247
+ order_number: string;
3248
+ status: string;
3249
+ total: string;
3250
+ currency: string;
3251
+ };
3252
+ error?: {
3253
+ code: string;
3254
+ message: string;
3255
+ recoverable: boolean;
3256
+ };
3257
+ enrolled_in_link?: boolean;
3152
3258
  };
3153
3259
  declare const EVENT_TYPES: {
3154
3260
  readonly READY: "ready";
@@ -3171,16 +3277,23 @@ declare class CimplifyElements {
3171
3277
  private accessToken;
3172
3278
  private accountId;
3173
3279
  private customerId;
3280
+ private customerData;
3174
3281
  private addressData;
3175
3282
  private paymentData;
3283
+ private checkoutInProgress;
3284
+ private activeCheckoutAbort;
3176
3285
  private boundHandleMessage;
3177
3286
  constructor(client: CimplifyClient, businessId: string, options?: ElementsOptions);
3178
3287
  create(type: ElementType, options?: ElementOptions): CimplifyElement;
3179
3288
  getElement(type: ElementType): CimplifyElement | undefined;
3180
3289
  destroy(): void;
3181
3290
  submitCheckout(data: ElementsCheckoutData): Promise<ElementsCheckoutResult>;
3291
+ processCheckout(options: ProcessCheckoutOptions): AbortablePromise<ProcessCheckoutResult>;
3182
3292
  isAuthenticated(): boolean;
3183
3293
  getAccessToken(): string | null;
3294
+ getPublicKey(): string;
3295
+ getAppearance(): ElementsOptions["appearance"];
3296
+ private hydrateCustomerData;
3184
3297
  private handleMessage;
3185
3298
  _setAddressData(data: AddressInfo): void;
3186
3299
  _setPaymentData(data: PaymentMethodInfo): void;
@@ -3204,6 +3317,8 @@ declare class CimplifyElement {
3204
3317
  off(event: ElementEventType, handler: ElementEventHandler): void;
3205
3318
  getData(): Promise<unknown>;
3206
3319
  sendMessage(message: ParentToIframeMessage): void;
3320
+ getContentWindow(): Window | null;
3321
+ isMounted(): boolean;
3207
3322
  private createIframe;
3208
3323
  private handleMessage;
3209
3324
  private emit;
@@ -3252,6 +3367,7 @@ declare class CimplifyClient {
3252
3367
  /** @deprecated Use setAccessToken() instead */
3253
3368
  setSessionToken(token: string | null): void;
3254
3369
  getAccessToken(): string | null;
3370
+ getPublicKey(): string;
3255
3371
  setAccessToken(token: string | null): void;
3256
3372
  clearSession(): void;
3257
3373
  /** Set the active location/branch for all subsequent requests */
@@ -3322,4 +3438,4 @@ interface AdContextValue {
3322
3438
  isLoading: boolean;
3323
3439
  }
3324
3440
 
3325
- export { type CheckoutFormData as $, type ApiError as A, BusinessService as B, CimplifyClient as C, createElements as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, ELEMENT_TYPES as H, InventoryService as I, type ElementsOptions as J, type KitchenOrderItem as K, LinkService as L, MESSAGE_TYPES as M, type ElementOptions as N, OrderQueries as O, type PaymentErrorDetails as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, type SearchOptions as S, type TableInfo as T, type UpdateProfileInput as U, type ElementType as V, type ElementEventType as W, type CheckoutMode as X, type CheckoutOrderType as Y, type CheckoutPaymentMethod as Z, type CheckoutStep as _, type PaymentResponse as a, type VariantAxisSelection as a$, type CheckoutResult as a0, type MobileMoneyProvider as a1, type DeviceType as a2, type ContactType as a3, CHECKOUT_MODE as a4, ORDER_TYPE as a5, PAYMENT_METHOD as a6, CHECKOUT_STEP as a7, PAYMENT_STATE as a8, PICKUP_TIME_TYPE as a9, isOk as aA, isErr as aB, mapResult as aC, mapError as aD, flatMap as aE, getOrElse as aF, unwrap as aG, toNullable as aH, fromPromise as aI, tryCatch as aJ, combine as aK, combineObject as aL, type ProductType as aM, type InventoryType as aN, type VariantStrategy as aO, type DigitalProductType as aP, type DepositType as aQ, type SalesChannel as aR, type Product as aS, type ProductWithDetails as aT, type ProductVariant as aU, type VariantDisplayAttribute as aV, type VariantAxis as aW, type VariantAxisWithValues as aX, type VariantAxisValue as aY, type ProductVariantValue as aZ, type VariantLocationAvailability as a_, MOBILE_MONEY_PROVIDER as aa, AUTHORIZATION_TYPE as ab, DEVICE_TYPE as ac, CONTACT_TYPE as ad, LINK_QUERY as ae, LINK_MUTATION as af, AUTH_MUTATION as ag, CHECKOUT_MUTATION as ah, PAYMENT_MUTATION as ai, ORDER_MUTATION as aj, DEFAULT_CURRENCY as ak, DEFAULT_COUNTRY as al, type Money as am, type Currency as an, type PaginationParams as ao, type Pagination as ap, ErrorCode as aq, type ErrorCodeType as ar, CimplifyError as as, isCimplifyError as at, isRetryableError as au, type Result as av, type Ok as aw, type Err as ax, ok as ay, err as az, type PaymentStatusResponse as b, type DisplayAddOnOption as b$, type AddOn as b0, type AddOnWithOptions as b1, type AddOnOption as b2, type AddOnOptionPrice as b3, type ProductAddOn as b4, type Category as b5, type CategorySummary as b6, type Collection as b7, type CollectionSummary as b8, type CollectionProduct as b9, type AdjustmentType as bA, type PriceAdjustment as bB, type TaxPathComponent as bC, type PricePathTaxInfo as bD, type PriceDecisionPath as bE, type ChosenPrice as bF, type BenefitType as bG, type AppliedDiscount as bH, type DiscountBreakdown as bI, type DiscountDetails as bJ, type SelectedAddOnOption as bK, type AddOnDetails as bL, type CartAddOn as bM, type VariantDetails as bN, type BundleSelectionInput as bO, type BundleStoredSelection as bP, type BundleSelectionData as bQ, type CompositeStoredSelection as bR, type CompositePriceBreakdown as bS, type CompositeSelectionData as bT, type LineConfiguration as bU, type Cart as bV, type CartItem as bW, type CartTotals as bX, type DisplayCart as bY, type DisplayCartItem as bZ, type DisplayAddOn as b_, type BundlePriceType as ba, type Bundle as bb, type BundleSummary as bc, type BundleProduct as bd, type BundleWithDetails as be, type BundleComponentData as bf, type BundleComponentInfo as bg, type CompositePricingMode as bh, type GroupPricingBehavior as bi, type ComponentSourceType as bj, type Composite as bk, type CompositeWithDetails as bl, type ComponentGroup as bm, type ComponentGroupWithComponents as bn, type CompositeComponent as bo, type ComponentSelectionInput as bp, type CompositePriceResult as bq, type ComponentPriceBreakdown as br, type PriceEntryType as bs, type Price as bt, type LocationProductPrice as bu, type ProductAvailability as bv, type ProductTimeProfile as bw, type CartStatus as bx, type CartChannel as by, type PriceSource as bz, createCimplifyClient as c, type Payment as c$, type UICartBusiness as c0, type UICartLocation as c1, type UICartCustomer as c2, type UICartPricing as c3, type AddOnOptionDetails as c4, type AddOnGroupDetails as c5, type VariantDetailsDTO as c6, type CartItemDetails as c7, type UICart as c8, type UICartResponse as c9, type CheckoutInput as cA, type UpdateOrderStatusInput as cB, type CancelOrderInput as cC, type RefundOrderInput as cD, type ServiceStatus as cE, type StaffRole as cF, type ReminderMethod as cG, type CustomerServicePreferences as cH, type BufferTimes as cI, type ReminderSettings as cJ, type CancellationPolicy as cK, type ServiceNotes as cL, type PricingOverrides as cM, type SchedulingMetadata as cN, type StaffAssignment as cO, type ResourceAssignment as cP, type SchedulingResult as cQ, type DepositResult as cR, type ServiceScheduleRequest as cS, type StaffScheduleItem as cT, type LocationAppointment as cU, type PaymentStatus as cV, type PaymentProvider as cW, type PaymentMethodType as cX, type AuthorizationType as cY, type PaymentProcessingState as cZ, type PaymentMethod as c_, type AddToCartInput as ca, type UpdateCartItemInput as cb, type CartSummary as cc, type OrderStatus as cd, type PaymentState as ce, type OrderChannel as cf, type LineType as cg, type OrderLineState as ch, type OrderLineStatus as ci, type FulfillmentType as cj, type FulfillmentStatus as ck, type FulfillmentLink as cl, type OrderFulfillmentSummary as cm, type FeeBearerType as cn, type AmountToPay as co, type LineItem as cp, type Order as cq, type OrderHistory as cr, type OrderGroupPaymentState as cs, type OrderGroup as ct, type OrderGroupPayment as cu, type OrderSplitDetail as cv, type OrderGroupPaymentSummary as cw, type OrderGroupDetails as cx, type OrderPaymentEvent as cy, type OrderFilter as cz, type CimplifyConfig as d, type CreateMobileMoneyInput as d$, type InitializePaymentResult as d0, type SubmitAuthorizationInput as d1, type BusinessType as d2, type BusinessPreferences as d3, type Business as d4, type LocationTaxBehavior as d5, type LocationTaxOverrides as d6, type Location as d7, type TimeRange as d8, type TimeRanges as d9, type DayAvailability as dA, type BookingStatus as dB, type Booking as dC, type BookingWithDetails as dD, type GetAvailableSlotsInput as dE, type CheckSlotAvailabilityInput as dF, type RescheduleBookingInput as dG, type CancelBookingInput as dH, type ServiceAvailabilityParams as dI, type ServiceAvailabilityResult as dJ, type StockOwnershipType as dK, type StockStatus as dL, type Stock as dM, type StockLevel as dN, type ProductStock as dO, type VariantStock as dP, type LocationStock as dQ, type AvailabilityCheck as dR, type AvailabilityResult as dS, type InventorySummary as dT, type Customer as dU, type CustomerAddress as dV, type CustomerMobileMoney as dW, type CustomerLinkPreferences as dX, type LinkData as dY, type CreateAddressInput as dZ, type UpdateAddressInput as d_, type LocationTimeProfile as da, type Table as db, type Room as dc, type ServiceCharge as dd, type StorefrontBootstrap as de, type BusinessWithLocations as df, type LocationWithDetails as dg, type BusinessSettings as dh, type BusinessHours as di, type CategoryInfo as dj, type ServiceAvailabilityRule as dk, type ServiceAvailabilityException as dl, type StaffAvailabilityRule as dm, type StaffAvailabilityException as dn, type ResourceAvailabilityRule as dp, type ResourceAvailabilityException as dq, type StaffBookingProfile as dr, type ServiceStaffRequirement as ds, type BookingRequirementOverride as dt, type ResourceType as du, type Service as dv, type ServiceWithStaff as dw, type Staff as dx, type TimeSlot as dy, type AvailableSlot as dz, CatalogueQueries as e, type EnrollmentData as e0, type AddressData as e1, type MobileMoneyData as e2, type EnrollAndLinkOrderInput as e3, type LinkStatusResult as e4, type LinkEnrollResult as e5, type EnrollAndLinkOrderResult as e6, type LinkSession as e7, type RevokeSessionResult as e8, type RevokeAllSessionsResult as e9, type ElementEventHandler as eA, type AdSlot as eB, type AdPosition as eC, type AdTheme as eD, type AdConfig as eE, type AdCreative as eF, type AdContextValue as eG, type RequestOtpInput as ea, type VerifyOtpInput as eb, type AuthResponse as ec, type PickupTimeType as ed, type PickupTime as ee, type CheckoutAddressInfo as ef, type MobileMoneyDetails as eg, type CheckoutCustomerInfo as eh, type FxQuoteRequest as ei, type FxQuote as ej, type FxRateResponse as ek, type RequestContext as el, type RequestStartEvent as em, type RequestSuccessEvent as en, type RequestErrorEvent as eo, type RetryEvent as ep, type SessionChangeEvent as eq, type ObservabilityHooks as er, type ElementAppearance as es, type AddressInfo as et, type PaymentMethodInfo as eu, type AuthenticatedData as ev, type ElementsCheckoutData as ew, type ElementsCheckoutResult as ex, type ParentToIframeMessage as ey, type IframeToParentMessage as ez, type QuoteBundleSelectionInput as f, type QuoteStatus as g, type QuoteDynamicBuckets as h, type QuoteUiMessage as i, type PriceQuote as j, type RefreshQuoteResult as k, CartOperations as l, CheckoutService as m, generateIdempotencyKey as n, type GetOrdersOptions as o, AuthService as p, type AuthStatus as q, type OtpResult as r, type ChangePasswordInput as s, SchedulingService as t, LiteService as u, FxService as v, type LiteBootstrap as w, type KitchenOrderResult as x, CimplifyElements as y, CimplifyElement as z };
3441
+ export { type CheckoutFormData as $, type ApiError as A, BusinessService as B, CimplifyClient as C, createElements as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, ELEMENT_TYPES as H, InventoryService as I, type ElementsOptions as J, type KitchenOrderItem as K, LinkService as L, MESSAGE_TYPES as M, type ElementOptions as N, OrderQueries as O, type PaymentErrorDetails as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, type SearchOptions as S, type TableInfo as T, type UpdateProfileInput as U, type ElementType as V, type ElementEventType as W, type CheckoutMode as X, type CheckoutOrderType as Y, type CheckoutPaymentMethod as Z, type CheckoutStep as _, type PaymentResponse as a, type VariantDisplayAttribute as a$, type CheckoutResult as a0, type ProcessCheckoutOptions as a1, type ProcessCheckoutResult as a2, type ProcessAndResolveOptions as a3, type CheckoutStatus as a4, type CheckoutStatusContext as a5, type AbortablePromise as a6, type MobileMoneyProvider as a7, type DeviceType as a8, type ContactType as a9, isRetryableError as aA, type Result as aB, type Ok as aC, type Err as aD, ok as aE, err as aF, isOk as aG, isErr as aH, mapResult as aI, mapError as aJ, flatMap as aK, getOrElse as aL, unwrap as aM, toNullable as aN, fromPromise as aO, tryCatch as aP, combine as aQ, combineObject as aR, type ProductType as aS, type InventoryType as aT, type VariantStrategy as aU, type DigitalProductType as aV, type DepositType as aW, type SalesChannel as aX, type Product as aY, type ProductWithDetails as aZ, type ProductVariant as a_, CHECKOUT_MODE as aa, ORDER_TYPE as ab, PAYMENT_METHOD as ac, CHECKOUT_STEP as ad, PAYMENT_STATE as ae, PICKUP_TIME_TYPE as af, MOBILE_MONEY_PROVIDER as ag, AUTHORIZATION_TYPE as ah, DEVICE_TYPE as ai, CONTACT_TYPE as aj, LINK_QUERY as ak, LINK_MUTATION as al, AUTH_MUTATION as am, CHECKOUT_MUTATION as an, PAYMENT_MUTATION as ao, ORDER_MUTATION as ap, DEFAULT_CURRENCY as aq, DEFAULT_COUNTRY as ar, type Money as as, type Currency as at, type PaginationParams as au, type Pagination as av, ErrorCode as aw, type ErrorCodeType as ax, CimplifyError as ay, isCimplifyError as az, type PaymentStatusResponse as b, type Cart as b$, type VariantAxis as b0, type VariantAxisWithValues as b1, type VariantAxisValue as b2, type ProductVariantValue as b3, type VariantLocationAvailability as b4, type VariantAxisSelection as b5, type AddOn as b6, type AddOnWithOptions as b7, type AddOnOption as b8, type AddOnOptionPrice as b9, type LocationProductPrice as bA, type ProductAvailability as bB, type ProductTimeProfile as bC, type CartStatus as bD, type CartChannel as bE, type PriceSource as bF, type AdjustmentType as bG, type PriceAdjustment as bH, type TaxPathComponent as bI, type PricePathTaxInfo as bJ, type PriceDecisionPath as bK, type ChosenPrice as bL, type BenefitType as bM, type AppliedDiscount as bN, type DiscountBreakdown as bO, type DiscountDetails as bP, type SelectedAddOnOption as bQ, type AddOnDetails as bR, type CartAddOn as bS, type VariantDetails as bT, type BundleSelectionInput as bU, type BundleStoredSelection as bV, type BundleSelectionData as bW, type CompositeStoredSelection as bX, type CompositePriceBreakdown as bY, type CompositeSelectionData as bZ, type LineConfiguration as b_, type ProductAddOn as ba, type Category as bb, type CategorySummary as bc, type Collection as bd, type CollectionSummary as be, type CollectionProduct as bf, type BundlePriceType as bg, type Bundle as bh, type BundleSummary as bi, type BundleProduct as bj, type BundleWithDetails as bk, type BundleComponentData as bl, type BundleComponentInfo as bm, type CompositePricingMode as bn, type GroupPricingBehavior as bo, type ComponentSourceType as bp, type Composite as bq, type CompositeWithDetails as br, type ComponentGroup as bs, type ComponentGroupWithComponents as bt, type CompositeComponent as bu, type ComponentSelectionInput as bv, type CompositePriceResult as bw, type ComponentPriceBreakdown as bx, type PriceEntryType as by, type Price as bz, createCimplifyClient as c, type PaymentStatus as c$, type CartItem as c0, type CartTotals as c1, type DisplayCart as c2, type DisplayCartItem as c3, type DisplayAddOn as c4, type DisplayAddOnOption as c5, type UICartBusiness as c6, type UICartLocation as c7, type UICartCustomer as c8, type UICartPricing as c9, type OrderGroupPayment as cA, type OrderSplitDetail as cB, type OrderGroupPaymentSummary as cC, type OrderGroupDetails as cD, type OrderPaymentEvent as cE, type OrderFilter as cF, type CheckoutInput as cG, type UpdateOrderStatusInput as cH, type CancelOrderInput as cI, type RefundOrderInput as cJ, type ServiceStatus as cK, type StaffRole as cL, type ReminderMethod as cM, type CustomerServicePreferences as cN, type BufferTimes as cO, type ReminderSettings as cP, type CancellationPolicy as cQ, type ServiceNotes as cR, type PricingOverrides as cS, type SchedulingMetadata as cT, type StaffAssignment as cU, type ResourceAssignment as cV, type SchedulingResult as cW, type DepositResult as cX, type ServiceScheduleRequest as cY, type StaffScheduleItem as cZ, type LocationAppointment as c_, type AddOnOptionDetails as ca, type AddOnGroupDetails as cb, type VariantDetailsDTO as cc, type CartItemDetails as cd, type UICart as ce, type UICartResponse as cf, type AddToCartInput as cg, type UpdateCartItemInput as ch, type CartSummary as ci, type OrderStatus as cj, type PaymentState as ck, type OrderChannel as cl, type LineType as cm, type OrderLineState as cn, type OrderLineStatus as co, type FulfillmentType as cp, type FulfillmentStatus as cq, type FulfillmentLink as cr, type OrderFulfillmentSummary as cs, type FeeBearerType as ct, type AmountToPay as cu, type LineItem as cv, type Order as cw, type OrderHistory as cx, type OrderGroupPaymentState as cy, type OrderGroup as cz, type CimplifyConfig as d, type CustomerAddress as d$, type PaymentProvider as d0, type PaymentMethodType as d1, type AuthorizationType as d2, type PaymentProcessingState as d3, type PaymentMethod as d4, type Payment as d5, type InitializePaymentResult as d6, type SubmitAuthorizationInput as d7, type BusinessType as d8, type BusinessPreferences as d9, type ResourceType as dA, type Service as dB, type ServiceWithStaff as dC, type Staff as dD, type TimeSlot as dE, type AvailableSlot as dF, type DayAvailability as dG, type BookingStatus as dH, type Booking as dI, type BookingWithDetails as dJ, type GetAvailableSlotsInput as dK, type CheckSlotAvailabilityInput as dL, type RescheduleBookingInput as dM, type CancelBookingInput as dN, type ServiceAvailabilityParams as dO, type ServiceAvailabilityResult as dP, type StockOwnershipType as dQ, type StockStatus as dR, type Stock as dS, type StockLevel as dT, type ProductStock as dU, type VariantStock as dV, type LocationStock as dW, type AvailabilityCheck as dX, type AvailabilityResult as dY, type InventorySummary as dZ, type Customer as d_, type Business as da, type LocationTaxBehavior as db, type LocationTaxOverrides as dc, type Location as dd, type TimeRange as de, type TimeRanges as df, type LocationTimeProfile as dg, type Table as dh, type Room as di, type ServiceCharge as dj, type StorefrontBootstrap as dk, type BusinessWithLocations as dl, type LocationWithDetails as dm, type BusinessSettings as dn, type BusinessHours as dp, type CategoryInfo as dq, type ServiceAvailabilityRule as dr, type ServiceAvailabilityException as ds, type StaffAvailabilityRule as dt, type StaffAvailabilityException as du, type ResourceAvailabilityRule as dv, type ResourceAvailabilityException as dw, type StaffBookingProfile as dx, type ServiceStaffRequirement as dy, type BookingRequirementOverride as dz, CatalogueQueries as e, type CustomerMobileMoney as e0, type CustomerLinkPreferences as e1, type LinkData as e2, type CreateAddressInput as e3, type UpdateAddressInput as e4, type CreateMobileMoneyInput as e5, type EnrollmentData as e6, type AddressData as e7, type MobileMoneyData as e8, type EnrollAndLinkOrderInput as e9, type PaymentMethodInfo as eA, type AuthenticatedCustomer as eB, type ElementsCustomerInfo as eC, type AuthenticatedData as eD, type ElementsCheckoutData as eE, type ElementsCheckoutResult as eF, type ParentToIframeMessage as eG, type IframeToParentMessage as eH, type ElementEventHandler as eI, type AdSlot as eJ, type AdPosition as eK, type AdTheme as eL, type AdConfig as eM, type AdCreative as eN, type AdContextValue as eO, type LinkStatusResult as ea, type LinkEnrollResult as eb, type EnrollAndLinkOrderResult as ec, type LinkSession as ed, type RevokeSessionResult as ee, type RevokeAllSessionsResult as ef, type RequestOtpInput as eg, type VerifyOtpInput as eh, type AuthResponse as ei, type PickupTimeType as ej, type PickupTime as ek, type CheckoutAddressInfo as el, type MobileMoneyDetails as em, type CheckoutCustomerInfo as en, type FxQuoteRequest as eo, type FxQuote as ep, type FxRateResponse as eq, type RequestContext as er, type RequestStartEvent as es, type RequestSuccessEvent as et, type RequestErrorEvent as eu, type RetryEvent as ev, type SessionChangeEvent as ew, type ObservabilityHooks as ex, type ElementAppearance as ey, type AddressInfo as ez, type QuoteBundleSelectionInput as f, type QuoteStatus as g, type QuoteDynamicBuckets as h, type QuoteUiMessage as i, type PriceQuote as j, type RefreshQuoteResult as k, CartOperations as l, CheckoutService as m, generateIdempotencyKey as n, type GetOrdersOptions as o, AuthService as p, type AuthStatus as q, type OtpResult as r, type ChangePasswordInput as s, SchedulingService as t, LiteService as u, FxService as v, type LiteBootstrap as w, type KitchenOrderResult as x, CimplifyElements as y, CimplifyElement as z };
@@ -2195,6 +2195,56 @@ interface CheckoutResult {
2195
2195
  quote_id: string;
2196
2196
  };
2197
2197
  }
2198
+ type CheckoutStatus = "preparing" | "recovering" | "processing" | "awaiting_authorization" | "polling" | "finalizing" | "success" | "failed";
2199
+ interface CheckoutStatusContext {
2200
+ display_text?: string;
2201
+ authorization_type?: "otp" | "pin";
2202
+ poll_attempt?: number;
2203
+ max_poll_attempts?: number;
2204
+ order_id?: string;
2205
+ order_number?: string;
2206
+ provider?: string;
2207
+ }
2208
+ interface ProcessCheckoutOptions {
2209
+ cart_id: string;
2210
+ order_type: "delivery" | "pickup" | "dine_in";
2211
+ location_id?: string;
2212
+ notes?: string;
2213
+ scheduled_time?: string;
2214
+ tip_amount?: number;
2215
+ enroll_in_link?: boolean;
2216
+ pay_currency?: string;
2217
+ timeout_ms?: number;
2218
+ on_status_change?: (status: CheckoutStatus, context: CheckoutStatusContext) => void;
2219
+ }
2220
+ interface ProcessCheckoutResult {
2221
+ success: boolean;
2222
+ order?: {
2223
+ id: string;
2224
+ order_number: string;
2225
+ status: string;
2226
+ total: string;
2227
+ currency: string;
2228
+ };
2229
+ error?: {
2230
+ code: string;
2231
+ message: string;
2232
+ recoverable: boolean;
2233
+ };
2234
+ enrolled_in_link?: boolean;
2235
+ }
2236
+ interface ProcessAndResolveOptions {
2237
+ enroll_in_link?: boolean;
2238
+ poll_interval_ms?: number;
2239
+ max_poll_attempts?: number;
2240
+ on_status_change?: (status: CheckoutStatus, context: CheckoutStatusContext) => void;
2241
+ on_authorization_required?: (type: "otp" | "pin", submit: (code: string) => Promise<void>) => void | Promise<void>;
2242
+ return_url?: string;
2243
+ signal?: AbortSignal;
2244
+ }
2245
+ type AbortablePromise<T> = Promise<T> & {
2246
+ abort: () => void;
2247
+ };
2198
2248
 
2199
2249
  declare function generateIdempotencyKey(): string;
2200
2250
  declare class CheckoutService {
@@ -2206,6 +2256,7 @@ declare class CheckoutService {
2206
2256
  pollPaymentStatus(orderId: string): Promise<Result<PaymentStatusResponse, CimplifyError>>;
2207
2257
  updateOrderCustomer(orderId: string, customer: CheckoutCustomerInfo): Promise<Result<Order, CimplifyError>>;
2208
2258
  verifyPayment(orderId: string): Promise<Result<Order, CimplifyError>>;
2259
+ processAndResolve(data: CheckoutFormData & ProcessAndResolveOptions): Promise<Result<ProcessCheckoutResult, CimplifyError>>;
2209
2260
  }
2210
2261
 
2211
2262
  interface GetOrdersOptions {
@@ -3028,6 +3079,8 @@ declare const MESSAGE_TYPES: {
3028
3079
  readonly GET_DATA: "get_data";
3029
3080
  readonly REFRESH_TOKEN: "refresh_token";
3030
3081
  readonly LOGOUT: "logout";
3082
+ readonly PROCESS_CHECKOUT: "process_checkout";
3083
+ readonly ABORT_CHECKOUT: "abort_checkout";
3031
3084
  readonly READY: "ready";
3032
3085
  readonly HEIGHT_CHANGE: "height_change";
3033
3086
  readonly AUTHENTICATED: "authenticated";
@@ -3038,6 +3091,8 @@ declare const MESSAGE_TYPES: {
3038
3091
  readonly PAYMENT_METHOD_SELECTED: "payment_method_selected";
3039
3092
  readonly TOKEN_REFRESHED: "token_refreshed";
3040
3093
  readonly LOGOUT_COMPLETE: "logout_complete";
3094
+ readonly CHECKOUT_STATUS: "checkout_status";
3095
+ readonly CHECKOUT_COMPLETE: "checkout_complete";
3041
3096
  };
3042
3097
  interface ElementsOptions {
3043
3098
  linkUrl?: string;
@@ -3076,10 +3131,21 @@ interface PaymentMethodInfo {
3076
3131
  phone_number?: string;
3077
3132
  label?: string;
3078
3133
  }
3134
+ interface AuthenticatedCustomer {
3135
+ name: string;
3136
+ email: string | null;
3137
+ phone: string | null;
3138
+ }
3139
+ type ElementsCustomerInfo = {
3140
+ name: string;
3141
+ email: string | null;
3142
+ phone: string | null;
3143
+ } | null;
3079
3144
  interface AuthenticatedData {
3080
3145
  accountId: string;
3081
3146
  customerId: string;
3082
3147
  token: string;
3148
+ customer: AuthenticatedCustomer;
3083
3149
  }
3084
3150
  interface ElementsCheckoutData {
3085
3151
  cart_id: string;
@@ -3104,7 +3170,10 @@ interface ElementsCheckoutResult {
3104
3170
  type ParentToIframeMessage = {
3105
3171
  type: typeof MESSAGE_TYPES.INIT;
3106
3172
  businessId: string;
3173
+ publicKey: string;
3174
+ demoMode?: boolean;
3107
3175
  prefillEmail?: string;
3176
+ appearance?: ElementAppearance;
3108
3177
  } | {
3109
3178
  type: typeof MESSAGE_TYPES.SET_TOKEN;
3110
3179
  token: string;
@@ -3114,6 +3183,22 @@ type ParentToIframeMessage = {
3114
3183
  type: typeof MESSAGE_TYPES.REFRESH_TOKEN;
3115
3184
  } | {
3116
3185
  type: typeof MESSAGE_TYPES.LOGOUT;
3186
+ } | {
3187
+ type: typeof MESSAGE_TYPES.PROCESS_CHECKOUT;
3188
+ cart_id: string;
3189
+ order_type: "delivery" | "pickup" | "dine_in";
3190
+ location_id?: string;
3191
+ notes?: string;
3192
+ scheduled_time?: string;
3193
+ tip_amount?: number;
3194
+ pay_currency?: string;
3195
+ enroll_in_link?: boolean;
3196
+ address?: AddressInfo;
3197
+ customer: ElementsCustomerInfo;
3198
+ account_id?: string;
3199
+ customer_id?: string;
3200
+ } | {
3201
+ type: typeof MESSAGE_TYPES.ABORT_CHECKOUT;
3117
3202
  };
3118
3203
  type IframeToParentMessage = {
3119
3204
  type: typeof MESSAGE_TYPES.READY;
@@ -3126,6 +3211,7 @@ type IframeToParentMessage = {
3126
3211
  accountId: string;
3127
3212
  customerId: string;
3128
3213
  token: string;
3214
+ customer: AuthenticatedCustomer;
3129
3215
  } | {
3130
3216
  type: typeof MESSAGE_TYPES.REQUIRES_OTP;
3131
3217
  contactMasked: string;
@@ -3149,6 +3235,26 @@ type IframeToParentMessage = {
3149
3235
  token: string;
3150
3236
  } | {
3151
3237
  type: typeof MESSAGE_TYPES.LOGOUT_COMPLETE;
3238
+ } | {
3239
+ type: typeof MESSAGE_TYPES.CHECKOUT_STATUS;
3240
+ status: CheckoutStatus;
3241
+ context: CheckoutStatusContext;
3242
+ } | {
3243
+ type: typeof MESSAGE_TYPES.CHECKOUT_COMPLETE;
3244
+ success: boolean;
3245
+ order?: {
3246
+ id: string;
3247
+ order_number: string;
3248
+ status: string;
3249
+ total: string;
3250
+ currency: string;
3251
+ };
3252
+ error?: {
3253
+ code: string;
3254
+ message: string;
3255
+ recoverable: boolean;
3256
+ };
3257
+ enrolled_in_link?: boolean;
3152
3258
  };
3153
3259
  declare const EVENT_TYPES: {
3154
3260
  readonly READY: "ready";
@@ -3171,16 +3277,23 @@ declare class CimplifyElements {
3171
3277
  private accessToken;
3172
3278
  private accountId;
3173
3279
  private customerId;
3280
+ private customerData;
3174
3281
  private addressData;
3175
3282
  private paymentData;
3283
+ private checkoutInProgress;
3284
+ private activeCheckoutAbort;
3176
3285
  private boundHandleMessage;
3177
3286
  constructor(client: CimplifyClient, businessId: string, options?: ElementsOptions);
3178
3287
  create(type: ElementType, options?: ElementOptions): CimplifyElement;
3179
3288
  getElement(type: ElementType): CimplifyElement | undefined;
3180
3289
  destroy(): void;
3181
3290
  submitCheckout(data: ElementsCheckoutData): Promise<ElementsCheckoutResult>;
3291
+ processCheckout(options: ProcessCheckoutOptions): AbortablePromise<ProcessCheckoutResult>;
3182
3292
  isAuthenticated(): boolean;
3183
3293
  getAccessToken(): string | null;
3294
+ getPublicKey(): string;
3295
+ getAppearance(): ElementsOptions["appearance"];
3296
+ private hydrateCustomerData;
3184
3297
  private handleMessage;
3185
3298
  _setAddressData(data: AddressInfo): void;
3186
3299
  _setPaymentData(data: PaymentMethodInfo): void;
@@ -3204,6 +3317,8 @@ declare class CimplifyElement {
3204
3317
  off(event: ElementEventType, handler: ElementEventHandler): void;
3205
3318
  getData(): Promise<unknown>;
3206
3319
  sendMessage(message: ParentToIframeMessage): void;
3320
+ getContentWindow(): Window | null;
3321
+ isMounted(): boolean;
3207
3322
  private createIframe;
3208
3323
  private handleMessage;
3209
3324
  private emit;
@@ -3252,6 +3367,7 @@ declare class CimplifyClient {
3252
3367
  /** @deprecated Use setAccessToken() instead */
3253
3368
  setSessionToken(token: string | null): void;
3254
3369
  getAccessToken(): string | null;
3370
+ getPublicKey(): string;
3255
3371
  setAccessToken(token: string | null): void;
3256
3372
  clearSession(): void;
3257
3373
  /** Set the active location/branch for all subsequent requests */
@@ -3322,4 +3438,4 @@ interface AdContextValue {
3322
3438
  isLoading: boolean;
3323
3439
  }
3324
3440
 
3325
- export { type CheckoutFormData as $, type ApiError as A, BusinessService as B, CimplifyClient as C, createElements as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, ELEMENT_TYPES as H, InventoryService as I, type ElementsOptions as J, type KitchenOrderItem as K, LinkService as L, MESSAGE_TYPES as M, type ElementOptions as N, OrderQueries as O, type PaymentErrorDetails as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, type SearchOptions as S, type TableInfo as T, type UpdateProfileInput as U, type ElementType as V, type ElementEventType as W, type CheckoutMode as X, type CheckoutOrderType as Y, type CheckoutPaymentMethod as Z, type CheckoutStep as _, type PaymentResponse as a, type VariantAxisSelection as a$, type CheckoutResult as a0, type MobileMoneyProvider as a1, type DeviceType as a2, type ContactType as a3, CHECKOUT_MODE as a4, ORDER_TYPE as a5, PAYMENT_METHOD as a6, CHECKOUT_STEP as a7, PAYMENT_STATE as a8, PICKUP_TIME_TYPE as a9, isOk as aA, isErr as aB, mapResult as aC, mapError as aD, flatMap as aE, getOrElse as aF, unwrap as aG, toNullable as aH, fromPromise as aI, tryCatch as aJ, combine as aK, combineObject as aL, type ProductType as aM, type InventoryType as aN, type VariantStrategy as aO, type DigitalProductType as aP, type DepositType as aQ, type SalesChannel as aR, type Product as aS, type ProductWithDetails as aT, type ProductVariant as aU, type VariantDisplayAttribute as aV, type VariantAxis as aW, type VariantAxisWithValues as aX, type VariantAxisValue as aY, type ProductVariantValue as aZ, type VariantLocationAvailability as a_, MOBILE_MONEY_PROVIDER as aa, AUTHORIZATION_TYPE as ab, DEVICE_TYPE as ac, CONTACT_TYPE as ad, LINK_QUERY as ae, LINK_MUTATION as af, AUTH_MUTATION as ag, CHECKOUT_MUTATION as ah, PAYMENT_MUTATION as ai, ORDER_MUTATION as aj, DEFAULT_CURRENCY as ak, DEFAULT_COUNTRY as al, type Money as am, type Currency as an, type PaginationParams as ao, type Pagination as ap, ErrorCode as aq, type ErrorCodeType as ar, CimplifyError as as, isCimplifyError as at, isRetryableError as au, type Result as av, type Ok as aw, type Err as ax, ok as ay, err as az, type PaymentStatusResponse as b, type DisplayAddOnOption as b$, type AddOn as b0, type AddOnWithOptions as b1, type AddOnOption as b2, type AddOnOptionPrice as b3, type ProductAddOn as b4, type Category as b5, type CategorySummary as b6, type Collection as b7, type CollectionSummary as b8, type CollectionProduct as b9, type AdjustmentType as bA, type PriceAdjustment as bB, type TaxPathComponent as bC, type PricePathTaxInfo as bD, type PriceDecisionPath as bE, type ChosenPrice as bF, type BenefitType as bG, type AppliedDiscount as bH, type DiscountBreakdown as bI, type DiscountDetails as bJ, type SelectedAddOnOption as bK, type AddOnDetails as bL, type CartAddOn as bM, type VariantDetails as bN, type BundleSelectionInput as bO, type BundleStoredSelection as bP, type BundleSelectionData as bQ, type CompositeStoredSelection as bR, type CompositePriceBreakdown as bS, type CompositeSelectionData as bT, type LineConfiguration as bU, type Cart as bV, type CartItem as bW, type CartTotals as bX, type DisplayCart as bY, type DisplayCartItem as bZ, type DisplayAddOn as b_, type BundlePriceType as ba, type Bundle as bb, type BundleSummary as bc, type BundleProduct as bd, type BundleWithDetails as be, type BundleComponentData as bf, type BundleComponentInfo as bg, type CompositePricingMode as bh, type GroupPricingBehavior as bi, type ComponentSourceType as bj, type Composite as bk, type CompositeWithDetails as bl, type ComponentGroup as bm, type ComponentGroupWithComponents as bn, type CompositeComponent as bo, type ComponentSelectionInput as bp, type CompositePriceResult as bq, type ComponentPriceBreakdown as br, type PriceEntryType as bs, type Price as bt, type LocationProductPrice as bu, type ProductAvailability as bv, type ProductTimeProfile as bw, type CartStatus as bx, type CartChannel as by, type PriceSource as bz, createCimplifyClient as c, type Payment as c$, type UICartBusiness as c0, type UICartLocation as c1, type UICartCustomer as c2, type UICartPricing as c3, type AddOnOptionDetails as c4, type AddOnGroupDetails as c5, type VariantDetailsDTO as c6, type CartItemDetails as c7, type UICart as c8, type UICartResponse as c9, type CheckoutInput as cA, type UpdateOrderStatusInput as cB, type CancelOrderInput as cC, type RefundOrderInput as cD, type ServiceStatus as cE, type StaffRole as cF, type ReminderMethod as cG, type CustomerServicePreferences as cH, type BufferTimes as cI, type ReminderSettings as cJ, type CancellationPolicy as cK, type ServiceNotes as cL, type PricingOverrides as cM, type SchedulingMetadata as cN, type StaffAssignment as cO, type ResourceAssignment as cP, type SchedulingResult as cQ, type DepositResult as cR, type ServiceScheduleRequest as cS, type StaffScheduleItem as cT, type LocationAppointment as cU, type PaymentStatus as cV, type PaymentProvider as cW, type PaymentMethodType as cX, type AuthorizationType as cY, type PaymentProcessingState as cZ, type PaymentMethod as c_, type AddToCartInput as ca, type UpdateCartItemInput as cb, type CartSummary as cc, type OrderStatus as cd, type PaymentState as ce, type OrderChannel as cf, type LineType as cg, type OrderLineState as ch, type OrderLineStatus as ci, type FulfillmentType as cj, type FulfillmentStatus as ck, type FulfillmentLink as cl, type OrderFulfillmentSummary as cm, type FeeBearerType as cn, type AmountToPay as co, type LineItem as cp, type Order as cq, type OrderHistory as cr, type OrderGroupPaymentState as cs, type OrderGroup as ct, type OrderGroupPayment as cu, type OrderSplitDetail as cv, type OrderGroupPaymentSummary as cw, type OrderGroupDetails as cx, type OrderPaymentEvent as cy, type OrderFilter as cz, type CimplifyConfig as d, type CreateMobileMoneyInput as d$, type InitializePaymentResult as d0, type SubmitAuthorizationInput as d1, type BusinessType as d2, type BusinessPreferences as d3, type Business as d4, type LocationTaxBehavior as d5, type LocationTaxOverrides as d6, type Location as d7, type TimeRange as d8, type TimeRanges as d9, type DayAvailability as dA, type BookingStatus as dB, type Booking as dC, type BookingWithDetails as dD, type GetAvailableSlotsInput as dE, type CheckSlotAvailabilityInput as dF, type RescheduleBookingInput as dG, type CancelBookingInput as dH, type ServiceAvailabilityParams as dI, type ServiceAvailabilityResult as dJ, type StockOwnershipType as dK, type StockStatus as dL, type Stock as dM, type StockLevel as dN, type ProductStock as dO, type VariantStock as dP, type LocationStock as dQ, type AvailabilityCheck as dR, type AvailabilityResult as dS, type InventorySummary as dT, type Customer as dU, type CustomerAddress as dV, type CustomerMobileMoney as dW, type CustomerLinkPreferences as dX, type LinkData as dY, type CreateAddressInput as dZ, type UpdateAddressInput as d_, type LocationTimeProfile as da, type Table as db, type Room as dc, type ServiceCharge as dd, type StorefrontBootstrap as de, type BusinessWithLocations as df, type LocationWithDetails as dg, type BusinessSettings as dh, type BusinessHours as di, type CategoryInfo as dj, type ServiceAvailabilityRule as dk, type ServiceAvailabilityException as dl, type StaffAvailabilityRule as dm, type StaffAvailabilityException as dn, type ResourceAvailabilityRule as dp, type ResourceAvailabilityException as dq, type StaffBookingProfile as dr, type ServiceStaffRequirement as ds, type BookingRequirementOverride as dt, type ResourceType as du, type Service as dv, type ServiceWithStaff as dw, type Staff as dx, type TimeSlot as dy, type AvailableSlot as dz, CatalogueQueries as e, type EnrollmentData as e0, type AddressData as e1, type MobileMoneyData as e2, type EnrollAndLinkOrderInput as e3, type LinkStatusResult as e4, type LinkEnrollResult as e5, type EnrollAndLinkOrderResult as e6, type LinkSession as e7, type RevokeSessionResult as e8, type RevokeAllSessionsResult as e9, type ElementEventHandler as eA, type AdSlot as eB, type AdPosition as eC, type AdTheme as eD, type AdConfig as eE, type AdCreative as eF, type AdContextValue as eG, type RequestOtpInput as ea, type VerifyOtpInput as eb, type AuthResponse as ec, type PickupTimeType as ed, type PickupTime as ee, type CheckoutAddressInfo as ef, type MobileMoneyDetails as eg, type CheckoutCustomerInfo as eh, type FxQuoteRequest as ei, type FxQuote as ej, type FxRateResponse as ek, type RequestContext as el, type RequestStartEvent as em, type RequestSuccessEvent as en, type RequestErrorEvent as eo, type RetryEvent as ep, type SessionChangeEvent as eq, type ObservabilityHooks as er, type ElementAppearance as es, type AddressInfo as et, type PaymentMethodInfo as eu, type AuthenticatedData as ev, type ElementsCheckoutData as ew, type ElementsCheckoutResult as ex, type ParentToIframeMessage as ey, type IframeToParentMessage as ez, type QuoteBundleSelectionInput as f, type QuoteStatus as g, type QuoteDynamicBuckets as h, type QuoteUiMessage as i, type PriceQuote as j, type RefreshQuoteResult as k, CartOperations as l, CheckoutService as m, generateIdempotencyKey as n, type GetOrdersOptions as o, AuthService as p, type AuthStatus as q, type OtpResult as r, type ChangePasswordInput as s, SchedulingService as t, LiteService as u, FxService as v, type LiteBootstrap as w, type KitchenOrderResult as x, CimplifyElements as y, CimplifyElement as z };
3441
+ export { type CheckoutFormData as $, type ApiError as A, BusinessService as B, CimplifyClient as C, createElements as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, ELEMENT_TYPES as H, InventoryService as I, type ElementsOptions as J, type KitchenOrderItem as K, LinkService as L, MESSAGE_TYPES as M, type ElementOptions as N, OrderQueries as O, type PaymentErrorDetails as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, type SearchOptions as S, type TableInfo as T, type UpdateProfileInput as U, type ElementType as V, type ElementEventType as W, type CheckoutMode as X, type CheckoutOrderType as Y, type CheckoutPaymentMethod as Z, type CheckoutStep as _, type PaymentResponse as a, type VariantDisplayAttribute as a$, type CheckoutResult as a0, type ProcessCheckoutOptions as a1, type ProcessCheckoutResult as a2, type ProcessAndResolveOptions as a3, type CheckoutStatus as a4, type CheckoutStatusContext as a5, type AbortablePromise as a6, type MobileMoneyProvider as a7, type DeviceType as a8, type ContactType as a9, isRetryableError as aA, type Result as aB, type Ok as aC, type Err as aD, ok as aE, err as aF, isOk as aG, isErr as aH, mapResult as aI, mapError as aJ, flatMap as aK, getOrElse as aL, unwrap as aM, toNullable as aN, fromPromise as aO, tryCatch as aP, combine as aQ, combineObject as aR, type ProductType as aS, type InventoryType as aT, type VariantStrategy as aU, type DigitalProductType as aV, type DepositType as aW, type SalesChannel as aX, type Product as aY, type ProductWithDetails as aZ, type ProductVariant as a_, CHECKOUT_MODE as aa, ORDER_TYPE as ab, PAYMENT_METHOD as ac, CHECKOUT_STEP as ad, PAYMENT_STATE as ae, PICKUP_TIME_TYPE as af, MOBILE_MONEY_PROVIDER as ag, AUTHORIZATION_TYPE as ah, DEVICE_TYPE as ai, CONTACT_TYPE as aj, LINK_QUERY as ak, LINK_MUTATION as al, AUTH_MUTATION as am, CHECKOUT_MUTATION as an, PAYMENT_MUTATION as ao, ORDER_MUTATION as ap, DEFAULT_CURRENCY as aq, DEFAULT_COUNTRY as ar, type Money as as, type Currency as at, type PaginationParams as au, type Pagination as av, ErrorCode as aw, type ErrorCodeType as ax, CimplifyError as ay, isCimplifyError as az, type PaymentStatusResponse as b, type Cart as b$, type VariantAxis as b0, type VariantAxisWithValues as b1, type VariantAxisValue as b2, type ProductVariantValue as b3, type VariantLocationAvailability as b4, type VariantAxisSelection as b5, type AddOn as b6, type AddOnWithOptions as b7, type AddOnOption as b8, type AddOnOptionPrice as b9, type LocationProductPrice as bA, type ProductAvailability as bB, type ProductTimeProfile as bC, type CartStatus as bD, type CartChannel as bE, type PriceSource as bF, type AdjustmentType as bG, type PriceAdjustment as bH, type TaxPathComponent as bI, type PricePathTaxInfo as bJ, type PriceDecisionPath as bK, type ChosenPrice as bL, type BenefitType as bM, type AppliedDiscount as bN, type DiscountBreakdown as bO, type DiscountDetails as bP, type SelectedAddOnOption as bQ, type AddOnDetails as bR, type CartAddOn as bS, type VariantDetails as bT, type BundleSelectionInput as bU, type BundleStoredSelection as bV, type BundleSelectionData as bW, type CompositeStoredSelection as bX, type CompositePriceBreakdown as bY, type CompositeSelectionData as bZ, type LineConfiguration as b_, type ProductAddOn as ba, type Category as bb, type CategorySummary as bc, type Collection as bd, type CollectionSummary as be, type CollectionProduct as bf, type BundlePriceType as bg, type Bundle as bh, type BundleSummary as bi, type BundleProduct as bj, type BundleWithDetails as bk, type BundleComponentData as bl, type BundleComponentInfo as bm, type CompositePricingMode as bn, type GroupPricingBehavior as bo, type ComponentSourceType as bp, type Composite as bq, type CompositeWithDetails as br, type ComponentGroup as bs, type ComponentGroupWithComponents as bt, type CompositeComponent as bu, type ComponentSelectionInput as bv, type CompositePriceResult as bw, type ComponentPriceBreakdown as bx, type PriceEntryType as by, type Price as bz, createCimplifyClient as c, type PaymentStatus as c$, type CartItem as c0, type CartTotals as c1, type DisplayCart as c2, type DisplayCartItem as c3, type DisplayAddOn as c4, type DisplayAddOnOption as c5, type UICartBusiness as c6, type UICartLocation as c7, type UICartCustomer as c8, type UICartPricing as c9, type OrderGroupPayment as cA, type OrderSplitDetail as cB, type OrderGroupPaymentSummary as cC, type OrderGroupDetails as cD, type OrderPaymentEvent as cE, type OrderFilter as cF, type CheckoutInput as cG, type UpdateOrderStatusInput as cH, type CancelOrderInput as cI, type RefundOrderInput as cJ, type ServiceStatus as cK, type StaffRole as cL, type ReminderMethod as cM, type CustomerServicePreferences as cN, type BufferTimes as cO, type ReminderSettings as cP, type CancellationPolicy as cQ, type ServiceNotes as cR, type PricingOverrides as cS, type SchedulingMetadata as cT, type StaffAssignment as cU, type ResourceAssignment as cV, type SchedulingResult as cW, type DepositResult as cX, type ServiceScheduleRequest as cY, type StaffScheduleItem as cZ, type LocationAppointment as c_, type AddOnOptionDetails as ca, type AddOnGroupDetails as cb, type VariantDetailsDTO as cc, type CartItemDetails as cd, type UICart as ce, type UICartResponse as cf, type AddToCartInput as cg, type UpdateCartItemInput as ch, type CartSummary as ci, type OrderStatus as cj, type PaymentState as ck, type OrderChannel as cl, type LineType as cm, type OrderLineState as cn, type OrderLineStatus as co, type FulfillmentType as cp, type FulfillmentStatus as cq, type FulfillmentLink as cr, type OrderFulfillmentSummary as cs, type FeeBearerType as ct, type AmountToPay as cu, type LineItem as cv, type Order as cw, type OrderHistory as cx, type OrderGroupPaymentState as cy, type OrderGroup as cz, type CimplifyConfig as d, type CustomerAddress as d$, type PaymentProvider as d0, type PaymentMethodType as d1, type AuthorizationType as d2, type PaymentProcessingState as d3, type PaymentMethod as d4, type Payment as d5, type InitializePaymentResult as d6, type SubmitAuthorizationInput as d7, type BusinessType as d8, type BusinessPreferences as d9, type ResourceType as dA, type Service as dB, type ServiceWithStaff as dC, type Staff as dD, type TimeSlot as dE, type AvailableSlot as dF, type DayAvailability as dG, type BookingStatus as dH, type Booking as dI, type BookingWithDetails as dJ, type GetAvailableSlotsInput as dK, type CheckSlotAvailabilityInput as dL, type RescheduleBookingInput as dM, type CancelBookingInput as dN, type ServiceAvailabilityParams as dO, type ServiceAvailabilityResult as dP, type StockOwnershipType as dQ, type StockStatus as dR, type Stock as dS, type StockLevel as dT, type ProductStock as dU, type VariantStock as dV, type LocationStock as dW, type AvailabilityCheck as dX, type AvailabilityResult as dY, type InventorySummary as dZ, type Customer as d_, type Business as da, type LocationTaxBehavior as db, type LocationTaxOverrides as dc, type Location as dd, type TimeRange as de, type TimeRanges as df, type LocationTimeProfile as dg, type Table as dh, type Room as di, type ServiceCharge as dj, type StorefrontBootstrap as dk, type BusinessWithLocations as dl, type LocationWithDetails as dm, type BusinessSettings as dn, type BusinessHours as dp, type CategoryInfo as dq, type ServiceAvailabilityRule as dr, type ServiceAvailabilityException as ds, type StaffAvailabilityRule as dt, type StaffAvailabilityException as du, type ResourceAvailabilityRule as dv, type ResourceAvailabilityException as dw, type StaffBookingProfile as dx, type ServiceStaffRequirement as dy, type BookingRequirementOverride as dz, CatalogueQueries as e, type CustomerMobileMoney as e0, type CustomerLinkPreferences as e1, type LinkData as e2, type CreateAddressInput as e3, type UpdateAddressInput as e4, type CreateMobileMoneyInput as e5, type EnrollmentData as e6, type AddressData as e7, type MobileMoneyData as e8, type EnrollAndLinkOrderInput as e9, type PaymentMethodInfo as eA, type AuthenticatedCustomer as eB, type ElementsCustomerInfo as eC, type AuthenticatedData as eD, type ElementsCheckoutData as eE, type ElementsCheckoutResult as eF, type ParentToIframeMessage as eG, type IframeToParentMessage as eH, type ElementEventHandler as eI, type AdSlot as eJ, type AdPosition as eK, type AdTheme as eL, type AdConfig as eM, type AdCreative as eN, type AdContextValue as eO, type LinkStatusResult as ea, type LinkEnrollResult as eb, type EnrollAndLinkOrderResult as ec, type LinkSession as ed, type RevokeSessionResult as ee, type RevokeAllSessionsResult as ef, type RequestOtpInput as eg, type VerifyOtpInput as eh, type AuthResponse as ei, type PickupTimeType as ej, type PickupTime as ek, type CheckoutAddressInfo as el, type MobileMoneyDetails as em, type CheckoutCustomerInfo as en, type FxQuoteRequest as eo, type FxQuote as ep, type FxRateResponse as eq, type RequestContext as er, type RequestStartEvent as es, type RequestSuccessEvent as et, type RequestErrorEvent as eu, type RetryEvent as ev, type SessionChangeEvent as ew, type ObservabilityHooks as ex, type ElementAppearance as ey, type AddressInfo as ez, type QuoteBundleSelectionInput as f, type QuoteStatus as g, type QuoteDynamicBuckets as h, type QuoteUiMessage as i, type PriceQuote as j, type RefreshQuoteResult as k, CartOperations as l, CheckoutService as m, generateIdempotencyKey as n, type GetOrdersOptions as o, AuthService as p, type AuthStatus as q, type OtpResult as r, type ChangePasswordInput as s, SchedulingService as t, LiteService as u, FxService as v, type LiteBootstrap as w, type KitchenOrderResult as x, CimplifyElements as y, CimplifyElement as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PaymentErrorDetails, a as PaymentResponse, b as PaymentStatusResponse, A as ApiError } from './ads-CXOn6J7P.mjs';
2
- export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, eE as AdConfig, eG as AdContextValue, eF as AdCreative, eC as AdPosition, eB as AdSlot, eD as AdTheme, b0 as AddOn, bL as AddOnDetails, c5 as AddOnGroupDetails, b2 as AddOnOption, c4 as AddOnOptionDetails, b3 as AddOnOptionPrice, b1 as AddOnWithOptions, ca as AddToCartInput, e1 as AddressData, et as AddressInfo, bA as AdjustmentType, co as AmountToPay, bH as AppliedDiscount, ec as AuthResponse, p as AuthService, q as AuthStatus, ev as AuthenticatedData, cY as AuthorizationType, dR as AvailabilityCheck, dS as AvailabilityResult, dz as AvailableSlot, bG as BenefitType, dC as Booking, dt as BookingRequirementOverride, dB as BookingStatus, dD as BookingWithDetails, cI as BufferTimes, bb as Bundle, bf as BundleComponentData, bg as BundleComponentInfo, ba as BundlePriceType, bd as BundleProduct, bQ as BundleSelectionData, bO as BundleSelectionInput, bP as BundleStoredSelection, bc as BundleSummary, be as BundleWithDetails, d4 as Business, di as BusinessHours, d3 as BusinessPreferences, B as BusinessService, dh as BusinessSettings, d2 as BusinessType, df as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, dH as CancelBookingInput, cC as CancelOrderInput, cK as CancellationPolicy, bV as Cart, bM as CartAddOn, by as CartChannel, bW as CartItem, c7 as CartItemDetails, l as CartOperations, bx as CartStatus, cc as CartSummary, bX as CartTotals, e as CatalogueQueries, b5 as Category, dj as CategoryInfo, b6 as CategorySummary, s as ChangePasswordInput, dF as CheckSlotAvailabilityInput, ef as CheckoutAddressInfo, eh as CheckoutCustomerInfo, $ as CheckoutFormData, cA as CheckoutInput, X as CheckoutMode, m as CheckoutOperations, Y as CheckoutOrderType, Z as CheckoutPaymentMethod, a0 as CheckoutResult, m as CheckoutService, _ as CheckoutStep, bF as ChosenPrice, C as CimplifyClient, d as CimplifyConfig, z as CimplifyElement, y as CimplifyElements, as as CimplifyError, b7 as Collection, b9 as CollectionProduct, b8 as CollectionSummary, bm as ComponentGroup, bn as ComponentGroupWithComponents, br as ComponentPriceBreakdown, bp as ComponentSelectionInput, bj as ComponentSourceType, bk as Composite, bo as CompositeComponent, bS as CompositePriceBreakdown, bq as CompositePriceResult, bh as CompositePricingMode, bT as CompositeSelectionData, bp as CompositeSelectionInput, bR as CompositeStoredSelection, bl as CompositeWithDetails, a3 as ContactType, dZ as CreateAddressInput, d$ as CreateMobileMoneyInput, an as Currency, dU as Customer, dV as CustomerAddress, dX as CustomerLinkPreferences, dW as CustomerMobileMoney, cH as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, dA as DayAvailability, cR as DepositResult, aQ as DepositType, a2 as DeviceType, aP as DigitalProductType, bI as DiscountBreakdown, bJ as DiscountDetails, b_ as DisplayAddOn, b$ as DisplayAddOnOption, bY as DisplayCart, bZ as DisplayCartItem, H as ELEMENT_TYPES, E as EVENT_TYPES, es as ElementAppearance, eA as ElementEventHandler, W as ElementEventType, N as ElementOptions, V as ElementType, ew as ElementsCheckoutData, ex as ElementsCheckoutResult, J as ElementsOptions, e3 as EnrollAndLinkOrderInput, e6 as EnrollAndLinkOrderResult, e0 as EnrollmentData, ax as Err, aq as ErrorCode, ar as ErrorCodeType, cn as FeeBearerType, F as FetchQuoteInput, cl as FulfillmentLink, ck as FulfillmentStatus, cj as FulfillmentType, ej as FxQuote, ei as FxQuoteRequest, ek as FxRateResponse, v as FxService, dE as GetAvailableSlotsInput, o as GetOrdersOptions, G as GetProductsOptions, bi as GroupPricingBehavior, ez as IframeToParentMessage, d0 as InitializePaymentResult, I as InventoryService, dT as InventorySummary, aN as InventoryType, K as KitchenOrderItem, x as KitchenOrderResult, af as LINK_MUTATION, ae as LINK_QUERY, bU as LineConfiguration, cp as LineItem, cg as LineType, dY as LinkData, e5 as LinkEnrollResult, L as LinkService, e7 as LinkSession, e4 as LinkStatusResult, w as LiteBootstrap, u as LiteService, d7 as Location, cU as LocationAppointment, bu as LocationProductPrice, dQ as LocationStock, d5 as LocationTaxBehavior, d6 as LocationTaxOverrides, da as LocationTimeProfile, dg as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, e2 as MobileMoneyData, eg as MobileMoneyDetails, a1 as MobileMoneyProvider, am as Money, aj as ORDER_MUTATION, a5 as ORDER_TYPE, er as ObservabilityHooks, aw as Ok, cq as Order, cf as OrderChannel, cz as OrderFilter, cm as OrderFulfillmentSummary, ct as OrderGroup, cx as OrderGroupDetails, cu as OrderGroupPayment, cs as OrderGroupPaymentState, cw as OrderGroupPaymentSummary, cr as OrderHistory, ch as OrderLineState, ci as OrderLineStatus, cy as OrderPaymentEvent, O as OrderQueries, cv as OrderSplitDetail, cd as OrderStatus, r as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, ap as Pagination, ao as PaginationParams, ey as ParentToIframeMessage, c$ as Payment, c_ as PaymentMethod, eu as PaymentMethodInfo, cX as PaymentMethodType, cZ as PaymentProcessingState, cW as PaymentProvider, ce as PaymentState, cV as PaymentStatus, ee as PickupTime, ed as PickupTimeType, bt as Price, bB as PriceAdjustment, bE as PriceDecisionPath, bs as PriceEntryType, bD as PricePathTaxInfo, j as PriceQuote, bz as PriceSource, cM as PricingOverrides, aS as Product, b4 as ProductAddOn, bv as ProductAvailability, dO as ProductStock, bw as ProductTimeProfile, aM as ProductType, aU as ProductVariant, aZ as ProductVariantValue, aT as ProductWithDetails, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, h as QuoteDynamicBuckets, g as QuoteStatus, i as QuoteUiMessage, R as RefreshQuoteInput, k as RefreshQuoteResult, cD as RefundOrderInput, cG as ReminderMethod, cJ as ReminderSettings, el as RequestContext, eo as RequestErrorEvent, ea as RequestOtpInput, em as RequestStartEvent, en as RequestSuccessEvent, dG as RescheduleBookingInput, cP as ResourceAssignment, dq as ResourceAvailabilityException, dp as ResourceAvailabilityRule, du as ResourceType, av as Result, ep as RetryEvent, e9 as RevokeAllSessionsResult, e8 as RevokeSessionResult, dc as Room, aR as SalesChannel, cN as SchedulingMetadata, cQ as SchedulingResult, t as SchedulingService, S as SearchOptions, bK as SelectedAddOnOption, dv as Service, dl as ServiceAvailabilityException, dI as ServiceAvailabilityParams, dJ as ServiceAvailabilityResult, dk as ServiceAvailabilityRule, dd as ServiceCharge, cL as ServiceNotes, cS as ServiceScheduleRequest, ds as ServiceStaffRequirement, cE as ServiceStatus, dw as ServiceWithStaff, eq as SessionChangeEvent, dx as Staff, cO as StaffAssignment, dn as StaffAvailabilityException, dm as StaffAvailabilityRule, dr as StaffBookingProfile, cF as StaffRole, cT as StaffScheduleItem, dM as Stock, dN as StockLevel, dK as StockOwnershipType, dL as StockStatus, de as StorefrontBootstrap, d1 as SubmitAuthorizationInput, db as Table, T as TableInfo, bC as TaxPathComponent, d8 as TimeRange, d9 as TimeRanges, dy as TimeSlot, c8 as UICart, c0 as UICartBusiness, c2 as UICartCustomer, c1 as UICartLocation, c3 as UICartPricing, c9 as UICartResponse, d_ as UpdateAddressInput, cb as UpdateCartItemInput, cB as UpdateOrderStatusInput, U as UpdateProfileInput, aW as VariantAxis, a$ as VariantAxisSelection, aY as VariantAxisValue, aX as VariantAxisWithValues, bN as VariantDetails, c6 as VariantDetailsDTO, aV as VariantDisplayAttribute, a_ as VariantLocationAvailability, dP as VariantStock, aO as VariantStrategy, eb as VerifyOtpInput, aK as combine, aL as combineObject, c as createCimplifyClient, D as createElements, az as err, aE as flatMap, aI as fromPromise, n as generateIdempotencyKey, aF as getOrElse, at as isCimplifyError, aB as isErr, aA as isOk, au as isRetryableError, aD as mapError, aC as mapResult, ay as ok, aH as toNullable, aJ as tryCatch, aG as unwrap } from './ads-CXOn6J7P.mjs';
1
+ import { P as PaymentErrorDetails, a as PaymentResponse, b as PaymentStatusResponse, A as ApiError } from './ads-Cz14AMnc.mjs';
2
+ export { ah as AUTHORIZATION_TYPE, am as AUTH_MUTATION, a6 as AbortablePromise, eM as AdConfig, eO as AdContextValue, eN as AdCreative, eK as AdPosition, eJ as AdSlot, eL as AdTheme, b6 as AddOn, bR as AddOnDetails, cb as AddOnGroupDetails, b8 as AddOnOption, ca as AddOnOptionDetails, b9 as AddOnOptionPrice, b7 as AddOnWithOptions, cg as AddToCartInput, e7 as AddressData, ez as AddressInfo, bG as AdjustmentType, cu as AmountToPay, bN as AppliedDiscount, ei as AuthResponse, p as AuthService, q as AuthStatus, eB as AuthenticatedCustomer, eD as AuthenticatedData, d2 as AuthorizationType, dX as AvailabilityCheck, dY as AvailabilityResult, dF as AvailableSlot, bM as BenefitType, dI as Booking, dz as BookingRequirementOverride, dH as BookingStatus, dJ as BookingWithDetails, cO as BufferTimes, bh as Bundle, bl as BundleComponentData, bm as BundleComponentInfo, bg as BundlePriceType, bj as BundleProduct, bW as BundleSelectionData, bU as BundleSelectionInput, bV as BundleStoredSelection, bi as BundleSummary, bk as BundleWithDetails, da as Business, dp as BusinessHours, d9 as BusinessPreferences, B as BusinessService, dn as BusinessSettings, d8 as BusinessType, dl as BusinessWithLocations, aa as CHECKOUT_MODE, an as CHECKOUT_MUTATION, ad as CHECKOUT_STEP, aj as CONTACT_TYPE, dN as CancelBookingInput, cI as CancelOrderInput, cQ as CancellationPolicy, b$ as Cart, bS as CartAddOn, bE as CartChannel, c0 as CartItem, cd as CartItemDetails, l as CartOperations, bD as CartStatus, ci as CartSummary, c1 as CartTotals, e as CatalogueQueries, bb as Category, dq as CategoryInfo, bc as CategorySummary, s as ChangePasswordInput, dL as CheckSlotAvailabilityInput, el as CheckoutAddressInfo, en as CheckoutCustomerInfo, $ as CheckoutFormData, cG as CheckoutInput, X as CheckoutMode, m as CheckoutOperations, Y as CheckoutOrderType, Z as CheckoutPaymentMethod, a0 as CheckoutResult, m as CheckoutService, a4 as CheckoutStatus, a5 as CheckoutStatusContext, _ as CheckoutStep, bL as ChosenPrice, C as CimplifyClient, d as CimplifyConfig, z as CimplifyElement, y as CimplifyElements, ay as CimplifyError, bd as Collection, bf as CollectionProduct, be as CollectionSummary, bs as ComponentGroup, bt as ComponentGroupWithComponents, bx as ComponentPriceBreakdown, bv as ComponentSelectionInput, bp as ComponentSourceType, bq as Composite, bu as CompositeComponent, bY as CompositePriceBreakdown, bw as CompositePriceResult, bn as CompositePricingMode, bZ as CompositeSelectionData, bv as CompositeSelectionInput, bX as CompositeStoredSelection, br as CompositeWithDetails, a9 as ContactType, e3 as CreateAddressInput, e5 as CreateMobileMoneyInput, at as Currency, d_ as Customer, d$ as CustomerAddress, e1 as CustomerLinkPreferences, e0 as CustomerMobileMoney, cN as CustomerServicePreferences, ar as DEFAULT_COUNTRY, aq as DEFAULT_CURRENCY, ai as DEVICE_TYPE, dG as DayAvailability, cX as DepositResult, aW as DepositType, a8 as DeviceType, aV as DigitalProductType, bO as DiscountBreakdown, bP as DiscountDetails, c4 as DisplayAddOn, c5 as DisplayAddOnOption, c2 as DisplayCart, c3 as DisplayCartItem, H as ELEMENT_TYPES, E as EVENT_TYPES, ey as ElementAppearance, eI as ElementEventHandler, W as ElementEventType, N as ElementOptions, V as ElementType, eE as ElementsCheckoutData, eF as ElementsCheckoutResult, eC as ElementsCustomerInfo, J as ElementsOptions, e9 as EnrollAndLinkOrderInput, ec as EnrollAndLinkOrderResult, e6 as EnrollmentData, aD as Err, aw as ErrorCode, ax as ErrorCodeType, ct as FeeBearerType, F as FetchQuoteInput, cr as FulfillmentLink, cq as FulfillmentStatus, cp as FulfillmentType, ep as FxQuote, eo as FxQuoteRequest, eq as FxRateResponse, v as FxService, dK as GetAvailableSlotsInput, o as GetOrdersOptions, G as GetProductsOptions, bo as GroupPricingBehavior, eH as IframeToParentMessage, d6 as InitializePaymentResult, I as InventoryService, dZ as InventorySummary, aT as InventoryType, K as KitchenOrderItem, x as KitchenOrderResult, al as LINK_MUTATION, ak as LINK_QUERY, b_ as LineConfiguration, cv as LineItem, cm as LineType, e2 as LinkData, eb as LinkEnrollResult, L as LinkService, ed as LinkSession, ea as LinkStatusResult, w as LiteBootstrap, u as LiteService, dd as Location, c_ as LocationAppointment, bA as LocationProductPrice, dW as LocationStock, db as LocationTaxBehavior, dc as LocationTaxOverrides, dg as LocationTimeProfile, dm as LocationWithDetails, M as MESSAGE_TYPES, ag as MOBILE_MONEY_PROVIDER, e8 as MobileMoneyData, em as MobileMoneyDetails, a7 as MobileMoneyProvider, as as Money, ap as ORDER_MUTATION, ab as ORDER_TYPE, ex as ObservabilityHooks, aC as Ok, cw as Order, cl as OrderChannel, cF as OrderFilter, cs as OrderFulfillmentSummary, cz as OrderGroup, cD as OrderGroupDetails, cA as OrderGroupPayment, cy as OrderGroupPaymentState, cC as OrderGroupPaymentSummary, cx as OrderHistory, cn as OrderLineState, co as OrderLineStatus, cE as OrderPaymentEvent, O as OrderQueries, cB as OrderSplitDetail, cj as OrderStatus, r as OtpResult, ac as PAYMENT_METHOD, ao as PAYMENT_MUTATION, ae as PAYMENT_STATE, af as PICKUP_TIME_TYPE, av as Pagination, au as PaginationParams, eG as ParentToIframeMessage, d5 as Payment, d4 as PaymentMethod, eA as PaymentMethodInfo, d1 as PaymentMethodType, d3 as PaymentProcessingState, d0 as PaymentProvider, ck as PaymentState, c$ as PaymentStatus, ek as PickupTime, ej as PickupTimeType, bz as Price, bH as PriceAdjustment, bK as PriceDecisionPath, by as PriceEntryType, bJ as PricePathTaxInfo, j as PriceQuote, bF as PriceSource, cS as PricingOverrides, a3 as ProcessAndResolveOptions, a1 as ProcessCheckoutOptions, a2 as ProcessCheckoutResult, aY as Product, ba as ProductAddOn, bB as ProductAvailability, dU as ProductStock, bC as ProductTimeProfile, aS as ProductType, a_ as ProductVariant, b3 as ProductVariantValue, aZ as ProductWithDetails, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, h as QuoteDynamicBuckets, g as QuoteStatus, i as QuoteUiMessage, R as RefreshQuoteInput, k as RefreshQuoteResult, cJ as RefundOrderInput, cM as ReminderMethod, cP as ReminderSettings, er as RequestContext, eu as RequestErrorEvent, eg as RequestOtpInput, es as RequestStartEvent, et as RequestSuccessEvent, dM as RescheduleBookingInput, cV as ResourceAssignment, dw as ResourceAvailabilityException, dv as ResourceAvailabilityRule, dA as ResourceType, aB as Result, ev as RetryEvent, ef as RevokeAllSessionsResult, ee as RevokeSessionResult, di as Room, aX as SalesChannel, cT as SchedulingMetadata, cW as SchedulingResult, t as SchedulingService, S as SearchOptions, bQ as SelectedAddOnOption, dB as Service, ds as ServiceAvailabilityException, dO as ServiceAvailabilityParams, dP as ServiceAvailabilityResult, dr as ServiceAvailabilityRule, dj as ServiceCharge, cR as ServiceNotes, cY as ServiceScheduleRequest, dy as ServiceStaffRequirement, cK as ServiceStatus, dC as ServiceWithStaff, ew as SessionChangeEvent, dD as Staff, cU as StaffAssignment, du as StaffAvailabilityException, dt as StaffAvailabilityRule, dx as StaffBookingProfile, cL as StaffRole, cZ as StaffScheduleItem, dS as Stock, dT as StockLevel, dQ as StockOwnershipType, dR as StockStatus, dk as StorefrontBootstrap, d7 as SubmitAuthorizationInput, dh as Table, T as TableInfo, bI as TaxPathComponent, de as TimeRange, df as TimeRanges, dE as TimeSlot, ce as UICart, c6 as UICartBusiness, c8 as UICartCustomer, c7 as UICartLocation, c9 as UICartPricing, cf as UICartResponse, e4 as UpdateAddressInput, ch as UpdateCartItemInput, cH as UpdateOrderStatusInput, U as UpdateProfileInput, b0 as VariantAxis, b5 as VariantAxisSelection, b2 as VariantAxisValue, b1 as VariantAxisWithValues, bT as VariantDetails, cc as VariantDetailsDTO, a$ as VariantDisplayAttribute, b4 as VariantLocationAvailability, dV as VariantStock, aU as VariantStrategy, eh as VerifyOtpInput, aQ as combine, aR as combineObject, c as createCimplifyClient, D as createElements, aF as err, aK as flatMap, aO as fromPromise, n as generateIdempotencyKey, aL as getOrElse, az as isCimplifyError, aH as isErr, aG as isOk, aA as isRetryableError, aJ as mapError, aI as mapResult, aE as ok, aN as toNullable, aP as tryCatch, aM as unwrap } from './ads-Cz14AMnc.mjs';
3
3
 
4
4
  type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
5
5
  type SortOrder = "asc" | "desc";