@cimplify/sdk 0.89.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 (69) 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-JHJTXAPS.js → chunk-3MBMIEWT.js} +4 -4
  6. package/dist/{chunk-DENWOZEA.mjs → chunk-3XD2FVP4.mjs} +163 -43
  7. package/dist/{chunk-M4ALCELT.mjs → chunk-54H2YYIW.mjs} +2 -2
  8. package/dist/{chunk-T2CJ67QV.js → chunk-DCRN67NO.js} +201 -78
  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-ROBTTS3Q.js → chunk-OAHSF542.js} +40 -1
  12. package/dist/{chunk-APBLFZ2I.mjs → chunk-PYBFTMHI.mjs} +40 -1
  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/chunk-U4MW6PYU.mjs +23 -0
  16. package/dist/chunk-XREIZ56K.js +26 -0
  17. package/dist/{client-CqZgdUtw.d.ts → client-BQbSKlHS.d.mts} +165 -11
  18. package/dist/{client-CAY2NbRG.d.mts → client-Bw4HtLP1.d.mts} +2 -2
  19. package/dist/{client-D8ZFs-sq.d.mts → client-CeW3acve.d.ts} +165 -11
  20. package/dist/{client-CUbwb6Om.d.ts → client-Otzv_rgP.d.ts} +2 -2
  21. package/dist/{index-CmWOz9bi.d.mts → index-CmIboQjl.d.mts} +3 -3
  22. package/dist/{index-Bc5qUxAt.d.ts → index-DgoRwz8l.d.ts} +3 -3
  23. package/dist/index.d.mts +49 -7
  24. package/dist/index.d.ts +49 -7
  25. package/dist/index.js +109 -82
  26. package/dist/index.mjs +11 -5
  27. package/dist/mock/cli.mjs +61 -1
  28. package/dist/mock/library.js +61 -1
  29. package/dist/mock/library.mjs +61 -1
  30. package/dist/mock/msw.js +61 -1
  31. package/dist/mock/msw.mjs +61 -1
  32. package/dist/{payment-Dcgb9n1n.d.mts → payment-BFtLqiG2.d.mts} +1 -1
  33. package/dist/{payment-Xq0WDZXh.d.ts → payment-Cq8FT1B6.d.ts} +1 -1
  34. package/dist/{price-DAAjKgAp.d.ts → price-DaFXT-Lr.d.ts} +1 -1
  35. package/dist/{price--Ma_WO5_.d.mts → price-DleDWk_s.d.mts} +1 -1
  36. package/dist/{product-BakHcsP2.d.ts → product-bZ8G5Z8D.d.mts} +95 -2
  37. package/dist/{product-BakHcsP2.d.mts → product-bZ8G5Z8D.d.ts} +95 -2
  38. package/dist/react.d.mts +471 -8
  39. package/dist/react.d.ts +471 -8
  40. package/dist/react.js +2787 -402
  41. package/dist/react.mjs +2699 -337
  42. package/dist/{server-Bk_hlefX.d.mts → server-D-iK-bNt.d.mts} +8 -1
  43. package/dist/{server-Bei5lBrc.d.ts → server-DwsY9hlX.d.ts} +8 -1
  44. package/dist/server.d.mts +4 -4
  45. package/dist/server.d.ts +4 -4
  46. package/dist/server.js +7 -7
  47. package/dist/server.mjs +2 -2
  48. package/dist/styles.css +1 -1
  49. package/dist/testing/msw.d.mts +2 -2
  50. package/dist/testing/msw.d.ts +2 -2
  51. package/dist/testing/msw.js +3 -2
  52. package/dist/testing/msw.mjs +2 -1
  53. package/dist/testing/suite.d.mts +6 -6
  54. package/dist/testing/suite.d.ts +6 -6
  55. package/dist/testing/suite.js +24 -23
  56. package/dist/testing/suite.mjs +5 -4
  57. package/dist/testing.d.mts +5 -5
  58. package/dist/testing.d.ts +5 -5
  59. package/dist/testing.js +80 -79
  60. package/dist/testing.mjs +6 -5
  61. package/dist/utils.d.mts +4 -4
  62. package/dist/utils.d.ts +4 -4
  63. package/package.json +4 -1
  64. package/registry/booking-page.json +1 -1
  65. package/registry/chat-widget.json +1 -1
  66. package/registry/customer-input-fields.json +1 -1
  67. package/registry/date-slot-picker.json +1 -1
  68. package/registry/product-customizer.json +1 -1
  69. package/registry/rental-service-card.json +1 -1
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 ChatWidgetStarter, Y as CheckSlotAvailabilityInput, Z as CheckSlotAvailabilityResult, _ as CheckoutAddressInfo, $ as CheckoutCartData, a0 as CheckoutCartItem, a1 as CheckoutCustomerInfo, a2 as CheckoutFormData, a3 as CheckoutInput, a4 as CheckoutMode, a8 as CheckoutOperations, a5 as CheckoutOrderType, a6 as CheckoutPaymentMethod, a7 as CheckoutResult, a8 as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, ab as CheckoutStep, ac as CimplifyClient, ad as CimplifyConfig, ae as CimplifyElement, af as CimplifyElements, ag as ContactType, ah as ContentType, ai as CreateAddressInput, aj as CreateMobileMoneyInput, ak as Customer, al as CustomerAddress, am as CustomerBooking, an as CustomerBookingServiceItem, ao as CustomerLinkPreferences, ap as CustomerMobileMoney, aq as CustomerServicePreferences, ar as DEFAULT_COUNTRY, as as DEFAULT_CURRENCY, at as DEVICE_TYPE, au as DayAvailability, av as DeliveryFeeDetails, aw as DeliveryFeeResponse, ax as DeliveryOption, ay as DeliveryOptionsResponse, az as DeliveryService, aA as DepositResult, aB as DeviceType, aC as DismissMessageResponse, aD as ELEMENTS_AUTH_CONTACT_TYPES, aE as ELEMENTS_AUTH_MODES, aF as ELEMENTS_AUTH_PROMPTS, aG as ELEMENT_TYPES, aH as EVENT_TYPES, aI as ElementAppearance, aJ as ElementEventHandler, aK as ElementEventType, aL as ElementOptions, aM as ElementType, aN as ElementsAuthContactType, aO as ElementsAuthMode, aP as ElementsAuthOptions, aQ as ElementsAuthPrompt, aR as ElementsCheckoutData, aS as ElementsCheckoutResult, aT as ElementsCustomerInfo, aU as ElementsOptions, aV as EnrichedOrder, aW as EnrichedOrderItem, aX as EnrollAndLinkOrderInput, aY as EnrollAndLinkOrderResult, aZ as EnrollmentData, a_ as Err, a$ as FeeBearerType, b0 as FetchQuoteInput, b1 as FulfillmentLink, b2 as FulfillmentStatus, b3 as FulfillmentSummaryDTO, b4 as FulfillmentType, b5 as FxQuote, b6 as FxQuoteRequest, b7 as FxQuoteStatus, b8 as FxRateResponse, b9 as FxService, ba as GetAvailableSlotsInput, bb as GetDeliveryOptionsParams, bc as GetOrdersOptions, bd as GetProductsOptions, be as GroupOrderInfo, bf as IframeToParentMessage, bg as InventoryService, bh as LINK_MUTATION, bi as LINK_QUERY, bj as LifecyclePhase, bk as LineItem, bl as LineType, bm as LinkData, bn as LinkEnrollResult, bo as LinkService, bp as LinkSession, bq as LinkStatusResult, br as LiteBootstrap, bs as LiteService, bt as Location, bu as LocationBooking, bv as LocationTaxBehavior, bw as LocationTaxOverrides, bx as LocationTimeProfile, by as LocationWithDetails, bz as MESSAGE_TYPES, bA as MOBILE_MONEY_PROVIDER, bB as MobileMoneyData, bC as MobileMoneyDetails, bD as MobileMoneyProvider, bE as NextAction, bF as ORDER_MUTATION, bG as ORDER_TYPE, bH as ObservabilityHooks, bI as Ok, bJ as Order, bK as OrderCustomerInfo, bL as OrderDiscountInfo, bM as OrderFilter, bN as OrderFulfillmentSummary, bO as OrderGroup, bP as OrderGroupDetails, bQ as OrderGroupPayment, bR as OrderGroupPaymentState, bS as OrderGroupPaymentStatus, bT as OrderGroupPaymentSummary, bU as OrderGroupStatus, bV as OrderHistory, bW as OrderLineState, bX as OrderLineStatus, bY as OrderLocationInfo, bZ as OrderPaymentEvent, b_ as OrderPricingView, b$ as OrderQueries, c0 as OrderSplitDetail, c1 as OrderStaffInfo, c2 as OrderStatus, c3 as OrderTimestampsDTO, c4 as OrderType, c5 as Origin, c6 as OriginActor, c7 as OriginChannel, c8 as OtpResult, c9 as PAYMENT_METHOD, ca as PAYMENT_MUTATION, cb as PAYMENT_STATE, cc as PICKUP_TIME_TYPE, cd as ParentToIframeMessage, ce as PaymentInfoDTO, cf as PaymentMethodInfo, cg as PaymentState, ch as PickupTime, ci as PickupTimeType, cj as PlaceDetailsResponse, ck as PlacesService, cl as PriceQuote, cm as PricingOverrides, cn as ProcessAndResolveOptions, co as ProcessCheckoutOptions, cp as ProcessCheckoutResult, cq as ProviderResolutionSource, cr as QuoteBundleSelectionInput, cs as QuoteCompositeSelectionInput, ct as QuoteDynamicBuckets, cu as QuoteStatus, cv as QuoteUiMessage, cw as ReadRequestOptions, cx as RefreshQuoteInput, cy as RefreshQuoteResult, cz as RefundOrderInput, cA as RelatedCandidate, cB as RelatedProduct, cC as RelatedProductsEnrichment, cD as RelationType, cE as ReminderMethod, cF as ReminderSettings, cG as ReorderResult, cH as RequestContext, cI as RequestErrorEvent, cJ as RequestOptions, cK as RequestOtpInput, cL as RequestSource, cM as RequestStartEvent, cN as RequestSuccessEvent, cO as RescheduleBookingInput, cP as RescheduleBookingResult, cQ as RescheduleHistoryRecord, cR as ResourceAssignment, cS as ResourceInfo, cT as Result, cU as RetryEvent, cV as RevokeAllSessionsResult, cW as RevokeSessionResult, cX as Room, cY as SchedulingMetadata, cZ as SchedulingResult, c_ as SchedulingService, c$ as SenderType, d0 as Service, d1 as ServiceAvailabilityParams, d2 as ServiceAvailabilityResult, d3 as ServiceCharge, d4 as ServiceNotes, d5 as ServiceScheduleRequest, d6 as ServiceStatus, d7 as SessionActivityData, d8 as SessionChangeEvent, d9 as SessionMessage, da as SlotResourceInfo, db as SlotStaffInfo, dc as Staff, dd as StaffAssignment, de as StaffRole, df as StaffScheduleItem, dg as StockLevel, dh as StockStatus, di as StoreCreditBalance, dj as StoreCreditQueries, dk as StorefrontBootstrap, dl as SubscriptionService, dm as SupportService, dn as Table, dp as TimeRange, dq as TimeRanges, dr as TimeSlot, ds as TrackCategoryViewOptions, dt as TrackProductViewOptions, du as UpdateAddressInput, dv as UpdateOrderStatusInput, dw as UpdateProfileInput, dx as UploadInitResponse, dy as UploadResult, dz as UploadService, dA as VerifyOtpInput, dB as combine, dC as combineObject, dD as createCimplifyClient, dE as createElements, dF as err, dG as flatMap, dH as fromPromise, dI as getOrElse, dJ as isErr, dK as isOk, dL as mapError, dM as mapResult, dN as ok, dO as toNullable, dP as tryCatch, dQ as unwrap } from './client-CqZgdUtw.js';
2
- import { bb as ProductWithDetails, j as ApiError } from './product-BakHcsP2.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-BakHcsP2.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-Bc5qUxAt.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-Xq0WDZXh.js';
7
- export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-DAAjKgAp.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 };
package/dist/index.js CHANGED
@@ -1,13 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkT7Z25EY4_js = require('./chunk-T7Z25EY4.js');
3
+ var chunkHKN3YG76_js = require('./chunk-HKN3YG76.js');
4
4
  var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
