@cimplify/sdk 0.51.1 → 0.52.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.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { aF as AUTHORIZATION_TYPE, aK as AUTH_MUTATION, au as AbortablePromise, V as ActivityRecommendation, W as ActivityRecommendationsResponse, v as ActivityService, N as ActivityStateResponse, cM as AddressData, dd as AddressInfo, bi as AmountToPay, cX as AuthResponse, A as AuthService, q as AuthStatus, df as AuthenticatedCustomer, dh as AuthenticatedData, D as AutocompletePrediction, E as AutocompleteResponse, cC as AvailabilityResult, ci as AvailableSlot, cl as Booking, cv as BookingModificationType, ck as BookingStatus, cm as BookingWithDetails, bE as BufferTimes, bZ as Business, cb as BusinessHours, bY as BusinessPreferences, B as BusinessService, ca as BusinessSettings, bX as BusinessType, c8 as BusinessWithLocations, ay as CHECKOUT_MODE, aL as CHECKOUT_MUTATION, aB as CHECKOUT_STEP, aH as CONTACT_TYPE, d as CacheOptions, ct as CancelBookingInput, cu as CancelBookingResult, by as CancelOrderInput, bG as CancellationPolicy, m as CartOperations, e as CatalogueQueries, b5 as CatalogueResult, b6 as CatalogueSnapshot, cc as CategoryInfo, a2 as ChatAttachment, a0 as ChatConversation, a1 as ChatConversationResponse, $ as ChatMessage, a3 as ChatWidgetStarter, cq as CheckSlotAvailabilityInput, cr as CheckSlotAvailabilityResult, c_ as CheckoutAddressInfo, dl as CheckoutCartData, dk as CheckoutCartItem, d0 as CheckoutCustomerInfo, am as CheckoutFormData, bw as CheckoutInput, ai as CheckoutMode, o as CheckoutOperations, aj as CheckoutOrderType, ak as CheckoutPaymentMethod, an as CheckoutResult, o as CheckoutService, as as CheckoutStatus, at as CheckoutStatusContext, al as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a9 as CimplifyElement, a8 as CimplifyElements, ax as ContactType, a5 as ContentType, cI as CreateAddressInput, cK as CreateMobileMoneyInput, cD as Customer, cE as CustomerAddress, co as CustomerBooking, cn as CustomerBookingServiceItem, cG as CustomerLinkPreferences, cF as CustomerMobileMoney, bD as CustomerServicePreferences, aP as DEFAULT_COUNTRY, aO as DEFAULT_CURRENCY, aG as DEVICE_TYPE, cj as DayAvailability, bS as DeliveryFeeDetails, Z as DeliveryFeeResponse, Y as DeliveryService, bN as DepositResult, aw as DeviceType, X as DismissMessageResponse, ad as ELEMENT_TYPES, ac as EVENT_TYPES, dc as ElementAppearance, dp as ElementEventHandler, ah as ElementEventType, af as ElementOptions, ag as ElementType, di as ElementsCheckoutData, dj as ElementsCheckoutResult, dg as ElementsCustomerInfo, ae as ElementsOptions, cO as EnrollAndLinkOrderInput, cR as EnrollAndLinkOrderResult, cL as EnrollmentData, aS as Err, bh as FeeBearerType, F as FetchQuoteInput, bf as FulfillmentLink, be as FulfillmentStatus, bd as FulfillmentType, d2 as FxQuote, d1 as FxQuoteRequest, d3 as FxRateResponse, u as FxService, cp as GetAvailableSlotsInput, p as GetOrdersOptions, G as GetProductsOptions, dn as IframeToParentMessage, I as InventoryService, aJ as LINK_MUTATION, aI as LINK_QUERY, bj as LineItem, ba as LineType, cH as LinkData, cQ as LinkEnrollResult, L as LinkService, cS as LinkSession, cP as LinkStatusResult, a6 as LiteBootstrap, t as LiteService, c0 as Location, bQ as LocationBooking, b_ as LocationTaxBehavior, b$ as LocationTaxOverrides, c3 as LocationTimeProfile, c9 as LocationWithDetails, ab as MESSAGE_TYPES, aE as MOBILE_MONEY_PROVIDER, cN as MobileMoneyData, c$ as MobileMoneyDetails, av as MobileMoneyProvider, ao as NextAction, aN as ORDER_MUTATION, az as ORDER_TYPE, da as ObservabilityHooks, aR as Ok, bk as Order, b9 as OrderChannel, bv as OrderFilter, bg as OrderFulfillmentSummary, bp as OrderGroup, bt as OrderGroupDetails, bq as OrderGroupPayment, bn as OrderGroupPaymentState, bo as OrderGroupPaymentStatus, bs as OrderGroupPaymentSummary, bm as OrderGroupStatus, bl as OrderHistory, bb as OrderLineState, bc as OrderLineStatus, bu as OrderPaymentEvent, O as OrderQueries, br as OrderSplitDetail, b7 as OrderStatus, db as OrderType, r as OtpResult, aA as PAYMENT_METHOD, aM as PAYMENT_MUTATION, aC as PAYMENT_STATE, aD as PICKUP_TIME_TYPE, dm as ParentToIframeMessage, de as PaymentMethodInfo, b8 as PaymentState, cZ as PickupTime, cY as PickupTimeType, H as PlaceDetailsResponse, z as PlacesService, P as PriceQuote, bI as PricingOverrides, ar as ProcessAndResolveOptions, ap as ProcessCheckoutOptions, aq as ProcessCheckoutResult, bR as ProviderResolutionSource, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, i as QuoteDynamicBuckets, h as QuoteStatus, j as QuoteUiMessage, b as ReadRequestOptions, g as RefreshQuoteInput, l as RefreshQuoteResult, bz as RefundOrderInput, bV as RelatedCandidate, bU as RelatedProduct, bW as RelatedProductsEnrichment, bT as RelationType, bC as ReminderMethod, bF as ReminderSettings, n as ReorderResult, d4 as RequestContext, d7 as RequestErrorEvent, R as RequestOptions, cV as RequestOtpInput, k as RequestSource, d5 as RequestStartEvent, d6 as RequestSuccessEvent, cs as RescheduleBookingInput, cw as RescheduleBookingResult, cz as RescheduleHistoryRecord, bL as ResourceAssignment, aQ as Result, d8 as RetryEvent, cU as RevokeAllSessionsResult, cT as RevokeSessionResult, c5 as Room, bJ as SchedulingMetadata, bM as SchedulingResult, s as SchedulingService, a4 as SenderType, cd as Service, cx as ServiceAvailabilityParams, cy as ServiceAvailabilityResult, c6 as ServiceCharge, bH as ServiceNotes, bO as ServiceScheduleRequest, bA as ServiceStatus, M as SessionActivityData, d9 as SessionChangeEvent, K as SessionMessage, cg as SlotResourceInfo, ch as SlotStaffInfo, ce as Staff, bK as StaffAssignment, bB as StaffRole, bP as StaffScheduleItem, cB as StockLevel, cA as StockStatus, c7 as StorefrontBootstrap, S as SubscriptionService, _ as SupportService, c4 as Table, a7 as TableInfo, c1 as TimeRange, c2 as TimeRanges, cf as TimeSlot, J as TrackCategoryViewOptions, T as TrackProductViewOptions, cJ as UpdateAddressInput, bx as UpdateOrderStatusInput, U as UpdateProfileInput, y as UploadInitResponse, x as UploadResult, w as UploadService, cW as VerifyOtpInput, b3 as combine, b4 as combineObject, c as createCimplifyClient, aa as createElements, aU as err, aZ as flatMap, b1 as fromPromise, a_ as getOrElse, aW as isErr, aV as isOk, aY as mapError, aX as mapResult, aT as ok, b0 as toNullable, b2 as tryCatch, a$ as unwrap } from './client-CF2pmEE9.mjs';
1
+ export { aD as AUTHORIZATION_TYPE, aI as AUTH_MUTATION, as as AbortablePromise, M as ActivityRecommendation, N as ActivityRecommendationsResponse, t as ActivityService, K as ActivityStateResponse, cK as AddressData, db as AddressInfo, bg as AmountToPay, cV as AuthResponse, A as AuthService, o as AuthStatus, dd as AuthenticatedCustomer, df as AuthenticatedData, y as AutocompletePrediction, z as AutocompleteResponse, cA as AvailabilityResult, cg as AvailableSlot, cj as Booking, ct as BookingModificationType, ci as BookingStatus, ck as BookingWithDetails, bC as BufferTimes, bX as Business, c9 as BusinessHours, bW as BusinessPreferences, B as BusinessService, c8 as BusinessSettings, bV as BusinessType, c6 as BusinessWithLocations, aw as CHECKOUT_MODE, aJ as CHECKOUT_MUTATION, az as CHECKOUT_STEP, aF as CONTACT_TYPE, cr as CancelBookingInput, cs as CancelBookingResult, bw as CancelOrderInput, bE as CancellationPolicy, k as CartOperations, b as CatalogueQueries, b3 as CatalogueResult, b4 as CatalogueSnapshot, ca as CategoryInfo, a0 as ChatAttachment, _ as ChatConversation, $ as ChatConversationResponse, Z as ChatMessage, a1 as ChatWidgetStarter, co as CheckSlotAvailabilityInput, cp as CheckSlotAvailabilityResult, cY as CheckoutAddressInfo, dj as CheckoutCartData, di as CheckoutCartItem, c_ as CheckoutCustomerInfo, ak as CheckoutFormData, bu as CheckoutInput, ag as CheckoutMode, m as CheckoutOperations, ah as CheckoutOrderType, ai as CheckoutPaymentMethod, al as CheckoutResult, m as CheckoutService, aq as CheckoutStatus, ar as CheckoutStatusContext, aj as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a7 as CimplifyElement, a6 as CimplifyElements, av as ContactType, a3 as ContentType, cG as CreateAddressInput, cI as CreateMobileMoneyInput, cB as Customer, cC as CustomerAddress, cm as CustomerBooking, cl as CustomerBookingServiceItem, cE as CustomerLinkPreferences, cD as CustomerMobileMoney, bB as CustomerServicePreferences, aN as DEFAULT_COUNTRY, aM as DEFAULT_CURRENCY, aE as DEVICE_TYPE, ch as DayAvailability, bQ as DeliveryFeeDetails, X as DeliveryFeeResponse, W as DeliveryService, bL as DepositResult, au as DeviceType, V as DismissMessageResponse, ab as ELEMENT_TYPES, aa as EVENT_TYPES, da as ElementAppearance, dm as ElementEventHandler, af as ElementEventType, ad as ElementOptions, ae as ElementType, dg as ElementsCheckoutData, dh as ElementsCheckoutResult, de as ElementsCustomerInfo, ac as ElementsOptions, cM as EnrollAndLinkOrderInput, cP as EnrollAndLinkOrderResult, cJ as EnrollmentData, aQ as Err, bf as FeeBearerType, F as FetchQuoteInput, bd as FulfillmentLink, bc as FulfillmentStatus, bb as FulfillmentType, d0 as FxQuote, c$ as FxQuoteRequest, d1 as FxRateResponse, s as FxService, cn as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, dl as IframeToParentMessage, I as InventoryService, aH as LINK_MUTATION, aG as LINK_QUERY, bh as LineItem, b8 as LineType, cF as LinkData, cO as LinkEnrollResult, L as LinkService, cQ as LinkSession, cN as LinkStatusResult, a4 as LiteBootstrap, r as LiteService, b_ as Location, bO as LocationBooking, bY as LocationTaxBehavior, bZ as LocationTaxOverrides, c1 as LocationTimeProfile, c7 as LocationWithDetails, a9 as MESSAGE_TYPES, aC as MOBILE_MONEY_PROVIDER, cL as MobileMoneyData, cZ as MobileMoneyDetails, at as MobileMoneyProvider, am as NextAction, aL as ORDER_MUTATION, ax as ORDER_TYPE, d8 as ObservabilityHooks, aP as Ok, bi as Order, b7 as OrderChannel, bt as OrderFilter, be as OrderFulfillmentSummary, bn as OrderGroup, br as OrderGroupDetails, bo as OrderGroupPayment, bl as OrderGroupPaymentState, bm as OrderGroupPaymentStatus, bq as OrderGroupPaymentSummary, bk as OrderGroupStatus, bj as OrderHistory, b9 as OrderLineState, ba as OrderLineStatus, bs as OrderPaymentEvent, O as OrderQueries, bp as OrderSplitDetail, b5 as OrderStatus, d9 as OrderType, p as OtpResult, ay as PAYMENT_METHOD, aK as PAYMENT_MUTATION, aA as PAYMENT_STATE, aB as PICKUP_TIME_TYPE, dk as ParentToIframeMessage, dc as PaymentMethodInfo, b6 as PaymentState, cX as PickupTime, cW as PickupTimeType, D as PlaceDetailsResponse, x as PlacesService, P as PriceQuote, bG as PricingOverrides, ap as ProcessAndResolveOptions, an as ProcessCheckoutOptions, ao as ProcessCheckoutResult, bP as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, g as QuoteDynamicBuckets, f as QuoteStatus, h as QuoteUiMessage, e as RefreshQuoteInput, j as RefreshQuoteResult, bx as RefundOrderInput, bT as RelatedCandidate, bS as RelatedProduct, bU as RelatedProductsEnrichment, bR as RelationType, bA as ReminderMethod, bD as ReminderSettings, l as ReorderResult, d2 as RequestContext, d5 as RequestErrorEvent, R as RequestOptions, cT as RequestOtpInput, i as RequestSource, d3 as RequestStartEvent, d4 as RequestSuccessEvent, cq as RescheduleBookingInput, cu as RescheduleBookingResult, cx as RescheduleHistoryRecord, bJ as ResourceAssignment, aO as Result, d6 as RetryEvent, cS as RevokeAllSessionsResult, cR as RevokeSessionResult, c3 as Room, bH as SchedulingMetadata, bK as SchedulingResult, q as SchedulingService, a2 as SenderType, cb as Service, cv as ServiceAvailabilityParams, cw as ServiceAvailabilityResult, c4 as ServiceCharge, bF as ServiceNotes, bM as ServiceScheduleRequest, by as ServiceStatus, J as SessionActivityData, d7 as SessionChangeEvent, H as SessionMessage, ce as SlotResourceInfo, cf as SlotStaffInfo, cc as Staff, bI as StaffAssignment, bz as StaffRole, bN as StaffScheduleItem, cz as StockLevel, cy as StockStatus, c5 as StorefrontBootstrap, S as SubscriptionService, Y as SupportService, c2 as Table, a5 as TableInfo, b$ as TimeRange, c0 as TimeRanges, cd as TimeSlot, E as TrackCategoryViewOptions, T as TrackProductViewOptions, cH as UpdateAddressInput, bv as UpdateOrderStatusInput, U as UpdateProfileInput, w as UploadInitResponse, v as UploadResult, u as UploadService, cU as VerifyOtpInput, b1 as combine, b2 as combineObject, c as createCimplifyClient, a8 as createElements, aS as err, aX as flatMap, a$ as fromPromise, aY as getOrElse, aU as isErr, aT as isOk, aW as mapError, aV as mapResult, aR as ok, a_ as toNullable, b0 as tryCatch, aZ as unwrap } from './client-C6J_RGlr.mjs';
2
2
  import { A as ApiError } from './product-C-xLzh7Q.mjs';
