@cimplify/sdk 0.6.5 → 0.6.7

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.
@@ -1,3 +1,5 @@
1
+ import { M as Money, e as CimplifyError, m as AuthorizationType, o as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, r as PaymentStatusResponse } from './payment-pjpfIKX8.mjs';
2
+
1
3
  /**
2
4
  * Observability hooks for monitoring SDK behavior.
3
5
  *
@@ -90,99 +92,6 @@ interface ObservabilityHooks {
90
92
  onSessionChange?: (event: SessionChangeEvent) => void;
91
93
  }
92
94
 
93
- /** Decimal value represented as string for precision */
94
- type Money = string;
95
- /** Supported currencies */
96
- type Currency = "GHS" | "USD" | "NGN" | "KES" | "ZAR" | string;
97
- /** Pagination parameters */
98
- interface PaginationParams {
99
- page?: number;
100
- limit?: number;
101
- offset?: number;
102
- }
103
- /** Pagination metadata in response */
104
- interface Pagination {
105
- total_count: number;
106
- current_page: number;
107
- page_size: number;
108
- total_pages: number;
109
- }
110
- /** Strongly-typed error codes for better DX */
111
- declare const ErrorCode: {
112
- readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
113
- readonly NETWORK_ERROR: "NETWORK_ERROR";
114
- readonly TIMEOUT: "TIMEOUT";
115
- readonly UNAUTHORIZED: "UNAUTHORIZED";
116
- readonly FORBIDDEN: "FORBIDDEN";
117
- readonly NOT_FOUND: "NOT_FOUND";
118
- readonly VALIDATION_ERROR: "VALIDATION_ERROR";
119
- readonly CART_EMPTY: "CART_EMPTY";
120
- readonly CART_EXPIRED: "CART_EXPIRED";
121
- readonly CART_NOT_FOUND: "CART_NOT_FOUND";
122
- readonly ITEM_UNAVAILABLE: "ITEM_UNAVAILABLE";
123
- readonly VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
124
- readonly VARIANT_OUT_OF_STOCK: "VARIANT_OUT_OF_STOCK";
125
- readonly ADDON_REQUIRED: "ADDON_REQUIRED";
126
- readonly ADDON_MAX_EXCEEDED: "ADDON_MAX_EXCEEDED";
127
- readonly CHECKOUT_VALIDATION_FAILED: "CHECKOUT_VALIDATION_FAILED";
128
- readonly DELIVERY_ADDRESS_REQUIRED: "DELIVERY_ADDRESS_REQUIRED";
129
- readonly CUSTOMER_INFO_REQUIRED: "CUSTOMER_INFO_REQUIRED";
130
- readonly PAYMENT_FAILED: "PAYMENT_FAILED";
131
- readonly PAYMENT_CANCELLED: "PAYMENT_CANCELLED";
132
- readonly INSUFFICIENT_FUNDS: "INSUFFICIENT_FUNDS";
133
- readonly CARD_DECLINED: "CARD_DECLINED";
134
- readonly INVALID_OTP: "INVALID_OTP";
135
- readonly OTP_EXPIRED: "OTP_EXPIRED";
136
- readonly AUTHORIZATION_FAILED: "AUTHORIZATION_FAILED";
137
- readonly PAYMENT_ACTION_NOT_COMPLETED: "PAYMENT_ACTION_NOT_COMPLETED";
138
- readonly SLOT_UNAVAILABLE: "SLOT_UNAVAILABLE";
139
- readonly BOOKING_CONFLICT: "BOOKING_CONFLICT";
140
- readonly SERVICE_NOT_FOUND: "SERVICE_NOT_FOUND";
141
- readonly OUT_OF_STOCK: "OUT_OF_STOCK";
142
- readonly INSUFFICIENT_QUANTITY: "INSUFFICIENT_QUANTITY";
143
- };
144
- type ErrorCodeType = (typeof ErrorCode)[keyof typeof ErrorCode];
145
- /** API error structure */
146
- interface ApiError {
147
- code: string;
148
- message: string;
149
- retryable: boolean;
150
- }
151
- /**
152
- * Custom error class for SDK errors with typed error codes.
153
- *
154
- * @example
155
- * ```typescript
156
- * try {
157
- * await client.cart.addItem({ item_id: "prod_123" });
158
- * } catch (error) {
159
- * if (isCimplifyError(error)) {
160
- * switch (error.code) {
161
- * case ErrorCode.ITEM_UNAVAILABLE:
162
- * toast.error("This item is no longer available");
163
- * break;
164
- * case ErrorCode.VARIANT_OUT_OF_STOCK:
165
- * toast.error("Selected option is out of stock");
166
- * break;
167
- * default:
168
- * toast.error(error.message);
169
- * }
170
- * }
171
- * }
172
- * ```
173
- */
174
- declare class CimplifyError extends Error {
175
- code: string;
176
- retryable: boolean;
177
- constructor(code: string, message: string, retryable?: boolean);
178
- /** User-friendly message safe to display */
179
- get userMessage(): string;
180
- }
181
- /** Type guard for CimplifyError */
182
- declare function isCimplifyError(error: unknown): error is CimplifyError;
183
- /** Check if error is retryable */
184
- declare function isRetryableError(error: unknown): boolean;
185
-
186
95
  type ProductType = "product" | "service" | "digital" | "bundle" | "composite";
187
96
  type InventoryType = "one_to_one" | "composition" | "none";
188
97
  type VariantStrategy = "fetch_all" | "use_axes";
@@ -1775,82 +1684,6 @@ interface LocationAppointment {
1775
1684
  service_status: ServiceStatus;
1776
1685
  }
1777
1686
 
