@cimplify/sdk 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.mts +2 -2
- package/dist/advanced.d.ts +2 -2
- package/dist/{chunk-4JSRPSNA.js → chunk-R4AKAGZQ.js} +162 -0
- package/dist/{chunk-MISITC47.mjs → chunk-REXW2PET.mjs} +159 -1
- package/dist/{index-DBM89ktY.d.ts → index-Cjfczg2W.d.ts} +2 -2
- package/dist/{index-2JxW7TuQ.d.mts → index-D4-b5OZO.d.mts} +2 -2
- package/dist/{index-BAu-zmIP.d.ts → index-DijjnO-u.d.mts} +73 -2
- package/dist/{index-DT-24csu.d.mts → index-DwvzjdGi.d.ts} +73 -2
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +25 -9
- package/dist/index.mjs +1 -1
- package/dist/{payment-5a21yzi7.d.mts → payment-BeLHpQMo.d.mts} +155 -1
- package/dist/{payment-5a21yzi7.d.ts → payment-BeLHpQMo.d.ts} +155 -1
- package/dist/{price-BS0Z5Oi9.d.ts → price-C6gfys5B.d.ts} +1 -1
- package/dist/{price-CGPMlQUk.d.mts → price-Dvl1p9AM.d.mts} +1 -1
- package/dist/react.d.mts +86 -4
- package/dist/react.d.ts +86 -4
- package/dist/react.js +1583 -340
- package/dist/react.mjs +1260 -24
- package/dist/styles.css +1 -1
- package/dist/utils.d.mts +3 -3
- package/dist/utils.d.ts +3 -3
- package/package.json +1 -1
- package/registry/cart-summary.json +1 -1
- package/registry/product-card.json +1 -1
- package/registry/product-customizer.json +1 -1
- package/registry/product-page.json +1 -1
|
@@ -256,10 +256,12 @@ type LineConfiguration = {
|
|
|
256
256
|
type: "simple";
|
|
257
257
|
variant?: VariantDetails;
|
|
258
258
|
add_ons?: AddOnDetails;
|
|
259
|
+
customer_inputs?: CustomerInputValue[];
|
|
259
260
|
} | {
|
|
260
261
|
type: "service";
|
|
261
262
|
variant?: VariantDetails;
|
|
262
263
|
add_ons?: AddOnDetails;
|
|
264
|
+
customer_inputs?: CustomerInputValue[];
|
|
263
265
|
scheduled_start?: string;
|
|
264
266
|
scheduled_end?: string;
|
|
265
267
|
confirmation_code?: string;
|
|
@@ -272,16 +274,19 @@ type LineConfiguration = {
|
|
|
272
274
|
input: BundleSelectionInput[];
|
|
273
275
|
resolved?: BundleSelectionData;
|
|
274
276
|
add_ons?: AddOnDetails;
|
|
277
|
+
customer_inputs?: CustomerInputValue[];
|
|
275
278
|
} | {
|
|
276
279
|
type: "composite";
|
|
277
280
|
variant?: VariantDetails;
|
|
278
281
|
input: ComponentSelectionInput[];
|
|
279
282
|
resolved?: CompositeSelectionData;
|
|
280
283
|
add_ons?: AddOnDetails;
|
|
284
|
+
customer_inputs?: CustomerInputValue[];
|
|
281
285
|
} | {
|
|
282
286
|
type: "digital";
|
|
283
287
|
variant?: VariantDetails;
|
|
284
288
|
add_ons?: AddOnDetails;
|
|
289
|
+
customer_inputs?: CustomerInputValue[];
|
|
285
290
|
digital_type?: string;
|
|
286
291
|
fulfillment_id?: string;
|
|
287
292
|
};
|
|
@@ -502,6 +507,12 @@ interface CartItemDetails {
|
|
|
502
507
|
bundle_resolved?: BundleSelectionData;
|
|
503
508
|
composite_selections?: ComponentSelectionInput[];
|
|
504
509
|
composite_resolved?: CompositeSelectionData;
|
|
510
|
+
customer_inputs?: Array<{
|
|
511
|
+
field_id: string;
|
|
512
|
+
field_name: string;
|
|
513
|
+
field_type: string;
|
|
514
|
+
value: unknown;
|
|
515
|
+
}>;
|
|
505
516
|
applied_discount_ids: string[];
|
|
506
517
|
discount_details?: DiscountDetails;
|
|
507
518
|
created_at: string;
|
|
@@ -546,6 +557,10 @@ interface AddToCartInput {
|
|
|
546
557
|
staff_id?: string;
|
|
547
558
|
resource_id?: string;
|
|
548
559
|
billing_plan_id?: string;
|
|
560
|
+
customer_inputs?: Array<{
|
|
561
|
+
field_id: string;
|
|
562
|
+
value: unknown;
|
|
563
|
+
}>;
|
|
549
564
|
}
|
|
550
565
|
interface UpdateCartItemInput {
|
|
551
566
|
quantity?: number;
|
|
@@ -603,6 +618,60 @@ interface FormattedPlanOption {
|
|
|
603
618
|
pricePerPeriod: number;
|
|
604
619
|
totalPrice?: number;
|
|
605
620
|
}
|
|
621
|
+
type SubscriptionStatus = "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
622
|
+
interface Subscription {
|
|
623
|
+
id: string;
|
|
624
|
+
customer_id: string;
|
|
625
|
+
billing_plan_id?: string;
|
|
626
|
+
business_id?: string;
|
|
627
|
+
price_id?: string;
|
|
628
|
+
status: SubscriptionStatus;
|
|
629
|
+
current_period_start: string;
|
|
630
|
+
current_period_end: string;
|
|
631
|
+
next_billing_date?: string;
|
|
632
|
+
trial_start?: string;
|
|
633
|
+
trial_end?: string;
|
|
634
|
+
canceled_at?: string;
|
|
635
|
+
cancel_at_period_end: boolean;
|
|
636
|
+
location_id?: string;
|
|
637
|
+
installment_total?: number;
|
|
638
|
+
installment_per_period?: number;
|
|
639
|
+
installment_periods_remaining?: number;
|
|
640
|
+
origin_order_id?: string;
|
|
641
|
+
skip_next_renewal: boolean;
|
|
642
|
+
cycles_completed: number;
|
|
643
|
+
source?: string;
|
|
644
|
+
created_at: string;
|
|
645
|
+
updated_at: string;
|
|
646
|
+
metadata?: Record<string, unknown>;
|
|
647
|
+
}
|
|
648
|
+
interface SubscriptionItem {
|
|
649
|
+
id: string;
|
|
650
|
+
subscription_id: string;
|
|
651
|
+
product_id: string;
|
|
652
|
+
quantity: number;
|
|
653
|
+
added_at: string;
|
|
654
|
+
removed_at?: string;
|
|
655
|
+
metadata?: Record<string, unknown>;
|
|
656
|
+
}
|
|
657
|
+
interface SubscriptionInvoice {
|
|
658
|
+
id: string;
|
|
659
|
+
subscription_id: string;
|
|
660
|
+
amount_due: number;
|
|
661
|
+
amount_paid: number;
|
|
662
|
+
currency: string;
|
|
663
|
+
status: string;
|
|
664
|
+
period_start: string;
|
|
665
|
+
period_end: string;
|
|
666
|
+
created_at: string;
|
|
667
|
+
}
|
|
668
|
+
interface SubscriptionWithDetails {
|
|
669
|
+
subscription: Subscription;
|
|
670
|
+
plan?: ProductBillingPlan;
|
|
671
|
+
product?: Product;
|
|
672
|
+
items: SubscriptionItem[];
|
|
673
|
+
latest_invoice?: SubscriptionInvoice;
|
|
674
|
+
}
|
|
606
675
|
|
|
607
676
|
type ProductType = "product" | "service" | "digital" | "bundle" | "composite";
|
|
608
677
|
declare const PRODUCT_TYPE: {
|
|
@@ -826,9 +895,94 @@ interface Product {
|
|
|
826
895
|
billing_plans?: ProductBillingPlan[];
|
|
827
896
|
quantity_pricing?: QuantityPricingTier[];
|
|
828
897
|
min_order_quantity?: number;
|
|
898
|
+
input_fields?: ProductInputField[];
|
|
829
899
|
upsells?: RelatedProductView[];
|
|
830
900
|
cross_sells?: RelatedProductView[];
|
|
831
901
|
}
|
|
902
|
+
type InputFieldType = "text" | "textarea" | "number" | "select" | "radio" | "checkbox" | "color" | "date" | "file" | "image" | "url" | "address" | "phone" | "email" | "date_time" | "time" | "signature" | "multi_select" | "date_range" | "location";
|
|
903
|
+
declare const INPUT_FIELD_TYPE: {
|
|
904
|
+
Text: "text";
|
|
905
|
+
Textarea: "textarea";
|
|
906
|
+
Number: "number";
|
|
907
|
+
Select: "select";
|
|
908
|
+
Radio: "radio";
|
|
909
|
+
Checkbox: "checkbox";
|
|
910
|
+
Color: "color";
|
|
911
|
+
Date: "date";
|
|
912
|
+
File: "file";
|
|
913
|
+
Image: "image";
|
|
914
|
+
Url: "url";
|
|
915
|
+
Address: "address";
|
|
916
|
+
Phone: "phone";
|
|
917
|
+
Email: "email";
|
|
918
|
+
DateTime: "date_time";
|
|
919
|
+
Time: "time";
|
|
920
|
+
Signature: "signature";
|
|
921
|
+
MultiSelect: "multi_select";
|
|
922
|
+
DateRange: "date_range";
|
|
923
|
+
Location: "location";
|
|
924
|
+
};
|
|
925
|
+
interface AddressValue {
|
|
926
|
+
formatted_address: string;
|
|
927
|
+
street_address?: string;
|
|
928
|
+
apartment?: string;
|
|
929
|
+
city?: string;
|
|
930
|
+
region?: string;
|
|
931
|
+
postal_code?: string;
|
|
932
|
+
country?: string;
|
|
933
|
+
latitude: number;
|
|
934
|
+
longitude: number;
|
|
935
|
+
place_id?: string;
|
|
936
|
+
}
|
|
937
|
+
interface PhoneValue {
|
|
938
|
+
country_code: string;
|
|
939
|
+
number: string;
|
|
940
|
+
formatted: string;
|
|
941
|
+
}
|
|
942
|
+
interface DateRangeValue {
|
|
943
|
+
start: string;
|
|
944
|
+
end: string;
|
|
945
|
+
}
|
|
946
|
+
interface LocationValue {
|
|
947
|
+
latitude: number;
|
|
948
|
+
longitude: number;
|
|
949
|
+
label?: string;
|
|
950
|
+
}
|
|
951
|
+
interface SignatureValue {
|
|
952
|
+
data_url: string;
|
|
953
|
+
signer_name?: string;
|
|
954
|
+
}
|
|
955
|
+
interface InputFieldValidation {
|
|
956
|
+
max_length?: number;
|
|
957
|
+
min_length?: number;
|
|
958
|
+
min_value?: number;
|
|
959
|
+
max_value?: number;
|
|
960
|
+
accepted_formats?: string[];
|
|
961
|
+
max_size_mb?: number;
|
|
962
|
+
pattern?: string;
|
|
963
|
+
allowed_countries?: string[];
|
|
964
|
+
max_selections?: number;
|
|
965
|
+
}
|
|
966
|
+
interface ProductInputField {
|
|
967
|
+
id: string;
|
|
968
|
+
product_id: string;
|
|
969
|
+
name: string;
|
|
970
|
+
slug: string;
|
|
971
|
+
field_type: InputFieldType;
|
|
972
|
+
is_required: boolean;
|
|
973
|
+
display_order: number;
|
|
974
|
+
placeholder?: string;
|
|
975
|
+
help_text?: string;
|
|
976
|
+
validation?: InputFieldValidation;
|
|
977
|
+
options?: string[];
|
|
978
|
+
price_adjustment?: Money;
|
|
979
|
+
}
|
|
980
|
+
interface CustomerInputValue {
|
|
981
|
+
field_id: string;
|
|
982
|
+
field_name: string;
|
|
983
|
+
field_type: string;
|
|
984
|
+
value: unknown;
|
|
985
|
+
}
|
|
832
986
|
interface QuantityPricingTier {
|
|
833
987
|
min_quantity: number;
|
|
834
988
|
max_quantity?: number;
|
|
@@ -1453,4 +1607,4 @@ interface SubmitAuthorizationInput {
|
|
|
1453
1607
|
value: string;
|
|
1454
1608
|
}
|
|
1455
1609
|
|
|
1456
|
-
export { type
|
|
1610
|
+
export { type InputFieldValidation as $, type ApiError as A, type CustomAttributeDefinition as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type CustomAttributeValue as F, type PropertySource as G, type ProductProperty as H, type InventoryType as I, type PropertyFacet as J, type FacetValue as K, type KnowledgeArticle as L, type Money as M, type Product as N, type InputFieldType as O, type PaginationParams as P, INPUT_FIELD_TYPE as Q, RENDER_HINT as R, type SalesChannel as S, type TaxonomyAttributeTemplate as T, type AddressValue as U, type VariantStrategy as V, type PhoneValue as W, type DateRangeValue as X, type LocationValue as Y, ZERO as Z, type SignatureValue as _, type CurrencyCode as a, type CartChannel as a$, type ProductInputField as a0, type CustomerInputValue as a1, type QuantityPricingTier as a2, type RelatedProductView as a3, type ProductWithDetails as a4, type VariantView as a5, type ProductVariant as a6, type VariantDisplayAttribute as a7, type VariantAxis as a8, type VariantAxisWithValues as a9, type GroupPricingBehavior as aA, type ComponentSourceType as aB, type Composite as aC, type CompositeWithDetails as aD, type ComponentGroup as aE, type ComponentGroupWithComponents as aF, type CompositeGroupView as aG, type CompositeComponentView as aH, type CompositeComponent as aI, type ComponentSelectionInput as aJ, type CompositePriceResult as aK, type ComponentPriceBreakdown as aL, type PriceEntryType as aM, type Price as aN, type LocationProductPrice as aO, type ProductAvailability as aP, type ProductTimeProfile as aQ, type ProductTaxonomy as aR, type TaxonomyWithChildren as aS, type ProductAvailabilityNow as aT, type DealBenefitType as aU, type Deal as aV, type ProductDealInfo as aW, type DiscountValidation as aX, type Tag as aY, type TagsResponse as aZ, type CartStatus as a_, type VariantAxisValue as aa, type ProductVariantValue as ab, type VariantLocationAvailability as ac, type VariantAxisSelection as ad, type AddOn as ae, type AddOnWithOptions as af, type AddOnOption as ag, type AddOnOptionPrice as ah, type ProductAddOn as ai, type Category as aj, type CategorySummary as ak, type Collection as al, type CollectionSummary as am, type CollectionProduct as an, type BundlePriceType as ao, type Bundle as ap, type BundleSummary as aq, type BundleProduct as ar, type BundleWithDetails as as, type BundleComponentData as at, type BundleComponentInfo as au, type BundleComponentView as av, type BundleComponentVariantView as aw, type VariantAxisView as ax, type VariantAxisValueView as ay, type CompositePricingMode as az, moneyFromNumber as b, type SubscriptionItem as b$, type PriceSource as b0, type AdjustmentType as b1, type PriceAdjustment as b2, type TaxPathComponent as b3, type PricePathTaxInfo as b4, type PriceDecisionPath as b5, type BenefitType as b6, type AppliedDiscount as b7, type DiscountBreakdown as b8, type DiscountDetails as b9, type CartItemDetails as bA, type UICart as bB, type UICartResponse as bC, type AddToCartInput as bD, type UpdateCartItemInput as bE, type CartSummary as bF, type PaymentStatus as bG, type PaymentProvider as bH, type PaymentMethodType as bI, type AddressAuthorizationData as bJ, type AuthorizationType as bK, type PaymentProcessingState as bL, type PaymentMethod as bM, type Payment as bN, type InitializePaymentResult as bO, type PaymentResponse as bP, type PaymentStatusResponse as bQ, type PaymentErrorDetails as bR, type SubmitAuthorizationInput as bS, type BillingFrequency as bT, type BillingPlanType as bU, type BillingMarkupType as bV, type ProductBillingPlan as bW, type EligiblePlansQuery as bX, type FormattedPlanOption as bY, type SubscriptionStatus as bZ, type Subscription as b_, type SelectedAddOnOption as ba, type AddOnDetails as bb, type CartAddOn as bc, type VariantDetails as bd, type BundleSelectionInput as be, type ComponentSchedulingData as bf, type BundleStoredSelection as bg, type BundleSelectionData as bh, type CompositeStoredSelection as bi, type CompositePriceBreakdown as bj, type CompositeSelectionData as bk, type LineConfiguration as bl, type Cart as bm, type CartItem as bn, type CartTotals as bo, type DisplayCart as bp, type DisplayCartItem as bq, type DisplayAddOn as br, type DisplayAddOnOption as bs, type UICartBusiness as bt, type UICartLocation as bu, type UICartCustomer as bv, type UICartPricing as bw, type AddOnOptionDetails as bx, type AddOnGroupDetails as by, type VariantDetailsDTO as bz, currencyCode as c, type SubscriptionInvoice as c0, type SubscriptionWithDetails as c1, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isSupportedCurrency as i, isCimplifyError as j, getErrorHint as k, enrichError as l, money as m, isRetryableError as n, type ProductType as o, PRODUCT_TYPE as p, type ProductRenderHint as q, type DigitalProductType as r, type DepositType as s, type DurationUnit as t, DURATION_UNIT as u, type AttributeType as v, type AttributeAppliesTo as w, type AttributeVisibility as x, type MeasurementValue as y, type AttributeValidationRules as z };
|
package/dist/react.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.mjs';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.mjs';
|
|
4
|
-
import { C as CimplifyClient,
|
|
5
|
-
import { a as CurrencyCode, N as Product, d as Pagination, h as CimplifyError,
|
|
6
|
-
import { P as ProductWithPrice } from './price-
|
|
4
|
+
import { C as CimplifyClient, ag as ProcessCheckoutResult, ai as CheckoutStatus, aj as CheckoutStatusContext, bS as Location, bP as Business, k as ReorderResult, aZ as OrderStatus, ba as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, c3 as Service, c8 as AvailableSlot, c9 as DayAvailability, ce as CustomerBooking, ck as CancelBookingResult, K as ActivityStateResponse, H as SessionMessage, M as ActivityRecommendation, X as DeliveryFeeResponse, cW as FxRateResponse, bZ as StorefrontBootstrap, a4 as ElementsOptions, d8 as AuthenticatedData, d4 as AddressInfo, d5 as PaymentMethodInfo, _ as CimplifyElements, da as ElementsCheckoutResult, af as ProcessCheckoutOptions, b9 as LineItem, c4 as Staff, bX as Room } from './index-DijjnO-u.mjs';
|
|
5
|
+
import { a as CurrencyCode, N as Product, d as Pagination, h as CimplifyError, a4 as ProductWithDetails, aj as Category, M as Money, be as BundleSelectionInput, aJ as ComponentSelectionInput, bh as BundleSelectionData, bk as CompositeSelectionData, al as Collection, aR as ProductTaxonomy, aS as TaxonomyWithChildren, aQ as ProductTimeProfile, aV as Deal, aW as ProductDealInfo, aX as DiscountValidation, aq as BundleSummary, aK as CompositePriceResult, bZ as SubscriptionStatus, b_ as Subscription, c1 as SubscriptionWithDetails, B as CustomAttributeDefinition, J as PropertyFacet, bW as ProductBillingPlan, a5 as VariantView, a9 as VariantAxisWithValues, af as AddOnWithOptions, av as BundleComponentView, ao as BundlePriceType, aG as CompositeGroupView, bp as DisplayCart, a0 as ProductInputField, F as CustomAttributeValue, H as ProductProperty, a2 as QuantityPricingTier } from './payment-BeLHpQMo.mjs';
|
|
6
|
+
import { P as ProductWithPrice } from './price-Dvl1p9AM.mjs';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
|
8
8
|
|
|
9
9
|
interface UserIdentity {
|
|
@@ -243,6 +243,12 @@ interface UseCartItem {
|
|
|
243
243
|
serviceStatus?: string;
|
|
244
244
|
bundleResolved?: BundleSelectionData;
|
|
245
245
|
compositeResolved?: CompositeSelectionData;
|
|
246
|
+
customerInputs?: Array<{
|
|
247
|
+
field_id: string;
|
|
248
|
+
field_name: string;
|
|
249
|
+
field_type: string;
|
|
250
|
+
value: unknown;
|
|
251
|
+
}>;
|
|
246
252
|
}
|
|
247
253
|
interface AddToCartOptions {
|
|
248
254
|
locationId?: string;
|
|
@@ -259,6 +265,10 @@ interface AddToCartOptions {
|
|
|
259
265
|
staffId?: string;
|
|
260
266
|
resourceId?: string;
|
|
261
267
|
billingPlanId?: string;
|
|
268
|
+
customerInputs?: Array<{
|
|
269
|
+
field_id: string;
|
|
270
|
+
value: unknown;
|
|
271
|
+
}>;
|
|
262
272
|
}
|
|
263
273
|
interface UseCartOptions {
|
|
264
274
|
client?: CimplifyClient;
|
|
@@ -517,6 +527,32 @@ interface UseOrdersResult {
|
|
|
517
527
|
}
|
|
518
528
|
declare function useOrders(options?: UseOrdersOptions): UseOrdersResult;
|
|
519
529
|
|
|
530
|
+
interface UseSubscriptionsOptions {
|
|
531
|
+
status?: SubscriptionStatus;
|
|
532
|
+
enabled?: boolean;
|
|
533
|
+
}
|
|
534
|
+
interface UseSubscriptionsResult {
|
|
535
|
+
subscriptions: Subscription[];
|
|
536
|
+
isLoading: boolean;
|
|
537
|
+
error: CimplifyError | null;
|
|
538
|
+
refetch: () => Promise<void>;
|
|
539
|
+
}
|
|
540
|
+
declare function useSubscriptions(options?: UseSubscriptionsOptions): UseSubscriptionsResult;
|
|
541
|
+
interface UseSubscriptionOptions {
|
|
542
|
+
enabled?: boolean;
|
|
543
|
+
}
|
|
544
|
+
interface UseSubscriptionResult {
|
|
545
|
+
subscription: SubscriptionWithDetails | null;
|
|
546
|
+
isLoading: boolean;
|
|
547
|
+
error: CimplifyError | null;
|
|
548
|
+
cancel: (reason?: string) => Promise<void>;
|
|
549
|
+
pause: () => Promise<void>;
|
|
550
|
+
resume: () => Promise<void>;
|
|
551
|
+
skipNext: () => Promise<void>;
|
|
552
|
+
refetch: () => Promise<void>;
|
|
553
|
+
}
|
|
554
|
+
declare function useSubscription(id: string | null | undefined, options?: UseSubscriptionOptions): UseSubscriptionResult;
|
|
555
|
+
|
|
520
556
|
interface UseServicesOptions extends CachedQueryBaseOptions {
|
|
521
557
|
}
|
|
522
558
|
interface UseServicesResult {
|
|
@@ -945,6 +981,7 @@ interface CartSummaryClassNames {
|
|
|
945
981
|
digitalInfo?: string;
|
|
946
982
|
bundleBreakdown?: string;
|
|
947
983
|
compositeBreakdown?: string;
|
|
984
|
+
customerInputs?: string;
|
|
948
985
|
}
|
|
949
986
|
interface CartSummaryProps {
|
|
950
987
|
/** Optional server cart for extended pricing details (delivery fee, service charge, discounts). */
|
|
@@ -995,6 +1032,39 @@ interface AvailabilityBadgeProps {
|
|
|
995
1032
|
*/
|
|
996
1033
|
declare function AvailabilityBadge({ product, isAvailable, isInStock, stockQuantity, lowStockThreshold, locationId, className, classNames, }: AvailabilityBadgeProps): React$1.ReactElement | null;
|
|
997
1034
|
|
|
1035
|
+
interface CustomerInputFieldsClassNames {
|
|
1036
|
+
root?: string;
|
|
1037
|
+
field?: string;
|
|
1038
|
+
label?: string;
|
|
1039
|
+
required?: string;
|
|
1040
|
+
helpText?: string;
|
|
1041
|
+
input?: string;
|
|
1042
|
+
select?: string;
|
|
1043
|
+
textarea?: string;
|
|
1044
|
+
fileInput?: string;
|
|
1045
|
+
colorInput?: string;
|
|
1046
|
+
radioGroup?: string;
|
|
1047
|
+
radioOption?: string;
|
|
1048
|
+
checkboxLabel?: string;
|
|
1049
|
+
priceAdjustment?: string;
|
|
1050
|
+
addressInput?: string;
|
|
1051
|
+
phoneInput?: string;
|
|
1052
|
+
signatureCanvas?: string;
|
|
1053
|
+
multiSelectGroup?: string;
|
|
1054
|
+
multiSelectOption?: string;
|
|
1055
|
+
dateRangeInput?: string;
|
|
1056
|
+
locationInput?: string;
|
|
1057
|
+
}
|
|
1058
|
+
interface CustomerInputFieldsProps {
|
|
1059
|
+
fields: ProductInputField[];
|
|
1060
|
+
values: Record<string, unknown>;
|
|
1061
|
+
onChange: (values: Record<string, unknown>) => void;
|
|
1062
|
+
onFileUpload?: (file: File, field: ProductInputField) => Promise<string>;
|
|
1063
|
+
className?: string;
|
|
1064
|
+
classNames?: CustomerInputFieldsClassNames;
|
|
1065
|
+
}
|
|
1066
|
+
declare function CustomerInputFields({ fields, values, onChange, onFileUpload, className, classNames, }: CustomerInputFieldsProps): React$1.ReactElement | null;
|
|
1067
|
+
|
|
998
1068
|
interface SaleBadgeClassNames {
|
|
999
1069
|
root?: string;
|
|
1000
1070
|
percentage?: string;
|
|
@@ -1112,6 +1182,10 @@ declare function WholesaleProductCard({ product, onQuickAdd, renderImage, render
|
|
|
1112
1182
|
|
|
1113
1183
|
declare function DigitalProductCard({ product, renderImage, renderLink, className, }: CardLayoutProps): React$1.ReactElement;
|
|
1114
1184
|
|
|
1185
|
+
declare function BundleProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps): React$1.ReactElement;
|
|
1186
|
+
|
|
1187
|
+
declare function CompositeProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps): React$1.ReactElement;
|
|
1188
|
+
|
|
1115
1189
|
declare function CompactServiceCard({ product, renderImage, renderLink, className, }: ServiceCardLayoutProps): React$1.ReactElement;
|
|
1116
1190
|
|
|
1117
1191
|
declare function ScheduleServiceCard({ product, slots, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps): React$1.ReactElement;
|
|
@@ -1129,6 +1203,8 @@ declare enum CardVariant {
|
|
|
1129
1203
|
Retail = "retail",
|
|
1130
1204
|
Wholesale = "wholesale",
|
|
1131
1205
|
Digital = "digital",
|
|
1206
|
+
Bundle = "bundle",
|
|
1207
|
+
Composite = "composite",
|
|
1132
1208
|
Standard = "standard",
|
|
1133
1209
|
Compact = "compact",
|
|
1134
1210
|
Schedule = "schedule",
|
|
@@ -1806,6 +1882,8 @@ declare enum ProductTemplate {
|
|
|
1806
1882
|
Wholesale = "wholesale",
|
|
1807
1883
|
Service = "service",
|
|
1808
1884
|
Digital = "digital",
|
|
1885
|
+
Bundle = "bundle",
|
|
1886
|
+
Composite = "composite",
|
|
1809
1887
|
Physical = "physical"
|
|
1810
1888
|
}
|
|
1811
1889
|
interface ProductPageClassNames {
|
|
@@ -1850,6 +1928,10 @@ declare function ServiceProductLayout({ product, onAddToCart, renderBreadcrumb,
|
|
|
1850
1928
|
|
|
1851
1929
|
declare function DigitalProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React$1.ReactElement;
|
|
1852
1930
|
|
|
1931
|
+
declare function BundleProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React$1.ReactElement;
|
|
1932
|
+
|
|
1933
|
+
declare function CompositeProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React$1.ReactElement;
|
|
1934
|
+
|
|
1853
1935
|
interface CartLayoutProps {
|
|
1854
1936
|
/** Cart state from useCart hook. */
|
|
1855
1937
|
cart: UseCartResult;
|
|
@@ -2483,4 +2565,4 @@ interface ResourcePickerProps {
|
|
|
2483
2565
|
declare function roomToResource(room: Room): Resource;
|
|
2484
2566
|
declare function ResourcePicker({ resources, selectedResourceId, onResourceSelect, showAnyOption, anyLabel, renderImage, className, classNames, }: ResourcePickerProps): React$1.ReactElement;
|
|
2485
2567
|
|
|
2486
|
-
export { AccommodationCard, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyAccount, type CimplifyAccountProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, FeaturedCollectionLayout, FoodProductCard, FoodProductLayout, InventoryBadge, LeaseServiceCard, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MetadataStringList, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, StoreNav, type StoreNavClassNames, type StoreNavProps, SubscriptionCard, TagPills, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCategories, useCheckout, useCimplify, useCimplifyClient, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
|
2568
|
+
export { AccommodationCard, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyAccount, type CimplifyAccountProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, FeaturedCollectionLayout, FoodProductCard, FoodProductLayout, InventoryBadge, LeaseServiceCard, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MetadataStringList, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, StoreNav, type StoreNavClassNames, type StoreNavProps, SubscriptionCard, TagPills, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCategories, useCheckout, useCimplify, useCimplifyClient, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { A as AdSlot, a as AdPosition, e as AdContextValue } from './ads-BxbWrwqp.js';
|
|
3
3
|
export { c as AdConfig, g as getVariantDisplayName } from './ads-BxbWrwqp.js';
|
|
4
|
-
import { C as CimplifyClient,
|
|
5
|
-
import { a as CurrencyCode, N as Product, d as Pagination, h as CimplifyError,
|
|
6
|
-
import { P as ProductWithPrice } from './price-
|
|
4
|
+
import { C as CimplifyClient, ag as ProcessCheckoutResult, ai as CheckoutStatus, aj as CheckoutStatusContext, bS as Location, bP as Business, k as ReorderResult, aZ as OrderStatus, ba as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, c3 as Service, c8 as AvailableSlot, c9 as DayAvailability, ce as CustomerBooking, ck as CancelBookingResult, K as ActivityStateResponse, H as SessionMessage, M as ActivityRecommendation, X as DeliveryFeeResponse, cW as FxRateResponse, bZ as StorefrontBootstrap, a4 as ElementsOptions, d8 as AuthenticatedData, d4 as AddressInfo, d5 as PaymentMethodInfo, _ as CimplifyElements, da as ElementsCheckoutResult, af as ProcessCheckoutOptions, b9 as LineItem, c4 as Staff, bX as Room } from './index-DwvzjdGi.js';
|
|
5
|
+
import { a as CurrencyCode, N as Product, d as Pagination, h as CimplifyError, a4 as ProductWithDetails, aj as Category, M as Money, be as BundleSelectionInput, aJ as ComponentSelectionInput, bh as BundleSelectionData, bk as CompositeSelectionData, al as Collection, aR as ProductTaxonomy, aS as TaxonomyWithChildren, aQ as ProductTimeProfile, aV as Deal, aW as ProductDealInfo, aX as DiscountValidation, aq as BundleSummary, aK as CompositePriceResult, bZ as SubscriptionStatus, b_ as Subscription, c1 as SubscriptionWithDetails, B as CustomAttributeDefinition, J as PropertyFacet, bW as ProductBillingPlan, a5 as VariantView, a9 as VariantAxisWithValues, af as AddOnWithOptions, av as BundleComponentView, ao as BundlePriceType, aG as CompositeGroupView, bp as DisplayCart, a0 as ProductInputField, F as CustomAttributeValue, H as ProductProperty, a2 as QuantityPricingTier } from './payment-BeLHpQMo.js';
|
|
6
|
+
import { P as ProductWithPrice } from './price-C6gfys5B.js';
|
|
7
7
|
import { ClassValue } from 'clsx';
|
|
8
8
|
|
|
9
9
|
interface UserIdentity {
|
|
@@ -243,6 +243,12 @@ interface UseCartItem {
|
|
|
243
243
|
serviceStatus?: string;
|
|
244
244
|
bundleResolved?: BundleSelectionData;
|
|
245
245
|
compositeResolved?: CompositeSelectionData;
|
|
246
|
+
customerInputs?: Array<{
|
|
247
|
+
field_id: string;
|
|
248
|
+
field_name: string;
|
|
249
|
+
field_type: string;
|
|
250
|
+
value: unknown;
|
|
251
|
+
}>;
|
|
246
252
|
}
|
|
247
253
|
interface AddToCartOptions {
|
|
248
254
|
locationId?: string;
|
|
@@ -259,6 +265,10 @@ interface AddToCartOptions {
|
|
|
259
265
|
staffId?: string;
|
|
260
266
|
resourceId?: string;
|
|
261
267
|
billingPlanId?: string;
|
|
268
|
+
customerInputs?: Array<{
|
|
269
|
+
field_id: string;
|
|
270
|
+
value: unknown;
|
|
271
|
+
}>;
|
|
262
272
|
}
|
|
263
273
|
interface UseCartOptions {
|
|
264
274
|
client?: CimplifyClient;
|
|
@@ -517,6 +527,32 @@ interface UseOrdersResult {
|
|
|
517
527
|
}
|
|
518
528
|
declare function useOrders(options?: UseOrdersOptions): UseOrdersResult;
|
|
519
529
|
|
|
530
|
+
interface UseSubscriptionsOptions {
|
|
531
|
+
status?: SubscriptionStatus;
|
|
532
|
+
enabled?: boolean;
|
|
533
|
+
}
|
|
534
|
+
interface UseSubscriptionsResult {
|
|
535
|
+
subscriptions: Subscription[];
|
|
536
|
+
isLoading: boolean;
|
|
537
|
+
error: CimplifyError | null;
|
|
538
|
+
refetch: () => Promise<void>;
|
|
539
|
+
}
|
|
540
|
+
declare function useSubscriptions(options?: UseSubscriptionsOptions): UseSubscriptionsResult;
|
|
541
|
+
interface UseSubscriptionOptions {
|
|
542
|
+
enabled?: boolean;
|
|
543
|
+
}
|
|
544
|
+
interface UseSubscriptionResult {
|
|
545
|
+
subscription: SubscriptionWithDetails | null;
|
|
546
|
+
isLoading: boolean;
|
|
547
|
+
error: CimplifyError | null;
|
|
548
|
+
cancel: (reason?: string) => Promise<void>;
|
|
549
|
+
pause: () => Promise<void>;
|
|
550
|
+
resume: () => Promise<void>;
|
|
551
|
+
skipNext: () => Promise<void>;
|
|
552
|
+
refetch: () => Promise<void>;
|
|
553
|
+
}
|
|
554
|
+
declare function useSubscription(id: string | null | undefined, options?: UseSubscriptionOptions): UseSubscriptionResult;
|
|
555
|
+
|
|
520
556
|
interface UseServicesOptions extends CachedQueryBaseOptions {
|
|
521
557
|
}
|
|
522
558
|
interface UseServicesResult {
|
|
@@ -945,6 +981,7 @@ interface CartSummaryClassNames {
|
|
|
945
981
|
digitalInfo?: string;
|
|
946
982
|
bundleBreakdown?: string;
|
|
947
983
|
compositeBreakdown?: string;
|
|
984
|
+
customerInputs?: string;
|
|
948
985
|
}
|
|
949
986
|
interface CartSummaryProps {
|
|
950
987
|
/** Optional server cart for extended pricing details (delivery fee, service charge, discounts). */
|
|
@@ -995,6 +1032,39 @@ interface AvailabilityBadgeProps {
|
|
|
995
1032
|
*/
|
|
996
1033
|
declare function AvailabilityBadge({ product, isAvailable, isInStock, stockQuantity, lowStockThreshold, locationId, className, classNames, }: AvailabilityBadgeProps): React$1.ReactElement | null;
|
|
997
1034
|
|
|
1035
|
+
interface CustomerInputFieldsClassNames {
|
|
1036
|
+
root?: string;
|
|
1037
|
+
field?: string;
|
|
1038
|
+
label?: string;
|
|
1039
|
+
required?: string;
|
|
1040
|
+
helpText?: string;
|
|
1041
|
+
input?: string;
|
|
1042
|
+
select?: string;
|
|
1043
|
+
textarea?: string;
|
|
1044
|
+
fileInput?: string;
|
|
1045
|
+
colorInput?: string;
|
|
1046
|
+
radioGroup?: string;
|
|
1047
|
+
radioOption?: string;
|
|
1048
|
+
checkboxLabel?: string;
|
|
1049
|
+
priceAdjustment?: string;
|
|
1050
|
+
addressInput?: string;
|
|
1051
|
+
phoneInput?: string;
|
|
1052
|
+
signatureCanvas?: string;
|
|
1053
|
+
multiSelectGroup?: string;
|
|
1054
|
+
multiSelectOption?: string;
|
|
1055
|
+
dateRangeInput?: string;
|
|
1056
|
+
locationInput?: string;
|
|
1057
|
+
}
|
|
1058
|
+
interface CustomerInputFieldsProps {
|
|
1059
|
+
fields: ProductInputField[];
|
|
1060
|
+
values: Record<string, unknown>;
|
|
1061
|
+
onChange: (values: Record<string, unknown>) => void;
|
|
1062
|
+
onFileUpload?: (file: File, field: ProductInputField) => Promise<string>;
|
|
1063
|
+
className?: string;
|
|
1064
|
+
classNames?: CustomerInputFieldsClassNames;
|
|
1065
|
+
}
|
|
1066
|
+
declare function CustomerInputFields({ fields, values, onChange, onFileUpload, className, classNames, }: CustomerInputFieldsProps): React$1.ReactElement | null;
|
|
1067
|
+
|
|
998
1068
|
interface SaleBadgeClassNames {
|
|
999
1069
|
root?: string;
|
|
1000
1070
|
percentage?: string;
|
|
@@ -1112,6 +1182,10 @@ declare function WholesaleProductCard({ product, onQuickAdd, renderImage, render
|
|
|
1112
1182
|
|
|
1113
1183
|
declare function DigitalProductCard({ product, renderImage, renderLink, className, }: CardLayoutProps): React$1.ReactElement;
|
|
1114
1184
|
|
|
1185
|
+
declare function BundleProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps): React$1.ReactElement;
|
|
1186
|
+
|
|
1187
|
+
declare function CompositeProductCard({ product, onQuickAdd, renderImage, renderLink, className, }: CardLayoutProps): React$1.ReactElement;
|
|
1188
|
+
|
|
1115
1189
|
declare function CompactServiceCard({ product, renderImage, renderLink, className, }: ServiceCardLayoutProps): React$1.ReactElement;
|
|
1116
1190
|
|
|
1117
1191
|
declare function ScheduleServiceCard({ product, slots, onBook, renderImage, renderLink, className, }: ServiceCardLayoutProps): React$1.ReactElement;
|
|
@@ -1129,6 +1203,8 @@ declare enum CardVariant {
|
|
|
1129
1203
|
Retail = "retail",
|
|
1130
1204
|
Wholesale = "wholesale",
|
|
1131
1205
|
Digital = "digital",
|
|
1206
|
+
Bundle = "bundle",
|
|
1207
|
+
Composite = "composite",
|
|
1132
1208
|
Standard = "standard",
|
|
1133
1209
|
Compact = "compact",
|
|
1134
1210
|
Schedule = "schedule",
|
|
@@ -1806,6 +1882,8 @@ declare enum ProductTemplate {
|
|
|
1806
1882
|
Wholesale = "wholesale",
|
|
1807
1883
|
Service = "service",
|
|
1808
1884
|
Digital = "digital",
|
|
1885
|
+
Bundle = "bundle",
|
|
1886
|
+
Composite = "composite",
|
|
1809
1887
|
Physical = "physical"
|
|
1810
1888
|
}
|
|
1811
1889
|
interface ProductPageClassNames {
|
|
@@ -1850,6 +1928,10 @@ declare function ServiceProductLayout({ product, onAddToCart, renderBreadcrumb,
|
|
|
1850
1928
|
|
|
1851
1929
|
declare function DigitalProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React$1.ReactElement;
|
|
1852
1930
|
|
|
1931
|
+
declare function BundleProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React$1.ReactElement;
|
|
1932
|
+
|
|
1933
|
+
declare function CompositeProductLayout({ product, onAddToCart, renderBreadcrumb, relatedProducts, showRelated, className, }: ProductLayoutProps): React$1.ReactElement;
|
|
1934
|
+
|
|
1853
1935
|
interface CartLayoutProps {
|
|
1854
1936
|
/** Cart state from useCart hook. */
|
|
1855
1937
|
cart: UseCartResult;
|
|
@@ -2483,4 +2565,4 @@ interface ResourcePickerProps {
|
|
|
2483
2565
|
declare function roomToResource(room: Room): Resource;
|
|
2484
2566
|
declare function ResourcePicker({ resources, selectedResourceId, onResourceSelect, showAnyOption, anyLabel, renderImage, className, classNames, }: ResourcePickerProps): React$1.ReactElement;
|
|
2485
2567
|
|
|
2486
|
-
export { AccommodationCard, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyAccount, type CimplifyAccountProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, FeaturedCollectionLayout, FoodProductCard, FoodProductLayout, InventoryBadge, LeaseServiceCard, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MetadataStringList, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, StoreNav, type StoreNavClassNames, type StoreNavProps, SubscriptionCard, TagPills, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCategories, useCheckout, useCimplify, useCimplifyClient, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|
|
2568
|
+
export { AccommodationCard, Ad, AdPosition, type AdProps, AdProvider, AdSlot, AddOnSelector, type AddOnSelectorClassNames, type AddOnSelectorProps, type AddToCartOptions, AddressElement, AuthElement, AvailabilityBadge, type AvailabilityBadgeClassNames, type AvailabilityBadgeProps, BillingPlanSelector, type BillingPlanSelectorClassNames, type BillingPlanSelectorProps, BookingCard, type BookingCardClassNames, type BookingCardProps, BookingList, type BookingListClassNames, type BookingListProps, BundleProductCard, BundleProductLayout, BundleSelector, type BundleSelectorClassNames, type BundleSelectorProps, CardImage, type CardLayoutProps, CardShell, CardVariant, type CartAddOnOptionSelection, type CartLayoutProps, CartPage, type CartPageClassNames, type CartPageProps, CartSummary, type CartSummaryClassNames, type CartSummaryProps, CartTemplate, type CartVariantSelection, CatalogueCollectionLayout, type CatalogueLayoutProps, CataloguePage, type CataloguePageClassNames, type CataloguePageProps, CatalogueTemplate, CategoryFilter, type CategoryFilterClassNames, type CategoryFilterProps, CategoryGrid, type CategoryGridClassNames, type CategoryGridProps, CheckoutPage, type CheckoutPageClassNames, type CheckoutPageProps, CimplifyAccount, type CimplifyAccountProps, CimplifyCheckout, type CimplifyCheckoutProps, type CimplifyClientContextValue, type CimplifyContextValue, CimplifyProvider, type CimplifyProviderProps, type CollectionLayoutProps, CollectionPage, type CollectionPageClassNames, type CollectionPageProps, CollectionTemplate, CompactCartLayout, CompactCatalogueLayout, CompactSearchLayout, CompactServiceCard, CompositeProductCard, CompositeProductLayout, CompositeSelector, type CompositeSelectorClassNames, type CompositeSelectorProps, CurrencySelector, type CurrencySelectorClassNames, type CurrencySelectorProps, CustomAttributesTable, CustomerInputFields, type CustomerInputFieldsClassNames, type CustomerInputFieldsProps, DateSlotPicker, type DateSlotPickerClassNames, type DateSlotPickerProps, DealBanner, type DealBannerClassNames, type DealBannerProps, DealsPage, type DealsPageClassNames, type DealsPageProps, DefaultCartLayout, DefaultCatalogueLayout, DefaultCollectionLayout, DefaultProductLayout, DefaultSearchLayout, DeliveryEstimate, type DeliveryEstimateClassNames, type DeliveryEstimateProps, DigitalProductCard, DigitalProductLayout, DiscountInput, type DiscountInputClassNames, type DiscountInputProps, ElementsProvider, FeaturedCollectionLayout, FoodProductCard, FoodProductLayout, InventoryBadge, LeaseServiceCard, LocationPicker, type LocationPickerClassNames, type LocationPickerProps, MetadataStringList, OrderDetailPage, type OrderDetailPageClassNames, type OrderDetailPageProps, OrderHistory, type OrderHistoryClassNames, OrderHistoryPage, type OrderHistoryPageClassNames, type OrderHistoryPageProps, type OrderHistoryProps, OrderSummary, type OrderSummaryClassNames, type OrderSummaryProps, PaymentElement, Price, type PriceProps, PriceRange, type PriceRangeProps, ProductCard, type ProductCardClassNames, type ProductCardProps, ProductCustomizer, type ProductCustomizerClassNames, type ProductCustomizerProps, ProductGrid, type ProductGridClassNames, type ProductGridProps, ProductImageGallery, type ProductImageGalleryProps, type ProductLayoutProps, ProductPage, type ProductPageClassNames, type ProductPageProps, ProductSheet, type ProductSheetClassNames, type ProductSheetProps, ProductTemplate, PropertiesTable, QuantitySelector, type QuantitySelectorClassNames, type QuantitySelectorProps, QuickAddButton, RecentlyViewed, type RecentlyViewedClassNames, type RecentlyViewedProps, RecommendationCarousel, type RecommendationCarouselClassNames, type RecommendationCarouselProps, RelatedProductsSection, RentalServiceCard, type Resource, ResourcePicker, type ResourcePickerClassNames, type ResourcePickerProps, RetailProductCard, SaleBadge, type SaleBadgeClassNames, type SaleBadgeProps, ScheduleServiceCard, SearchInput, type SearchInputClassNames, type SearchInputProps, type SearchLayoutProps, SearchPage, type SearchPageClassNames, type SearchPageProps, SearchTemplate, type ServiceCardLayoutProps, ServiceProductLayout, SessionMessageBanner, type SessionMessageBannerClassNames, type SessionMessageBannerProps, SlotPicker, type SlotPickerClassNames, type SlotPickerProps, SoldOutOverlay, StaffPicker, type StaffPickerClassNames, type StaffPickerProps, StandardServiceCard, StoreNav, type StoreNavClassNames, type StoreNavProps, SubscriptionCard, TagPills, TwoColumnGrid, type UseActivityStateOptions, type UseActivityStateResult, type UseAttributeDefinitionsOptions, type UseAttributeDefinitionsResult, type UseAvailableSlotsOptions, type UseAvailableSlotsResult, type UseBillingPlansOptions, type UseBillingPlansResult, type UseBookingsOptions, type UseBookingsResult, type UseBootstrapOptions, type UseBootstrapResult, type UseBundlesOptions, type UseBundlesResult, type UseCartItem, type UseCartOptions, type UseCartResult, type UseCategoriesOptions, type UseCategoriesResult, type UseCollectionOptions, type UseCollectionResult, type UseCollectionsOptions, type UseCollectionsResult, type UseDealsOptions, type UseDealsResult, type UseDeliveryFeeOptions, type UseDeliveryFeeResult, type UseFxRateOptions, type UseFxRateResult, type UseLocationsOptions, type UseLocationsResult, type UseOrderOptions, type UseOrderResult, type UseOrdersOptions, type UseOrdersResult, type UseProductAvailabilityOptions, type UseProductAvailabilityResult, type UseProductDealsOptions, type UseProductDealsResult, type UseProductOptions, type UseProductPriceInput, type UseProductPriceResult, type UseProductResult, type UseProductSchedulesOptions, type UseProductSchedulesResult, type UseProductsOnSaleOptions, type UseProductsOnSaleResult, type UseProductsOptions, type UseProductsResult, type UsePropertyFacetsOptions, type UsePropertyFacetsResult, type UseQuoteInput, type UseQuoteOptions, type UseQuoteResult, type UseRecommendationsOptions, type UseRecommendationsResult, type UseSearchOptions, type UseSearchResult, type UseServiceAvailabilityOptions, type UseServiceAvailabilityResult, type UseServicesOptions, type UseServicesResult, type UseTaxonomiesOptions, type UseTaxonomiesResult, type UseTaxonomyOptions, type UseTaxonomyPathOptions, type UseTaxonomyPathResult, type UseTaxonomyResult, type UseValidateDiscountOptions, type UseValidateDiscountResult, type UseVariantSelectorOptions, type UseVariantSelectorResult, VariantSelector, type VariantSelectorClassNames, type VariantSelectorProps, VolumePricing, type VolumePricingClassNames, type VolumePricingProps, WholesaleProductCard, WholesaleProductLayout, WishlistButton, cn, roomToResource, useActivityState, useAds, useAttributeDefinitions, useAvailableSlots, useBillingPlans, useBookings, useBootstrap, useBundles, useCart, useCategories, useCheckout, useCimplify, useCimplifyClient, useCollection, useCollections, useDeals, useDeliveryFee, useElements, useElementsReady, useFxRate, useLocations, useOptionalCimplify, useOrder, useOrders, useProduct, useProductAvailability, useProductDeals, useProductPrice, useProductSchedules, useProducts, useProductsOnSale, usePropertyFacets, useQuote, useRecommendations, useSearch, useServiceAvailability, useServices, useSubscription, useSubscriptions, useTaxonomies, useTaxonomy, useTaxonomyPath, useValidateDiscount, useVariantSelector };
|