5
- var chunkT2CJ67QV_js = require('./chunk-T2CJ67QV.js');
6
- var chunkGHFDYM5K_js = require('./chunk-GHFDYM5K.js');
5
+ var chunkDCRN67NO_js = require('./chunk-DCRN67NO.js');
6
+ var chunkIVJEUGWF_js = require('./chunk-IVJEUGWF.js');
7
7
  var chunkPTPOQVXS_js = require('./chunk-PTPOQVXS.js');
8
8
  var chunkAETVRBKI_js = require('./chunk-AETVRBKI.js');
9
9
  require('./chunk-OWW5GUSB.js');
10
10
 
11
+ // src/chat-cards.ts
12
+ function chatMessageCards(message) {
13
+ const cards = message.metadata?.["cards"];
14
+ return Array.isArray(cards) ? cards : [];
15
+ }
16
+
11
17
  // src/silent-sign-in.ts
12
18
  var DEFAULT_SCOPE = "openid email phone profile";
13
19
  var DEFAULT_TIMEOUT_MS = 12e3;
@@ -27,9 +33,9 @@ async function signInSilent(opts) {
27
33
  } catch {
28
34
  }
29
35
  const callbackUri = opts.callbackUri ?? "/auth/callback";
30
- const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkGHFDYM5K_js.getAuthorizationEndpoint(opts.issuer ?? chunkGHFDYM5K_js.DEFAULT_ISSUER);
31
- const pkce = await chunkGHFDYM5K_js.generatePkce();
32
- const state = chunkGHFDYM5K_js.generateState();
36
+ const authorizeEndpoint = opts.authUrl ? `${opts.authUrl.replace(/\/$/, "")}/oauth/authorize` : await chunkIVJEUGWF_js.getAuthorizationEndpoint(opts.issuer ?? chunkIVJEUGWF_js.DEFAULT_ISSUER);
37
+ const pkce = await chunkIVJEUGWF_js.generatePkce();
38
+ const state = chunkIVJEUGWF_js.generateState();
33
39
  const params = new URLSearchParams({
34
40
  response_type: RESPONSE_TYPE_CODE,
35
41
  response_mode: RESPONSE_MODE_WEB_MESSAGE,
@@ -99,51 +105,71 @@ async function signInSilent(opts) {
99
105
 
100
106
  Object.defineProperty(exports, "BOUNDARY_KIND", {
101
107
  enumerable: true,
102
- get: function () { return chunkT7Z25EY4_js.BOUNDARY_KIND; }
108
+ get: function () { return chunkHKN3YG76_js.BOUNDARY_KIND; }
103
109
  });
104
110
  Object.defineProperty(exports, "CIMPLIFY_CDN_HOSTS", {
105
111
  enumerable: true,
106
- get: function () { return chunkT7Z25EY4_js.CIMPLIFY_CDN_HOSTS; }
112
+ get: function () { return chunkHKN3YG76_js.CIMPLIFY_CDN_HOSTS; }
107
113
  });
108
114
  Object.defineProperty(exports, "DEFAULT_CDN_BASE_URL", {
109
115
  enumerable: true,
110
- get: function () { return chunkT7Z25EY4_js.DEFAULT_CDN_BASE_URL; }
116
+ get: function () { return chunkHKN3YG76_js.DEFAULT_CDN_BASE_URL; }
111
117
  });
112
118
  Object.defineProperty(exports, "DURATION_UNIT", {
113
119
  enumerable: true,
114
- get: function () { return chunkT7Z25EY4_js.DURATION_UNIT; }
120
+ get: function () { return chunkHKN3YG76_js.DURATION_UNIT; }
115
121
  });
116
122
  Object.defineProperty(exports, "INPUT_FIELD_TYPE", {
117
123
  enumerable: true,
118
- get: function () { return chunkT7Z25EY4_js.INPUT_FIELD_TYPE; }
124
+ get: function () { return chunkHKN3YG76_js.INPUT_FIELD_TYPE; }
119
125
  });
120
126
  Object.defineProperty(exports, "PRODUCT_TYPE", {
121
127
  enumerable: true,
122
- get: function () { return chunkT7Z25EY4_js.PRODUCT_TYPE; }
128
+ get: function () { return chunkHKN3YG76_js.PRODUCT_TYPE; }
123
129
  });
124
130
  Object.defineProperty(exports, "RENDER_HINT", {
125
131
  enumerable: true,
126
- get: function () { return chunkT7Z25EY4_js.RENDER_HINT; }
132
+ get: function () { return chunkHKN3YG76_js.RENDER_HINT; }
127
133
  });
128
134
  Object.defineProperty(exports, "allGalleryImages", {
129
135
  enumerable: true,
130
- get: function () { return chunkT7Z25EY4_js.allGalleryImages; }
136
+ get: function () { return chunkHKN3YG76_js.allGalleryImages; }
131
137
  });
132
138
  Object.defineProperty(exports, "assetUrl", {
133
139
  enumerable: true,
134
- get: function () { return chunkT7Z25EY4_js.assetUrl; }
140
+ get: function () { return chunkHKN3YG76_js.assetUrl; }
135
141
  });
136
142
  Object.defineProperty(exports, "getVariantDisplayName", {
137
143
  enumerable: true,
138
- get: function () { return chunkT7Z25EY4_js.getVariantDisplayName; }
144
+ get: function () { return chunkHKN3YG76_js.getVariantDisplayName; }
139
145
  });
140
146
  Object.defineProperty(exports, "isCimplifyAsset", {
141
147
  enumerable: true,
142
- get: function () { return chunkT7Z25EY4_js.isCimplifyAsset; }
148
+ get: function () { return chunkHKN3YG76_js.isCimplifyAsset; }
149
+ });
150
+ Object.defineProperty(exports, "isMultiDayService", {
151
+ enumerable: true,
152
+ get: function () { return chunkHKN3YG76_js.isMultiDayService; }
153
+ });
154
+ Object.defineProperty(exports, "priceBasisLabel", {
155
+ enumerable: true,
156
+ get: function () { return chunkHKN3YG76_js.priceBasisLabel; }
143
157
  });
144
158
  Object.defineProperty(exports, "resolveGallery", {
145
159
  enumerable: true,
146
- get: function () { return chunkT7Z25EY4_js.resolveGallery; }
160
+ get: function () { return chunkHKN3YG76_js.resolveGallery; }
161
+ });
162
+ Object.defineProperty(exports, "serviceBillingMultiplier", {
163
+ enumerable: true,
164
+ get: function () { return chunkHKN3YG76_js.serviceBillingMultiplier; }
165
+ });
166
+ Object.defineProperty(exports, "stayLength", {
167
+ enumerable: true,
168
+ get: function () { return chunkHKN3YG76_js.stayLength; }
169
+ });
170
+ Object.defineProperty(exports, "stayPeriods", {
171
+ enumerable: true,
172
+ get: function () { return chunkHKN3YG76_js.stayPeriods; }
147
173
  });
148
174
  Object.defineProperty(exports, "isValidPhoneForContext", {
149
175
  enumerable: true,
@@ -159,259 +185,259 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
159
185
  });
160
186
  Object.defineProperty(exports, "ActivityService", {
161
187
  enumerable: true,
162
- get: function () { return chunkT2CJ67QV_js.ActivityService; }
188
+ get: function () { return chunkDCRN67NO_js.ActivityService; }
163
189
  });
164
190
  Object.defineProperty(exports, "CimplifyClient", {
165
191
  enumerable: true,
166
- get: function () { return chunkT2CJ67QV_js.CimplifyClient; }
192
+ get: function () { return chunkDCRN67NO_js.CimplifyClient; }
167
193
  });
168
194
  Object.defineProperty(exports, "DeliveryService", {
169
195
  enumerable: true,
170
- get: function () { return chunkT2CJ67QV_js.DeliveryService; }
196
+ get: function () { return chunkDCRN67NO_js.DeliveryService; }
171
197
  });
172
198
  Object.defineProperty(exports, "PlacesService", {
173
199
  enumerable: true,
174
- get: function () { return chunkT2CJ67QV_js.PlacesService; }
200
+ get: function () { return chunkDCRN67NO_js.PlacesService; }
175
201
  });
176
202
  Object.defineProperty(exports, "StoreCreditQueries", {
177
203
  enumerable: true,
178
- get: function () { return chunkT2CJ67QV_js.StoreCreditQueries; }
204
+ get: function () { return chunkDCRN67NO_js.StoreCreditQueries; }
179
205
  });
180
206
  Object.defineProperty(exports, "SubscriptionService", {
181
207
  enumerable: true,
182
- get: function () { return chunkT2CJ67QV_js.SubscriptionService; }
208
+ get: function () { return chunkDCRN67NO_js.SubscriptionService; }
183
209
  });
184
210
  Object.defineProperty(exports, "SupportService", {
185
211
  enumerable: true,
186
- get: function () { return chunkT2CJ67QV_js.SupportService; }
212
+ get: function () { return chunkDCRN67NO_js.SupportService; }
187
213
  });
188
214
  Object.defineProperty(exports, "UploadService", {
189
215
  enumerable: true,
190
- get: function () { return chunkT2CJ67QV_js.UploadService; }
216
+ get: function () { return chunkDCRN67NO_js.UploadService; }
191
217
  });
192
218
  Object.defineProperty(exports, "createCimplifyClient", {
193
219
  enumerable: true,
194
- get: function () { return chunkT2CJ67QV_js.createCimplifyClient; }
220
+ get: function () { return chunkDCRN67NO_js.createCimplifyClient; }
195
221
  });
196
222
  Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
197
223
  enumerable: true,
198
- get: function () { return chunkGHFDYM5K_js.AUTHORIZATION_TYPE; }
224
+ get: function () { return chunkIVJEUGWF_js.AUTHORIZATION_TYPE; }
199
225
  });
200
226
  Object.defineProperty(exports, "AUTH_MUTATION", {
201
227
  enumerable: true,
202
- get: function () { return chunkGHFDYM5K_js.AUTH_MUTATION; }
228
+ get: function () { return chunkIVJEUGWF_js.AUTH_MUTATION; }
203
229
  });
204
230
  Object.defineProperty(exports, "AuthService", {
205
231
  enumerable: true,
206
- get: function () { return chunkGHFDYM5K_js.AuthService; }
232
+ get: function () { return chunkIVJEUGWF_js.AuthService; }
207
233
  });
208
234
  Object.defineProperty(exports, "BusinessService", {
209
235
  enumerable: true,
210
- get: function () { return chunkGHFDYM5K_js.BusinessService; }
236
+ get: function () { return chunkIVJEUGWF_js.BusinessService; }
211
237
  });
212
238
  Object.defineProperty(exports, "CHECKOUT_MODE", {
213
239
  enumerable: true,
214
- get: function () { return chunkGHFDYM5K_js.CHECKOUT_MODE; }
240
+ get: function () { return chunkIVJEUGWF_js.CHECKOUT_MODE; }
215
241
  });
216
242
  Object.defineProperty(exports, "CHECKOUT_MUTATION", {
217
243
  enumerable: true,
218
- get: function () { return chunkGHFDYM5K_js.CHECKOUT_MUTATION; }
244
+ get: function () { return chunkIVJEUGWF_js.CHECKOUT_MUTATION; }
219
245
  });
220
246
  Object.defineProperty(exports, "CHECKOUT_STEP", {
221
247
  enumerable: true,
222
- get: function () { return chunkGHFDYM5K_js.CHECKOUT_STEP; }
248
+ get: function () { return chunkIVJEUGWF_js.CHECKOUT_STEP; }
223
249
  });
224
250
  Object.defineProperty(exports, "CONTACT_TYPE", {
225
251
  enumerable: true,
226
- get: function () { return chunkGHFDYM5K_js.CONTACT_TYPE; }
252
+ get: function () { return chunkIVJEUGWF_js.CONTACT_TYPE; }
227
253
  });
228
254
  Object.defineProperty(exports, "CartOperations", {
229
255
  enumerable: true,
230
- get: function () { return chunkGHFDYM5K_js.CartOperations; }
256
+ get: function () { return chunkIVJEUGWF_js.CartOperations; }
231
257
  });
232
258
  Object.defineProperty(exports, "CatalogueQueries", {
233
259
  enumerable: true,
234
- get: function () { return chunkGHFDYM5K_js.CatalogueQueries; }
260
+ get: function () { return chunkIVJEUGWF_js.CatalogueQueries; }
235
261
  });
236
262
  Object.defineProperty(exports, "CheckoutOperations", {
237
263
  enumerable: true,
238
- get: function () { return chunkGHFDYM5K_js.CheckoutService; }
264
+ get: function () { return chunkIVJEUGWF_js.CheckoutService; }
239
265
  });
240
266
  Object.defineProperty(exports, "CheckoutService", {
241
267
  enumerable: true,
242
- get: function () { return chunkGHFDYM5K_js.CheckoutService; }
268
+ get: function () { return chunkIVJEUGWF_js.CheckoutService; }
243
269
  });
244
270
  Object.defineProperty(exports, "CimplifyElement", {
245
271
  enumerable: true,
246
- get: function () { return chunkGHFDYM5K_js.CimplifyElement; }
272
+ get: function () { return chunkIVJEUGWF_js.CimplifyElement; }
247
273
  });
248
274
  Object.defineProperty(exports, "CimplifyElements", {
249
275
  enumerable: true,
250
- get: function () { return chunkGHFDYM5K_js.CimplifyElements; }
276
+ get: function () { return chunkIVJEUGWF_js.CimplifyElements; }
251
277
  });
252
278
  Object.defineProperty(exports, "DEFAULT_COUNTRY", {
253
279
  enumerable: true,
254
- get: function () { return chunkGHFDYM5K_js.DEFAULT_COUNTRY; }
280
+ get: function () { return chunkIVJEUGWF_js.DEFAULT_COUNTRY; }
255
281
  });
256
282
  Object.defineProperty(exports, "DEFAULT_CURRENCY", {
257
283
  enumerable: true,
258
- get: function () { return chunkGHFDYM5K_js.DEFAULT_CURRENCY; }
284
+ get: function () { return chunkIVJEUGWF_js.DEFAULT_CURRENCY; }
259
285
  });
260
286
  Object.defineProperty(exports, "DEVICE_TYPE", {
261
287
  enumerable: true,
262
- get: function () { return chunkGHFDYM5K_js.DEVICE_TYPE; }
288
+ get: function () { return chunkIVJEUGWF_js.DEVICE_TYPE; }
263
289
  });
264
290
  Object.defineProperty(exports, "ELEMENTS_AUTH_CONTACT_TYPES", {
265
291
  enumerable: true,
266
- get: function () { return chunkGHFDYM5K_js.ELEMENTS_AUTH_CONTACT_TYPES; }
292
+ get: function () { return chunkIVJEUGWF_js.ELEMENTS_AUTH_CONTACT_TYPES; }
267
293
  });
268
294
  Object.defineProperty(exports, "ELEMENTS_AUTH_MODES", {
269
295
  enumerable: true,
270
- get: function () { return chunkGHFDYM5K_js.ELEMENTS_AUTH_MODES; }
296
+ get: function () { return chunkIVJEUGWF_js.ELEMENTS_AUTH_MODES; }
271
297
  });
272
298
  Object.defineProperty(exports, "ELEMENTS_AUTH_PROMPTS", {
273
299
  enumerable: true,
274
- get: function () { return chunkGHFDYM5K_js.ELEMENTS_AUTH_PROMPTS; }
300
+ get: function () { return chunkIVJEUGWF_js.ELEMENTS_AUTH_PROMPTS; }
275
301
  });
276
302
  Object.defineProperty(exports, "ELEMENT_TYPES", {
277
303
  enumerable: true,
278
- get: function () { return chunkGHFDYM5K_js.ELEMENT_TYPES; }
304
+ get: function () { return chunkIVJEUGWF_js.ELEMENT_TYPES; }
279
305
  });
280
306
  Object.defineProperty(exports, "EVENT_TYPES", {
281
307
  enumerable: true,
282
- get: function () { return chunkGHFDYM5K_js.EVENT_TYPES; }
308
+ get: function () { return chunkIVJEUGWF_js.EVENT_TYPES; }
283
309
  });
284
310
  Object.defineProperty(exports, "FxService", {
285
311
  enumerable: true,
286
- get: function () { return chunkGHFDYM5K_js.FxService; }
312
+ get: function () { return chunkIVJEUGWF_js.FxService; }
287
313
  });
288
314
  Object.defineProperty(exports, "InventoryService", {
289
315
  enumerable: true,
290
- get: function () { return chunkGHFDYM5K_js.InventoryService; }
316
+ get: function () { return chunkIVJEUGWF_js.InventoryService; }
291
317
  });
292
318
  Object.defineProperty(exports, "LINK_MUTATION", {
293
319
  enumerable: true,
294
- get: function () { return chunkGHFDYM5K_js.LINK_MUTATION; }
320
+ get: function () { return chunkIVJEUGWF_js.LINK_MUTATION; }
295
321
  });
296
322
  Object.defineProperty(exports, "LINK_QUERY", {
297
323
  enumerable: true,
298
- get: function () { return chunkGHFDYM5K_js.LINK_QUERY; }
324
+ get: function () { return chunkIVJEUGWF_js.LINK_QUERY; }
299
325
  });
300
326
  Object.defineProperty(exports, "LinkService", {
301
327
  enumerable: true,
302
- get: function () { return chunkGHFDYM5K_js.LinkService; }
328
+ get: function () { return chunkIVJEUGWF_js.LinkService; }
303
329
  });
304
330
  Object.defineProperty(exports, "LiteService", {
305
331
  enumerable: true,
306
- get: function () { return chunkGHFDYM5K_js.LiteService; }
332
+ get: function () { return chunkIVJEUGWF_js.LiteService; }
307
333
  });
308
334
  Object.defineProperty(exports, "MESSAGE_TYPES", {
309
335
  enumerable: true,
310
- get: function () { return chunkGHFDYM5K_js.MESSAGE_TYPES; }
336
+ get: function () { return chunkIVJEUGWF_js.MESSAGE_TYPES; }
311
337
  });
312
338
  Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
313
339
  enumerable: true,
314
- get: function () { return chunkGHFDYM5K_js.MOBILE_MONEY_PROVIDER; }
340
+ get: function () { return chunkIVJEUGWF_js.MOBILE_MONEY_PROVIDER; }
315
341
  });
