@cimplify/sdk 0.9.9 → 0.10.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/{ads-MkGm5l1T.d.mts → ads-BxbWrwqp.d.mts} +0 -8
- package/dist/{ads-MkGm5l1T.d.ts → ads-BxbWrwqp.d.ts} +0 -8
- package/dist/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/advanced.js +93 -80
- package/dist/advanced.mjs +93 -80
- package/dist/cli.js +184 -0
- package/dist/{client-CYRL8s1S.d.ts → client-BSrq89H1.d.mts} +42 -374
- package/dist/{client-D4EiM667.d.mts → client-xBhdHLq4.d.ts} +42 -374
- package/dist/index.d.mts +6 -10
- package/dist/index.d.ts +6 -10
- package/dist/index.js +98 -126
- package/dist/index.mjs +98 -126
- package/dist/{payment-D58dS_E9.d.mts → payment-CrNyrc-D.d.mts} +145 -94
- package/dist/{payment-D58dS_E9.d.ts → payment-CrNyrc-D.d.ts} +145 -94
- package/dist/price-C9Z-hr49.d.mts +21 -0
- package/dist/price-RKKoTz-9.d.ts +21 -0
- package/dist/react.d.mts +1285 -35
- package/dist/react.d.ts +1285 -35
- package/dist/react.js +6782 -2781
- package/dist/react.mjs +6736 -2783
- package/dist/utils.d.mts +55 -2
- package/dist/utils.d.ts +55 -2
- package/dist/utils.js +23 -20
- package/dist/utils.mjs +23 -20
- package/package.json +13 -3
- package/registry/add-on-selector.json +15 -0
- package/registry/availability-badge.json +15 -0
- package/registry/booking-card.json +16 -0
- package/registry/booking-list.json +16 -0
- package/registry/booking-page.json +18 -0
- package/registry/bookings-page.json +17 -0
- package/registry/bundle-selector.json +15 -0
- package/registry/cart-page.json +17 -0
- package/registry/cart-summary.json +16 -0
- package/registry/catalogue-page.json +18 -0
- package/registry/category-filter.json +15 -0
- package/registry/category-grid.json +15 -0
- package/registry/checkout-page.json +15 -0
- package/registry/cn.json +13 -0
- package/registry/collection-page.json +16 -0
- package/registry/composite-selector.json +15 -0
- package/registry/date-slot-picker.json +16 -0
- package/registry/deal-banner.json +16 -0
- package/registry/deals-page.json +19 -0
- package/registry/discount-input.json +16 -0
- package/registry/index.json +411 -0
- package/registry/order-detail-page.json +16 -0
- package/registry/order-history-page.json +17 -0
- package/registry/order-history.json +16 -0
- package/registry/order-summary.json +16 -0
- package/registry/price.json +13 -0
- package/registry/product-card.json +17 -0
- package/registry/product-customizer.json +20 -0
- package/registry/product-grid.json +16 -0
- package/registry/product-image-gallery.json +13 -0
- package/registry/product-page.json +19 -0
- package/registry/product-sheet.json +18 -0
- package/registry/quantity-selector.json +13 -0
- package/registry/sale-badge.json +16 -0
- package/registry/search-input.json +15 -0
- package/registry/search-page.json +16 -0
- package/registry/service-card.json +16 -0
- package/registry/service-grid.json +16 -0
- package/registry/slot-picker.json +16 -0
- package/registry/staff-picker.json +15 -0
- package/registry/store-nav.json +15 -0
- package/registry/variant-selector.json +15 -0
- package/dist/index-DN_qtwG0.d.mts +0 -320
- package/dist/index-jUGW3oGR.d.ts +0 -320
package/dist/index.d.mts
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ac as AUTHORIZATION_TYPE, ah as AUTH_MUTATION, a1 as AbortablePromise, ca as AddressData, cD as AddressInfo, aR as AmountToPay, cl as AuthResponse, A as AuthService, n as AuthStatus, cF as AuthenticatedCustomer, cH as AuthenticatedData, c0 as AvailabilityResult, bH as AvailableSlot, bK as Booking, bJ as BookingStatus, bL as BookingWithDetails, b9 as BufferTimes, bo as Business, bC as BusinessHours, bn as BusinessPreferences, B as BusinessService, bB as BusinessSettings, bm as BusinessType, bz as BusinessWithLocations, a5 as CHECKOUT_MODE, ai as CHECKOUT_MUTATION, a8 as CHECKOUT_STEP, ae as CONTACT_TYPE, bS as CancelBookingInput, bT as CancelBookingResult, b3 as CancelOrderInput, bb as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aE as CatalogueResult, aF as CatalogueSnapshot, bD as CategoryInfo, bP as CheckSlotAvailabilityInput, bQ as CheckSlotAvailabilityResult, co as CheckoutAddressInfo, cL as CheckoutCartData, cK as CheckoutCartItem, cq as CheckoutCustomerInfo, V as CheckoutFormData, b1 as CheckoutInput, H as CheckoutMode, k as CheckoutOperations, J as CheckoutOrderType, K as CheckoutPaymentMethod, W as CheckoutResult, k as CheckoutService, $ as CheckoutStatus, a0 as CheckoutStatusContext, N as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, u as CimplifyElement, t as CimplifyElements, a4 as ContactType, c6 as CreateAddressInput, c8 as CreateMobileMoneyInput, c1 as Customer, c2 as CustomerAddress, bN as CustomerBooking, bM as CustomerBookingServiceItem, c4 as CustomerLinkPreferences, c3 as CustomerMobileMoney, b8 as CustomerServicePreferences, am as DEFAULT_COUNTRY, al as DEFAULT_CURRENCY, ad as DEVICE_TYPE, bI as DayAvailability, bi as DepositResult, a3 as DeviceType, w as ELEMENT_TYPES, E as EVENT_TYPES, cC as ElementAppearance, cO as ElementEventHandler, D as ElementEventType, y as ElementOptions, z as ElementType, cI as ElementsCheckoutData, cJ as ElementsCheckoutResult, cG as ElementsCustomerInfo, x as ElementsOptions, cc as EnrollAndLinkOrderInput, cf as EnrollAndLinkOrderResult, c9 as EnrollmentData, ap as Err, aQ as FeeBearerType, F as FetchQuoteInput, aO as FulfillmentLink, aN as FulfillmentStatus, aM as FulfillmentType, cs as FxQuote, cr as FxQuoteRequest, ct as FxRateResponse, r as FxService, bO as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, cN as IframeToParentMessage, I as InventoryService, ag as LINK_MUTATION, af as LINK_QUERY, aS as LineItem, aJ as LineType, c5 as LinkData, ce as LinkEnrollResult, L as LinkService, cg as LinkSession, cd as LinkStatusResult, s as LiteBootstrap, q as LiteService, br as Location, bl as LocationAppointment, b$ as LocationStock, bp as LocationTaxBehavior, bq as LocationTaxOverrides, bu as LocationTimeProfile, bA as LocationWithDetails, M as MESSAGE_TYPES, ab as MOBILE_MONEY_PROVIDER, cb as MobileMoneyData, cp as MobileMoneyDetails, a2 as MobileMoneyProvider, X as NextAction, ak as ORDER_MUTATION, a6 as ORDER_TYPE, cA as ObservabilityHooks, ao as Ok, aT as Order, aI as OrderChannel, b0 as OrderFilter, aP as OrderFulfillmentSummary, aW as OrderGroup, a_ as OrderGroupDetails, aX as OrderGroupPayment, aV as OrderGroupPaymentState, aZ as OrderGroupPaymentSummary, aU as OrderHistory, aK as OrderLineState, aL as OrderLineStatus, a$ as OrderPaymentEvent, O as OrderQueries, aY as OrderSplitDetail, aG as OrderStatus, cB as OrderType, o as OtpResult, a7 as PAYMENT_METHOD, aj as PAYMENT_MUTATION, a9 as PAYMENT_STATE, aa as PICKUP_TIME_TYPE, cM as ParentToIframeMessage, cE as PaymentMethodInfo, aH as PaymentState, cn as PickupTime, cm as PickupTimeType, P as PriceQuote, bd as PricingOverrides, _ as ProcessAndResolveOptions, Y as ProcessCheckoutOptions, Z as ProcessCheckoutResult, bZ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, b4 as RefundOrderInput, b7 as ReminderMethod, ba as ReminderSettings, cu as RequestContext, cx as RequestErrorEvent, cj as RequestOtpInput, h as RequestSource, cv as RequestStartEvent, cw as RequestSuccessEvent, bR as RescheduleBookingInput, bU as RescheduleBookingResult, bg as ResourceAssignment, an as Result, cy as RetryEvent, ci as RevokeAllSessionsResult, ch as RevokeSessionResult, bw as Room, be as SchedulingMetadata, bh as SchedulingResult, p as SchedulingService, S as SearchOptions, bE as Service, bV as ServiceAvailabilityParams, bW as ServiceAvailabilityResult, bx as ServiceCharge, bc as ServiceNotes, bj as ServiceScheduleRequest, b5 as ServiceStatus, cz as SessionChangeEvent, bF as Staff, bf as StaffAssignment, b6 as StaffRole, bk as StaffScheduleItem, bY as StockLevel, bX as StockStatus, by as StorefrontBootstrap, bv as Table, T as TableInfo, bs as TimeRange, bt as TimeRanges, bG as TimeSlot, c7 as UpdateAddressInput, b2 as UpdateOrderStatusInput, U as UpdateProfileInput, b_ as VariantStock, ck as VerifyOtpInput, aC as combine, aD as combineObject, c as createCimplifyClient, v as createElements, ar as err, aw as flatMap, aA as fromPromise, l as generateIdempotencyKey, ax as getOrElse, at as isErr, as as isOk, av as mapError, au as mapResult, aq as ok, az as toNullable, aB as tryCatch, ay as unwrap } from './client-BSrq89H1.mjs';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.mjs';
|
|
3
|
-
import { A as ApiError } from './payment-
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
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-
|
|
3
|
+
import { A as ApiError } from './payment-CrNyrc-D.mjs';
|
|
4
|
+
export { F as AddOn, aJ as AddOnDetails, b3 as AddOnGroupDetails, H as AddOnOption, b2 as AddOnOptionDetails, J as AddOnOptionPrice, G as AddOnWithOptions, b8 as AddToCartInput, be as AddressAuthorizationData, ay as AdjustmentType, aF as AppliedDiscount, bf as AuthorizationType, aE as BenefitType, U as Bundle, _ as BundleComponentData, $ as BundleComponentInfo, a1 as BundleComponentVariantView, a0 as BundleComponentView, T as BundlePriceType, X as BundleProduct, aO as BundleSelectionData, aM as BundleSelectionInput, aN as BundleStoredSelection, W as BundleSummary, Y as BundleWithDetails, aT as Cart, aK as CartAddOn, aw as CartChannel, aU as CartItem, b5 as CartItemDetails, av as CartStatus, ba as CartSummary, aV as CartTotals, L as Category, N as CategorySummary, aD as ChosenPrice, g as CimplifyError, O as Collection, R as CollectionProduct, Q as CollectionSummary, a9 as ComponentGroup, aa as ComponentGroupWithComponents, ag as ComponentPriceBreakdown, ae as ComponentSelectionInput, a6 as ComponentSourceType, a7 as Composite, ad as CompositeComponent, ac as CompositeComponentView, ab as CompositeGroupView, aQ as CompositePriceBreakdown, af as CompositePriceResult, a4 as CompositePricingMode, aR as CompositeSelectionData, ae as CompositeSelectionInput, aP as CompositeStoredSelection, a8 as CompositeWithDetails, C as CurrencyCode, aq as Deal, ap as DealBenefitType, q as DepositType, p as DigitalProductType, aG as DiscountBreakdown, aH as DiscountDetails, as as DiscountValidation, aY as DisplayAddOn, aZ as DisplayAddOnOption, aW as DisplayCart, aX as DisplayCartItem, D as DisplayMode, f as ERROR_HINTS, E as ErrorCode, d as ErrorCodeType, e as ErrorHint, a5 as GroupPricingBehavior, bj as InitializePaymentResult, I as InventoryType, aS as LineConfiguration, aj as LocationProductPrice, M as Money, b as Pagination, P as PaginationParams, bi as Payment, bm as PaymentErrorDetails, bh as PaymentMethod, bd as PaymentMethodType, bg as PaymentProcessingState, bc as PaymentProvider, bk as PaymentResponse, bb as PaymentStatus, bl as PaymentStatusResponse, ai as Price, az as PriceAdjustment, aC as PriceDecisionPath, ah as PriceEntryType, aB as PricePathTaxInfo, ax as PriceSource, r as Product, K as ProductAddOn, ak as ProductAvailability, ao as ProductAvailabilityNow, ar as ProductDealInfo, o as ProductRenderHint, am as ProductTaxonomy, al as ProductTimeProfile, n as ProductType, t as ProductVariant, y as ProductVariantValue, s as ProductWithDetails, S as SalesChannel, aI as SelectedAddOnOption, bn as SubmitAuthorizationInput, at as Tag, au as TagsResponse, aA as TaxPathComponent, an as TaxonomyWithChildren, b6 as UICart, a_ as UICartBusiness, b0 as UICartCustomer, a$ as UICartLocation, b1 as UICartPricing, b7 as UICartResponse, b9 as UpdateCartItemInput, v as VariantAxis, B as VariantAxisSelection, x as VariantAxisValue, a3 as VariantAxisValueView, a2 as VariantAxisView, w as VariantAxisWithValues, aL as VariantDetails, b4 as VariantDetailsDTO, u as VariantDisplayAttribute, z as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, k as enrichError, j as getErrorHint, h as isCimplifyError, l as isRetryableError, i as isSupportedCurrency, m as money, a as moneyFromNumber } from './payment-CrNyrc-D.mjs';
|
|
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, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './utils.mjs';
|
|
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-C9Z-hr49.mjs';
|
|
7
8
|
|
|
8
|
-
/** Context sent with every request to scope operations to a specific location/branch */
|
|
9
9
|
interface FrontendContext {
|
|
10
10
|
location_id?: string;
|
|
11
11
|
}
|
|
12
|
-
/** Request body for POST /api/q */
|
|
13
12
|
interface QueryRequest {
|
|
14
13
|
query: string;
|
|
15
14
|
variables?: Record<string, unknown>;
|
|
16
15
|
cache_hint?: string;
|
|
17
16
|
context?: FrontendContext;
|
|
18
17
|
}
|
|
19
|
-
/** Request body for POST /api/m */
|
|
20
18
|
interface MutationRequest {
|
|
21
19
|
method: string;
|
|
22
20
|
args: unknown[];
|
|
23
21
|
context?: FrontendContext;
|
|
24
22
|
}
|
|
25
|
-
/** Response metadata */
|
|
26
23
|
interface ResponseMetadata {
|
|
27
24
|
execution_time_ms: number;
|
|
28
25
|
cache_hit: boolean;
|
|
29
26
|
}
|
|
30
|
-
/** Standard API response wrapper */
|
|
31
27
|
interface ApiResponse<T> {
|
|
32
28
|
success: boolean;
|
|
33
29
|
data?: T;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ac as AUTHORIZATION_TYPE, ah as AUTH_MUTATION, a1 as AbortablePromise, ca as AddressData, cD as AddressInfo, aR as AmountToPay, cl as AuthResponse, A as AuthService, n as AuthStatus, cF as AuthenticatedCustomer, cH as AuthenticatedData, c0 as AvailabilityResult, bH as AvailableSlot, bK as Booking, bJ as BookingStatus, bL as BookingWithDetails, b9 as BufferTimes, bo as Business, bC as BusinessHours, bn as BusinessPreferences, B as BusinessService, bB as BusinessSettings, bm as BusinessType, bz as BusinessWithLocations, a5 as CHECKOUT_MODE, ai as CHECKOUT_MUTATION, a8 as CHECKOUT_STEP, ae as CONTACT_TYPE, bS as CancelBookingInput, bT as CancelBookingResult, b3 as CancelOrderInput, bb as CancellationPolicy, j as CartOperations, b as CatalogueQueries, aE as CatalogueResult, aF as CatalogueSnapshot, bD as CategoryInfo, bP as CheckSlotAvailabilityInput, bQ as CheckSlotAvailabilityResult, co as CheckoutAddressInfo, cL as CheckoutCartData, cK as CheckoutCartItem, cq as CheckoutCustomerInfo, V as CheckoutFormData, b1 as CheckoutInput, H as CheckoutMode, k as CheckoutOperations, J as CheckoutOrderType, K as CheckoutPaymentMethod, W as CheckoutResult, k as CheckoutService, $ as CheckoutStatus, a0 as CheckoutStatusContext, N as CheckoutStep, C as CimplifyClient, a as CimplifyConfig, u as CimplifyElement, t as CimplifyElements, a4 as ContactType, c6 as CreateAddressInput, c8 as CreateMobileMoneyInput, c1 as Customer, c2 as CustomerAddress, bN as CustomerBooking, bM as CustomerBookingServiceItem, c4 as CustomerLinkPreferences, c3 as CustomerMobileMoney, b8 as CustomerServicePreferences, am as DEFAULT_COUNTRY, al as DEFAULT_CURRENCY, ad as DEVICE_TYPE, bI as DayAvailability, bi as DepositResult, a3 as DeviceType, w as ELEMENT_TYPES, E as EVENT_TYPES, cC as ElementAppearance, cO as ElementEventHandler, D as ElementEventType, y as ElementOptions, z as ElementType, cI as ElementsCheckoutData, cJ as ElementsCheckoutResult, cG as ElementsCustomerInfo, x as ElementsOptions, cc as EnrollAndLinkOrderInput, cf as EnrollAndLinkOrderResult, c9 as EnrollmentData, ap as Err, aQ as FeeBearerType, F as FetchQuoteInput, aO as FulfillmentLink, aN as FulfillmentStatus, aM as FulfillmentType, cs as FxQuote, cr as FxQuoteRequest, ct as FxRateResponse, r as FxService, bO as GetAvailableSlotsInput, m as GetOrdersOptions, G as GetProductsOptions, cN as IframeToParentMessage, I as InventoryService, ag as LINK_MUTATION, af as LINK_QUERY, aS as LineItem, aJ as LineType, c5 as LinkData, ce as LinkEnrollResult, L as LinkService, cg as LinkSession, cd as LinkStatusResult, s as LiteBootstrap, q as LiteService, br as Location, bl as LocationAppointment, b$ as LocationStock, bp as LocationTaxBehavior, bq as LocationTaxOverrides, bu as LocationTimeProfile, bA as LocationWithDetails, M as MESSAGE_TYPES, ab as MOBILE_MONEY_PROVIDER, cb as MobileMoneyData, cp as MobileMoneyDetails, a2 as MobileMoneyProvider, X as NextAction, ak as ORDER_MUTATION, a6 as ORDER_TYPE, cA as ObservabilityHooks, ao as Ok, aT as Order, aI as OrderChannel, b0 as OrderFilter, aP as OrderFulfillmentSummary, aW as OrderGroup, a_ as OrderGroupDetails, aX as OrderGroupPayment, aV as OrderGroupPaymentState, aZ as OrderGroupPaymentSummary, aU as OrderHistory, aK as OrderLineState, aL as OrderLineStatus, a$ as OrderPaymentEvent, O as OrderQueries, aY as OrderSplitDetail, aG as OrderStatus, cB as OrderType, o as OtpResult, a7 as PAYMENT_METHOD, aj as PAYMENT_MUTATION, a9 as PAYMENT_STATE, aa as PICKUP_TIME_TYPE, cM as ParentToIframeMessage, cE as PaymentMethodInfo, aH as PaymentState, cn as PickupTime, cm as PickupTimeType, P as PriceQuote, bd as PricingOverrides, _ as ProcessAndResolveOptions, Y as ProcessCheckoutOptions, Z as ProcessCheckoutResult, bZ as ProductStock, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, b4 as RefundOrderInput, b7 as ReminderMethod, ba as ReminderSettings, cu as RequestContext, cx as RequestErrorEvent, cj as RequestOtpInput, h as RequestSource, cv as RequestStartEvent, cw as RequestSuccessEvent, bR as RescheduleBookingInput, bU as RescheduleBookingResult, bg as ResourceAssignment, an as Result, cy as RetryEvent, ci as RevokeAllSessionsResult, ch as RevokeSessionResult, bw as Room, be as SchedulingMetadata, bh as SchedulingResult, p as SchedulingService, S as SearchOptions, bE as Service, bV as ServiceAvailabilityParams, bW as ServiceAvailabilityResult, bx as ServiceCharge, bc as ServiceNotes, bj as ServiceScheduleRequest, b5 as ServiceStatus, cz as SessionChangeEvent, bF as Staff, bf as StaffAssignment, b6 as StaffRole, bk as StaffScheduleItem, bY as StockLevel, bX as StockStatus, by as StorefrontBootstrap, bv as Table, T as TableInfo, bs as TimeRange, bt as TimeRanges, bG as TimeSlot, c7 as UpdateAddressInput, b2 as UpdateOrderStatusInput, U as UpdateProfileInput, b_ as VariantStock, ck as VerifyOtpInput, aC as combine, aD as combineObject, c as createCimplifyClient, v as createElements, ar as err, aw as flatMap, aA as fromPromise, l as generateIdempotencyKey, ax as getOrElse, at as isErr, as as isOk, av as mapError, au as mapResult, aq as ok, az as toNullable, aB as tryCatch, ay as unwrap } from './client-xBhdHLq4.js';
|
|
2
2
|
export { QueryBuilder, query } from './advanced.js';
|
|
3
|
-
import { A as ApiError } from './payment-
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
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-
|
|
3
|
+
import { A as ApiError } from './payment-CrNyrc-D.js';
|
|
4
|
+
export { F as AddOn, aJ as AddOnDetails, b3 as AddOnGroupDetails, H as AddOnOption, b2 as AddOnOptionDetails, J as AddOnOptionPrice, G as AddOnWithOptions, b8 as AddToCartInput, be as AddressAuthorizationData, ay as AdjustmentType, aF as AppliedDiscount, bf as AuthorizationType, aE as BenefitType, U as Bundle, _ as BundleComponentData, $ as BundleComponentInfo, a1 as BundleComponentVariantView, a0 as BundleComponentView, T as BundlePriceType, X as BundleProduct, aO as BundleSelectionData, aM as BundleSelectionInput, aN as BundleStoredSelection, W as BundleSummary, Y as BundleWithDetails, aT as Cart, aK as CartAddOn, aw as CartChannel, aU as CartItem, b5 as CartItemDetails, av as CartStatus, ba as CartSummary, aV as CartTotals, L as Category, N as CategorySummary, aD as ChosenPrice, g as CimplifyError, O as Collection, R as CollectionProduct, Q as CollectionSummary, a9 as ComponentGroup, aa as ComponentGroupWithComponents, ag as ComponentPriceBreakdown, ae as ComponentSelectionInput, a6 as ComponentSourceType, a7 as Composite, ad as CompositeComponent, ac as CompositeComponentView, ab as CompositeGroupView, aQ as CompositePriceBreakdown, af as CompositePriceResult, a4 as CompositePricingMode, aR as CompositeSelectionData, ae as CompositeSelectionInput, aP as CompositeStoredSelection, a8 as CompositeWithDetails, C as CurrencyCode, aq as Deal, ap as DealBenefitType, q as DepositType, p as DigitalProductType, aG as DiscountBreakdown, aH as DiscountDetails, as as DiscountValidation, aY as DisplayAddOn, aZ as DisplayAddOnOption, aW as DisplayCart, aX as DisplayCartItem, D as DisplayMode, f as ERROR_HINTS, E as ErrorCode, d as ErrorCodeType, e as ErrorHint, a5 as GroupPricingBehavior, bj as InitializePaymentResult, I as InventoryType, aS as LineConfiguration, aj as LocationProductPrice, M as Money, b as Pagination, P as PaginationParams, bi as Payment, bm as PaymentErrorDetails, bh as PaymentMethod, bd as PaymentMethodType, bg as PaymentProcessingState, bc as PaymentProvider, bk as PaymentResponse, bb as PaymentStatus, bl as PaymentStatusResponse, ai as Price, az as PriceAdjustment, aC as PriceDecisionPath, ah as PriceEntryType, aB as PricePathTaxInfo, ax as PriceSource, r as Product, K as ProductAddOn, ak as ProductAvailability, ao as ProductAvailabilityNow, ar as ProductDealInfo, o as ProductRenderHint, am as ProductTaxonomy, al as ProductTimeProfile, n as ProductType, t as ProductVariant, y as ProductVariantValue, s as ProductWithDetails, S as SalesChannel, aI as SelectedAddOnOption, bn as SubmitAuthorizationInput, at as Tag, au as TagsResponse, aA as TaxPathComponent, an as TaxonomyWithChildren, b6 as UICart, a_ as UICartBusiness, b0 as UICartCustomer, a$ as UICartLocation, b1 as UICartPricing, b7 as UICartResponse, b9 as UpdateCartItemInput, v as VariantAxis, B as VariantAxisSelection, x as VariantAxisValue, a3 as VariantAxisValueView, a2 as VariantAxisView, w as VariantAxisWithValues, aL as VariantDetails, b4 as VariantDetailsDTO, u as VariantDisplayAttribute, z as VariantLocationAvailability, V as VariantStrategy, Z as ZERO, c as currencyCode, k as enrichError, j as getErrorHint, h as isCimplifyError, l as isRetryableError, i as isSupportedCurrency, m as money, a as moneyFromNumber } from './payment-CrNyrc-D.js';
|
|
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, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './utils.js';
|
|
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-RKKoTz-9.js';
|
|
7
8
|
|
|
8
|
-
/** Context sent with every request to scope operations to a specific location/branch */
|
|
9
9
|
interface FrontendContext {
|
|
10
10
|
location_id?: string;
|
|
11
11
|
}
|
|
12
|
-
/** Request body for POST /api/q */
|
|
13
12
|
interface QueryRequest {
|
|
14
13
|
query: string;
|
|
15
14
|
variables?: Record<string, unknown>;
|
|
16
15
|
cache_hint?: string;
|
|
17
16
|
context?: FrontendContext;
|
|
18
17
|
}
|
|
19
|
-
/** Request body for POST /api/m */
|
|
20
18
|
interface MutationRequest {
|
|
21
19
|
method: string;
|
|
22
20
|
args: unknown[];
|
|
23
21
|
context?: FrontendContext;
|
|
24
22
|
}
|
|
25
|
-
/** Response metadata */
|
|
26
23
|
interface ResponseMetadata {
|
|
27
24
|
execution_time_ms: number;
|
|
28
25
|
cache_hit: boolean;
|
|
29
26
|
}
|
|
30
|
-
/** Standard API response wrapper */
|
|
31
27
|
interface ApiResponse<T> {
|
|
32
28
|
success: boolean;
|
|
33
29
|
data?: T;
|