@cimplify/sdk 0.8.6 → 0.8.8

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.
@@ -1,5 +1,5 @@
1
- export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-6MsOWo8f.mjs';
2
- import './payment-CLIWNMaP.mjs';
1
+ export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-D1rHAIZY.mjs';
2
+ import './payment-BKjX2fAs.mjs';
3
3
 
4
4
  type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
5
5
  type SortOrder = "asc" | "desc";
@@ -1,5 +1,5 @@
1
- export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-CVJ0S99a.js';
2
- import './payment-CLIWNMaP.js';
1
+ export { A as AuthService, B as BusinessService, i as CartOperations, b as CatalogueQueries, j as CheckoutOperations, j as CheckoutService, t as CimplifyElement, s as CimplifyElements, v as ELEMENT_TYPES, E as EVENT_TYPES, z as ElementEventType, x as ElementOptions, y as ElementType, w as ElementsOptions, F as FetchQuoteInput, q as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, p as LiteService, M as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, o as SchedulingService, S as SearchOptions, u as createElements, k as generateIdempotencyKey } from './client-Dklt51q-.js';
2
+ import './payment-BKjX2fAs.js';
3
3
 
4
4
  type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
5
5
  type SortOrder = "asc" | "desc";
@@ -1,4 +1,4 @@
1
- import { K as Category, q as Product, F as AddOnWithOptions, d as Pagination, h as CimplifyError, r as ProductWithDetails, s as ProductVariant, u as VariantAxis, z as VariantAxisSelection, B as AddOn, N as Collection, T as Bundle, X as BundleWithDetails, a2 as Composite, a3 as CompositeWithDetails, a7 as ComponentSelectionInput, a8 as CompositePriceResult, an as ChosenPrice, aS as UICart, aD as Cart, aE as CartItem, aW as CartSummary, aU as AddToCartInput, aV as UpdateCartItemInput, ar as DiscountDetails, M as Money, C as CurrencyCode, aC as LineConfiguration, a_ as AuthorizationType, b0 as PaymentMethod, b2 as InitializePaymentResult, b6 as SubmitAuthorizationInput, b4 as PaymentStatusResponse } from './payment-CLIWNMaP.mjs';
1
+ import { L as Category, r as Product, G as AddOnWithOptions, d as Pagination, h as CimplifyError, s as ProductWithDetails, t as ProductVariant, v as VariantAxis, B as VariantAxisSelection, F as AddOn, O as Collection, U as Bundle, Y as BundleWithDetails, a3 as Composite, a4 as CompositeWithDetails, a8 as ComponentSelectionInput, a9 as CompositePriceResult, ao as ChosenPrice, aT as UICart, aE as Cart, aF as CartItem, aX as CartSummary, aV as AddToCartInput, aW as UpdateCartItemInput, as as DiscountDetails, M as Money, C as CurrencyCode, aD as LineConfiguration, a$ as AuthorizationType, b1 as PaymentMethod, b3 as InitializePaymentResult, b7 as SubmitAuthorizationInput, b5 as PaymentStatusResponse } from './payment-BKjX2fAs.mjs';
2
2
 
