@cimplify/sdk 0.90.0 → 0.92.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 (67) hide show
  1. package/dist/advanced.d.mts +3 -3
  2. package/dist/advanced.d.ts +3 -3
  3. package/dist/advanced.js +20 -20
  4. package/dist/advanced.mjs +1 -1
  5. package/dist/{chunk-JVWFIFQ7.js → chunk-3MBMIEWT.js} +4 -4
  6. package/dist/{chunk-2UDEWILL.mjs → chunk-3XD2FVP4.mjs} +117 -35
  7. package/dist/{chunk-NGE37REW.mjs → chunk-54H2YYIW.mjs} +2 -2
  8. package/dist/{chunk-BN4V4ONE.js → chunk-DCRN67NO.js} +158 -73
  9. package/dist/{chunk-T7Z25EY4.js → chunk-HKN3YG76.js} +84 -0
  10. package/dist/{chunk-GHFDYM5K.js → chunk-IVJEUGWF.js} +10 -1
  11. package/dist/{chunk-KJP4U6L3.js → chunk-OAHSF542.js} +12 -0
  12. package/dist/{chunk-NNGKC3MM.mjs → chunk-PYBFTMHI.mjs} +12 -0
  13. package/dist/{chunk-OZDDHSIB.mjs → chunk-RRBY35TJ.mjs} +80 -1
  14. package/dist/{chunk-ZU4ZRYUR.mjs → chunk-T7LDBZZZ.mjs} +10 -1
  15. package/dist/{client-YiSelM7x.d.mts → client-BQbSKlHS.d.mts} +90 -11
  16. package/dist/{client-DMttx1xk.d.mts → client-Bw4HtLP1.d.mts} +2 -2
  17. package/dist/{client-CR1f94wY.d.ts → client-CeW3acve.d.ts} +90 -11
  18. package/dist/{client-CqpOcbin.d.ts → client-Otzv_rgP.d.ts} +2 -2
  19. package/dist/{index-DD9z396M.d.mts → index-CmIboQjl.d.mts} +3 -3
  20. package/dist/{index-CxTVu0HZ.d.ts → index-DgoRwz8l.d.ts} +3 -3
  21. package/dist/index.d.mts +49 -7
  22. package/dist/index.d.ts +49 -7
  23. package/dist/index.js +103 -83
  24. package/dist/index.mjs +5 -5
  25. package/dist/mock/cli.mjs +12 -0
  26. package/dist/mock/library.js +12 -0
  27. package/dist/mock/library.mjs +12 -0
  28. package/dist/mock/msw.js +12 -0
  29. package/dist/mock/msw.mjs +12 -0
  30. package/dist/{payment-5d8FTA1q.d.mts → payment-BFtLqiG2.d.mts} +1 -1
  31. package/dist/{payment-BX7ccIKY.d.ts → payment-Cq8FT1B6.d.ts} +1 -1
  32. package/dist/{price-DtfP_Xfq.d.ts → price-DaFXT-Lr.d.ts} +1 -1
  33. package/dist/{price-arl_4Rzn.d.mts → price-DleDWk_s.d.mts} +1 -1
  34. package/dist/{product-DZX4QuKS.d.ts → product-bZ8G5Z8D.d.mts} +38 -0
  35. package/dist/{product-DZX4QuKS.d.mts → product-bZ8G5Z8D.d.ts} +38 -0
  36. package/dist/react.d.mts +71 -6
  37. package/dist/react.d.ts +71 -6
  38. package/dist/react.js +466 -337
  39. package/dist/react.mjs +398 -272
  40. package/dist/{server-BceZMxcK.d.mts → server-D-iK-bNt.d.mts} +1 -1
  41. package/dist/{server-DoJGSC7L.d.ts → server-DwsY9hlX.d.ts} +1 -1
  42. package/dist/server.d.mts +4 -4
  43. package/dist/server.d.ts +4 -4
  44. package/dist/server.js +7 -7
  45. package/dist/server.mjs +2 -2
  46. package/dist/styles.css +1 -1
  47. package/dist/testing/msw.d.mts +2 -2
  48. package/dist/testing/msw.d.ts +2 -2
  49. package/dist/testing/msw.js +2 -2
  50. package/dist/testing/msw.mjs +1 -1
  51. package/dist/testing/suite.d.mts +6 -6
  52. package/dist/testing/suite.d.ts +6 -6
  53. package/dist/testing/suite.js +23 -23
  54. package/dist/testing/suite.mjs +4 -4
  55. package/dist/testing.d.mts +5 -5
  56. package/dist/testing.d.ts +5 -5
  57. package/dist/testing.js +79 -79
  58. package/dist/testing.mjs +5 -5
  59. package/dist/utils.d.mts +4 -4
  60. package/dist/utils.d.ts +4 -4
  61. package/package.json +1 -1
  62. package/registry/booking-page.json +1 -1
  63. package/registry/chat-widget.json +1 -1
  64. package/registry/customer-input-fields.json +1 -1
  65. package/registry/date-slot-picker.json +1 -1
  66. package/registry/product-customizer.json +1 -1
  67. package/registry/rental-service-card.json +1 -1