3
3
  export { ak as AddOn, bh as AddOnDetails, bE as AddOnGroupDetails, am as AddOnOption, bD as AddOnOptionDetails, an as AddOnOptionPrice, al as AddOnWithOptions, bK as AddToCartInput, $ as AddressValue, b7 as AdjustmentType, bd as AppliedDiscount, F as AttributeAppliesTo, B as AttributeType, J as AttributeValidationRules, G as AttributeVisibility, bc as BenefitType, bN as BillingFrequency, bP as BillingMarkupType, bO as BillingPlanType, av as Bundle, az as BundleComponentData, aA as BundleComponentInfo, aC as BundleComponentVariantView, aB as BundleComponentView, au as BundlePriceType, ax as BundleProduct, bn as BundleSelectionData, bk as BundleSelectionInput, bm as BundleStoredSelection, aw as BundleSummary, ay as BundleWithDetails, bs as Cart, bi as CartAddOn, b5 as CartChannel, bt as CartItem, bG as CartItemDetails, bJ as CartMutationResult, bI as CartNotice, b4 as CartStatus, bM as CartSummary, bu as CartTotals, ap as Category, aq as CategorySummary, C as ChosenPrice, h as CimplifyError, ar as Collection, at as CollectionProduct, as as CollectionSummary, aK as ComponentGroup, aL as ComponentGroupWithComponents, aR as ComponentPriceBreakdown, bl as ComponentSchedulingData, aP as ComponentSelectionInput, aH as ComponentSourceType, aI as Composite, aO as CompositeComponent, aN as CompositeComponentView, aM as CompositeGroupView, bp as CompositePriceBreakdown, aQ as CompositePriceResult, aF as CompositePricingMode, bq as CompositeSelectionData, aP as CompositeSelectionInput, bo as CompositeStoredSelection, aJ as CompositeWithDetails, a as CurrencyCode, K as CustomAttributeDefinition, L as CustomAttributeValue, a7 as CustomerInputValue, y as DURATION_UNIT, a1 as DateRangeValue, a$ as Deal, a_ as DealBenefitType, w as DepositType, v as DigitalProductType, be as DiscountBreakdown, bf as DiscountDetails, b1 as DiscountValidation, bx as DisplayAddOn, by as DisplayAddOnOption, bv as DisplayCart, bw as DisplayCartItem, D as DisplayMode, x as DurationUnit, g as ERROR_HINTS, bR as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, T as FacetValue, bS as FormattedPlanOption, aG as GroupPricingBehavior, _ as INPUT_FIELD_TYPE, I as IdempotencyMismatchError, Y as InputFieldType, a4 as InputFieldValidation, u as InventoryType, W as KnowledgeArticle, br as LineConfiguration, aU as LocationProductPrice, a2 as LocationValue, H as MeasurementValue, M as Money, s as PRODUCT_TYPE, d as Pagination, P as PaginationParams, a0 as PhoneValue, aT as Price, b8 as PriceAdjustment, bb as PriceDecisionPath, aS as PriceEntryType, ba as PricePathTaxInfo, b6 as PriceSource, X as Product, ao as ProductAddOn, aV as ProductAvailability, aZ as ProductAvailabilityNow, bQ as ProductBillingPlan, b0 as ProductDealInfo, a6 as ProductInputField, O as ProductProperty, t as ProductRenderHint, aX as ProductTaxonomy, aW as ProductTimeProfile, r as ProductType, ac as ProductVariant, ah as ProductVariantValue, aa as ProductWithDetails, Q as PropertyFacet, N as PropertySource, a8 as QuantityPricingTier, R as RENDER_HINT, a9 as RelatedProductView, z as SalesChannel, S as SchedulingMode, bg as SelectedAddOnOption, a5 as SemanticKind, a3 as SignatureValue, bU as Subscription, bW as SubscriptionInvoice, bV as SubscriptionItem, bT as SubscriptionStatus, bX as SubscriptionWithDetails, b2 as Tag, b3 as TagsResponse, b9 as TaxPathComponent, U as TaxonomyAttributeTemplate, aY as TaxonomyWithChildren, bH as UICart, bz as UICartBusiness, bB as UICartCustomer, bA as UICartLocation, bC as UICartPricing, bL as UpdateCartItemInput, ae as VariantAxis, aj as VariantAxisSelection, ag as VariantAxisValue, aE as VariantAxisValueView, aD as VariantAxisView, af as VariantAxisWithValues, bj as VariantDetails, bF as VariantDetailsDTO, ad as VariantDisplayAttribute, ai as VariantLocationAvailability, V as VariantStrategy, ab as VariantView, Z as ZERO, c as currencyCode, p as enrichError, o as getErrorHint, j as isCimplifyError, n as isIdempotencyMismatchError, l as isQuoteConflictRequiringConsent, k as isQuoteError, q as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './product-C-xLzh7Q.mjs';
4
4
  export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-Bo0NjgR6.mjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { aF as AUTHORIZATION_TYPE, aK as AUTH_MUTATION, au as AbortablePromise, V as ActivityRecommendation, W as ActivityRecommendationsResponse, v as ActivityService, N as ActivityStateResponse, cM as AddressData, dd as AddressInfo, bi as AmountToPay, cX as AuthResponse, A as AuthService, q as AuthStatus, df as AuthenticatedCustomer, dh as AuthenticatedData, D as AutocompletePrediction, E as AutocompleteResponse, cC as AvailabilityResult, ci as AvailableSlot, cl as Booking, cv as BookingModificationType, ck as BookingStatus, cm as BookingWithDetails, bE as BufferTimes, bZ as Business, cb as BusinessHours, bY as BusinessPreferences, B as BusinessService, ca as BusinessSettings, bX as BusinessType, c8 as BusinessWithLocations, ay as CHECKOUT_MODE, aL as CHECKOUT_MUTATION, aB as CHECKOUT_STEP, aH as CONTACT_TYPE, d as CacheOptions, ct as CancelBookingInput, cu as CancelBookingResult, by as CancelOrderInput, bG as CancellationPolicy, m as CartOperations, e as CatalogueQueries, b5 as CatalogueResult, b6 as CatalogueSnapshot, cc as CategoryInfo, a2 as ChatAttachment, a0 as ChatConversation, a1 as ChatConversationResponse, $ as ChatMessage, a3 as ChatWidgetStarter, cq as CheckSlotAvailabilityInput, cr as CheckSlotAvailabilityResult, c_ as CheckoutAddressInfo, dl as CheckoutCartData, dk as CheckoutCartItem, d0 as CheckoutCustomerInfo, am as CheckoutFormData, bw as CheckoutInput, ai as CheckoutMode, o as CheckoutOperations, aj as CheckoutOrderType, ak as CheckoutPaymentMethod, an as CheckoutResult, o as CheckoutService, as as CheckoutStatus, at as CheckoutStatusContext, al as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a9 as CimplifyElement, a8 as CimplifyElements, ax as ContactType, a5 as ContentType, cI as CreateAddressInput, cK as CreateMobileMoneyInput, cD as Customer, cE as CustomerAddress, co as CustomerBooking, cn as CustomerBookingServiceItem, cG as CustomerLinkPreferences, cF as CustomerMobileMoney, bD as CustomerServicePreferences, aP as DEFAULT_COUNTRY, aO as DEFAULT_CURRENCY, aG as DEVICE_TYPE, cj as DayAvailability, bS as DeliveryFeeDetails, Z as DeliveryFeeResponse, Y as DeliveryService, bN as DepositResult, aw as DeviceType, X as DismissMessageResponse, ad as ELEMENT_TYPES, ac as EVENT_TYPES, dc as ElementAppearance, dp as ElementEventHandler, ah as ElementEventType, af as ElementOptions, ag as ElementType, di as ElementsCheckoutData, dj as ElementsCheckoutResult, dg as ElementsCustomerInfo, ae as ElementsOptions, cO as EnrollAndLinkOrderInput, cR as EnrollAndLinkOrderResult, cL as EnrollmentData, aS as Err, bh as FeeBearerType, F as FetchQuoteInput, bf as FulfillmentLink, be as FulfillmentStatus, bd as FulfillmentType, d2 as FxQuote, d1 as FxQuoteRequest, d3 as FxRateResponse, u as FxService, cp as GetAvailableSlotsInput, p as GetOrdersOptions, G as GetProductsOptions, dn as IframeToParentMessage, I as InventoryService, aJ as LINK_MUTATION, aI as LINK_QUERY, bj as LineItem, ba as LineType, cH as LinkData, cQ as LinkEnrollResult, L as LinkService, cS as LinkSession, cP as LinkStatusResult, a6 as LiteBootstrap, t as LiteService, c0 as Location, bQ as LocationBooking, b_ as LocationTaxBehavior, b$ as LocationTaxOverrides, c3 as LocationTimeProfile, c9 as LocationWithDetails, ab as MESSAGE_TYPES, aE as MOBILE_MONEY_PROVIDER, cN as MobileMoneyData, c$ as MobileMoneyDetails, av as MobileMoneyProvider, ao as NextAction, aN as ORDER_MUTATION, az as ORDER_TYPE, da as ObservabilityHooks, aR as Ok, bk as Order, b9 as OrderChannel, bv as OrderFilter, bg as OrderFulfillmentSummary, bp as OrderGroup, bt as OrderGroupDetails, bq as OrderGroupPayment, bn as OrderGroupPaymentState, bo as OrderGroupPaymentStatus, bs as OrderGroupPaymentSummary, bm as OrderGroupStatus, bl as OrderHistory, bb as OrderLineState, bc as OrderLineStatus, bu as OrderPaymentEvent, O as OrderQueries, br as OrderSplitDetail, b7 as OrderStatus, db as OrderType, r as OtpResult, aA as PAYMENT_METHOD, aM as PAYMENT_MUTATION, aC as PAYMENT_STATE, aD as PICKUP_TIME_TYPE, dm as ParentToIframeMessage, de as PaymentMethodInfo, b8 as PaymentState, cZ as PickupTime, cY as PickupTimeType, H as PlaceDetailsResponse, z as PlacesService, P as PriceQuote, bI as PricingOverrides, ar as ProcessAndResolveOptions, ap as ProcessCheckoutOptions, aq as ProcessCheckoutResult, bR as ProviderResolutionSource, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, i as QuoteDynamicBuckets, h as QuoteStatus, j as QuoteUiMessage, b as ReadRequestOptions, g as RefreshQuoteInput, l as RefreshQuoteResult, bz as RefundOrderInput, bV as RelatedCandidate, bU as RelatedProduct, bW as RelatedProductsEnrichment, bT as RelationType, bC as ReminderMethod, bF as ReminderSettings, n as ReorderResult, d4 as RequestContext, d7 as RequestErrorEvent, R as RequestOptions, cV as RequestOtpInput, k as RequestSource, d5 as RequestStartEvent, d6 as RequestSuccessEvent, cs as RescheduleBookingInput, cw as RescheduleBookingResult, cz as RescheduleHistoryRecord, bL as ResourceAssignment, aQ as Result, d8 as RetryEvent, cU as RevokeAllSessionsResult, cT as RevokeSessionResult, c5 as Room, bJ as SchedulingMetadata, bM as SchedulingResult, s as SchedulingService, a4 as SenderType, cd as Service, cx as ServiceAvailabilityParams, cy as ServiceAvailabilityResult, c6 as ServiceCharge, bH as ServiceNotes, bO as ServiceScheduleRequest, bA as ServiceStatus, M as SessionActivityData, d9 as SessionChangeEvent, K as SessionMessage, cg as SlotResourceInfo, ch as SlotStaffInfo, ce as Staff, bK as StaffAssignment, bB as StaffRole, bP as StaffScheduleItem, cB as StockLevel, cA as StockStatus, c7 as StorefrontBootstrap, S as SubscriptionService, _ as SupportService, c4 as Table, a7 as TableInfo, c1 as TimeRange, c2 as TimeRanges, cf as TimeSlot, J as TrackCategoryViewOptions, T as TrackProductViewOptions, cJ as UpdateAddressInput, bx as UpdateOrderStatusInput, U as UpdateProfileInput, y as UploadInitResponse, x as UploadResult, w as UploadService, cW as VerifyOtpInput, b3 as combine, b4 as combineObject, c as createCimplifyClient, aa as createElements, aU as err, aZ as flatMap, b1 as fromPromise, a_ as getOrElse, aW as isErr, aV as isOk, aY as mapError, aX as mapResult, aT as ok, b0 as toNullable, b2 as tryCatch, a$ as unwrap } from './client-B6x53-Al.js';
1
+ export { aD as AUTHORIZATION_TYPE, aI as AUTH_MUTATION, as as AbortablePromise, M as ActivityRecommendation, N as ActivityRecommendationsResponse, t as ActivityService, K as ActivityStateResponse, cK as AddressData, db as AddressInfo, bg as AmountToPay, cV as AuthResponse, A as AuthService, o as AuthStatus, dd as AuthenticatedCustomer, df as AuthenticatedData, y as AutocompletePrediction, z as AutocompleteResponse, cA as AvailabilityResult, cg as AvailableSlot, cj as Booking, ct as BookingModificationType, ci as BookingStatus, ck as BookingWithDetails, bC as BufferTimes, bX as Business, c9 as BusinessHours, bW as BusinessPreferences, B as BusinessService, c8 as BusinessSettings, bV as BusinessType, c6 as BusinessWithLocations, aw as CHECKOUT_MODE, aJ as CHECKOUT_MUTATION, az as CHECKOUT_STEP, aF as CONTACT_TYPE, cr as CancelBookingInput, cs as CancelBookingResult, bw as CancelOrderInput, bE as CancellationPolicy, k as CartOperations, b as CatalogueQueries, b3 as CatalogueResult, b4 as CatalogueSnapshot, ca as CategoryInfo, a0 as ChatAttachment, _ as ChatConversation, $ as ChatConversationResponse, Z as ChatMessage, a1 as ChatWidgetStarter, co as CheckSlotAvailabilityInput, cp as CheckSlotAvailabilityResult, cY as CheckoutAddressInfo, dj as CheckoutCartData, di as CheckoutCartItem, c_ as CheckoutCustomerInfo, ak as CheckoutFormData, bu as CheckoutInput, ag as CheckoutMode, m as CheckoutOperations, ah as CheckoutOrderType, ai as CheckoutPaymentMethod, al as CheckoutResult, m as CheckoutService, aq as CheckoutStatus, ar as CheckoutStatusContext, aj as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, a7 as CimplifyElement, a6 as CimplifyElements, av as ContactType, a3 as ContentType, cG as CreateAddressInput, cI as CreateMobileMoneyInput, cB as Customer, cC as CustomerAddress, cm as CustomerBooking, cl as CustomerBookingServiceItem, cE as CustomerLinkPreferences, cD as CustomerMobileMoney, bB as CustomerServicePreferences, aN as DEFAULT_COUNTRY, aM as DEFAULT_CURRENCY, aE as DEVICE_TYPE, ch as DayAvailability, bQ as DeliveryFeeDetails, X as DeliveryFeeResponse, W as DeliveryService, bL as DepositResult, au as DeviceType, V as DismissMessageResponse, ab as ELEMENT_TYPES, aa as EVENT_TYPES, da as ElementAppearance, dm as ElementEventHandler, af as ElementEventType, ad as ElementOptions, ae as ElementType, dg as ElementsCheckoutData, dh as ElementsCheckoutResult, de as ElementsCustomerInfo, ac as ElementsOptions, cM as EnrollAndLinkOrderInput, cP as EnrollAndLinkOrderResult, cJ as EnrollmentData, aQ as Err, bf as FeeBearerType, F as FetchQuoteInput, bd as FulfillmentLink, bc as FulfillmentStatus, bb as FulfillmentType, d0 as FxQuote, c$ as FxQuoteRequest, d1 as FxRateResponse, s as FxService, cn as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, dl as IframeToParentMessage, I as InventoryService, aH as LINK_MUTATION, aG as LINK_QUERY, bh as LineItem, b8 as LineType, cF as LinkData, cO as LinkEnrollResult, L as LinkService, cQ as LinkSession, cN as LinkStatusResult, a4 as LiteBootstrap, r as LiteService, b_ as Location, bO as LocationBooking, bY as LocationTaxBehavior, bZ as LocationTaxOverrides, c1 as LocationTimeProfile, c7 as LocationWithDetails, a9 as MESSAGE_TYPES, aC as MOBILE_MONEY_PROVIDER, cL as MobileMoneyData, cZ as MobileMoneyDetails, at as MobileMoneyProvider, am as NextAction, aL as ORDER_MUTATION, ax as ORDER_TYPE, d8 as ObservabilityHooks, aP as Ok, bi as Order, b7 as OrderChannel, bt as OrderFilter, be as OrderFulfillmentSummary, bn as OrderGroup, br as OrderGroupDetails, bo as OrderGroupPayment, bl as OrderGroupPaymentState, bm as OrderGroupPaymentStatus, bq as OrderGroupPaymentSummary, bk as OrderGroupStatus, bj as OrderHistory, b9 as OrderLineState, ba as OrderLineStatus, bs as OrderPaymentEvent, O as OrderQueries, bp as OrderSplitDetail, b5 as OrderStatus, d9 as OrderType, p as OtpResult, ay as PAYMENT_METHOD, aK as PAYMENT_MUTATION, aA as PAYMENT_STATE, aB as PICKUP_TIME_TYPE, dk as ParentToIframeMessage, dc as PaymentMethodInfo, b6 as PaymentState, cX as PickupTime, cW as PickupTimeType, D as PlaceDetailsResponse, x as PlacesService, P as PriceQuote, bG as PricingOverrides, ap as ProcessAndResolveOptions, an as ProcessCheckoutOptions, ao as ProcessCheckoutResult, bP as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, g as QuoteDynamicBuckets, f as QuoteStatus, h as QuoteUiMessage, e as RefreshQuoteInput, j as RefreshQuoteResult, bx as RefundOrderInput, bT as RelatedCandidate, bS as RelatedProduct, bU as RelatedProductsEnrichment, bR as RelationType, bA as ReminderMethod, bD as ReminderSettings, l as ReorderResult, d2 as RequestContext, d5 as RequestErrorEvent, R as RequestOptions, cT as RequestOtpInput, i as RequestSource, d3 as RequestStartEvent, d4 as RequestSuccessEvent, cq as RescheduleBookingInput, cu as RescheduleBookingResult, cx as RescheduleHistoryRecord, bJ as ResourceAssignment, aO as Result, d6 as RetryEvent, cS as RevokeAllSessionsResult, cR as RevokeSessionResult, c3 as Room, bH as SchedulingMetadata, bK as SchedulingResult, q as SchedulingService, a2 as SenderType, cb as Service, cv as ServiceAvailabilityParams, cw as ServiceAvailabilityResult, c4 as ServiceCharge, bF as ServiceNotes, bM as ServiceScheduleRequest, by as ServiceStatus, J as SessionActivityData, d7 as SessionChangeEvent, H as SessionMessage, ce as SlotResourceInfo, cf as SlotStaffInfo, cc as Staff, bI as StaffAssignment, bz as StaffRole, bN as StaffScheduleItem, cz as StockLevel, cy as StockStatus, c5 as StorefrontBootstrap, S as SubscriptionService, Y as SupportService, c2 as Table, a5 as TableInfo, b$ as TimeRange, c0 as TimeRanges, cd as TimeSlot, E as TrackCategoryViewOptions, T as TrackProductViewOptions, cH as UpdateAddressInput, bv as UpdateOrderStatusInput, U as UpdateProfileInput, w as UploadInitResponse, v as UploadResult, u as UploadService, cU as VerifyOtpInput, b1 as combine, b2 as combineObject, c as createCimplifyClient, a8 as createElements, aS as err, aX as flatMap, a$ as fromPromise, aY as getOrElse, aU as isErr, aT as isOk, aW as mapError, aV as mapResult, aR as ok, a_ as toNullable, b0 as tryCatch, aZ as unwrap } from './client-CX7IFIkL.js';
2
2
  import { A as ApiError } from './product-C-xLzh7Q.js';
3
3
  export { ak as AddOn, bh as AddOnDetails, bE as AddOnGroupDetails, am as AddOnOption, bD as AddOnOptionDetails, an as AddOnOptionPrice, al as AddOnWithOptions, bK as AddToCartInput, $ as AddressValue, b7 as AdjustmentType, bd as AppliedDiscount, F as AttributeAppliesTo, B as AttributeType, J as AttributeValidationRules, G as AttributeVisibility, bc as BenefitType, bN as BillingFrequency, bP as BillingMarkupType, bO as BillingPlanType, av as Bundle, az as BundleComponentData, aA as BundleComponentInfo, aC as BundleComponentVariantView, aB as BundleComponentView, au as BundlePriceType, ax as BundleProduct, bn as BundleSelectionData, bk as BundleSelectionInput, bm as BundleStoredSelection, aw as BundleSummary, ay as BundleWithDetails, bs as Cart, bi as CartAddOn, b5 as CartChannel, bt as CartItem, bG as CartItemDetails, bJ as CartMutationResult, bI as CartNotice, b4 as CartStatus, bM as CartSummary, bu as CartTotals, ap as Category, aq as CategorySummary, C as ChosenPrice, h as CimplifyError, ar as Collection, at as CollectionProduct, as as CollectionSummary, aK as ComponentGroup, aL as ComponentGroupWithComponents, aR as ComponentPriceBreakdown, bl as ComponentSchedulingData, aP as ComponentSelectionInput, aH as ComponentSourceType, aI as Composite, aO as CompositeComponent, aN as CompositeComponentView, aM as CompositeGroupView, bp as CompositePriceBreakdown, aQ as CompositePriceResult, aF as CompositePricingMode, bq as CompositeSelectionData, aP as CompositeSelectionInput, bo as CompositeStoredSelection, aJ as CompositeWithDetails, a as CurrencyCode, K as CustomAttributeDefinition, L as CustomAttributeValue, a7 as CustomerInputValue, y as DURATION_UNIT, a1 as DateRangeValue, a$ as Deal, a_ as DealBenefitType, w as DepositType, v as DigitalProductType, be as DiscountBreakdown, bf as DiscountDetails, b1 as DiscountValidation, bx as DisplayAddOn, by as DisplayAddOnOption, bv as DisplayCart, bw as DisplayCartItem, D as DisplayMode, x as DurationUnit, g as ERROR_HINTS, bR as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, T as FacetValue, bS as FormattedPlanOption, aG as GroupPricingBehavior, _ as INPUT_FIELD_TYPE, I as IdempotencyMismatchError, Y as InputFieldType, a4 as InputFieldValidation, u as InventoryType, W as KnowledgeArticle, br as LineConfiguration, aU as LocationProductPrice, a2 as LocationValue, H as MeasurementValue, M as Money, s as PRODUCT_TYPE, d as Pagination, P as PaginationParams, a0 as PhoneValue, aT as Price, b8 as PriceAdjustment, bb as PriceDecisionPath, aS as PriceEntryType, ba as PricePathTaxInfo, b6 as PriceSource, X as Product, ao as ProductAddOn, aV as ProductAvailability, aZ as ProductAvailabilityNow, bQ as ProductBillingPlan, b0 as ProductDealInfo, a6 as ProductInputField, O as ProductProperty, t as ProductRenderHint, aX as ProductTaxonomy, aW as ProductTimeProfile, r as ProductType, ac as ProductVariant, ah as ProductVariantValue, aa as ProductWithDetails, Q as PropertyFacet, N as PropertySource, a8 as QuantityPricingTier, R as RENDER_HINT, a9 as RelatedProductView, z as SalesChannel, S as SchedulingMode, bg as SelectedAddOnOption, a5 as SemanticKind, a3 as SignatureValue, bU as Subscription, bW as SubscriptionInvoice, bV as SubscriptionItem, bT as SubscriptionStatus, bX as SubscriptionWithDetails, b2 as Tag, b3 as TagsResponse, b9 as TaxPathComponent, U as TaxonomyAttributeTemplate, aY as TaxonomyWithChildren, bH as UICart, bz as UICartBusiness, bB as UICartCustomer, bA as UICartLocation, bC as UICartPricing, bL as UpdateCartItemInput, ae as VariantAxis, aj as VariantAxisSelection, ag as VariantAxisValue, aE as VariantAxisValueView, aD as VariantAxisView, af as VariantAxisWithValues, bj as VariantDetails, bF as VariantDetailsDTO, ad as VariantDisplayAttribute, ai as VariantLocationAvailability, V as VariantStrategy, ab as VariantView, Z as ZERO, c as currencyCode, p as enrichError, o as getErrorHint, j as isCimplifyError, n as isIdempotencyMismatchError, l as isQuoteConflictRequiringConsent, k as isQuoteError, q as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './product-C-xLzh7Q.js';
4
4
  export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-BAohYhdg.js';
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  var chunkMN4PNKJA_js = require('./chunk-MN4PNKJA.js');
4
4
  var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
5
- var chunkFJQC4VSN_js = require('./chunk-FJQC4VSN.js');
6
- var chunkVOWMB2KR_js = require('./chunk-VOWMB2KR.js');
5
+ var chunkCYGLTD7D_js = require('./chunk-CYGLTD7D.js');
6
+ var chunkDR4UPU6P_js = require('./chunk-DR4UPU6P.js');
7
7
  var chunk6RP6OPYO_js = require('./chunk-6RP6OPYO.js');
8
8
  var chunkTKOTACKZ_js = require('./chunk-TKOTACKZ.js');
9
9
 
@@ -59,239 +59,239 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
59
59
  });