3
3
  /**
4
4
  * Observability hooks for monitoring SDK behavior.
@@ -1,4 +1,4 @@
1
- import { K as Category, q as Product, F as AddOnWithOptions, d as Pagination, h as CimplifyError, r as ProductWithDetails, s as ProductVariant, u as VariantAxis, z as VariantAxisSelection, B as AddOn, N as Collection, T as Bundle, X as BundleWithDetails, a2 as Composite, a3 as CompositeWithDetails, a7 as ComponentSelectionInput, a8 as CompositePriceResult, an as ChosenPrice, aS as UICart, aD as Cart, aE as CartItem, aW as CartSummary, aU as AddToCartInput, aV as UpdateCartItemInput, ar as DiscountDetails, M as Money, C as CurrencyCode, aC as LineConfiguration, a_ as AuthorizationType, b0 as PaymentMethod, b2 as InitializePaymentResult, b6 as SubmitAuthorizationInput, b4 as PaymentStatusResponse } from './payment-CLIWNMaP.js';
1
+ import { L as Category, r as Product, G as AddOnWithOptions, d as Pagination, h as CimplifyError, s as ProductWithDetails, t as ProductVariant, v as VariantAxis, B as VariantAxisSelection, F as AddOn, O as Collection, U as Bundle, Y as BundleWithDetails, a3 as Composite, a4 as CompositeWithDetails, a8 as ComponentSelectionInput, a9 as CompositePriceResult, ao as ChosenPrice, aT as UICart, aE as Cart, aF as CartItem, aX as CartSummary, aV as AddToCartInput, aW as UpdateCartItemInput, as as DiscountDetails, M as Money, C as CurrencyCode, aD as LineConfiguration, a$ as AuthorizationType, b1 as PaymentMethod, b3 as InitializePaymentResult, b7 as SubmitAuthorizationInput, b5 as PaymentStatusResponse } from './payment-BKjX2fAs.js';
2
2
 
3
3
  /**
4
4
  * Observability hooks for monitoring SDK behavior.
@@ -1,4 +1,4 @@
1
- import { an as ChosenPrice, C as CurrencyCode, ak as TaxPathComponent, al as PricePathTaxInfo, M as Money, b5 as PaymentErrorDetails, b3 as PaymentResponse, b4 as PaymentStatusResponse } from './payment-CLIWNMaP.mjs';
1
+ import { ao as ChosenPrice, C as CurrencyCode, al as TaxPathComponent, am as PricePathTaxInfo, M as Money, b6 as PaymentErrorDetails, b4 as PaymentResponse, b5 as PaymentStatusResponse } from './payment-BKjX2fAs.mjs';
2
2
 
3
3
  /**
4
4
  * Price Types
@@ -1,4 +1,4 @@
1
- import { an as ChosenPrice, C as CurrencyCode, ak as TaxPathComponent, al as PricePathTaxInfo, M as Money, b5 as PaymentErrorDetails, b3 as PaymentResponse, b4 as PaymentStatusResponse } from './payment-CLIWNMaP.js';
1
+ import { ao as ChosenPrice, C as CurrencyCode, al as TaxPathComponent, am as PricePathTaxInfo, M as Money, b6 as PaymentErrorDetails, b4 as PaymentResponse, b5 as PaymentStatusResponse } from './payment-BKjX2fAs.js';
2
2
 
3
3
  /**
4
4
  * Price Types
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-6MsOWo8f.mjs';
1
+ export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-D1rHAIZY.mjs';
2
2
  export { QueryBuilder, query } from './advanced.mjs';
3
- import { A as ApiError } from './payment-CLIWNMaP.mjs';
4
- export { B as AddOn, at as AddOnDetails, aP as AddOnGroupDetails, G as AddOnOption, aO as AddOnOptionDetails, H as AddOnOptionPrice, F as AddOnWithOptions, aU as AddToCartInput, ai as AdjustmentType, ap as AppliedDiscount, a_ as AuthorizationType, ao as BenefitType, T as Bundle, Y as BundleComponentData, _ as BundleComponentInfo, R as BundlePriceType, W as BundleProduct, ay as BundleSelectionData, aw as BundleSelectionInput, ax as BundleStoredSelection, U as BundleSummary, X as BundleWithDetails, aD as Cart, au as CartAddOn, ag as CartChannel, aE as CartItem, aR as CartItemDetails, af as CartStatus, aW as CartSummary, aF as CartTotals, K as Category, L as CategorySummary, an as ChosenPrice, h as CimplifyError, N as Collection, Q as CollectionProduct, O as CollectionSummary, a4 as ComponentGroup, a5 as ComponentGroupWithComponents, a9 as ComponentPriceBreakdown, a7 as ComponentSelectionInput, a1 as ComponentSourceType, a2 as Composite, a6 as CompositeComponent, aA as CompositePriceBreakdown, a8 as CompositePriceResult, $ as CompositePricingMode, aB as CompositeSelectionData, a7 as CompositeSelectionInput, az as CompositeStoredSelection, a3 as CompositeWithDetails, b as Currency, C as CurrencyCode, p as DepositType, D as DigitalProductType, aq as DiscountBreakdown, ar as DiscountDetails, aI as DisplayAddOn, aJ as DisplayAddOnOption, aG as DisplayCart, aH as DisplayCartItem, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a0 as GroupPricingBehavior, b2 as InitializePaymentResult, I as InventoryType, aC as LineConfiguration, ac as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b1 as Payment, b5 as PaymentErrorDetails, b0 as PaymentMethod, aZ as PaymentMethodType, a$ as PaymentProcessingState, aY as PaymentProvider, b3 as PaymentResponse, aX as PaymentStatus, b4 as PaymentStatusResponse, ab as Price, aj as PriceAdjustment, am as PriceDecisionPath, aa as PriceEntryType, al as PricePathTaxInfo, ah as PriceSource, q as Product, J as ProductAddOn, ad as ProductAvailability, o as ProductRenderHint, ae as ProductTimeProfile, n as ProductType, s as ProductVariant, x as ProductVariantValue, r as ProductWithDetails, S as SalesChannel, as as SelectedAddOnOption, b6 as SubmitAuthorizationInput, ak as TaxPathComponent, aS as UICart, aK as UICartBusiness, aM as UICartCustomer, aL as UICartLocation, aN as UICartPricing, aT as UICartResponse, aV as UpdateCartItemInput, u as VariantAxis, z as VariantAxisSelection, w as VariantAxisValue, v as VariantAxisWithValues, av as VariantDetails, aQ as VariantDetailsDTO, t as VariantDisplayAttribute, y as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, k as enrichError, j as getErrorHint, i as isCimplifyError, l as isRetryableError, m as money, a as moneyFromNumber } from './payment-CLIWNMaP.mjs';
5
- export { C as CURRENCY_SYMBOLS, B as FormatCompactOptions, F as FormatPriceOptions, M as MOBILE_MONEY_PROVIDERS, P as PriceInfo, A as ProductWithPrice, T as TaxComponent, z as TaxInfo, s as categorizePaymentError, y as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, i as isTaxInclusive, t as normalizePaymentResponse, u as normalizeStatusResponse, p as parsePrice } from './index-mrKi_VbR.mjs';
3
+ import { A as ApiError } from './payment-BKjX2fAs.mjs';
4
+ export { F as AddOn, au as AddOnDetails, aQ as AddOnGroupDetails, H as AddOnOption, aP as AddOnOptionDetails, J as AddOnOptionPrice, G as AddOnWithOptions, aV as AddToCartInput, aj as AdjustmentType, aq as AppliedDiscount, a$ as AuthorizationType, ap as BenefitType, U as Bundle, _ as BundleComponentData, $ as BundleComponentInfo, T as BundlePriceType, X as BundleProduct, az as BundleSelectionData, ax as BundleSelectionInput, ay as BundleStoredSelection, W as BundleSummary, Y as BundleWithDetails, aE as Cart, av as CartAddOn, ah as CartChannel, aF as CartItem, aS as CartItemDetails, ag as CartStatus, aX as CartSummary, aG as CartTotals, L as Category, N as CategorySummary, ao as ChosenPrice, h as CimplifyError, O as Collection, R as CollectionProduct, Q as CollectionSummary, a5 as ComponentGroup, a6 as ComponentGroupWithComponents, aa as ComponentPriceBreakdown, a8 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a7 as CompositeComponent, aB as CompositePriceBreakdown, a9 as CompositePriceResult, a0 as CompositePricingMode, aC as CompositeSelectionData, a8 as CompositeSelectionInput, aA as CompositeStoredSelection, a4 as CompositeWithDetails, b as Currency, C as CurrencyCode, q as DepositType, D as DigitalProductType, ar as DiscountBreakdown, as as DiscountDetails, aJ as DisplayAddOn, aK as DisplayAddOnOption, aH as DisplayCart, aI as DisplayCartItem, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a1 as GroupPricingBehavior, b3 as InitializePaymentResult, I as InventoryType, aD as LineConfiguration, ad as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b2 as Payment, b6 as PaymentErrorDetails, b1 as PaymentMethod, a_ as PaymentMethodType, b0 as PaymentProcessingState, aZ as PaymentProvider, b4 as PaymentResponse, aY as PaymentStatus, b5 as PaymentStatusResponse, ac as Price, ak as PriceAdjustment, an as PriceDecisionPath, ab as PriceEntryType, am as PricePathTaxInfo, ai as PriceSource, r as Product, K as ProductAddOn, ae as ProductAvailability, p as ProductRenderHint, af as ProductTimeProfile, o as ProductType, t as ProductVariant, y as ProductVariantValue, s as ProductWithDetails, S as SalesChannel, at as SelectedAddOnOption, b7 as SubmitAuthorizationInput, al as TaxPathComponent, aT as UICart, aL as UICartBusiness, aN as UICartCustomer, aM as UICartLocation, aO as UICartPricing, aU as UICartResponse, aW as UpdateCartItemInput, v as VariantAxis, B as VariantAxisSelection, x as VariantAxisValue, w as VariantAxisWithValues, aw as VariantDetails, aR as VariantDetailsDTO, u as VariantDisplayAttribute, z as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, a as moneyFromNumber } from './payment-BKjX2fAs.mjs';
5
+ export { C as CURRENCY_SYMBOLS, B as FormatCompactOptions, F as FormatPriceOptions, M as MOBILE_MONEY_PROVIDERS, P as PriceInfo, A as ProductWithPrice, T as TaxComponent, z as TaxInfo, s as categorizePaymentError, y as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, i as isTaxInclusive, t as normalizePaymentResponse, u as normalizeStatusResponse, p as parsePrice } from './index-DKLWJwJd.mjs';
6
6
  export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme } from './ads-t3FBTU8p.mjs';
7
7
 
8
8
  /** Context sent with every request to scope operations to a specific location/branch */
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-CVJ0S99a.js';
1
+ export { ab as AUTHORIZATION_TYPE, ag as AUTH_MUTATION, a0 as AbortablePromise, cd as AddressData, cG as AddressInfo, aQ as AmountToPay, co as AuthResponse, A as AuthService, m as AuthStatus, cI as AuthenticatedCustomer, cK as AuthenticatedData, c1 as AvailabilityCheck, c2 as AvailabilityResult, bG as AvailableSlot, bJ as Booking, bI as BookingStatus, bK as BookingWithDetails, b8 as BufferTimes, bn as Business, bB as BusinessHours, bm as BusinessPreferences, B as BusinessService, bA as BusinessSettings, bl as BusinessType, by as BusinessWithLocations, a4 as CHECKOUT_MODE, ah as CHECKOUT_MUTATION, a7 as CHECKOUT_STEP, ad as CONTACT_TYPE, bR as CancelBookingInput, bS as CancelBookingResult, b2 as CancelOrderInput, ba as CancellationPolicy, i as CartOperations, b as CatalogueQueries, aD as CatalogueResult, aE as CatalogueSnapshot, bC as CategoryInfo, bO as CheckSlotAvailabilityInput, bP as CheckSlotAvailabilityResult, cr as CheckoutAddressInfo, cO as CheckoutCartData, cN as CheckoutCartItem, ct as CheckoutCustomerInfo, N as CheckoutFormData, b0 as CheckoutInput, D as CheckoutMode, j as CheckoutOperations, H as CheckoutOrderType, J as CheckoutPaymentMethod, V as CheckoutResult, j as CheckoutService, _ as CheckoutStatus, $ as CheckoutStatusContext, K as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, t as CimplifyElement, s as CimplifyElements, a3 as ContactType, c9 as CreateAddressInput, cb as CreateMobileMoneyInput, c4 as Customer, c5 as CustomerAddress, bM as CustomerBooking, bL as CustomerBookingServiceItem, c7 as CustomerLinkPreferences, c6 as CustomerMobileMoney, b7 as CustomerServicePreferences, al as DEFAULT_COUNTRY, ak as DEFAULT_CURRENCY, ac as DEVICE_TYPE, bH as DayAvailability, bh as DepositResult, a2 as DeviceType, v as ELEMENT_TYPES, E as EVENT_TYPES, cF as ElementAppearance, cR as ElementEventHandler, z as ElementEventType, x as ElementOptions, y as ElementType, cL as ElementsCheckoutData, cM as ElementsCheckoutResult, cJ as ElementsCustomerInfo, w as ElementsOptions, cf as EnrollAndLinkOrderInput, ci as EnrollAndLinkOrderResult, cc as EnrollmentData, ao as Err, aP as FeeBearerType, F as FetchQuoteInput, aN as FulfillmentLink, aM as FulfillmentStatus, aL as FulfillmentType, cv as FxQuote, cu as FxQuoteRequest, cw as FxRateResponse, q as FxService, bN as GetAvailableSlotsInput, l as GetOrdersOptions, G as GetProductsOptions, cQ as IframeToParentMessage, I as InventoryService, c3 as InventorySummary, af as LINK_MUTATION, ae as LINK_QUERY, aR as LineItem, aI as LineType, c8 as LinkData, ch as LinkEnrollResult, L as LinkService, cj as LinkSession, cg as LinkStatusResult, r as LiteBootstrap, p as LiteService, bq as Location, bk as LocationAppointment, c0 as LocationStock, bo as LocationTaxBehavior, bp as LocationTaxOverrides, bt as LocationTimeProfile, bz as LocationWithDetails, M as MESSAGE_TYPES, aa as MOBILE_MONEY_PROVIDER, ce as MobileMoneyData, cs as MobileMoneyDetails, a1 as MobileMoneyProvider, W as NextAction, aj as ORDER_MUTATION, a5 as ORDER_TYPE, cD as ObservabilityHooks, an as Ok, aS as Order, aH as OrderChannel, a$ as OrderFilter, aO as OrderFulfillmentSummary, aV as OrderGroup, aZ as OrderGroupDetails, aW as OrderGroupPayment, aU as OrderGroupPaymentState, aY as OrderGroupPaymentSummary, aT as OrderHistory, aJ as OrderLineState, aK as OrderLineStatus, a_ as OrderPaymentEvent, O as OrderQueries, aX as OrderSplitDetail, aF as OrderStatus, cE as OrderType, n as OtpResult, a6 as PAYMENT_METHOD, ai as PAYMENT_MUTATION, a8 as PAYMENT_STATE, a9 as PICKUP_TIME_TYPE, cP as ParentToIframeMessage, cH as PaymentMethodInfo, aG as PaymentState, cq as PickupTime, cp as PickupTimeType, P as PriceQuote, bc as PricingOverrides, Z as ProcessAndResolveOptions, X as ProcessCheckoutOptions, Y as ProcessCheckoutResult, b_ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, h as RefreshQuoteResult, b3 as RefundOrderInput, b6 as ReminderMethod, b9 as ReminderSettings, cx as RequestContext, cA as RequestErrorEvent, cm as RequestOtpInput, cy as RequestStartEvent, cz as RequestSuccessEvent, bQ as RescheduleBookingInput, bT as RescheduleBookingResult, bf as ResourceAssignment, am as Result, cB as RetryEvent, cl as RevokeAllSessionsResult, ck as RevokeSessionResult, bv as Room, bd as SchedulingMetadata, bg as SchedulingResult, o as SchedulingService, S as SearchOptions, bD as Service, bU as ServiceAvailabilityParams, bV as ServiceAvailabilityResult, bw as ServiceCharge, bb as ServiceNotes, bi as ServiceScheduleRequest, b4 as ServiceStatus, cC as SessionChangeEvent, bE as Staff, be as StaffAssignment, b5 as StaffRole, bj as StaffScheduleItem, bY as Stock, bZ as StockLevel, bW as StockOwnershipType, bX as StockStatus, bx as StorefrontBootstrap, bu as Table, T as TableInfo, br as TimeRange, bs as TimeRanges, bF as TimeSlot, ca as UpdateAddressInput, b1 as UpdateOrderStatusInput, U as UpdateProfileInput, b$ as VariantStock, cn as VerifyOtpInput, aB as combine, aC as combineObject, c as createCimplifyClient, u as createElements, aq as err, av as flatMap, az as fromPromise, k as generateIdempotencyKey, aw as getOrElse, as as isErr, ar as isOk, au as mapError, at as mapResult, ap as ok, ay as toNullable, aA as tryCatch, ax as unwrap } from './client-Dklt51q-.js';
2
2
  export { QueryBuilder, query } from './advanced.js';