316
342
  Object.defineProperty(exports, "ORDER_MUTATION", {
317
343
  enumerable: true,
318
- get: function () { return chunkGHFDYM5K_js.ORDER_MUTATION; }
344
+ get: function () { return chunkIVJEUGWF_js.ORDER_MUTATION; }
319
345
  });
320
346
  Object.defineProperty(exports, "ORDER_TYPE", {
321
347
  enumerable: true,
322
- get: function () { return chunkGHFDYM5K_js.ORDER_TYPE; }
348
+ get: function () { return chunkIVJEUGWF_js.ORDER_TYPE; }
323
349
  });
324
350
  Object.defineProperty(exports, "OrderQueries", {
325
351
  enumerable: true,
326
- get: function () { return chunkGHFDYM5K_js.OrderQueries; }
352
+ get: function () { return chunkIVJEUGWF_js.OrderQueries; }
327
353
  });
328
354
  Object.defineProperty(exports, "PAYMENT_METHOD", {
329
355
  enumerable: true,
330
- get: function () { return chunkGHFDYM5K_js.PAYMENT_METHOD; }
356
+ get: function () { return chunkIVJEUGWF_js.PAYMENT_METHOD; }
331
357
  });
332
358
  Object.defineProperty(exports, "PAYMENT_MUTATION", {
333
359
  enumerable: true,
334
- get: function () { return chunkGHFDYM5K_js.PAYMENT_MUTATION; }
360
+ get: function () { return chunkIVJEUGWF_js.PAYMENT_MUTATION; }
335
361
  });