60
60
  Object.defineProperty(exports, "ActivityService", {
61
61
  enumerable: true,
62
- get: function () { return chunkFJQC4VSN_js.ActivityService; }
62
+ get: function () { return chunkCYGLTD7D_js.ActivityService; }
63
63
  });
64
64
  Object.defineProperty(exports, "CimplifyClient", {
65
65
  enumerable: true,
66
- get: function () { return chunkFJQC4VSN_js.CimplifyClient; }
66
+ get: function () { return chunkCYGLTD7D_js.CimplifyClient; }
67
67
  });
68
68
  Object.defineProperty(exports, "DeliveryService", {
69
69
  enumerable: true,
70
- get: function () { return chunkFJQC4VSN_js.DeliveryService; }
70
+ get: function () { return chunkCYGLTD7D_js.DeliveryService; }
71
71
  });
72
72
  Object.defineProperty(exports, "PlacesService", {
73
73
  enumerable: true,
74
- get: function () { return chunkFJQC4VSN_js.PlacesService; }
74
+ get: function () { return chunkCYGLTD7D_js.PlacesService; }
75
75
  });
76
76
  Object.defineProperty(exports, "SubscriptionService", {
77
77
  enumerable: true,
78
- get: function () { return chunkFJQC4VSN_js.SubscriptionService; }
78
+ get: function () { return chunkCYGLTD7D_js.SubscriptionService; }
79
79
  });
