@cimplify/sdk 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/advanced.d.mts +2 -2
  2. package/dist/advanced.d.ts +2 -2
  3. package/dist/advanced.js +21 -21
  4. package/dist/advanced.mjs +2 -2
  5. package/dist/{chunk-RYQ5IPWX.js → chunk-2BSYTQAY.js} +18 -28
  6. package/dist/{chunk-KTTQC5HG.mjs → chunk-676BJ3EU.mjs} +43 -8
  7. package/dist/{chunk-2JI47EYJ.mjs → chunk-7KH2XJIW.mjs} +67 -12
  8. package/dist/{chunk-MJECWMOY.js → chunk-AVVLN353.js} +76 -40
  9. package/dist/{chunk-FTL2SXCG.mjs → chunk-HG7GG3TT.mjs} +18 -28
  10. package/dist/{chunk-DYKFSV77.js → chunk-KSN3RJFL.js} +86 -30
  11. package/dist/{client-BFFfuzJr.d.mts → client-D4E9aJy7.d.mts} +141 -7
  12. package/dist/{client-B1UtuyOg.d.ts → client-VyO6Bqz2.d.ts} +141 -7
  13. package/dist/index.d.mts +38 -5
  14. package/dist/index.d.ts +38 -5
  15. package/dist/index.js +101 -97
  16. package/dist/index.mjs +3 -3
  17. package/dist/{payment-D9FTaOse.d.mts → payment-CKqMU4xT.d.mts} +1052 -934
  18. package/dist/{payment-D9FTaOse.d.ts → payment-CKqMU4xT.d.ts} +1052 -934
  19. package/dist/{price-BD1iioLh.d.ts → price-BqV_DjjQ.d.mts} +1 -1
  20. package/dist/{price-9JsPuknm.d.mts → price-e4beObLZ.d.ts} +1 -1
  21. package/dist/react.d.mts +463 -11
  22. package/dist/react.d.ts +463 -11
  23. package/dist/react.js +1630 -113
  24. package/dist/react.mjs +1566 -65
  25. package/dist/styles.css +1 -1
  26. package/dist/utils.d.mts +2 -2
  27. package/dist/utils.d.ts +2 -2
  28. package/dist/utils.js +28 -28
  29. package/dist/utils.mjs +1 -1
  30. package/package.json +2 -2
  31. package/registry/availability-badge.json +1 -1
  32. package/registry/booking-page.json +1 -1
  33. package/registry/bundle-selector.json +1 -1
  34. package/registry/cart-summary.json +1 -1
  35. package/registry/composite-selector.json +1 -1
  36. package/registry/order-summary.json +1 -1
  37. package/registry/product-customizer.json +1 -1
  38. package/registry/search-input.json +1 -1
  39. package/registry/service-card.json +1 -1
  40. package/registry/variant-selector.json +1 -1
@@ -1,4 +1,4 @@
1
- import { Y as Category, y as Product, R as AddOnWithOptions, b as Pagination, g as CimplifyError, z as ProductWithDetails, B as ProductVariant, H as VariantAxis, O as VariantAxisSelection, Q as AddOn, $ as Collection, a4 as BundleSummary, a3 as Bundle, ag as Composite, an as ComponentSelectionInput, ao as CompositePriceResult, aM as ChosenPrice, av as ProductTaxonomy, aw as TaxonomyWithChildren, au as ProductTimeProfile, ax as ProductAvailabilityNow, az as Deal, aA as ProductDealInfo, aB as DiscountValidation, aD as TagsResponse, t as CustomAttributeDefinition, x as PropertyFacet, T as TaxonomyAttributeTemplate, bf as UICart, b0 as Cart, b1 as CartItem, bj as CartSummary, bh as AddToCartInput, bi as UpdateCartItemInput, aQ as DiscountDetails, M as Money, C as CurrencyCode, a$ as LineConfiguration, bo as AuthorizationType, bq as PaymentMethod, bs as InitializePaymentResult, bw as SubmitAuthorizationInput, bu as PaymentStatusResponse } from './payment-D9FTaOse.mjs';
1
+ import { a5 as Category, J as Product, a1 as AddOnWithOptions, d as Pagination, h as CimplifyError, L as ProductWithDetails, O as ProductVariant, U as VariantAxis, $ as VariantAxisSelection, a0 as AddOn, a7 as Collection, ac as BundleSummary, ab as Bundle, ao as Composite, av as ComponentSelectionInput, aw as CompositePriceResult, C as ChosenPrice, aD as ProductTaxonomy, aE as TaxonomyWithChildren, bJ as EligiblePlansQuery, bI as ProductBillingPlan, aC as ProductTimeProfile, aF as ProductAvailabilityNow, aH as Deal, aI as ProductDealInfo, aJ as DiscountValidation, aL as TagsResponse, y as CustomAttributeDefinition, z as CustomAttributeValue, G as PropertyFacet, T as TaxonomyAttributeTemplate, K as KnowledgeArticle, bn as UICart, b8 as Cart, b9 as CartItem, br as CartSummary, bp as AddToCartInput, bq as UpdateCartItemInput, aX as DiscountDetails, M as Money, a as CurrencyCode, b7 as LineConfiguration, bw as AuthorizationType, by as PaymentMethod, bA as InitializePaymentResult, bE as SubmitAuthorizationInput, bC as PaymentStatusResponse, s as DurationUnit } from './payment-CKqMU4xT.mjs';
2
2
 
3
3
  interface RequestContext {
4
4
  method: "GET" | "POST" | "PATCH" | "DELETE";
@@ -204,10 +204,14 @@ declare class CatalogueQueries {
204
204
  }): Promise<Result<Product[], CimplifyError>>;
205
205
  searchCollections(query: string, limit?: number): Promise<Result<Collection[], CimplifyError>>;
206
206
  getBundles(): Promise<Result<BundleSummary[], CimplifyError>>;
207
+ getBundle(id: string): Promise<Result<Bundle, CimplifyError>>;
208
+ getBundleBySlug(slug: string): Promise<Result<Bundle, CimplifyError>>;
207
209
  searchBundles(query: string, limit?: number): Promise<Result<Bundle[], CimplifyError>>;
208
210
  getComposites(options?: {
209
211
  limit?: number;
210
212
  }): Promise<Result<Composite[], CimplifyError>>;
213
+ getComposite(id: string): Promise<Result<Composite, CimplifyError>>;
214
+ getCompositeByProduct(productId: string): Promise<Result<Composite, CimplifyError>>;
211
215
  calculateCompositePrice(compositeId: string, selections: ComponentSelectionInput[], locationId?: string): Promise<Result<CompositePriceResult, CimplifyError>>;
212
216
  fetchQuote(input: FetchQuoteInput): Promise<Result<PriceQuote, CimplifyError>>;
213
217
  getQuote(quoteId: string): Promise<Result<PriceQuote, CimplifyError>>;
@@ -216,6 +220,7 @@ declare class CatalogueQueries {
216
220
  getTaxonomy(id: string): Promise<Result<TaxonomyWithChildren, CimplifyError>>;
217
221
  getTaxonomyPath(id: string): Promise<Result<ProductTaxonomy[], CimplifyError>>;
218
222
  searchTaxonomies(query: string, limit?: number): Promise<Result<ProductTaxonomy[], CimplifyError>>;
223
+ getEligibleBillingPlans(productId: string, query?: EligiblePlansQuery): Promise<Result<ProductBillingPlan[], CimplifyError>>;
219
224
  getProductSchedules(productId: string): Promise<Result<ProductTimeProfile[], CimplifyError>>;
220
225
  checkProductAvailableNow(productId: string, locationId: string): Promise<Result<ProductAvailabilityNow, CimplifyError>>;
221
226
  getDeals(locationId?: string): Promise<Result<Deal[], CimplifyError>>;
@@ -239,12 +244,17 @@ declare class CatalogueQueries {
239
244
  limit?: number;
240
245
  offset?: number;
241
246
  }): Promise<Result<TagsResponse, CimplifyError>>;