3
- import { A as ApiError } from './payment-CLIWNMaP.js';
4
- export { B as AddOn, at as AddOnDetails, aP as AddOnGroupDetails, G as AddOnOption, aO as AddOnOptionDetails, H as AddOnOptionPrice, F as AddOnWithOptions, aU as AddToCartInput, ai as AdjustmentType, ap as AppliedDiscount, a_ as AuthorizationType, ao as BenefitType, T as Bundle, Y as BundleComponentData, _ as BundleComponentInfo, R as BundlePriceType, W as BundleProduct, ay as BundleSelectionData, aw as BundleSelectionInput, ax as BundleStoredSelection, U as BundleSummary, X as BundleWithDetails, aD as Cart, au as CartAddOn, ag as CartChannel, aE as CartItem, aR as CartItemDetails, af as CartStatus, aW as CartSummary, aF as CartTotals, K as Category, L as CategorySummary, an as ChosenPrice, h as CimplifyError, N as Collection, Q as CollectionProduct, O as CollectionSummary, a4 as ComponentGroup, a5 as ComponentGroupWithComponents, a9 as ComponentPriceBreakdown, a7 as ComponentSelectionInput, a1 as ComponentSourceType, a2 as Composite, a6 as CompositeComponent, aA as CompositePriceBreakdown, a8 as CompositePriceResult, $ as CompositePricingMode, aB as CompositeSelectionData, a7 as CompositeSelectionInput, az as CompositeStoredSelection, a3 as CompositeWithDetails, b as Currency, C as CurrencyCode, p as DepositType, D as DigitalProductType, aq as DiscountBreakdown, ar as DiscountDetails, aI as DisplayAddOn, aJ as DisplayAddOnOption, aG as DisplayCart, aH as DisplayCartItem, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a0 as GroupPricingBehavior, b2 as InitializePaymentResult, I as InventoryType, aC as LineConfiguration, ac as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b1 as Payment, b5 as PaymentErrorDetails, b0 as PaymentMethod, aZ as PaymentMethodType, a$ as PaymentProcessingState, aY as PaymentProvider, b3 as PaymentResponse, aX as PaymentStatus, b4 as PaymentStatusResponse, ab as Price, aj as PriceAdjustment, am as PriceDecisionPath, aa as PriceEntryType, al as PricePathTaxInfo, ah as PriceSource, q as Product, J as ProductAddOn, ad as ProductAvailability, o as ProductRenderHint, ae as ProductTimeProfile, n as ProductType, s as ProductVariant, x as ProductVariantValue, r as ProductWithDetails, S as SalesChannel, as as SelectedAddOnOption, b6 as SubmitAuthorizationInput, ak as TaxPathComponent, aS as UICart, aK as UICartBusiness, aM as UICartCustomer, aL as UICartLocation, aN as UICartPricing, aT as UICartResponse, aV as UpdateCartItemInput, u as VariantAxis, z as VariantAxisSelection, w as VariantAxisValue, v as VariantAxisWithValues, av as VariantDetails, aQ as VariantDetailsDTO, t as VariantDisplayAttribute, y as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, k as enrichError, j as getErrorHint, i as isCimplifyError, l as isRetryableError, m as money, a as moneyFromNumber } from './payment-CLIWNMaP.js';
5
- export { C as CURRENCY_SYMBOLS, B as FormatCompactOptions, F as FormatPriceOptions, M as MOBILE_MONEY_PROVIDERS, P as PriceInfo, A as ProductWithPrice, T as TaxComponent, z as TaxInfo, s as categorizePaymentError, y as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, i as isTaxInclusive, t as normalizePaymentResponse, u as normalizeStatusResponse, p as parsePrice } from './index-B_JHO-ER.js';
3
+ import { A as ApiError } from './payment-BKjX2fAs.js';
4
+ export { F as AddOn, au as AddOnDetails, aQ as AddOnGroupDetails, H as AddOnOption, aP as AddOnOptionDetails, J as AddOnOptionPrice, G as AddOnWithOptions, aV as AddToCartInput, aj as AdjustmentType, aq as AppliedDiscount, a$ as AuthorizationType, ap as BenefitType, U as Bundle, _ as BundleComponentData, $ as BundleComponentInfo, T as BundlePriceType, X as BundleProduct, az as BundleSelectionData, ax as BundleSelectionInput, ay as BundleStoredSelection, W as BundleSummary, Y as BundleWithDetails, aE as Cart, av as CartAddOn, ah as CartChannel, aF as CartItem, aS as CartItemDetails, ag as CartStatus, aX as CartSummary, aG as CartTotals, L as Category, N as CategorySummary, ao as ChosenPrice, h as CimplifyError, O as Collection, R as CollectionProduct, Q as CollectionSummary, a5 as ComponentGroup, a6 as ComponentGroupWithComponents, aa as ComponentPriceBreakdown, a8 as ComponentSelectionInput, a2 as ComponentSourceType, a3 as Composite, a7 as CompositeComponent, aB as CompositePriceBreakdown, a9 as CompositePriceResult, a0 as CompositePricingMode, aC as CompositeSelectionData, a8 as CompositeSelectionInput, aA as CompositeStoredSelection, a4 as CompositeWithDetails, b as Currency, C as CurrencyCode, q as DepositType, D as DigitalProductType, ar as DiscountBreakdown, as as DiscountDetails, aJ as DisplayAddOn, aK as DisplayAddOnOption, aH as DisplayCart, aI as DisplayCartItem, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a1 as GroupPricingBehavior, b3 as InitializePaymentResult, I as InventoryType, aD as LineConfiguration, ad as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b2 as Payment, b6 as PaymentErrorDetails, b1 as PaymentMethod, a_ as PaymentMethodType, b0 as PaymentProcessingState, aZ as PaymentProvider, b4 as PaymentResponse, aY as PaymentStatus, b5 as PaymentStatusResponse, ac as Price, ak as PriceAdjustment, an as PriceDecisionPath, ab as PriceEntryType, am as PricePathTaxInfo, ai as PriceSource, r as Product, K as ProductAddOn, ae as ProductAvailability, p as ProductRenderHint, af as ProductTimeProfile, o as ProductType, t as ProductVariant, y as ProductVariantValue, s as ProductWithDetails, S as SalesChannel, at as SelectedAddOnOption, b7 as SubmitAuthorizationInput, al as TaxPathComponent, aT as UICart, aL as UICartBusiness, aN as UICartCustomer, aM as UICartLocation, aO as UICartPricing, aU as UICartResponse, aW as UpdateCartItemInput, v as VariantAxis, B as VariantAxisSelection, x as VariantAxisValue, w as VariantAxisWithValues, aw as VariantDetails, aR as VariantDetailsDTO, u as VariantDisplayAttribute, z as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, a as moneyFromNumber } from './payment-BKjX2fAs.js';
5
+ export { C as CURRENCY_SYMBOLS, B as FormatCompactOptions, F as FormatPriceOptions, M as MOBILE_MONEY_PROVIDERS, P as PriceInfo, A as ProductWithPrice, T as TaxComponent, z as TaxInfo, s as categorizePaymentError, y as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, i as isTaxInclusive, t as normalizePaymentResponse, u as normalizeStatusResponse, p as parsePrice } from './index-DQp1xkcl.js';
6
6
  export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme } from './ads-t3FBTU8p.js';