80
80
  Object.defineProperty(exports, "SupportService", {
81
81
  enumerable: true,
82
- get: function () { return chunkFJQC4VSN_js.SupportService; }
82
+ get: function () { return chunkCYGLTD7D_js.SupportService; }
83
83
  });
84
84
  Object.defineProperty(exports, "UploadService", {
85
85
  enumerable: true,
86
- get: function () { return chunkFJQC4VSN_js.UploadService; }
86
+ get: function () { return chunkCYGLTD7D_js.UploadService; }
87
87
  });
88
88
  Object.defineProperty(exports, "createCimplifyClient", {
89
89
  enumerable: true,
90
- get: function () { return chunkFJQC4VSN_js.createCimplifyClient; }
90
+ get: function () { return chunkCYGLTD7D_js.createCimplifyClient; }
91
91
  });
92
92
  Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
93
93
  enumerable: true,
94
- get: function () { return chunkVOWMB2KR_js.AUTHORIZATION_TYPE; }
94
+ get: function () { return chunkDR4UPU6P_js.AUTHORIZATION_TYPE; }
95
95
  });
96
96
  Object.defineProperty(exports, "AUTH_MUTATION", {
97
97
  enumerable: true,
98
- get: function () { return chunkVOWMB2KR_js.AUTH_MUTATION; }
98
+ get: function () { return chunkDR4UPU6P_js.AUTH_MUTATION; }
99
99
  });
