@cimplify/sdk 0.74.0 → 0.76.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 +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/{client-D6CZ2Ggp.d.ts → client-CBQJQn7E.d.mts} +3 -3
- package/dist/{client-BvqaIlJ0.d.ts → client-D7MP5Zi7.d.ts} +2 -2
- package/dist/{client-DWA_XIh3.d.mts → client-DDWRDb9m.d.mts} +2 -2
- package/dist/{client-C7EMuGoz.d.mts → client-ciWgfgLw.d.ts} +3 -3
- package/dist/{index-DIIlPUOC.d.ts → index-DTGS0QC1.d.ts} +3 -3
- package/dist/{index-D8vnKlOQ.d.mts → index-lt-fe29V.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/{payment-DVS7ZUEp.d.mts → payment-C-2gApyQ.d.mts} +1 -1
- package/dist/{payment-sn-yGL7v.d.ts → payment-CfemTORM.d.ts} +1 -1
- package/dist/{price-Cm0tU0V5.d.mts → price-CZBQw-Rh.d.mts} +1 -1
- package/dist/{price-9T1Y47oS.d.ts → price-DNeyoO7y.d.ts} +1 -1
- package/dist/{product-B_kS4Oxa.d.mts → product-_GFoaPHU.d.mts} +2 -0
- package/dist/{product-B_kS4Oxa.d.ts → product-_GFoaPHU.d.ts} +2 -0
- package/dist/react.d.mts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +1 -0
- package/dist/react.mjs +1 -0
- package/dist/{server-DMvQp27Z.d.ts → server-1hXIXH2k.d.ts} +1 -1
- package/dist/{server-DDQ1O3XR.d.mts → server-G8I4JtqK.d.mts} +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +1 -1
- package/registry/order-summary.json +1 -1
package/dist/advanced.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { k as AuthService, C as BusinessService, P as CartOperations, Q as CatalogueQueries, a9 as CheckoutOperations, a9 as CheckoutService, af as CimplifyElement, ag as CimplifyElements, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aT as ElementsOptions, a$ as FetchQuoteInput, b7 as FxService, ba as GetProductsOptions, bd as InventoryService, bk as LinkService, bo as LiteService, bv as MESSAGE_TYPES, bY as OrderQueries, cf as PriceQuote, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cr as RefreshQuoteInput, cs as RefreshQuoteResult, cT as SchedulingService, dw as createElements } from './client-
|
|
2
|
-
import './product-
|
|
3
|
-
import './payment-
|
|
1
|
+
export { k as AuthService, C as BusinessService, P as CartOperations, Q as CatalogueQueries, a9 as CheckoutOperations, a9 as CheckoutService, af as CimplifyElement, ag as CimplifyElements, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aT as ElementsOptions, a$ as FetchQuoteInput, b7 as FxService, ba as GetProductsOptions, bd as InventoryService, bk as LinkService, bo as LiteService, bv as MESSAGE_TYPES, bY as OrderQueries, cf as PriceQuote, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cr as RefreshQuoteInput, cs as RefreshQuoteResult, cT as SchedulingService, dw as createElements } from './client-CBQJQn7E.mjs';
|
|
2
|
+
import './product-_GFoaPHU.mjs';
|
|
3
|
+
import './payment-C-2gApyQ.mjs';
|
|
4
4
|
|
|
5
5
|
declare function generateIdempotencyKey(prefix?: string): string;
|
|
6
6
|
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { k as AuthService, C as BusinessService, P as CartOperations, Q as CatalogueQueries, a9 as CheckoutOperations, a9 as CheckoutService, af as CimplifyElement, ag as CimplifyElements, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aT as ElementsOptions, a$ as FetchQuoteInput, b7 as FxService, ba as GetProductsOptions, bd as InventoryService, bk as LinkService, bo as LiteService, bv as MESSAGE_TYPES, bY as OrderQueries, cf as PriceQuote, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cr as RefreshQuoteInput, cs as RefreshQuoteResult, cT as SchedulingService, dw as createElements } from './client-
|
|
2
|
-
import './product-
|
|
3
|
-
import './payment-
|
|
1
|
+
export { k as AuthService, C as BusinessService, P as CartOperations, Q as CatalogueQueries, a9 as CheckoutOperations, a9 as CheckoutService, af as CimplifyElement, ag as CimplifyElements, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aT as ElementsOptions, a$ as FetchQuoteInput, b7 as FxService, ba as GetProductsOptions, bd as InventoryService, bk as LinkService, bo as LiteService, bv as MESSAGE_TYPES, bY as OrderQueries, cf as PriceQuote, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cr as RefreshQuoteInput, cs as RefreshQuoteResult, cT as SchedulingService, dw as createElements } from './client-ciWgfgLw.js';
|
|
2
|
+
import './product-_GFoaPHU.js';
|
|
3
|
+
import './payment-CfemTORM.js';
|
|
4
4
|
|
|
5
5
|
declare function generateIdempotencyKey(prefix?: string): string;
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as CimplifyError, Q as Category, aX as Product, f as AddOnWithOptions, aO as Pagination, b9 as ProductWithDetails, b7 as ProductVariant, bA as VariantAxis, bB as VariantAxisSelection, A as AddOn, U as Collection, E as BundleSummary, s as Bundle, a1 as Composite, $ as ComponentSelectionInput, a6 as CompositePriceResult, S as ChosenPrice, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, av as EligiblePlansQuery, a$ as ProductBillingPlan, b5 as ProductTimeProfile, a_ as ProductAvailabilityNow, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, bq as TagsResponse, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ba as PropertyFacet, bs as TaxonomyAttributeTemplate, aH as KnowledgeArticle, bu as UICart, J as CartItem, O as CartSummary, g as AddToCartInput, L as CartMutationResult, bz as UpdateCartItemInput, am as DiscountDetails, aM as Money, ab as CurrencyCode, aI as LineConfiguration, bG as VariantDetails, bH as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, z as BundleSelectionData, a8 as CompositeSelectionData, ae as CustomerInputValue, bg as SchedulingMode, at as DurationUnit, bk as Subscription, bo as SubscriptionWithDetails } from './product-
|
|
2
|
-
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { T as CimplifyError, Q as Category, aX as Product, f as AddOnWithOptions, aO as Pagination, b9 as ProductWithDetails, b7 as ProductVariant, bA as VariantAxis, bB as VariantAxisSelection, A as AddOn, U as Collection, E as BundleSummary, s as Bundle, a1 as Composite, $ as ComponentSelectionInput, a6 as CompositePriceResult, S as ChosenPrice, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, av as EligiblePlansQuery, a$ as ProductBillingPlan, b5 as ProductTimeProfile, a_ as ProductAvailabilityNow, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, bq as TagsResponse, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ba as PropertyFacet, bs as TaxonomyAttributeTemplate, aH as KnowledgeArticle, bu as UICart, J as CartItem, O as CartSummary, g as AddToCartInput, L as CartMutationResult, bz as UpdateCartItemInput, am as DiscountDetails, aM as Money, ab as CurrencyCode, aI as LineConfiguration, bG as VariantDetails, bH as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, z as BundleSelectionData, a8 as CompositeSelectionData, ae as CustomerInputValue, bg as SchedulingMode, at as DurationUnit, bk as Subscription, bo as SubscriptionWithDetails } from './product-_GFoaPHU.mjs';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-C-2gApyQ.mjs';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -336,7 +336,7 @@ declare class CartOperations {
|
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
type OrderStatus = "pending" | "created" | "confirmed" | "in_preparation" | "ready_to_serve" | "partially_served" | "served" | "delivered" | "picked_up" | "completed" | "cancelled" | "refunded";
|
|
339
|
-
type PaymentState = "not_paid" | "paid" | "partially_refunded" | "refunded";
|
|
339
|
+
type PaymentState = "not_paid" | "partially_paid" | "paid" | "partially_refunded" | "refunded";
|
|
340
340
|
type OrderChannel = "qr" | "taker" | "staff" | "web" | "dashboard" | "tap" | "chat";
|
|
341
341
|
type LineType = "product" | "service" | "bundle" | "composite" | "digital";
|
|
342
342
|
type OrderLineState = "pending" | "in_preparation" | "checked_out" | "ready" | "served" | "completed" | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ad as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { ad as CimplifyClient } from './client-ciWgfgLw.js';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-1hXIXH2k.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ad as CimplifyClient } from './client-
|
|
2
|
-
import { A as AppHandle, C as CreateAppOptions } from './server-
|
|
1
|
+
import { ad as CimplifyClient } from './client-CBQJQn7E.mjs';
|
|
2
|
+
import { A as AppHandle, C as CreateAppOptions } from './server-G8I4JtqK.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Test client + fixtures.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as CimplifyError, Q as Category, aX as Product, f as AddOnWithOptions, aO as Pagination, b9 as ProductWithDetails, b7 as ProductVariant, bA as VariantAxis, bB as VariantAxisSelection, A as AddOn, U as Collection, E as BundleSummary, s as Bundle, a1 as Composite, $ as ComponentSelectionInput, a6 as CompositePriceResult, S as ChosenPrice, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, av as EligiblePlansQuery, a$ as ProductBillingPlan, b5 as ProductTimeProfile, a_ as ProductAvailabilityNow, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, bq as TagsResponse, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ba as PropertyFacet, bs as TaxonomyAttributeTemplate, aH as KnowledgeArticle, bu as UICart, J as CartItem, O as CartSummary, g as AddToCartInput, L as CartMutationResult, bz as UpdateCartItemInput, am as DiscountDetails, aM as Money, ab as CurrencyCode, aI as LineConfiguration, bG as VariantDetails, bH as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, z as BundleSelectionData, a8 as CompositeSelectionData, ae as CustomerInputValue, bg as SchedulingMode, at as DurationUnit, bk as Subscription, bo as SubscriptionWithDetails } from './product-
|
|
2
|
-
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { T as CimplifyError, Q as Category, aX as Product, f as AddOnWithOptions, aO as Pagination, b9 as ProductWithDetails, b7 as ProductVariant, bA as VariantAxis, bB as VariantAxisSelection, A as AddOn, U as Collection, E as BundleSummary, s as Bundle, a1 as Composite, $ as ComponentSelectionInput, a6 as CompositePriceResult, S as ChosenPrice, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, av as EligiblePlansQuery, a$ as ProductBillingPlan, b5 as ProductTimeProfile, a_ as ProductAvailabilityNow, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, bq as TagsResponse, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ba as PropertyFacet, bs as TaxonomyAttributeTemplate, aH as KnowledgeArticle, bu as UICart, J as CartItem, O as CartSummary, g as AddToCartInput, L as CartMutationResult, bz as UpdateCartItemInput, am as DiscountDetails, aM as Money, ab as CurrencyCode, aI as LineConfiguration, bG as VariantDetails, bH as VariantDetailsDTO, a as AddOnDetails, d as AddOnOptionDetails, b as AddOnGroupDetails, z as BundleSelectionData, a8 as CompositeSelectionData, ae as CustomerInputValue, bg as SchedulingMode, at as DurationUnit, bk as Subscription, bo as SubscriptionWithDetails } from './product-_GFoaPHU.js';
|
|
2
|
+
import { a as AuthorizationType, c as PaymentMethod, I as InitializePaymentResult, S as SubmitAuthorizationInput, i as PaymentStatusResponse } from './payment-CfemTORM.js';
|
|
3
3
|
|
|
4
4
|
interface RequestContext {
|
|
5
5
|
method: "GET" | "POST" | "PATCH" | "DELETE";
|
|
@@ -336,7 +336,7 @@ declare class CartOperations {
|
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
type OrderStatus = "pending" | "created" | "confirmed" | "in_preparation" | "ready_to_serve" | "partially_served" | "served" | "delivered" | "picked_up" | "completed" | "cancelled" | "refunded";
|
|
339
|
-
type PaymentState = "not_paid" | "paid" | "partially_refunded" | "refunded";
|
|
339
|
+
type PaymentState = "not_paid" | "partially_paid" | "paid" | "partially_refunded" | "refunded";
|
|
340
340
|
type OrderChannel = "qr" | "taker" | "staff" | "web" | "dashboard" | "tap" | "chat";
|
|
341
341
|
type LineType = "product" | "service" | "bundle" | "composite" | "digital";
|
|
342
342
|
type OrderLineState = "pending" | "in_preparation" | "checked_out" | "ready" | "served" | "completed" | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aM as Money, ab as CurrencyCode, aV as PricePathTaxInfo, aX as Product, b9 as ProductWithDetails, bc as QuantityPricingTier } from './product-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { aM as Money, ab as CurrencyCode, aV as PricePathTaxInfo, aX as Product, b9 as ProductWithDetails, bc as QuantityPricingTier } from './product-_GFoaPHU.js';
|
|
2
|
+
import { P as ProductWithPrice } from './price-DNeyoO7y.js';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-CfemTORM.js';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aM as Money, ab as CurrencyCode, aV as PricePathTaxInfo, aX as Product, b9 as ProductWithDetails, bc as QuantityPricingTier } from './product-
|
|
2
|
-
import { P as ProductWithPrice } from './price-
|
|
3
|
-
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-
|
|
1
|
+
import { aM as Money, ab as CurrencyCode, aV as PricePathTaxInfo, aX as Product, b9 as ProductWithDetails, bc as QuantityPricingTier } from './product-_GFoaPHU.mjs';
|
|
2
|
+
import { P as ProductWithPrice } from './price-CZBQw-Rh.mjs';
|
|
3
|
+
import { b as PaymentErrorDetails, g as PaymentResponse, i as PaymentStatusResponse } from './payment-C-2gApyQ.mjs';
|
|
4
4
|
import { CountryCode } from 'libphonenumber-js';
|
|
5
5
|
|
|
6
6
|
declare const CURRENCY_SYMBOLS: Record<string, string>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StorefrontBootstrap, dc as SubscriptionService, dd as SupportService, de as Table, df as TableInfo, dg as TimeRange, dh as TimeRanges, di as TimeSlot, dj as TrackCategoryViewOptions, dk as TrackProductViewOptions, dl as UpdateAddressInput, dm as UpdateOrderStatusInput, dn as UpdateProfileInput, dp as UploadInitResponse, dq as UploadResult, dr as UploadService, ds as VerifyOtpInput, dt as combine, du as combineObject, dv as createCimplifyClient, dw as createElements, dx as err, dy as flatMap, dz as fromPromise, dA as getOrElse, dB as isErr, dC as isOk, dD as mapError, dE as mapResult, dF as ok, dG as toNullable, dH as tryCatch, dI as unwrap } from './client-
|
|
2
|
-
import { b9 as ProductWithDetails, j as ApiError } from './product-
|
|
3
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-
|
|
4
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-
|
|
1
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StorefrontBootstrap, dc as SubscriptionService, dd as SupportService, de as Table, df as TableInfo, dg as TimeRange, dh as TimeRanges, di as TimeSlot, dj as TrackCategoryViewOptions, dk as TrackProductViewOptions, dl as UpdateAddressInput, dm as UpdateOrderStatusInput, dn as UpdateProfileInput, dp as UploadInitResponse, dq as UploadResult, dr as UploadService, ds as VerifyOtpInput, dt as combine, du as combineObject, dv as createCimplifyClient, dw as createElements, dx as err, dy as flatMap, dz as fromPromise, dA as getOrElse, dB as isErr, dC as isOk, dD as mapError, dE as mapResult, dF as ok, dG as toNullable, dH as tryCatch, dI as unwrap } from './client-CBQJQn7E.mjs';
|
|
2
|
+
import { b9 as ProductWithDetails, j as ApiError } from './product-_GFoaPHU.mjs';
|
|
3
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-_GFoaPHU.mjs';
|
|
4
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-lt-fe29V.mjs';
|
|
5
5
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.mjs';
|
|
6
|
-
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-
|
|
7
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
6
|
+
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-C-2gApyQ.mjs';
|
|
7
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-CZBQw-Rh.mjs';
|
|
8
8
|
export { generateIdempotencyKey } from './advanced.mjs';
|
|
9
9
|
import 'libphonenumber-js';
|
|
10
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StorefrontBootstrap, dc as SubscriptionService, dd as SupportService, de as Table, df as TableInfo, dg as TimeRange, dh as TimeRanges, di as TimeSlot, dj as TrackCategoryViewOptions, dk as TrackProductViewOptions, dl as UpdateAddressInput, dm as UpdateOrderStatusInput, dn as UpdateProfileInput, dp as UploadInitResponse, dq as UploadResult, dr as UploadService, ds as VerifyOtpInput, dt as combine, du as combineObject, dv as createCimplifyClient, dw as createElements, dx as err, dy as flatMap, dz as fromPromise, dA as getOrElse, dB as isErr, dC as isOk, dD as mapError, dE as mapResult, dF as ok, dG as toNullable, dH as tryCatch, dI as unwrap } from './client-
|
|
2
|
-
import { b9 as ProductWithDetails, j as ApiError } from './product-
|
|
3
|
-
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-
|
|
4
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-
|
|
1
|
+
export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StorefrontBootstrap, dc as SubscriptionService, dd as SupportService, de as Table, df as TableInfo, dg as TimeRange, dh as TimeRanges, di as TimeSlot, dj as TrackCategoryViewOptions, dk as TrackProductViewOptions, dl as UpdateAddressInput, dm as UpdateOrderStatusInput, dn as UpdateProfileInput, dp as UploadInitResponse, dq as UploadResult, dr as UploadService, ds as VerifyOtpInput, dt as combine, du as combineObject, dv as createCimplifyClient, dw as createElements, dx as err, dy as flatMap, dz as fromPromise, dA as getOrElse, dB as isErr, dC as isOk, dD as mapError, dE as mapResult, dF as ok, dG as toNullable, dH as tryCatch, dI as unwrap } from './client-ciWgfgLw.js';
|
|
2
|
+
import { b9 as ProductWithDetails, j as ApiError } from './product-_GFoaPHU.js';
|
|
3
|
+
export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-_GFoaPHU.js';
|
|
4
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-DTGS0QC1.js';
|
|
5
5
|
export { A as AdConfig, a as AdContextValue, b as AdCreative, c as AdPosition, d as AdSlot, e as AdTheme, S as SignInOptions, g as getVariantDisplayName, s as startSignIn } from './sign-in-DQlIdqsi.js';
|
|
6
|
-
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-
|
|
7
|
-
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-
|
|
6
|
+
export { A as AddressAuthorizationData, a as AuthorizationType, I as InitializePaymentResult, P as Payment, b as PaymentErrorDetails, c as PaymentMethod, d as PaymentMethodType, e as PaymentProcessingState, f as PaymentProvider, g as PaymentResponse, h as PaymentStatus, i as PaymentStatusResponse, S as SubmitAuthorizationInput } from './payment-CfemTORM.js';
|
|
7
|
+
export { F as FormatCompactOptions, a as FormatPriceOptions, P as ProductWithPrice } from './price-DNeyoO7y.js';
|
|
8
8
|
export { generateIdempotencyKey } from './advanced.js';
|
|
9
9
|
import 'libphonenumber-js';
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aM as Money, ab as CurrencyCode } from './product-
|
|
1
|
+
import { aM as Money, ab as CurrencyCode } from './product-_GFoaPHU.mjs';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtnmomo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aM as Money, ab as CurrencyCode } from './product-
|
|
1
|
+
import { aM as Money, ab as CurrencyCode } from './product-_GFoaPHU.js';
|
|
2
2
|
|
|
3
3
|
type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
|
|
4
4
|
type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtnmomo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
|
|
@@ -1040,6 +1040,8 @@ interface VariantView {
|
|
|
1040
1040
|
id: string;
|
|
1041
1041
|
name: string;
|
|
1042
1042
|
is_default: boolean;
|
|
1043
|
+
sku?: string;
|
|
1044
|
+
barcode?: string;
|
|
1043
1045
|
price_adjustment: Money;
|
|
1044
1046
|
location_prices?: Record<string, ChosenPrice>;
|
|
1045
1047
|
axis_selections?: Record<string, string>;
|
|
@@ -1040,6 +1040,8 @@ interface VariantView {
|
|
|
1040
1040
|
id: string;
|
|
1041
1041
|
name: string;
|
|
1042
1042
|
is_default: boolean;
|
|
1043
|
+
sku?: string;
|
|
1044
|
+
barcode?: string;
|
|
1043
1045
|
price_adjustment: Money;
|
|
1044
1046
|
location_prices?: Record<string, ChosenPrice>;
|
|
1045
1047
|
axis_selections?: Record<string, string>;
|
package/dist/react.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.mjs';
|
|
3
3
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.mjs';
|
|
4
|
-
import { ad as CimplifyClient, cj as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, aV as EnrichedOrderItem, aU as EnrichedOrder, w as Business, bp as Location, cA as ReorderResult, b$ as OrderStatus, bF as Order, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cf as PriceQuote, cp as QuoteUiMessage, cV as Service, r as AvailableSlot, av as DayAvailability, an as CustomerBooking, M as CancelBookingResult, f as ActivityStateResponse, d2 as SessionMessage, c as ActivityRecommendation, ax as DeliveryFeeResponse, b6 as FxRateResponse, db as StorefrontBootstrap, Y as ChatWidgetStarter, X as ChatMessage, h as AddressInfo, n as AuthenticatedData, aT as ElementsOptions, c9 as PaymentMethodInfo, aR as ElementsCheckoutResult, ci as ProcessCheckoutOptions, ag as CimplifyElements, bg as LineItem, d5 as Staff, cQ as Room } from './client-
|
|
4
|
+
import { ad as CimplifyClient, cj as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, aV as EnrichedOrderItem, aU as EnrichedOrder, w as Business, bp as Location, cA as ReorderResult, b$ as OrderStatus, bF as Order, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cf as PriceQuote, cp as QuoteUiMessage, cV as Service, r as AvailableSlot, av as DayAvailability, an as CustomerBooking, M as CancelBookingResult, f as ActivityStateResponse, d2 as SessionMessage, c as ActivityRecommendation, ax as DeliveryFeeResponse, b6 as FxRateResponse, db as StorefrontBootstrap, Y as ChatWidgetStarter, X as ChatMessage, h as AddressInfo, n as AuthenticatedData, aT as ElementsOptions, c9 as PaymentMethodInfo, aR as ElementsCheckoutResult, ci as ProcessCheckoutOptions, ag as CimplifyElements, bg as LineItem, d5 as Staff, cQ as Room } from './client-CBQJQn7E.mjs';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, aj as DepositType, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-
|
|
7
|
-
import { P as ProductWithPrice } from './price-
|
|
6
|
+
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, aj as DepositType, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-_GFoaPHU.mjs';
|
|
7
|
+
import { P as ProductWithPrice } from './price-CZBQw-Rh.mjs';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
import { Matcher } from 'react-day-picker';
|
|
10
|
-
import './payment-
|
|
10
|
+
import './payment-C-2gApyQ.mjs';
|
|
11
11
|
|
|
12
12
|
interface UserIdentity {
|
|
13
13
|
uid: string;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.js';
|
|
3
3
|
export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.js';
|
|
4
|
-
import { ad as CimplifyClient, cj as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, aV as EnrichedOrderItem, aU as EnrichedOrder, w as Business, bp as Location, cA as ReorderResult, b$ as OrderStatus, bF as Order, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cf as PriceQuote, cp as QuoteUiMessage, cV as Service, r as AvailableSlot, av as DayAvailability, an as CustomerBooking, M as CancelBookingResult, f as ActivityStateResponse, d2 as SessionMessage, c as ActivityRecommendation, ax as DeliveryFeeResponse, b6 as FxRateResponse, db as StorefrontBootstrap, Y as ChatWidgetStarter, X as ChatMessage, h as AddressInfo, n as AuthenticatedData, aT as ElementsOptions, c9 as PaymentMethodInfo, aR as ElementsCheckoutResult, ci as ProcessCheckoutOptions, ag as CimplifyElements, bg as LineItem, d5 as Staff, cQ as Room } from './client-
|
|
4
|
+
import { ad as CimplifyClient, cj as ProcessCheckoutResult, aa as CheckoutStatus, ab as CheckoutStatusContext, aV as EnrichedOrderItem, aU as EnrichedOrder, w as Business, bp as Location, cA as ReorderResult, b$ as OrderStatus, bF as Order, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cf as PriceQuote, cp as QuoteUiMessage, cV as Service, r as AvailableSlot, av as DayAvailability, an as CustomerBooking, M as CancelBookingResult, f as ActivityStateResponse, d2 as SessionMessage, c as ActivityRecommendation, ax as DeliveryFeeResponse, b6 as FxRateResponse, db as StorefrontBootstrap, Y as ChatWidgetStarter, X as ChatMessage, h as AddressInfo, n as AuthenticatedData, aT as ElementsOptions, c9 as PaymentMethodInfo, aR as ElementsCheckoutResult, ci as ProcessCheckoutOptions, ag as CimplifyElements, bg as LineItem, d5 as Staff, cQ as Room } from './client-ciWgfgLw.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, aj as DepositType, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-
|
|
7
|
-
import { P as ProductWithPrice } from './price-
|
|
6
|
+
import { ab as CurrencyCode, aX as Product, aO as Pagination, T as CimplifyError, b9 as ProductWithDetails, Q as Category, aM as Money, C as BundleSelectionInput, $ as ComponentSelectionInput, z as BundleSelectionData, a8 as CompositeSelectionData, U as Collection, b4 as ProductTaxonomy, bt as TaxonomyWithChildren, b5 as ProductTimeProfile, ah as Deal, b0 as ProductDealInfo, an as DiscountValidation, E as BundleSummary, a6 as CompositePriceResult, bo as SubscriptionWithDetails, bn as SubscriptionStatus, bk as Subscription, ac as CustomAttributeDefinition, ba as PropertyFacet, a$ as ProductBillingPlan, bL as VariantView, bF as VariantAxisWithValues, f as AddOnWithOptions, w as BundleComponentView, x as BundlePriceType, a4 as CompositeGroupView, aq as DisplayCart, b1 as ProductInputField, bg as SchedulingMode, at as DurationUnit, aj as DepositType, ad as CustomAttributeValue, b2 as ProductProperty, bc as QuantityPricingTier } from './product-_GFoaPHU.js';
|
|
7
|
+
import { P as ProductWithPrice } from './price-DNeyoO7y.js';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
9
|
import { Matcher } from 'react-day-picker';
|
|
10
|
-
import './payment-
|
|
10
|
+
import './payment-CfemTORM.js';
|
|
11
11
|
|
|
12
12
|
interface UserIdentity {
|
|
13
13
|
uid: string;
|
package/dist/react.js
CHANGED
|
@@ -12298,6 +12298,7 @@ var STATUS_LABELS = {
|
|
|
12298
12298
|
};
|
|
12299
12299
|
var PAYMENT_STATE_LABELS = {
|
|
12300
12300
|
not_paid: "Not Paid",
|
|
12301
|
+
partially_paid: "Partially Paid",
|
|
12301
12302
|
paid: "Paid",
|
|
12302
12303
|
partially_refunded: "Partially Refunded",
|
|
12303
12304
|
refunded: "Refunded"
|
package/dist/react.mjs
CHANGED
|
@@ -12293,6 +12293,7 @@ var STATUS_LABELS = {
|
|
|
12293
12293
|
};
|
|
12294
12294
|
var PAYMENT_STATE_LABELS = {
|
|
12295
12295
|
not_paid: "Not Paid",
|
|
12296
|
+
partially_paid: "Partially Paid",
|
|
12296
12297
|
paid: "Paid",
|
|
12297
12298
|
partially_refunded: "Partially Refunded",
|
|
12298
12299
|
refunded: "Refunded"
|
package/dist/server.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ad as CimplifyClient } from './client-
|
|
2
|
-
export { K as CacheOptions, cq as ReadRequestOptions, cM as Result } from './client-
|
|
3
|
-
export { Q as Category, T as CimplifyError, U as Collection, aX as Product, b9 as ProductWithDetails } from './product-
|
|
1
|
+
import { ad as CimplifyClient } from './client-CBQJQn7E.mjs';
|
|
2
|
+
export { K as CacheOptions, cq as ReadRequestOptions, cM as Result } from './client-CBQJQn7E.mjs';
|
|
3
|
+
export { Q as Category, T as CimplifyError, U as Collection, aX as Product, b9 as ProductWithDetails } from './product-_GFoaPHU.mjs';
|
|
4
4
|
import { JWTVerifyResult } from 'jose';
|
|
5
|
-
import './payment-
|
|
5
|
+
import './payment-C-2gApyQ.mjs';
|
|
6
6
|
|
|
7
7
|
interface ServerClientOptions {
|
|
8
8
|
/**
|
package/dist/server.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ad as CimplifyClient } from './client-
|
|
2
|
-
export { K as CacheOptions, cq as ReadRequestOptions, cM as Result } from './client-
|
|
3
|
-
export { Q as Category, T as CimplifyError, U as Collection, aX as Product, b9 as ProductWithDetails } from './product-
|
|
1
|
+
import { ad as CimplifyClient } from './client-ciWgfgLw.js';
|
|
2
|
+
export { K as CacheOptions, cq as ReadRequestOptions, cM as Result } from './client-ciWgfgLw.js';
|
|
3
|
+
export { Q as Category, T as CimplifyError, U as Collection, aX as Product, b9 as ProductWithDetails } from './product-_GFoaPHU.js';
|
|
4
4
|
import { JWTVerifyResult } from 'jose';
|
|
5
|
-
import './payment-
|
|
5
|
+
import './payment-CfemTORM.js';
|
|
6
6
|
|
|
7
7
|
interface ServerClientOptions {
|
|
8
8
|
/**
|
package/dist/testing/msw.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AppHandle, C as CreateAppOptions } from '../server-
|
|
1
|
+
import { A as AppHandle, C as CreateAppOptions } from '../server-G8I4JtqK.mjs';
|
|
2
2
|
import 'hono';
|
|
3
|
-
import '../product-
|
|
3
|
+
import '../product-_GFoaPHU.mjs';
|
|
4
4
|
|
|
5
5
|
interface MswHandlerSetup {
|
|
6
6
|
handlers: unknown[];
|
package/dist/testing/msw.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AppHandle, C as CreateAppOptions } from '../server-
|
|
1
|
+
import { A as AppHandle, C as CreateAppOptions } from '../server-1hXIXH2k.js';
|
|
2
2
|
import 'hono';
|
|
3
|
-
import '../product-
|
|
3
|
+
import '../product-_GFoaPHU.js';
|
|
4
4
|
|
|
5
5
|
interface MswHandlerSetup {
|
|
6
6
|
handlers: unknown[];
|
package/dist/testing/suite.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TestAPI } from 'vitest';
|
|
2
|
-
import { T as TestClientHandle } from '../client-
|
|
3
|
-
import { C as CreateAppOptions } from '../server-
|
|
4
|
-
export { S as SeedName } from '../server-
|
|
5
|
-
import '../client-
|
|
6
|
-
import '../product-
|
|
7
|
-
import '../payment-
|
|
2
|
+
import { T as TestClientHandle } from '../client-DDWRDb9m.mjs';
|
|
3
|
+
import { C as CreateAppOptions } from '../server-G8I4JtqK.mjs';
|
|
4
|
+
export { S as SeedName } from '../server-G8I4JtqK.mjs';
|
|
5
|
+
import '../client-CBQJQn7E.mjs';
|
|
6
|
+
import '../product-_GFoaPHU.mjs';
|
|
7
|
+
import '../payment-C-2gApyQ.mjs';
|
|
8
8
|
import 'hono';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/testing/suite.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TestAPI } from 'vitest';
|
|
2
|
-
import { T as TestClientHandle } from '../client-
|
|
3
|
-
import { C as CreateAppOptions } from '../server-
|
|
4
|
-
export { S as SeedName } from '../server-
|
|
5
|
-
import '../client-
|
|
6
|
-
import '../product-
|
|
7
|
-
import '../payment-
|
|
2
|
+
import { T as TestClientHandle } from '../client-D7MP5Zi7.js';
|
|
3
|
+
import { C as CreateAppOptions } from '../server-1hXIXH2k.js';
|
|
4
|
+
export { S as SeedName } from '../server-1hXIXH2k.js';
|
|
5
|
+
import '../client-ciWgfgLw.js';
|
|
6
|
+
import '../product-_GFoaPHU.js';
|
|
7
|
+
import '../payment-CfemTORM.js';
|
|
8
8
|
import 'hono';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { $ZodType } from 'zod/v4/core';
|
|
3
|
-
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-
|
|
4
|
-
import './client-
|
|
5
|
-
import './product-
|
|
6
|
-
import './payment-
|
|
7
|
-
import './server-
|
|
3
|
+
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-DDWRDb9m.mjs';
|
|
4
|
+
import './client-CBQJQn7E.mjs';
|
|
5
|
+
import './product-_GFoaPHU.mjs';
|
|
6
|
+
import './payment-C-2gApyQ.mjs';
|
|
7
|
+
import './server-G8I4JtqK.mjs';
|
|
8
8
|
import 'hono';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { $ZodType } from 'zod/v4/core';
|
|
3
|
-
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-
|
|
4
|
-
import './client-
|
|
5
|
-
import './product-
|
|
6
|
-
import './payment-
|
|
7
|
-
import './server-
|
|
3
|
+
export { A as AddFirstProductOptions, a as AddFirstProductResult, P as ProductSummary, T as TestClientHandle, c as createTestClient, f as fixtures } from './client-D7MP5Zi7.js';
|
|
4
|
+
import './client-ciWgfgLw.js';
|
|
5
|
+
import './product-_GFoaPHU.js';
|
|
6
|
+
import './payment-CfemTORM.js';
|
|
7
|
+
import './server-1hXIXH2k.js';
|
|
8
8
|
import 'hono';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-
|
|
2
|
-
import './product-
|
|
3
|
-
import './price-
|
|
4
|
-
import './payment-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-lt-fe29V.mjs';
|
|
2
|
+
import './product-_GFoaPHU.mjs';
|
|
3
|
+
import './price-CZBQw-Rh.mjs';
|
|
4
|
+
import './payment-C-2gApyQ.mjs';
|
|
5
5
|
import 'libphonenumber-js';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-
|
|
2
|
-
import './product-
|
|
3
|
-
import './price-
|
|
4
|
-
import './payment-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-DTGS0QC1.js';
|
|
2
|
+
import './product-_GFoaPHU.js';
|
|
3
|
+
import './price-DNeyoO7y.js';
|
|
4
|
+
import './payment-CfemTORM.js';
|
|
5
5
|
import 'libphonenumber-js';
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
{
|
|
12
12
|
"path": "order-summary.tsx",
|
|
13
|
-
"content": "\"use client\";\n\nimport React from \"react\";\nimport type { Order, LineItem, OrderStatus, PaymentState } from \"@cimplify/sdk\";\nimport { useOrder } from \"@cimplify/sdk/react\";\nimport { Price } from \"@cimplify/sdk/react\";\nimport { parsePrice } from \"@cimplify/sdk\";\nimport { cn } from \"@cimplify/sdk/react\";\n\nexport interface OrderSummaryClassNames {\n root?: string;\n header?: string;\n orderId?: string;\n status?: string;\n paymentState?: string;\n fulfillmentDetails?: string;\n deliveryAddress?: string;\n items?: string;\n lineItem?: string;\n notes?: string;\n totals?: string;\n customer?: string;\n loading?: string;\n serviceInfo?: string;\n digitalInfo?: string;\n bundleBreakdown?: string;\n compositeBreakdown?: string;\n trackingLink?: string;\n reorderButton?: string;\n}\n\nexport interface OrderSummaryProps {\n /** Pass an Order object directly (skips fetch). */\n order?: Order;\n /** Or pass an order ID to fetch via useOrder. */\n orderId?: string;\n /** Poll for status updates. */\n poll?: boolean;\n /** Custom line item renderer. */\n renderLineItem?: (item: LineItem) => React.ReactNode;\n /** Called when the reorder button is clicked. */\n onReorder?: (order: Order) => void;\n /** Called when the order status changes during polling. */\n onStatusChange?: (previousStatus: OrderStatus, newStatus: OrderStatus, order: Order) => void;\n className?: string;\n classNames?: OrderSummaryClassNames;\n}\n\nconst STATUS_LABELS: Record<OrderStatus, string> = {\n pending: \"Pending\",\n created: \"Created\",\n confirmed: \"Confirmed\",\n in_preparation: \"In Preparation\",\n ready_to_serve: \"Ready\",\n partially_served: \"Partially Served\",\n served: \"Served\",\n delivered: \"Delivered\",\n picked_up: \"Picked Up\",\n completed: \"Completed\",\n cancelled: \"Cancelled\",\n refunded: \"Refunded\",\n};\n\nconst PAYMENT_STATE_LABELS: Record<PaymentState, string> = {\n not_paid: \"Not Paid\",\n paid: \"Paid\",\n partially_refunded: \"Partially Refunded\",\n refunded: \"Refunded\",\n};\n\n/**\n * OrderSummary — displays a single order's details, line items, and totals.\n *\n * Accepts either a pre-loaded `order` object or an `orderId` to fetch.\n * Supports polling for live status updates.\n */\nexport function OrderSummary({\n order: orderProp,\n orderId,\n poll = false,\n renderLineItem,\n onReorder,\n onStatusChange,\n className,\n classNames,\n}: OrderSummaryProps): React.ReactElement {\n const { order: fetched, isLoading } = useOrder(orderProp ? null : orderId, {\n enabled: !orderProp && !!orderId,\n poll,\n onStatusChange,\n });\n\n const order = orderProp ?? fetched;\n\n if (isLoading && !order) {\n return (\n <div\n data-cimplify-order-summary\n aria-busy=\"true\"\n className={cn(className, classNames?.root, classNames?.loading)}\n >\n <div data-cimplify-order-summary-skeleton />\n </div>\n );\n }\n\n if (!order) {\n return (\n <div data-cimplify-order-summary className={cn(className, classNames?.root)}>\n <p>Order not found.</p>\n </div>\n );\n }\n\n return (\n <div data-cimplify-order-summary className={cn(className, classNames?.root)}>\n {/* Header */}\n <div data-cimplify-order-header className={classNames?.header}>\n <span data-cimplify-order-id className={classNames?.orderId}>\n Order #{order.user_friendly_id}\n </span>\n <span\n data-cimplify-order-status\n data-status={order.status}\n className={classNames?.status}\n >\n {STATUS_LABELS[order.status] ?? order.status}\n </span>\n {order.payment_state && (\n <span\n data-cimplify-order-payment-state\n data-payment-state={order.payment_state}\n className={classNames?.paymentState}\n >\n {PAYMENT_STATE_LABELS[order.payment_state] ?? order.payment_state}\n </span>\n )}\n </div>\n\n {/* Fulfillment details */}\n {order.order_type === \"pickup\" && order.pickup_time && (\n <div data-cimplify-order-fulfillment className={classNames?.fulfillmentDetails}>\n <span>Pickup time: {new Date(order.pickup_time).toLocaleString()}</span>\n </div>\n )}\n {order.order_type === \"dine-in\" && order.table_number && (\n <div data-cimplify-order-fulfillment className={classNames?.fulfillmentDetails}>\n <span>Table: {order.table_number}</span>\n </div>\n )}\n\n {/* Date */}\n <time data-cimplify-order-date dateTime={order.created_at}>\n {new Date(order.created_at).toLocaleDateString(undefined, {\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n })}\n </time>\n\n {/* Customer info */}\n {(order.customer_name || order.customer_email) && (\n <div data-cimplify-order-customer className={classNames?.customer}>\n {order.customer_name && (\n <span data-cimplify-order-customer-name>{order.customer_name}</span>\n )}\n {order.customer_email && (\n <span data-cimplify-order-customer-email>{order.customer_email}</span>\n )}\n </div>\n )}\n\n {/* Delivery address */}\n {order.delivery_address && (\n <div data-cimplify-order-delivery-address className={classNames?.deliveryAddress}>\n <span>Delivery address</span>\n <p>{order.delivery_address}</p>\n </div>\n )}\n\n {/* Line items */}\n <div data-cimplify-order-items className={classNames?.items}>\n {order.items.map((item) =>\n renderLineItem ? (\n <React.Fragment key={item.id}>{renderLineItem(item)}</React.Fragment>\n ) : (\n <div key={item.id} data-cimplify-order-line-item className={classNames?.lineItem}>\n <div data-cimplify-order-line-info>\n <span data-cimplify-order-line-qty>{item.quantity}×</span>\n <span data-cimplify-order-line-key>{item.line_key}</span>\n </div>\n <Price amount={item.price} />\n {item.fulfillment_type === \"digital\" && item.fulfillment_id && (\n <a\n href={item.fulfillment_id}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n data-cimplify-order-line-download\n className=\"text-sm text-primary underline\"\n >\n Download\n </a>\n )}\n\n {/* Service items: show scheduling and confirmation details */}\n {item.configuration.type === \"service\" && (\n <div data-cimplify-order-service-info className={classNames?.serviceInfo}>\n {item.configuration.scheduled_start && (\n <span>{\"\\u{1F4C5}\"} {new Date(item.configuration.scheduled_start).toLocaleDateString()} at {new Date(item.configuration.scheduled_start).toLocaleTimeString([], { hour: \"2-digit\", minute: \"2-digit\" })}</span>\n )}\n {item.configuration.confirmation_code && (\n <span>Confirmation: {item.configuration.confirmation_code}</span>\n )}\n {item.configuration.service_status && (\n <span data-status={item.configuration.service_status}>{item.configuration.service_status}</span>\n )}\n </div>\n )}\n\n {/* Digital items: instant delivery badge */}\n {item.configuration.type === \"digital\" && (\n <div data-cimplify-order-digital-info className={classNames?.digitalInfo}>\n <span>{\"\\u26A1\"} Instant digital delivery</span>\n </div>\n )}\n\n {/* Bundle items: component breakdown */}\n {item.configuration.type === \"bundle\" && item.configuration.resolved && (\n <div data-cimplify-order-bundle-breakdown className={classNames?.bundleBreakdown}>\n {item.configuration.resolved.selections.map((sel) => (\n <div key={sel.component_id} data-product-type={sel.product_type}>\n <span>{sel.quantity}× {sel.product_name}</span>\n {sel.product_type === \"service\" && sel.scheduling?.scheduled_start && (\n <span> — {new Date(sel.scheduling.scheduled_start).toLocaleDateString()}</span>\n )}\n {sel.product_type === \"digital\" && <span> — Digital</span>}\n </div>\n ))}\n </div>\n )}\n\n {/* Composite items: component breakdown with pricing */}\n {item.configuration.type === \"composite\" && item.configuration.resolved && (\n <div data-cimplify-order-composite-breakdown className={classNames?.compositeBreakdown}>\n {item.configuration.resolved.selections.map((sel) => (\n <div key={sel.component_id} data-product-type={sel.product_type}>\n <span>{sel.quantity}× {sel.component_name}</span>\n {sel.product_type === \"service\" && sel.scheduling?.scheduled_start && (\n <span> — {new Date(sel.scheduling.scheduled_start).toLocaleDateString()}</span>\n )}\n <Price amount={sel.unit_price} />\n </div>\n ))}\n </div>\n )}\n </div>\n ),\n )}\n </div>\n\n {/* Customer notes / special instructions */}\n {order.customer_notes && order.customer_notes.length > 0 && (\n <div data-cimplify-order-notes className={classNames?.notes}>\n <span>Notes</span>\n {order.customer_notes.map((note, index) => (\n <p key={index} data-cimplify-order-note>{note}</p>\n ))}\n </div>\n )}\n\n {/* Totals */}\n <div data-cimplify-order-totals className={classNames?.totals}>\n {order.total_discount != null && parsePrice(order.total_discount) !== 0 && (\n <div data-cimplify-order-discount>\n <span>Discount</span>\n <Price amount={order.total_discount} prefix=\"-\" />\n </div>\n )}\n {order.delivery_fee != null && parsePrice(order.delivery_fee) > 0 && (\n <div data-cimplify-order-delivery-fee>\n <span>Delivery fee</span>\n <Price amount={order.delivery_fee} />\n </div>\n )}\n {order.service_charge != null && parsePrice(order.service_charge) !== 0 && (\n <div data-cimplify-order-service-charge>\n <span>Service charge</span>\n <Price amount={order.service_charge} />\n </div>\n )}\n {order.tax != null && parsePrice(order.tax) !== 0 && (\n <div data-cimplify-order-tax>\n <span>Tax</span>\n <Price amount={order.tax} />\n </div>\n )}\n <div data-cimplify-order-total>\n <span>Total</span>\n <Price amount={order.total_price} />\n </div>\n </div>\n\n {/* Tracking */}\n {order.tracking_link && (\n <a\n href={order.tracking_link}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n data-cimplify-order-tracking\n className={classNames?.trackingLink}\n >\n Track your order\n </a>\n )}\n\n {onReorder && (\n <button\n type=\"button\"\n onClick={() => onReorder(order)}\n data-cimplify-order-reorder\n className={classNames?.reorderButton}\n >\n Reorder\n </button>\n )}\n </div>\n );\n}\n"
|
|
13
|
+
"content": "\"use client\";\n\nimport React from \"react\";\nimport type { Order, LineItem, OrderStatus, PaymentState } from \"@cimplify/sdk\";\nimport { useOrder } from \"@cimplify/sdk/react\";\nimport { Price } from \"@cimplify/sdk/react\";\nimport { parsePrice } from \"@cimplify/sdk\";\nimport { cn } from \"@cimplify/sdk/react\";\n\nexport interface OrderSummaryClassNames {\n root?: string;\n header?: string;\n orderId?: string;\n status?: string;\n paymentState?: string;\n fulfillmentDetails?: string;\n deliveryAddress?: string;\n items?: string;\n lineItem?: string;\n notes?: string;\n totals?: string;\n customer?: string;\n loading?: string;\n serviceInfo?: string;\n digitalInfo?: string;\n bundleBreakdown?: string;\n compositeBreakdown?: string;\n trackingLink?: string;\n reorderButton?: string;\n}\n\nexport interface OrderSummaryProps {\n /** Pass an Order object directly (skips fetch). */\n order?: Order;\n /** Or pass an order ID to fetch via useOrder. */\n orderId?: string;\n /** Poll for status updates. */\n poll?: boolean;\n /** Custom line item renderer. */\n renderLineItem?: (item: LineItem) => React.ReactNode;\n /** Called when the reorder button is clicked. */\n onReorder?: (order: Order) => void;\n /** Called when the order status changes during polling. */\n onStatusChange?: (previousStatus: OrderStatus, newStatus: OrderStatus, order: Order) => void;\n className?: string;\n classNames?: OrderSummaryClassNames;\n}\n\nconst STATUS_LABELS: Record<OrderStatus, string> = {\n pending: \"Pending\",\n created: \"Created\",\n confirmed: \"Confirmed\",\n in_preparation: \"In Preparation\",\n ready_to_serve: \"Ready\",\n partially_served: \"Partially Served\",\n served: \"Served\",\n delivered: \"Delivered\",\n picked_up: \"Picked Up\",\n completed: \"Completed\",\n cancelled: \"Cancelled\",\n refunded: \"Refunded\",\n};\n\nconst PAYMENT_STATE_LABELS: Record<PaymentState, string> = {\n not_paid: \"Not Paid\",\n partially_paid: \"Partially Paid\",\n paid: \"Paid\",\n partially_refunded: \"Partially Refunded\",\n refunded: \"Refunded\",\n};\n\n/**\n * OrderSummary — displays a single order's details, line items, and totals.\n *\n * Accepts either a pre-loaded `order` object or an `orderId` to fetch.\n * Supports polling for live status updates.\n */\nexport function OrderSummary({\n order: orderProp,\n orderId,\n poll = false,\n renderLineItem,\n onReorder,\n onStatusChange,\n className,\n classNames,\n}: OrderSummaryProps): React.ReactElement {\n const { order: fetched, isLoading } = useOrder(orderProp ? null : orderId, {\n enabled: !orderProp && !!orderId,\n poll,\n onStatusChange,\n });\n\n const order = orderProp ?? fetched;\n\n if (isLoading && !order) {\n return (\n <div\n data-cimplify-order-summary\n aria-busy=\"true\"\n className={cn(className, classNames?.root, classNames?.loading)}\n >\n <div data-cimplify-order-summary-skeleton />\n </div>\n );\n }\n\n if (!order) {\n return (\n <div data-cimplify-order-summary className={cn(className, classNames?.root)}>\n <p>Order not found.</p>\n </div>\n );\n }\n\n return (\n <div data-cimplify-order-summary className={cn(className, classNames?.root)}>\n {/* Header */}\n <div data-cimplify-order-header className={classNames?.header}>\n <span data-cimplify-order-id className={classNames?.orderId}>\n Order #{order.user_friendly_id}\n </span>\n <span\n data-cimplify-order-status\n data-status={order.status}\n className={classNames?.status}\n >\n {STATUS_LABELS[order.status] ?? order.status}\n </span>\n {order.payment_state && (\n <span\n data-cimplify-order-payment-state\n data-payment-state={order.payment_state}\n className={classNames?.paymentState}\n >\n {PAYMENT_STATE_LABELS[order.payment_state] ?? order.payment_state}\n </span>\n )}\n </div>\n\n {/* Fulfillment details */}\n {order.order_type === \"pickup\" && order.pickup_time && (\n <div data-cimplify-order-fulfillment className={classNames?.fulfillmentDetails}>\n <span>Pickup time: {new Date(order.pickup_time).toLocaleString()}</span>\n </div>\n )}\n {order.order_type === \"dine-in\" && order.table_number && (\n <div data-cimplify-order-fulfillment className={classNames?.fulfillmentDetails}>\n <span>Table: {order.table_number}</span>\n </div>\n )}\n\n {/* Date */}\n <time data-cimplify-order-date dateTime={order.created_at}>\n {new Date(order.created_at).toLocaleDateString(undefined, {\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n })}\n </time>\n\n {/* Customer info */}\n {(order.customer_name || order.customer_email) && (\n <div data-cimplify-order-customer className={classNames?.customer}>\n {order.customer_name && (\n <span data-cimplify-order-customer-name>{order.customer_name}</span>\n )}\n {order.customer_email && (\n <span data-cimplify-order-customer-email>{order.customer_email}</span>\n )}\n </div>\n )}\n\n {/* Delivery address */}\n {order.delivery_address && (\n <div data-cimplify-order-delivery-address className={classNames?.deliveryAddress}>\n <span>Delivery address</span>\n <p>{order.delivery_address}</p>\n </div>\n )}\n\n {/* Line items */}\n <div data-cimplify-order-items className={classNames?.items}>\n {order.items.map((item) =>\n renderLineItem ? (\n <React.Fragment key={item.id}>{renderLineItem(item)}</React.Fragment>\n ) : (\n <div key={item.id} data-cimplify-order-line-item className={classNames?.lineItem}>\n <div data-cimplify-order-line-info>\n <span data-cimplify-order-line-qty>{item.quantity}×</span>\n <span data-cimplify-order-line-key>{item.line_key}</span>\n </div>\n <Price amount={item.price} />\n {item.fulfillment_type === \"digital\" && item.fulfillment_id && (\n <a\n href={item.fulfillment_id}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n data-cimplify-order-line-download\n className=\"text-sm text-primary underline\"\n >\n Download\n </a>\n )}\n\n {/* Service items: show scheduling and confirmation details */}\n {item.configuration.type === \"service\" && (\n <div data-cimplify-order-service-info className={classNames?.serviceInfo}>\n {item.configuration.scheduled_start && (\n <span>{\"\\u{1F4C5}\"} {new Date(item.configuration.scheduled_start).toLocaleDateString()} at {new Date(item.configuration.scheduled_start).toLocaleTimeString([], { hour: \"2-digit\", minute: \"2-digit\" })}</span>\n )}\n {item.configuration.confirmation_code && (\n <span>Confirmation: {item.configuration.confirmation_code}</span>\n )}\n {item.configuration.service_status && (\n <span data-status={item.configuration.service_status}>{item.configuration.service_status}</span>\n )}\n </div>\n )}\n\n {/* Digital items: instant delivery badge */}\n {item.configuration.type === \"digital\" && (\n <div data-cimplify-order-digital-info className={classNames?.digitalInfo}>\n <span>{\"\\u26A1\"} Instant digital delivery</span>\n </div>\n )}\n\n {/* Bundle items: component breakdown */}\n {item.configuration.type === \"bundle\" && item.configuration.resolved && (\n <div data-cimplify-order-bundle-breakdown className={classNames?.bundleBreakdown}>\n {item.configuration.resolved.selections.map((sel) => (\n <div key={sel.component_id} data-product-type={sel.product_type}>\n <span>{sel.quantity}× {sel.product_name}</span>\n {sel.product_type === \"service\" && sel.scheduling?.scheduled_start && (\n <span> — {new Date(sel.scheduling.scheduled_start).toLocaleDateString()}</span>\n )}\n {sel.product_type === \"digital\" && <span> — Digital</span>}\n </div>\n ))}\n </div>\n )}\n\n {/* Composite items: component breakdown with pricing */}\n {item.configuration.type === \"composite\" && item.configuration.resolved && (\n <div data-cimplify-order-composite-breakdown className={classNames?.compositeBreakdown}>\n {item.configuration.resolved.selections.map((sel) => (\n <div key={sel.component_id} data-product-type={sel.product_type}>\n <span>{sel.quantity}× {sel.component_name}</span>\n {sel.product_type === \"service\" && sel.scheduling?.scheduled_start && (\n <span> — {new Date(sel.scheduling.scheduled_start).toLocaleDateString()}</span>\n )}\n <Price amount={sel.unit_price} />\n </div>\n ))}\n </div>\n )}\n </div>\n ),\n )}\n </div>\n\n {/* Customer notes / special instructions */}\n {order.customer_notes && order.customer_notes.length > 0 && (\n <div data-cimplify-order-notes className={classNames?.notes}>\n <span>Notes</span>\n {order.customer_notes.map((note, index) => (\n <p key={index} data-cimplify-order-note>{note}</p>\n ))}\n </div>\n )}\n\n {/* Totals */}\n <div data-cimplify-order-totals className={classNames?.totals}>\n {order.total_discount != null && parsePrice(order.total_discount) !== 0 && (\n <div data-cimplify-order-discount>\n <span>Discount</span>\n <Price amount={order.total_discount} prefix=\"-\" />\n </div>\n )}\n {order.delivery_fee != null && parsePrice(order.delivery_fee) > 0 && (\n <div data-cimplify-order-delivery-fee>\n <span>Delivery fee</span>\n <Price amount={order.delivery_fee} />\n </div>\n )}\n {order.service_charge != null && parsePrice(order.service_charge) !== 0 && (\n <div data-cimplify-order-service-charge>\n <span>Service charge</span>\n <Price amount={order.service_charge} />\n </div>\n )}\n {order.tax != null && parsePrice(order.tax) !== 0 && (\n <div data-cimplify-order-tax>\n <span>Tax</span>\n <Price amount={order.tax} />\n </div>\n )}\n <div data-cimplify-order-total>\n <span>Total</span>\n <Price amount={order.total_price} />\n </div>\n </div>\n\n {/* Tracking */}\n {order.tracking_link && (\n <a\n href={order.tracking_link}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n data-cimplify-order-tracking\n className={classNames?.trackingLink}\n >\n Track your order\n </a>\n )}\n\n {onReorder && (\n <button\n type=\"button\"\n onClick={() => onReorder(order)}\n data-cimplify-order-reorder\n className={classNames?.reorderButton}\n >\n Reorder\n </button>\n )}\n </div>\n );\n}\n"
|
|
14
14
|
}
|
|
15
15
|
]
|
|
16
16
|
}
|