7
7
 
8
8
  /** Context sent with every request to scope operations to a specific location/branch */
package/dist/index.js CHANGED
@@ -8,6 +8,59 @@ function moneyFromNumber(value) {
8
8
  return value.toFixed(2);
9
9
  }
10
10
  var ZERO = "0.00";
11
+ var SUPPORTED_CURRENCY_CODES = /* @__PURE__ */ new Set([
12
+ "USD",
13
+ "EUR",
14
+ "GBP",
15
+ "JPY",
16
+ "CNY",
17
+ "CHF",
18
+ "CAD",
19
+ "AUD",
20
+ "GHS",
21
+ "NGN",
22
+ "KES",
23
+ "ZAR",
24
+ "XOF",
25
+ "XAF",
26
+ "EGP",
27
+ "TZS",
28
+ "UGX",
29
+ "RWF",
30
+ "ETB",
31
+ "ZMW",
32
+ "BWP",
33
+ "MUR",
34
+ "NAD",
35
+ "MWK",
36
+ "AOA",
37
+ "CDF",
38
+ "GMD",
39
+ "GNF",
40
+ "LRD",
41
+ "SLL",
42
+ "MZN",
43
+ "BIF",
44
+ "INR",
45
+ "BRL",
46
+ "MXN",
47
+ "KRW",
48
+ "TRY",
49
+ "THB",
50
+ "MYR",
51
+ "PHP",
52
+ "IDR",
53
+ "VND",
54
+ "SGD",
55
+ "HKD",
56
+ "TWD",
57
+ "AED",
58
+ "SAR",
59
+ "ILS"
60
+ ]);
61
+ function isSupportedCurrency(code) {
62
+ return SUPPORTED_CURRENCY_CODES.has(code);
63
+ }
11
64
  function currencyCode(value) {
12
65
  return value;
13
66
  }