336
362
  Object.defineProperty(exports, "PAYMENT_STATE", {
337
363
  enumerable: true,
338
- get: function () { return chunkGHFDYM5K_js.PAYMENT_STATE; }
364
+ get: function () { return chunkIVJEUGWF_js.PAYMENT_STATE; }
339
365
  });
340
366
  Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
341
367
  enumerable: true,
342
- get: function () { return chunkGHFDYM5K_js.PICKUP_TIME_TYPE; }
368
+ get: function () { return chunkIVJEUGWF_js.PICKUP_TIME_TYPE; }
343
369
  });
344
370
  Object.defineProperty(exports, "SchedulingService", {
345
371
  enumerable: true,
346
- get: function () { return chunkGHFDYM5K_js.SchedulingService; }
372
+ get: function () { return chunkIVJEUGWF_js.SchedulingService; }
347
373
  });
348
374
  Object.defineProperty(exports, "combine", {
349
375
  enumerable: true,
350
- get: function () { return chunkGHFDYM5K_js.combine; }
376
+ get: function () { return chunkIVJEUGWF_js.combine; }
351
377
  });
352
378
  Object.defineProperty(exports, "combineObject", {
353
379
  enumerable: true,
354
- get: function () { return chunkGHFDYM5K_js.combineObject; }
380
+ get: function () { return chunkIVJEUGWF_js.combineObject; }
355
381
  });