242
- getAttributeDefinitions(): Promise<Result<CustomAttributeDefinition[], CimplifyError>>;
247
+ getAttributeDefinitions(namespace?: string): Promise<Result<CustomAttributeDefinition[], CimplifyError>>;
248
+ getProductAttributes(productId: string): Promise<Result<CustomAttributeValue[], CimplifyError>>;
249
+ getCategoryAttributes(categoryId: string): Promise<Result<CustomAttributeValue[], CimplifyError>>;
250
+ getCollectionAttributes(collectionId: string): Promise<Result<CustomAttributeValue[], CimplifyError>>;
243
251
  getPropertyFacets(options?: {
244
252
  category_id?: string;
245
253
  product_type?: string;
246
254
  }): Promise<Result<PropertyFacet[], CimplifyError>>;
247
255
  getTaxonomyAttributes(taxonomyId: string): Promise<Result<TaxonomyAttributeTemplate[], CimplifyError>>;
256
+ searchKnowledge(query: string, limit?: number): Promise<Result<KnowledgeArticle[], CimplifyError>>;
257
+ getKnowledgeArticles(): Promise<Result<KnowledgeArticle[], CimplifyError>>;
248
258
  }
249
259
 
250
260
  declare class CartOperations {
@@ -270,7 +280,7 @@ declare class CartOperations {
270
280
 
271
281
  type OrderStatus = "pending" | "created" | "confirmed" | "in_preparation" | "ready_to_serve" | "partially_served" | "served" | "delivered" | "picked_up" | "completed" | "cancelled" | "refunded";
272
282
  type PaymentState = "not_paid" | "paid" | "partially_refunded" | "refunded";
273
- type OrderChannel = "qr" | "taker" | "staff" | "web" | "dashboard" | "tap";
283
+ type OrderChannel = "qr" | "taker" | "staff" | "web" | "dashboard" | "tap" | "chat";
274
284
  type LineType = "product" | "service" | "bundle" | "composite" | "digital";
275
285
  type OrderLineState = "pending" | "in_preparation" | "ready" | "served" | "completed" | {
276
286
  partially_served: {
@@ -350,6 +360,8 @@ interface Order {
350
360
  applied_discount_codes: string[];
351
361
  discount_details?: DiscountDetails;
352
362
  delivery_address?: string;
363
+ delivery_fee: Money;
364
+ delivery_fee_details?: DeliveryFeeDetails;
353
365
  tracking_token?: string;
354
366
  tracking_link?: string;
355
367
  pickup_time?: string;
@@ -363,13 +375,14 @@ interface Order {
363
375
  cancelled_at?: string;
364
376
  table_number?: string;
365
377
  room_number?: string;
378
+ resource_id?: string;
366
379
  location_id?: string;
367
380
  was_placed_by_staff: boolean;
368
381
  modified_by_staff: boolean;
369
382
  delivery_required: boolean;
370
383
  customer_will_pick_up: boolean;
371
384
  total_price: Money;
372
- total_excl_tax_discount_and_service_charge: Money;
385
+ subtotal: Money;
373
386
  total_discount: Money;
374
387
  service_charge?: Money;
375
388
  tax?: Money;
@@ -377,6 +390,7 @@ interface Order {
377
390
  currency: CurrencyCode;
378
391
  bill_token?: string;
379
392
  order_group_id?: string;
393
+ subscription_id?: string;
380
394
  paid_via_group: boolean;
381
395
  amount_to_pay: AmountToPay;
382
396
  served_by?: string;
@@ -391,6 +405,9 @@ interface Order {
391
405
  balance_due: Money;
392
406
  deposit_due_date?: string;
393
407
  final_payment_due_date?: string;
408
+ payment_terms_id?: string;
409
+ price_list_id?: string;
410
+ approval_status?: string;
394
411
  version: number;
395
412
  total_quantity: number;
396
413
  items: LineItem[];
@@ -406,7 +423,9 @@ interface OrderHistory {
406
423
  modified_at: string;
407
424
  metadata?: Record<string, unknown>;
408
425
  }
426
+ type OrderGroupStatus = "open" | "in_progress" | "ready_to_pay" | "split" | "partially_paid" | "paid" | "closed";
409
427
  type OrderGroupPaymentState = "not_paid" | "partially_paid" | "fully_paid" | "partially_refunded" | "refunded";
428
+ type OrderGroupPaymentStatus = "pending" | "processing" | "completed" | "failed" | "refunded" | "cancelled" | "requires_action" | "disputed";
410
429
  interface OrderGroup {
411
430
  id: string;
412
431
  business_id: string;
@@ -414,7 +433,7 @@ interface OrderGroup {
414
433
  table_number: string;
415
434
  created_at: string;
416
435
  updated_at: string;
417
- status: string;
436
+ status: OrderGroupStatus;
418
437
  is_split: boolean;
419
438
  is_closed: boolean;
420
439
  total_amount?: Money;
@@ -432,7 +451,7 @@ interface OrderGroupPayment {
432
451
  order_id?: string;
433
452
  amount: Money;
434
453
  payment_method: string;
435
- status: string;
454
+ status: OrderGroupPaymentStatus;
436
455
  created_at: string;
437
456
  updated_at: string;
438
457
  metadata?: Record<string, unknown>;
@@ -615,6 +634,44 @@ interface LocationAppointment {
615
634
  assigned_resources: string[];
616
635
  service_status: ServiceStatus;
617
636
  }
637
+ type ProviderResolutionSource = "zone_config" | "location_default" | "fallback" | "best_price";
638
+ interface DeliveryFeeDetails {
639
+ zone_id: string;
640
+ zone_name: string;
641
+ provider: string;
642
+ provider_resolved_from: ProviderResolutionSource;
643
+ distance_km: Money;
644
+ base_fee: Money;
645
+ per_km_fee: Money;
646
+ surge_multiplier: Money;
647
+ calculated_fee: Money;
648
+ currency: string;
649
+ }
650
+ type RelationType = "upsell" | "cross_sell";
651
+ interface RelatedProduct {
652
+ id: string;
653
+ business_id: string;
654
+ source_product_id: string;
655
+ target_product_id: string;
656
+ relation_type: RelationType;
657
+ is_enabled: boolean;
658
+ display_order: number;
659
+ created_at: string;
660
+ updated_at: string;
661
+ metadata?: Record<string, unknown>;
662
+ }
663
+ interface RelatedCandidate {
664
+ product_id: string;
665
+ relation_type: RelationType;
666
+ source: string;
667
+ score: number;
668
+ is_enabled: boolean;
669
+ display_order: number;
670
+ }
671
+ interface RelatedProductsEnrichment {
672
+ upsells: RelatedCandidate[];
673
+ cross_sells: RelatedCandidate[];
674
+ }
618
675
 
619
676
  declare const CHECKOUT_MODE: {
620
677
  readonly LINK: "link";
@@ -905,6 +962,8 @@ interface CheckoutAddressInfo {
905
962
  country?: string;
906
963
  delivery_instructions?: string;
907
964
  phone_for_delivery?: string;
965
+ latitude?: number;
966
+ longitude?: number;
908
967
  pickup_time?: string;
909
968
  guest_count?: number;
910
969
  seating_time?: string;
@@ -1365,6 +1424,7 @@ interface Service {
1365
1424
  description?: string;
1366
1425
  price?: Money;
1367
1426
  duration_minutes: number;
1427
+ duration_unit?: DurationUnit;
1368
1428
  image_url?: string | null;
1369
1429
  category_id?: string | null;
1370
1430
  is_available: boolean;
@@ -1620,14 +1680,86 @@ interface TrackCategoryViewOptions {
1620
1680
  categoryName?: string;
1621
1681
  pagePath?: string;
1622
1682
  }
1683
+ interface SessionMessage {
1684
+ code: string;
1685
+ level: "info" | "promotion" | "urgency" | "suggestion" | string;
1686
+ text: string;
1687
+ metadata?: Record<string, unknown>;
1688
+ dismissible: boolean;
1689
+ }
1690
+ interface SessionActivityData {
1691
+ viewed_products: Array<{
1692
+ product_id: string;
1693
+ product_name?: string;
1694
+ category_id?: string;
1695
+ price?: string;
1696
+ view_count: number;
1697
+ first_viewed_at: string;
1698
+ last_viewed_at: string;
1699
+ }>;
1700
+ viewed_categories: Array<{
1701
+ category_id: string;
1702
+ category_name?: string;
1703
+ view_count: number;
1704
+ last_viewed_at: string;
1705
+ }>;
1706
+ total_product_views: number;
1707
+ unique_products_viewed: number;
1708
+ total_searches: number;
1709
+ total_cart_adds: number;
1710
+ total_cart_removes: number;
1711
+ }
1712
+ interface ActivityStateResponse {
1713
+ activity: SessionActivityData | null;
1714
+ intent: string;
1715
+ messages: SessionMessage[];
1716
+ incentive: {
1717
+ template_id: string;
1718
+ agent_id: string;
1719
+ } | null;
1720
+ }
1721
+ interface ActivityRecommendation {
1722
+ product: Product;
1723
+ reason: string;
1724
+ }
1725
+ interface ActivityRecommendationsResponse {
1726
+ recommendations: ActivityRecommendation[];
1727
+ intent: string;
1728
+ incentive: {
1729
+ template_id: string;
1730
+ agent_id: string;
1731
+ } | null;
1732
+ }
1733
+ interface DismissMessageResponse {
1734
+ dismissed: string;
1735
+ messages: SessionMessage[];
1736
+ }
1623
1737
  declare class ActivityService {
1624
1738
  private client;
1625
1739
  constructor(client: CimplifyClient);
1626
1740
  trackProductView(productId: string, options?: TrackProductViewOptions): void;
1627
1741
  trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
1742
+ getState(): Promise<Result<ActivityStateResponse, CimplifyError>>;
1743
+ getRecommendations(options?: {
1744
+ location_id?: string;
1745
+ limit?: number;
1746
+ }): Promise<Result<ActivityRecommendationsResponse, CimplifyError>>;
1747
+ dismissMessage(code: string): Promise<Result<DismissMessageResponse, CimplifyError>>;
1628
1748
  private sendEvents;
1629
1749
  }
1630
1750
 
1751
+ interface DeliveryFeeResponse {
1752
+ serviceable: boolean;
1753
+ fee: Money | null;
1754
+ currency: string | null;
1755
+ details: DeliveryFeeDetails | null;
1756
+ }
1757
+ declare class DeliveryService {
1758
+ private client;
1759
+ constructor(client: CimplifyClient);
1760
+ getFee(dropoffLat: number, dropoffLng: number, country?: string): Promise<Result<DeliveryFeeResponse, CimplifyError>>;
1761
+ }
1762
+
1631
1763
  type OrderType = "delivery" | "pickup" | "dine_in";
1632
1764
  declare const ELEMENT_TYPES: {
1633
1765
  readonly AUTH: "auth";
@@ -1995,6 +2127,7 @@ declare class CimplifyClient {
1995
2127
  private _lite?;
1996
2128
  private _fx?;
1997
2129
  private _activity?;
2130
+ private _delivery?;
1998
2131
  constructor(config?: CimplifyConfig);
1999
2132
  getAccessToken(): string | null;
2000
2133
  getPublicKey(): string;
@@ -2038,8 +2171,9 @@ declare class CimplifyClient {
2038
2171
  get lite(): LiteService;
2039
2172
  get fx(): FxService;
2040
2173
  get activity(): ActivityService;
2174
+ get delivery(): DeliveryService;
2041
2175
  elements(businessId?: string, options?: ElementsOptions): CimplifyElements;
2042
2176
  }
2043
2177
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2044
2178
 
2045
- export { type ProcessCheckoutResult as $, AuthService as A, BusinessService as B, CimplifyClient as C, type ElementOptions as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, type ElementType as H, InventoryService as I, type ElementEventType as J, type CheckoutMode 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, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type CheckoutPaymentMethod as V, type CheckoutStep as W, type CheckoutFormData as X, type CheckoutResult as Y, type NextAction as Z, type ProcessCheckoutOptions as _, type CimplifyConfig as a, type OrderGroupPaymentSummary as a$, type ProcessAndResolveOptions as a0, type CheckoutStatus as a1, type CheckoutStatusContext as a2, type AbortablePromise as a3, type MobileMoneyProvider as a4, type DeviceType as a5, type ContactType as a6, CHECKOUT_MODE as a7, ORDER_TYPE as a8, PAYMENT_METHOD as a9, unwrap as aA, toNullable as aB, fromPromise as aC, tryCatch as aD, combine as aE, combineObject as aF, type CatalogueResult as aG, type CatalogueSnapshot as aH, type OrderStatus as aI, type PaymentState as aJ, type OrderChannel as aK, type LineType as aL, type OrderLineState as aM, type OrderLineStatus as aN, type FulfillmentType as aO, type FulfillmentStatus as aP, type FulfillmentLink as aQ, type OrderFulfillmentSummary as aR, type FeeBearerType as aS, type AmountToPay as aT, type LineItem as aU, type Order as aV, type OrderHistory as aW, type OrderGroupPaymentState as aX, type OrderGroup as aY, type OrderGroupPayment as aZ, type OrderSplitDetail as a_, CHECKOUT_STEP as aa, PAYMENT_STATE as ab, PICKUP_TIME_TYPE as ac, MOBILE_MONEY_PROVIDER as ad, AUTHORIZATION_TYPE as ae, DEVICE_TYPE as af, CONTACT_TYPE as ag, LINK_QUERY as ah, LINK_MUTATION as ai, AUTH_MUTATION as aj, CHECKOUT_MUTATION as ak, PAYMENT_MUTATION as al, ORDER_MUTATION as am, DEFAULT_CURRENCY as an, DEFAULT_COUNTRY as ao, type Result as ap, type Ok as aq, type Err as ar, ok as as, err as at, isOk as au, isErr as av, mapResult as aw, mapError as ax, flatMap as ay, getOrElse as az, CatalogueQueries as b, type ProductStock as b$, type OrderGroupDetails as b0, type OrderPaymentEvent as b1, type OrderFilter as b2, type CheckoutInput as b3, type UpdateOrderStatusInput as b4, type CancelOrderInput as b5, type RefundOrderInput as b6, type ServiceStatus as b7, type StaffRole as b8, type ReminderMethod as b9, type StorefrontBootstrap as bA, type BusinessWithLocations as bB, type LocationWithDetails as bC, type BusinessSettings as bD, type BusinessHours as bE, type CategoryInfo as bF, type Service as bG, type Staff as bH, type TimeSlot as bI, type AvailableSlot as bJ, type DayAvailability as bK, type BookingStatus as bL, type Booking as bM, type BookingWithDetails as bN, type CustomerBookingServiceItem as bO, type CustomerBooking as bP, type GetAvailableSlotsInput as bQ, type CheckSlotAvailabilityInput as bR, type CheckSlotAvailabilityResult as bS, type RescheduleBookingInput as bT, type CancelBookingInput as bU, type CancelBookingResult as bV, type RescheduleBookingResult as bW, type ServiceAvailabilityParams as bX, type ServiceAvailabilityResult as bY, type StockStatus as bZ, type StockLevel as b_, type CustomerServicePreferences as ba, type BufferTimes as bb, type ReminderSettings as bc, type CancellationPolicy as bd, type ServiceNotes as be, type PricingOverrides as bf, type SchedulingMetadata as bg, type StaffAssignment as bh, type ResourceAssignment as bi, type SchedulingResult as bj, type DepositResult as bk, type ServiceScheduleRequest as bl, type StaffScheduleItem as bm, type LocationAppointment as bn, type BusinessType as bo, type BusinessPreferences as bp, type Business as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type Location as bt, type TimeRange as bu, type TimeRanges as bv, type LocationTimeProfile as bw, type Table as bx, type Room as by, type ServiceCharge as bz, createCimplifyClient as c, type VariantStock as c0, type LocationStock as c1, type AvailabilityResult as c2, type Customer as c3, type CustomerAddress as c4, type CustomerMobileMoney as c5, type CustomerLinkPreferences as c6, type LinkData as c7, type CreateAddressInput as c8, type UpdateAddressInput as c9, type RetryEvent as cA, type SessionChangeEvent as cB, type ObservabilityHooks as cC, type OrderType as cD, type ElementAppearance as cE, type AddressInfo as cF, type PaymentMethodInfo as cG, type AuthenticatedCustomer as cH, type ElementsCustomerInfo as cI, type AuthenticatedData as cJ, type ElementsCheckoutData as cK, type ElementsCheckoutResult as cL, type CheckoutCartItem as cM, type CheckoutCartData as cN, type ParentToIframeMessage as cO, type IframeToParentMessage as cP, type ElementEventHandler as cQ, type CreateMobileMoneyInput as ca, type EnrollmentData as cb, type AddressData as cc, type MobileMoneyData as cd, type EnrollAndLinkOrderInput as ce, type LinkStatusResult as cf, type LinkEnrollResult as cg, type EnrollAndLinkOrderResult as ch, type LinkSession as ci, type RevokeSessionResult as cj, type RevokeAllSessionsResult as ck, type RequestOtpInput as cl, type VerifyOtpInput as cm, type AuthResponse as cn, type PickupTimeType as co, type PickupTime as cp, type CheckoutAddressInfo as cq, type MobileMoneyDetails as cr, type CheckoutCustomerInfo as cs, type FxQuoteRequest as ct, type FxQuote as cu, type FxRateResponse as cv, type RequestContext as cw, type RequestStartEvent as cx, type RequestSuccessEvent as cy, type RequestErrorEvent as cz, type QuoteBundleSelectionInput as d, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, CheckoutService as k, generateIdempotencyKey as l, type GetOrdersOptions as m, type AuthStatus as n, type OtpResult as o, LiteService as p, FxService as q, ActivityService as r, type TrackCategoryViewOptions as s, type LiteBootstrap as t, type TableInfo as u, CimplifyElements as v, CimplifyElement as w, createElements as x, ELEMENT_TYPES as y, type ElementsOptions as z };
2179
+ export { type CheckoutMode as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, type LiteBootstrap as E, type FetchQuoteInput as F, type GetProductsOptions as G, type TableInfo as H, InventoryService as I, CimplifyElements as J, CimplifyElement as K, LinkService as L, createElements as M, MESSAGE_TYPES as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, EVENT_TYPES as V, ELEMENT_TYPES as W, type ElementsOptions as X, type ElementOptions as Y, type ElementType as Z, type ElementEventType as _, type CimplifyConfig as a, type AmountToPay as a$, type CheckoutOrderType as a0, type CheckoutPaymentMethod as a1, type CheckoutStep as a2, type CheckoutFormData as a3, type CheckoutResult as a4, type NextAction as a5, type ProcessCheckoutOptions as a6, type ProcessCheckoutResult as a7, type ProcessAndResolveOptions as a8, type CheckoutStatus as a9, ok as aA, err as aB, isOk as aC, isErr as aD, mapResult as aE, mapError as aF, flatMap as aG, getOrElse as aH, unwrap as aI, toNullable as aJ, fromPromise as aK, tryCatch as aL, combine as aM, combineObject as aN, type CatalogueResult as aO, type CatalogueSnapshot as aP, type OrderStatus as aQ, type PaymentState as aR, type OrderChannel as aS, type LineType as aT, type OrderLineState as aU, type OrderLineStatus as aV, type FulfillmentType as aW, type FulfillmentStatus as aX, type FulfillmentLink as aY, type OrderFulfillmentSummary as aZ, type FeeBearerType as a_, type CheckoutStatusContext as aa, type AbortablePromise as ab, type MobileMoneyProvider as ac, type DeviceType as ad, type ContactType as ae, CHECKOUT_MODE as af, ORDER_TYPE as ag, PAYMENT_METHOD as ah, CHECKOUT_STEP as ai, PAYMENT_STATE as aj, PICKUP_TIME_TYPE as ak, MOBILE_MONEY_PROVIDER as al, AUTHORIZATION_TYPE as am, DEVICE_TYPE as an, CONTACT_TYPE as ao, LINK_QUERY as ap, LINK_MUTATION as aq, AUTH_MUTATION as ar, CHECKOUT_MUTATION as as, PAYMENT_MUTATION as at, ORDER_MUTATION as au, DEFAULT_CURRENCY as av, DEFAULT_COUNTRY as aw, type Result as ax, type Ok as ay, type Err as az, CatalogueQueries as b, type BookingStatus as b$, type LineItem as b0, type Order as b1, type OrderHistory as b2, type OrderGroupStatus as b3, type OrderGroupPaymentState as b4, type OrderGroupPaymentStatus as b5, type OrderGroup as b6, type OrderGroupPayment as b7, type OrderSplitDetail as b8, type OrderGroupPaymentSummary as b9, type RelationType as bA, type RelatedProduct as bB, type RelatedCandidate as bC, type RelatedProductsEnrichment as bD, type BusinessType as bE, type BusinessPreferences as bF, type Business as bG, type LocationTaxBehavior as bH, type LocationTaxOverrides as bI, type Location as bJ, type TimeRange as bK, type TimeRanges as bL, type LocationTimeProfile as bM, type Table as bN, type Room as bO, type ServiceCharge as bP, type StorefrontBootstrap as bQ, type BusinessWithLocations as bR, type LocationWithDetails as bS, type BusinessSettings as bT, type BusinessHours as bU, type CategoryInfo as bV, type Service as bW, type Staff as bX, type TimeSlot as bY, type AvailableSlot as bZ, type DayAvailability as b_, type OrderGroupDetails as ba, type OrderPaymentEvent as bb, type OrderFilter as bc, type CheckoutInput as bd, type UpdateOrderStatusInput as be, type CancelOrderInput as bf, type RefundOrderInput as bg, type ServiceStatus as bh, type StaffRole as bi, type ReminderMethod as bj, type CustomerServicePreferences as bk, type BufferTimes as bl, type ReminderSettings as bm, type CancellationPolicy as bn, type ServiceNotes as bo, type PricingOverrides as bp, type SchedulingMetadata as bq, type StaffAssignment as br, type ResourceAssignment as bs, type SchedulingResult as bt, type DepositResult as bu, type ServiceScheduleRequest as bv, type StaffScheduleItem as bw, type LocationAppointment as bx, type ProviderResolutionSource as by, type DeliveryFeeDetails as bz, createCimplifyClient as c, type ElementsCheckoutResult as c$, type Booking as c0, type BookingWithDetails as c1, type CustomerBookingServiceItem as c2, type CustomerBooking as c3, type GetAvailableSlotsInput as c4, type CheckSlotAvailabilityInput as c5, type CheckSlotAvailabilityResult as c6, type RescheduleBookingInput as c7, type CancelBookingInput as c8, type CancelBookingResult as c9, type RevokeAllSessionsResult as cA, type RequestOtpInput as cB, type VerifyOtpInput as cC, type AuthResponse as cD, type PickupTimeType as cE, type PickupTime as cF, type CheckoutAddressInfo as cG, type MobileMoneyDetails as cH, type CheckoutCustomerInfo as cI, type FxQuoteRequest as cJ, type FxQuote as cK, type FxRateResponse as cL, type RequestContext as cM, type RequestStartEvent as cN, type RequestSuccessEvent as cO, type RequestErrorEvent as cP, type RetryEvent as cQ, type SessionChangeEvent as cR, type ObservabilityHooks as cS, type OrderType as cT, type ElementAppearance as cU, type AddressInfo as cV, type PaymentMethodInfo as cW, type AuthenticatedCustomer as cX, type ElementsCustomerInfo as cY, type AuthenticatedData as cZ, type ElementsCheckoutData as c_, type RescheduleBookingResult as ca, type ServiceAvailabilityParams as cb, type ServiceAvailabilityResult as cc, type StockStatus as cd, type StockLevel as ce, type ProductStock as cf, type VariantStock as cg, type LocationStock as ch, type AvailabilityResult as ci, type Customer as cj, type CustomerAddress as ck, type CustomerMobileMoney as cl, type CustomerLinkPreferences as cm, type LinkData as cn, type CreateAddressInput as co, type UpdateAddressInput as cp, type CreateMobileMoneyInput as cq, type EnrollmentData as cr, type AddressData as cs, type MobileMoneyData as ct, type EnrollAndLinkOrderInput as cu, type LinkStatusResult as cv, type LinkEnrollResult as cw, type EnrollAndLinkOrderResult as cx, type LinkSession as cy, type RevokeSessionResult as cz, type QuoteBundleSelectionInput as d, type CheckoutCartItem as d0, type CheckoutCartData as d1, type ParentToIframeMessage as d2, type IframeToParentMessage as d3, type ElementEventHandler as d4, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, CheckoutService as k, generateIdempotencyKey as l, type GetOrdersOptions as m, type AuthStatus as n, type OtpResult as o, LiteService as p, FxService as q, ActivityService as r, type TrackCategoryViewOptions as s, type SessionMessage as t, type SessionActivityData as u, type ActivityStateResponse as v, type ActivityRecommendation as w, type ActivityRecommendationsResponse as x, DeliveryService as y, type DeliveryFeeResponse as z };
@@ -1,4 +1,4 @@
1
- import { Y as Category, y as Product, R as AddOnWithOptions, b as Pagination, g as CimplifyError, z as ProductWithDetails, B as ProductVariant, H as VariantAxis, O as VariantAxisSelection, Q as AddOn, $ as Collection, a4 as BundleSummary, a3 as Bundle, ag as Composite, an as ComponentSelectionInput, ao as CompositePriceResult, aM as ChosenPrice, av as ProductTaxonomy, aw as TaxonomyWithChildren, au as ProductTimeProfile, ax as ProductAvailabilityNow, az as Deal, aA as ProductDealInfo, aB as DiscountValidation, aD as TagsResponse, t as CustomAttributeDefinition, x as PropertyFacet, T as TaxonomyAttributeTemplate, bf as UICart, b0 as Cart, b1 as CartItem, bj as CartSummary, bh as AddToCartInput, bi as UpdateCartItemInput, aQ as DiscountDetails, M as Money, C as CurrencyCode, a$ as LineConfiguration, bo as AuthorizationType, bq as PaymentMethod, bs as InitializePaymentResult, bw as SubmitAuthorizationInput, bu as PaymentStatusResponse } from './payment-D9FTaOse.js';
1
+ import { a5 as Category, J as Product, a1 as AddOnWithOptions, d as Pagination, h as CimplifyError, L as ProductWithDetails, O as ProductVariant, U as VariantAxis, $ as VariantAxisSelection, a0 as AddOn, a7 as Collection, ac as BundleSummary, ab as Bundle, ao as Composite, av as ComponentSelectionInput, aw as CompositePriceResult, C as ChosenPrice, aD as ProductTaxonomy, aE as TaxonomyWithChildren, bJ as EligiblePlansQuery, bI as ProductBillingPlan, aC as ProductTimeProfile, aF as ProductAvailabilityNow, aH as Deal, aI as ProductDealInfo, aJ as DiscountValidation, aL as TagsResponse, y as CustomAttributeDefinition, z as CustomAttributeValue, G as PropertyFacet, T as TaxonomyAttributeTemplate, K as KnowledgeArticle, bn as UICart, b8 as Cart, b9 as CartItem, br as CartSummary, bp as AddToCartInput, bq as UpdateCartItemInput, aX as DiscountDetails, M as Money, a as CurrencyCode, b7 as LineConfiguration, bw as AuthorizationType, by as PaymentMethod, bA as InitializePaymentResult, bE as SubmitAuthorizationInput, bC as PaymentStatusResponse, s as DurationUnit } from './payment-CKqMU4xT.js';
2
2
 
3
3
  interface RequestContext {
4
4
  method: "GET" | "POST" | "PATCH" | "DELETE";
@@ -204,10 +204,14 @@ declare class CatalogueQueries {
204
204
  }): Promise<Result<Product[], CimplifyError>>;
205
205
  searchCollections(query: string, limit?: number): Promise<Result<Collection[], CimplifyError>>;
206
206
  getBundles(): Promise<Result<BundleSummary[], CimplifyError>>;
207
+ getBundle(id: string): Promise<Result<Bundle, CimplifyError>>;
208
+ getBundleBySlug(slug: string): Promise<Result<Bundle, CimplifyError>>;
207
209
  searchBundles(query: string, limit?: number): Promise<Result<Bundle[], CimplifyError>>;
208
210
  getComposites(options?: {
209
211
  limit?: number;
210
212
  }): Promise<Result<Composite[], CimplifyError>>;
213
+ getComposite(id: string): Promise<Result<Composite, CimplifyError>>;
214
+ getCompositeByProduct(productId: string): Promise<Result<Composite, CimplifyError>>;
211
215
  calculateCompositePrice(compositeId: string, selections: ComponentSelectionInput[], locationId?: string): Promise<Result<CompositePriceResult, CimplifyError>>;
212
216
  fetchQuote(input: FetchQuoteInput): Promise<Result<PriceQuote, CimplifyError>>;
213
217
  getQuote(quoteId: string): Promise<Result<PriceQuote, CimplifyError>>;
@@ -216,6 +220,7 @@ declare class CatalogueQueries {
216
220
  getTaxonomy(id: string): Promise<Result<TaxonomyWithChildren, CimplifyError>>;
217
221
  getTaxonomyPath(id: string): Promise<Result<ProductTaxonomy[], CimplifyError>>;
218
222
  searchTaxonomies(query: string, limit?: number): Promise<Result<ProductTaxonomy[], CimplifyError>>;
223
+ getEligibleBillingPlans(productId: string, query?: EligiblePlansQuery): Promise<Result<ProductBillingPlan[], CimplifyError>>;
219
224
  getProductSchedules(productId: string): Promise<Result<ProductTimeProfile[], CimplifyError>>;
220
225
  checkProductAvailableNow(productId: string, locationId: string): Promise<Result<ProductAvailabilityNow, CimplifyError>>;
221
226
  getDeals(locationId?: string): Promise<Result<Deal[], CimplifyError>>;
@@ -239,12 +244,17 @@ declare class CatalogueQueries {
239
244
  limit?: number;
240
245
  offset?: number;
241
246
  }): Promise<Result<TagsResponse, CimplifyError>>;
242
- getAttributeDefinitions(): Promise<Result<CustomAttributeDefinition[], CimplifyError>>;
247
+ getAttributeDefinitions(namespace?: string): Promise<Result<CustomAttributeDefinition[], CimplifyError>>;
248
+ getProductAttributes(productId: string): Promise<Result<CustomAttributeValue[], CimplifyError>>;
249
+ getCategoryAttributes(categoryId: string): Promise<Result<CustomAttributeValue[], CimplifyError>>;
250
+ getCollectionAttributes(collectionId: string): Promise<Result<CustomAttributeValue[], CimplifyError>>;
243
251
  getPropertyFacets(options?: {
244
252
  category_id?: string;
245
253
  product_type?: string;
246
254
  }): Promise<Result<PropertyFacet[], CimplifyError>>;
247
255
  getTaxonomyAttributes(taxonomyId: string): Promise<Result<TaxonomyAttributeTemplate[], CimplifyError>>;
256
+ searchKnowledge(query: string, limit?: number): Promise<Result<KnowledgeArticle[], CimplifyError>>;
257
+ getKnowledgeArticles(): Promise<Result<KnowledgeArticle[], CimplifyError>>;
248
258
  }
249
259
 
250
260
  declare class CartOperations {
@@ -270,7 +280,7 @@ declare class CartOperations {
270
280
 
271
281
  type OrderStatus = "pending" | "created" | "confirmed" | "in_preparation" | "ready_to_serve" | "partially_served" | "served" | "delivered" | "picked_up" | "completed" | "cancelled" | "refunded";
272
282
  type PaymentState = "not_paid" | "paid" | "partially_refunded" | "refunded";
273
- type OrderChannel = "qr" | "taker" | "staff" | "web" | "dashboard" | "tap";
283
+ type OrderChannel = "qr" | "taker" | "staff" | "web" | "dashboard" | "tap" | "chat";
274
284
  type LineType = "product" | "service" | "bundle" | "composite" | "digital";
275
285
  type OrderLineState = "pending" | "in_preparation" | "ready" | "served" | "completed" | {
276
286
  partially_served: {
@@ -350,6 +360,8 @@ interface Order {
350
360
  applied_discount_codes: string[];
351
361
  discount_details?: DiscountDetails;
352
362
  delivery_address?: string;
363
+ delivery_fee: Money;
364
+ delivery_fee_details?: DeliveryFeeDetails;
353
365
  tracking_token?: string;
354
366
  tracking_link?: string;
355
367
  pickup_time?: string;
@@ -363,13 +375,14 @@ interface Order {
363
375
  cancelled_at?: string;
364
376
  table_number?: string;
365
377
  room_number?: string;
378
+ resource_id?: string;
366
379
  location_id?: string;
367
380
  was_placed_by_staff: boolean;
368
381
  modified_by_staff: boolean;
369
382
  delivery_required: boolean;
370
383
  customer_will_pick_up: boolean;
371
384
  total_price: Money;
372
- total_excl_tax_discount_and_service_charge: Money;
385
+ subtotal: Money;
373
386
  total_discount: Money;
374
387
  service_charge?: Money;
375
388
  tax?: Money;
@@ -377,6 +390,7 @@ interface Order {
377
390
  currency: CurrencyCode;
378
391
  bill_token?: string;
379
392
  order_group_id?: string;
393
+ subscription_id?: string;
380
394
  paid_via_group: boolean;
381
395
  amount_to_pay: AmountToPay;
382
396
  served_by?: string;
@@ -391,6 +405,9 @@ interface Order {
391
405
  balance_due: Money;
392
406
  deposit_due_date?: string;
393
407
  final_payment_due_date?: string;
408
+ payment_terms_id?: string;
409
+ price_list_id?: string;
410
+ approval_status?: string;
394
411
  version: number;
395
412
  total_quantity: number;
396
413
  items: LineItem[];
@@ -406,7 +423,9 @@ interface OrderHistory {
406
423
  modified_at: string;
407
424
  metadata?: Record<string, unknown>;
408
425
  }
426
+ type OrderGroupStatus = "open" | "in_progress" | "ready_to_pay" | "split" | "partially_paid" | "paid" | "closed";
409
427
  type OrderGroupPaymentState = "not_paid" | "partially_paid" | "fully_paid" | "partially_refunded" | "refunded";
428
+ type OrderGroupPaymentStatus = "pending" | "processing" | "completed" | "failed" | "refunded" | "cancelled" | "requires_action" | "disputed";
410
429
  interface OrderGroup {
411
430
  id: string;
412
431
  business_id: string;
@@ -414,7 +433,7 @@ interface OrderGroup {
414
433
  table_number: string;
415
434
  created_at: string;
416
435
  updated_at: string;
417
- status: string;
436
+ status: OrderGroupStatus;
418
437
  is_split: boolean;
419
438
  is_closed: boolean;
420
439
  total_amount?: Money;
@@ -432,7 +451,7 @@ interface OrderGroupPayment {
432
451
  order_id?: string;
433
452
  amount: Money;
434
453
  payment_method: string;
435
- status: string;
454
+ status: OrderGroupPaymentStatus;
436
455
  created_at: string;
437
456
  updated_at: string;
438
457
  metadata?: Record<string, unknown>;
@@ -615,6 +634,44 @@ interface LocationAppointment {
615
634
  assigned_resources: string[];
616
635
  service_status: ServiceStatus;
617
636
  }
637
+ type ProviderResolutionSource = "zone_config" | "location_default" | "fallback" | "best_price";
638
+ interface DeliveryFeeDetails {
639
+ zone_id: string;
640
+ zone_name: string;
641
+ provider: string;
642
+ provider_resolved_from: ProviderResolutionSource;
643
+ distance_km: Money;
644
+ base_fee: Money;
645
+ per_km_fee: Money;
646
+ surge_multiplier: Money;
647
+ calculated_fee: Money;
648
+ currency: string;
649
+ }
650
+ type RelationType = "upsell" | "cross_sell";
651
+ interface RelatedProduct {
652
+ id: string;
653
+ business_id: string;
654
+ source_product_id: string;
655
+ target_product_id: string;
656
+ relation_type: RelationType;
657
+ is_enabled: boolean;
658
+ display_order: number;
659
+ created_at: string;
660
+ updated_at: string;
661
+ metadata?: Record<string, unknown>;
662
+ }
663
+ interface RelatedCandidate {
664
+ product_id: string;
665
+ relation_type: RelationType;
666
+ source: string;
667
+ score: number;
668
+ is_enabled: boolean;
669
+ display_order: number;
670
+ }
671
+ interface RelatedProductsEnrichment {
672
+ upsells: RelatedCandidate[];
673
+ cross_sells: RelatedCandidate[];
674
+ }
618
675
 
619
676
  declare const CHECKOUT_MODE: {
620
677
  readonly LINK: "link";
@@ -905,6 +962,8 @@ interface CheckoutAddressInfo {
905
962
  country?: string;
906
963
  delivery_instructions?: string;
907
964
  phone_for_delivery?: string;
965
+ latitude?: number;
966
+ longitude?: number;
908
967
  pickup_time?: string;
909
968
  guest_count?: number;
910
969
  seating_time?: string;
@@ -1365,6 +1424,7 @@ interface Service {
1365
1424
  description?: string;
1366
1425
  price?: Money;
1367
1426
  duration_minutes: number;
1427
+ duration_unit?: DurationUnit;
1368
1428
  image_url?: string | null;
1369
1429
  category_id?: string | null;
1370
1430
  is_available: boolean;
@@ -1620,14 +1680,86 @@ interface TrackCategoryViewOptions {
1620
1680
  categoryName?: string;
1621
1681
  pagePath?: string;
1622
1682
  }
1683
+ interface SessionMessage {
1684
+ code: string;
1685
+ level: "info" | "promotion" | "urgency" | "suggestion" | string;
1686
+ text: string;
1687
+ metadata?: Record<string, unknown>;
1688
+ dismissible: boolean;
1689
+ }
1690
+ interface SessionActivityData {
1691
+ viewed_products: Array<{
1692
+ product_id: string;
1693
+ product_name?: string;
1694
+ category_id?: string;
1695
+ price?: string;
1696
+ view_count: number;
1697
+ first_viewed_at: string;
1698
+ last_viewed_at: string;
1699
+ }>;
1700
+ viewed_categories: Array<{
1701
+ category_id: string;
1702
+ category_name?: string;
1703
+ view_count: number;
1704
+ last_viewed_at: string;
1705
+ }>;
1706
+ total_product_views: number;
1707
+ unique_products_viewed: number;
1708
+ total_searches: number;
1709
+ total_cart_adds: number;
1710
+ total_cart_removes: number;
1711
+ }
1712
+ interface ActivityStateResponse {
1713
+ activity: SessionActivityData | null;
1714
+ intent: string;
1715
+ messages: SessionMessage[];
1716
+ incentive: {
1717
+ template_id: string;
1718
+ agent_id: string;
1719
+ } | null;
1720
+ }
1721
+ interface ActivityRecommendation {
1722
+ product: Product;
1723
+ reason: string;
1724
+ }
1725
+ interface ActivityRecommendationsResponse {
1726
+ recommendations: ActivityRecommendation[];
1727
+ intent: string;
1728
+ incentive: {
1729
+ template_id: string;
1730
+ agent_id: string;
1731
+ } | null;
1732
+ }
1733
+ interface DismissMessageResponse {
1734
+ dismissed: string;
1735
+ messages: SessionMessage[];
1736
+ }
1623
1737
  declare class ActivityService {
1624
1738
  private client;
1625
1739
  constructor(client: CimplifyClient);
1626
1740
  trackProductView(productId: string, options?: TrackProductViewOptions): void;
1627
1741
  trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
1742
+ getState(): Promise<Result<ActivityStateResponse, CimplifyError>>;
1743
+ getRecommendations(options?: {
1744
+ location_id?: string;
1745
+ limit?: number;
1746
+ }): Promise<Result<ActivityRecommendationsResponse, CimplifyError>>;
1747
+ dismissMessage(code: string): Promise<Result<DismissMessageResponse, CimplifyError>>;
1628
1748
  private sendEvents;
1629
1749
  }
1630
1750
 
1751
+ interface DeliveryFeeResponse {
1752
+ serviceable: boolean;
1753
+ fee: Money | null;
1754
+ currency: string | null;
1755
+ details: DeliveryFeeDetails | null;
1756
+ }
1757
+ declare class DeliveryService {
1758
+ private client;
1759
+ constructor(client: CimplifyClient);
1760
+ getFee(dropoffLat: number, dropoffLng: number, country?: string): Promise<Result<DeliveryFeeResponse, CimplifyError>>;
1761
+ }
1762
+
1631
1763
  type OrderType = "delivery" | "pickup" | "dine_in";
1632
1764
  declare const ELEMENT_TYPES: {
1633
1765
  readonly AUTH: "auth";
@@ -1995,6 +2127,7 @@ declare class CimplifyClient {
1995
2127
  private _lite?;
1996
2128
  private _fx?;
1997
2129
  private _activity?;
2130
+ private _delivery?;
1998
2131
  constructor(config?: CimplifyConfig);
1999
2132
  getAccessToken(): string | null;
2000
2133
  getPublicKey(): string;
@@ -2038,8 +2171,9 @@ declare class CimplifyClient {
2038
2171
  get lite(): LiteService;
2039
2172
  get fx(): FxService;
2040
2173
  get activity(): ActivityService;
2174
+ get delivery(): DeliveryService;
2041
2175
  elements(businessId?: string, options?: ElementsOptions): CimplifyElements;
2042
2176
  }
2043
2177
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2044
2178
 
2045
- export { type ProcessCheckoutResult as $, AuthService as A, BusinessService as B, CimplifyClient as C, type ElementOptions as D, EVENT_TYPES as E, type FetchQuoteInput as F, type GetProductsOptions as G, type ElementType as H, InventoryService as I, type ElementEventType as J, type CheckoutMode 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, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, type CheckoutPaymentMethod as V, type CheckoutStep as W, type CheckoutFormData as X, type CheckoutResult as Y, type NextAction as Z, type ProcessCheckoutOptions as _, type CimplifyConfig as a, type OrderGroupPaymentSummary as a$, type ProcessAndResolveOptions as a0, type CheckoutStatus as a1, type CheckoutStatusContext as a2, type AbortablePromise as a3, type MobileMoneyProvider as a4, type DeviceType as a5, type ContactType as a6, CHECKOUT_MODE as a7, ORDER_TYPE as a8, PAYMENT_METHOD as a9, unwrap as aA, toNullable as aB, fromPromise as aC, tryCatch as aD, combine as aE, combineObject as aF, type CatalogueResult as aG, type CatalogueSnapshot as aH, type OrderStatus as aI, type PaymentState as aJ, type OrderChannel as aK, type LineType as aL, type OrderLineState as aM, type OrderLineStatus as aN, type FulfillmentType as aO, type FulfillmentStatus as aP, type FulfillmentLink as aQ, type OrderFulfillmentSummary as aR, type FeeBearerType as aS, type AmountToPay as aT, type LineItem as aU, type Order as aV, type OrderHistory as aW, type OrderGroupPaymentState as aX, type OrderGroup as aY, type OrderGroupPayment as aZ, type OrderSplitDetail as a_, CHECKOUT_STEP as aa, PAYMENT_STATE as ab, PICKUP_TIME_TYPE as ac, MOBILE_MONEY_PROVIDER as ad, AUTHORIZATION_TYPE as ae, DEVICE_TYPE as af, CONTACT_TYPE as ag, LINK_QUERY as ah, LINK_MUTATION as ai, AUTH_MUTATION as aj, CHECKOUT_MUTATION as ak, PAYMENT_MUTATION as al, ORDER_MUTATION as am, DEFAULT_CURRENCY as an, DEFAULT_COUNTRY as ao, type Result as ap, type Ok as aq, type Err as ar, ok as as, err as at, isOk as au, isErr as av, mapResult as aw, mapError as ax, flatMap as ay, getOrElse as az, CatalogueQueries as b, type ProductStock as b$, type OrderGroupDetails as b0, type OrderPaymentEvent as b1, type OrderFilter as b2, type CheckoutInput as b3, type UpdateOrderStatusInput as b4, type CancelOrderInput as b5, type RefundOrderInput as b6, type ServiceStatus as b7, type StaffRole as b8, type ReminderMethod as b9, type StorefrontBootstrap as bA, type BusinessWithLocations as bB, type LocationWithDetails as bC, type BusinessSettings as bD, type BusinessHours as bE, type CategoryInfo as bF, type Service as bG, type Staff as bH, type TimeSlot as bI, type AvailableSlot as bJ, type DayAvailability as bK, type BookingStatus as bL, type Booking as bM, type BookingWithDetails as bN, type CustomerBookingServiceItem as bO, type CustomerBooking as bP, type GetAvailableSlotsInput as bQ, type CheckSlotAvailabilityInput as bR, type CheckSlotAvailabilityResult as bS, type RescheduleBookingInput as bT, type CancelBookingInput as bU, type CancelBookingResult as bV, type RescheduleBookingResult as bW, type ServiceAvailabilityParams as bX, type ServiceAvailabilityResult as bY, type StockStatus as bZ, type StockLevel as b_, type CustomerServicePreferences as ba, type BufferTimes as bb, type ReminderSettings as bc, type CancellationPolicy as bd, type ServiceNotes as be, type PricingOverrides as bf, type SchedulingMetadata as bg, type StaffAssignment as bh, type ResourceAssignment as bi, type SchedulingResult as bj, type DepositResult as bk, type ServiceScheduleRequest as bl, type StaffScheduleItem as bm, type LocationAppointment as bn, type BusinessType as bo, type BusinessPreferences as bp, type Business as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type Location as bt, type TimeRange as bu, type TimeRanges as bv, type LocationTimeProfile as bw, type Table as bx, type Room as by, type ServiceCharge as bz, createCimplifyClient as c, type VariantStock as c0, type LocationStock as c1, type AvailabilityResult as c2, type Customer as c3, type CustomerAddress as c4, type CustomerMobileMoney as c5, type CustomerLinkPreferences as c6, type LinkData as c7, type CreateAddressInput as c8, type UpdateAddressInput as c9, type RetryEvent as cA, type SessionChangeEvent as cB, type ObservabilityHooks as cC, type OrderType as cD, type ElementAppearance as cE, type AddressInfo as cF, type PaymentMethodInfo as cG, type AuthenticatedCustomer as cH, type ElementsCustomerInfo as cI, type AuthenticatedData as cJ, type ElementsCheckoutData as cK, type ElementsCheckoutResult as cL, type CheckoutCartItem as cM, type CheckoutCartData as cN, type ParentToIframeMessage as cO, type IframeToParentMessage as cP, type ElementEventHandler as cQ, type CreateMobileMoneyInput as ca, type EnrollmentData as cb, type AddressData as cc, type MobileMoneyData as cd, type EnrollAndLinkOrderInput as ce, type LinkStatusResult as cf, type LinkEnrollResult as cg, type EnrollAndLinkOrderResult as ch, type LinkSession as ci, type RevokeSessionResult as cj, type RevokeAllSessionsResult as ck, type RequestOtpInput as cl, type VerifyOtpInput as cm, type AuthResponse as cn, type PickupTimeType as co, type PickupTime as cp, type CheckoutAddressInfo as cq, type MobileMoneyDetails as cr, type CheckoutCustomerInfo as cs, type FxQuoteRequest as ct, type FxQuote as cu, type FxRateResponse as cv, type RequestContext as cw, type RequestStartEvent as cx, type RequestSuccessEvent as cy, type RequestErrorEvent as cz, type QuoteBundleSelectionInput as d, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, CheckoutService as k, generateIdempotencyKey as l, type GetOrdersOptions as m, type AuthStatus as n, type OtpResult as o, LiteService as p, FxService as q, ActivityService as r, type TrackCategoryViewOptions as s, type LiteBootstrap as t, type TableInfo as u, CimplifyElements as v, CimplifyElement as w, createElements as x, ELEMENT_TYPES as y, type ElementsOptions as z };
2179
+ export { type CheckoutMode as $, AuthService as A, BusinessService as B, CimplifyClient as C, type DismissMessageResponse as D, type LiteBootstrap as E, type FetchQuoteInput as F, type GetProductsOptions as G, type TableInfo as H, InventoryService as I, CimplifyElements as J, CimplifyElement as K, LinkService as L, createElements as M, MESSAGE_TYPES as N, OrderQueries as O, type PriceQuote as P, type QuoteCompositeSelectionInput as Q, type RefreshQuoteInput as R, SchedulingService as S, type TrackProductViewOptions as T, type UpdateProfileInput as U, EVENT_TYPES as V, ELEMENT_TYPES as W, type ElementsOptions as X, type ElementOptions as Y, type ElementType as Z, type ElementEventType as _, type CimplifyConfig as a, type AmountToPay as a$, type CheckoutOrderType as a0, type CheckoutPaymentMethod as a1, type CheckoutStep as a2, type CheckoutFormData as a3, type CheckoutResult as a4, type NextAction as a5, type ProcessCheckoutOptions as a6, type ProcessCheckoutResult as a7, type ProcessAndResolveOptions as a8, type CheckoutStatus as a9, ok as aA, err as aB, isOk as aC, isErr as aD, mapResult as aE, mapError as aF, flatMap as aG, getOrElse as aH, unwrap as aI, toNullable as aJ, fromPromise as aK, tryCatch as aL, combine as aM, combineObject as aN, type CatalogueResult as aO, type CatalogueSnapshot as aP, type OrderStatus as aQ, type PaymentState as aR, type OrderChannel as aS, type LineType as aT, type OrderLineState as aU, type OrderLineStatus as aV, type FulfillmentType as aW, type FulfillmentStatus as aX, type FulfillmentLink as aY, type OrderFulfillmentSummary as aZ, type FeeBearerType as a_, type CheckoutStatusContext as aa, type AbortablePromise as ab, type MobileMoneyProvider as ac, type DeviceType as ad, type ContactType as ae, CHECKOUT_MODE as af, ORDER_TYPE as ag, PAYMENT_METHOD as ah, CHECKOUT_STEP as ai, PAYMENT_STATE as aj, PICKUP_TIME_TYPE as ak, MOBILE_MONEY_PROVIDER as al, AUTHORIZATION_TYPE as am, DEVICE_TYPE as an, CONTACT_TYPE as ao, LINK_QUERY as ap, LINK_MUTATION as aq, AUTH_MUTATION as ar, CHECKOUT_MUTATION as as, PAYMENT_MUTATION as at, ORDER_MUTATION as au, DEFAULT_CURRENCY as av, DEFAULT_COUNTRY as aw, type Result as ax, type Ok as ay, type Err as az, CatalogueQueries as b, type BookingStatus as b$, type LineItem as b0, type Order as b1, type OrderHistory as b2, type OrderGroupStatus as b3, type OrderGroupPaymentState as b4, type OrderGroupPaymentStatus as b5, type OrderGroup as b6, type OrderGroupPayment as b7, type OrderSplitDetail as b8, type OrderGroupPaymentSummary as b9, type RelationType as bA, type RelatedProduct as bB, type RelatedCandidate as bC, type RelatedProductsEnrichment as bD, type BusinessType as bE, type BusinessPreferences as bF, type Business as bG, type LocationTaxBehavior as bH, type LocationTaxOverrides as bI, type Location as bJ, type TimeRange as bK, type TimeRanges as bL, type LocationTimeProfile as bM, type Table as bN, type Room as bO, type ServiceCharge as bP, type StorefrontBootstrap as bQ, type BusinessWithLocations as bR, type LocationWithDetails as bS, type BusinessSettings as bT, type BusinessHours as bU, type CategoryInfo as bV, type Service as bW, type Staff as bX, type TimeSlot as bY, type AvailableSlot as bZ, type DayAvailability as b_, type OrderGroupDetails as ba, type OrderPaymentEvent as bb, type OrderFilter as bc, type CheckoutInput as bd, type UpdateOrderStatusInput as be, type CancelOrderInput as bf, type RefundOrderInput as bg, type ServiceStatus as bh, type StaffRole as bi, type ReminderMethod as bj, type CustomerServicePreferences as bk, type BufferTimes as bl, type ReminderSettings as bm, type CancellationPolicy as bn, type ServiceNotes as bo, type PricingOverrides as bp, type SchedulingMetadata as bq, type StaffAssignment as br, type ResourceAssignment as bs, type SchedulingResult as bt, type DepositResult as bu, type ServiceScheduleRequest as bv, type StaffScheduleItem as bw, type LocationAppointment as bx, type ProviderResolutionSource as by, type DeliveryFeeDetails as bz, createCimplifyClient as c, type ElementsCheckoutResult as c$, type Booking as c0, type BookingWithDetails as c1, type CustomerBookingServiceItem as c2, type CustomerBooking as c3, type GetAvailableSlotsInput as c4, type CheckSlotAvailabilityInput as c5, type CheckSlotAvailabilityResult as c6, type RescheduleBookingInput as c7, type CancelBookingInput as c8, type CancelBookingResult as c9, type RevokeAllSessionsResult as cA, type RequestOtpInput as cB, type VerifyOtpInput as cC, type AuthResponse as cD, type PickupTimeType as cE, type PickupTime as cF, type CheckoutAddressInfo as cG, type MobileMoneyDetails as cH, type CheckoutCustomerInfo as cI, type FxQuoteRequest as cJ, type FxQuote as cK, type FxRateResponse as cL, type RequestContext as cM, type RequestStartEvent as cN, type RequestSuccessEvent as cO, type RequestErrorEvent as cP, type RetryEvent as cQ, type SessionChangeEvent as cR, type ObservabilityHooks as cS, type OrderType as cT, type ElementAppearance as cU, type AddressInfo as cV, type PaymentMethodInfo as cW, type AuthenticatedCustomer as cX, type ElementsCustomerInfo as cY, type AuthenticatedData as cZ, type ElementsCheckoutData as c_, type RescheduleBookingResult as ca, type ServiceAvailabilityParams as cb, type ServiceAvailabilityResult as cc, type StockStatus as cd, type StockLevel as ce, type ProductStock as cf, type VariantStock as cg, type LocationStock as ch, type AvailabilityResult as ci, type Customer as cj, type CustomerAddress as ck, type CustomerMobileMoney as cl, type CustomerLinkPreferences as cm, type LinkData as cn, type CreateAddressInput as co, type UpdateAddressInput as cp, type CreateMobileMoneyInput as cq, type EnrollmentData as cr, type AddressData as cs, type MobileMoneyData as ct, type EnrollAndLinkOrderInput as cu, type LinkStatusResult as cv, type LinkEnrollResult as cw, type EnrollAndLinkOrderResult as cx, type LinkSession as cy, type RevokeSessionResult as cz, type QuoteBundleSelectionInput as d, type CheckoutCartItem as d0, type CheckoutCartData as d1, type ParentToIframeMessage as d2, type IframeToParentMessage as d3, type ElementEventHandler as d4, type QuoteStatus as e, type QuoteDynamicBuckets as f, type QuoteUiMessage as g, type RequestSource as h, type RefreshQuoteResult as i, CartOperations as j, CheckoutService as k, generateIdempotencyKey as l, type GetOrdersOptions as m, type AuthStatus as n, type OtpResult as o, LiteService as p, FxService as q, ActivityService as r, type TrackCategoryViewOptions as s, type SessionMessage as t, type SessionActivityData as u, type ActivityStateResponse as v, type ActivityRecommendation as w, type ActivityRecommendationsResponse as x, DeliveryService as y, type DeliveryFeeResponse as z };