@@ -4290,6 +4343,7 @@ exports.isPaymentStatusFailure = isPaymentStatusFailure;
4290
4343
  exports.isPaymentStatusRequiresAction = isPaymentStatusRequiresAction;
4291
4344
  exports.isPaymentStatusSuccess = isPaymentStatusSuccess;
4292
4345
  exports.isRetryableError = isRetryableError;
4346
+ exports.isSupportedCurrency = isSupportedCurrency;
4293
4347
  exports.isTaxInclusive = isTaxInclusive;
4294
4348
  exports.mapError = mapError;
4295
4349
  exports.mapResult = mapResult;
package/dist/index.mjs CHANGED
@@ -6,6 +6,59 @@ function moneyFromNumber(value) {
6
6
  return value.toFixed(2);
7
7
  }
8
8
  var ZERO = "0.00";
9
+ var SUPPORTED_CURRENCY_CODES = /* @__PURE__ */ new Set([
10
+ "USD",
11
+ "EUR",
12
+ "GBP",
13
+ "JPY",
14
+ "CNY",
15
+ "CHF",
16
+ "CAD",
17
+ "AUD",
18
+ "GHS",
19
+ "NGN",
20
+ "KES",
21
+ "ZAR",
22
+ "XOF",
23
+ "XAF",
24
+ "EGP",
25
+ "TZS",
26
+ "UGX",
27
+ "RWF",
28
+ "ETB",
29
+ "ZMW",
30
+ "BWP",
31
+ "MUR",
32
+ "NAD",
33
+ "MWK",
34
+ "AOA",
35
+ "CDF",
36
+ "GMD",
37
+ "GNF",
38
+ "LRD",
39
+ "SLL",
40
+ "MZN",
41
+ "BIF",
42
+ "INR",
43
+ "BRL",
44
+ "MXN",
45
+ "KRW",
46
+ "TRY",
47
+ "THB",
48
+ "MYR",
49
+ "PHP",
50
+ "IDR",
51
+ "VND",
52
+ "SGD",
53
+ "HKD",
54
+ "TWD",
55
+ "AED",
56
+ "SAR",
57
+ "ILS"
58
+ ]);
59
+ function isSupportedCurrency(code) {
60
+ return SUPPORTED_CURRENCY_CODES.has(code);
61
+ }
9
62
  function currencyCode(value) {
10
63
  return value;
11
64
  }
@@ -4208,4 +4261,4 @@ function query(entity) {
4208
4261
  return new QueryBuilder(entity);
4209
4262
  }
4210
4263
 
4211
- export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CURRENCY_SYMBOLS, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyClient, CimplifyElement, CimplifyElements, CimplifyError, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, ERROR_HINTS, EVENT_TYPES, ErrorCode, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, MOBILE_MONEY_PROVIDERS, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, QueryBuilder, SchedulingService, ZERO, categorizePaymentError, combine, combineObject, createCimplifyClient, createElements, currencyCode, detectMobileMoneyProvider, enrichError, err, flatMap, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, fromPromise, generateIdempotencyKey, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getOrElse, getProductCurrency, getTaxAmount, hasTaxInfo, isCimplifyError, isErr, isOk, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isTaxInclusive, mapError, mapResult, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, ok, parsePrice, query, toNullable, tryCatch, unwrap };
4264
+ export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CURRENCY_SYMBOLS, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyClient, CimplifyElement, CimplifyElements, CimplifyError, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, ERROR_HINTS, EVENT_TYPES, ErrorCode, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, MOBILE_MONEY_PROVIDERS, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, QueryBuilder, SchedulingService, ZERO, categorizePaymentError, combine, combineObject, createCimplifyClient, createElements, currencyCode, detectMobileMoneyProvider, enrichError, err, flatMap, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, fromPromise, generateIdempotencyKey, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getOrElse, getProductCurrency, getTaxAmount, hasTaxInfo, isCimplifyError, isErr, isOk, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, mapError, mapResult, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, ok, parsePrice, query, toNullable, tryCatch, unwrap };
@@ -11,6 +11,7 @@ declare function moneyFromNumber(value: number): Money;
11
11
  declare const ZERO: Money;
12
12
  /** ISO 4217 currency codes supported by the platform */
13
13
  type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
14
+ declare function isSupportedCurrency(code: string): code is CurrencyCode;
14
15
  /** Assert a string as CurrencyCode at API boundaries. */
15
16
  declare function currencyCode(value: string): CurrencyCode;