100
100
  Object.defineProperty(exports, "AuthService", {
101
101
  enumerable: true,
102
- get: function () { return chunkVOWMB2KR_js.AuthService; }
102
+ get: function () { return chunkDR4UPU6P_js.AuthService; }
103
103
  });
104
104
  Object.defineProperty(exports, "BusinessService", {
105
105
  enumerable: true,
106
- get: function () { return chunkVOWMB2KR_js.BusinessService; }
106
+ get: function () { return chunkDR4UPU6P_js.BusinessService; }
107
107
  });
108
108
  Object.defineProperty(exports, "CHECKOUT_MODE", {
109
109
  enumerable: true,
110
- get: function () { return chunkVOWMB2KR_js.CHECKOUT_MODE; }
110
+ get: function () { return chunkDR4UPU6P_js.CHECKOUT_MODE; }
111
111
  });
112
112
  Object.defineProperty(exports, "CHECKOUT_MUTATION", {
113
113
  enumerable: true,
114
- get: function () { return chunkVOWMB2KR_js.CHECKOUT_MUTATION; }
114
+ get: function () { return chunkDR4UPU6P_js.CHECKOUT_MUTATION; }
115
115
  });
116
116
  Object.defineProperty(exports, "CHECKOUT_STEP", {
117
117
  enumerable: true,
118
- get: function () { return chunkVOWMB2KR_js.CHECKOUT_STEP; }
118
+ get: function () { return chunkDR4UPU6P_js.CHECKOUT_STEP; }
119
119
  });
120
120
  Object.defineProperty(exports, "CONTACT_TYPE", {
121
121
  enumerable: true,
122
- get: function () { return chunkVOWMB2KR_js.CONTACT_TYPE; }
122
+ get: function () { return chunkDR4UPU6P_js.CONTACT_TYPE; }
123
123
  });
124
124
  Object.defineProperty(exports, "CartOperations", {
125
125
  enumerable: true,
126
- get: function () { return chunkVOWMB2KR_js.CartOperations; }
126
+ get: function () { return chunkDR4UPU6P_js.CartOperations; }
127
127
  });
128
128
  Object.defineProperty(exports, "CatalogueQueries", {
129
129
  enumerable: true,
130
- get: function () { return chunkVOWMB2KR_js.CatalogueQueries; }
130
+ get: function () { return chunkDR4UPU6P_js.CatalogueQueries; }
131
131
  });
132
132
  Object.defineProperty(exports, "CheckoutOperations", {
133
133
  enumerable: true,
134
- get: function () { return chunkVOWMB2KR_js.CheckoutService; }
134
+ get: function () { return chunkDR4UPU6P_js.CheckoutService; }
135
135
  });
136
136
  Object.defineProperty(exports, "CheckoutService", {
137
137
  enumerable: true,
138
- get: function () { return chunkVOWMB2KR_js.CheckoutService; }
138
+ get: function () { return chunkDR4UPU6P_js.CheckoutService; }
139
139
  });
