@cimplify/sdk 0.76.0 → 0.79.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 (56) hide show
  1. package/dist/advanced.d.mts +3 -3
  2. package/dist/advanced.d.ts +3 -3
  3. package/dist/{chunk-QS4XDVHI.js → chunk-5BPBDWAA.js} +94 -0
  4. package/dist/{chunk-J7L5LHGK.mjs → chunk-BNA4GW4D.mjs} +34 -11
  5. package/dist/{chunk-BYWJSPT4.mjs → chunk-FURKCWVG.mjs} +6 -3
  6. package/dist/{chunk-H337NF4O.mjs → chunk-LBFTEXGD.mjs} +94 -1
  7. package/dist/{chunk-OGQFDCZM.js → chunk-OSTOGR4F.js} +34 -11
  8. package/dist/{chunk-Y64AIRGW.js → chunk-T7ALPOK7.js} +8 -5
  9. package/dist/{client-D7MP5Zi7.d.ts → client-BAzvXSLJ.d.ts} +2 -2
  10. package/dist/{client-DDWRDb9m.d.mts → client-Byysg2IX.d.mts} +2 -2
  11. package/dist/{client-CBQJQn7E.d.mts → client-Cn5trGYV.d.ts} +41 -4
  12. package/dist/{client-ciWgfgLw.d.ts → client-D16qfHAB.d.mts} +41 -4
  13. package/dist/{index-lt-fe29V.d.mts → index-Bu76UyFz.d.mts} +3 -3
  14. package/dist/{index-DTGS0QC1.d.ts → index-Moe4cGMB.d.ts} +3 -3
  15. package/dist/index.d.mts +6 -6
  16. package/dist/index.d.ts +6 -6
  17. package/dist/index.js +13 -9
  18. package/dist/index.mjs +1 -1
  19. package/dist/mock/cli.mjs +34 -11
  20. package/dist/mock/library.js +34 -11
  21. package/dist/mock/library.mjs +34 -11
  22. package/dist/mock/msw.js +34 -11
  23. package/dist/mock/msw.mjs +34 -11
  24. package/dist/{payment-C-2gApyQ.d.mts → payment-B7qzWdaJ.d.mts} +1 -1
  25. package/dist/{payment-CfemTORM.d.ts → payment-mVIJIJcq.d.ts} +1 -1
  26. package/dist/{price-CZBQw-Rh.d.mts → price-BfOaGqjx.d.mts} +1 -1
  27. package/dist/{price-DNeyoO7y.d.ts → price-CS1IsORZ.d.ts} +1 -1
  28. package/dist/{product-_GFoaPHU.d.mts → product-BgFOFmQw.d.mts} +7 -0
  29. package/dist/{product-_GFoaPHU.d.ts → product-BgFOFmQw.d.ts} +7 -0
  30. package/dist/react.d.mts +18 -5
  31. package/dist/react.d.ts +18 -5
  32. package/dist/react.js +22 -3
  33. package/dist/react.mjs +21 -3
  34. package/dist/server-BXT62nBC.d.mts +1186 -0
  35. package/dist/server-BXT62nBC.d.ts +1186 -0
  36. package/dist/{server-G8I4JtqK.d.mts → server-CGO4zneR.d.mts} +1 -1
  37. package/dist/{server-1hXIXH2k.d.ts → server-Daq42vK7.d.ts} +1 -1
  38. package/dist/server.d.mts +4 -4
  39. package/dist/server.d.ts +4 -4
  40. package/dist/server.js +2 -2
  41. package/dist/server.mjs +1 -1
  42. package/dist/testing/msw.d.mts +2 -2
  43. package/dist/testing/msw.d.ts +2 -2
  44. package/dist/testing/msw.js +2 -2
  45. package/dist/testing/msw.mjs +1 -1
  46. package/dist/testing/suite.d.mts +6 -6
  47. package/dist/testing/suite.d.ts +6 -6
  48. package/dist/testing/suite.js +22 -22
  49. package/dist/testing/suite.mjs +3 -3
  50. package/dist/testing.d.mts +20 -5
  51. package/dist/testing.d.ts +20 -5
  52. package/dist/testing.js +78 -78
  53. package/dist/testing.mjs +4 -4
  54. package/dist/utils.d.mts +4 -4
  55. package/dist/utils.d.ts +4 -4
  56. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { T as CimplifyError, Q as Category, aX as Product, f as AddOnWithOptions, aO as Pagination, b9 as ProductWithDetails, b7 as ProductVariant, bA as VariantAxis, bB as VariantAxisSelection, A as AddOn, U as Collection, E as BundleSummary, s as Bundle, a1 as Composite, $ as ComponentSelectionInput, a6 as CompositePriceResult, S as ChosenPrice, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, av as EligiblePlansQuery, a$ as ProductBillingPlan, b5 as ProductTimeProfile, a_ as ProductAvailabilityNow, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, bq as TagsResponse, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ba as PropertyFacet, bs as TaxonomyAttributeTemplate, aH as KnowledgeArticle, bu as UICart, J as CartItem, O as CartSummary, g as AddToCartInput, L as CartMutationResult, bz as UpdateCartItemInput, am as DiscountDetails, aM as Money, ab as CurrencyCode, aI as LineConfiguration, bG as VariantDetails, bH as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, z as BundleSelectionData, a8 as CompositeSelectionData, ae as CustomerInputValue, bg as SchedulingMode, at as DurationUnit, bk as Subscription, bo as SubscriptionWithDetails } from './product-_GFoaPHU.mjs';
2
- import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-C-2gApyQ.mjs';
1
+ import { T as CimplifyError, Q as Category, aX as Product, f as AddOnWithOptions, aO as Pagination, b9 as ProductWithDetails, b7 as ProductVariant, bA as VariantAxis, bB as VariantAxisSelection, A as AddOn, U as Collection, E as BundleSummary, s as Bundle, a1 as Composite, $ as ComponentSelectionInput, a6 as CompositePriceResult, S as ChosenPrice, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, av as EligiblePlansQuery, a$ as ProductBillingPlan, b5 as ProductTimeProfile, a_ as ProductAvailabilityNow, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, bq as TagsResponse, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ba as PropertyFacet, bs as TaxonomyAttributeTemplate, aH as KnowledgeArticle, bu as UICart, J as CartItem, O as CartSummary, g as AddToCartInput, L as CartMutationResult, bz as UpdateCartItemInput, am as DiscountDetails, aM as Money, ab as CurrencyCode, aI as LineConfiguration, bG as VariantDetails, bH as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, z as BundleSelectionData, a8 as CompositeSelectionData, ae as CustomerInputValue, bg as SchedulingMode, at as DurationUnit, bk as Subscription, bo as SubscriptionWithDetails } from './product-BgFOFmQw.js';
2
+ import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-mVIJIJcq.js';
3
3
 