package/dist/index.d.mts CHANGED
@@ -1,10 +1,11 @@
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 BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, X as ChatReplyCard, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ContactType, ak as ContentType, al as CreateAddressInput, am as CreateMobileMoneyInput, an as Customer, ao as CustomerAddress, ap as CustomerBooking, aq as CustomerBookingServiceItem, ar as CustomerLinkPreferences, as as CustomerMobileMoney, at as CustomerServicePreferences, au as DEFAULT_COUNTRY, av as DEFAULT_CURRENCY, aw as DEVICE_TYPE, ax as DayAvailability, ay as DeliveryFeeDetails, az as DeliveryFeeResponse, aA as DeliveryOption, aB as DeliveryOptionsResponse, aC as DeliveryService, aD as DepositResult, aE as DeviceType, aF as DismissMessageResponse, aG as ELEMENTS_AUTH_CONTACT_TYPES, aH as ELEMENTS_AUTH_MODES, aI as ELEMENTS_AUTH_PROMPTS, aJ as ELEMENT_TYPES, aK as EVENT_TYPES, aL as ElementAppearance, aM as ElementEventHandler, aN as ElementEventType, aO as ElementOptions, aP as ElementType, aQ as ElementsAuthContactType, aR as ElementsAuthMode, aS as ElementsAuthOptions, aT as ElementsAuthPrompt, aU as ElementsCheckoutData, aV as ElementsCheckoutResult, aW as ElementsCustomerInfo, aX as ElementsOptions, aY as EnrichedOrder, aZ as EnrichedOrderItem, a_ as EnrollAndLinkOrderInput, a$ as EnrollAndLinkOrderResult, b0 as EnrollmentData, b1 as Err, b2 as FeeBearerType, b3 as FetchQuoteInput, b4 as FulfillmentLink, b5 as FulfillmentStatus, b6 as FulfillmentSummaryDTO, b7 as FulfillmentType, b8 as FxQuote, b9 as FxQuoteRequest, ba as FxQuoteStatus, bb as FxRateResponse, bc as FxService, bd as GetAvailableSlotsInput, be as GetDeliveryOptionsParams, bf as GetOrdersOptions, bg as GetProductsOptions, bh as GroupOrderInfo, bi as IframeToParentMessage, bj as InventoryService, bk as LINK_MUTATION, bl as LINK_QUERY, bm as LifecyclePhase, bn as LineItem, bo as LineType, bp as LinkData, bq as LinkEnrollResult, br as LinkService, bs as LinkSession, bt as LinkStatusResult, bu as LiteBootstrap, bv as LiteDayHours, bw as LiteHoursRange, bx as LiteService, by as Location, bz as LocationBooking, bA as LocationTaxBehavior, bB as LocationTaxOverrides, bC as LocationTimeProfile, bD as LocationWithDetails, bE as MESSAGE_TYPES, bF as MOBILE_MONEY_PROVIDER, bG as MobileMoneyData, bH as MobileMoneyDetails, bI as MobileMoneyProvider, bJ as NextAction, bK as ORDER_MUTATION, bL as ORDER_TYPE, bM as ObservabilityHooks, bN as Ok, bO as Order, bP as OrderCustomerInfo, bQ as OrderDiscountInfo, bR as OrderFilter, bS as OrderFulfillmentSummary, bT as OrderGroup, bU as OrderGroupDetails, bV as OrderGroupPayment, bW as OrderGroupPaymentState, bX as OrderGroupPaymentStatus, bY as OrderGroupPaymentSummary, bZ as OrderGroupStatus, b_ as OrderHistory, b$ as OrderLineState, c0 as OrderLineStatus, c1 as OrderLocationInfo, c2 as OrderPaymentEvent, c3 as OrderPricingView, c4 as OrderQueries, c5 as OrderSplitDetail, c6 as OrderStaffInfo, c7 as OrderStatus, c8 as OrderTimestampsDTO, c9 as OrderType, ca as Origin, cb as OriginActor, cc as OriginChannel, cd as OtpResult, ce as PAYMENT_METHOD, cf as PAYMENT_MUTATION, cg as PAYMENT_STATE, ch as PICKUP_TIME_TYPE, ci as ParentToIframeMessage, cj as PaymentInfoDTO, ck as PaymentMethodInfo, cl as PaymentState, cm as PickupTime, cn as PickupTimeType, co as PlaceDetailsResponse, cp as PlacesService, cq as PriceQuote, cr as PricingOverrides, cs as ProcessAndResolveOptions, ct as ProcessCheckoutOptions, cu as ProcessCheckoutResult, cv as ProviderResolutionSource, cw as QuoteBundleSelectionInput, cx as QuoteCompositeSelectionInput, cy as QuoteDynamicBuckets, cz as QuoteStatus, cA as QuoteUiMessage, cB as ReadRequestOptions, cC as RefreshQuoteInput, cD as RefreshQuoteResult, cE as RefundOrderInput, cF as RelatedCandidate, cG as RelatedProduct, cH as RelatedProductsEnrichment, cI as RelationType, cJ as ReminderMethod, cK as ReminderSettings, cL as ReorderResult, cM as RequestContext, cN as RequestErrorEvent, cO as RequestOptions, cP as RequestOtpInput, cQ as RequestSource, cR as RequestStartEvent, cS as RequestSuccessEvent, cT as RescheduleBookingInput, cU as RescheduleBookingResult, cV as RescheduleHistoryRecord, cW as ResourceAssignment, cX as ResourceInfo, cY as Result, cZ as RetryEvent, c_ as RevokeAllSessionsResult, c$ as RevokeSessionResult, d0 as Room, d1 as SchedulingMetadata, d2 as SchedulingResult, d3 as SchedulingService, d4 as SenderType, d5 as Service, d6 as ServiceAvailabilityParams, d7 as ServiceAvailabilityResult, d8 as ServiceCharge, d9 as ServiceNotes, da as ServiceScheduleRequest, db as ServiceStatus, dc as SessionActivityData, dd as SessionChangeEvent, de as SessionMessage, df as SlotResourceInfo, dg as SlotStaffInfo, dh as Staff, di as StaffAssignment, dj as StaffRole, dk as StaffScheduleItem, dl as StockLevel, dm as StockStatus, dn as StoreCreditBalance, dp as StoreCreditQueries, dq as StorefrontBootstrap, dr as SubscriptionService, ds as SupportService, dt as Table, du as TimeRange, dv as TimeRanges, dw as TimeSlot, dx as TrackCategoryViewOptions, dy as TrackProductViewOptions, dz as UpdateAddressInput, dA as UpdateOrderStatusInput, dB as UpdateProfileInput, dC as UploadInitResponse, dD as UploadResult, dE as UploadService, dF as VerifyOtpInput, dG as chatMessageCards, dH as combine, dI as combineObject, dJ as createCimplifyClient, dK as createElements, dL as err, dM as flatMap, dN as fromPromise, dO as getOrElse, dP as isErr, dQ as isOk, dR as mapError, dS as mapResult, dT as ok, dU as toNullable, dV as tryCatch, dW as unwrap } from './client-YiSelM7x.mjs';
2
- import { bb as ProductWithDetails, j as ApiError } from './product-DZX4QuKS.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 BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, av as DurationUnit, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, aZ as Product, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-DZX4QuKS.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-DD9z396M.mjs';
1
+ import { X as ChatReplyCard } from './client-BQbSKlHS.mjs';
2
+ 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 BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsResponse, aD as DeliveryService, aE as DepositResult, aF as DeviceType, aG as DismissMessageResponse, aH as ELEMENTS_AUTH_CONTACT_TYPES, aI as ELEMENTS_AUTH_MODES, aJ as ELEMENTS_AUTH_PROMPTS, aK as ELEMENT_TYPES, aL as EVENT_TYPES, aM as ElementAppearance, aN as ElementEventHandler, aO as ElementEventType, aP as ElementOptions, aQ as ElementType, aR as ElementsAuthContactType, aS as ElementsAuthMode, aT as ElementsAuthOptions, aU as ElementsAuthPrompt, aV as ElementsCheckoutData, aW as ElementsCheckoutResult, aX as ElementsCustomerInfo, aY as ElementsOptions, aZ as EnrichedOrder, a_ as EnrichedOrderItem, a$ as EnrollAndLinkOrderInput, b0 as EnrollAndLinkOrderResult, b1 as EnrollmentData, b2 as Err, b3 as FeeBearerType, b4 as FetchQuoteInput, b5 as FulfillmentLink, b6 as FulfillmentStatus, b7 as FulfillmentSummaryDTO, b8 as FulfillmentType, b9 as FxQuote, ba as FxQuoteRequest, bb as FxQuoteStatus, bc as FxRateResponse, bd as FxService, be as GetAvailableSlotsInput, bf as GetDeliveryOptionsParams, bg as GetOrdersOptions, bh as GetProductsOptions, bi as GroupOrderInfo, bj as IframeToParentMessage, bk as InventoryService, bl as LINK_MUTATION, bm as LINK_QUERY, bn as LifecyclePhase, bo as LineItem, bp as LineType, bq as LinkData, br as LinkEnrollResult, bs as LinkService, bt as LinkSession, bu as LinkStatusResult, bv as LiteBootstrap, bw as LiteDayHours, bx as LiteHoursRange, by as LiteService, bz as Location, bA as LocationBooking, bB as LocationTaxBehavior, bC as LocationTaxOverrides, bD as LocationTimeProfile, bE as LocationWithDetails, bF as MESSAGE_TYPES, bG as MOBILE_MONEY_PROVIDER, bH as MobileMoneyData, bI as MobileMoneyDetails, bJ as MobileMoneyProvider, bK as NextAction, bL as ORDER_MUTATION, bM as ORDER_TYPE, bN as ObservabilityHooks, bO as Ok, bP as Order, bQ as OrderCustomerInfo, bR as OrderDiscountInfo, bS as OrderFilter, bT as OrderFulfillmentSummary, bU as OrderGroup, bV as OrderGroupDetails, bW as OrderGroupPayment, bX as OrderGroupPaymentState, bY as OrderGroupPaymentStatus, bZ as OrderGroupPaymentSummary, b_ as OrderGroupStatus, b$ as OrderHistory, c0 as OrderLineState, c1 as OrderLineStatus, c2 as OrderLocationInfo, c3 as OrderPaymentEvent, c4 as OrderPricingView, c5 as OrderQueries, c6 as OrderSplitDetail, c7 as OrderStaffInfo, c8 as OrderStatus, c9 as OrderTimestampsDTO, ca as OrderType, cb as Origin, cc as OriginActor, cd as OriginChannel, ce as OtpResult, cf as PAYMENT_METHOD, cg as PAYMENT_MUTATION, ch as PAYMENT_STATE, ci as PICKUP_TIME_TYPE, cj as ParentToIframeMessage, ck as PaymentInfoDTO, cl as PaymentMethodInfo, cm as PaymentState, cn as PickupTime, co as PickupTimeType, cp as PlaceDetailsResponse, cq as PlacesService, cr as PriceQuote, cs as PricingOverrides, ct as ProcessAndResolveOptions, cu as ProcessCheckoutOptions, cv as ProcessCheckoutResult, cw as ProviderResolutionSource, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cz as QuoteDynamicBuckets, cA as QuoteStatus, cB as QuoteUiMessage, cC as ReadRequestOptions, cD as RefreshQuoteInput, cE as RefreshQuoteResult, cF as RefundOrderInput, cG as RelatedCandidate, cH as RelatedProduct, cI as RelatedProductsEnrichment, cJ as RelationType, cK as ReminderMethod, cL as ReminderSettings, cM as ReorderResult, cN as RequestContext, cO as RequestErrorEvent, cP as RequestOptions, cQ as RequestOtpInput, cR as RequestSource, cS as RequestStartEvent, cT as RequestSuccessEvent, cU as RescheduleBookingInput, cV as RescheduleBookingResult, cW as RescheduleHistoryRecord, cX as ResourceAssignment, cY as ResourceInfo, cZ as Result, c_ as RetryEvent, c$ as RevokeAllSessionsResult, d0 as RevokeSessionResult, d1 as Room, d2 as SchedulingMetadata, d3 as SchedulingResult, d4 as SchedulingService, d5 as SenderType, d6 as Service, d7 as ServiceAvailabilityParams, d8 as ServiceAvailabilityResult, d9 as ServiceCharge, da as ServiceNotes, db as ServiceScheduleRequest, dc as ServiceStatus, dd as SessionActivityData, de as SessionChangeEvent, df as SessionMessage, dg as SlotResourceInfo, dh as SlotStaffInfo, di as Staff, dj as StaffAssignment, dk as StaffRole, dl as StaffScheduleItem, dm as StockLevel, dn as StockStatus, dp as StoreCreditBalance, dq as StoreCreditQueries, dr as StorefrontBootstrap, ds as SubscriptionService, dt as SupportService, du as Table, dv as TimeRange, dw as TimeRanges, dx as TimeSlot, dy as TrackCategoryViewOptions, dz as TrackProductViewOptions, dA as UpdateAddressInput, dB as UpdateOrderStatusInput, dC as UpdateProfileInput, dD as UploadInitResponse, dE as UploadResult, dF as UploadService, dG as VerifyOtpInput, dH as combine, dI as combineObject, dJ as createCimplifyClient, dK as createElements, dL as err, dM as flatMap, dN as fromPromise, dO as getOrElse, dP as isErr, dQ as isOk, dR as mapError, dS as mapResult, dT as ok, dU as toNullable, dV as tryCatch, dW as unwrap } from './client-BQbSKlHS.mjs';
3
+ import { bb as ProductWithDetails, aZ as Product, av as DurationUnit, j as ApiError } from './product-bZ8G5Z8D.mjs';
4
+ 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 BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-bZ8G5Z8D.mjs';
5
+ 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-CmIboQjl.mjs';
5
6
  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-5d8FTA1q.mjs';