356
382
  Object.defineProperty(exports, "createElements", {
357
383
  enumerable: true,
358
- get: function () { return chunkGHFDYM5K_js.createElements; }
384
+ get: function () { return chunkIVJEUGWF_js.createElements; }
359
385
  });
360
386
  Object.defineProperty(exports, "err", {
361
387
  enumerable: true,
362
- get: function () { return chunkGHFDYM5K_js.err; }
388
+ get: function () { return chunkIVJEUGWF_js.err; }
363
389
  });
364
390
  Object.defineProperty(exports, "flatMap", {
365
391
  enumerable: true,
366
- get: function () { return chunkGHFDYM5K_js.flatMap; }
392
+ get: function () { return chunkIVJEUGWF_js.flatMap; }
367
393
  });
368
394
  Object.defineProperty(exports, "fromPromise", {
369
395
  enumerable: true,
370
- get: function () { return chunkGHFDYM5K_js.fromPromise; }
396
+ get: function () { return chunkIVJEUGWF_js.fromPromise; }
371
397
  });
372
398
  Object.defineProperty(exports, "generateIdempotencyKey", {
373
399
  enumerable: true,
374
- get: function () { return chunkGHFDYM5K_js.generateIdempotencyKey; }
400
+ get: function () { return chunkIVJEUGWF_js.generateIdempotencyKey; }
375
401
  });
