@cimplify/sdk 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { ao as AUTHORIZATION_TYPE, at as AUTH_MUTATION, ad as AbortablePromise, y as ActivityRecommendation, z as ActivityRecommendationsResponse, t as ActivityService, x as ActivityStateResponse, cw as AddressData, cZ as AddressInfo, b1 as AmountToPay, cH as AuthResponse, A as AuthService, o as AuthStatus, c$ as AuthenticatedCustomer, d1 as AuthenticatedData, cm as AvailabilityResult, c1 as AvailableSlot, c4 as Booking, c3 as BookingStatus, c5 as BookingWithDetails, bn as BufferTimes, bI as Business, bW as BusinessHours, bH as BusinessPreferences, B as BusinessService, bV as BusinessSettings, bG as BusinessType, bT as BusinessWithLocations, ah as CHECKOUT_MODE, au as CHECKOUT_MUTATION, ak as CHECKOUT_STEP, aq as CONTACT_TYPE, cc as CancelBookingInput, cd as CancelBookingResult, bh as CancelOrderInput, bp as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aQ as CatalogueResult, aR as CatalogueSnapshot, bX as CategoryInfo, c9 as CheckSlotAvailabilityInput, ca as CheckSlotAvailabilityResult, cK as CheckoutAddressInfo, d5 as CheckoutCartData, d4 as CheckoutCartItem, cM as CheckoutCustomerInfo, a5 as CheckoutFormData, bf as CheckoutInput, a1 as CheckoutMode, l as CheckoutOperations, a2 as CheckoutOrderType, a3 as CheckoutPaymentMethod, a6 as CheckoutResult, l as CheckoutService, ab as CheckoutStatus, ac as CheckoutStatusContext, a4 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, N as CimplifyElement, M as CimplifyElements, ag as ContactType, cs as CreateAddressInput, cu as CreateMobileMoneyInput, cn as Customer, co as CustomerAddress, c7 as CustomerBooking, c6 as CustomerBookingServiceItem, cq as CustomerLinkPreferences, cp as CustomerMobileMoney, bm as CustomerServicePreferences, ay as DEFAULT_COUNTRY, ax as DEFAULT_CURRENCY, ap as DEVICE_TYPE, c2 as DayAvailability, bB as DeliveryFeeDetails, H as DeliveryFeeResponse, E as DeliveryService, bw as DepositResult, af as DeviceType, D as DismissMessageResponse, Y as ELEMENT_TYPES, X as EVENT_TYPES, cY as ElementAppearance, d8 as ElementEventHandler, a0 as ElementEventType, _ as ElementOptions, $ as ElementType, d2 as ElementsCheckoutData, d3 as ElementsCheckoutResult, d0 as ElementsCustomerInfo, Z as ElementsOptions, cy as EnrollAndLinkOrderInput, cB as EnrollAndLinkOrderResult, cv as EnrollmentData, aB as Err, b0 as FeeBearerType, F as FetchQuoteInput, a_ as FulfillmentLink, aZ as FulfillmentStatus, aY as FulfillmentType, cO as FxQuote, cN as FxQuoteRequest, cP as FxRateResponse, s as FxService, c8 as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, d7 as IframeToParentMessage, I as InventoryService, as as LINK_MUTATION, ar as LINK_QUERY, b2 as LineItem, aV as LineType, cr as LinkData, cA as LinkEnrollResult, L as LinkService, cC as LinkSession, cz as LinkStatusResult, J as LiteBootstrap, r as LiteService, bL as Location, bz as LocationAppointment, cl as LocationStock, bJ as LocationTaxBehavior, bK as LocationTaxOverrides, bO as LocationTimeProfile, bU as LocationWithDetails, W as MESSAGE_TYPES, an as MOBILE_MONEY_PROVIDER, cx as MobileMoneyData, cL as MobileMoneyDetails, ae as MobileMoneyProvider, a7 as NextAction, aw as ORDER_MUTATION, ai as ORDER_TYPE, cW as ObservabilityHooks, aA as Ok, b3 as Order, aU as OrderChannel, be as OrderFilter, a$ as OrderFulfillmentSummary, b8 as OrderGroup, bc as OrderGroupDetails, b9 as OrderGroupPayment, b6 as OrderGroupPaymentState, b7 as OrderGroupPaymentStatus, bb as OrderGroupPaymentSummary, b5 as OrderGroupStatus, b4 as OrderHistory, aW as OrderLineState, aX as OrderLineStatus, bd as OrderPaymentEvent, O as OrderQueries, ba as OrderSplitDetail, aS as OrderStatus, cX as OrderType, p as OtpResult, aj as PAYMENT_METHOD, av as PAYMENT_MUTATION, al as PAYMENT_STATE, am as PICKUP_TIME_TYPE, d6 as ParentToIframeMessage, c_ as PaymentMethodInfo, aT as PaymentState, cJ as PickupTime, cI as PickupTimeType, P as PriceQuote, br as PricingOverrides, aa as ProcessAndResolveOptions, a8 as ProcessCheckoutOptions, a9 as ProcessCheckoutResult, cj as ProductStock, bA as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bi as RefundOrderInput, bE as RelatedCandidate, bD as RelatedProduct, bF as RelatedProductsEnrichment, bC as RelationType, bl as ReminderMethod, bo as ReminderSettings, k as ReorderResult, cQ as RequestContext, cT as RequestErrorEvent, cF as RequestOtpInput, h as RequestSource, cR as RequestStartEvent, cS as RequestSuccessEvent, cb as RescheduleBookingInput, ce as RescheduleBookingResult, bu as ResourceAssignment, az as Result, cU as RetryEvent, cE as RevokeAllSessionsResult, cD as RevokeSessionResult, bQ as Room, bs as SchedulingMetadata, bv as SchedulingResult, q as SchedulingService, bY as Service, cf as ServiceAvailabilityParams, cg as ServiceAvailabilityResult, bR as ServiceCharge, bq as ServiceNotes, bx as ServiceScheduleRequest, bj as ServiceStatus, w as SessionActivityData, cV as SessionChangeEvent, v as SessionMessage, b$ as SlotResourceInfo, c0 as SlotStaffInfo, bZ as Staff, bt as StaffAssignment, bk as StaffRole, by as StaffScheduleItem, ci as StockLevel, ch as StockStatus, bS as StorefrontBootstrap, S as SubscriptionService, bP as Table, K as TableInfo, bM as TimeRange, bN as TimeRanges, b_ as TimeSlot, u as TrackCategoryViewOptions, T as TrackProductViewOptions, ct as UpdateAddressInput, bg as UpdateOrderStatusInput, U as UpdateProfileInput, ck as VariantStock, cG as VerifyOtpInput, aO as combine, aP as combineObject, c as createCimplifyClient, V as createElements, aD as err, aI as flatMap, aM as fromPromise, m as generateIdempotencyKey, aJ as getOrElse, aF as isErr, aE as isOk, aH as mapError, aG as mapResult, aC as ok, aL as toNullable, aN as tryCatch, aK as unwrap } from './index-iHKILmG9.js';
2
- import { A as ApiError } from './payment-k8feV7r8.js';
3
- export { a4 as AddOn, b1 as AddOnDetails, bo as AddOnGroupDetails, a6 as AddOnOption, bn as AddOnOptionDetails, a7 as AddOnOptionPrice, a5 as AddOnWithOptions, bt as AddToCartInput, bz as AddressAuthorizationData, aT as AdjustmentType, aZ as AppliedDiscount, w as AttributeAppliesTo, v as AttributeType, z as AttributeValidationRules, x as AttributeVisibility, bA as AuthorizationType, aY as BenefitType, bJ as BillingFrequency, bL as BillingMarkupType, bK as BillingPlanType, af as Bundle, aj as BundleComponentData, ak as BundleComponentInfo, am as BundleComponentVariantView, al as BundleComponentView, ae as BundlePriceType, ah as BundleProduct, b7 as BundleSelectionData, b4 as BundleSelectionInput, b6 as BundleStoredSelection, ag as BundleSummary, ai as BundleWithDetails, bc as Cart, b2 as CartAddOn, aR as CartChannel, bd as CartItem, bq as CartItemDetails, aQ as CartStatus, bv as CartSummary, be as CartTotals, a9 as Category, aa as CategorySummary, C as ChosenPrice, h as CimplifyError, ab as Collection, ad as CollectionProduct, ac as CollectionSummary, au as ComponentGroup, av as ComponentGroupWithComponents, aB as ComponentPriceBreakdown, b5 as ComponentSchedulingData, az as ComponentSelectionInput, ar as ComponentSourceType, as as Composite, ay as CompositeComponent, ax as CompositeComponentView, aw as CompositeGroupView, b9 as CompositePriceBreakdown, aA as CompositePriceResult, ap as CompositePricingMode, ba as CompositeSelectionData, az as CompositeSelectionInput, b8 as CompositeStoredSelection, at as CompositeWithDetails, a as CurrencyCode, B as CustomAttributeDefinition, F as CustomAttributeValue, u as DURATION_UNIT, aL as Deal, aK as DealBenefitType, s as DepositType, r as DigitalProductType, a_ as DiscountBreakdown, a$ as DiscountDetails, aN as DiscountValidation, bh as DisplayAddOn, bi as DisplayAddOnOption, bf as DisplayCart, bg as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bN as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, K as FacetValue, bO as FormattedPlanOption, aq as GroupPricingBehavior, bE as InitializePaymentResult, I as InventoryType, L as KnowledgeArticle, bb as LineConfiguration, aE as LocationProductPrice, y as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bD as Payment, bH as PaymentErrorDetails, bC as PaymentMethod, by as PaymentMethodType, bB as PaymentProcessingState, bx as PaymentProvider, bF as PaymentResponse, bw as PaymentStatus, bG as PaymentStatusResponse, aD as Price, aU as PriceAdjustment, aX as PriceDecisionPath, aC as PriceEntryType, aW as PricePathTaxInfo, aS as PriceSource, N as Product, a8 as ProductAddOn, aF as ProductAvailability, aJ as ProductAvailabilityNow, bM as ProductBillingPlan, aM as ProductDealInfo, H as ProductProperty, q as ProductRenderHint, aH as ProductTaxonomy, aG as ProductTimeProfile, o as ProductType, X as ProductVariant, a1 as ProductVariantValue, U as ProductWithDetails, J as PropertyFacet, G as PropertySource, Q as QuantityPricingTier, R as RENDER_HINT, O as RelatedProductView, S as SalesChannel, b0 as SelectedAddOnOption, bI as SubmitAuthorizationInput, bQ as Subscription, bS as SubscriptionInvoice, bR as SubscriptionItem, bP as SubscriptionStatus, bT as SubscriptionWithDetails, aO as Tag, aP as TagsResponse, aV as TaxPathComponent, T as TaxonomyAttributeTemplate, aI as TaxonomyWithChildren, br as UICart, bj as UICartBusiness, bl as UICartCustomer, bk as UICartLocation, bm as UICartPricing, bs as UICartResponse, bu as UpdateCartItemInput, _ as VariantAxis, a3 as VariantAxisSelection, a0 as VariantAxisValue, ao as VariantAxisValueView, an as VariantAxisView, $ as VariantAxisWithValues, b3 as VariantDetails, bp as VariantDetailsDTO, Y as VariantDisplayAttribute, a2 as VariantLocationAvailability, V as VariantStrategy, W as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-k8feV7r8.js';
4
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-C2U1gHyP.js';
1
+ export { av as AUTHORIZATION_TYPE, aA as AUTH_MUTATION, ak as AbortablePromise, M as ActivityRecommendation, N as ActivityRecommendationsResponse, t as ActivityService, K as ActivityStateResponse, cD as AddressData, d4 as AddressInfo, b8 as AmountToPay, cO as AuthResponse, A as AuthService, o as AuthStatus, d6 as AuthenticatedCustomer, d8 as AuthenticatedData, y as AutocompletePrediction, z as AutocompleteResponse, ct as AvailabilityResult, c8 as AvailableSlot, cb as Booking, ca as BookingStatus, cc as BookingWithDetails, bu as BufferTimes, bP as Business, c1 as BusinessHours, bO as BusinessPreferences, B as BusinessService, c0 as BusinessSettings, bN as BusinessType, b_ as BusinessWithLocations, ao as CHECKOUT_MODE, aB as CHECKOUT_MUTATION, ar as CHECKOUT_STEP, ax as CONTACT_TYPE, cj as CancelBookingInput, ck as CancelBookingResult, bo as CancelOrderInput, bw as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aX as CatalogueResult, aY as CatalogueSnapshot, c2 as CategoryInfo, cg as CheckSlotAvailabilityInput, ch as CheckSlotAvailabilityResult, cR as CheckoutAddressInfo, dc as CheckoutCartData, db as CheckoutCartItem, cT as CheckoutCustomerInfo, ac as CheckoutFormData, bm as CheckoutInput, a8 as CheckoutMode, l as CheckoutOperations, a9 as CheckoutOrderType, aa as CheckoutPaymentMethod, ad as CheckoutResult, l as CheckoutService, ai as CheckoutStatus, aj as CheckoutStatusContext, ab as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, $ as CimplifyElement, _ as CimplifyElements, an as ContactType, cz as CreateAddressInput, cB as CreateMobileMoneyInput, cu as Customer, cv as CustomerAddress, ce as CustomerBooking, cd as CustomerBookingServiceItem, cx as CustomerLinkPreferences, cw as CustomerMobileMoney, bt as CustomerServicePreferences, aF as DEFAULT_COUNTRY, aE as DEFAULT_CURRENCY, aw as DEVICE_TYPE, c9 as DayAvailability, bI as DeliveryFeeDetails, X as DeliveryFeeResponse, W as DeliveryService, bD as DepositResult, am as DeviceType, V as DismissMessageResponse, a3 as ELEMENT_TYPES, a2 as EVENT_TYPES, d3 as ElementAppearance, df as ElementEventHandler, a7 as ElementEventType, a5 as ElementOptions, a6 as ElementType, d9 as ElementsCheckoutData, da as ElementsCheckoutResult, d7 as ElementsCustomerInfo, a4 as ElementsOptions, cF as EnrollAndLinkOrderInput, cI as EnrollAndLinkOrderResult, cC as EnrollmentData, aI as Err, b7 as FeeBearerType, F as FetchQuoteInput, b5 as FulfillmentLink, b4 as FulfillmentStatus, b3 as FulfillmentType, cV as FxQuote, cU as FxQuoteRequest, cW as FxRateResponse, s as FxService, cf as GetAvailableSlotsInput, n as GetOrdersOptions, G as GetProductsOptions, de as IframeToParentMessage, I as InventoryService, az as LINK_MUTATION, ay as LINK_QUERY, b9 as LineItem, b0 as LineType, cy as LinkData, cH as LinkEnrollResult, L as LinkService, cJ as LinkSession, cG as LinkStatusResult, Y as LiteBootstrap, r as LiteService, bS as Location, bG as LocationAppointment, cs as LocationStock, bQ as LocationTaxBehavior, bR as LocationTaxOverrides, bV as LocationTimeProfile, b$ as LocationWithDetails, a1 as MESSAGE_TYPES, au as MOBILE_MONEY_PROVIDER, cE as MobileMoneyData, cS as MobileMoneyDetails, al as MobileMoneyProvider, ae as NextAction, aD as ORDER_MUTATION, ap as ORDER_TYPE, d1 as ObservabilityHooks, aH as Ok, ba as Order, a$ as OrderChannel, bl as OrderFilter, b6 as OrderFulfillmentSummary, bf as OrderGroup, bj as OrderGroupDetails, bg as OrderGroupPayment, bd as OrderGroupPaymentState, be as OrderGroupPaymentStatus, bi as OrderGroupPaymentSummary, bc as OrderGroupStatus, bb as OrderHistory, b1 as OrderLineState, b2 as OrderLineStatus, bk as OrderPaymentEvent, O as OrderQueries, bh as OrderSplitDetail, aZ as OrderStatus, d2 as OrderType, p as OtpResult, aq as PAYMENT_METHOD, aC as PAYMENT_MUTATION, as as PAYMENT_STATE, at as PICKUP_TIME_TYPE, dd as ParentToIframeMessage, d5 as PaymentMethodInfo, a_ as PaymentState, cQ as PickupTime, cP as PickupTimeType, D as PlaceDetailsResponse, x as PlacesService, P as PriceQuote, by as PricingOverrides, ah as ProcessAndResolveOptions, af as ProcessCheckoutOptions, ag as ProcessCheckoutResult, cq as ProductStock, bH as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bp as RefundOrderInput, bL as RelatedCandidate, bK as RelatedProduct, bM as RelatedProductsEnrichment, bJ as RelationType, bs as ReminderMethod, bv as ReminderSettings, k as ReorderResult, cX as RequestContext, c_ as RequestErrorEvent, cM as RequestOtpInput, h as RequestSource, cY as RequestStartEvent, cZ as RequestSuccessEvent, ci as RescheduleBookingInput, cl as RescheduleBookingResult, bB as ResourceAssignment, aG as Result, c$ as RetryEvent, cL as RevokeAllSessionsResult, cK as RevokeSessionResult, bX as Room, bz as SchedulingMetadata, bC as SchedulingResult, q as SchedulingService, c3 as Service, cm as ServiceAvailabilityParams, cn as ServiceAvailabilityResult, bY as ServiceCharge, bx as ServiceNotes, bE as ServiceScheduleRequest, bq as ServiceStatus, J as SessionActivityData, d0 as SessionChangeEvent, H as SessionMessage, c6 as SlotResourceInfo, c7 as SlotStaffInfo, c4 as Staff, bA as StaffAssignment, br as StaffRole, bF as StaffScheduleItem, cp as StockLevel, co as StockStatus, bZ as StorefrontBootstrap, S as SubscriptionService, bW as Table, Z as TableInfo, bT as TimeRange, bU as TimeRanges, c5 as TimeSlot, E as TrackCategoryViewOptions, T as TrackProductViewOptions, cA as UpdateAddressInput, bn as UpdateOrderStatusInput, U as UpdateProfileInput, w as UploadInitResponse, v as UploadResult, u as UploadService, cr as VariantStock, cN as VerifyOtpInput, aV as combine, aW as combineObject, c as createCimplifyClient, a0 as createElements, aK as err, aP as flatMap, aT as fromPromise, m as generateIdempotencyKey, aQ as getOrElse, aM as isErr, aL as isOk, aO as mapError, aN as mapResult, aJ as ok, aS as toNullable, aU as tryCatch, aR as unwrap } from './index-DwvzjdGi.js';
2
+ import { A as ApiError } from './payment-BeLHpQMo.js';
3
+ export { ae as AddOn, bb as AddOnDetails, by as AddOnGroupDetails, ag as AddOnOption, bx as AddOnOptionDetails, ah as AddOnOptionPrice, af as AddOnWithOptions, bD as AddToCartInput, bJ as AddressAuthorizationData, U as AddressValue, b1 as AdjustmentType, b7 as AppliedDiscount, w as AttributeAppliesTo, v as AttributeType, z as AttributeValidationRules, x as AttributeVisibility, bK as AuthorizationType, b6 as BenefitType, bT as BillingFrequency, bV as BillingMarkupType, bU as BillingPlanType, ap as Bundle, at as BundleComponentData, au as BundleComponentInfo, aw as BundleComponentVariantView, av as BundleComponentView, ao as BundlePriceType, ar as BundleProduct, bh as BundleSelectionData, be as BundleSelectionInput, bg as BundleStoredSelection, aq as BundleSummary, as as BundleWithDetails, bm as Cart, bc as CartAddOn, a$ as CartChannel, bn as CartItem, bA as CartItemDetails, a_ as CartStatus, bF as CartSummary, bo as CartTotals, aj as Category, ak as CategorySummary, C as ChosenPrice, h as CimplifyError, al as Collection, an as CollectionProduct, am as CollectionSummary, aE as ComponentGroup, aF as ComponentGroupWithComponents, aL as ComponentPriceBreakdown, bf as ComponentSchedulingData, aJ as ComponentSelectionInput, aB as ComponentSourceType, aC as Composite, aI as CompositeComponent, aH as CompositeComponentView, aG as CompositeGroupView, bj as CompositePriceBreakdown, aK as CompositePriceResult, az as CompositePricingMode, bk as CompositeSelectionData, aJ as CompositeSelectionInput, bi as CompositeStoredSelection, aD as CompositeWithDetails, a as CurrencyCode, B as CustomAttributeDefinition, F as CustomAttributeValue, a1 as CustomerInputValue, u as DURATION_UNIT, X as DateRangeValue, aV as Deal, aU as DealBenefitType, s as DepositType, r as DigitalProductType, b8 as DiscountBreakdown, b9 as DiscountDetails, aX as DiscountValidation, br as DisplayAddOn, bs as DisplayAddOnOption, bp as DisplayCart, bq as DisplayCartItem, D as DisplayMode, t as DurationUnit, g as ERROR_HINTS, bX as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, K as FacetValue, bY as FormattedPlanOption, aA as GroupPricingBehavior, Q as INPUT_FIELD_TYPE, bO as InitializePaymentResult, O as InputFieldType, $ as InputFieldValidation, I as InventoryType, L as KnowledgeArticle, bl as LineConfiguration, aO as LocationProductPrice, Y as LocationValue, y as MeasurementValue, M as Money, p as PRODUCT_TYPE, d as Pagination, P as PaginationParams, bN as Payment, bR as PaymentErrorDetails, bM as PaymentMethod, bI as PaymentMethodType, bL as PaymentProcessingState, bH as PaymentProvider, bP as PaymentResponse, bG as PaymentStatus, bQ as PaymentStatusResponse, W as PhoneValue, aN as Price, b2 as PriceAdjustment, b5 as PriceDecisionPath, aM as PriceEntryType, b4 as PricePathTaxInfo, b0 as PriceSource, N as Product, ai as ProductAddOn, aP as ProductAvailability, aT as ProductAvailabilityNow, bW as ProductBillingPlan, aW as ProductDealInfo, a0 as ProductInputField, H as ProductProperty, q as ProductRenderHint, aR as ProductTaxonomy, aQ as ProductTimeProfile, o as ProductType, a6 as ProductVariant, ab as ProductVariantValue, a4 as ProductWithDetails, J as PropertyFacet, G as PropertySource, a2 as QuantityPricingTier, R as RENDER_HINT, a3 as RelatedProductView, S as SalesChannel, ba as SelectedAddOnOption, _ as SignatureValue, bS as SubmitAuthorizationInput, b_ as Subscription, c0 as SubscriptionInvoice, b$ as SubscriptionItem, bZ as SubscriptionStatus, c1 as SubscriptionWithDetails, aY as Tag, aZ as TagsResponse, b3 as TaxPathComponent, T as TaxonomyAttributeTemplate, aS as TaxonomyWithChildren, bB as UICart, bt as UICartBusiness, bv as UICartCustomer, bu as UICartLocation, bw as UICartPricing, bC as UICartResponse, bE as UpdateCartItemInput, a8 as VariantAxis, ad as VariantAxisSelection, aa as VariantAxisValue, ay as VariantAxisValueView, ax as VariantAxisView, a9 as VariantAxisWithValues, bd as VariantDetails, bz as VariantDetailsDTO, a7 as VariantDisplayAttribute, ac as VariantLocationAvailability, V as VariantStrategy, a5 as VariantView, Z as ZERO, c as currencyCode, l as enrichError, k as getErrorHint, j as isCimplifyError, n as isRetryableError, i as isSupportedCurrency, m as money, b as moneyFromNumber } from './payment-BeLHpQMo.js';
4
+ export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, u as formatPriceRange, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, t as getPriceRange, r as getProductCurrency, g as getTaxAmount, s as getUnitPriceAtQuantity, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-Cjfczg2W.js';
5
5
  export { c as AdConfig, e as AdContextValue, d as AdCreative, a as AdPosition, A as AdSlot, b as AdTheme, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
6
- export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-4EK-0zF5.js';
6
+ export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-C6gfys5B.js';
7
7
  import 'libphonenumber-js';
8
8
 
9
9
  interface CustomerGroup {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkGS7AX6B3_js = require('./chunk-GS7AX6B3.js');
3
+ var chunkR4AKAGZQ_js = require('./chunk-R4AKAGZQ.js');
4
4
  var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
5
5
  var chunk2CGA3MUW_js = require('./chunk-2CGA3MUW.js');
6
6
  var chunkPEDLCL72_js = require('./chunk-PEDLCL72.js');
@@ -9,39 +9,51 @@ var chunkPEDLCL72_js = require('./chunk-PEDLCL72.js');
9
9
 
10
10
  Object.defineProperty(exports, "ActivityService", {
11
11
  enumerable: true,
12
- get: function () { return chunkGS7AX6B3_js.ActivityService; }
12
+ get: function () { return chunkR4AKAGZQ_js.ActivityService; }
13
13
  });
14
14
  Object.defineProperty(exports, "CimplifyClient", {
15
15
  enumerable: true,
16
- get: function () { return chunkGS7AX6B3_js.CimplifyClient; }
16
+ get: function () { return chunkR4AKAGZQ_js.CimplifyClient; }
17
17
  });
18
18
  Object.defineProperty(exports, "DURATION_UNIT", {
19
19
  enumerable: true,
20
- get: function () { return chunkGS7AX6B3_js.DURATION_UNIT; }
20
+ get: function () { return chunkR4AKAGZQ_js.DURATION_UNIT; }
21
21
  });
22
22
  Object.defineProperty(exports, "DeliveryService", {
23
23
  enumerable: true,
24
- get: function () { return chunkGS7AX6B3_js.DeliveryService; }
24
+ get: function () { return chunkR4AKAGZQ_js.DeliveryService; }
25
+ });
26
+ Object.defineProperty(exports, "INPUT_FIELD_TYPE", {
27
+ enumerable: true,
28
+ get: function () { return chunkR4AKAGZQ_js.INPUT_FIELD_TYPE; }
25
29
  });
26
30
  Object.defineProperty(exports, "PRODUCT_TYPE", {
27
31
  enumerable: true,
28
- get: function () { return chunkGS7AX6B3_js.PRODUCT_TYPE; }
32
+ get: function () { return chunkR4AKAGZQ_js.PRODUCT_TYPE; }
33
+ });
34
+ Object.defineProperty(exports, "PlacesService", {
35
+ enumerable: true,
36
+ get: function () { return chunkR4AKAGZQ_js.PlacesService; }
29
37
  });
30
38
  Object.defineProperty(exports, "RENDER_HINT", {
31
39
  enumerable: true,
32
- get: function () { return chunkGS7AX6B3_js.RENDER_HINT; }
40
+ get: function () { return chunkR4AKAGZQ_js.RENDER_HINT; }
33
41
  });
34
42
  Object.defineProperty(exports, "SubscriptionService", {
35
43
  enumerable: true,
36
- get: function () { return chunkGS7AX6B3_js.SubscriptionService; }
44
+ get: function () { return chunkR4AKAGZQ_js.SubscriptionService; }
45
+ });
46
+ Object.defineProperty(exports, "UploadService", {
47
+ enumerable: true,
48
+ get: function () { return chunkR4AKAGZQ_js.UploadService; }
37
49
  });
38
50
  Object.defineProperty(exports, "createCimplifyClient", {
39
51
  enumerable: true,
40
- get: function () { return chunkGS7AX6B3_js.createCimplifyClient; }
52
+ get: function () { return chunkR4AKAGZQ_js.createCimplifyClient; }
41
53
  });
42
54
  Object.defineProperty(exports, "getVariantDisplayName", {
43
55
  enumerable: true,
44
- get: function () { return chunkGS7AX6B3_js.getVariantDisplayName; }
56
+ get: function () { return chunkR4AKAGZQ_js.getVariantDisplayName; }
45
57
  });
46
58
  Object.defineProperty(exports, "isValidPhoneForContext", {
47
59
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, PRODUCT_TYPE, RENDER_HINT, SubscriptionService, createCimplifyClient, getVariantDisplayName } from './chunk-FFUCCUG4.mjs';
1
+ export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, INPUT_FIELD_TYPE, PRODUCT_TYPE, PlacesService, RENDER_HINT, SubscriptionService, UploadService, createCimplifyClient, getVariantDisplayName } from './chunk-REXW2PET.mjs';
2
2
  export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
3
3
  export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-3J4PPSMI.mjs';
4
4
  export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isCimplifyError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-E3HC2YAE.mjs';
@@ -256,10 +256,12 @@ type LineConfiguration = {
256
256
  type: "simple";
257
257
  variant?: VariantDetails;
258
258
  add_ons?: AddOnDetails;
259
+ customer_inputs?: CustomerInputValue[];
259
260
  } | {
260
261
  type: "service";
261
262
  variant?: VariantDetails;
262
263
  add_ons?: AddOnDetails;
264
+ customer_inputs?: CustomerInputValue[];
263
265
  scheduled_start?: string;
264
266
  scheduled_end?: string;
265
267
  confirmation_code?: string;
@@ -272,16 +274,19 @@ type LineConfiguration = {
272
274
  input: BundleSelectionInput[];
273
275
  resolved?: BundleSelectionData;
274
276
  add_ons?: AddOnDetails;
277
+ customer_inputs?: CustomerInputValue[];
275
278
  } | {
276
279
  type: "composite";
277
280
  variant?: VariantDetails;
278
281
  input: ComponentSelectionInput[];
279
282
  resolved?: CompositeSelectionData;
280
283
  add_ons?: AddOnDetails;
284
+ customer_inputs?: CustomerInputValue[];
281
285
  } | {
282
286
  type: "digital";
283
287
  variant?: VariantDetails;
284
288
  add_ons?: AddOnDetails;
289
+ customer_inputs?: CustomerInputValue[];
285
290
  digital_type?: string;
286
291
  fulfillment_id?: string;
287
292
  };
@@ -502,6 +507,12 @@ interface CartItemDetails {
502
507
  bundle_resolved?: BundleSelectionData;
503
508
  composite_selections?: ComponentSelectionInput[];
504
509
  composite_resolved?: CompositeSelectionData;
510
+ customer_inputs?: Array<{
511
+ field_id: string;
512
+ field_name: string;
513
+ field_type: string;
514
+ value: unknown;
515
+ }>;
505
516
  applied_discount_ids: string[];
506
517
  discount_details?: DiscountDetails;
507
518
  created_at: string;
@@ -546,6 +557,10 @@ interface AddToCartInput {
546
557
  staff_id?: string;
547
558
  resource_id?: string;
548
559
  billing_plan_id?: string;
560
+ customer_inputs?: Array<{
561
+ field_id: string;
562
+ value: unknown;
563
+ }>;
549
564
  }
550
565
  interface UpdateCartItemInput {
551
566
  quantity?: number;
@@ -880,9 +895,94 @@ interface Product {
880
895
  billing_plans?: ProductBillingPlan[];
881
896
  quantity_pricing?: QuantityPricingTier[];
882
897
  min_order_quantity?: number;
898
+ input_fields?: ProductInputField[];
883
899
  upsells?: RelatedProductView[];
884
900
  cross_sells?: RelatedProductView[];
885
901
  }
902
+ type InputFieldType = "text" | "textarea" | "number" | "select" | "radio" | "checkbox" | "color" | "date" | "file" | "image" | "url" | "address" | "phone" | "email" | "date_time" | "time" | "signature" | "multi_select" | "date_range" | "location";
903
+ declare const INPUT_FIELD_TYPE: {
904
+ Text: "text";
905
+ Textarea: "textarea";
906
+ Number: "number";
907
+ Select: "select";
908
+ Radio: "radio";
909
+ Checkbox: "checkbox";
910
+ Color: "color";
911
+ Date: "date";
912
+ File: "file";
913
+ Image: "image";
914
+ Url: "url";
915
+ Address: "address";
916
+ Phone: "phone";
917
+ Email: "email";
918
+ DateTime: "date_time";
919
+ Time: "time";
920
+ Signature: "signature";
921
+ MultiSelect: "multi_select";
922
+ DateRange: "date_range";
923
+ Location: "location";
924
+ };
925
+ interface AddressValue {
926
+ formatted_address: string;
927
+ street_address?: string;
928
+ apartment?: string;
929
+ city?: string;
930
+ region?: string;
931
+ postal_code?: string;
932
+ country?: string;
933
+ latitude: number;
934
+ longitude: number;
935
+ place_id?: string;
936
+ }
937
+ interface PhoneValue {
938
+ country_code: string;
939
+ number: string;
940
+ formatted: string;
941
+ }
942
+ interface DateRangeValue {
943
+ start: string;
944
+ end: string;
945
+ }
946
+ interface LocationValue {
947
+ latitude: number;
948
+ longitude: number;
949
+ label?: string;
950
+ }
951
+ interface SignatureValue {
952
+ data_url: string;
953
+ signer_name?: string;
954
+ }
955
+ interface InputFieldValidation {
956
+ max_length?: number;
957
+ min_length?: number;
958
+ min_value?: number;
959
+ max_value?: number;
960
+ accepted_formats?: string[];
961
+ max_size_mb?: number;
962
+ pattern?: string;
963
+ allowed_countries?: string[];
964
+ max_selections?: number;
965
+ }
966
+ interface ProductInputField {
967
+ id: string;
968
+ product_id: string;
969
+ name: string;
970
+ slug: string;
971
+ field_type: InputFieldType;
972
+ is_required: boolean;
973
+ display_order: number;
974
+ placeholder?: string;
975
+ help_text?: string;
976
+ validation?: InputFieldValidation;
977
+ options?: string[];
978
+ price_adjustment?: Money;
979
+ }
980
+ interface CustomerInputValue {
981
+ field_id: string;
982
+ field_name: string;
983
+ field_type: string;
984
+ value: unknown;
985
+ }
886
986
  interface QuantityPricingTier {
887
987
  min_quantity: number;
888
988
  max_quantity?: number;
@@ -1507,4 +1607,4 @@ interface SubmitAuthorizationInput {
1507
1607
  value: string;
1508
1608
  }
1509
1609
 
1510
- export { type VariantAxisWithValues as $, type ApiError as A, type CustomAttributeDefinition as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type CustomAttributeValue as F, type PropertySource as G, type ProductProperty as H, type InventoryType as I, type PropertyFacet as J, type FacetValue as K, type KnowledgeArticle as L, type Money as M, type Product as N, type RelatedProductView as O, type PaginationParams as P, type QuantityPricingTier as Q, RENDER_HINT as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type ProductWithDetails as U, type VariantStrategy as V, type VariantView as W, type ProductVariant as X, type VariantDisplayAttribute as Y, ZERO as Z, type VariantAxis as _, type CurrencyCode as a, type DiscountDetails as a$, type VariantAxisValue as a0, type ProductVariantValue as a1, type VariantLocationAvailability as a2, type VariantAxisSelection as a3, type AddOn as a4, type AddOnWithOptions as a5, type AddOnOption as a6, type AddOnOptionPrice as a7, type ProductAddOn as a8, type Category as a9, type CompositePriceResult as aA, type ComponentPriceBreakdown as aB, type PriceEntryType as aC, type Price as aD, type LocationProductPrice as aE, type ProductAvailability as aF, type ProductTimeProfile as aG, type ProductTaxonomy as aH, type TaxonomyWithChildren as aI, type ProductAvailabilityNow as aJ, type DealBenefitType as aK, type Deal as aL, type ProductDealInfo as aM, type DiscountValidation as aN, type Tag as aO, type TagsResponse as aP, type CartStatus as aQ, type CartChannel as aR, type PriceSource as aS, type AdjustmentType as aT, type PriceAdjustment as aU, type TaxPathComponent as aV, type PricePathTaxInfo as aW, type PriceDecisionPath as aX, type BenefitType as aY, type AppliedDiscount as aZ, type DiscountBreakdown as a_, type CategorySummary as aa, type Collection as ab, type CollectionSummary as ac, type CollectionProduct as ad, type BundlePriceType as ae, type Bundle as af, type BundleSummary as ag, type BundleProduct as ah, type BundleWithDetails as ai, type BundleComponentData as aj, type BundleComponentInfo as ak, type BundleComponentView as al, type BundleComponentVariantView as am, type VariantAxisView as an, type VariantAxisValueView as ao, type CompositePricingMode as ap, type GroupPricingBehavior as aq, type ComponentSourceType as ar, type Composite as as, type CompositeWithDetails as at, type ComponentGroup as au, type ComponentGroupWithComponents as av, type CompositeGroupView as aw, type CompositeComponentView as ax, type CompositeComponent as ay, type ComponentSelectionInput as az, moneyFromNumber as b, type SelectedAddOnOption as b0, type AddOnDetails as b1, type CartAddOn as b2, type VariantDetails as b3, type BundleSelectionInput as b4, type ComponentSchedulingData as b5, type BundleStoredSelection as b6, type BundleSelectionData as b7, type CompositeStoredSelection as b8, type CompositePriceBreakdown as b9, type AuthorizationType as bA, type PaymentProcessingState as bB, type PaymentMethod as bC, type Payment as bD, type InitializePaymentResult as bE, type PaymentResponse as bF, type PaymentStatusResponse as bG, type PaymentErrorDetails as bH, type SubmitAuthorizationInput as bI, type BillingFrequency as bJ, type BillingPlanType as bK, type BillingMarkupType as bL, type ProductBillingPlan as bM, type EligiblePlansQuery as bN, type FormattedPlanOption as bO, type SubscriptionStatus as bP, type Subscription as bQ, type SubscriptionItem as bR, type SubscriptionInvoice as bS, type SubscriptionWithDetails as bT, type CompositeSelectionData as ba, type LineConfiguration as bb, type Cart as bc, type CartItem as bd, type CartTotals as be, type DisplayCart as bf, type DisplayCartItem as bg, type DisplayAddOn as bh, type DisplayAddOnOption as bi, type UICartBusiness as bj, type UICartLocation as bk, type UICartCustomer as bl, type UICartPricing as bm, type AddOnOptionDetails as bn, type AddOnGroupDetails as bo, type VariantDetailsDTO as bp, type CartItemDetails as bq, type UICart as br, type UICartResponse as bs, type AddToCartInput as bt, type UpdateCartItemInput as bu, type CartSummary as bv, type PaymentStatus as bw, type PaymentProvider as bx, type PaymentMethodType as by, type AddressAuthorizationData as bz, 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, PRODUCT_TYPE as p, type ProductRenderHint as q, type DigitalProductType as r, type DepositType as s, type DurationUnit as t, DURATION_UNIT as u, type AttributeType as v, type AttributeAppliesTo as w, type AttributeVisibility as x, type MeasurementValue as y, type AttributeValidationRules as z };
1610
+ export { type InputFieldValidation as $, type ApiError as A, type CustomAttributeDefinition as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type CustomAttributeValue as F, type PropertySource as G, type ProductProperty as H, type InventoryType as I, type PropertyFacet as J, type FacetValue as K, type KnowledgeArticle as L, type Money as M, type Product as N, type InputFieldType as O, type PaginationParams as P, INPUT_FIELD_TYPE as Q, RENDER_HINT as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type AddressValue as U, type VariantStrategy as V, type PhoneValue as W, type DateRangeValue as X, type LocationValue as Y, ZERO as Z, type SignatureValue as _, type CurrencyCode as a, type CartChannel as a$, type ProductInputField as a0, type CustomerInputValue as a1, type QuantityPricingTier as a2, type RelatedProductView as a3, type ProductWithDetails as a4, type VariantView as a5, type ProductVariant as a6, type VariantDisplayAttribute as a7, type VariantAxis as a8, type VariantAxisWithValues as a9, type GroupPricingBehavior as aA, type ComponentSourceType as aB, type Composite as aC, type CompositeWithDetails as aD, type ComponentGroup as aE, type ComponentGroupWithComponents as aF, type CompositeGroupView as aG, type CompositeComponentView as aH, type CompositeComponent as aI, type ComponentSelectionInput as aJ, type CompositePriceResult as aK, type ComponentPriceBreakdown as aL, type PriceEntryType as aM, type Price as aN, type LocationProductPrice as aO, type ProductAvailability as aP, type ProductTimeProfile as aQ, type ProductTaxonomy as aR, type TaxonomyWithChildren as aS, type ProductAvailabilityNow as aT, type DealBenefitType as aU, type Deal as aV, type ProductDealInfo as aW, type DiscountValidation as aX, type Tag as aY, type TagsResponse as aZ, type CartStatus as a_, type VariantAxisValue as aa, type ProductVariantValue as ab, type VariantLocationAvailability as ac, type VariantAxisSelection as ad, type AddOn as ae, type AddOnWithOptions as af, type AddOnOption as ag, type AddOnOptionPrice as ah, type ProductAddOn as ai, type Category as aj, type CategorySummary as ak, type Collection as al, type CollectionSummary as am, type CollectionProduct as an, type BundlePriceType as ao, type Bundle as ap, type BundleSummary as aq, type BundleProduct as ar, type BundleWithDetails as as, type BundleComponentData as at, type BundleComponentInfo as au, type BundleComponentView as av, type BundleComponentVariantView as aw, type VariantAxisView as ax, type VariantAxisValueView as ay, type CompositePricingMode as az, moneyFromNumber as b, type SubscriptionItem as b$, type PriceSource as b0, type AdjustmentType as b1, type PriceAdjustment as b2, type TaxPathComponent as b3, type PricePathTaxInfo as b4, type PriceDecisionPath as b5, type BenefitType as b6, type AppliedDiscount as b7, type DiscountBreakdown as b8, type DiscountDetails as b9, type CartItemDetails as bA, type UICart as bB, type UICartResponse as bC, type AddToCartInput as bD, type UpdateCartItemInput as bE, type CartSummary as bF, type PaymentStatus as bG, type PaymentProvider as bH, type PaymentMethodType as bI, type AddressAuthorizationData as bJ, type AuthorizationType as bK, type PaymentProcessingState as bL, type PaymentMethod as bM, type Payment as bN, type InitializePaymentResult as bO, type PaymentResponse as bP, type PaymentStatusResponse as bQ, type PaymentErrorDetails as bR, type SubmitAuthorizationInput as bS, type BillingFrequency as bT, type BillingPlanType as bU, type BillingMarkupType as bV, type ProductBillingPlan as bW, type EligiblePlansQuery as bX, type FormattedPlanOption as bY, type SubscriptionStatus as bZ, type Subscription as b_, type SelectedAddOnOption as ba, type AddOnDetails as bb, type CartAddOn as bc, type VariantDetails as bd, type BundleSelectionInput as be, type ComponentSchedulingData as bf, type BundleStoredSelection as bg, type BundleSelectionData as bh, type CompositeStoredSelection as bi, type CompositePriceBreakdown as bj, type CompositeSelectionData as bk, type LineConfiguration as bl, type Cart as bm, type CartItem as bn, type CartTotals as bo, type DisplayCart as bp, type DisplayCartItem as bq, type DisplayAddOn as br, type DisplayAddOnOption as bs, type UICartBusiness as bt, type UICartLocation as bu, type UICartCustomer as bv, type UICartPricing as bw, type AddOnOptionDetails as bx, type AddOnGroupDetails as by, type VariantDetailsDTO as bz, currencyCode as c, type SubscriptionInvoice as c0, type SubscriptionWithDetails as c1, 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, PRODUCT_TYPE as p, type ProductRenderHint as q, type DigitalProductType as r, type DepositType as s, type DurationUnit as t, DURATION_UNIT as u, type AttributeType as v, type AttributeAppliesTo as w, type AttributeVisibility as x, type MeasurementValue as y, type AttributeValidationRules as z };
@@ -256,10 +256,12 @@ type LineConfiguration = {
256
256
  type: "simple";
257
257
  variant?: VariantDetails;
258
258
  add_ons?: AddOnDetails;
259
+ customer_inputs?: CustomerInputValue[];
259
260
  } | {
260
261
  type: "service";
261
262
  variant?: VariantDetails;
262
263
  add_ons?: AddOnDetails;
264
+ customer_inputs?: CustomerInputValue[];
263
265
  scheduled_start?: string;
264
266
  scheduled_end?: string;
265
267
  confirmation_code?: string;
@@ -272,16 +274,19 @@ type LineConfiguration = {
272
274
  input: BundleSelectionInput[];
273
275
  resolved?: BundleSelectionData;
274
276
  add_ons?: AddOnDetails;
277
+ customer_inputs?: CustomerInputValue[];
275
278
  } | {
276
279
  type: "composite";
277
280
  variant?: VariantDetails;
278
281
  input: ComponentSelectionInput[];
279
282
  resolved?: CompositeSelectionData;
280
283
  add_ons?: AddOnDetails;
284
+ customer_inputs?: CustomerInputValue[];
281
285
  } | {
282
286
  type: "digital";
283
287
  variant?: VariantDetails;
284
288
  add_ons?: AddOnDetails;
289
+ customer_inputs?: CustomerInputValue[];
285
290
  digital_type?: string;
286
291
  fulfillment_id?: string;
287
292
  };
@@ -502,6 +507,12 @@ interface CartItemDetails {
502
507
  bundle_resolved?: BundleSelectionData;
503
508
  composite_selections?: ComponentSelectionInput[];
504
509
  composite_resolved?: CompositeSelectionData;
510
+ customer_inputs?: Array<{
511
+ field_id: string;
512
+ field_name: string;
513
+ field_type: string;
514
+ value: unknown;
515
+ }>;
505
516
  applied_discount_ids: string[];
506
517
  discount_details?: DiscountDetails;
507
518
  created_at: string;
@@ -546,6 +557,10 @@ interface AddToCartInput {
546
557
  staff_id?: string;
547
558
  resource_id?: string;
548
559
  billing_plan_id?: string;
560
+ customer_inputs?: Array<{
561
+ field_id: string;
562
+ value: unknown;
563
+ }>;
549
564
  }
550
565
  interface UpdateCartItemInput {
551
566
  quantity?: number;
@@ -880,9 +895,94 @@ interface Product {
880
895
  billing_plans?: ProductBillingPlan[];
881
896
  quantity_pricing?: QuantityPricingTier[];
882
897
  min_order_quantity?: number;
898
+ input_fields?: ProductInputField[];
883
899
  upsells?: RelatedProductView[];
884
900
  cross_sells?: RelatedProductView[];
885
901
  }
902
+ type InputFieldType = "text" | "textarea" | "number" | "select" | "radio" | "checkbox" | "color" | "date" | "file" | "image" | "url" | "address" | "phone" | "email" | "date_time" | "time" | "signature" | "multi_select" | "date_range" | "location";
903
+ declare const INPUT_FIELD_TYPE: {
904
+ Text: "text";
905
+ Textarea: "textarea";
906
+ Number: "number";
907
+ Select: "select";
908
+ Radio: "radio";
909
+ Checkbox: "checkbox";
910
+ Color: "color";
911
+ Date: "date";
912
+ File: "file";
913
+ Image: "image";
914
+ Url: "url";
915
+ Address: "address";
916
+ Phone: "phone";
917
+ Email: "email";
918
+ DateTime: "date_time";
919
+ Time: "time";
920
+ Signature: "signature";
921
+ MultiSelect: "multi_select";
922
+ DateRange: "date_range";
923
+ Location: "location";
924
+ };
925
+ interface AddressValue {
926
+ formatted_address: string;
927
+ street_address?: string;
928
+ apartment?: string;
929
+ city?: string;
930
+ region?: string;
931
+ postal_code?: string;
932
+ country?: string;
933
+ latitude: number;
934
+ longitude: number;
935
+ place_id?: string;
936
+ }
937
+ interface PhoneValue {
938
+ country_code: string;
939
+ number: string;
940
+ formatted: string;
941
+ }
942
+ interface DateRangeValue {
943
+ start: string;
944
+ end: string;
945
+ }
946
+ interface LocationValue {
947
+ latitude: number;
948
+ longitude: number;
949
+ label?: string;
950
+ }
951
+ interface SignatureValue {
952
+ data_url: string;
953
+ signer_name?: string;
954
+ }
955
+ interface InputFieldValidation {
956
+ max_length?: number;
957
+ min_length?: number;
958
+ min_value?: number;
959
+ max_value?: number;
960
+ accepted_formats?: string[];
961
+ max_size_mb?: number;
962
+ pattern?: string;
963
+ allowed_countries?: string[];
964
+ max_selections?: number;
965
+ }
966
+ interface ProductInputField {
967
+ id: string;
968
+ product_id: string;
969
+ name: string;
970
+ slug: string;
971
+ field_type: InputFieldType;
972
+ is_required: boolean;
973
+ display_order: number;
974
+ placeholder?: string;
975
+ help_text?: string;
976
+ validation?: InputFieldValidation;
977
+ options?: string[];
978
+ price_adjustment?: Money;
979
+ }
980
+ interface CustomerInputValue {
981
+ field_id: string;
982
+ field_name: string;
983
+ field_type: string;
984
+ value: unknown;
985
+ }
886
986
  interface QuantityPricingTier {
887
987
  min_quantity: number;
888
988
  max_quantity?: number;
@@ -1507,4 +1607,4 @@ interface SubmitAuthorizationInput {
1507
1607
  value: string;
1508
1608
  }
1509
1609
 
1510
- export { type VariantAxisWithValues as $, type ApiError as A, type CustomAttributeDefinition as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type CustomAttributeValue as F, type PropertySource as G, type ProductProperty as H, type InventoryType as I, type PropertyFacet as J, type FacetValue as K, type KnowledgeArticle as L, type Money as M, type Product as N, type RelatedProductView as O, type PaginationParams as P, type QuantityPricingTier as Q, RENDER_HINT as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type ProductWithDetails as U, type VariantStrategy as V, type VariantView as W, type ProductVariant as X, type VariantDisplayAttribute as Y, ZERO as Z, type VariantAxis as _, type CurrencyCode as a, type DiscountDetails as a$, type VariantAxisValue as a0, type ProductVariantValue as a1, type VariantLocationAvailability as a2, type VariantAxisSelection as a3, type AddOn as a4, type AddOnWithOptions as a5, type AddOnOption as a6, type AddOnOptionPrice as a7, type ProductAddOn as a8, type Category as a9, type CompositePriceResult as aA, type ComponentPriceBreakdown as aB, type PriceEntryType as aC, type Price as aD, type LocationProductPrice as aE, type ProductAvailability as aF, type ProductTimeProfile as aG, type ProductTaxonomy as aH, type TaxonomyWithChildren as aI, type ProductAvailabilityNow as aJ, type DealBenefitType as aK, type Deal as aL, type ProductDealInfo as aM, type DiscountValidation as aN, type Tag as aO, type TagsResponse as aP, type CartStatus as aQ, type CartChannel as aR, type PriceSource as aS, type AdjustmentType as aT, type PriceAdjustment as aU, type TaxPathComponent as aV, type PricePathTaxInfo as aW, type PriceDecisionPath as aX, type BenefitType as aY, type AppliedDiscount as aZ, type DiscountBreakdown as a_, type CategorySummary as aa, type Collection as ab, type CollectionSummary as ac, type CollectionProduct as ad, type BundlePriceType as ae, type Bundle as af, type BundleSummary as ag, type BundleProduct as ah, type BundleWithDetails as ai, type BundleComponentData as aj, type BundleComponentInfo as ak, type BundleComponentView as al, type BundleComponentVariantView as am, type VariantAxisView as an, type VariantAxisValueView as ao, type CompositePricingMode as ap, type GroupPricingBehavior as aq, type ComponentSourceType as ar, type Composite as as, type CompositeWithDetails as at, type ComponentGroup as au, type ComponentGroupWithComponents as av, type CompositeGroupView as aw, type CompositeComponentView as ax, type CompositeComponent as ay, type ComponentSelectionInput as az, moneyFromNumber as b, type SelectedAddOnOption as b0, type AddOnDetails as b1, type CartAddOn as b2, type VariantDetails as b3, type BundleSelectionInput as b4, type ComponentSchedulingData as b5, type BundleStoredSelection as b6, type BundleSelectionData as b7, type CompositeStoredSelection as b8, type CompositePriceBreakdown as b9, type AuthorizationType as bA, type PaymentProcessingState as bB, type PaymentMethod as bC, type Payment as bD, type InitializePaymentResult as bE, type PaymentResponse as bF, type PaymentStatusResponse as bG, type PaymentErrorDetails as bH, type SubmitAuthorizationInput as bI, type BillingFrequency as bJ, type BillingPlanType as bK, type BillingMarkupType as bL, type ProductBillingPlan as bM, type EligiblePlansQuery as bN, type FormattedPlanOption as bO, type SubscriptionStatus as bP, type Subscription as bQ, type SubscriptionItem as bR, type SubscriptionInvoice as bS, type SubscriptionWithDetails as bT, type CompositeSelectionData as ba, type LineConfiguration as bb, type Cart as bc, type CartItem as bd, type CartTotals as be, type DisplayCart as bf, type DisplayCartItem as bg, type DisplayAddOn as bh, type DisplayAddOnOption as bi, type UICartBusiness as bj, type UICartLocation as bk, type UICartCustomer as bl, type UICartPricing as bm, type AddOnOptionDetails as bn, type AddOnGroupDetails as bo, type VariantDetailsDTO as bp, type CartItemDetails as bq, type UICart as br, type UICartResponse as bs, type AddToCartInput as bt, type UpdateCartItemInput as bu, type CartSummary as bv, type PaymentStatus as bw, type PaymentProvider as bx, type PaymentMethodType as by, type AddressAuthorizationData as bz, 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, PRODUCT_TYPE as p, type ProductRenderHint as q, type DigitalProductType as r, type DepositType as s, type DurationUnit as t, DURATION_UNIT as u, type AttributeType as v, type AttributeAppliesTo as w, type AttributeVisibility as x, type MeasurementValue as y, type AttributeValidationRules as z };
1610
+ export { type InputFieldValidation as $, type ApiError as A, type CustomAttributeDefinition as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type CustomAttributeValue as F, type PropertySource as G, type ProductProperty as H, type InventoryType as I, type PropertyFacet as J, type FacetValue as K, type KnowledgeArticle as L, type Money as M, type Product as N, type InputFieldType as O, type PaginationParams as P, INPUT_FIELD_TYPE as Q, RENDER_HINT as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type AddressValue as U, type VariantStrategy as V, type PhoneValue as W, type DateRangeValue as X, type LocationValue as Y, ZERO as Z, type SignatureValue as _, type CurrencyCode as a, type CartChannel as a$, type ProductInputField as a0, type CustomerInputValue as a1, type QuantityPricingTier as a2, type RelatedProductView as a3, type ProductWithDetails as a4, type VariantView as a5, type ProductVariant as a6, type VariantDisplayAttribute as a7, type VariantAxis as a8, type VariantAxisWithValues as a9, type GroupPricingBehavior as aA, type ComponentSourceType as aB, type Composite as aC, type CompositeWithDetails as aD, type ComponentGroup as aE, type ComponentGroupWithComponents as aF, type CompositeGroupView as aG, type CompositeComponentView as aH, type CompositeComponent as aI, type ComponentSelectionInput as aJ, type CompositePriceResult as aK, type ComponentPriceBreakdown as aL, type PriceEntryType as aM, type Price as aN, type LocationProductPrice as aO, type ProductAvailability as aP, type ProductTimeProfile as aQ, type ProductTaxonomy as aR, type TaxonomyWithChildren as aS, type ProductAvailabilityNow as aT, type DealBenefitType as aU, type Deal as aV, type ProductDealInfo as aW, type DiscountValidation as aX, type Tag as aY, type TagsResponse as aZ, type CartStatus as a_, type VariantAxisValue as aa, type ProductVariantValue as ab, type VariantLocationAvailability as ac, type VariantAxisSelection as ad, type AddOn as ae, type AddOnWithOptions as af, type AddOnOption as ag, type AddOnOptionPrice as ah, type ProductAddOn as ai, type Category as aj, type CategorySummary as ak, type Collection as al, type CollectionSummary as am, type CollectionProduct as an, type BundlePriceType as ao, type Bundle as ap, type BundleSummary as aq, type BundleProduct as ar, type BundleWithDetails as as, type BundleComponentData as at, type BundleComponentInfo as au, type BundleComponentView as av, type BundleComponentVariantView as aw, type VariantAxisView as ax, type VariantAxisValueView as ay, type CompositePricingMode as az, moneyFromNumber as b, type SubscriptionItem as b$, type PriceSource as b0, type AdjustmentType as b1, type PriceAdjustment as b2, type TaxPathComponent as b3, type PricePathTaxInfo as b4, type PriceDecisionPath as b5, type BenefitType as b6, type AppliedDiscount as b7, type DiscountBreakdown as b8, type DiscountDetails as b9, type CartItemDetails as bA, type UICart as bB, type UICartResponse as bC, type AddToCartInput as bD, type UpdateCartItemInput as bE, type CartSummary as bF, type PaymentStatus as bG, type PaymentProvider as bH, type PaymentMethodType as bI, type AddressAuthorizationData as bJ, type AuthorizationType as bK, type PaymentProcessingState as bL, type PaymentMethod as bM, type Payment as bN, type InitializePaymentResult as bO, type PaymentResponse as bP, type PaymentStatusResponse as bQ, type PaymentErrorDetails as bR, type SubmitAuthorizationInput as bS, type BillingFrequency as bT, type BillingPlanType as bU, type BillingMarkupType as bV, type ProductBillingPlan as bW, type EligiblePlansQuery as bX, type FormattedPlanOption as bY, type SubscriptionStatus as bZ, type Subscription as b_, type SelectedAddOnOption as ba, type AddOnDetails as bb, type CartAddOn as bc, type VariantDetails as bd, type BundleSelectionInput as be, type ComponentSchedulingData as bf, type BundleStoredSelection as bg, type BundleSelectionData as bh, type CompositeStoredSelection as bi, type CompositePriceBreakdown as bj, type CompositeSelectionData as bk, type LineConfiguration as bl, type Cart as bm, type CartItem as bn, type CartTotals as bo, type DisplayCart as bp, type DisplayCartItem as bq, type DisplayAddOn as br, type DisplayAddOnOption as bs, type UICartBusiness as bt, type UICartLocation as bu, type UICartCustomer as bv, type UICartPricing as bw, type AddOnOptionDetails as bx, type AddOnGroupDetails as by, type VariantDetailsDTO as bz, currencyCode as c, type SubscriptionInvoice as c0, type SubscriptionWithDetails as c1, 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, PRODUCT_TYPE as p, type ProductRenderHint as q, type DigitalProductType as r, type DepositType as s, type DurationUnit as t, DURATION_UNIT as u, type AttributeType as v, type AttributeAppliesTo as w, type AttributeVisibility as x, type MeasurementValue as y, type AttributeValidationRules as z };
@@ -1,4 +1,4 @@
1
- import { C as ChosenPrice, a as CurrencyCode } from './payment-k8feV7r8.js';
1
+ import { C as ChosenPrice, a as CurrencyCode } from './payment-BeLHpQMo.js';
2
2
 
3
3
  interface ProductWithPrice {
4
4
  price_info?: ChosenPrice;
@@ -1,4 +1,4 @@
1
- import { C as ChosenPrice, a as CurrencyCode } from './payment-k8feV7r8.mjs';
1
+ import { C as ChosenPrice, a as CurrencyCode } from './payment-BeLHpQMo.mjs';
2
2
 
3
3
  interface ProductWithPrice {
4
4
  price_info?: ChosenPrice;