140
140
  Object.defineProperty(exports, "CimplifyElement", {
141
141
  enumerable: true,
142
- get: function () { return chunkVOWMB2KR_js.CimplifyElement; }
142
+ get: function () { return chunkDR4UPU6P_js.CimplifyElement; }
143
143
  });
144
144
  Object.defineProperty(exports, "CimplifyElements", {
145
145
  enumerable: true,
146
- get: function () { return chunkVOWMB2KR_js.CimplifyElements; }
146
+ get: function () { return chunkDR4UPU6P_js.CimplifyElements; }
147
147
  });
148
148
  Object.defineProperty(exports, "DEFAULT_COUNTRY", {
149
149
  enumerable: true,
150
- get: function () { return chunkVOWMB2KR_js.DEFAULT_COUNTRY; }
150
+ get: function () { return chunkDR4UPU6P_js.DEFAULT_COUNTRY; }
151
151
  });
152
152
  Object.defineProperty(exports, "DEFAULT_CURRENCY", {
153
153
  enumerable: true,
154
- get: function () { return chunkVOWMB2KR_js.DEFAULT_CURRENCY; }
154
+ get: function () { return chunkDR4UPU6P_js.DEFAULT_CURRENCY; }
155
155
  });
156
156
  Object.defineProperty(exports, "DEVICE_TYPE", {
157
157
  enumerable: true,
158
- get: function () { return chunkVOWMB2KR_js.DEVICE_TYPE; }
158
+ get: function () { return chunkDR4UPU6P_js.DEVICE_TYPE; }
159
159
  });
160
160
  Object.defineProperty(exports, "ELEMENT_TYPES", {
161
161
  enumerable: true,
162
- get: function () { return chunkVOWMB2KR_js.ELEMENT_TYPES; }
162
+ get: function () { return chunkDR4UPU6P_js.ELEMENT_TYPES; }
163
163
  });
164
164
  Object.defineProperty(exports, "EVENT_TYPES", {
165
165
  enumerable: true,
166
- get: function () { return chunkVOWMB2KR_js.EVENT_TYPES; }
166
+ get: function () { return chunkDR4UPU6P_js.EVENT_TYPES; }
167
167
  });
168
168
  Object.defineProperty(exports, "FxService", {
169
169
  enumerable: true,
170
- get: function () { return chunkVOWMB2KR_js.FxService; }
170
+ get: function () { return chunkDR4UPU6P_js.FxService; }
171
171
  });
172
172
  Object.defineProperty(exports, "InventoryService", {
173
173
  enumerable: true,
174
- get: function () { return chunkVOWMB2KR_js.InventoryService; }
174
+ get: function () { return chunkDR4UPU6P_js.InventoryService; }
175
175
  });
176
176
  Object.defineProperty(exports, "LINK_MUTATION", {
177
177
  enumerable: true,
178
- get: function () { return chunkVOWMB2KR_js.LINK_MUTATION; }
178
+ get: function () { return chunkDR4UPU6P_js.LINK_MUTATION; }
179
179
  });
180
180
  Object.defineProperty(exports, "LINK_QUERY", {
181
181
  enumerable: true,
182
- get: function () { return chunkVOWMB2KR_js.LINK_QUERY; }
182
+ get: function () { return chunkDR4UPU6P_js.LINK_QUERY; }
183
183
  });
184
184
  Object.defineProperty(exports, "LinkService", {
185
185
  enumerable: true,
186
- get: function () { return chunkVOWMB2KR_js.LinkService; }
186
+ get: function () { return chunkDR4UPU6P_js.LinkService; }
187
187
  });
188
188
  Object.defineProperty(exports, "LiteService", {
189
189
  enumerable: true,
190
- get: function () { return chunkVOWMB2KR_js.LiteService; }
190
+ get: function () { return chunkDR4UPU6P_js.LiteService; }
191
191
  });
192
192
  Object.defineProperty(exports, "MESSAGE_TYPES", {
193
193
  enumerable: true,
194
- get: function () { return chunkVOWMB2KR_js.MESSAGE_TYPES; }
194
+ get: function () { return chunkDR4UPU6P_js.MESSAGE_TYPES; }
195
195
  });
196
196
  Object.defineProperty(exports, "MOBILE_MONEY_PROVIDER", {
197
197
  enumerable: true,
198
- get: function () { return chunkVOWMB2KR_js.MOBILE_MONEY_PROVIDER; }
198
+ get: function () { return chunkDR4UPU6P_js.MOBILE_MONEY_PROVIDER; }
199
199
  });
200
200
  Object.defineProperty(exports, "ORDER_MUTATION", {
201
201
  enumerable: true,
202
- get: function () { return chunkVOWMB2KR_js.ORDER_MUTATION; }
202
+ get: function () { return chunkDR4UPU6P_js.ORDER_MUTATION; }
203
203
  });
204
204
  Object.defineProperty(exports, "ORDER_TYPE", {
205
205
  enumerable: true,
206
- get: function () { return chunkVOWMB2KR_js.ORDER_TYPE; }
206
+ get: function () { return chunkDR4UPU6P_js.ORDER_TYPE; }
207
207
  });
208
208
  Object.defineProperty(exports, "OrderQueries", {
209
209
  enumerable: true,
210
- get: function () { return chunkVOWMB2KR_js.OrderQueries; }
210
+ get: function () { return chunkDR4UPU6P_js.OrderQueries; }
211
211
  });
212
212
  Object.defineProperty(exports, "PAYMENT_METHOD", {
213
213
  enumerable: true,
214
- get: function () { return chunkVOWMB2KR_js.PAYMENT_METHOD; }
214
+ get: function () { return chunkDR4UPU6P_js.PAYMENT_METHOD; }
215
215
  });
216
216
  Object.defineProperty(exports, "PAYMENT_MUTATION", {
217
217
  enumerable: true,
218
- get: function () { return chunkVOWMB2KR_js.PAYMENT_MUTATION; }
218
+ get: function () { return chunkDR4UPU6P_js.PAYMENT_MUTATION; }
219
219
  });
220
220
  Object.defineProperty(exports, "PAYMENT_STATE", {
221
221
  enumerable: true,
222
- get: function () { return chunkVOWMB2KR_js.PAYMENT_STATE; }
222
+ get: function () { return chunkDR4UPU6P_js.PAYMENT_STATE; }
223
223
  });
224
224
  Object.defineProperty(exports, "PICKUP_TIME_TYPE", {
225
225
  enumerable: true,
226
- get: function () { return chunkVOWMB2KR_js.PICKUP_TIME_TYPE; }
226
+ get: function () { return chunkDR4UPU6P_js.PICKUP_TIME_TYPE; }
227
227
  });
228
228
  Object.defineProperty(exports, "SchedulingService", {
229
229
  enumerable: true,
230
- get: function () { return chunkVOWMB2KR_js.SchedulingService; }
230
+ get: function () { return chunkDR4UPU6P_js.SchedulingService; }
231
231
  });
232
232
  Object.defineProperty(exports, "combine", {
233
233
  enumerable: true,
234
- get: function () { return chunkVOWMB2KR_js.combine; }
234
+ get: function () { return chunkDR4UPU6P_js.combine; }
235
235
  });
236
236
  Object.defineProperty(exports, "combineObject", {
237
237
  enumerable: true,
238
- get: function () { return chunkVOWMB2KR_js.combineObject; }
238
+ get: function () { return chunkDR4UPU6P_js.combineObject; }
239
239
  });
240
240
  Object.defineProperty(exports, "createElements", {
241
241
  enumerable: true,
242
- get: function () { return chunkVOWMB2KR_js.createElements; }
242
+ get: function () { return chunkDR4UPU6P_js.createElements; }
243
243
  });
244
244
  Object.defineProperty(exports, "err", {
245
245
  enumerable: true,
246
- get: function () { return chunkVOWMB2KR_js.err; }
246
+ get: function () { return chunkDR4UPU6P_js.err; }
247
247
  });
248
248
  Object.defineProperty(exports, "flatMap", {
249
249
  enumerable: true,
250
- get: function () { return chunkVOWMB2KR_js.flatMap; }
250
+ get: function () { return chunkDR4UPU6P_js.flatMap; }
251
251
  });
252
252
  Object.defineProperty(exports, "fromPromise", {
253
253
  enumerable: true,
254
- get: function () { return chunkVOWMB2KR_js.fromPromise; }
254
+ get: function () { return chunkDR4UPU6P_js.fromPromise; }
255
255
  });
256
256
  Object.defineProperty(exports, "generateIdempotencyKey", {
257
257
  enumerable: true,
258
- get: function () { return chunkVOWMB2KR_js.generateIdempotencyKey; }
258
+ get: function () { return chunkDR4UPU6P_js.generateIdempotencyKey; }
259
259
  });
260
260
  Object.defineProperty(exports, "getOrElse", {
261
261
  enumerable: true,
262
- get: function () { return chunkVOWMB2KR_js.getOrElse; }
262
+ get: function () { return chunkDR4UPU6P_js.getOrElse; }
263
263
  });
264
264
  Object.defineProperty(exports, "isErr", {
265
265
  enumerable: true,
266
- get: function () { return chunkVOWMB2KR_js.isErr; }
266
+ get: function () { return chunkDR4UPU6P_js.isErr; }
267
267
  });
268
268
  Object.defineProperty(exports, "isOk", {
269
269
  enumerable: true,
270
- get: function () { return chunkVOWMB2KR_js.isOk; }
270
+ get: function () { return chunkDR4UPU6P_js.isOk; }
271
271
  });