376
402
  Object.defineProperty(exports, "getOrElse", {
377
403
  enumerable: true,
378
- get: function () { return chunkGHFDYM5K_js.getOrElse; }
404
+ get: function () { return chunkIVJEUGWF_js.getOrElse; }
379
405
  });
380
406
  Object.defineProperty(exports, "isErr", {
381
407
  enumerable: true,
382
- get: function () { return chunkGHFDYM5K_js.isErr; }
408
+ get: function () { return chunkIVJEUGWF_js.isErr; }
383
409
  });
384
410
  Object.defineProperty(exports, "isOk", {
385
411
  enumerable: true,
386
- get: function () { return chunkGHFDYM5K_js.isOk; }
412
+ get: function () { return chunkIVJEUGWF_js.isOk; }
387
413
  });
388
414
  Object.defineProperty(exports, "mapError", {
389
415
  enumerable: true,
390
- get: function () { return chunkGHFDYM5K_js.mapError; }
416
+ get: function () { return chunkIVJEUGWF_js.mapError; }
391
417
  });
392
418
  Object.defineProperty(exports, "mapResult", {
393
419
  enumerable: true,
394
- get: function () { return chunkGHFDYM5K_js.mapResult; }
420
+ get: function () { return chunkIVJEUGWF_js.mapResult; }
395
421
  });
