@cimplify/sdk 0.19.0 → 0.20.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/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/advanced.js +21 -21
- package/dist/advanced.mjs +2 -2
- package/dist/{chunk-RYQ5IPWX.js → chunk-2BSYTQAY.js} +18 -28
- package/dist/{chunk-AFEE43MQ.mjs → chunk-676BJ3EU.mjs} +43 -8
- package/dist/{chunk-7ACYNCNM.mjs → chunk-7KH2XJIW.mjs} +55 -12
- package/dist/{chunk-B2RTVYJR.js → chunk-AVVLN353.js} +76 -40
- package/dist/{chunk-FTL2SXCG.mjs → chunk-HG7GG3TT.mjs} +18 -28
- package/dist/{chunk-6SRY4DPY.js → chunk-KSN3RJFL.js} +74 -30
- package/dist/{client-FNZzXO_v.d.ts → client-D4E9aJy7.d.mts} +139 -7
- package/dist/{client-B3payjUV.d.mts → client-VyO6Bqz2.d.ts} +139 -7
- package/dist/index.d.mts +38 -5
- package/dist/index.d.ts +38 -5
- package/dist/index.js +101 -97
- package/dist/index.mjs +3 -3
- package/dist/{payment-CO2tRThu.d.mts → payment-CKqMU4xT.d.mts} +1051 -943
- package/dist/{payment-CO2tRThu.d.ts → payment-CKqMU4xT.d.ts} +1051 -943
- package/dist/{price-Bp6JlVzW.d.ts → price-BqV_DjjQ.d.mts} +1 -1
- package/dist/{price-Dg7MJEsL.d.mts → price-e4beObLZ.d.ts} +1 -1
- package/dist/react.d.mts +463 -11
- package/dist/react.d.ts +463 -11
- package/dist/react.js +1630 -113
- package/dist/react.mjs +1566 -65
- package/dist/styles.css +1 -1
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +28 -28
- package/dist/utils.mjs +1 -1
- package/package.json +2 -2
- package/registry/availability-badge.json +1 -1
- package/registry/booking-page.json +1 -1
- package/registry/bundle-selector.json +1 -1
- package/registry/cart-summary.json +1 -1
- package/registry/composite-selector.json +1 -1
- package/registry/order-summary.json +1 -1
- package/registry/product-customizer.json +1 -1
- package/registry/search-input.json +1 -1
- package/registry/service-card.json +1 -1
- package/registry/variant-selector.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,45 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { am as AUTHORIZATION_TYPE, ar as AUTH_MUTATION, ab as AbortablePromise, w as ActivityRecommendation, x as ActivityRecommendationsResponse, r as ActivityService, v as ActivityStateResponse, cs as AddressData, cV as AddressInfo, a$ as AmountToPay, cD as AuthResponse, A as AuthService, n as AuthStatus, cX as AuthenticatedCustomer, cZ as AuthenticatedData, ci as AvailabilityResult, bZ as AvailableSlot, c0 as Booking, b$ as BookingStatus, c1 as BookingWithDetails, bl as BufferTimes, bG as Business, bU as BusinessHours, bF as BusinessPreferences, B as BusinessService, bT as BusinessSettings, bE as BusinessType, bR as BusinessWithLocations, af as CHECKOUT_MODE, as as CHECKOUT_MUTATION, ai as CHECKOUT_STEP, ao as CONTACT_TYPE, c8 as CancelBookingInput, c9 as CancelBookingResult, bf as CancelOrderInput, bn as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aO as CatalogueResult, aP as CatalogueSnapshot, bV as CategoryInfo, c5 as CheckSlotAvailabilityInput, c6 as CheckSlotAvailabilityResult, cG as CheckoutAddressInfo, d1 as CheckoutCartData, d0 as CheckoutCartItem, cI as CheckoutCustomerInfo, a3 as CheckoutFormData, bd as CheckoutInput, $ as CheckoutMode, k as CheckoutOperations, a0 as CheckoutOrderType, a1 as CheckoutPaymentMethod, a4 as CheckoutResult, k as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, a2 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, K as CimplifyElement, J as CimplifyElements, ae as ContactType, co as CreateAddressInput, cq as CreateMobileMoneyInput, cj as Customer, ck as CustomerAddress, c3 as CustomerBooking, c2 as CustomerBookingServiceItem, cm as CustomerLinkPreferences, cl as CustomerMobileMoney, bk as CustomerServicePreferences, aw as DEFAULT_COUNTRY, av as DEFAULT_CURRENCY, an as DEVICE_TYPE, b_ as DayAvailability, bz as DeliveryFeeDetails, z as DeliveryFeeResponse, y as DeliveryService, bu as DepositResult, ad as DeviceType, D as DismissMessageResponse, W as ELEMENT_TYPES, V as EVENT_TYPES, cU as ElementAppearance, d4 as ElementEventHandler, _ as ElementEventType, Y as ElementOptions, Z as ElementType, c_ as ElementsCheckoutData, c$ as ElementsCheckoutResult, cY as ElementsCustomerInfo, X as ElementsOptions, cu as EnrollAndLinkOrderInput, cx as EnrollAndLinkOrderResult, cr as EnrollmentData, az as Err, a_ as FeeBearerType, F as FetchQuoteInput, aY as FulfillmentLink, aX as FulfillmentStatus, aW as FulfillmentType, cK as FxQuote, cJ as FxQuoteRequest, cL as FxRateResponse, q as FxService, c4 as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, d3 as IframeToParentMessage, I as InventoryService, aq as LINK_MUTATION, ap as LINK_QUERY, b0 as LineItem, aT as LineType, cn as LinkData, cw as LinkEnrollResult, L as LinkService, cy as LinkSession, cv as LinkStatusResult, E as LiteBootstrap, p as LiteService, bJ as Location, bx as LocationAppointment, ch as LocationStock, bH as LocationTaxBehavior, bI as LocationTaxOverrides, bM as LocationTimeProfile, bS as LocationWithDetails, N as MESSAGE_TYPES, al as MOBILE_MONEY_PROVIDER, ct as MobileMoneyData, cH as MobileMoneyDetails, ac as MobileMoneyProvider, a5 as NextAction, au as ORDER_MUTATION, ag as ORDER_TYPE, cS as ObservabilityHooks, ay as Ok, b1 as Order, aS as OrderChannel, bc as OrderFilter, aZ as OrderFulfillmentSummary, b6 as OrderGroup, ba as OrderGroupDetails, b7 as OrderGroupPayment, b4 as OrderGroupPaymentState, b5 as OrderGroupPaymentStatus, b9 as OrderGroupPaymentSummary, b3 as OrderGroupStatus, b2 as OrderHistory, aU as OrderLineState, aV as OrderLineStatus, bb as OrderPaymentEvent, O as OrderQueries, b8 as OrderSplitDetail, aQ as OrderStatus, cT as OrderType, o as OtpResult, ah as PAYMENT_METHOD, at as PAYMENT_MUTATION, aj as PAYMENT_STATE, ak as PICKUP_TIME_TYPE, d2 as ParentToIframeMessage, cW as PaymentMethodInfo, aR as PaymentState, cF as PickupTime, cE as PickupTimeType, P as PriceQuote, bp as PricingOverrides, a8 as ProcessAndResolveOptions, a6 as ProcessCheckoutOptions, a7 as ProcessCheckoutResult, cf as ProductStock, by as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bg as RefundOrderInput, bC as RelatedCandidate, bB as RelatedProduct, bD as RelatedProductsEnrichment, bA as RelationType, bj as ReminderMethod, bm as ReminderSettings, cM as RequestContext, cP as RequestErrorEvent, cB as RequestOtpInput, h as RequestSource, cN as RequestStartEvent, cO as RequestSuccessEvent, c7 as RescheduleBookingInput, ca as RescheduleBookingResult, bs as ResourceAssignment, ax as Result, cQ as RetryEvent, cA as RevokeAllSessionsResult, cz as RevokeSessionResult, bO as Room, bq as SchedulingMetadata, bt as SchedulingResult, S as SchedulingService, bW as Service, cb as ServiceAvailabilityParams, cc as ServiceAvailabilityResult, bP as ServiceCharge, bo as ServiceNotes, bv as ServiceScheduleRequest, bh as ServiceStatus, u as SessionActivityData, cR as SessionChangeEvent, t as SessionMessage, bX as Staff, br as StaffAssignment, bi as StaffRole, bw as StaffScheduleItem, ce as StockLevel, cd as StockStatus, bQ as StorefrontBootstrap, bN as Table, H as TableInfo, bK as TimeRange, bL as TimeRanges, bY as TimeSlot, s as TrackCategoryViewOptions, T as TrackProductViewOptions, cp as UpdateAddressInput, be as UpdateOrderStatusInput, U as UpdateProfileInput, cg as VariantStock, cC as VerifyOtpInput, aM as combine, aN as combineObject, c as createCimplifyClient, M as createElements, aB as err, aG as flatMap, aK as fromPromise, l as generateIdempotencyKey, aH as getOrElse, aD as isErr, aC as isOk, aF as mapError, aE as mapResult, aA as ok, aJ as toNullable, aL as tryCatch, aI as unwrap } from './client-D4E9aJy7.mjs';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.mjs';
|
|
3
|
-
import { A as ApiError } from './payment-
|
|
4
|
-
export {
|
|
3
|
+
import { A as ApiError } from './payment-CKqMU4xT.mjs';
|
|
4
|
+
export { a0 as AddOn, aZ as AddOnDetails, bk as AddOnGroupDetails, a2 as AddOnOption, bj as AddOnOptionDetails, a3 as AddOnOptionPrice, a1 as AddOnWithOptions, bp as AddToCartInput, bv as AddressAuthorizationData, aP as AdjustmentType, aV as AppliedDiscount, u as AttributeAppliesTo, t as AttributeType, x as AttributeValidationRules, v as AttributeVisibility, bw as AuthorizationType, aU as BenefitType, bF as BillingFrequency, bH as BillingMarkupType, bG as BillingPlanType, ab as Bundle, af as BundleComponentData, ag as BundleComponentInfo, ai as BundleComponentVariantView, ah as BundleComponentView, aa as BundlePriceType, ad as BundleProduct, b3 as BundleSelectionData, b0 as BundleSelectionInput, b2 as BundleStoredSelection, ac as BundleSummary, ae as BundleWithDetails, b8 as Cart, a_ as CartAddOn, aN as CartChannel, b9 as CartItem, bm as CartItemDetails, aM as CartStatus, br as CartSummary, ba as CartTotals, a5 as Category, a6 as CategorySummary, C as ChosenPrice, h as CimplifyError, a7 as Collection, a9 as CollectionProduct, a8 as CollectionSummary, aq as ComponentGroup, ar as ComponentGroupWithComponents, ax as ComponentPriceBreakdown, b1 as ComponentSchedulingData, av as ComponentSelectionInput, an as ComponentSourceType, ao as Composite, au as CompositeComponent, at as CompositeComponentView, as as CompositeGroupView, b5 as CompositePriceBreakdown, aw as CompositePriceResult, al as CompositePricingMode, b6 as CompositeSelectionData, av as CompositeSelectionInput, b4 as CompositeStoredSelection, ap as CompositeWithDetails, a as CurrencyCode, y as CustomAttributeDefinition, z as CustomAttributeValue, aH as Deal, aG as DealBenefitType, r as DepositType, q as DigitalProductType, aW as DiscountBreakdown, aX as DiscountDetails, aJ as DiscountValidation, bd as DisplayAddOn, be as DisplayAddOnOption, bb as DisplayCart, bc as DisplayCartItem, D as DisplayMode, s as DurationUnit, g as ERROR_HINTS, bJ as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, H as FacetValue, bK as FormattedPlanOption, am as GroupPricingBehavior, bA as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b7 as LineConfiguration, aA as LocationProductPrice, w as MeasurementValue, M as Money, d as Pagination, P as PaginationParams, bz as Payment, bD as PaymentErrorDetails, by as PaymentMethod, bu as PaymentMethodType, bx as PaymentProcessingState, bt as PaymentProvider, bB as PaymentResponse, bs as PaymentStatus, bC as PaymentStatusResponse, az as Price, aQ as PriceAdjustment, aT as PriceDecisionPath, ay as PriceEntryType, aS as PricePathTaxInfo, aO as PriceSource, J as Product, a4 as ProductAddOn, aB as ProductAvailability, aF as ProductAvailabilityNow, bI as ProductBillingPlan, aI as ProductDealInfo, F as ProductProperty, p as ProductRenderHint, aD as ProductTaxonomy, aC as ProductTimeProfile, o as ProductType, O as ProductVariant, Y as ProductVariantValue, L as ProductWithDetails, G as PropertyFacet, B as PropertySource, R as RelatedProductView, S as SalesChannel, aY as SelectedAddOnOption, bE as SubmitAuthorizationInput, aK as Tag, aL as TagsResponse, aR as TaxPathComponent, T as TaxonomyAttributeTemplate, aE as TaxonomyWithChildren, bn as UICart, bf as UICartBusiness, bh as UICartCustomer, bg as UICartLocation, bi as UICartPricing, bo as UICartResponse, bq as UpdateCartItemInput, U as VariantAxis, $ as VariantAxisSelection, X as VariantAxisValue, ak as VariantAxisValueView, aj as VariantAxisView, W as VariantAxisWithValues, a$ as VariantDetails, bl as VariantDetailsDTO, Q as VariantDisplayAttribute, _ as VariantLocationAvailability, V as VariantStrategy, N 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-CKqMU4xT.mjs';
|
|
5
5
|
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, isValidPhoneForContext, normalizePaymentResponse, normalizePhoneToE164, normalizeStatusResponse, parsePrice, resolvePhoneCountryCode } from './utils.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-BxbWrwqp.mjs';
|
|
7
|
-
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
7
|
+
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-BqV_DjjQ.mjs';
|
|
8
8
|
import 'libphonenumber-js';
|
|
9
9
|
|
|
10
|
+
interface CustomerGroup {
|
|
11
|
+
id: string;
|
|
12
|
+
business_id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
is_default: boolean;
|
|
17
|
+
priority: number;
|
|
18
|
+
}
|
|
19
|
+
interface PriceListItem {
|
|
20
|
+
price_list_id: string;
|
|
21
|
+
product_id: string;
|
|
22
|
+
variant_id?: string;
|
|
23
|
+
price: string;
|
|
24
|
+
min_quantity: number;
|
|
25
|
+
max_quantity?: number;
|
|
26
|
+
}
|
|
27
|
+
interface QuantityBreak {
|
|
28
|
+
price: string;
|
|
29
|
+
min_quantity: number;
|
|
30
|
+
max_quantity?: number;
|
|
31
|
+
}
|
|
32
|
+
interface ResolvedQuantityBreak {
|
|
33
|
+
price: number;
|
|
34
|
+
min_quantity: number;
|
|
35
|
+
max_quantity?: number;
|
|
36
|
+
}
|
|
37
|
+
interface CustomerPricingInfo {
|
|
38
|
+
group_name: string;
|
|
39
|
+
group_id: string;
|
|
40
|
+
items: QuantityBreak[];
|
|
41
|
+
}
|
|
42
|
+
|
|
10
43
|
interface FrontendContext {
|
|
11
44
|
location_id?: string;
|
|
12
45
|
}
|
|
@@ -32,4 +65,4 @@ interface ApiResponse<T> {
|
|
|
32
65
|
metadata?: ResponseMetadata;
|
|
33
66
|
}
|
|
34
67
|
|
|
35
|
-
export { ApiError, type ApiResponse, type FrontendContext, type MutationRequest, type QueryRequest, type ResponseMetadata };
|
|
68
|
+
export { ApiError, type ApiResponse, type CustomerGroup, type CustomerPricingInfo, type FrontendContext, type MutationRequest, type PriceListItem, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,45 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { am as AUTHORIZATION_TYPE, ar as AUTH_MUTATION, ab as AbortablePromise, w as ActivityRecommendation, x as ActivityRecommendationsResponse, r as ActivityService, v as ActivityStateResponse, cs as AddressData, cV as AddressInfo, a$ as AmountToPay, cD as AuthResponse, A as AuthService, n as AuthStatus, cX as AuthenticatedCustomer, cZ as AuthenticatedData, ci as AvailabilityResult, bZ as AvailableSlot, c0 as Booking, b$ as BookingStatus, c1 as BookingWithDetails, bl as BufferTimes, bG as Business, bU as BusinessHours, bF as BusinessPreferences, B as BusinessService, bT as BusinessSettings, bE as BusinessType, bR as BusinessWithLocations, af as CHECKOUT_MODE, as as CHECKOUT_MUTATION, ai as CHECKOUT_STEP, ao as CONTACT_TYPE, c8 as CancelBookingInput, c9 as CancelBookingResult, bf as CancelOrderInput, bn as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aO as CatalogueResult, aP as CatalogueSnapshot, bV as CategoryInfo, c5 as CheckSlotAvailabilityInput, c6 as CheckSlotAvailabilityResult, cG as CheckoutAddressInfo, d1 as CheckoutCartData, d0 as CheckoutCartItem, cI as CheckoutCustomerInfo, a3 as CheckoutFormData, bd as CheckoutInput, $ as CheckoutMode, k as CheckoutOperations, a0 as CheckoutOrderType, a1 as CheckoutPaymentMethod, a4 as CheckoutResult, k as CheckoutService, a9 as CheckoutStatus, aa as CheckoutStatusContext, a2 as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, K as CimplifyElement, J as CimplifyElements, ae as ContactType, co as CreateAddressInput, cq as CreateMobileMoneyInput, cj as Customer, ck as CustomerAddress, c3 as CustomerBooking, c2 as CustomerBookingServiceItem, cm as CustomerLinkPreferences, cl as CustomerMobileMoney, bk as CustomerServicePreferences, aw as DEFAULT_COUNTRY, av as DEFAULT_CURRENCY, an as DEVICE_TYPE, b_ as DayAvailability, bz as DeliveryFeeDetails, z as DeliveryFeeResponse, y as DeliveryService, bu as DepositResult, ad as DeviceType, D as DismissMessageResponse, W as ELEMENT_TYPES, V as EVENT_TYPES, cU as ElementAppearance, d4 as ElementEventHandler, _ as ElementEventType, Y as ElementOptions, Z as ElementType, c_ as ElementsCheckoutData, c$ as ElementsCheckoutResult, cY as ElementsCustomerInfo, X as ElementsOptions, cu as EnrollAndLinkOrderInput, cx as EnrollAndLinkOrderResult, cr as EnrollmentData, az as Err, a_ as FeeBearerType, F as FetchQuoteInput, aY as FulfillmentLink, aX as FulfillmentStatus, aW as FulfillmentType, cK as FxQuote, cJ as FxQuoteRequest, cL as FxRateResponse, q as FxService, c4 as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, d3 as IframeToParentMessage, I as InventoryService, aq as LINK_MUTATION, ap as LINK_QUERY, b0 as LineItem, aT as LineType, cn as LinkData, cw as LinkEnrollResult, L as LinkService, cy as LinkSession, cv as LinkStatusResult, E as LiteBootstrap, p as LiteService, bJ as Location, bx as LocationAppointment, ch as LocationStock, bH as LocationTaxBehavior, bI as LocationTaxOverrides, bM as LocationTimeProfile, bS as LocationWithDetails, N as MESSAGE_TYPES, al as MOBILE_MONEY_PROVIDER, ct as MobileMoneyData, cH as MobileMoneyDetails, ac as MobileMoneyProvider, a5 as NextAction, au as ORDER_MUTATION, ag as ORDER_TYPE, cS as ObservabilityHooks, ay as Ok, b1 as Order, aS as OrderChannel, bc as OrderFilter, aZ as OrderFulfillmentSummary, b6 as OrderGroup, ba as OrderGroupDetails, b7 as OrderGroupPayment, b4 as OrderGroupPaymentState, b5 as OrderGroupPaymentStatus, b9 as OrderGroupPaymentSummary, b3 as OrderGroupStatus, b2 as OrderHistory, aU as OrderLineState, aV as OrderLineStatus, bb as OrderPaymentEvent, O as OrderQueries, b8 as OrderSplitDetail, aQ as OrderStatus, cT as OrderType, o as OtpResult, ah as PAYMENT_METHOD, at as PAYMENT_MUTATION, aj as PAYMENT_STATE, ak as PICKUP_TIME_TYPE, d2 as ParentToIframeMessage, cW as PaymentMethodInfo, aR as PaymentState, cF as PickupTime, cE as PickupTimeType, P as PriceQuote, bp as PricingOverrides, a8 as ProcessAndResolveOptions, a6 as ProcessCheckoutOptions, a7 as ProcessCheckoutResult, cf as ProductStock, by as ProviderResolutionSource, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, bg as RefundOrderInput, bC as RelatedCandidate, bB as RelatedProduct, bD as RelatedProductsEnrichment, bA as RelationType, bj as ReminderMethod, bm as ReminderSettings, cM as RequestContext, cP as RequestErrorEvent, cB as RequestOtpInput, h as RequestSource, cN as RequestStartEvent, cO as RequestSuccessEvent, c7 as RescheduleBookingInput, ca as RescheduleBookingResult, bs as ResourceAssignment, ax as Result, cQ as RetryEvent, cA as RevokeAllSessionsResult, cz as RevokeSessionResult, bO as Room, bq as SchedulingMetadata, bt as SchedulingResult, S as SchedulingService, bW as Service, cb as ServiceAvailabilityParams, cc as ServiceAvailabilityResult, bP as ServiceCharge, bo as ServiceNotes, bv as ServiceScheduleRequest, bh as ServiceStatus, u as SessionActivityData, cR as SessionChangeEvent, t as SessionMessage, bX as Staff, br as StaffAssignment, bi as StaffRole, bw as StaffScheduleItem, ce as StockLevel, cd as StockStatus, bQ as StorefrontBootstrap, bN as Table, H as TableInfo, bK as TimeRange, bL as TimeRanges, bY as TimeSlot, s as TrackCategoryViewOptions, T as TrackProductViewOptions, cp as UpdateAddressInput, be as UpdateOrderStatusInput, U as UpdateProfileInput, cg as VariantStock, cC as VerifyOtpInput, aM as combine, aN as combineObject, c as createCimplifyClient, M as createElements, aB as err, aG as flatMap, aK as fromPromise, l as generateIdempotencyKey, aH as getOrElse, aD as isErr, aC as isOk, aF as mapError, aE as mapResult, aA as ok, aJ as toNullable, aL as tryCatch, aI as unwrap } from './client-VyO6Bqz2.js';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.js';
|
|
3
|
-
import { A as ApiError } from './payment-
|
|
4
|
-
export {
|
|
3
|
+
import { A as ApiError } from './payment-CKqMU4xT.js';
|
|
4
|
+
export { a0 as AddOn, aZ as AddOnDetails, bk as AddOnGroupDetails, a2 as AddOnOption, bj as AddOnOptionDetails, a3 as AddOnOptionPrice, a1 as AddOnWithOptions, bp as AddToCartInput, bv as AddressAuthorizationData, aP as AdjustmentType, aV as AppliedDiscount, u as AttributeAppliesTo, t as AttributeType, x as AttributeValidationRules, v as AttributeVisibility, bw as AuthorizationType, aU as BenefitType, bF as BillingFrequency, bH as BillingMarkupType, bG as BillingPlanType, ab as Bundle, af as BundleComponentData, ag as BundleComponentInfo, ai as BundleComponentVariantView, ah as BundleComponentView, aa as BundlePriceType, ad as BundleProduct, b3 as BundleSelectionData, b0 as BundleSelectionInput, b2 as BundleStoredSelection, ac as BundleSummary, ae as BundleWithDetails, b8 as Cart, a_ as CartAddOn, aN as CartChannel, b9 as CartItem, bm as CartItemDetails, aM as CartStatus, br as CartSummary, ba as CartTotals, a5 as Category, a6 as CategorySummary, C as ChosenPrice, h as CimplifyError, a7 as Collection, a9 as CollectionProduct, a8 as CollectionSummary, aq as ComponentGroup, ar as ComponentGroupWithComponents, ax as ComponentPriceBreakdown, b1 as ComponentSchedulingData, av as ComponentSelectionInput, an as ComponentSourceType, ao as Composite, au as CompositeComponent, at as CompositeComponentView, as as CompositeGroupView, b5 as CompositePriceBreakdown, aw as CompositePriceResult, al as CompositePricingMode, b6 as CompositeSelectionData, av as CompositeSelectionInput, b4 as CompositeStoredSelection, ap as CompositeWithDetails, a as CurrencyCode, y as CustomAttributeDefinition, z as CustomAttributeValue, aH as Deal, aG as DealBenefitType, r as DepositType, q as DigitalProductType, aW as DiscountBreakdown, aX as DiscountDetails, aJ as DiscountValidation, bd as DisplayAddOn, be as DisplayAddOnOption, bb as DisplayCart, bc as DisplayCartItem, D as DisplayMode, s as DurationUnit, g as ERROR_HINTS, bJ as EligiblePlansQuery, E as ErrorCode, e as ErrorCodeType, f as ErrorHint, H as FacetValue, bK as FormattedPlanOption, am as GroupPricingBehavior, bA as InitializePaymentResult, I as InventoryType, K as KnowledgeArticle, b7 as LineConfiguration, aA as LocationProductPrice, w as MeasurementValue, M as Money, d as Pagination, P as PaginationParams, bz as Payment, bD as PaymentErrorDetails, by as PaymentMethod, bu as PaymentMethodType, bx as PaymentProcessingState, bt as PaymentProvider, bB as PaymentResponse, bs as PaymentStatus, bC as PaymentStatusResponse, az as Price, aQ as PriceAdjustment, aT as PriceDecisionPath, ay as PriceEntryType, aS as PricePathTaxInfo, aO as PriceSource, J as Product, a4 as ProductAddOn, aB as ProductAvailability, aF as ProductAvailabilityNow, bI as ProductBillingPlan, aI as ProductDealInfo, F as ProductProperty, p as ProductRenderHint, aD as ProductTaxonomy, aC as ProductTimeProfile, o as ProductType, O as ProductVariant, Y as ProductVariantValue, L as ProductWithDetails, G as PropertyFacet, B as PropertySource, R as RelatedProductView, S as SalesChannel, aY as SelectedAddOnOption, bE as SubmitAuthorizationInput, aK as Tag, aL as TagsResponse, aR as TaxPathComponent, T as TaxonomyAttributeTemplate, aE as TaxonomyWithChildren, bn as UICart, bf as UICartBusiness, bh as UICartCustomer, bg as UICartLocation, bi as UICartPricing, bo as UICartResponse, bq as UpdateCartItemInput, U as VariantAxis, $ as VariantAxisSelection, X as VariantAxisValue, ak as VariantAxisValueView, aj as VariantAxisView, W as VariantAxisWithValues, a$ as VariantDetails, bl as VariantDetailsDTO, Q as VariantDisplayAttribute, _ as VariantLocationAvailability, V as VariantStrategy, N 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-CKqMU4xT.js';
|
|
5
5
|
export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, isValidPhoneForContext, normalizePaymentResponse, normalizePhoneToE164, normalizeStatusResponse, parsePrice, resolvePhoneCountryCode } from './utils.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-BxbWrwqp.js';
|
|
7
|
-
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
7
|
+
export { a as FormatCompactOptions, F as FormatPriceOptions, P as ProductWithPrice } from './price-e4beObLZ.js';
|
|
8
8
|
import 'libphonenumber-js';
|
|
9
9
|
|
|
10
|
+
interface CustomerGroup {
|
|
11
|
+
id: string;
|
|
12
|
+
business_id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
is_default: boolean;
|
|
17
|
+
priority: number;
|
|
18
|
+
}
|
|
19
|
+
interface PriceListItem {
|
|
20
|
+
price_list_id: string;
|
|
21
|
+
product_id: string;
|
|
22
|
+
variant_id?: string;
|
|
23
|
+
price: string;
|
|
24
|
+
min_quantity: number;
|
|
25
|
+
max_quantity?: number;
|
|
26
|
+
}
|
|
27
|
+
interface QuantityBreak {
|
|
28
|
+
price: string;
|
|
29
|
+
min_quantity: number;
|
|
30
|
+
max_quantity?: number;
|
|
31
|
+
}
|
|
32
|
+
interface ResolvedQuantityBreak {
|
|
33
|
+
price: number;
|
|
34
|
+
min_quantity: number;
|
|
35
|
+
max_quantity?: number;
|
|
36
|
+
}
|
|
37
|
+
interface CustomerPricingInfo {
|
|
38
|
+
group_name: string;
|
|
39
|
+
group_id: string;
|
|
40
|
+
items: QuantityBreak[];
|
|
41
|
+
}
|
|
42
|
+
|
|
10
43
|
interface FrontendContext {
|
|
11
44
|
location_id?: string;
|
|
12
45
|
}
|
|
@@ -32,4 +65,4 @@ interface ApiResponse<T> {
|
|
|
32
65
|
metadata?: ResponseMetadata;
|
|
33
66
|
}
|
|
34
67
|
|
|
35
|
-
export { ApiError, type ApiResponse, type FrontendContext, type MutationRequest, type QueryRequest, type ResponseMetadata };
|
|
68
|
+
export { ApiError, type ApiResponse, type CustomerGroup, type CustomerPricingInfo, type FrontendContext, type MutationRequest, type PriceListItem, type QuantityBreak, type QueryRequest, type ResolvedQuantityBreak, type ResponseMetadata };
|