7
- export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-arl_4Rzn.mjs';
7
+ 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-BFtLqiG2.mjs';
8
+ export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-DleDWk_s.mjs';
8
9
  export { generateIdempotencyKey } from './advanced.mjs';
9
10
  import 'libphonenumber-js';
10
11
 
@@ -31,6 +32,11 @@ declare function resolveGallery(product: GalleryProduct, selectedVariantId?: str
31
32
  */
32
33
  declare function allGalleryImages(product: GalleryProduct): GalleryImage[];
33
34
 
35
+ /** Reads structured card references an AI reply may carry in `metadata.cards`. */
36
+ declare function chatMessageCards(message: {
37
+ metadata: Record<string, unknown>;
38
+ }): ChatReplyCard[];
39
+
34
40
  interface CustomerGroup {
35
41
  id: string;
36
42
  business_id: string;
@@ -64,6 +70,42 @@ interface CustomerPricingInfo {
64
70
  items: QuantityBreak[];
65
71
  }
66
72
 
73
+ type BasisFields = Pick<Product, "type" | "price_basis" | "duration_unit" | "scheduling_mode">;
74
+ /** Whether this service schedules whole stays (per-duration-unit billing
75
+ * default, unit reservations) rather than intraday slots. The server-resolved
76
+ * `scheduling_mode` wins; the duration-unit fallback mirrors the backend's
77
+ * `DurationUnit::scheduling_mode`. */
78
+ declare function isMultiDayService(product: BasisFields): boolean;
79
+ /**
80
+ * What one unit of the display price buys — "night", "person", "week"… —
81
+ * or null when the price is simply the price (flat services, plain
82
+ * products, and intraday services that never declared a basis, which
83
+ * billed per person all along and don't need a new label).
84
+ */
85
+ declare function priceBasisLabel(product: BasisFields): string | null;
86
+ /**
87
+ * How many billing periods a stay spans, counted in the service's duration
88
+ * unit — a faithful port of `LineConfiguration::service_periods`: whole UTC
89
+ * days between the dates (min 1), weeks round up, months/years by calendar
90
+ * with a partial period counting as one more.
91
+ */
92
+ declare function stayPeriods(scheduledStart: string, scheduledEnd: string, durationUnit: DurationUnit | null | undefined): number;
93
+ /** "3 nights", "2 weeks" — the stay's billing length, spelled out. */
94
+ declare function stayLength(scheduledStart: string, scheduledEnd: string, durationUnit: DurationUnit | null | undefined): string;
95
+ /**
96
+ * The factor the server multiplies a service's unit price by — a faithful
97
+ * port of `LineConfiguration::billing_multiplier`: resolve the basis (an
98
+ * undeclared basis defaults per the scheduling mode), then flat = 1,
99
+ * per-person = party size, per-duration-unit = stay periods, all times units.
100
+ * Returns null for non-services — their total is plain price × quantity.
101
+ */
102
+ declare function serviceBillingMultiplier(product: BasisFields, selection: {
103
+ quantity: number;
104
+ units?: number;
105
+ scheduledStart?: string | null;
106
+ scheduledEnd?: string | null;
107
+ }): number | null;
108
+
67
109
  interface FrontendContext {
68
110
  location_id?: string;
69
111
  }
@@ -121,4 +163,4 @@ interface AssetUrlOptions extends AssetTransform {
121
163
  declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
122
164
  declare function isCimplifyAsset(src: string, base?: string): boolean;
123
165
 
124
- export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, allGalleryImages, assetUrl, isCimplifyAsset, resolveGallery, signInSilent };
166
+ export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, allGalleryImages, assetUrl, chatMessageCards, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
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 BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, X as ChatReplyCard, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ContactType, ak as ContentType, al as CreateAddressInput, am as CreateMobileMoneyInput, an as Customer, ao as CustomerAddress, ap as CustomerBooking, aq as CustomerBookingServiceItem, ar as CustomerLinkPreferences, as as CustomerMobileMoney, at as CustomerServicePreferences, au as DEFAULT_COUNTRY, av as DEFAULT_CURRENCY, aw as DEVICE_TYPE, ax as DayAvailability, ay as DeliveryFeeDetails, az as DeliveryFeeResponse, aA as DeliveryOption, aB as DeliveryOptionsResponse, aC as DeliveryService, aD as DepositResult, aE as DeviceType, aF as DismissMessageResponse, aG as ELEMENTS_AUTH_CONTACT_TYPES, aH as ELEMENTS_AUTH_MODES, aI as ELEMENTS_AUTH_PROMPTS, aJ as ELEMENT_TYPES, aK as EVENT_TYPES, aL as ElementAppearance, aM as ElementEventHandler, aN as ElementEventType, aO as ElementOptions, aP as ElementType, aQ as ElementsAuthContactType, aR as ElementsAuthMode, aS as ElementsAuthOptions, aT as ElementsAuthPrompt, aU as ElementsCheckoutData, aV as ElementsCheckoutResult, aW as ElementsCustomerInfo, aX as ElementsOptions, aY as EnrichedOrder, aZ as EnrichedOrderItem, a_ as EnrollAndLinkOrderInput, a$ as EnrollAndLinkOrderResult, b0 as EnrollmentData, b1 as Err, b2 as FeeBearerType, b3 as FetchQuoteInput, b4 as FulfillmentLink, b5 as FulfillmentStatus, b6 as FulfillmentSummaryDTO, b7 as FulfillmentType, b8 as FxQuote, b9 as FxQuoteRequest, ba as FxQuoteStatus, bb as FxRateResponse, bc as FxService, bd as GetAvailableSlotsInput, be as GetDeliveryOptionsParams, bf as GetOrdersOptions, bg as GetProductsOptions, bh as GroupOrderInfo, bi as IframeToParentMessage, bj as InventoryService, bk as LINK_MUTATION, bl as LINK_QUERY, bm as LifecyclePhase, bn as LineItem, bo as LineType, bp as LinkData, bq as LinkEnrollResult, br as LinkService, bs as LinkSession, bt as LinkStatusResult, bu as LiteBootstrap, bv as LiteDayHours, bw as LiteHoursRange, bx as LiteService, by as Location, bz as LocationBooking, bA as LocationTaxBehavior, bB as LocationTaxOverrides, bC as LocationTimeProfile, bD as LocationWithDetails, bE as MESSAGE_TYPES, bF as MOBILE_MONEY_PROVIDER, bG as MobileMoneyData, bH as MobileMoneyDetails, bI as MobileMoneyProvider, bJ as NextAction, bK as ORDER_MUTATION, bL as ORDER_TYPE, bM as ObservabilityHooks, bN as Ok, bO as Order, bP as OrderCustomerInfo, bQ as OrderDiscountInfo, bR as OrderFilter, bS as OrderFulfillmentSummary, bT as OrderGroup, bU as OrderGroupDetails, bV as OrderGroupPayment, bW as OrderGroupPaymentState, bX as OrderGroupPaymentStatus, bY as OrderGroupPaymentSummary, bZ as OrderGroupStatus, b_ as OrderHistory, b$ as OrderLineState, c0 as OrderLineStatus, c1 as OrderLocationInfo, c2 as OrderPaymentEvent, c3 as OrderPricingView, c4 as OrderQueries, c5 as OrderSplitDetail, c6 as OrderStaffInfo, c7 as OrderStatus, c8 as OrderTimestampsDTO, c9 as OrderType, ca as Origin, cb as OriginActor, cc as OriginChannel, cd as OtpResult, ce as PAYMENT_METHOD, cf as PAYMENT_MUTATION, cg as PAYMENT_STATE, ch as PICKUP_TIME_TYPE, ci as ParentToIframeMessage, cj as PaymentInfoDTO, ck as PaymentMethodInfo, cl as PaymentState, cm as PickupTime, cn as PickupTimeType, co as PlaceDetailsResponse, cp as PlacesService, cq as PriceQuote, cr as PricingOverrides, cs as ProcessAndResolveOptions, ct as ProcessCheckoutOptions, cu as ProcessCheckoutResult, cv as ProviderResolutionSource, cw as QuoteBundleSelectionInput, cx as QuoteCompositeSelectionInput, cy as QuoteDynamicBuckets, cz as QuoteStatus, cA as QuoteUiMessage, cB as ReadRequestOptions, cC as RefreshQuoteInput, cD as RefreshQuoteResult, cE as RefundOrderInput, cF as RelatedCandidate, cG as RelatedProduct, cH as RelatedProductsEnrichment, cI as RelationType, cJ as ReminderMethod, cK as ReminderSettings, cL as ReorderResult, cM as RequestContext, cN as RequestErrorEvent, cO as RequestOptions, cP as RequestOtpInput, cQ as RequestSource, cR as RequestStartEvent, cS as RequestSuccessEvent, cT as RescheduleBookingInput, cU as RescheduleBookingResult, cV as RescheduleHistoryRecord, cW as ResourceAssignment, cX as ResourceInfo, cY as Result, cZ as RetryEvent, c_ as RevokeAllSessionsResult, c$ as RevokeSessionResult, d0 as Room, d1 as SchedulingMetadata, d2 as SchedulingResult, d3 as SchedulingService, d4 as SenderType, d5 as Service, d6 as ServiceAvailabilityParams, d7 as ServiceAvailabilityResult, d8 as ServiceCharge, d9 as ServiceNotes, da as ServiceScheduleRequest, db as ServiceStatus, dc as SessionActivityData, dd as SessionChangeEvent, de as SessionMessage, df as SlotResourceInfo, dg as SlotStaffInfo, dh as Staff, di as StaffAssignment, dj as StaffRole, dk as StaffScheduleItem, dl as StockLevel, dm as StockStatus, dn as StoreCreditBalance, dp as StoreCreditQueries, dq as StorefrontBootstrap, dr as SubscriptionService, ds as SupportService, dt as Table, du as TimeRange, dv as TimeRanges, dw as TimeSlot, dx as TrackCategoryViewOptions, dy as TrackProductViewOptions, dz as UpdateAddressInput, dA as UpdateOrderStatusInput, dB as UpdateProfileInput, dC as UploadInitResponse, dD as UploadResult, dE as UploadService, dF as VerifyOtpInput, dG as chatMessageCards, dH as combine, dI as combineObject, dJ as createCimplifyClient, dK as createElements, dL as err, dM as flatMap, dN as fromPromise, dO as getOrElse, dP as isErr, dQ as isOk, dR as mapError, dS as mapResult, dT as ok, dU as toNullable, dV as tryCatch, dW as unwrap } from './client-CR1f94wY.js';
2
- import { bb as ProductWithDetails, j as ApiError } from './product-DZX4QuKS.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 BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, av as DurationUnit, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, aZ as Product, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-DZX4QuKS.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-CxTVu0HZ.js';
1
+ import { X as ChatReplyCard } from './client-CeW3acve.js';
2
+ 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 BusinessWithLocations, F as CHECKOUT_MODE, G as CHECKOUT_MUTATION, H as CHECKOUT_STEP, I as CONTACT_TYPE, J as CacheOptions, K as CancelBookingInput, L as CancelBookingResult, M as CancelOrderInput, N as CancellationPolicy, O as CartOperations, P as CatalogueQueries, Q as CatalogueResult, R as CatalogueSnapshot, S as CategoryInfo, T as ChatAttachment, U as ChatConversation, V as ChatConversationResponse, W as ChatMessage, Y as ChatReplyContext, Z as ChatUploadAttachment, _ as ChatWidgetStarter, $ as CheckSlotAvailabilityInput, a0 as CheckSlotAvailabilityResult, a1 as CheckoutAddressInfo, a2 as CheckoutCartData, a3 as CheckoutCartItem, a4 as CheckoutCustomerInfo, a5 as CheckoutFormData, a6 as CheckoutInput, a7 as CheckoutMode, ab as CheckoutOperations, a8 as CheckoutOrderType, a9 as CheckoutPaymentMethod, aa as CheckoutResult, ab as CheckoutService, ac as CheckoutStatus, ad as CheckoutStatusContext, ae as CheckoutStep, af as CimplifyClient, ag as CimplifyConfig, ah as CimplifyElement, ai as CimplifyElements, aj as ClaimConversationResult, ak as ContactType, al as ContentType, am as CreateAddressInput, an as CreateMobileMoneyInput, ao as Customer, ap as CustomerAddress, aq as CustomerBooking, ar as CustomerBookingServiceItem, as as CustomerLinkPreferences, at as CustomerMobileMoney, au as CustomerServicePreferences, av as DEFAULT_COUNTRY, aw as DEFAULT_CURRENCY, ax as DEVICE_TYPE, ay as DayAvailability, az as DeliveryFeeDetails, aA as DeliveryFeeResponse, aB as DeliveryOption, aC as DeliveryOptionsResponse, aD as DeliveryService, aE as DepositResult, aF as DeviceType, aG as DismissMessageResponse, aH as ELEMENTS_AUTH_CONTACT_TYPES, aI as ELEMENTS_AUTH_MODES, aJ as ELEMENTS_AUTH_PROMPTS, aK as ELEMENT_TYPES, aL as EVENT_TYPES, aM as ElementAppearance, aN as ElementEventHandler, aO as ElementEventType, aP as ElementOptions, aQ as ElementType, aR as ElementsAuthContactType, aS as ElementsAuthMode, aT as ElementsAuthOptions, aU as ElementsAuthPrompt, aV as ElementsCheckoutData, aW as ElementsCheckoutResult, aX as ElementsCustomerInfo, aY as ElementsOptions, aZ as EnrichedOrder, a_ as EnrichedOrderItem, a$ as EnrollAndLinkOrderInput, b0 as EnrollAndLinkOrderResult, b1 as EnrollmentData, b2 as Err, b3 as FeeBearerType, b4 as FetchQuoteInput, b5 as FulfillmentLink, b6 as FulfillmentStatus, b7 as FulfillmentSummaryDTO, b8 as FulfillmentType, b9 as FxQuote, ba as FxQuoteRequest, bb as FxQuoteStatus, bc as FxRateResponse, bd as FxService, be as GetAvailableSlotsInput, bf as GetDeliveryOptionsParams, bg as GetOrdersOptions, bh as GetProductsOptions, bi as GroupOrderInfo, bj as IframeToParentMessage, bk as InventoryService, bl as LINK_MUTATION, bm as LINK_QUERY, bn as LifecyclePhase, bo as LineItem, bp as LineType, bq as LinkData, br as LinkEnrollResult, bs as LinkService, bt as LinkSession, bu as LinkStatusResult, bv as LiteBootstrap, bw as LiteDayHours, bx as LiteHoursRange, by as LiteService, bz as Location, bA as LocationBooking, bB as LocationTaxBehavior, bC as LocationTaxOverrides, bD as LocationTimeProfile, bE as LocationWithDetails, bF as MESSAGE_TYPES, bG as MOBILE_MONEY_PROVIDER, bH as MobileMoneyData, bI as MobileMoneyDetails, bJ as MobileMoneyProvider, bK as NextAction, bL as ORDER_MUTATION, bM as ORDER_TYPE, bN as ObservabilityHooks, bO as Ok, bP as Order, bQ as OrderCustomerInfo, bR as OrderDiscountInfo, bS as OrderFilter, bT as OrderFulfillmentSummary, bU as OrderGroup, bV as OrderGroupDetails, bW as OrderGroupPayment, bX as OrderGroupPaymentState, bY as OrderGroupPaymentStatus, bZ as OrderGroupPaymentSummary, b_ as OrderGroupStatus, b$ as OrderHistory, c0 as OrderLineState, c1 as OrderLineStatus, c2 as OrderLocationInfo, c3 as OrderPaymentEvent, c4 as OrderPricingView, c5 as OrderQueries, c6 as OrderSplitDetail, c7 as OrderStaffInfo, c8 as OrderStatus, c9 as OrderTimestampsDTO, ca as OrderType, cb as Origin, cc as OriginActor, cd as OriginChannel, ce as OtpResult, cf as PAYMENT_METHOD, cg as PAYMENT_MUTATION, ch as PAYMENT_STATE, ci as PICKUP_TIME_TYPE, cj as ParentToIframeMessage, ck as PaymentInfoDTO, cl as PaymentMethodInfo, cm as PaymentState, cn as PickupTime, co as PickupTimeType, cp as PlaceDetailsResponse, cq as PlacesService, cr as PriceQuote, cs as PricingOverrides, ct as ProcessAndResolveOptions, cu as ProcessCheckoutOptions, cv as ProcessCheckoutResult, cw as ProviderResolutionSource, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cz as QuoteDynamicBuckets, cA as QuoteStatus, cB as QuoteUiMessage, cC as ReadRequestOptions, cD as RefreshQuoteInput, cE as RefreshQuoteResult, cF as RefundOrderInput, cG as RelatedCandidate, cH as RelatedProduct, cI as RelatedProductsEnrichment, cJ as RelationType, cK as ReminderMethod, cL as ReminderSettings, cM as ReorderResult, cN as RequestContext, cO as RequestErrorEvent, cP as RequestOptions, cQ as RequestOtpInput, cR as RequestSource, cS as RequestStartEvent, cT as RequestSuccessEvent, cU as RescheduleBookingInput, cV as RescheduleBookingResult, cW as RescheduleHistoryRecord, cX as ResourceAssignment, cY as ResourceInfo, cZ as Result, c_ as RetryEvent, c$ as RevokeAllSessionsResult, d0 as RevokeSessionResult, d1 as Room, d2 as SchedulingMetadata, d3 as SchedulingResult, d4 as SchedulingService, d5 as SenderType, d6 as Service, d7 as ServiceAvailabilityParams, d8 as ServiceAvailabilityResult, d9 as ServiceCharge, da as ServiceNotes, db as ServiceScheduleRequest, dc as ServiceStatus, dd as SessionActivityData, de as SessionChangeEvent, df as SessionMessage, dg as SlotResourceInfo, dh as SlotStaffInfo, di as Staff, dj as StaffAssignment, dk as StaffRole, dl as StaffScheduleItem, dm as StockLevel, dn as StockStatus, dp as StoreCreditBalance, dq as StoreCreditQueries, dr as StorefrontBootstrap, ds as SubscriptionService, dt as SupportService, du as Table, dv as TimeRange, dw as TimeRanges, dx as TimeSlot, dy as TrackCategoryViewOptions, dz as TrackProductViewOptions, dA as UpdateAddressInput, dB as UpdateOrderStatusInput, dC as UpdateProfileInput, dD as UploadInitResponse, dE as UploadResult, dF as UploadService, dG as VerifyOtpInput, dH as combine, dI as combineObject, dJ as createCimplifyClient, dK as createElements, dL as err, dM as flatMap, dN as fromPromise, dO as getOrElse, dP as isErr, dQ as isOk, dR as mapError, dS as mapResult, dT as ok, dU as toNullable, dV as tryCatch, dW as unwrap } from './client-CeW3acve.js';
3
+ import { bb as ProductWithDetails, aZ as Product, av as DurationUnit, j as ApiError } from './product-bZ8G5Z8D.js';
4
+ 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 BOUNDARY_KIND, p as BenefitType, q as BillingFrequency, r as BillingMarkupType, s as BillingPlanType, t as BoundaryKind, u as Bundle, v as BundleComponentData, w as BundleComponentInfo, x as BundleComponentVariantView, y as BundleComponentView, z as BundlePriceType, C as BundleProduct, D as BundleSelectionData, E as BundleSelectionInput, F as BundleStoredSelection, G as BundleSummary, H as BundleWithDetails, I as Cart, J as CartAddOn, K as CartChannel, L as CartItem, M as CartItemDetails, N as CartMutationResult, O as CartNotice, P as CartStatus, Q as CartSummary, R as CartTotals, S as Category, T as CategorySummary, U as ChosenPrice, V as CimplifyError, W as Collection, X as CollectionProduct, Y as CollectionSummary, Z as ComponentGroup, _ as ComponentGroupWithComponents, $ as ComponentPriceBreakdown, a0 as ComponentSchedulingData, a1 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a4 as CompositeComponent, a5 as CompositeComponentView, a6 as CompositeGroupView, a7 as CompositePriceBreakdown, a8 as CompositePriceResult, a9 as CompositePricingMode, aa as CompositeSelectionData, a1 as CompositeSelectionInput, ab as CompositeStoredSelection, ac as CompositeWithDetails, ad as CurrencyCode, ae as CustomAttributeDefinition, af as CustomAttributeValue, ag as CustomerInputValue, ah as DURATION_UNIT, ai as DateRangeValue, aj as Deal, ak as DealBenefitType, al as DepositType, am as DigitalProductType, an as DiscountBreakdown, ao as DiscountDetails, ap as DiscountValidation, aq as DisplayAddOn, ar as DisplayAddOnOption, as as DisplayCart, at as DisplayCartItem, au as DisplayMode, aw as ERROR_HINTS, ax as EligiblePlansQuery, ay as ErrorCode, az as ErrorCodeType, aA as ErrorHint, aB as FacetValue, aC as FormattedPlanOption, aD as GroupPricingBehavior, aE as INPUT_FIELD_TYPE, aF as IdempotencyMismatchError, aG as InputFieldType, aH as InputFieldValidation, aI as InventoryType, aJ as KnowledgeArticle, aK as LineConfiguration, aL as LocationProductPrice, aM as LocationValue, aN as MeasurementValue, aO as Money, aP as PRODUCT_TYPE, aQ as Pagination, aR as PaginationParams, aS as PhoneValue, aT as Price, aU as PriceAdjustment, aV as PriceDecisionPath, aW as PriceEntryType, aX as PricePathTaxInfo, aY as PriceSource, a_ as ProductAddOn, a$ as ProductAvailability, b0 as ProductAvailabilityNow, b1 as ProductBillingPlan, b2 as ProductDealInfo, b3 as ProductInputField, b4 as ProductProperty, b5 as ProductRenderHint, b6 as ProductTaxonomy, b7 as ProductTimeProfile, b8 as ProductType, b9 as ProductVariant, ba as ProductVariantValue, bc as PropertyFacet, bd as PropertySource, be as QuantityPricingTier, bf as RENDER_HINT, bg as RelatedProductView, bh as SaleCapInfo, bi as SaleInfo, bj as SalesChannel, bk as SchedulingMode, bl as SelectedAddOnOption, bm as SemanticKind, bn as SignatureValue, bo as Subscription, bp as SubscriptionInvoice, bq as SubscriptionItem, br as SubscriptionStatus, bs as SubscriptionWithDetails, bt as Tag, bu as TagsResponse, bv as TaxPathComponent, bw as TaxonomyAttributeTemplate, bx as TaxonomyWithChildren, by as UICart, bz as UICartBusiness, bA as UICartCustomer, bB as UICartLocation, bC as UICartPricing, bD as UpcomingSale, bE as UpdateCartItemInput, bF as VariantAxis, bG as VariantAxisSelection, bH as VariantAxisValue, bI as VariantAxisValueView, bJ as VariantAxisView, bK as VariantAxisWithValues, bL as VariantDetails, bM as VariantDetailsDTO, bN as VariantDisplayAttribute, bO as VariantLocationAvailability, bP as VariantStrategy, bQ as VariantView, bR as ZERO, bT as currencyCode, bU as enrichError, bV as getErrorHint, bW as isCimplifyError, bX as isIdempotencyMismatchError, bY as isQuoteConflictRequiringConsent, bZ as isQuoteError, b_ as isRetryableError, b$ as isSupportedCurrency, c0 as money, c1 as moneyFromNumber } from './product-bZ8G5Z8D.js';
5
+ 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-DgoRwz8l.js';
5
6
  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-BX7ccIKY.js';