16
17
  /**
@@ -1130,4 +1131,4 @@ interface SubmitAuthorizationInput {
1130
1131
  value: string;
1131
1132
  }
1132
1133
 
1133
- export { type CompositePricingMode as $, type ApiError as A, type AddOn as B, type CurrencyCode as C, type DigitalProductType as D, ErrorCode as E, type AddOnWithOptions as F, type AddOnOption as G, type AddOnOptionPrice as H, type InventoryType as I, type ProductAddOn as J, type Category as K, type CategorySummary as L, type Money as M, type Collection as N, type CollectionSummary as O, type PaginationParams as P, type CollectionProduct as Q, type BundlePriceType as R, type SalesChannel as S, type Bundle as T, type BundleSummary as U, type VariantStrategy as V, type BundleProduct as W, type BundleWithDetails as X, type BundleComponentData as Y, ZERO as Z, type BundleComponentInfo as _, moneyFromNumber as a, type PaymentProcessingState as a$, type GroupPricingBehavior as a0, type ComponentSourceType as a1, type Composite as a2, type CompositeWithDetails as a3, type ComponentGroup as a4, type ComponentGroupWithComponents as a5, type CompositeComponent as a6, type ComponentSelectionInput as a7, type CompositePriceResult as a8, type ComponentPriceBreakdown as a9, type CompositePriceBreakdown as aA, type CompositeSelectionData as aB, type LineConfiguration as aC, type Cart as aD, type CartItem as aE, type CartTotals as aF, type DisplayCart as aG, type DisplayCartItem as aH, type DisplayAddOn as aI, type DisplayAddOnOption as aJ, type UICartBusiness as aK, type UICartLocation as aL, type UICartCustomer as aM, type UICartPricing as aN, type AddOnOptionDetails as aO, type AddOnGroupDetails as aP, type VariantDetailsDTO as aQ, type CartItemDetails as aR, type UICart as aS, type UICartResponse as aT, type AddToCartInput as aU, type UpdateCartItemInput as aV, type CartSummary as aW, type PaymentStatus as aX, type PaymentProvider as aY, type PaymentMethodType as aZ, type AuthorizationType as a_, type PriceEntryType as aa, type Price as ab, type LocationProductPrice as ac, type ProductAvailability as ad, type ProductTimeProfile as ae, type CartStatus as af, type CartChannel as ag, type PriceSource as ah, type AdjustmentType as ai, type PriceAdjustment as aj, type TaxPathComponent as ak, type PricePathTaxInfo as al, type PriceDecisionPath as am, type ChosenPrice as an, type BenefitType as ao, type AppliedDiscount as ap, type DiscountBreakdown as aq, type DiscountDetails as ar, type SelectedAddOnOption as as, type AddOnDetails as at, type CartAddOn as au, type VariantDetails as av, type BundleSelectionInput as aw, type BundleStoredSelection as ax, type BundleSelectionData as ay, type CompositeStoredSelection as az, type Currency as b, type PaymentMethod as b0, type Payment as b1, type InitializePaymentResult as b2, type PaymentResponse as b3, type PaymentStatusResponse as b4, type PaymentErrorDetails as b5, type SubmitAuthorizationInput as b6, currencyCode as c, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isCimplifyError as i, getErrorHint as j, enrichError as k, isRetryableError as l, money as m, type ProductType as n, type ProductRenderHint as o, type DepositType as p, type Product as q, type ProductWithDetails as r, type ProductVariant as s, type VariantDisplayAttribute as t, type VariantAxis as u, type VariantAxisWithValues as v, type VariantAxisValue as w, type ProductVariantValue as x, type VariantLocationAvailability as y, type VariantAxisSelection as z };
1134
+ export { type BundleComponentInfo as $, type ApiError as A, type VariantAxisSelection as B, type CurrencyCode as C, type DigitalProductType as D, ErrorCode as E, type AddOn as F, type AddOnWithOptions as G, type AddOnOption as H, type InventoryType as I, type AddOnOptionPrice as J, type ProductAddOn as K, type Category as L, type Money as M, type CategorySummary as N, type Collection as O, type PaginationParams as P, type CollectionSummary as Q, type CollectionProduct as R, type SalesChannel as S, type BundlePriceType as T, type Bundle as U, type VariantStrategy as V, type BundleSummary as W, type BundleProduct as X, type BundleWithDetails as Y, ZERO as Z, type BundleComponentData as _, moneyFromNumber as a, type AuthorizationType as a$, type CompositePricingMode as a0, type GroupPricingBehavior as a1, type ComponentSourceType as a2, type Composite as a3, type CompositeWithDetails as a4, type ComponentGroup as a5, type ComponentGroupWithComponents as a6, type CompositeComponent as a7, type ComponentSelectionInput as a8, type CompositePriceResult as a9, type CompositeStoredSelection as aA, type CompositePriceBreakdown as aB, type CompositeSelectionData as aC, type LineConfiguration as aD, type Cart as aE, type CartItem as aF, type CartTotals as aG, type DisplayCart as aH, type DisplayCartItem as aI, type DisplayAddOn as aJ, type DisplayAddOnOption as aK, type UICartBusiness as aL, type UICartLocation as aM, type UICartCustomer as aN, type UICartPricing as aO, type AddOnOptionDetails as aP, type AddOnGroupDetails as aQ, type VariantDetailsDTO as aR, type CartItemDetails as aS, type UICart as aT, type UICartResponse as aU, type AddToCartInput as aV, type UpdateCartItemInput as aW, type CartSummary as aX, type PaymentStatus as aY, type PaymentProvider as aZ, type PaymentMethodType as a_, type ComponentPriceBreakdown as aa, type PriceEntryType as ab, type Price as ac, type LocationProductPrice as ad, type ProductAvailability as ae, type ProductTimeProfile as af, type CartStatus as ag, type CartChannel as ah, type PriceSource as ai, type AdjustmentType as aj, type PriceAdjustment as ak, type TaxPathComponent as al, type PricePathTaxInfo as am, type PriceDecisionPath as an, type ChosenPrice as ao, type BenefitType as ap, type AppliedDiscount as aq, type DiscountBreakdown as ar, type DiscountDetails as as, type SelectedAddOnOption as at, type AddOnDetails as au, type CartAddOn as av, type VariantDetails as aw, type BundleSelectionInput as ax, type BundleStoredSelection as ay, type BundleSelectionData as az, type Currency as b, type PaymentProcessingState as b0, type PaymentMethod as b1, type Payment as b2, type InitializePaymentResult as b3, type PaymentResponse as b4, type PaymentStatusResponse as b5, type PaymentErrorDetails as b6, type SubmitAuthorizationInput as b7, currencyCode as c, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isSupportedCurrency as i, isCimplifyError as j, getErrorHint as k, enrichError as l, money as m, isRetryableError as n, type ProductType as o, type ProductRenderHint as p, type DepositType as q, type Product as r, type ProductWithDetails as s, type ProductVariant as t, type VariantDisplayAttribute as u, type VariantAxis as v, type VariantAxisWithValues as w, type VariantAxisValue as x, type ProductVariantValue as y, type VariantLocationAvailability as z };
@@ -11,6 +11,7 @@ declare function moneyFromNumber(value: number): Money;
11
11
  declare const ZERO: Money;
12
12
  /** ISO 4217 currency codes supported by the platform */
13
13
  type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
14
+ declare function isSupportedCurrency(code: string): code is CurrencyCode;
14
15
  /** Assert a string as CurrencyCode at API boundaries. */
15
16
  declare function currencyCode(value: string): CurrencyCode;