272
272
  Object.defineProperty(exports, "mapError", {
273
273
  enumerable: true,
274
- get: function () { return chunkVOWMB2KR_js.mapError; }
274
+ get: function () { return chunkDR4UPU6P_js.mapError; }
275
275
  });
276
276
  Object.defineProperty(exports, "mapResult", {
277
277
  enumerable: true,
278
- get: function () { return chunkVOWMB2KR_js.mapResult; }
278
+ get: function () { return chunkDR4UPU6P_js.mapResult; }
279
279
  });
280
280
  Object.defineProperty(exports, "ok", {
281
281
  enumerable: true,
282
- get: function () { return chunkVOWMB2KR_js.ok; }
282
+ get: function () { return chunkDR4UPU6P_js.ok; }
283
283
  });
284
284
  Object.defineProperty(exports, "toNullable", {
285
285
  enumerable: true,
286
- get: function () { return chunkVOWMB2KR_js.toNullable; }
286
+ get: function () { return chunkDR4UPU6P_js.toNullable; }
287
287
  });
288
288
  Object.defineProperty(exports, "tryCatch", {
289
289
  enumerable: true,
290
- get: function () { return chunkVOWMB2KR_js.tryCatch; }
290
+ get: function () { return chunkDR4UPU6P_js.tryCatch; }
291
291
  });
292
292
  Object.defineProperty(exports, "unwrap", {
293
293
  enumerable: true,
294
- get: function () { return chunkVOWMB2KR_js.unwrap; }
294
+ get: function () { return chunkDR4UPU6P_js.unwrap; }
295
295
  });
296
296
  Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
297
297
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  export { CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, assetUrl, getVariantDisplayName, isCimplifyAsset } from './chunk-NRDRVZ62.mjs';
2
2
  export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
3
- export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-GUZXQSGI.mjs';
4
- 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, 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, toNullable, tryCatch, unwrap } from './chunk-FXACV333.mjs';
3
+ export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-MBR2DBEN.mjs';
4
+ 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, 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, toNullable, tryCatch, unwrap } from './chunk-OFNVLUH4.mjs';
5
5
  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-XY2DFX5K.mjs';
6
6
  export { CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, ZERO, currencyCode, enrichError, getErrorHint, isCimplifyError, isIdempotencyMismatchError, isQuoteConflictRequiringConsent, isQuoteError, isRetryableError, isSupportedCurrency, money, moneyFromNumber } from './chunk-Z2AYLZDF.mjs';
package/dist/react.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React$1, { ReactNode } from 'react';
2
2
  import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.mjs';
3
3
  export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
4
- import { C as CimplifyClient, aq as ProcessCheckoutResult, as as CheckoutStatus, at as CheckoutStatusContext, c0 as Location, bZ as Business, n as ReorderResult, b7 as OrderStatus, bk as Order, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, j as QuoteUiMessage, cd as Service, ci as AvailableSlot, cj as DayAvailability, co as CustomerBooking, cu as CancelBookingResult, N as ActivityStateResponse, K as SessionMessage, V as ActivityRecommendation, Z as DeliveryFeeResponse, d3 as FxRateResponse, c7 as StorefrontBootstrap, a3 as ChatWidgetStarter, $ as ChatMessage, ae as ElementsOptions, dh as AuthenticatedData, dd as AddressInfo, de as PaymentMethodInfo, a8 as CimplifyElements, dj as ElementsCheckoutResult, ap as ProcessCheckoutOptions, bj as LineItem, ce as Staff, c5 as Room } from './client-CF2pmEE9.mjs';
4
+ import { C as CimplifyClient, ao as ProcessCheckoutResult, aq as CheckoutStatus, ar as CheckoutStatusContext, b_ as Location, bX as Business, l as ReorderResult, b5 as OrderStatus, bi as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, h as QuoteUiMessage, cb as Service, cg as AvailableSlot, ch as DayAvailability, cm as CustomerBooking, cs as CancelBookingResult, K as ActivityStateResponse, H as SessionMessage, M as ActivityRecommendation, X as DeliveryFeeResponse, d1 as FxRateResponse, c5 as StorefrontBootstrap, a1 as ChatWidgetStarter, Z as ChatMessage, ac as ElementsOptions, df as AuthenticatedData, db as AddressInfo, dc as PaymentMethodInfo, a6 as CimplifyElements, dh as ElementsCheckoutResult, an as ProcessCheckoutOptions, bh as LineItem, cc as Staff, c3 as Room } from './client-C6J_RGlr.mjs';
5
5
  import { a as CurrencyCode, X as Product, d as Pagination, h as CimplifyError, aa as ProductWithDetails, ap as Category, M as Money, bk as BundleSelectionInput, aP as ComponentSelectionInput, bn as BundleSelectionData, bq as CompositeSelectionData, ar as Collection, aX as ProductTaxonomy, aY as TaxonomyWithChildren, aW as ProductTimeProfile, a$ as Deal, b0 as ProductDealInfo, b1 as DiscountValidation, aw as BundleSummary, aQ as CompositePriceResult, bT as SubscriptionStatus, bU as Subscription, bX as SubscriptionWithDetails, K as CustomAttributeDefinition, Q as PropertyFacet, bQ as ProductBillingPlan, ab as VariantView, af as VariantAxisWithValues, al as AddOnWithOptions, aB as BundleComponentView, au as BundlePriceType, aM as CompositeGroupView, bv as DisplayCart, a6 as ProductInputField, S as SchedulingMode, x as DurationUnit, L as CustomAttributeValue, O as ProductProperty, a8 as QuantityPricingTier } from './product-C-xLzh7Q.mjs';
6
6
  import { P as ProductWithPrice } from './price-BjehlIhG.mjs';
7
7
  import { ClassValue } from 'clsx';
package/dist/react.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React$1, { ReactNode } from 'react';
2
2
  import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.js';
3
3
  export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
4
- import { C as CimplifyClient, aq as ProcessCheckoutResult, as as CheckoutStatus, at as CheckoutStatusContext, c0 as Location, bZ as Business, n as ReorderResult, b7 as OrderStatus, bk as Order, f as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, j as QuoteUiMessage, cd as Service, ci as AvailableSlot, cj as DayAvailability, co as CustomerBooking, cu as CancelBookingResult, N as ActivityStateResponse, K as SessionMessage, V as ActivityRecommendation, Z as DeliveryFeeResponse, d3 as FxRateResponse, c7 as StorefrontBootstrap, a3 as ChatWidgetStarter, $ as ChatMessage, ae as ElementsOptions, dh as AuthenticatedData, dd as AddressInfo, de as PaymentMethodInfo, a8 as CimplifyElements, dj as ElementsCheckoutResult, ap as ProcessCheckoutOptions, bj as LineItem, ce as Staff, c5 as Room } from './client-B6x53-Al.js';
4
+ import { C as CimplifyClient, ao as ProcessCheckoutResult, aq as CheckoutStatus, ar as CheckoutStatusContext, b_ as Location, bX as Business, l as ReorderResult, b5 as OrderStatus, bi as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, h as QuoteUiMessage, cb as Service, cg as AvailableSlot, ch as DayAvailability, cm as CustomerBooking, cs as CancelBookingResult, K as ActivityStateResponse, H as SessionMessage, M as ActivityRecommendation, X as DeliveryFeeResponse, d1 as FxRateResponse, c5 as StorefrontBootstrap, a1 as ChatWidgetStarter, Z as ChatMessage, ac as ElementsOptions, df as AuthenticatedData, db as AddressInfo, dc as PaymentMethodInfo, a6 as CimplifyElements, dh as ElementsCheckoutResult, an as ProcessCheckoutOptions, bh as LineItem, cc as Staff, c3 as Room } from './client-CX7IFIkL.js';
5
5
  import { a as CurrencyCode, X as Product, d as Pagination, h as CimplifyError, aa as ProductWithDetails, ap as Category, M as Money, bk as BundleSelectionInput, aP as ComponentSelectionInput, bn as BundleSelectionData, bq as CompositeSelectionData, ar as Collection, aX as ProductTaxonomy, aY as TaxonomyWithChildren, aW as ProductTimeProfile, a$ as Deal, b0 as ProductDealInfo, b1 as DiscountValidation, aw as BundleSummary, aQ as CompositePriceResult, bT as SubscriptionStatus, bU as Subscription, bX as SubscriptionWithDetails, K as CustomAttributeDefinition, Q as PropertyFacet, bQ as ProductBillingPlan, ab as VariantView, af as VariantAxisWithValues, al as AddOnWithOptions, aB as BundleComponentView, au as BundlePriceType, aM as CompositeGroupView, bv as DisplayCart, a6 as ProductInputField, S as SchedulingMode, x as DurationUnit, L as CustomAttributeValue, O as ProductProperty, a8 as QuantityPricingTier } from './product-C-xLzh7Q.js';
6
6
  import { P as ProductWithPrice } from './price-CWQ5TQmk.js';
7
7
  import { ClassValue } from 'clsx';
package/dist/react.js CHANGED
@@ -2,8 +2,8 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkMN4PNKJA_js = require('./chunk-MN4PNKJA.js');
5
- var chunkFJQC4VSN_js = require('./chunk-FJQC4VSN.js');
6
- var chunkVOWMB2KR_js = require('./chunk-VOWMB2KR.js');
5
+ var chunkCYGLTD7D_js = require('./chunk-CYGLTD7D.js');
6
+ var chunkDR4UPU6P_js = require('./chunk-DR4UPU6P.js');
7
7
  var chunk6RP6OPYO_js = require('./chunk-6RP6OPYO.js');
