@cimplify/sdk 0.9.4 → 0.9.6
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/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/{client-BFqLTbxI.d.ts → client-CuzZg1rZ.d.ts} +1 -1
- package/dist/{client-D_3KMWI_.d.mts → client-vh6CRdPQ.d.mts} +1 -1
- package/dist/{index-ynsh8lBa.d.ts → index-beqptXTy.d.ts} +1 -1
- package/dist/{index-4Ke_FJa6.d.mts → index-gjHjQz2R.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/{payment-DsGQPORm.d.mts → payment-Dkv_CyKl.d.mts} +58 -4
- package/dist/{payment-DsGQPORm.d.ts → payment-Dkv_CyKl.d.ts} +58 -4
- package/dist/react.d.mts +3 -3
- package/dist/react.d.ts +3 -3
- package/dist/react.js +2 -2
- package/dist/react.mjs +2 -2
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/advanced.d.mts
CHANGED
|
@@ -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-
|
|
2
|
-
import './payment-
|
|
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-vh6CRdPQ.mjs';
|
|
2
|
+
import './payment-Dkv_CyKl.mjs';
|
|
3
3
|
|
|
4
4
|
type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
|
|
5
5
|
type SortOrder = "asc" | "desc";
|
package/dist/advanced.d.ts
CHANGED
|
@@ -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-
|
|
2
|
-
import './payment-
|
|
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-CuzZg1rZ.js';
|
|
2
|
+
import './payment-Dkv_CyKl.js';
|
|
3
3
|
|
|
4
4
|
type Operator = "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "startsWith";
|
|
5
5
|
type SortOrder = "asc" | "desc";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as Category, s as Product, H as AddOnWithOptions, d as Pagination, h as CimplifyError, t as ProductWithDetails, u as ProductVariant, w as VariantAxis, F as VariantAxisSelection, G as AddOn, Q as Collection, W as Bundle, _ as BundleWithDetails,
|
|
1
|
+
import { N as Category, s as Product, H as AddOnWithOptions, d as Pagination, h as CimplifyError, t as ProductWithDetails, u as ProductVariant, w as VariantAxis, F as VariantAxisSelection, G as AddOn, Q as Collection, W as Bundle, _ as BundleWithDetails, a8 as Composite, a9 as CompositeWithDetails, af as ComponentSelectionInput, ag as CompositePriceResult, av as ChosenPrice, a_ as UICart, aL as Cart, aM as CartItem, b2 as CartSummary, b0 as AddToCartInput, b1 as UpdateCartItemInput, az as DiscountDetails, M as Money, C as CurrencyCode, aK as LineConfiguration, b6 as AuthorizationType, b8 as PaymentMethod, ba as InitializePaymentResult, be as SubmitAuthorizationInput, bc as PaymentStatusResponse } from './payment-Dkv_CyKl.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Observability hooks for monitoring SDK behavior.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as Category, s as Product, H as AddOnWithOptions, d as Pagination, h as CimplifyError, t as ProductWithDetails, u as ProductVariant, w as VariantAxis, F as VariantAxisSelection, G as AddOn, Q as Collection, W as Bundle, _ as BundleWithDetails,
|
|
1
|
+
import { N as Category, s as Product, H as AddOnWithOptions, d as Pagination, h as CimplifyError, t as ProductWithDetails, u as ProductVariant, w as VariantAxis, F as VariantAxisSelection, G as AddOn, Q as Collection, W as Bundle, _ as BundleWithDetails, a8 as Composite, a9 as CompositeWithDetails, af as ComponentSelectionInput, ag as CompositePriceResult, av as ChosenPrice, a_ as UICart, aL as Cart, aM as CartItem, b2 as CartSummary, b0 as AddToCartInput, b1 as UpdateCartItemInput, az as DiscountDetails, M as Money, C as CurrencyCode, aK as LineConfiguration, b6 as AuthorizationType, b8 as PaymentMethod, ba as InitializePaymentResult, be as SubmitAuthorizationInput, bc as PaymentStatusResponse } from './payment-Dkv_CyKl.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Observability hooks for monitoring SDK behavior.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { av as ChosenPrice, C as CurrencyCode, as as TaxPathComponent, at as PricePathTaxInfo, M as Money, bd as PaymentErrorDetails, bb as PaymentResponse, bc as PaymentStatusResponse } from './payment-Dkv_CyKl.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Price Types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { av as ChosenPrice, C as CurrencyCode, as as TaxPathComponent, at as PricePathTaxInfo, M as Money, bd as PaymentErrorDetails, bb as PaymentResponse, bc as PaymentStatusResponse } from './payment-Dkv_CyKl.mjs';
|
|
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-
|
|
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-vh6CRdPQ.mjs';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.mjs';
|
|
3
|
-
import { A as ApiError } from './payment-
|
|
4
|
-
export { G as AddOn,
|
|
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-
|
|
3
|
+
import { A as ApiError } from './payment-Dkv_CyKl.mjs';
|
|
4
|
+
export { G as AddOn, aB as AddOnDetails, aX as AddOnGroupDetails, J as AddOnOption, aW as AddOnOptionDetails, K as AddOnOptionPrice, H as AddOnWithOptions, b0 as AddToCartInput, aq as AdjustmentType, ax as AppliedDiscount, b6 as AuthorizationType, aw as BenefitType, W as Bundle, $ as BundleComponentData, a0 as BundleComponentInfo, a2 as BundleComponentVariantView, a1 as BundleComponentView, U as BundlePriceType, Y as BundleProduct, aG as BundleSelectionData, aE as BundleSelectionInput, aF as BundleStoredSelection, X as BundleSummary, _ as BundleWithDetails, aL as Cart, aC as CartAddOn, ao as CartChannel, aM as CartItem, aZ as CartItemDetails, an as CartStatus, b2 as CartSummary, aN as CartTotals, N as Category, O as CategorySummary, av as ChosenPrice, h as CimplifyError, Q as Collection, T as CollectionProduct, R as CollectionSummary, aa as ComponentGroup, ab as ComponentGroupWithComponents, ah as ComponentPriceBreakdown, af as ComponentSelectionInput, a7 as ComponentSourceType, a8 as Composite, ae as CompositeComponent, ad as CompositeComponentView, ac as CompositeGroupView, aI as CompositePriceBreakdown, ag as CompositePriceResult, a5 as CompositePricingMode, aJ as CompositeSelectionData, af as CompositeSelectionInput, aH as CompositeStoredSelection, a9 as CompositeWithDetails, b as Currency, C as CurrencyCode, r as DepositType, q as DigitalProductType, ay as DiscountBreakdown, az as DiscountDetails, aQ as DisplayAddOn, aR as DisplayAddOnOption, aO as DisplayCart, aP as DisplayCartItem, D as DisplayMode, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a6 as GroupPricingBehavior, ba as InitializePaymentResult, I as InventoryType, aK as LineConfiguration, ak as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b9 as Payment, bd as PaymentErrorDetails, b8 as PaymentMethod, b5 as PaymentMethodType, b7 as PaymentProcessingState, b4 as PaymentProvider, bb as PaymentResponse, b3 as PaymentStatus, bc as PaymentStatusResponse, aj as Price, ar as PriceAdjustment, au as PriceDecisionPath, ai as PriceEntryType, at as PricePathTaxInfo, ap as PriceSource, s as Product, L as ProductAddOn, al as ProductAvailability, p as ProductRenderHint, am as ProductTimeProfile, o as ProductType, u as ProductVariant, z as ProductVariantValue, t as ProductWithDetails, S as SalesChannel, aA as SelectedAddOnOption, be as SubmitAuthorizationInput, as as TaxPathComponent, a_ as UICart, aS as UICartBusiness, aU as UICartCustomer, aT as UICartLocation, aV as UICartPricing, a$ as UICartResponse, b1 as UpdateCartItemInput, w as VariantAxis, F as VariantAxisSelection, y as VariantAxisValue, a4 as VariantAxisValueView, a3 as VariantAxisView, x as VariantAxisWithValues, aD as VariantDetails, aY as VariantDetailsDTO, v as VariantDisplayAttribute, B 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-Dkv_CyKl.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-gjHjQz2R.mjs';
|
|
6
6
|
export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-MkGm5l1T.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-
|
|
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-CuzZg1rZ.js';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.js';
|
|
3
|
-
import { A as ApiError } from './payment-
|
|
4
|
-
export { G as AddOn,
|
|
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-
|
|
3
|
+
import { A as ApiError } from './payment-Dkv_CyKl.js';
|
|
4
|
+
export { G as AddOn, aB as AddOnDetails, aX as AddOnGroupDetails, J as AddOnOption, aW as AddOnOptionDetails, K as AddOnOptionPrice, H as AddOnWithOptions, b0 as AddToCartInput, aq as AdjustmentType, ax as AppliedDiscount, b6 as AuthorizationType, aw as BenefitType, W as Bundle, $ as BundleComponentData, a0 as BundleComponentInfo, a2 as BundleComponentVariantView, a1 as BundleComponentView, U as BundlePriceType, Y as BundleProduct, aG as BundleSelectionData, aE as BundleSelectionInput, aF as BundleStoredSelection, X as BundleSummary, _ as BundleWithDetails, aL as Cart, aC as CartAddOn, ao as CartChannel, aM as CartItem, aZ as CartItemDetails, an as CartStatus, b2 as CartSummary, aN as CartTotals, N as Category, O as CategorySummary, av as ChosenPrice, h as CimplifyError, Q as Collection, T as CollectionProduct, R as CollectionSummary, aa as ComponentGroup, ab as ComponentGroupWithComponents, ah as ComponentPriceBreakdown, af as ComponentSelectionInput, a7 as ComponentSourceType, a8 as Composite, ae as CompositeComponent, ad as CompositeComponentView, ac as CompositeGroupView, aI as CompositePriceBreakdown, ag as CompositePriceResult, a5 as CompositePricingMode, aJ as CompositeSelectionData, af as CompositeSelectionInput, aH as CompositeStoredSelection, a9 as CompositeWithDetails, b as Currency, C as CurrencyCode, r as DepositType, q as DigitalProductType, ay as DiscountBreakdown, az as DiscountDetails, aQ as DisplayAddOn, aR as DisplayAddOnOption, aO as DisplayCart, aP as DisplayCartItem, D as DisplayMode, g as ERROR_HINTS, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, a6 as GroupPricingBehavior, ba as InitializePaymentResult, I as InventoryType, aK as LineConfiguration, ak as LocationProductPrice, M as Money, d as Pagination, P as PaginationParams, b9 as Payment, bd as PaymentErrorDetails, b8 as PaymentMethod, b5 as PaymentMethodType, b7 as PaymentProcessingState, b4 as PaymentProvider, bb as PaymentResponse, b3 as PaymentStatus, bc as PaymentStatusResponse, aj as Price, ar as PriceAdjustment, au as PriceDecisionPath, ai as PriceEntryType, at as PricePathTaxInfo, ap as PriceSource, s as Product, L as ProductAddOn, al as ProductAvailability, p as ProductRenderHint, am as ProductTimeProfile, o as ProductType, u as ProductVariant, z as ProductVariantValue, t as ProductWithDetails, S as SalesChannel, aA as SelectedAddOnOption, be as SubmitAuthorizationInput, as as TaxPathComponent, a_ as UICart, aS as UICartBusiness, aU as UICartCustomer, aT as UICartLocation, aV as UICartPricing, a$ as UICartResponse, b1 as UpdateCartItemInput, w as VariantAxis, F as VariantAxisSelection, y as VariantAxisValue, a4 as VariantAxisValueView, a3 as VariantAxisView, x as VariantAxisWithValues, aD as VariantDetails, aY as VariantDetailsDTO, v as VariantDisplayAttribute, B 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-Dkv_CyKl.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-beqptXTy.js';
|
|
6
6
|
export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-MkGm5l1T.js';
|
|
7
7
|
|
|
8
8
|
/** Context sent with every request to scope operations to a specific location/branch */
|
|
@@ -141,9 +141,7 @@ interface Product {
|
|
|
141
141
|
description?: string;
|
|
142
142
|
image_url?: string;
|
|
143
143
|
default_price: Money;
|
|
144
|
-
|
|
145
|
-
type?: ProductType;
|
|
146
|
-
product_type: ProductType;
|
|
144
|
+
type: ProductType;
|
|
147
145
|
/** Server-derived UI hint for conditional rendering. */
|
|
148
146
|
render_hint?: ProductRenderHint;
|
|
149
147
|
display_mode?: DisplayMode;
|
|
@@ -218,6 +216,11 @@ interface Product {
|
|
|
218
216
|
meta_description?: string;
|
|
219
217
|
is_discountable?: boolean;
|
|
220
218
|
taxonomy_id?: string;
|
|
219
|
+
bundle_price?: Money;
|
|
220
|
+
discount_value?: Money;
|
|
221
|
+
pricing_type?: BundlePriceType;
|
|
222
|
+
components?: BundleComponentView[];
|
|
223
|
+
groups?: CompositeGroupView[];
|
|
221
224
|
}
|
|
222
225
|
interface ProductWithDetails extends Product {
|
|
223
226
|
category?: Category;
|
|
@@ -450,6 +453,33 @@ interface BundleComponentInfo {
|
|
|
450
453
|
variant_id?: string;
|
|
451
454
|
quantity: number;
|
|
452
455
|
}
|
|
456
|
+
interface BundleComponentView {
|
|
457
|
+
id: string;
|
|
458
|
+
product_id: string;
|
|
459
|
+
product_name: string;
|
|
460
|
+
product_description?: string;
|
|
461
|
+
product_image_url?: string;
|
|
462
|
+
quantity: number;
|
|
463
|
+
variant_id?: string;
|
|
464
|
+
allow_variant_choice: boolean;
|
|
465
|
+
available_variants: BundleComponentVariantView[];
|
|
466
|
+
variant_axes?: VariantAxisView[];
|
|
467
|
+
}
|
|
468
|
+
interface BundleComponentVariantView {
|
|
469
|
+
id: string;
|
|
470
|
+
is_default: boolean;
|
|
471
|
+
display_name: string;
|
|
472
|
+
price_adjustment: Money;
|
|
473
|
+
}
|
|
474
|
+
interface VariantAxisView {
|
|
475
|
+
id: string;
|
|
476
|
+
name: string;
|
|
477
|
+
values: VariantAxisValueView[];
|
|
478
|
+
}
|
|
479
|
+
interface VariantAxisValueView {
|
|
480
|
+
id: string;
|
|
481
|
+
value: string;
|
|
482
|
+
}
|
|
453
483
|
type CompositePricingMode = "additive" | "highest_per_group" | "highest_overall" | "tiered";
|
|
454
484
|
type GroupPricingBehavior = "additive" | "first_n_free" | "flat_fee" | "highest_only";
|
|
455
485
|
type ComponentSourceType = "product" | "stock" | "add_on" | "standalone";
|
|
@@ -489,6 +519,30 @@ interface ComponentGroup {
|
|
|
489
519
|
interface ComponentGroupWithComponents extends ComponentGroup {
|
|
490
520
|
components: CompositeComponent[];
|
|
491
521
|
}
|
|
522
|
+
interface CompositeGroupView {
|
|
523
|
+
id: string;
|
|
524
|
+
name: string;
|
|
525
|
+
description?: string;
|
|
526
|
+
min_selections: number;
|
|
527
|
+
max_selections: number;
|
|
528
|
+
allow_quantity: boolean;
|
|
529
|
+
max_quantity_per_component?: number;
|
|
530
|
+
display_order: number;
|
|
531
|
+
components: CompositeComponentView[];
|
|
532
|
+
}
|
|
533
|
+
interface CompositeComponentView {
|
|
534
|
+
id: string;
|
|
535
|
+
display_name?: string;
|
|
536
|
+
display_description?: string;
|
|
537
|
+
display_image_url?: string;
|
|
538
|
+
price: Money;
|
|
539
|
+
calories?: number;
|
|
540
|
+
display_order: number;
|
|
541
|
+
is_popular: boolean;
|
|
542
|
+
is_premium: boolean;
|
|
543
|
+
is_available: boolean;
|
|
544
|
+
is_archived: boolean;
|
|
545
|
+
}
|
|
492
546
|
interface CompositeComponent {
|
|
493
547
|
id: string;
|
|
494
548
|
group_id: string;
|
|
@@ -1133,4 +1187,4 @@ interface SubmitAuthorizationInput {
|
|
|
1133
1187
|
value: string;
|
|
1134
1188
|
}
|
|
1135
1189
|
|
|
1136
|
-
export { type BundleComponentData as $, type ApiError as A, type VariantLocationAvailability as B, type CurrencyCode as C, type DisplayMode as D, ErrorCode as E, type VariantAxisSelection as F, type AddOn as G, type AddOnWithOptions as H, type InventoryType as I, type AddOnOption as J, type AddOnOptionPrice as K, type ProductAddOn as L, type Money as M, type Category as N, type CategorySummary as O, type PaginationParams as P, type Collection as Q, type CollectionSummary as R, type SalesChannel as S, type CollectionProduct as T, type BundlePriceType as U, type VariantStrategy as V, type Bundle as W, type BundleSummary as X, type BundleProduct as Y, ZERO as Z, type BundleWithDetails as _, moneyFromNumber as a, type
|
|
1190
|
+
export { type BundleComponentData as $, type ApiError as A, type VariantLocationAvailability as B, type CurrencyCode as C, type DisplayMode as D, ErrorCode as E, type VariantAxisSelection as F, type AddOn as G, type AddOnWithOptions as H, type InventoryType as I, type AddOnOption as J, type AddOnOptionPrice as K, type ProductAddOn as L, type Money as M, type Category as N, type CategorySummary as O, type PaginationParams as P, type Collection as Q, type CollectionSummary as R, type SalesChannel as S, type CollectionProduct as T, type BundlePriceType as U, type VariantStrategy as V, type Bundle as W, type BundleSummary as X, type BundleProduct as Y, ZERO as Z, type BundleWithDetails as _, moneyFromNumber as a, type UICartResponse as a$, type BundleComponentInfo as a0, type BundleComponentView as a1, type BundleComponentVariantView as a2, type VariantAxisView as a3, type VariantAxisValueView as a4, type CompositePricingMode as a5, type GroupPricingBehavior as a6, type ComponentSourceType as a7, type Composite as a8, type CompositeWithDetails as a9, type SelectedAddOnOption as aA, type AddOnDetails as aB, type CartAddOn as aC, type VariantDetails as aD, type BundleSelectionInput as aE, type BundleStoredSelection as aF, type BundleSelectionData as aG, type CompositeStoredSelection as aH, type CompositePriceBreakdown as aI, type CompositeSelectionData as aJ, type LineConfiguration as aK, type Cart as aL, type CartItem as aM, type CartTotals as aN, type DisplayCart as aO, type DisplayCartItem as aP, type DisplayAddOn as aQ, type DisplayAddOnOption as aR, type UICartBusiness as aS, type UICartLocation as aT, type UICartCustomer as aU, type UICartPricing as aV, type AddOnOptionDetails as aW, type AddOnGroupDetails as aX, type VariantDetailsDTO as aY, type CartItemDetails as aZ, type UICart as a_, type ComponentGroup as aa, type ComponentGroupWithComponents as ab, type CompositeGroupView as ac, type CompositeComponentView as ad, type CompositeComponent as ae, type ComponentSelectionInput as af, type CompositePriceResult as ag, type ComponentPriceBreakdown as ah, type PriceEntryType as ai, type Price as aj, type LocationProductPrice as ak, type ProductAvailability as al, type ProductTimeProfile as am, type CartStatus as an, type CartChannel as ao, type PriceSource as ap, type AdjustmentType as aq, type PriceAdjustment as ar, type TaxPathComponent as as, type PricePathTaxInfo as at, type PriceDecisionPath as au, type ChosenPrice as av, type BenefitType as aw, type AppliedDiscount as ax, type DiscountBreakdown as ay, type DiscountDetails as az, type Currency as b, type AddToCartInput as b0, type UpdateCartItemInput as b1, type CartSummary as b2, type PaymentStatus as b3, type PaymentProvider as b4, type PaymentMethodType as b5, type AuthorizationType as b6, type PaymentProcessingState as b7, type PaymentMethod as b8, type Payment as b9, type InitializePaymentResult as ba, type PaymentResponse as bb, type PaymentStatusResponse as bc, type PaymentErrorDetails as bd, type SubmitAuthorizationInput as be, 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 DigitalProductType as q, type DepositType as r, type Product as s, type ProductWithDetails as t, type ProductVariant as u, type VariantDisplayAttribute as v, type VariantAxis as w, type VariantAxisWithValues as x, type VariantAxisValue as y, type ProductVariantValue as z };
|
|
@@ -141,9 +141,7 @@ interface Product {
|
|
|
141
141
|
description?: string;
|
|
142
142
|
image_url?: string;
|
|
143
143
|
default_price: Money;
|
|
144
|
-
|
|
145
|
-
type?: ProductType;
|
|
146
|
-
product_type: ProductType;
|
|
144
|
+
type: ProductType;
|
|
147
145
|
/** Server-derived UI hint for conditional rendering. */
|
|
148
146
|
render_hint?: ProductRenderHint;
|
|
149
147
|
display_mode?: DisplayMode;
|
|
@@ -218,6 +216,11 @@ interface Product {
|
|
|
218
216
|
meta_description?: string;
|
|
219
217
|
is_discountable?: boolean;
|
|
220
218
|
taxonomy_id?: string;
|
|
219
|
+
bundle_price?: Money;
|
|
220
|
+
discount_value?: Money;
|
|
221
|
+
pricing_type?: BundlePriceType;
|
|
222
|
+
components?: BundleComponentView[];
|
|
223
|
+
groups?: CompositeGroupView[];
|
|
221
224
|
}
|
|
222
225
|
interface ProductWithDetails extends Product {
|
|
223
226
|
category?: Category;
|
|
@@ -450,6 +453,33 @@ interface BundleComponentInfo {
|
|
|
450
453
|
variant_id?: string;
|
|
451
454
|
quantity: number;
|
|
452
455
|
}
|
|
456
|
+
interface BundleComponentView {
|
|
457
|
+
id: string;
|
|
458
|
+
product_id: string;
|
|
459
|
+
product_name: string;
|
|
460
|
+
product_description?: string;
|
|
461
|
+
product_image_url?: string;
|
|
462
|
+
quantity: number;
|
|
463
|
+
variant_id?: string;
|
|
464
|
+
allow_variant_choice: boolean;
|
|
465
|
+
available_variants: BundleComponentVariantView[];
|
|
466
|
+
variant_axes?: VariantAxisView[];
|
|
467
|
+
}
|
|
468
|
+
interface BundleComponentVariantView {
|
|
469
|
+
id: string;
|
|
470
|
+
is_default: boolean;
|
|
471
|
+
display_name: string;
|
|
472
|
+
price_adjustment: Money;
|
|
473
|
+
}
|
|
474
|
+
interface VariantAxisView {
|
|
475
|
+
id: string;
|
|
476
|
+
name: string;
|
|
477
|
+
values: VariantAxisValueView[];
|
|
478
|
+
}
|
|
479
|
+
interface VariantAxisValueView {
|
|
480
|
+
id: string;
|
|
481
|
+
value: string;
|
|
482
|
+
}
|
|
453
483
|
type CompositePricingMode = "additive" | "highest_per_group" | "highest_overall" | "tiered";
|
|
454
484
|
type GroupPricingBehavior = "additive" | "first_n_free" | "flat_fee" | "highest_only";
|
|
455
485
|
type ComponentSourceType = "product" | "stock" | "add_on" | "standalone";
|
|
@@ -489,6 +519,30 @@ interface ComponentGroup {
|
|
|
489
519
|
interface ComponentGroupWithComponents extends ComponentGroup {
|
|
490
520
|
components: CompositeComponent[];
|
|
491
521
|
}
|
|
522
|
+
interface CompositeGroupView {
|
|
523
|
+
id: string;
|
|
524
|
+
name: string;
|
|
525
|
+
description?: string;
|
|
526
|
+
min_selections: number;
|
|
527
|
+
max_selections: number;
|
|
528
|
+
allow_quantity: boolean;
|
|
529
|
+
max_quantity_per_component?: number;
|
|
530
|
+
display_order: number;
|
|
531
|
+
components: CompositeComponentView[];
|
|
532
|
+
}
|
|
533
|
+
interface CompositeComponentView {
|
|
534
|
+
id: string;
|
|
535
|
+
display_name?: string;
|
|
536
|
+
display_description?: string;
|
|
537
|
+
display_image_url?: string;
|
|
538
|
+
price: Money;
|
|
539
|
+
calories?: number;
|
|
540
|
+
display_order: number;
|
|
541
|
+
is_popular: boolean;
|
|
542
|
+
is_premium: boolean;
|
|
543
|
+
is_available: boolean;
|
|
544
|
+
is_archived: boolean;
|
|
545
|
+
}
|
|
492
546
|
interface CompositeComponent {
|
|
493
547
|
id: string;
|
|
494
548
|
group_id: string;
|
|
@@ -1133,4 +1187,4 @@ interface SubmitAuthorizationInput {
|
|
|
1133
1187
|
value: string;
|
|
1134
1188
|
}
|
|
1135
1189
|
|
|
1136
|
-
export { type BundleComponentData as $, type ApiError as A, type VariantLocationAvailability as B, type CurrencyCode as C, type DisplayMode as D, ErrorCode as E, type VariantAxisSelection as F, type AddOn as G, type AddOnWithOptions as H, type InventoryType as I, type AddOnOption as J, type AddOnOptionPrice as K, type ProductAddOn as L, type Money as M, type Category as N, type CategorySummary as O, type PaginationParams as P, type Collection as Q, type CollectionSummary as R, type SalesChannel as S, type CollectionProduct as T, type BundlePriceType as U, type VariantStrategy as V, type Bundle as W, type BundleSummary as X, type BundleProduct as Y, ZERO as Z, type BundleWithDetails as _, moneyFromNumber as a, type
|
|
1190
|
+
export { type BundleComponentData as $, type ApiError as A, type VariantLocationAvailability as B, type CurrencyCode as C, type DisplayMode as D, ErrorCode as E, type VariantAxisSelection as F, type AddOn as G, type AddOnWithOptions as H, type InventoryType as I, type AddOnOption as J, type AddOnOptionPrice as K, type ProductAddOn as L, type Money as M, type Category as N, type CategorySummary as O, type PaginationParams as P, type Collection as Q, type CollectionSummary as R, type SalesChannel as S, type CollectionProduct as T, type BundlePriceType as U, type VariantStrategy as V, type Bundle as W, type BundleSummary as X, type BundleProduct as Y, ZERO as Z, type BundleWithDetails as _, moneyFromNumber as a, type UICartResponse as a$, type BundleComponentInfo as a0, type BundleComponentView as a1, type BundleComponentVariantView as a2, type VariantAxisView as a3, type VariantAxisValueView as a4, type CompositePricingMode as a5, type GroupPricingBehavior as a6, type ComponentSourceType as a7, type Composite as a8, type CompositeWithDetails as a9, type SelectedAddOnOption as aA, type AddOnDetails as aB, type CartAddOn as aC, type VariantDetails as aD, type BundleSelectionInput as aE, type BundleStoredSelection as aF, type BundleSelectionData as aG, type CompositeStoredSelection as aH, type CompositePriceBreakdown as aI, type CompositeSelectionData as aJ, type LineConfiguration as aK, type Cart as aL, type CartItem as aM, type CartTotals as aN, type DisplayCart as aO, type DisplayCartItem as aP, type DisplayAddOn as aQ, type DisplayAddOnOption as aR, type UICartBusiness as aS, type UICartLocation as aT, type UICartCustomer as aU, type UICartPricing as aV, type AddOnOptionDetails as aW, type AddOnGroupDetails as aX, type VariantDetailsDTO as aY, type CartItemDetails as aZ, type UICart as a_, type ComponentGroup as aa, type ComponentGroupWithComponents as ab, type CompositeGroupView as ac, type CompositeComponentView as ad, type CompositeComponent as ae, type ComponentSelectionInput as af, type CompositePriceResult as ag, type ComponentPriceBreakdown as ah, type PriceEntryType as ai, type Price as aj, type LocationProductPrice as ak, type ProductAvailability as al, type ProductTimeProfile as am, type CartStatus as an, type CartChannel as ao, type PriceSource as ap, type AdjustmentType as aq, type PriceAdjustment as ar, type TaxPathComponent as as, type PricePathTaxInfo as at, type PriceDecisionPath as au, type ChosenPrice as av, type BenefitType as aw, type AppliedDiscount as ax, type DiscountBreakdown as ay, type DiscountDetails as az, type Currency as b, type AddToCartInput as b0, type UpdateCartItemInput as b1, type CartSummary as b2, type PaymentStatus as b3, type PaymentProvider as b4, type PaymentMethodType as b5, type AuthorizationType as b6, type PaymentProcessingState as b7, type PaymentMethod as b8, type Payment as b9, type InitializePaymentResult as ba, type PaymentResponse as bb, type PaymentStatusResponse as bc, type PaymentErrorDetails as bd, type SubmitAuthorizationInput as be, 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 DigitalProductType as q, type DepositType as r, type Product as s, type ProductWithDetails as t, type ProductVariant as u, type VariantDisplayAttribute as v, type VariantAxis as w, type VariantAxisWithValues as x, type VariantAxisValue as y, type ProductVariantValue as z };
|
package/dist/react.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-MkGm5l1T.mjs';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-MkGm5l1T.mjs';
|
|
4
|
-
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, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-
|
|
5
|
-
import { s as Product, d as Pagination, h as CimplifyError, t as ProductWithDetails, N as Category,
|
|
4
|
+
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, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-vh6CRdPQ.mjs';
|
|
5
|
+
import { s as Product, d as Pagination, h as CimplifyError, t as ProductWithDetails, N as Category, aE as BundleSelectionInput, af as ComponentSelectionInput, Q as Collection, _ as BundleWithDetails, a9 as CompositeWithDetails, ag as CompositePriceResult, C as CurrencyCode, u as ProductVariant, x as VariantAxisWithValues, M as Money, H as AddOnWithOptions } from './payment-Dkv_CyKl.mjs';
|
|
6
6
|
|
|
7
7
|
interface UserIdentity {
|
|
8
8
|
uid: string;
|
|
@@ -485,7 +485,7 @@ interface ProductCustomizerProps {
|
|
|
485
485
|
/**
|
|
486
486
|
* ProductCustomizer — full product customization + add-to-cart flow.
|
|
487
487
|
*
|
|
488
|
-
* Auto-detects
|
|
488
|
+
* Auto-detects product type and routes to CompositeSelector / BundleSelector /
|
|
489
489
|
* VariantSelector + AddOnSelector. Ships a built-in "Add to Cart" button with
|
|
490
490
|
* QuantitySelector. When `onAddToCart` is provided it calls that instead of
|
|
491
491
|
* using the SDK cart (escape hatch for custom logic like toasts).
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-MkGm5l1T.js';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-MkGm5l1T.js';
|
|
4
|
-
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, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-
|
|
5
|
-
import { s as Product, d as Pagination, h as CimplifyError, t as ProductWithDetails, N as Category,
|
|
4
|
+
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, w as ElementsOptions, cK as AuthenticatedData, cG as AddressInfo, cH as PaymentMethodInfo, s as CimplifyElements, cM as ElementsCheckoutResult, X as ProcessCheckoutOptions } from './client-CuzZg1rZ.js';
|
|
5
|
+
import { s as Product, d as Pagination, h as CimplifyError, t as ProductWithDetails, N as Category, aE as BundleSelectionInput, af as ComponentSelectionInput, Q as Collection, _ as BundleWithDetails, a9 as CompositeWithDetails, ag as CompositePriceResult, C as CurrencyCode, u as ProductVariant, x as VariantAxisWithValues, M as Money, H as AddOnWithOptions } from './payment-Dkv_CyKl.js';
|
|
6
6
|
|
|
7
7
|
interface UserIdentity {
|
|
8
8
|
uid: string;
|
|
@@ -485,7 +485,7 @@ interface ProductCustomizerProps {
|
|
|
485
485
|
/**
|
|
486
486
|
* ProductCustomizer — full product customization + add-to-cart flow.
|
|
487
487
|
*
|
|
488
|
-
* Auto-detects
|
|
488
|
+
* Auto-detects product type and routes to CompositeSelector / BundleSelector /
|
|
489
489
|
* VariantSelector + AddOnSelector. Ships a built-in "Add to Cart" button with
|
|
490
490
|
* QuantitySelector. When `onAddToCart` is provided it calls that instead of
|
|
491
491
|
* using the SDK cart (escape hatch for custom logic like toasts).
|
package/dist/react.js
CHANGED
|
@@ -5122,7 +5122,7 @@ function toProductFromServerItem(item, businessId) {
|
|
|
5122
5122
|
description: item.description,
|
|
5123
5123
|
image_url: item.image_url,
|
|
5124
5124
|
default_price: item.base_price,
|
|
5125
|
-
|
|
5125
|
+
type: "product",
|
|
5126
5126
|
inventory_type: "none",
|
|
5127
5127
|
variant_strategy: "fetch_all",
|
|
5128
5128
|
is_active: item.is_available,
|
|
@@ -7342,7 +7342,7 @@ function ProductCustomizer({
|
|
|
7342
7342
|
const [bundleSelections, setBundleSelections] = React3.useState([]);
|
|
7343
7343
|
const [bundleReady, setBundleReady] = React3.useState(false);
|
|
7344
7344
|
const cart = useCart();
|
|
7345
|
-
const productType = product.
|
|
7345
|
+
const productType = product.type || "product";
|
|
7346
7346
|
const isComposite = productType === "composite";
|
|
7347
7347
|
const isBundle = productType === "bundle";
|
|
7348
7348
|
const isStandard = !isComposite && !isBundle;
|
package/dist/react.mjs
CHANGED
|
@@ -5116,7 +5116,7 @@ function toProductFromServerItem(item, businessId) {
|
|
|
5116
5116
|
description: item.description,
|
|
5117
5117
|
image_url: item.image_url,
|
|
5118
5118
|
default_price: item.base_price,
|
|
5119
|
-
|
|
5119
|
+
type: "product",
|
|
5120
5120
|
inventory_type: "none",
|
|
5121
5121
|
variant_strategy: "fetch_all",
|
|
5122
5122
|
is_active: item.is_available,
|
|
@@ -7336,7 +7336,7 @@ function ProductCustomizer({
|
|
|
7336
7336
|
const [bundleSelections, setBundleSelections] = useState([]);
|
|
7337
7337
|
const [bundleReady, setBundleReady] = useState(false);
|
|
7338
7338
|
const cart = useCart();
|
|
7339
|
-
const productType = product.
|
|
7339
|
+
const productType = product.type || "product";
|
|
7340
7340
|
const isComposite = productType === "composite";
|
|
7341
7341
|
const isBundle = productType === "bundle";
|
|
7342
7342
|
const isStandard = !isComposite && !isBundle;
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, 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-
|
|
2
|
-
import './payment-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, 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-gjHjQz2R.mjs';
|
|
2
|
+
import './payment-Dkv_CyKl.mjs';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, 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-
|
|
2
|
-
import './payment-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, 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-beqptXTy.js';
|
|
2
|
+
import './payment-Dkv_CyKl.js';
|