396
422
  Object.defineProperty(exports, "ok", {
397
423
  enumerable: true,
398
- get: function () { return chunkGHFDYM5K_js.ok; }
424
+ get: function () { return chunkIVJEUGWF_js.ok; }
399
425
  });
400
426
  Object.defineProperty(exports, "startSignIn", {
401
427
  enumerable: true,
402
- get: function () { return chunkGHFDYM5K_js.startSignIn; }
428
+ get: function () { return chunkIVJEUGWF_js.startSignIn; }
403
429
  });
404
430
  Object.defineProperty(exports, "toNullable", {
405
431
  enumerable: true,
406
- get: function () { return chunkGHFDYM5K_js.toNullable; }
432
+ get: function () { return chunkIVJEUGWF_js.toNullable; }
407
433
  });
408
434
  Object.defineProperty(exports, "tryCatch", {
409
435
  enumerable: true,
410
- get: function () { return chunkGHFDYM5K_js.tryCatch; }
436
+ get: function () { return chunkIVJEUGWF_js.tryCatch; }
411
437
  });
412
438
  Object.defineProperty(exports, "unwrap", {
413
439
  enumerable: true,
414
- get: function () { return chunkGHFDYM5K_js.unwrap; }
440
+ get: function () { return chunkIVJEUGWF_js.unwrap; }
415
441
  });