8
8
  var chunkTKOTACKZ_js = require('./chunk-TKOTACKZ.js');
9
9
  var React10 = require('react');
@@ -1084,7 +1084,7 @@ var DEFAULT_COUNTRY = "US";
1084
1084
  function createDefaultClient() {
1085
1085
  const processRef = globalThis.process;
1086
1086
  const envPublicKey = processRef?.env?.NEXT_PUBLIC_CIMPLIFY_PUBLIC_KEY || "";
1087
- return chunkFJQC4VSN_js.createCimplifyClient({ publicKey: envPublicKey });
1087
+ return chunkCYGLTD7D_js.createCimplifyClient({ publicKey: envPublicKey });
1088
1088
  }
1089
1089
  function getStoredLocationId() {
1090
1090
  if (typeof window === "undefined" || !window.localStorage) {
@@ -3519,19 +3519,19 @@ function AuthElement({
3519
3519
  }, [onReady, onAuthenticated, onRequiresOtp, onError]);
3520
3520
  React10.useEffect(() => {
3521
3521
  if (!elements || !containerRef.current) return;
3522
- const element = elements.create(chunkVOWMB2KR_js.ELEMENT_TYPES.AUTH, { prefillEmail });
3522
+ const element = elements.create(chunkDR4UPU6P_js.ELEMENT_TYPES.AUTH, { prefillEmail });
3523
3523
  elementRef.current = element;
3524
- element.on(chunkVOWMB2KR_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
3524
+ element.on(chunkDR4UPU6P_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
3525
3525
  element.on(
3526
- chunkVOWMB2KR_js.EVENT_TYPES.AUTHENTICATED,
3526
+ chunkDR4UPU6P_js.EVENT_TYPES.AUTHENTICATED,
3527
3527
  (data) => onAuthenticatedRef.current?.(data)
3528
3528
  );
3529
3529
  element.on(
3530
- chunkVOWMB2KR_js.EVENT_TYPES.REQUIRES_OTP,
3530
+ chunkDR4UPU6P_js.EVENT_TYPES.REQUIRES_OTP,
3531
3531
  (data) => onRequiresOtpRef.current?.(data)
3532
3532
  );
3533
3533
  element.on(
3534
- chunkVOWMB2KR_js.EVENT_TYPES.ERROR,
3534
+ chunkDR4UPU6P_js.EVENT_TYPES.ERROR,
3535
3535
  (data) => onErrorRef.current?.(data)
3536
3536
  );
3537
3537
  element.mount(containerRef.current);
@@ -3560,15 +3560,15 @@ function AddressElement({
3560
3560
  }, [onReady, onChange, onError]);
3561
3561
  React10.useEffect(() => {
3562
3562
  if (!elements || !containerRef.current) return;
3563
- const element = elements.create(chunkVOWMB2KR_js.ELEMENT_TYPES.ADDRESS, { mode });
3563
+ const element = elements.create(chunkDR4UPU6P_js.ELEMENT_TYPES.ADDRESS, { mode });
3564
3564
  elementRef.current = element;
3565
- element.on(chunkVOWMB2KR_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
3565
+ element.on(chunkDR4UPU6P_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
3566
3566
  element.on(
3567
- chunkVOWMB2KR_js.EVENT_TYPES.CHANGE,
3567
+ chunkDR4UPU6P_js.EVENT_TYPES.CHANGE,
3568
3568
  (data) => onChangeRef.current?.(data)
3569
3569
  );
3570
3570
  element.on(
3571
- chunkVOWMB2KR_js.EVENT_TYPES.ERROR,
3571
+ chunkDR4UPU6P_js.EVENT_TYPES.ERROR,
3572
3572
  (data) => onErrorRef.current?.(data)
3573
3573
  );
3574
3574
  element.mount(containerRef.current);
@@ -3598,15 +3598,15 @@ function PaymentElement({
3598
3598
  }, [onReady, onChange, onError]);
3599
3599
  React10.useEffect(() => {
3600
3600
  if (!elements || !containerRef.current) return;
3601
- const element = elements.create(chunkVOWMB2KR_js.ELEMENT_TYPES.PAYMENT, { amount, currency });
3601
+ const element = elements.create(chunkDR4UPU6P_js.ELEMENT_TYPES.PAYMENT, { amount, currency });
3602
3602
  elementRef.current = element;
3603
- element.on(chunkVOWMB2KR_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
3603
+ element.on(chunkDR4UPU6P_js.EVENT_TYPES.READY, () => onReadyRef.current?.());
3604
3604
  element.on(
3605
- chunkVOWMB2KR_js.EVENT_TYPES.CHANGE,
3605
+ chunkDR4UPU6P_js.EVENT_TYPES.CHANGE,
3606
3606
  (data) => onChangeRef.current?.(data)
3607
3607
  );
3608
3608
  element.on(
3609
- chunkVOWMB2KR_js.EVENT_TYPES.ERROR,
3609
+ chunkDR4UPU6P_js.EVENT_TYPES.ERROR,
3610
3610
  (data) => onErrorRef.current?.(data)
3611
3611
  );
3612
3612
  element.mount(containerRef.current);
package/dist/react.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { DURATION_UNIT, getVariantDisplayName, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT } from './chunk-NRDRVZ62.mjs';
3
3
  export { getVariantDisplayName } from './chunk-NRDRVZ62.mjs';
4
- import { createCimplifyClient } from './chunk-GUZXQSGI.mjs';
5
- import { ELEMENT_TYPES, EVENT_TYPES } from './chunk-FXACV333.mjs';
4
+ import { createCimplifyClient } from './chunk-MBR2DBEN.mjs';
5
+ import { ELEMENT_TYPES, EVENT_TYPES } from './chunk-OFNVLUH4.mjs';
6
6
  import { formatPrice, parsePrice, getUnitPriceAtQuantity, isOnSale, getDiscountPercentage, getBasePrice, getPriceRange, formatPriceRange } from './chunk-XY2DFX5K.mjs';
7
7
  import { isSupportedCurrency } from './chunk-Z2AYLZDF.mjs';
8
8
  import React10, { createContext, useRef, useState, useCallback, useEffect, useContext, useMemo, useId, useSyncExternalStore } from 'react';
package/dist/server.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CimplifyClient } from './client-CF2pmEE9.mjs';
2
- export { d as CacheOptions, b as ReadRequestOptions, aQ as Result } from './client-CF2pmEE9.mjs';
1
+ import { C as CimplifyClient } from './client-C6J_RGlr.mjs';
2
+ export { aO as Result } from './client-C6J_RGlr.mjs';
3
3
  import { IncrementalCache } from '@opennextjs/aws/types/overrides';
4
4
  export { ap as Category, h as CimplifyError, ar as Collection, X as Product, aa as ProductWithDetails } from './product-C-xLzh7Q.mjs';
5
5
  import './payment-9L_-GWqQ.mjs';
@@ -28,17 +28,9 @@ interface ServerClientOptions {
28
28
  *
29
29
  * The returned client is the exact same surface the browser uses — every
30
30
  * resource (catalogue, cart, checkout, …) and every method works identically.
31
- *
32
- * Caching is Next.js's responsibility. Pass `cacheOptions` per read method
33
- * (`{ revalidate, tags }`); the SDK forwards them as `next: { revalidate, tags }`
34
- * on the underlying fetch — Next 16's documented ISR API. Invalidate via the
35
- * `revalidate*` helpers (also exported from this entry) or the bare
36
- * `revalidateTag` / `revalidatePath` from `next/cache`.
37
- *
38
- * If you have `cacheComponents: true` in `next.config.ts` (Next 16 PPR-style
39
- * caching), the `'use cache'` + `cacheTag` / `cacheLife` directives work too —
40
- * but they require a Node-compatible runtime and won't function on Cloudflare
41
- * Workers. For Workers / WfP storefronts, stay on the ISR (`cacheOptions`) path.
31
+ * Caching is Next.js's responsibility: wrap your composed reads with
32
+ * `'use cache'` + `cacheTag` (using the tag builders from `@cimplify/sdk/server`),
33
+ * or set `next: { revalidate, tags }` on individual fetches.
42
34
  *
43
35
  * Errors continue to flow through `Result<T, CimplifyError>`. Use the SDK's
44
36
  * `unwrap()` helper, or `if (!result.ok) notFound()` — whichever is
@@ -46,13 +38,13 @@ interface ServerClientOptions {
46
38
  *
47
39
  * @example
48
40
  * import { getServerClient, tags } from "@cimplify/sdk/server";
49
- *
50
- * export const revalidate = 3600;
41
+ * import { cacheTag, cacheLife } from "next/cache";
51
42
  *
52
43
  * async function getProduct(slug: string) {
53
- * const r = await getServerClient().catalogue.getProductBySlug(slug, {
54
- * cacheOptions: { revalidate: 3600, tags: [tags.product(slug)] },
55
- * });
44
+ * "use cache";
45
+ * cacheTag(tags.product(slug));
46
+ * cacheLife("hours");
47
+ * const r = await getServerClient().catalogue.getProductBySlug(slug);
56
48
  * if (!r.ok) throw new Error(r.error.message);
57
49
  * return r.value;
58
50
  * }