1778
- type PaymentStatus = "pending" | "processing" | "created" | "pending_confirmation" | "success" | "succeeded" | "failed" | "declined" | "authorized" | "refunded" | "partially_refunded" | "partially_paid" | "paid" | "unpaid" | "requires_action" | "requires_payment_method" | "requires_capture" | "captured" | "cancelled" | "completed" | "voided" | "error" | "unknown";
1779
- type PaymentProvider = "stripe" | "paystack" | "mtn" | "vodafone" | "airtel" | "cellulant" | "offline" | "cash" | "manual";
1780
- type PaymentMethodType = "card" | "mobile_money" | "bank_transfer" | "cash" | "custom";
1781
- /** Authorization types for payment verification (OTP, PIN, etc.) */
1782
- type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | "address";
1783
- /** Payment processing state machine states (for UI) */
1784
- type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
1785
- interface PaymentMethod {
1786
- type: PaymentMethodType;
1787
- provider?: string;
1788
- phone_number?: string;
1789
- card_last_four?: string;
1790
- custom_value?: string;
1791
- }
1792
- interface Payment {
1793
- id: string;
1794
- order_id: string;
1795
- business_id: string;
1796
- amount: Money;
1797
- currency: Currency;
1798
- payment_method: PaymentMethod;
1799
- status: PaymentStatus;
1800
- provider: PaymentProvider;
1801
- provider_reference?: string;
1802
- failure_reason?: string;
1803
- created_at: string;
1804
- updated_at: string;
1805
- }
1806
- interface InitializePaymentResult {
1807
- payment_id: string;
1808
- status: PaymentStatus;
1809
- redirect_url?: string;
1810
- authorization_url?: string;
1811
- reference: string;
1812
- provider: PaymentProvider;
1813
- }
1814
- /** Normalized payment response from checkout or payment initialization */
1815
- interface PaymentResponse {
1816
- method: string;
1817
- provider: string;
1818
- requires_action: boolean;
1819
- public_key?: string;
1820
- client_secret?: string;
1821
- access_code?: string;
1822
- redirect_url?: string;
1823
- transaction_id?: string;
1824
- order_id?: string;
1825
- reference?: string;
1826
- metadata?: Record<string, unknown>;
1827
- instructions?: string;
1828
- display_text?: string;
1829
- requires_authorization?: boolean;
1830
- authorization_type?: AuthorizationType;
1831
- provider_payment_id?: string;
1832
- }
1833
- /** Payment status polling response */
1834
- interface PaymentStatusResponse {
1835
- status: PaymentStatus;
1836
- paid: boolean;
1837
- amount?: Money;
1838
- currency?: string;
1839
- reference?: string;
1840
- message?: string;
1841
- }
1842
- interface PaymentErrorDetails {
1843
- code: string;
1844
- message: string;
1845
- recoverable: boolean;
1846
- technical?: string;
1847
- }
1848
- interface SubmitAuthorizationInput {
1849
- reference: string;
1850
- auth_type: AuthorizationType;
1851
- value: string;
1852
- }
1853
-
1854
1687
  declare const CHECKOUT_MODE: {
1855
1688
  readonly LINK: "link";
1856
1689
  readonly GUEST: "guest";
@@ -2230,6 +2063,8 @@ interface ProcessCheckoutResult {
2230
2063
  code: string;
2231
2064
  message: string;
2232
2065
  recoverable: boolean;
2066
+ docs_url?: string;
2067
+ suggestion?: string;
2233
2068
  };
2234
2069
  enrolled_in_link?: boolean;
2235
2070
  }