416
442
  Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
417
443
  enumerable: true,
@@ -597,4 +623,5 @@ Object.defineProperty(exports, "moneyFromNumber", {
597
623
  enumerable: true,
598
624
  get: function () { return chunkAETVRBKI_js.moneyFromNumber; }
599
625
  });
626
+ exports.chatMessageCards = chatMessageCards;
600
627
  exports.signInSilent = signInSilent;
package/dist/index.mjs CHANGED
@@ -1,12 +1,18 @@
1
- export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, getVariantDisplayName, isCimplifyAsset, resolveGallery } from './chunk-OZDDHSIB.mjs';
1
+ export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods } from './chunk-RRBY35TJ.mjs';
2
2
  export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
3
- export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-DENWOZEA.mjs';
4
- import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-ZU4ZRYUR.mjs';
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-ZU4ZRYUR.mjs';
3
+ export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-3XD2FVP4.mjs';
4
+ import { getAuthorizationEndpoint, DEFAULT_ISSUER, generatePkce, generateState } from './chunk-T7LDBZZZ.mjs';
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-T7LDBZZZ.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-KFLGQGMC.mjs';
7
7
  export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-K5EN2W2Q.mjs';
8
8
  import './chunk-3G6RQLXK.mjs';
9
9
 
10
+ // src/chat-cards.ts
11
+ function chatMessageCards(message) {
12
+ const cards = message.metadata?.["cards"];
13
+ return Array.isArray(cards) ? cards : [];
14
+ }
15
+
10
16
  // src/silent-sign-in.ts
11
17
  var DEFAULT_SCOPE = "openid email phone profile";
12
18
  var DEFAULT_TIMEOUT_MS = 12e3;
@@ -96,4 +102,4 @@ async function signInSilent(opts) {
96
102
  });
97
103
  }
98
104
 
99
- export { signInSilent };
105
+ export { chatMessageCards, signInSilent };