4
4
  interface RequestContext {
5
5
  method: "GET" | "POST" | "PATCH" | "DELETE";
@@ -458,7 +458,6 @@ interface Order {
458
458
  latest_service_time?: string;
459
459
  deposit_required: boolean;
460
460
  deposit_amount: Money;
461
- deposit_paid_amount: Money;
462
461
  balance_due: Money;
463
462
  deposit_due_date?: string;
464
463
  final_payment_due_date?: string;
@@ -1066,6 +1065,12 @@ interface CheckoutFormData {
1066
1065
  metadata?: Record<string, unknown>;
1067
1066
  pay_currency?: CurrencyCode;
1068
1067
  fx_quote_id?: string;
1068
+ /** Apply the shopper's available store credit (capped at the amount owed) as a
1069
+ * fee-exempt tender before charging the rail. */
1070
+ use_store_credit?: boolean;
1071
+ /** Store-credit voucher / gift code to claim into the wallet and apply to this
1072
+ * order. Presenting a code implies applying store credit. */
1073
+ voucher_code?: string;
1069
1074
  }
1070
1075
  type NextAction = {
1071
1076
  type: "none";
@@ -1337,6 +1342,22 @@ declare class OrderQueries {
1337
1342
  cancel(orderId: string, reason?: string, opts?: IdempotencyOption$7): Promise<Result<Order, CimplifyError>>;
1338
1343
  }
1339
1344
 
1345
+ interface StoreCreditBalance {
1346
+ /** Available balance (a Money string — use `parsePrice` before arithmetic). */
1347
+ balance: Money;
1348
+ currency: CurrencyCode;
1349
+ }
1350
+ /** Reads the signed-in shopper's store-credit balance for the current storefront. */
1351
+ declare class StoreCreditQueries {
1352
+ private client;
1353
+ constructor(client: CimplifyClient);
1354
+ /**
1355
+ * The shopper's available store-credit balance, in the business's default
1356
+ * currency. Requires a signed-in customer; returns an error otherwise.
1357
+ */
1358
+ balance(): Promise<Result<StoreCreditBalance, CimplifyError>>;
1359
+ }
1360
+
1340
1361
  interface GetLinkOrdersOptions {
1341
1362
  status?: OrderStatus;
1342
1363
  limit?: number;
@@ -2035,6 +2056,12 @@ interface DismissMessageResponse {
2035
2056
  declare class ActivityService {
2036
2057
  private client;
2037
2058
  constructor(client: CimplifyClient);
2059
+ /**
2060
+ * Record session start (landing, referrer, UTM, device). Fire-and-forget,
2061
+ * at most once per tab session; called automatically by the track* methods.
2062
+ */
2063
+ startSession(): void;
2064
+ private buildSessionPayload;
2038
2065
  trackProductView(productId: string, options?: TrackProductViewOptions): void;
2039
2066
  trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
2040
2067
  getState(): Promise<Result<ActivityStateResponse, CimplifyError>>;
@@ -2342,6 +2369,14 @@ interface CheckoutCartData {
2342
2369
  service_charge: string;
2343
2370
  total: string;
2344
2371
  currency: string;
2372
+ /** Tax is baked into the prices (e.g. Ghana VAT), so `tax_amount` is already
2373
+ * inside `subtotal`/`total`. Checkout labels it "included" rather than
2374
+ * summing it onto the total. */
2375
+ tax_inclusive: boolean;
2376
+ /** Deposit due now when the cart has deposit-eligible service items, so the
2377
+ * checkout can offer "pay deposit now, balance later". Absent/0 otherwise. */
2378
+ deposit_required?: boolean;
2379
+ deposit_amount?: string;
2345
2380
  }
2346
2381
  type ParentToIframeMessage = {
2347
2382
  type: typeof MESSAGE_TYPES.INIT;
@@ -2608,6 +2643,7 @@ declare class CimplifyClient {
2608
2643
  private _cart?;
2609
2644
  private _checkout?;
2610
2645
  private _orders?;
2646
+ private _storeCredit?;
2611
2647
  private _subscriptions?;
2612
2648
  private _uploads?;
2613
2649
  private _places?;
@@ -2655,6 +2691,7 @@ declare class CimplifyClient {
2655
2691
  get cart(): CartOperations;
2656
2692
  get checkout(): CheckoutService;
2657
2693
  get orders(): OrderQueries;
2694
+ get storeCredit(): StoreCreditQueries;
2658
2695
  get subscriptions(): SubscriptionService;
2659
2696
  get uploads(): UploadService;
2660
2697
  get places(): PlacesService;
@@ -2673,4 +2710,4 @@ declare class CimplifyClient {
2673
2710
  }
2674
2711
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2675
2712
 
2676
- export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type FetchQuoteInput as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, type DeviceType as aA, type DismissMessageResponse as aB, ELEMENTS_AUTH_CONTACT_TYPES as aC, ELEMENTS_AUTH_MODES as aD, ELEMENTS_AUTH_PROMPTS as aE, ELEMENT_TYPES as aF, EVENT_TYPES as aG, type ElementAppearance as aH, type ElementEventHandler as aI, type ElementEventType as aJ, type ElementOptions as aK, type ElementType as aL, type ElementsAuthContactType as aM, type ElementsAuthMode as aN, type ElementsAuthOptions as aO, type ElementsAuthPrompt as aP, type ElementsCheckoutData as aQ, type ElementsCheckoutResult as aR, type ElementsCustomerInfo as aS, type ElementsOptions as aT, type EnrichedOrder as aU, type EnrichedOrderItem as aV, type EnrollAndLinkOrderInput as aW, type EnrollAndLinkOrderResult as aX, type EnrollmentData as aY, type Err as aZ, type FeeBearerType as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, DeliveryService as ay, type DepositResult as az, type AbortablePromise as b, type OrderStatus as b$, type FulfillmentLink as b0, type FulfillmentStatus as b1, type FulfillmentSummaryDTO as b2, type FulfillmentType as b3, type FxQuote as b4, type FxQuoteRequest as b5, type FxRateResponse as b6, FxService as b7, type GetAvailableSlotsInput as b8, type GetOrdersOptions as b9, type NextAction as bA, ORDER_MUTATION as bB, ORDER_TYPE as bC, type ObservabilityHooks as bD, type Ok as bE, type Order as bF, type OrderChannel as bG, type OrderCustomerInfo as bH, type OrderDiscountInfo as bI, type OrderFilter as bJ, type OrderFulfillmentSummary as bK, type OrderGroup as bL, type OrderGroupDetails as bM, type OrderGroupPayment as bN, type OrderGroupPaymentState as bO, type OrderGroupPaymentStatus as bP, type OrderGroupPaymentSummary as bQ, type OrderGroupStatus as bR, type OrderHistory as bS, type OrderLineState as bT, type OrderLineStatus as bU, type OrderLocationInfo as bV, type OrderPaymentEvent as bW, type OrderPricingView as bX, OrderQueries as bY, type OrderSplitDetail as bZ, type OrderStaffInfo as b_, type GetProductsOptions as ba, type GroupOrderInfo as bb, type IframeToParentMessage as bc, InventoryService as bd, LINK_MUTATION as be, LINK_QUERY as bf, type LineItem as bg, type LineType as bh, type LinkData as bi, type LinkEnrollResult as bj, LinkService as bk, type LinkSession as bl, type LinkStatusResult as bm, type LiteBootstrap as bn, LiteService as bo, type Location as bp, type LocationBooking as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type LocationTimeProfile as bt, type LocationWithDetails as bu, MESSAGE_TYPES as bv, MOBILE_MONEY_PROVIDER as bw, type MobileMoneyData as bx, type MobileMoneyDetails as by, type MobileMoneyProvider as bz, type ActivityRecommendation as c, type ServiceStatus as c$, type OrderTimestampsDTO as c0, type OrderType as c1, type OtpResult as c2, PAYMENT_METHOD as c3, PAYMENT_MUTATION as c4, PAYMENT_STATE as c5, PICKUP_TIME_TYPE as c6, type ParentToIframeMessage as c7, type PaymentInfoDTO as c8, type PaymentMethodInfo as c9, type ReorderResult as cA, type RequestContext as cB, type RequestErrorEvent as cC, type RequestOptions as cD, type RequestOtpInput as cE, type RequestSource as cF, type RequestStartEvent as cG, type RequestSuccessEvent as cH, type RescheduleBookingInput as cI, type RescheduleBookingResult as cJ, type RescheduleHistoryRecord as cK, type ResourceAssignment as cL, type Result as cM, type RetryEvent as cN, type RevokeAllSessionsResult as cO, type RevokeSessionResult as cP, type Room as cQ, type SchedulingMetadata as cR, type SchedulingResult as cS, SchedulingService as cT, type SenderType as cU, type Service as cV, type ServiceAvailabilityParams as cW, type ServiceAvailabilityResult as cX, type ServiceCharge as cY, type ServiceNotes as cZ, type ServiceScheduleRequest as c_, type PaymentState as ca, type PickupTime as cb, type PickupTimeType as cc, type PlaceDetailsResponse as cd, PlacesService as ce, type PriceQuote as cf, type PricingOverrides as cg, type ProcessAndResolveOptions as ch, type ProcessCheckoutOptions as ci, type ProcessCheckoutResult as cj, type ProviderResolutionSource as ck, type QuoteBundleSelectionInput as cl, type QuoteCompositeSelectionInput as cm, type QuoteDynamicBuckets as cn, type QuoteStatus as co, type QuoteUiMessage as cp, type ReadRequestOptions as cq, type RefreshQuoteInput as cr, type RefreshQuoteResult as cs, type RefundOrderInput as ct, type RelatedCandidate as cu, type RelatedProduct as cv, type RelatedProductsEnrichment as cw, type RelationType as cx, type ReminderMethod as cy, type ReminderSettings as cz, type ActivityRecommendationsResponse as d, type SessionActivityData as d0, type SessionChangeEvent as d1, type SessionMessage as d2, type SlotResourceInfo as d3, type SlotStaffInfo as d4, type Staff as d5, type StaffAssignment as d6, type StaffRole as d7, type StaffScheduleItem as d8, type StockLevel as d9, getOrElse as dA, isErr as dB, isOk as dC, mapError as dD, mapResult as dE, ok as dF, toNullable as dG, tryCatch as dH, unwrap as dI, type StockStatus as da, type StorefrontBootstrap as db, SubscriptionService as dc, SupportService as dd, type Table as de, type TableInfo as df, type TimeRange as dg, type TimeRanges as dh, type TimeSlot as di, type TrackCategoryViewOptions as dj, type TrackProductViewOptions as dk, type UpdateAddressInput as dl, type UpdateOrderStatusInput as dm, type UpdateProfileInput as dn, type UploadInitResponse as dp, type UploadResult as dq, UploadService as dr, type VerifyOtpInput as ds, combine as dt, combineObject as du, createCimplifyClient as dv, createElements as dw, err as dx, flatMap as dy, fromPromise as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
2713
+ export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type FetchQuoteInput as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, type DeviceType as aA, type DismissMessageResponse as aB, ELEMENTS_AUTH_CONTACT_TYPES as aC, ELEMENTS_AUTH_MODES as aD, ELEMENTS_AUTH_PROMPTS as aE, ELEMENT_TYPES as aF, EVENT_TYPES as aG, type ElementAppearance as aH, type ElementEventHandler as aI, type ElementEventType as aJ, type ElementOptions as aK, type ElementType as aL, type ElementsAuthContactType as aM, type ElementsAuthMode as aN, type ElementsAuthOptions as aO, type ElementsAuthPrompt as aP, type ElementsCheckoutData as aQ, type ElementsCheckoutResult as aR, type ElementsCustomerInfo as aS, type ElementsOptions as aT, type EnrichedOrder as aU, type EnrichedOrderItem as aV, type EnrollAndLinkOrderInput as aW, type EnrollAndLinkOrderResult as aX, type EnrollmentData as aY, type Err as aZ, type FeeBearerType as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, DeliveryService as ay, type DepositResult as az, type AbortablePromise as b, type OrderStatus as b$, type FulfillmentLink as b0, type FulfillmentStatus as b1, type FulfillmentSummaryDTO as b2, type FulfillmentType as b3, type FxQuote as b4, type FxQuoteRequest as b5, type FxRateResponse as b6, FxService as b7, type GetAvailableSlotsInput as b8, type GetOrdersOptions as b9, type NextAction as bA, ORDER_MUTATION as bB, ORDER_TYPE as bC, type ObservabilityHooks as bD, type Ok as bE, type Order as bF, type OrderChannel as bG, type OrderCustomerInfo as bH, type OrderDiscountInfo as bI, type OrderFilter as bJ, type OrderFulfillmentSummary as bK, type OrderGroup as bL, type OrderGroupDetails as bM, type OrderGroupPayment as bN, type OrderGroupPaymentState as bO, type OrderGroupPaymentStatus as bP, type OrderGroupPaymentSummary as bQ, type OrderGroupStatus as bR, type OrderHistory as bS, type OrderLineState as bT, type OrderLineStatus as bU, type OrderLocationInfo as bV, type OrderPaymentEvent as bW, type OrderPricingView as bX, OrderQueries as bY, type OrderSplitDetail as bZ, type OrderStaffInfo as b_, type GetProductsOptions as ba, type GroupOrderInfo as bb, type IframeToParentMessage as bc, InventoryService as bd, LINK_MUTATION as be, LINK_QUERY as bf, type LineItem as bg, type LineType as bh, type LinkData as bi, type LinkEnrollResult as bj, LinkService as bk, type LinkSession as bl, type LinkStatusResult as bm, type LiteBootstrap as bn, LiteService as bo, type Location as bp, type LocationBooking as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type LocationTimeProfile as bt, type LocationWithDetails as bu, MESSAGE_TYPES as bv, MOBILE_MONEY_PROVIDER as bw, type MobileMoneyData as bx, type MobileMoneyDetails as by, type MobileMoneyProvider as bz, type ActivityRecommendation as c, type ServiceStatus as c$, type OrderTimestampsDTO as c0, type OrderType as c1, type OtpResult as c2, PAYMENT_METHOD as c3, PAYMENT_MUTATION as c4, PAYMENT_STATE as c5, PICKUP_TIME_TYPE as c6, type ParentToIframeMessage as c7, type PaymentInfoDTO as c8, type PaymentMethodInfo as c9, type ReorderResult as cA, type RequestContext as cB, type RequestErrorEvent as cC, type RequestOptions as cD, type RequestOtpInput as cE, type RequestSource as cF, type RequestStartEvent as cG, type RequestSuccessEvent as cH, type RescheduleBookingInput as cI, type RescheduleBookingResult as cJ, type RescheduleHistoryRecord as cK, type ResourceAssignment as cL, type Result as cM, type RetryEvent as cN, type RevokeAllSessionsResult as cO, type RevokeSessionResult as cP, type Room as cQ, type SchedulingMetadata as cR, type SchedulingResult as cS, SchedulingService as cT, type SenderType as cU, type Service as cV, type ServiceAvailabilityParams as cW, type ServiceAvailabilityResult as cX, type ServiceCharge as cY, type ServiceNotes as cZ, type ServiceScheduleRequest as c_, type PaymentState as ca, type PickupTime as cb, type PickupTimeType as cc, type PlaceDetailsResponse as cd, PlacesService as ce, type PriceQuote as cf, type PricingOverrides as cg, type ProcessAndResolveOptions as ch, type ProcessCheckoutOptions as ci, type ProcessCheckoutResult as cj, type ProviderResolutionSource as ck, type QuoteBundleSelectionInput as cl, type QuoteCompositeSelectionInput as cm, type QuoteDynamicBuckets as cn, type QuoteStatus as co, type QuoteUiMessage as cp, type ReadRequestOptions as cq, type RefreshQuoteInput as cr, type RefreshQuoteResult as cs, type RefundOrderInput as ct, type RelatedCandidate as cu, type RelatedProduct as cv, type RelatedProductsEnrichment as cw, type RelationType as cx, type ReminderMethod as cy, type ReminderSettings as cz, type ActivityRecommendationsResponse as d, type SessionActivityData as d0, type SessionChangeEvent as d1, type SessionMessage as d2, type SlotResourceInfo as d3, type SlotStaffInfo as d4, type Staff as d5, type StaffAssignment as d6, type StaffRole as d7, type StaffScheduleItem as d8, type StockLevel as d9, flatMap as dA, fromPromise as dB, getOrElse as dC, isErr as dD, isOk as dE, mapError as dF, mapResult as dG, ok as dH, toNullable as dI, tryCatch as dJ, unwrap as dK, type StockStatus as da, type StoreCreditBalance as db, StoreCreditQueries as dc, type StorefrontBootstrap as dd, SubscriptionService as de, SupportService as df, type Table as dg, type TableInfo as dh, type TimeRange as di, type TimeRanges as dj, type TimeSlot as dk, type TrackCategoryViewOptions as dl, type TrackProductViewOptions as dm, type UpdateAddressInput as dn, type UpdateOrderStatusInput as dp, type UpdateProfileInput as dq, type UploadInitResponse as dr, type UploadResult as ds, UploadService as dt, type VerifyOtpInput as du, combine as dv, combineObject as dw, createCimplifyClient as dx, createElements as dy, err as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
@@ -1,5 +1,5 @@
1
- import { T as CimplifyError, Q as Category, aX as Product, f as AddOnWithOptions, aO as Pagination, b9 as ProductWithDetails, b7 as ProductVariant, bA as VariantAxis, bB as VariantAxisSelection, A as AddOn, U as Collection, E as BundleSummary, s as Bundle, a1 as Composite, $ as ComponentSelectionInput, a6 as CompositePriceResult, S as ChosenPrice, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, av as EligiblePlansQuery, a$ as ProductBillingPlan, b5 as ProductTimeProfile, a_ as ProductAvailabilityNow, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, bq as TagsResponse, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ba as PropertyFacet, bs as TaxonomyAttributeTemplate, aH as KnowledgeArticle, bu as UICart, J as CartItem, O as CartSummary, g as AddToCartInput, L as CartMutationResult, bz as UpdateCartItemInput, am as DiscountDetails, aM as Money, ab as CurrencyCode, aI as LineConfiguration, bG as VariantDetails, bH as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, z as BundleSelectionData, a8 as CompositeSelectionData, ae as CustomerInputValue, bg as SchedulingMode, at as DurationUnit, bk as Subscription, bo as SubscriptionWithDetails } from './product-_GFoaPHU.js';
2
- import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-CfemTORM.js';
1
+ import { T as CimplifyError, Q as Category, aX as Product, f as AddOnWithOptions, aO as Pagination, b9 as ProductWithDetails, b7 as ProductVariant, bA as VariantAxis, bB as VariantAxisSelection, A as AddOn, U as Collection, E as BundleSummary, s as Bundle, a1 as Composite, $ as ComponentSelectionInput, a6 as CompositePriceResult, S as ChosenPrice, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, av as EligiblePlansQuery, a$ as ProductBillingPlan, b5 as ProductTimeProfile, a_ as ProductAvailabilityNow, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, bq as TagsResponse, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ba as PropertyFacet, bs as TaxonomyAttributeTemplate, aH as KnowledgeArticle, bu as UICart, J as CartItem, O as CartSummary, g as AddToCartInput, L as CartMutationResult, bz as UpdateCartItemInput, am as DiscountDetails, aM as Money, ab as CurrencyCode, aI as LineConfiguration, bG as VariantDetails, bH as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, z as BundleSelectionData, a8 as CompositeSelectionData, ae as CustomerInputValue, bg as SchedulingMode, at as DurationUnit, bk as Subscription, bo as SubscriptionWithDetails } from './product-BgFOFmQw.mjs';
2
+ import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-B7qzWdaJ.mjs';
3
3
 
4
4
  interface RequestContext {
5
5
  method: "GET" | "POST" | "PATCH" | "DELETE";
@@ -458,7 +458,6 @@ interface Order {
458
458
  latest_service_time?: string;
459
459
  deposit_required: boolean;
460
460
  deposit_amount: Money;
461
- deposit_paid_amount: Money;
462
461
  balance_due: Money;
463
462
  deposit_due_date?: string;
464
463
  final_payment_due_date?: string;
@@ -1066,6 +1065,12 @@ interface CheckoutFormData {
1066
1065
  metadata?: Record<string, unknown>;
1067
1066
  pay_currency?: CurrencyCode;
1068
1067
  fx_quote_id?: string;
1068
+ /** Apply the shopper's available store credit (capped at the amount owed) as a
1069
+ * fee-exempt tender before charging the rail. */
1070
+ use_store_credit?: boolean;
1071
+ /** Store-credit voucher / gift code to claim into the wallet and apply to this
1072
+ * order. Presenting a code implies applying store credit. */
1073
+ voucher_code?: string;
1069
1074
  }
1070
1075
  type NextAction = {
1071
1076
  type: "none";
@@ -1337,6 +1342,22 @@ declare class OrderQueries {
1337
1342
  cancel(orderId: string, reason?: string, opts?: IdempotencyOption$7): Promise<Result<Order, CimplifyError>>;
1338
1343
  }
1339
1344
 
1345
+ interface StoreCreditBalance {
1346
+ /** Available balance (a Money string — use `parsePrice` before arithmetic). */
1347
+ balance: Money;
1348
+ currency: CurrencyCode;
1349
+ }
1350
+ /** Reads the signed-in shopper's store-credit balance for the current storefront. */
1351
+ declare class StoreCreditQueries {
1352
+ private client;
1353
+ constructor(client: CimplifyClient);
1354
+ /**
1355
+ * The shopper's available store-credit balance, in the business's default
1356
+ * currency. Requires a signed-in customer; returns an error otherwise.
1357
+ */
1358
+ balance(): Promise<Result<StoreCreditBalance, CimplifyError>>;
1359
+ }
1360
+
1340
1361
  interface GetLinkOrdersOptions {
1341
1362
  status?: OrderStatus;
1342
1363
  limit?: number;
@@ -2035,6 +2056,12 @@ interface DismissMessageResponse {
2035
2056
  declare class ActivityService {
2036
2057
  private client;
2037
2058
  constructor(client: CimplifyClient);
2059
+ /**
2060
+ * Record session start (landing, referrer, UTM, device). Fire-and-forget,
2061
+ * at most once per tab session; called automatically by the track* methods.
2062
+ */
2063
+ startSession(): void;
2064
+ private buildSessionPayload;
2038
2065
  trackProductView(productId: string, options?: TrackProductViewOptions): void;
2039
2066
  trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
2040
2067
  getState(): Promise<Result<ActivityStateResponse, CimplifyError>>;
@@ -2342,6 +2369,14 @@ interface CheckoutCartData {
2342
2369
  service_charge: string;
2343
2370
  total: string;
2344
2371
  currency: string;
2372
+ /** Tax is baked into the prices (e.g. Ghana VAT), so `tax_amount` is already
2373
+ * inside `subtotal`/`total`. Checkout labels it "included" rather than
2374
+ * summing it onto the total. */
2375
+ tax_inclusive: boolean;
2376
+ /** Deposit due now when the cart has deposit-eligible service items, so the
2377
+ * checkout can offer "pay deposit now, balance later". Absent/0 otherwise. */
2378
+ deposit_required?: boolean;
2379
+ deposit_amount?: string;
2345
2380
  }
2346
2381
  type ParentToIframeMessage = {
2347
2382
  type: typeof MESSAGE_TYPES.INIT;
@@ -2608,6 +2643,7 @@ declare class CimplifyClient {
2608
2643
  private _cart?;
2609
2644
  private _checkout?;
2610
2645
  private _orders?;
2646
+ private _storeCredit?;
2611
2647
  private _subscriptions?;
2612
2648
  private _uploads?;
2613
2649
  private _places?;
@@ -2655,6 +2691,7 @@ declare class CimplifyClient {
2655
2691
  get cart(): CartOperations;
2656
2692
  get checkout(): CheckoutService;
2657
2693
  get orders(): OrderQueries;
2694
+ get storeCredit(): StoreCreditQueries;
2658
2695
  get subscriptions(): SubscriptionService;
2659
2696
  get uploads(): UploadService;
2660
2697
  get places(): PlacesService;
@@ -2673,4 +2710,4 @@ declare class CimplifyClient {
2673
2710
  }
2674
2711
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2675
2712
 
2676
- export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type FetchQuoteInput as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, type DeviceType as aA, type DismissMessageResponse as aB, ELEMENTS_AUTH_CONTACT_TYPES as aC, ELEMENTS_AUTH_MODES as aD, ELEMENTS_AUTH_PROMPTS as aE, ELEMENT_TYPES as aF, EVENT_TYPES as aG, type ElementAppearance as aH, type ElementEventHandler as aI, type ElementEventType as aJ, type ElementOptions as aK, type ElementType as aL, type ElementsAuthContactType as aM, type ElementsAuthMode as aN, type ElementsAuthOptions as aO, type ElementsAuthPrompt as aP, type ElementsCheckoutData as aQ, type ElementsCheckoutResult as aR, type ElementsCustomerInfo as aS, type ElementsOptions as aT, type EnrichedOrder as aU, type EnrichedOrderItem as aV, type EnrollAndLinkOrderInput as aW, type EnrollAndLinkOrderResult as aX, type EnrollmentData as aY, type Err as aZ, type FeeBearerType as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, DeliveryService as ay, type DepositResult as az, type AbortablePromise as b, type OrderStatus as b$, type FulfillmentLink as b0, type FulfillmentStatus as b1, type FulfillmentSummaryDTO as b2, type FulfillmentType as b3, type FxQuote as b4, type FxQuoteRequest as b5, type FxRateResponse as b6, FxService as b7, type GetAvailableSlotsInput as b8, type GetOrdersOptions as b9, type NextAction as bA, ORDER_MUTATION as bB, ORDER_TYPE as bC, type ObservabilityHooks as bD, type Ok as bE, type Order as bF, type OrderChannel as bG, type OrderCustomerInfo as bH, type OrderDiscountInfo as bI, type OrderFilter as bJ, type OrderFulfillmentSummary as bK, type OrderGroup as bL, type OrderGroupDetails as bM, type OrderGroupPayment as bN, type OrderGroupPaymentState as bO, type OrderGroupPaymentStatus as bP, type OrderGroupPaymentSummary as bQ, type OrderGroupStatus as bR, type OrderHistory as bS, type OrderLineState as bT, type OrderLineStatus as bU, type OrderLocationInfo as bV, type OrderPaymentEvent as bW, type OrderPricingView as bX, OrderQueries as bY, type OrderSplitDetail as bZ, type OrderStaffInfo as b_, type GetProductsOptions as ba, type GroupOrderInfo as bb, type IframeToParentMessage as bc, InventoryService as bd, LINK_MUTATION as be, LINK_QUERY as bf, type LineItem as bg, type LineType as bh, type LinkData as bi, type LinkEnrollResult as bj, LinkService as bk, type LinkSession as bl, type LinkStatusResult as bm, type LiteBootstrap as bn, LiteService as bo, type Location as bp, type LocationBooking as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type LocationTimeProfile as bt, type LocationWithDetails as bu, MESSAGE_TYPES as bv, MOBILE_MONEY_PROVIDER as bw, type MobileMoneyData as bx, type MobileMoneyDetails as by, type MobileMoneyProvider as bz, type ActivityRecommendation as c, type ServiceStatus as c$, type OrderTimestampsDTO as c0, type OrderType as c1, type OtpResult as c2, PAYMENT_METHOD as c3, PAYMENT_MUTATION as c4, PAYMENT_STATE as c5, PICKUP_TIME_TYPE as c6, type ParentToIframeMessage as c7, type PaymentInfoDTO as c8, type PaymentMethodInfo as c9, type ReorderResult as cA, type RequestContext as cB, type RequestErrorEvent as cC, type RequestOptions as cD, type RequestOtpInput as cE, type RequestSource as cF, type RequestStartEvent as cG, type RequestSuccessEvent as cH, type RescheduleBookingInput as cI, type RescheduleBookingResult as cJ, type RescheduleHistoryRecord as cK, type ResourceAssignment as cL, type Result as cM, type RetryEvent as cN, type RevokeAllSessionsResult as cO, type RevokeSessionResult as cP, type Room as cQ, type SchedulingMetadata as cR, type SchedulingResult as cS, SchedulingService as cT, type SenderType as cU, type Service as cV, type ServiceAvailabilityParams as cW, type ServiceAvailabilityResult as cX, type ServiceCharge as cY, type ServiceNotes as cZ, type ServiceScheduleRequest as c_, type PaymentState as ca, type PickupTime as cb, type PickupTimeType as cc, type PlaceDetailsResponse as cd, PlacesService as ce, type PriceQuote as cf, type PricingOverrides as cg, type ProcessAndResolveOptions as ch, type ProcessCheckoutOptions as ci, type ProcessCheckoutResult as cj, type ProviderResolutionSource as ck, type QuoteBundleSelectionInput as cl, type QuoteCompositeSelectionInput as cm, type QuoteDynamicBuckets as cn, type QuoteStatus as co, type QuoteUiMessage as cp, type ReadRequestOptions as cq, type RefreshQuoteInput as cr, type RefreshQuoteResult as cs, type RefundOrderInput as ct, type RelatedCandidate as cu, type RelatedProduct as cv, type RelatedProductsEnrichment as cw, type RelationType as cx, type ReminderMethod as cy, type ReminderSettings as cz, type ActivityRecommendationsResponse as d, type SessionActivityData as d0, type SessionChangeEvent as d1, type SessionMessage as d2, type SlotResourceInfo as d3, type SlotStaffInfo as d4, type Staff as d5, type StaffAssignment as d6, type StaffRole as d7, type StaffScheduleItem as d8, type StockLevel as d9, getOrElse as dA, isErr as dB, isOk as dC, mapError as dD, mapResult as dE, ok as dF, toNullable as dG, tryCatch as dH, unwrap as dI, type StockStatus as da, type StorefrontBootstrap as db, SubscriptionService as dc, SupportService as dd, type Table as de, type TableInfo as df, type TimeRange as dg, type TimeRanges as dh, type TimeSlot as di, type TrackCategoryViewOptions as dj, type TrackProductViewOptions as dk, type UpdateAddressInput as dl, type UpdateOrderStatusInput as dm, type UpdateProfileInput as dn, type UploadInitResponse as dp, type UploadResult as dq, UploadService as dr, type VerifyOtpInput as ds, combine as dt, combineObject as du, createCimplifyClient as dv, createElements as dw, err as dx, flatMap as dy, fromPromise as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
2713
+ export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type FetchQuoteInput as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, type DeviceType as aA, type DismissMessageResponse as aB, ELEMENTS_AUTH_CONTACT_TYPES as aC, ELEMENTS_AUTH_MODES as aD, ELEMENTS_AUTH_PROMPTS as aE, ELEMENT_TYPES as aF, EVENT_TYPES as aG, type ElementAppearance as aH, type ElementEventHandler as aI, type ElementEventType as aJ, type ElementOptions as aK, type ElementType as aL, type ElementsAuthContactType as aM, type ElementsAuthMode as aN, type ElementsAuthOptions as aO, type ElementsAuthPrompt as aP, type ElementsCheckoutData as aQ, type ElementsCheckoutResult as aR, type ElementsCustomerInfo as aS, type ElementsOptions as aT, type EnrichedOrder as aU, type EnrichedOrderItem as aV, type EnrollAndLinkOrderInput as aW, type EnrollAndLinkOrderResult as aX, type EnrollmentData as aY, type Err as aZ, type FeeBearerType as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, DeliveryService as ay, type DepositResult as az, type AbortablePromise as b, type OrderStatus as b$, type FulfillmentLink as b0, type FulfillmentStatus as b1, type FulfillmentSummaryDTO as b2, type FulfillmentType as b3, type FxQuote as b4, type FxQuoteRequest as b5, type FxRateResponse as b6, FxService as b7, type GetAvailableSlotsInput as b8, type GetOrdersOptions as b9, type NextAction as bA, ORDER_MUTATION as bB, ORDER_TYPE as bC, type ObservabilityHooks as bD, type Ok as bE, type Order as bF, type OrderChannel as bG, type OrderCustomerInfo as bH, type OrderDiscountInfo as bI, type OrderFilter as bJ, type OrderFulfillmentSummary as bK, type OrderGroup as bL, type OrderGroupDetails as bM, type OrderGroupPayment as bN, type OrderGroupPaymentState as bO, type OrderGroupPaymentStatus as bP, type OrderGroupPaymentSummary as bQ, type OrderGroupStatus as bR, type OrderHistory as bS, type OrderLineState as bT, type OrderLineStatus as bU, type OrderLocationInfo as bV, type OrderPaymentEvent as bW, type OrderPricingView as bX, OrderQueries as bY, type OrderSplitDetail as bZ, type OrderStaffInfo as b_, type GetProductsOptions as ba, type GroupOrderInfo as bb, type IframeToParentMessage as bc, InventoryService as bd, LINK_MUTATION as be, LINK_QUERY as bf, type LineItem as bg, type LineType as bh, type LinkData as bi, type LinkEnrollResult as bj, LinkService as bk, type LinkSession as bl, type LinkStatusResult as bm, type LiteBootstrap as bn, LiteService as bo, type Location as bp, type LocationBooking as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type LocationTimeProfile as bt, type LocationWithDetails as bu, MESSAGE_TYPES as bv, MOBILE_MONEY_PROVIDER as bw, type MobileMoneyData as bx, type MobileMoneyDetails as by, type MobileMoneyProvider as bz, type ActivityRecommendation as c, type ServiceStatus as c$, type OrderTimestampsDTO as c0, type OrderType as c1, type OtpResult as c2, PAYMENT_METHOD as c3, PAYMENT_MUTATION as c4, PAYMENT_STATE as c5, PICKUP_TIME_TYPE as c6, type ParentToIframeMessage as c7, type PaymentInfoDTO as c8, type PaymentMethodInfo as c9, type ReorderResult as cA, type RequestContext as cB, type RequestErrorEvent as cC, type RequestOptions as cD, type RequestOtpInput as cE, type RequestSource as cF, type RequestStartEvent as cG, type RequestSuccessEvent as cH, type RescheduleBookingInput as cI, type RescheduleBookingResult as cJ, type RescheduleHistoryRecord as cK, type ResourceAssignment as cL, type Result as cM, type RetryEvent as cN, type RevokeAllSessionsResult as cO, type RevokeSessionResult as cP, type Room as cQ, type SchedulingMetadata as cR, type SchedulingResult as cS, SchedulingService as cT, type SenderType as cU, type Service as cV, type ServiceAvailabilityParams as cW, type ServiceAvailabilityResult as cX, type ServiceCharge as cY, type ServiceNotes as cZ, type ServiceScheduleRequest as c_, type PaymentState as ca, type PickupTime as cb, type PickupTimeType as cc, type PlaceDetailsResponse as cd, PlacesService as ce, type PriceQuote as cf, type PricingOverrides as cg, type ProcessAndResolveOptions as ch, type ProcessCheckoutOptions as ci, type ProcessCheckoutResult as cj, type ProviderResolutionSource as ck, type QuoteBundleSelectionInput as cl, type QuoteCompositeSelectionInput as cm, type QuoteDynamicBuckets as cn, type QuoteStatus as co, type QuoteUiMessage as cp, type ReadRequestOptions as cq, type RefreshQuoteInput as cr, type RefreshQuoteResult as cs, type RefundOrderInput as ct, type RelatedCandidate as cu, type RelatedProduct as cv, type RelatedProductsEnrichment as cw, type RelationType as cx, type ReminderMethod as cy, type ReminderSettings as cz, type ActivityRecommendationsResponse as d, type SessionActivityData as d0, type SessionChangeEvent as d1, type SessionMessage as d2, type SlotResourceInfo as d3, type SlotStaffInfo as d4, type Staff as d5, type StaffAssignment as d6, type StaffRole as d7, type StaffScheduleItem as d8, type StockLevel as d9, flatMap as dA, fromPromise as dB, getOrElse as dC, isErr as dD, isOk as dE, mapError as dF, mapResult as dG, ok as dH, toNullable as dI, tryCatch as dJ, unwrap as dK, type StockStatus as da, type StoreCreditBalance as db, StoreCreditQueries as dc, type StorefrontBootstrap as dd, SubscriptionService as de, SupportService as df, type Table as dg, type TableInfo as dh, type TimeRange as di, type TimeRanges as dj, type TimeSlot as dk, type TrackCategoryViewOptions as dl, type TrackProductViewOptions as dm, type UpdateAddressInput as dn, type UpdateOrderStatusInput as dp, type UpdateProfileInput as dq, type UploadInitResponse as dr, type UploadResult as ds, UploadService as dt, type VerifyOtpInput as du, combine as dv, combineObject as dw, createCimplifyClient as dx, createElements as dy, err as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
@@ -1,6 +1,6 @@
1
- import { aM as Money, ab as CurrencyCode, aV as PricePathTaxInfo, aX as Product, b9 as ProductWithDetails, bc as QuantityPricingTier } from './product-_GFoaPHU.mjs';
2
- import { P as ProductWithPrice } from './price-CZBQw-Rh.mjs';
3
- import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-C-2gApyQ.mjs';
1
+ import { aM as Money, ab as CurrencyCode, aV as PricePathTaxInfo, aX as Product, b9 as ProductWithDetails, bc as QuantityPricingTier } from './product-BgFOFmQw.mjs';
2
+ import { P as ProductWithPrice } from './price-BfOaGqjx.mjs';
3
+ import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-B7qzWdaJ.mjs';
4
4
  import { CountryCode } from 'libphonenumber-js';
5
5
 
6
6
  declare const CURRENCY_SYMBOLS: Record<string, string>;
@@ -1,6 +1,6 @@
1
- import { aM as Money, ab as CurrencyCode, aV as PricePathTaxInfo, aX as Product, b9 as ProductWithDetails, bc as QuantityPricingTier } from './product-_GFoaPHU.js';
2
- import { P as ProductWithPrice } from './price-DNeyoO7y.js';
3
- import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-CfemTORM.js';
1
+ import { aM as Money, ab as CurrencyCode, aV as PricePathTaxInfo, aX as Product, b9 as ProductWithDetails, bc as QuantityPricingTier } from './product-BgFOFmQw.js';
2
+ import { P as ProductWithPrice } from './price-CS1IsORZ.js';
3
+ import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-mVIJIJcq.js';
4
4
  import { CountryCode } from 'libphonenumber-js';
5
5
 
6
6
  declare const CURRENCY_SYMBOLS: Record<string, string>;
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
- export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StorefrontBootstrap, dc as SubscriptionService, dd as SupportService, de as Table, df as TableInfo, dg as TimeRange, dh as TimeRanges, di as TimeSlot, dj as TrackCategoryViewOptions, dk as TrackProductViewOptions, dl as UpdateAddressInput, dm as UpdateOrderStatusInput, dn as UpdateProfileInput, dp as UploadInitResponse, dq as UploadResult, dr as UploadService, ds as VerifyOtpInput, dt as combine, du as combineObject, dv as createCimplifyClient, dw as createElements, dx as err, dy as flatMap, dz as fromPromise, dA as getOrElse, dB as isErr, dC as isOk, dD as mapError, dE as mapResult, dF as ok, dG as toNullable, dH as tryCatch, dI as unwrap } from './client-CBQJQn7E.mjs';
2
- import { b9 as ProductWithDetails, j as ApiError } from './product-_GFoaPHU.mjs';
3
- export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-_GFoaPHU.mjs';
4
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-lt-fe29V.mjs';
1
+ export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StoreCreditBalance, dc as StoreCreditQueries, dd as StorefrontBootstrap, de as SubscriptionService, df as SupportService, dg as Table, dh as TableInfo, di as TimeRange, dj as TimeRanges, dk as TimeSlot, dl as TrackCategoryViewOptions, dm as TrackProductViewOptions, dn as UpdateAddressInput, dp as UpdateOrderStatusInput, dq as UpdateProfileInput, dr as UploadInitResponse, ds as UploadResult, dt as UploadService, du as VerifyOtpInput, dv as combine, dw as combineObject, dx as createCimplifyClient, dy as createElements, dz as err, dA as flatMap, dB as fromPromise, dC as getOrElse, dD as isErr, dE as isOk, dF as mapError, dG as mapResult, dH as ok, dI as toNullable, dJ as tryCatch, dK as unwrap } from './client-D16qfHAB.mjs';
2
+ import { b9 as ProductWithDetails, j as ApiError } from './product-BgFOFmQw.mjs';
3
+ export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-BgFOFmQw.mjs';
4
+ export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-Bu76UyFz.mjs';
5
5
  export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.mjs';
6
- export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-C-2gApyQ.mjs';
7
- export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-CZBQw-Rh.mjs';
6
+ export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-B7qzWdaJ.mjs';
7
+ export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-BfOaGqjx.mjs';
8
8
  export { generateIdempotencyKey } from './advanced.mjs';
9
9
  import 'libphonenumber-js';
10
10
 
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StorefrontBootstrap, dc as SubscriptionService, dd as SupportService, de as Table, df as TableInfo, dg as TimeRange, dh as TimeRanges, di as TimeSlot, dj as TrackCategoryViewOptions, dk as TrackProductViewOptions, dl as UpdateAddressInput, dm as UpdateOrderStatusInput, dn as UpdateProfileInput, dp as UploadInitResponse, dq as UploadResult, dr as UploadService, ds as VerifyOtpInput, dt as combine, du as combineObject, dv as createCimplifyClient, dw as createElements, dx as err, dy as flatMap, dz as fromPromise, dA as getOrElse, dB as isErr, dC as isOk, dD as mapError, dE as mapResult, dF as ok, dG as toNullable, dH as tryCatch, dI as unwrap } from './client-ciWgfgLw.js';
2
- import { b9 as ProductWithDetails, j as ApiError } from './product-_GFoaPHU.js';
3
- export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-_GFoaPHU.js';
4
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-DTGS0QC1.js';
1
+ export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StoreCreditBalance, dc as StoreCreditQueries, dd as StorefrontBootstrap, de as SubscriptionService, df as SupportService, dg as Table, dh as TableInfo, di as TimeRange, dj as TimeRanges, dk as TimeSlot, dl as TrackCategoryViewOptions, dm as TrackProductViewOptions, dn as UpdateAddressInput, dp as UpdateOrderStatusInput, dq as UpdateProfileInput, dr as UploadInitResponse, ds as UploadResult, dt as UploadService, du as VerifyOtpInput, dv as combine, dw as combineObject, dx as createCimplifyClient, dy as createElements, dz as err, dA as flatMap, dB as fromPromise, dC as getOrElse, dD as isErr, dE as isOk, dF as mapError, dG as mapResult, dH as ok, dI as toNullable, dJ as tryCatch, dK as unwrap } from './client-Cn5trGYV.js';
2
+ import { b9 as ProductWithDetails, j as ApiError } from './product-BgFOFmQw.js';
3
+ export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-BgFOFmQw.js';
4
+ export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-Moe4cGMB.js';
5
5
  export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.js';
6
- export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-CfemTORM.js';
7
- export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-DNeyoO7y.js';
6
+ export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-mVIJIJcq.js';
7
+ export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-CS1IsORZ.js';
8
8
  export { generateIdempotencyKey } from './advanced.js';
9
9
  import 'libphonenumber-js';
10
10
 
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkIQLJJW2H_js = require('./chunk-IQLJJW2H.js');
4
4
  var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
5
- var chunkQS4XDVHI_js = require('./chunk-QS4XDVHI.js');
5
+ var chunk5BPBDWAA_js = require('./chunk-5BPBDWAA.js');
6
6
  var chunkCV5QMDQS_js = require('./chunk-CV5QMDQS.js');
7
7
  var chunk7Y2O3E4D_js = require('./chunk-7Y2O3E4D.js');
8
8
  var chunkXA3ZNR75_js = require('./chunk-XA3ZNR75.js');
@@ -155,35 +155,39 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
155
155
  });
156
156
  Object.defineProperty(exports, "ActivityService", {
157
157
  enumerable: true,
158
- get: function () { return chunkQS4XDVHI_js.ActivityService; }
158
+ get: function () { return chunk5BPBDWAA_js.ActivityService; }
159
159
  });
160
160
  Object.defineProperty(exports, "CimplifyClient", {
161
161
  enumerable: true,
162
- get: function () { return chunkQS4XDVHI_js.CimplifyClient; }
162
+ get: function () { return chunk5BPBDWAA_js.CimplifyClient; }
163
163
  });
164
164
  Object.defineProperty(exports, "DeliveryService", {
165
165
  enumerable: true,
166
- get: function () { return chunkQS4XDVHI_js.DeliveryService; }
166
+ get: function () { return chunk5BPBDWAA_js.DeliveryService; }
167
167
  });
168
168
  Object.defineProperty(exports, "PlacesService", {
169
169
  enumerable: true,
170
- get: function () { return chunkQS4XDVHI_js.PlacesService; }
170
+ get: function () { return chunk5BPBDWAA_js.PlacesService; }
171
+ });
172
+ Object.defineProperty(exports, "StoreCreditQueries", {
173
+ enumerable: true,
174
+ get: function () { return chunk5BPBDWAA_js.StoreCreditQueries; }
171
175
  });
172
176
  Object.defineProperty(exports, "SubscriptionService", {
173
177
  enumerable: true,
174
- get: function () { return chunkQS4XDVHI_js.SubscriptionService; }
178
+ get: function () { return chunk5BPBDWAA_js.SubscriptionService; }
175
179
  });
176
180
  Object.defineProperty(exports, "SupportService", {
177
181
  enumerable: true,
178
- get: function () { return chunkQS4XDVHI_js.SupportService; }
182
+ get: function () { return chunk5BPBDWAA_js.SupportService; }
179
183
  });
180
184
  Object.defineProperty(exports, "UploadService", {
181
185
  enumerable: true,
182
- get: function () { return chunkQS4XDVHI_js.UploadService; }
186
+ get: function () { return chunk5BPBDWAA_js.UploadService; }
183
187
  });
184
188
  Object.defineProperty(exports, "createCimplifyClient", {
185
189
  enumerable: true,
186
- get: function () { return chunkQS4XDVHI_js.createCimplifyClient; }
190
+ get: function () { return chunk5BPBDWAA_js.createCimplifyClient; }
187
191
  });
188
192
  Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
189
193
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  export { CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, getVariantDisplayName, isCimplifyAsset, resolveGallery } from './chunk-E6T5VJMG.mjs';
2
2
  export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
3
- export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-H337NF4O.mjs';
3
+ export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-LBFTEXGD.mjs';
4
4
  import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-3BKMNVTR.mjs';
5
5
  export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENTS_AUTH_CONTACT_TYPES, ELEMENTS_AUTH_MODES, ELEMENTS_AUTH_PROMPTS, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, startSignIn, toNullable, tryCatch, unwrap } from './chunk-3BKMNVTR.mjs';
6
6
  export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-TD3AY34U.mjs';
package/dist/mock/cli.mjs CHANGED
@@ -3151,6 +3151,14 @@ function buildV1(deps) {
3151
3151
  const body = await c.req.json().catch(() => ({}));
3152
3152
  return tryRoute(c, () => deps.uploads.confirm(body));
3153
3153
  });
3154
+ app.get(
3155
+ "/store-credit/balance",
3156
+ (c) => c.json({ data: { balance: "0.00", currency: "USD" } })
3157
+ );
3158
+ app.post("/activity/session", async (c) => {
3159
+ await c.req.json().catch(() => ({}));
3160
+ return c.json({ data: { recorded: true } });
3161
+ });
3154
3162
  app.post("/activity/events", async (c) => {
3155
3163
  const body = await c.req.json().catch(() => ({}));
3156
3164
  return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
@@ -5159,17 +5167,27 @@ function recalculateTotals(opts) {
5159
5167
  const lineTotal = multiply(add(item.price, item.add_ons_price), item.quantity);
5160
5168
  subtotal = add(subtotal, lineTotal);
5161
5169
  }
5162
- const totalDiscounts = opts.appliedCouponCodes.includes("WELCOME10") ? percent(subtotal, 10) : "0.00";
5163
- const afterDiscount = money(parseFloat(subtotal) - parseFloat(totalDiscounts));
5164
- const tax = "0.00";
5165
- const service = "0.00";
5166
- const total = add(add(afterDiscount, tax), service);
5170
+ const subtotalNum = parseFloat(subtotal);
5171
+ const rawDiscount = opts.appliedCouponCodes.includes("WELCOME10") ? parseFloat(percent(subtotal, 10)) : 0;
5172
+ const cappedDiscount = Math.min(rawDiscount, subtotalNum);
5173
+ const taxable = Math.max(subtotalNum - cappedDiscount, 0);
5174
+ const service = 0;
5175
+ const rate2 = opts.taxRatePct / 100;
5176
+ let tax;
5177
+ let total;
5178
+ if (opts.taxInclusive) {
5179
+ tax = 0;
5180
+ total = subtotalNum + service - cappedDiscount;
5181
+ } else {
5182
+ tax = (taxable + service) * rate2;
5183
+ total = subtotalNum + service + tax - cappedDiscount;
5184
+ }
5167
5185
  return {
5168
5186
  subtotal,
5169
- total_discounts: totalDiscounts,
5170
- tax_amount: tax,
5171
- service_charge: service,
5172
- total_price: total
5187
+ total_discounts: money(cappedDiscount),
5188
+ tax_amount: money(tax),
5189
+ service_charge: money(service),
5190
+ total_price: money(total)
5173
5191
  };
5174
5192
  }
5175
5193
  function computeLineKey(opts) {
@@ -5302,7 +5320,10 @@ function toUICart(registry, cart) {
5302
5320
  total_price: cart.total_price,
5303
5321
  currency: cart.currency,
5304
5322
  tax_rate: cart.tax_rate,
5305
- service_charge_rate: cart.service_charge_rate
5323
+ service_charge_rate: cart.service_charge_rate,
5324
+ tax_inclusive: false,
5325
+ deposit_required: false,
5326
+ deposit_amount: "0.00"
5306
5327
  },
5307
5328
  customer_info: {
5308
5329
  name: cart.customer_name,
@@ -5321,6 +5342,7 @@ function toUICart(registry, cart) {
5321
5342
 
5322
5343
  // src/mock/domain/cart/index.ts
5323
5344
  var CART_TTL_MS = 24 * 60 * 60 * 1e3;
5345
+ var TAX_RATE_PCT = 0;
5324
5346
  var ZERO2 = "0.00";
5325
5347
  function createCartService(opts) {
5326
5348
  const { registry, clock, ids, bus, inventory } = opts;
@@ -5362,7 +5384,8 @@ function createCartService(opts) {
5362
5384
  const recalc = (cart) => {
5363
5385
  const totals = recalculateTotals({
5364
5386
  items: cart.items,
5365
- appliedCouponCodes: cart.applied_discount_codes});
5387
+ appliedCouponCodes: cart.applied_discount_codes,
5388
+ taxRatePct: TAX_RATE_PCT});
5366
5389
  const updated = {
5367
5390
  ...cart,
5368
5391
  ...totals,