7
- export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-DtfP_Xfq.js';
7
+ 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-Cq8FT1B6.js';
8
+ export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-DaFXT-Lr.js';
8
9
  export { generateIdempotencyKey } from './advanced.js';
9
10
  import 'libphonenumber-js';
10
11
 
@@ -31,6 +32,11 @@ declare function resolveGallery(product: GalleryProduct, selectedVariantId?: str
31
32
  */
32
33
  declare function allGalleryImages(product: GalleryProduct): GalleryImage[];
33
34
 
35
+ /** Reads structured card references an AI reply may carry in `metadata.cards`. */
36
+ declare function chatMessageCards(message: {
37
+ metadata: Record<string, unknown>;
38
+ }): ChatReplyCard[];
39
+
34
40
  interface CustomerGroup {
35
41
  id: string;
36
42
  business_id: string;
@@ -64,6 +70,42 @@ interface CustomerPricingInfo {
64
70
  items: QuantityBreak[];
65
71
  }
66
72
 
73
+ type BasisFields = Pick<Product, "type" | "price_basis" | "duration_unit" | "scheduling_mode">;
74
+ /** Whether this service schedules whole stays (per-duration-unit billing
75
+ * default, unit reservations) rather than intraday slots. The server-resolved
76
+ * `scheduling_mode` wins; the duration-unit fallback mirrors the backend's
77
+ * `DurationUnit::scheduling_mode`. */
78
+ declare function isMultiDayService(product: BasisFields): boolean;
79
+ /**
80
+ * What one unit of the display price buys — "night", "person", "week"… —
81
+ * or null when the price is simply the price (flat services, plain
82
+ * products, and intraday services that never declared a basis, which
83
+ * billed per person all along and don't need a new label).
84
+ */
85
+ declare function priceBasisLabel(product: BasisFields): string | null;
86
+ /**
87
+ * How many billing periods a stay spans, counted in the service's duration
88
+ * unit — a faithful port of `LineConfiguration::service_periods`: whole UTC
89
+ * days between the dates (min 1), weeks round up, months/years by calendar
90
+ * with a partial period counting as one more.
91
+ */
92
+ declare function stayPeriods(scheduledStart: string, scheduledEnd: string, durationUnit: DurationUnit | null | undefined): number;
93
+ /** "3 nights", "2 weeks" — the stay's billing length, spelled out. */
94
+ declare function stayLength(scheduledStart: string, scheduledEnd: string, durationUnit: DurationUnit | null | undefined): string;
95
+ /**
96
+ * The factor the server multiplies a service's unit price by — a faithful
97
+ * port of `LineConfiguration::billing_multiplier`: resolve the basis (an
98
+ * undeclared basis defaults per the scheduling mode), then flat = 1,
99
+ * per-person = party size, per-duration-unit = stay periods, all times units.
100
+ * Returns null for non-services — their total is plain price × quantity.
101
+ */
102
+ declare function serviceBillingMultiplier(product: BasisFields, selection: {
103
+ quantity: number;
104
+ units?: number;
105
+ scheduledStart?: string | null;
106
+ scheduledEnd?: string | null;
107
+ }): number | null;
108
+
67
109
  interface FrontendContext {
68
110
  location_id?: string;
69
111
  }
@@ -121,4 +163,4 @@ interface AssetUrlOptions extends AssetTransform {
121
163
  declare function assetUrl(path: string, opts?: AssetUrlOptions): string;
122
164
  declare function isCimplifyAsset(src: string, base?: string): boolean;
123
165
 
124
- export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, allGalleryImages, assetUrl, isCimplifyAsset, resolveGallery, signInSilent };
166
+ export { ApiError, type ApiResponse, type AssetTransform, type AssetUrlOptions, CIMPLIFY_CDN_HOSTS, ChatReplyCard, type CustomerGroup, type CustomerPricingInfo, DEFAULT_CDN_BASE_URL, DurationUnit, type FrontendContext, type GalleryImage, type MutationRequest, type PriceListItem, Product, ProductWithDetails, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata, type SilentSignInOptions, type SilentSignInResult, allGalleryImages, assetUrl, chatMessageCards, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, signInSilent, stayLength, stayPeriods };