16
17
  /**
@@ -1130,4 +1131,4 @@ interface SubmitAuthorizationInput {
1130
1131
  value: string;
1131
1132
  }
1132
1133
 
1133
- export { type CompositePricingMode as $, type ApiError as A, type AddOn as B, type CurrencyCode as C, type DigitalProductType as D, ErrorCode as E, type AddOnWithOptions as F, type AddOnOption as G, type AddOnOptionPrice as H, type InventoryType as I, type ProductAddOn as J, type Category as K, type CategorySummary as L, type Money as M, type Collection as N, type CollectionSummary as O, type PaginationParams as P, type CollectionProduct as Q, type BundlePriceType as R, type SalesChannel as S, type Bundle as T, type BundleSummary as U, type VariantStrategy as V, type BundleProduct as W, type BundleWithDetails as X, type BundleComponentData as Y, ZERO as Z, type BundleComponentInfo as _, moneyFromNumber as a, type PaymentProcessingState as a$, type GroupPricingBehavior as a0, type ComponentSourceType as a1, type Composite as a2, type CompositeWithDetails as a3, type ComponentGroup as a4, type ComponentGroupWithComponents as a5, type CompositeComponent as a6, type ComponentSelectionInput as a7, type CompositePriceResult as a8, type ComponentPriceBreakdown as a9, type CompositePriceBreakdown as aA, type CompositeSelectionData as aB, type LineConfiguration as aC, type Cart as aD, type CartItem as aE, type CartTotals as aF, type DisplayCart as aG, type DisplayCartItem as aH, type DisplayAddOn as aI, type DisplayAddOnOption as aJ, type UICartBusiness as aK, type UICartLocation as aL, type UICartCustomer as aM, type UICartPricing as aN, type AddOnOptionDetails as aO, type AddOnGroupDetails as aP, type VariantDetailsDTO as aQ, type CartItemDetails as aR, type UICart as aS, type UICartResponse as aT, type AddToCartInput as aU, type UpdateCartItemInput as aV, type CartSummary as aW, type PaymentStatus as aX, type PaymentProvider as aY, type PaymentMethodType as aZ, type AuthorizationType as a_, type PriceEntryType as aa, type Price as ab, type LocationProductPrice as ac, type ProductAvailability as ad, type ProductTimeProfile as ae, type CartStatus as af, type CartChannel as ag, type PriceSource as ah, type AdjustmentType as ai, type PriceAdjustment as aj, type TaxPathComponent as ak, type PricePathTaxInfo as al, type PriceDecisionPath as am, type ChosenPrice as an, type BenefitType as ao, type AppliedDiscount as ap, type DiscountBreakdown as aq, type DiscountDetails as ar, type SelectedAddOnOption as as, type AddOnDetails as at, type CartAddOn as au, type VariantDetails as av, type BundleSelectionInput as aw, type BundleStoredSelection as ax, type BundleSelectionData as ay, type CompositeStoredSelection as az, type Currency as b, type PaymentMethod as b0, type Payment as b1, type InitializePaymentResult as b2, type PaymentResponse as b3, type PaymentStatusResponse as b4, type PaymentErrorDetails as b5, type SubmitAuthorizationInput as b6, currencyCode as c, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isCimplifyError as i, getErrorHint as j, enrichError as k, isRetryableError as l, money as m, type ProductType as n, type ProductRenderHint as o, type DepositType as p, type Product as q, type ProductWithDetails as r, type ProductVariant as s, type VariantDisplayAttribute as t, type VariantAxis as u, type VariantAxisWithValues as v, type VariantAxisValue as w, type ProductVariantValue as x, type VariantLocationAvailability as y, type VariantAxisSelection as z };
1134
+ export { type BundleComponentInfo as $, type ApiError as A, type VariantAxisSelection as B, type CurrencyCode as C, type DigitalProductType as D, ErrorCode as E, type AddOn as F, type AddOnWithOptions as G, type AddOnOption as H, type InventoryType as I, type AddOnOptionPrice as J, type ProductAddOn as K, type Category as L, type Money as M, type CategorySummary as N, type Collection as O, type PaginationParams as P, type CollectionSummary as Q, type CollectionProduct as R, type SalesChannel as S, type BundlePriceType as T, type Bundle as U, type VariantStrategy as V, type BundleSummary as W, type BundleProduct as X, type BundleWithDetails as Y, ZERO as Z, type BundleComponentData as _, moneyFromNumber as a, type AuthorizationType as a$, type CompositePricingMode as a0, type GroupPricingBehavior as a1, type ComponentSourceType as a2, type Composite as a3, type CompositeWithDetails as a4, type ComponentGroup as a5, type ComponentGroupWithComponents as a6, type CompositeComponent as a7, type ComponentSelectionInput as a8, type CompositePriceResult as a9, type CompositeStoredSelection as aA, type CompositePriceBreakdown as aB, type CompositeSelectionData as aC, type LineConfiguration as aD, type Cart as aE, type CartItem as aF, type CartTotals as aG, type DisplayCart as aH, type DisplayCartItem as aI, type DisplayAddOn as aJ, type DisplayAddOnOption as aK, type UICartBusiness as aL, type UICartLocation as aM, type UICartCustomer as aN, type UICartPricing as aO, type AddOnOptionDetails as aP, type AddOnGroupDetails as aQ, type VariantDetailsDTO as aR, type CartItemDetails as aS, type UICart as aT, type UICartResponse as aU, type AddToCartInput as aV, type UpdateCartItemInput as aW, type CartSummary as aX, type PaymentStatus as aY, type PaymentProvider as aZ, type PaymentMethodType as a_, type ComponentPriceBreakdown as aa, type PriceEntryType as ab, type Price as ac, type LocationProductPrice as ad, type ProductAvailability as ae, type ProductTimeProfile as af, type CartStatus as ag, type CartChannel as ah, type PriceSource as ai, type AdjustmentType as aj, type PriceAdjustment as ak, type TaxPathComponent as al, type PricePathTaxInfo as am, type PriceDecisionPath as an, type ChosenPrice as ao, type BenefitType as ap, type AppliedDiscount as aq, type DiscountBreakdown as ar, type DiscountDetails as as, type SelectedAddOnOption as at, type AddOnDetails as au, type CartAddOn as av, type VariantDetails as aw, type BundleSelectionInput as ax, type BundleStoredSelection as ay, type BundleSelectionData as az, type Currency as b, type PaymentProcessingState as b0, type PaymentMethod as b1, type Payment as b2, type InitializePaymentResult as b3, type PaymentResponse as b4, type PaymentStatusResponse as b5, type PaymentErrorDetails as b6, type SubmitAuthorizationInput as b7, currencyCode as c, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isSupportedCurrency as i, isCimplifyError as j, getErrorHint as k, enrichError as l, money as m, isRetryableError as n, type ProductType as o, type ProductRenderHint as p, type DepositType as q, type Product as r, type ProductWithDetails as s, type ProductVariant as t, type VariantDisplayAttribute as u, type VariantAxis as v, type VariantAxisWithValues as w, type VariantAxisValue as x, type ProductVariantValue as y, type VariantLocationAvailability as z };
package/dist/react.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, s as CimplifyElements, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-6MsOWo8f.mjs';
1
+ import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, s as CimplifyElements, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-D1rHAIZY.mjs';
2
2
  import React, { ReactNode } from 'react';
3
- import { q as Product, d as Pagination, h as CimplifyError, r as ProductWithDetails, K as Category, aw as BundleSelectionInput, a7 as ComponentSelectionInput, N as Collection, X as BundleWithDetails, a3 as CompositeWithDetails, a8 as CompositePriceResult, C as CurrencyCode } from './payment-CLIWNMaP.mjs';
3
+ import { r as Product, d as Pagination, h as CimplifyError, s as ProductWithDetails, L as Category, ax as BundleSelectionInput, a8 as ComponentSelectionInput, O as Collection, Y as BundleWithDetails, a4 as CompositeWithDetails, a9 as CompositePriceResult, C as CurrencyCode } from './payment-BKjX2fAs.mjs';
4
4
  import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-t3FBTU8p.mjs';
5
5
  export { c as AdConfig } from './ads-t3FBTU8p.mjs';
6
6
 
@@ -77,6 +77,22 @@ interface CimplifyCheckoutProps {
77
77
  }
78
78
  declare function CimplifyCheckout({ client, businessId, cartId, locationId, linkUrl, orderTypes, enrollInLink, onComplete, onError, onStatusChange, appearance, demoMode, className, }: CimplifyCheckoutProps): React.ReactElement;
79
79
 
80
+ interface PriceProps {
81
+ /** The amount in base (business) currency. */
82
+ amount: number | string;
83
+ /** Optional CSS class name for the wrapping span. */
84
+ className?: string;
85
+ /** Optional prefix rendered before the formatted price (e.g. "+"). */
86
+ prefix?: string;
87
+ }
88
+ /**
89
+ * Price — renders a single price value in the user's chosen display currency.
90
+ *
91
+ * Reads `displayCurrency` and `convertPrice` from CimplifyProvider context
92
+ * so every price on the page stays consistent with the selected currency.
93
+ */
94
+ declare function Price({ amount, className, prefix }: PriceProps): React.ReactElement;
95
+
80
96
  interface CimplifyContextValue {
81
97
  client: CimplifyClient;
82
98
  business: Business | null;
@@ -87,6 +103,16 @@ interface CimplifyContextValue {
87
103
  setCurrentLocation: (location: Location) => void;
88
104
  isReady: boolean;
89
105
  isDemoMode: boolean;
106
+ /** The business's pricing currency (always the base, for API calls). */
107
+ baseCurrency: string;
108
+ /** The currency prices are displayed in. Equals baseCurrency when no FX override is set. */
109
+ displayCurrency: string;
110
+ /** Set a display currency override for FX conversion. Pass null to reset to base currency. */
111
+ setDisplayCurrency: (currency: string | null) => void;
112
+ /** Convert a base-currency amount to the display currency. No-op when currencies match. */
113
+ convertPrice: (amount: number | string) => number;
114
+ /** Current FX rate (baseCurrency → displayCurrency). Null when no conversion is active. */
115
+ fxRate: number | null;
90
116
  }
91
117
  interface CimplifyProviderProps {
92
118
  client?: CimplifyClient;
@@ -376,4 +402,4 @@ declare function useCheckout(): {
376
402
  isLoading: boolean;
377
403
  };
378
404
 
379
- export { Ad, AdPosition, type AdProps, AdProvider, AdSlot, type AddToCartOptions, AddressElement, AuthElement, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, ElementsProvider, PaymentElement, type UseBundleOptions, type UseBundleResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseCompositeOptions, type UseCompositeResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseSearchOptions, type UseSearchResult, useAds, useBundle, useCart, useCategories, useCheckout, useCimplify, useCollection, useCollections, useComposite, useElements, useElementsReady, useLocations, useOptionalCimplify, useOrder, useProduct, useProducts, useQuote, useSearch };
405
+ export { Ad, AdPosition, type AdProps, AdProvider, AdSlot, type AddToCartOptions, AddressElement, AuthElement, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, ElementsProvider, PaymentElement, Price, type PriceProps, type UseBundleOptions, type UseBundleResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseCompositeOptions, type UseCompositeResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseSearchOptions, type UseSearchResult, useAds, useBundle, useCart, useCategories, useCheckout, useCimplify, useCollection, useCollections, useComposite, useElements, useElementsReady, useLocations, useOptionalCimplify, useOrder, useProduct, useProducts, useQuote, useSearch };
package/dist/react.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, s as CimplifyElements, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-CVJ0S99a.js';
1
+ import { C as CimplifyClient, Y as ProcessCheckoutResult, _ as CheckoutStatus, $ as CheckoutStatusContext, bq as Location, bn as Business, aS as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, s as CimplifyElements, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-Dklt51q-.js';
2
2
  import React, { ReactNode } from 'react';
3
- import { q as Product, d as Pagination, h as CimplifyError, r as ProductWithDetails, K as Category, aw as BundleSelectionInput, a7 as ComponentSelectionInput, N as Collection, X as BundleWithDetails, a3 as CompositeWithDetails, a8 as CompositePriceResult, C as CurrencyCode } from './payment-CLIWNMaP.js';
3
+ import { r as Product, d as Pagination, h as CimplifyError, s as ProductWithDetails, L as Category, ax as BundleSelectionInput, a8 as ComponentSelectionInput, O as Collection, Y as BundleWithDetails, a4 as CompositeWithDetails, a9 as CompositePriceResult, C as CurrencyCode } from './payment-BKjX2fAs.js';
4
4
  import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-t3FBTU8p.js';
5
5
  export { c as AdConfig } from './ads-t3FBTU8p.js';
6
6
 
@@ -77,6 +77,22 @@ interface CimplifyCheckoutProps {
77
77
  }
78
78
  declare function CimplifyCheckout({ client, businessId, cartId, locationId, linkUrl, orderTypes, enrollInLink, onComplete, onError, onStatusChange, appearance, demoMode, className, }: CimplifyCheckoutProps): React.ReactElement;
79
79
 
80
+ interface PriceProps {
81
+ /** The amount in base (business) currency. */
82
+ amount: number | string;
83
+ /** Optional CSS class name for the wrapping span. */
84
+ className?: string;
85
+ /** Optional prefix rendered before the formatted price (e.g. "+"). */
86
+ prefix?: string;
87
+ }
88
+ /**
89
+ * Price — renders a single price value in the user's chosen display currency.
90
+ *
91
+ * Reads `displayCurrency` and `convertPrice` from CimplifyProvider context
92
+ * so every price on the page stays consistent with the selected currency.
93
+ */
94
+ declare function Price({ amount, className, prefix }: PriceProps): React.ReactElement;
95
+
80
96
  interface CimplifyContextValue {
81
97
  client: CimplifyClient;
82
98
  business: Business | null;
@@ -87,6 +103,16 @@ interface CimplifyContextValue {
87
103
  setCurrentLocation: (location: Location) => void;
88
104
  isReady: boolean;
89
105
  isDemoMode: boolean;
106
+ /** The business's pricing currency (always the base, for API calls). */
107
+ baseCurrency: string;
108
+ /** The currency prices are displayed in. Equals baseCurrency when no FX override is set. */
109
+ displayCurrency: string;
110
+ /** Set a display currency override for FX conversion. Pass null to reset to base currency. */
111
+ setDisplayCurrency: (currency: string | null) => void;
112
+ /** Convert a base-currency amount to the display currency. No-op when currencies match. */
113
+ convertPrice: (amount: number | string) => number;
114
+ /** Current FX rate (baseCurrency → displayCurrency). Null when no conversion is active. */
115
+ fxRate: number | null;
90
116
  }
91
117
  interface CimplifyProviderProps {
92
118
  client?: CimplifyClient;
@@ -376,4 +402,4 @@ declare function useCheckout(): {
376
402
  isLoading: boolean;
377
403
  };
378
404
 
379
- export { Ad, AdPosition, type AdProps, AdProvider, AdSlot, type AddToCartOptions, AddressElement, AuthElement, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, ElementsProvider, PaymentElement, type UseBundleOptions, type UseBundleResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseCompositeOptions, type UseCompositeResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseSearchOptions, type UseSearchResult, useAds, useBundle, useCart, useCategories, useCheckout, useCimplify, useCollection, useCollections, useComposite, useElements, useElementsReady, useLocations, useOptionalCimplify, useOrder, useProduct, useProducts, useQuote, useSearch };
405
+ export { Ad, AdPosition, type AdProps, AdProvider, AdSlot, type AddToCartOptions, AddressElement, AuthElement, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, ElementsProvider, PaymentElement, Price, type PriceProps, type UseBundleOptions, type UseBundleResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseCompositeOptions, type UseCompositeResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseProductOptions, type UseProductResult, type UseProductsOptions, type UseProductsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseSearchOptions, type UseSearchResult, useAds, useBundle, useCart, useCategories, useCheckout, useCimplify, useCollection, useCollections, useComposite, useElements, useElementsReady, useLocations, useOptionalCimplify, useOrder, useProduct, useProducts, useQuote, useSearch };