@@ -3284,8 +3119,10 @@ declare class CimplifyElements {
3284
3119
  private paymentData;
3285
3120
  private checkoutInProgress;
3286
3121
  private activeCheckoutAbort;
3122
+ private hasWarnedMissingAuthElement;
3287
3123
  private boundHandleMessage;
3288
- constructor(client: CimplifyClient, businessId: string, options?: ElementsOptions);
3124
+ private businessIdResolvePromise;
3125
+ constructor(client: CimplifyClient, businessId?: string, options?: ElementsOptions);
3289
3126
  create(type: ElementType, options?: ElementOptions): CimplifyElement;
3290
3127
  getElement(type: ElementType): CimplifyElement | undefined;
3291
3128
  destroy(): void;
@@ -3294,6 +3131,8 @@ declare class CimplifyElements {
3294
3131
  isAuthenticated(): boolean;
3295
3132
  getAccessToken(): string | null;
3296
3133
  getPublicKey(): string;
3134
+ getBusinessId(): string | null;
3135
+ resolveBusinessId(): Promise<string | null>;
3297
3136
  getAppearance(): ElementsOptions["appearance"];
3298
3137
  private hydrateCustomerData;
3299
3138
  private handleMessage;
@@ -3312,7 +3151,7 @@ declare class CimplifyElement {
3312
3151
  private eventHandlers;
3313
3152
  private resolvers;
3314
3153
  private boundHandleMessage;
3315
- constructor(type: ElementType, businessId: string, linkUrl: string, options: ElementOptions, parent: CimplifyElements);
3154
+ constructor(type: ElementType, businessId: string | null, linkUrl: string, options: ElementOptions, parent: CimplifyElements);
3316
3155
  mount(container: string | HTMLElement): void;
3317
3156
  destroy(): void;
3318
3157
  on(event: ElementEventType, handler: ElementEventHandler): void;
@@ -3326,7 +3165,7 @@ declare class CimplifyElement {
3326
3165
  private emit;
3327
3166
  private resolveData;
3328
3167
  }
3329
- declare function createElements(client: CimplifyClient, businessId: string, options?: ElementsOptions): CimplifyElements;
3168
+ declare function createElements(client: CimplifyClient, businessId?: string, options?: ElementsOptions): CimplifyElements;
3330
3169
 
3331
3170
  interface CimplifyConfig {
3332
3171
  publicKey?: string;
@@ -3351,6 +3190,8 @@ declare class CimplifyClient {
3351
3190
  private retryDelay;
3352
3191
  private hooks;
3353
3192
  private context;
3193
+ private businessId;
3194
+ private businessIdResolvePromise;
3354
3195
  private inflightRequests;
3355
3196
  private _catalogue?;
3356
3197
  private _cart?;
@@ -3370,12 +3211,22 @@ declare class CimplifyClient {
3370
3211
  setSessionToken(token: string | null): void;
3371
3212
  getAccessToken(): string | null;
3372
3213
  getPublicKey(): string;
3214
+ isTestMode(): boolean;
3373
3215
  setAccessToken(token: string | null): void;
3374
3216
  clearSession(): void;
3375
3217
  /** Set the active location/branch for all subsequent requests */
3376
3218
  setLocationId(locationId: string | null): void;
3377
3219
  /** Get the currently active location ID */
3378
3220
  getLocationId(): string | null;
3221
+ /** Cache a resolved business ID for future element/checkouts initialization. */
3222
+ setBusinessId(businessId: string): void;
3223
+ /** Get cached business ID if available. */
3224
+ getBusinessId(): string | null;
3225
+ /**
3226
+ * Resolve business ID from public key once and cache it.
3227
+ * Subsequent calls return the cached value (or shared in-flight promise).
3228
+ */
3229
+ resolveBusinessId(): Promise<string>;
3379
3230
  private loadAccessToken;
3380
3231
  private saveAccessToken;
3381
3232
  private getHeaders;
@@ -3417,27 +3268,8 @@ declare class CimplifyClient {
3417
3268
  * authElement.mount('#auth-container');
3418
3269
  * ```
3419
3270
  */
3420
- elements(businessId: string, options?: ElementsOptions): CimplifyElements;
3271
+ elements(businessId?: string, options?: ElementsOptions): CimplifyElements;
3421
3272
  }
3422
3273
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
3423
3274
 
3424
- type AdSlot = "banner" | "sidebar" | "in-content" | "native" | "footer";
3425
- type AdPosition = "static" | "sticky" | "fixed";
3426
- type AdTheme = "light" | "dark" | "auto";
3427
- interface AdConfig {
3428
- enabled: boolean;
3429
- theme: AdTheme;
3430
- excludePaths?: string[];
3431
- }
3432
- interface AdCreative {
3433
- id: string;
3434
- html: string;
3435
- clickUrl: string;
3436
- }
3437
- interface AdContextValue {
3438
- siteId: string | null;
3439
- config: AdConfig | null;
3440
- isLoading: boolean;
3441
- }
3442
-
3443
- 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 };
3275
+ export { type ProcessAndResolveOptions as $, AuthService as A, BusinessService as B, CimplifyClient as C, type ElementType as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, type ElementEventType as H, InventoryService as I, type CheckoutMode as J, type KitchenOrderItem as K, LinkService as L, MESSAGE_TYPES as M, type CheckoutOrderType as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, type SearchOptions as S, type TableInfo as T, type UpdateProfileInput as U, type CheckoutPaymentMethod as V, type CheckoutStep as W, type CheckoutFormData as X, type CheckoutResult as Y, type ProcessCheckoutOptions as Z, type ProcessCheckoutResult as _, type CimplifyConfig as a, type CategorySummary as a$, type CheckoutStatus as a0, type CheckoutStatusContext as a1, type AbortablePromise as a2, type MobileMoneyProvider as a3, type DeviceType as a4, type ContactType as a5, CHECKOUT_MODE as a6, ORDER_TYPE as a7, PAYMENT_METHOD as a8, CHECKOUT_STEP as a9, toNullable as aA, fromPromise as aB, tryCatch as aC, combine as aD, combineObject as aE, type ProductType as aF, type InventoryType as aG, type VariantStrategy as aH, type DigitalProductType as aI, type DepositType as aJ, type SalesChannel as aK, type Product as aL, type ProductWithDetails as aM, type ProductVariant as aN, type VariantDisplayAttribute as aO, type VariantAxis as aP, type VariantAxisWithValues as aQ, type VariantAxisValue as aR, type ProductVariantValue as aS, type VariantLocationAvailability as aT, type VariantAxisSelection as aU, type AddOn as aV, type AddOnWithOptions as aW, type AddOnOption as aX, type AddOnOptionPrice as aY, type ProductAddOn as aZ, type Category as a_, PAYMENT_STATE as aa, PICKUP_TIME_TYPE as ab, MOBILE_MONEY_PROVIDER as ac, AUTHORIZATION_TYPE as ad, DEVICE_TYPE as ae, CONTACT_TYPE as af, LINK_QUERY as ag, LINK_MUTATION as ah, AUTH_MUTATION as ai, CHECKOUT_MUTATION as aj, PAYMENT_MUTATION as ak, ORDER_MUTATION as al, DEFAULT_CURRENCY as am, DEFAULT_COUNTRY as an, type Result as ao, type Ok as ap, type Err as aq, ok as ar, err as as, isOk as at, isErr as au, mapResult as av, mapError as aw, flatMap as ax, getOrElse as ay, unwrap as az, CatalogueQueries as b, type VariantDetailsDTO as b$, type Collection as b0, type CollectionSummary as b1, type CollectionProduct as b2, type BundlePriceType as b3, type Bundle as b4, type BundleSummary as b5, type BundleProduct as b6, type BundleWithDetails as b7, type BundleComponentData as b8, type BundleComponentInfo as b9, type AppliedDiscount as bA, type DiscountBreakdown as bB, type DiscountDetails as bC, type SelectedAddOnOption as bD, type AddOnDetails as bE, type CartAddOn as bF, type VariantDetails as bG, type BundleSelectionInput as bH, type BundleStoredSelection as bI, type BundleSelectionData as bJ, type CompositeStoredSelection as bK, type CompositePriceBreakdown as bL, type CompositeSelectionData as bM, type LineConfiguration as bN, type Cart as bO, type CartItem as bP, type CartTotals as bQ, type DisplayCart as bR, type DisplayCartItem as bS, type DisplayAddOn as bT, type DisplayAddOnOption as bU, type UICartBusiness as bV, type UICartLocation as bW, type UICartCustomer as bX, type UICartPricing as bY, type AddOnOptionDetails as bZ, type AddOnGroupDetails as b_, type CompositePricingMode as ba, type GroupPricingBehavior as bb, type ComponentSourceType as bc, type Composite as bd, type CompositeWithDetails as be, type ComponentGroup as bf, type ComponentGroupWithComponents as bg, type CompositeComponent as bh, type ComponentSelectionInput as bi, type CompositePriceResult as bj, type ComponentPriceBreakdown as bk, type PriceEntryType as bl, type Price as bm, type LocationProductPrice as bn, type ProductAvailability as bo, type ProductTimeProfile as bp, type CartStatus as bq, type CartChannel as br, type PriceSource as bs, type AdjustmentType as bt, type PriceAdjustment as bu, type TaxPathComponent as bv, type PricePathTaxInfo as bw, type PriceDecisionPath as bx, type ChosenPrice as by, type BenefitType as bz, createCimplifyClient as c, type BusinessWithLocations as c$, type CartItemDetails as c0, type UICart as c1, type UICartResponse as c2, type AddToCartInput as c3, type UpdateCartItemInput as c4, type CartSummary as c5, type OrderStatus as c6, type PaymentState as c7, type OrderChannel as c8, type LineType as c9, type CustomerServicePreferences as cA, type BufferTimes as cB, type ReminderSettings as cC, type CancellationPolicy as cD, type ServiceNotes as cE, type PricingOverrides as cF, type SchedulingMetadata as cG, type StaffAssignment as cH, type ResourceAssignment as cI, type SchedulingResult as cJ, type DepositResult as cK, type ServiceScheduleRequest as cL, type StaffScheduleItem as cM, type LocationAppointment as cN, type BusinessType as cO, type BusinessPreferences as cP, type Business as cQ, type LocationTaxBehavior as cR, type LocationTaxOverrides as cS, type Location as cT, type TimeRange as cU, type TimeRanges as cV, type LocationTimeProfile as cW, type Table as cX, type Room as cY, type ServiceCharge as cZ, type StorefrontBootstrap as c_, type OrderLineState as ca, type OrderLineStatus as cb, type FulfillmentType as cc, type FulfillmentStatus as cd, type FulfillmentLink as ce, type OrderFulfillmentSummary as cf, type FeeBearerType as cg, type AmountToPay as ch, type LineItem as ci, type Order as cj, type OrderHistory as ck, type OrderGroupPaymentState as cl, type OrderGroup as cm, type OrderGroupPayment as cn, type OrderSplitDetail as co, type OrderGroupPaymentSummary as cp, type OrderGroupDetails as cq, type OrderPaymentEvent as cr, type OrderFilter as cs, type CheckoutInput as ct, type UpdateOrderStatusInput as cu, type CancelOrderInput as cv, type RefundOrderInput as cw, type ServiceStatus as cx, type StaffRole as cy, type ReminderMethod as cz, type QuoteBundleSelectionInput as d, type CheckoutAddressInfo as d$, type LocationWithDetails as d0, type BusinessSettings as d1, type BusinessHours as d2, type CategoryInfo as d3, type ServiceAvailabilityRule as d4, type ServiceAvailabilityException as d5, type StaffAvailabilityRule as d6, type StaffAvailabilityException as d7, type ResourceAvailabilityRule as d8, type ResourceAvailabilityException as d9, type LocationStock as dA, type AvailabilityCheck as dB, type AvailabilityResult as dC, type InventorySummary as dD, type Customer as dE, type CustomerAddress as dF, type CustomerMobileMoney as dG, type CustomerLinkPreferences as dH, type LinkData as dI, type CreateAddressInput as dJ, type UpdateAddressInput as dK, type CreateMobileMoneyInput as dL, type EnrollmentData as dM, type AddressData as dN, type MobileMoneyData as dO, type EnrollAndLinkOrderInput as dP, type LinkStatusResult as dQ, type LinkEnrollResult as dR, type EnrollAndLinkOrderResult as dS, type LinkSession as dT, type RevokeSessionResult as dU, type RevokeAllSessionsResult as dV, type RequestOtpInput as dW, type VerifyOtpInput as dX, type AuthResponse as dY, type PickupTimeType as dZ, type PickupTime as d_, type StaffBookingProfile as da, type ServiceStaffRequirement as db, type BookingRequirementOverride as dc, type ResourceType as dd, type Service as de, type ServiceWithStaff as df, type Staff as dg, type TimeSlot as dh, type AvailableSlot as di, type DayAvailability as dj, type BookingStatus as dk, type Booking as dl, type BookingWithDetails as dm, type GetAvailableSlotsInput as dn, type CheckSlotAvailabilityInput as dp, type RescheduleBookingInput as dq, type CancelBookingInput as dr, type ServiceAvailabilityParams as ds, type ServiceAvailabilityResult as dt, type StockOwnershipType as du, type StockStatus as dv, type Stock as dw, type StockLevel as dx, type ProductStock as dy, type VariantStock as dz, type QuoteStatus as e, type MobileMoneyDetails as e0, type CheckoutCustomerInfo as e1, type FxQuoteRequest as e2, type FxQuote as e3, type FxRateResponse as e4, type RequestContext as e5, type RequestStartEvent as e6, type RequestSuccessEvent as e7, type RequestErrorEvent as e8, type RetryEvent as e9, type SessionChangeEvent as ea, type ObservabilityHooks as eb, type ElementAppearance as ec, type AddressInfo as ed, type PaymentMethodInfo as ee, type AuthenticatedCustomer as ef, type ElementsCustomerInfo as eg, type AuthenticatedData as eh, type ElementsCheckoutData as ei, type ElementsCheckoutResult as ej, type ParentToIframeMessage as ek, type IframeToParentMessage as el, type ElementEventHandler as em, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RefreshQuoteResult as h, CartOperations as i, CheckoutService as j, generateIdempotencyKey as k, type GetOrdersOptions as l, type AuthStatus as m, type OtpResult as n, type ChangePasswordInput as o, SchedulingService as p, LiteService as q, FxService as r, type LiteBootstrap as s, type KitchenOrderResult as t, CimplifyElements as u, CimplifyElement as v, createElements as w, ELEMENT_TYPES as x, type ElementsOptions as y, type ElementOptions as z };
@@ -1,3 +1,5 @@
1
+ import { M as Money, e as CimplifyError, m as AuthorizationType, o as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, r as PaymentStatusResponse } from './payment-pjpfIKX8.js';
2
+
1
3
  /**
2
4
  * Observability hooks for monitoring SDK behavior.
3
5
  *
@@ -90,99 +92,6 @@ interface ObservabilityHooks {
90
92
  onSessionChange?: (event: SessionChangeEvent) => void;
91
93
  }
92
94
 
93
- /** Decimal value represented as string for precision */
94
- type Money = string;
95
- /** Supported currencies */
96
- type Currency = "GHS" | "USD" | "NGN" | "KES" | "ZAR" | string;
97
- /** Pagination parameters */
98
- interface PaginationParams {
99
- page?: number;
100
- limit?: number;
101
- offset?: number;
102
- }
103
- /** Pagination metadata in response */
104
- interface Pagination {
105
- total_count: number;
106
- current_page: number;
107
- page_size: number;
108
- total_pages: number;
109
- }
110
- /** Strongly-typed error codes for better DX */
111
- declare const ErrorCode: {
112
- readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
113
- readonly NETWORK_ERROR: "NETWORK_ERROR";
114
- readonly TIMEOUT: "TIMEOUT";
115
- readonly UNAUTHORIZED: "UNAUTHORIZED";
116
- readonly FORBIDDEN: "FORBIDDEN";
117
- readonly NOT_FOUND: "NOT_FOUND";
118
- readonly VALIDATION_ERROR: "VALIDATION_ERROR";
119
- readonly CART_EMPTY: "CART_EMPTY";
120
- readonly CART_EXPIRED: "CART_EXPIRED";
121
- readonly CART_NOT_FOUND: "CART_NOT_FOUND";
122
- readonly ITEM_UNAVAILABLE: "ITEM_UNAVAILABLE";
123
- readonly VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
124
- readonly VARIANT_OUT_OF_STOCK: "VARIANT_OUT_OF_STOCK";
125
- readonly ADDON_REQUIRED: "ADDON_REQUIRED";
126
- readonly ADDON_MAX_EXCEEDED: "ADDON_MAX_EXCEEDED";
127
- readonly CHECKOUT_VALIDATION_FAILED: "CHECKOUT_VALIDATION_FAILED";
128
- readonly DELIVERY_ADDRESS_REQUIRED: "DELIVERY_ADDRESS_REQUIRED";
129
- readonly CUSTOMER_INFO_REQUIRED: "CUSTOMER_INFO_REQUIRED";
130
- readonly PAYMENT_FAILED: "PAYMENT_FAILED";
131
- readonly PAYMENT_CANCELLED: "PAYMENT_CANCELLED";
132
- readonly INSUFFICIENT_FUNDS: "INSUFFICIENT_FUNDS";
133
- readonly CARD_DECLINED: "CARD_DECLINED";
134
- readonly INVALID_OTP: "INVALID_OTP";
135
- readonly OTP_EXPIRED: "OTP_EXPIRED";
136
- readonly AUTHORIZATION_FAILED: "AUTHORIZATION_FAILED";
137
- readonly PAYMENT_ACTION_NOT_COMPLETED: "PAYMENT_ACTION_NOT_COMPLETED";
138
- readonly SLOT_UNAVAILABLE: "SLOT_UNAVAILABLE";
139
- readonly BOOKING_CONFLICT: "BOOKING_CONFLICT";
140
- readonly SERVICE_NOT_FOUND: "SERVICE_NOT_FOUND";
141
- readonly OUT_OF_STOCK: "OUT_OF_STOCK";
142
- readonly INSUFFICIENT_QUANTITY: "INSUFFICIENT_QUANTITY";
143
- };
144
- type ErrorCodeType = (typeof ErrorCode)[keyof typeof ErrorCode];
145
- /** API error structure */
146
- interface ApiError {
147
- code: string;
148
- message: string;
149
- retryable: boolean;
150
- }
151
- /**
152
- * Custom error class for SDK errors with typed error codes.
153
- *
154
- * @example
155
- * ```typescript
156
- * try {
157
- * await client.cart.addItem({ item_id: "prod_123" });
158
- * } catch (error) {
159
- * if (isCimplifyError(error)) {
160
- * switch (error.code) {
161
- * case ErrorCode.ITEM_UNAVAILABLE:
162
- * toast.error("This item is no longer available");
163
- * break;
164
- * case ErrorCode.VARIANT_OUT_OF_STOCK:
165
- * toast.error("Selected option is out of stock");
166
- * break;
167
- * default:
168
- * toast.error(error.message);
169
- * }
170
- * }
171
- * }
172
- * ```
173
- */
174
- declare class CimplifyError extends Error {
175
- code: string;
176
- retryable: boolean;
177
- constructor(code: string, message: string, retryable?: boolean);
178
- /** User-friendly message safe to display */
179
- get userMessage(): string;
180
- }
181
- /** Type guard for CimplifyError */
182
- declare function isCimplifyError(error: unknown): error is CimplifyError;
183
- /** Check if error is retryable */
184
- declare function isRetryableError(error: unknown): boolean;
185
-
186
95
  type ProductType = "product" | "service" | "digital" | "bundle" | "composite";
187
96
  type InventoryType = "one_to_one" | "composition" | "none";
188
97
  type VariantStrategy = "fetch_all" | "use_axes";
@@ -1775,82 +1684,6 @@ interface LocationAppointment {
1775
1684
  service_status: ServiceStatus;
1776
1685
  }
1777
1686
 
1778
- type PaymentStatus = "pending" | "processing" | "created" | "pending_confirmation" | "success" | "succeeded" | "failed" | "declined" | "authorized" | "refunded" | "partially_refunded" | "partially_paid" | "paid" | "unpaid" | "requires_action" | "requires_payment_method" | "requires_capture" | "captured" | "cancelled" | "completed" | "voided" | "error" | "unknown";
1779
- type PaymentProvider = "stripe" | "paystack" | "mtn" | "vodafone" | "airtel" | "cellulant" | "offline" | "cash" | "manual";
1780
- type PaymentMethodType = "card" | "mobile_money" | "bank_transfer" | "cash" | "custom";
1781
- /** Authorization types for payment verification (OTP, PIN, etc.) */
1782
- type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | "address";
1783
- /** Payment processing state machine states (for UI) */
1784
- type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
1785
- interface PaymentMethod {
1786
- type: PaymentMethodType;
1787
- provider?: string;
1788
- phone_number?: string;
1789
- card_last_four?: string;
1790
- custom_value?: string;
1791
- }
1792
- interface Payment {
1793
- id: string;
1794
- order_id: string;
1795
- business_id: string;
1796
- amount: Money;
1797
- currency: Currency;
1798
- payment_method: PaymentMethod;
1799
- status: PaymentStatus;
1800
- provider: PaymentProvider;
1801
- provider_reference?: string;
1802
- failure_reason?: string;
1803
- created_at: string;
1804
- updated_at: string;
1805
- }
1806
- interface InitializePaymentResult {
1807
- payment_id: string;
1808
- status: PaymentStatus;
1809
- redirect_url?: string;
1810
- authorization_url?: string;
1811
- reference: string;
1812
- provider: PaymentProvider;
1813
- }
1814
- /** Normalized payment response from checkout or payment initialization */
1815
- interface PaymentResponse {
1816
- method: string;
1817
- provider: string;
1818
- requires_action: boolean;
1819
- public_key?: string;
1820
- client_secret?: string;
1821
- access_code?: string;
1822
- redirect_url?: string;
1823
- transaction_id?: string;
1824
- order_id?: string;
1825
- reference?: string;
1826
- metadata?: Record<string, unknown>;
1827
- instructions?: string;
1828
- display_text?: string;
1829
- requires_authorization?: boolean;
1830
- authorization_type?: AuthorizationType;
1831
- provider_payment_id?: string;
1832
- }
1833
- /** Payment status polling response */
1834
- interface PaymentStatusResponse {
1835
- status: PaymentStatus;
1836
- paid: boolean;
1837
- amount?: Money;
1838
- currency?: string;
1839
- reference?: string;
1840
- message?: string;
1841
- }
1842
- interface PaymentErrorDetails {
1843
- code: string;
1844
- message: string;
1845
- recoverable: boolean;
1846
- technical?: string;
1847
- }
1848
- interface SubmitAuthorizationInput {
1849
- reference: string;
1850
- auth_type: AuthorizationType;
1851
- value: string;
1852
- }
1853
-
1854
1687
  declare const CHECKOUT_MODE: {
1855
1688
  readonly LINK: "link";
1856
1689
  readonly GUEST: "guest";
@@ -2230,6 +2063,8 @@ interface ProcessCheckoutResult {
2230
2063
  code: string;
2231
2064
  message: string;
2232
2065
  recoverable: boolean;
2066
+ docs_url?: string;
2067
+ suggestion?: string;
2233
2068
  };
2234
2069
  enrolled_in_link?: boolean;
2235
2070
  }
@@ -3284,8 +3119,10 @@ declare class CimplifyElements {
3284
3119
  private paymentData;
3285
3120
  private checkoutInProgress;
3286
3121
  private activeCheckoutAbort;
3122
+ private hasWarnedMissingAuthElement;
3287
3123
  private boundHandleMessage;
3288
- constructor(client: CimplifyClient, businessId: string, options?: ElementsOptions);
3124
+ private businessIdResolvePromise;
3125
+ constructor(client: CimplifyClient, businessId?: string, options?: ElementsOptions);
3289
3126
  create(type: ElementType, options?: ElementOptions): CimplifyElement;
3290
3127
  getElement(type: ElementType): CimplifyElement | undefined;
3291
3128
  destroy(): void;
@@ -3294,6 +3131,8 @@ declare class CimplifyElements {
3294
3131
  isAuthenticated(): boolean;
3295
3132
  getAccessToken(): string | null;
3296
3133
  getPublicKey(): string;
3134
+ getBusinessId(): string | null;
3135
+ resolveBusinessId(): Promise<string | null>;
3297
3136
  getAppearance(): ElementsOptions["appearance"];
3298
3137
  private hydrateCustomerData;
3299
3138
  private handleMessage;
@@ -3312,7 +3151,7 @@ declare class CimplifyElement {
3312
3151
  private eventHandlers;
3313
3152
  private resolvers;
3314
3153
  private boundHandleMessage;
3315
- constructor(type: ElementType, businessId: string, linkUrl: string, options: ElementOptions, parent: CimplifyElements);
3154
+ constructor(type: ElementType, businessId: string | null, linkUrl: string, options: ElementOptions, parent: CimplifyElements);
3316
3155
  mount(container: string | HTMLElement): void;
3317
3156
  destroy(): void;
3318
3157
  on(event: ElementEventType, handler: ElementEventHandler): void;
@@ -3326,7 +3165,7 @@ declare class CimplifyElement {
3326
3165
  private emit;
3327
3166
  private resolveData;
3328
3167
  }
3329
- declare function createElements(client: CimplifyClient, businessId: string, options?: ElementsOptions): CimplifyElements;
3168
+ declare function createElements(client: CimplifyClient, businessId?: string, options?: ElementsOptions): CimplifyElements;
3330
3169
 
3331
3170
  interface CimplifyConfig {
3332
3171
  publicKey?: string;
@@ -3351,6 +3190,8 @@ declare class CimplifyClient {
3351
3190
  private retryDelay;
3352
3191
  private hooks;
3353
3192
  private context;
3193
+ private businessId;
3194
+ private businessIdResolvePromise;
3354
3195
  private inflightRequests;
3355
3196
  private _catalogue?;
3356
3197
  private _cart?;
@@ -3370,12 +3211,22 @@ declare class CimplifyClient {
3370
3211
  setSessionToken(token: string | null): void;
3371
3212
  getAccessToken(): string | null;
3372
3213
  getPublicKey(): string;
3214
+ isTestMode(): boolean;
3373
3215
  setAccessToken(token: string | null): void;
3374
3216
  clearSession(): void;
3375
3217
  /** Set the active location/branch for all subsequent requests */
3376
3218
  setLocationId(locationId: string | null): void;
3377
3219
  /** Get the currently active location ID */
3378
3220
  getLocationId(): string | null;
3221
+ /** Cache a resolved business ID for future element/checkouts initialization. */
3222
+ setBusinessId(businessId: string): void;
3223
+ /** Get cached business ID if available. */
3224
+ getBusinessId(): string | null;
3225
+ /**
3226
+ * Resolve business ID from public key once and cache it.
3227
+ * Subsequent calls return the cached value (or shared in-flight promise).
3228
+ */
3229
+ resolveBusinessId(): Promise<string>;
3379
3230
  private loadAccessToken;
3380
3231
  private saveAccessToken;
3381
3232
  private getHeaders;
@@ -3417,27 +3268,8 @@ declare class CimplifyClient {
3417
3268
  * authElement.mount('#auth-container');
3418
3269
  * ```
3419
3270
  */
3420
- elements(businessId: string, options?: ElementsOptions): CimplifyElements;
3271
+ elements(businessId?: string, options?: ElementsOptions): CimplifyElements;
3421
3272
  }
3422
3273
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
3423
3274
 
3424
- type AdSlot = "banner" | "sidebar" | "in-content" | "native" | "footer";
3425
- type AdPosition = "static" | "sticky" | "fixed";
3426
- type AdTheme = "light" | "dark" | "auto";
3427
- interface AdConfig {
3428
- enabled: boolean;
3429
- theme: AdTheme;
3430
- excludePaths?: string[];
3431
- }
3432
- interface AdCreative {
3433
- id: string;
3434
- html: string;
3435
- clickUrl: string;
3436
- }
3437
- interface AdContextValue {
3438
- siteId: string | null;
3439
- config: AdConfig | null;
3440
- isLoading: boolean;
3441
- }
3442
-
3443
- 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 };
3275
+ export { type ProcessAndResolveOptions as $, AuthService as A, BusinessService as B, CimplifyClient as C, type ElementType as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, type ElementEventType as H, InventoryService as I, type CheckoutMode as J, type KitchenOrderItem as K, LinkService as L, MESSAGE_TYPES as M, type CheckoutOrderType as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, type SearchOptions as S, type TableInfo as T, type UpdateProfileInput as U, type CheckoutPaymentMethod as V, type CheckoutStep as W, type CheckoutFormData as X, type CheckoutResult as Y, type ProcessCheckoutOptions as Z, type ProcessCheckoutResult as _, type CimplifyConfig as a, type CategorySummary as a$, type CheckoutStatus as a0, type CheckoutStatusContext as a1, type AbortablePromise as a2, type MobileMoneyProvider as a3, type DeviceType as a4, type ContactType as a5, CHECKOUT_MODE as a6, ORDER_TYPE as a7, PAYMENT_METHOD as a8, CHECKOUT_STEP as a9, toNullable as aA, fromPromise as aB, tryCatch as aC, combine as aD, combineObject as aE, type ProductType as aF, type InventoryType as aG, type VariantStrategy as aH, type DigitalProductType as aI, type DepositType as aJ, type SalesChannel as aK, type Product as aL, type ProductWithDetails as aM, type ProductVariant as aN, type VariantDisplayAttribute as aO, type VariantAxis as aP, type VariantAxisWithValues as aQ, type VariantAxisValue as aR, type ProductVariantValue as aS, type VariantLocationAvailability as aT, type VariantAxisSelection as aU, type AddOn as aV, type AddOnWithOptions as aW, type AddOnOption as aX, type AddOnOptionPrice as aY, type ProductAddOn as aZ, type Category as a_, PAYMENT_STATE as aa, PICKUP_TIME_TYPE as ab, MOBILE_MONEY_PROVIDER as ac, AUTHORIZATION_TYPE as ad, DEVICE_TYPE as ae, CONTACT_TYPE as af, LINK_QUERY as ag, LINK_MUTATION as ah, AUTH_MUTATION as ai, CHECKOUT_MUTATION as aj, PAYMENT_MUTATION as ak, ORDER_MUTATION as al, DEFAULT_CURRENCY as am, DEFAULT_COUNTRY as an, type Result as ao, type Ok as ap, type Err as aq, ok as ar, err as as, isOk as at, isErr as au, mapResult as av, mapError as aw, flatMap as ax, getOrElse as ay, unwrap as az, CatalogueQueries as b, type VariantDetailsDTO as b$, type Collection as b0, type CollectionSummary as b1, type CollectionProduct as b2, type BundlePriceType as b3, type Bundle as b4, type BundleSummary as b5, type BundleProduct as b6, type BundleWithDetails as b7, type BundleComponentData as b8, type BundleComponentInfo as b9, type AppliedDiscount as bA, type DiscountBreakdown as bB, type DiscountDetails as bC, type SelectedAddOnOption as bD, type AddOnDetails as bE, type CartAddOn as bF, type VariantDetails as bG, type BundleSelectionInput as bH, type BundleStoredSelection as bI, type BundleSelectionData as bJ, type CompositeStoredSelection as bK, type CompositePriceBreakdown as bL, type CompositeSelectionData as bM, type LineConfiguration as bN, type Cart as bO, type CartItem as bP, type CartTotals as bQ, type DisplayCart as bR, type DisplayCartItem as bS, type DisplayAddOn as bT, type DisplayAddOnOption as bU, type UICartBusiness as bV, type UICartLocation as bW, type UICartCustomer as bX, type UICartPricing as bY, type AddOnOptionDetails as bZ, type AddOnGroupDetails as b_, type CompositePricingMode as ba, type GroupPricingBehavior as bb, type ComponentSourceType as bc, type Composite as bd, type CompositeWithDetails as be, type ComponentGroup as bf, type ComponentGroupWithComponents as bg, type CompositeComponent as bh, type ComponentSelectionInput as bi, type CompositePriceResult as bj, type ComponentPriceBreakdown as bk, type PriceEntryType as bl, type Price as bm, type LocationProductPrice as bn, type ProductAvailability as bo, type ProductTimeProfile as bp, type CartStatus as bq, type CartChannel as br, type PriceSource as bs, type AdjustmentType as bt, type PriceAdjustment as bu, type TaxPathComponent as bv, type PricePathTaxInfo as bw, type PriceDecisionPath as bx, type ChosenPrice as by, type BenefitType as bz, createCimplifyClient as c, type BusinessWithLocations as c$, type CartItemDetails as c0, type UICart as c1, type UICartResponse as c2, type AddToCartInput as c3, type UpdateCartItemInput as c4, type CartSummary as c5, type OrderStatus as c6, type PaymentState as c7, type OrderChannel as c8, type LineType as c9, type CustomerServicePreferences as cA, type BufferTimes as cB, type ReminderSettings as cC, type CancellationPolicy as cD, type ServiceNotes as cE, type PricingOverrides as cF, type SchedulingMetadata as cG, type StaffAssignment as cH, type ResourceAssignment as cI, type SchedulingResult as cJ, type DepositResult as cK, type ServiceScheduleRequest as cL, type StaffScheduleItem as cM, type LocationAppointment as cN, type BusinessType as cO, type BusinessPreferences as cP, type Business as cQ, type LocationTaxBehavior as cR, type LocationTaxOverrides as cS, type Location as cT, type TimeRange as cU, type TimeRanges as cV, type LocationTimeProfile as cW, type Table as cX, type Room as cY, type ServiceCharge as cZ, type StorefrontBootstrap as c_, type OrderLineState as ca, type OrderLineStatus as cb, type FulfillmentType as cc, type FulfillmentStatus as cd, type FulfillmentLink as ce, type OrderFulfillmentSummary as cf, type FeeBearerType as cg, type AmountToPay as ch, type LineItem as ci, type Order as cj, type OrderHistory as ck, type OrderGroupPaymentState as cl, type OrderGroup as cm, type OrderGroupPayment as cn, type OrderSplitDetail as co, type OrderGroupPaymentSummary as cp, type OrderGroupDetails as cq, type OrderPaymentEvent as cr, type OrderFilter as cs, type CheckoutInput as ct, type UpdateOrderStatusInput as cu, type CancelOrderInput as cv, type RefundOrderInput as cw, type ServiceStatus as cx, type StaffRole as cy, type ReminderMethod as cz, type QuoteBundleSelectionInput as d, type CheckoutAddressInfo as d$, type LocationWithDetails as d0, type BusinessSettings as d1, type BusinessHours as d2, type CategoryInfo as d3, type ServiceAvailabilityRule as d4, type ServiceAvailabilityException as d5, type StaffAvailabilityRule as d6, type StaffAvailabilityException as d7, type ResourceAvailabilityRule as d8, type ResourceAvailabilityException as d9, type LocationStock as dA, type AvailabilityCheck as dB, type AvailabilityResult as dC, type InventorySummary as dD, type Customer as dE, type CustomerAddress as dF, type CustomerMobileMoney as dG, type CustomerLinkPreferences as dH, type LinkData as dI, type CreateAddressInput as dJ, type UpdateAddressInput as dK, type CreateMobileMoneyInput as dL, type EnrollmentData as dM, type AddressData as dN, type MobileMoneyData as dO, type EnrollAndLinkOrderInput as dP, type LinkStatusResult as dQ, type LinkEnrollResult as dR, type EnrollAndLinkOrderResult as dS, type LinkSession as dT, type RevokeSessionResult as dU, type RevokeAllSessionsResult as dV, type RequestOtpInput as dW, type VerifyOtpInput as dX, type AuthResponse as dY, type PickupTimeType as dZ, type PickupTime as d_, type StaffBookingProfile as da, type ServiceStaffRequirement as db, type BookingRequirementOverride as dc, type ResourceType as dd, type Service as de, type ServiceWithStaff as df, type Staff as dg, type TimeSlot as dh, type AvailableSlot as di, type DayAvailability as dj, type BookingStatus as dk, type Booking as dl, type BookingWithDetails as dm, type GetAvailableSlotsInput as dn, type CheckSlotAvailabilityInput as dp, type RescheduleBookingInput as dq, type CancelBookingInput as dr, type ServiceAvailabilityParams as ds, type ServiceAvailabilityResult as dt, type StockOwnershipType as du, type StockStatus as dv, type Stock as dw, type StockLevel as dx, type ProductStock as dy, type VariantStock as dz, type QuoteStatus as e, type MobileMoneyDetails as e0, type CheckoutCustomerInfo as e1, type FxQuoteRequest as e2, type FxQuote as e3, type FxRateResponse as e4, type RequestContext as e5, type RequestStartEvent as e6, type RequestSuccessEvent as e7, type RequestErrorEvent as e8, type RetryEvent as e9, type SessionChangeEvent as ea, type ObservabilityHooks as eb, type ElementAppearance as ec, type AddressInfo as ed, type PaymentMethodInfo as ee, type AuthenticatedCustomer as ef, type ElementsCustomerInfo as eg, type AuthenticatedData as eh, type ElementsCheckoutData as ei, type ElementsCheckoutResult as ej, type ParentToIframeMessage as ek, type IframeToParentMessage as el, type ElementEventHandler as em, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RefreshQuoteResult as h, CartOperations as i, CheckoutService as j, generateIdempotencyKey as k, type GetOrdersOptions as l, type AuthStatus as m, type OtpResult as n, type ChangePasswordInput as o, SchedulingService as p, LiteService as q, FxService as r, type LiteBootstrap as s, type KitchenOrderResult as t, CimplifyElements as u, CimplifyElement as v, createElements as w, ELEMENT_TYPES as x, type ElementsOptions as y, type ElementOptions as z };