@cimplify/sdk 0.45.3 → 0.45.5

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.
Files changed (52) hide show
  1. package/dist/advanced.d.mts +3 -2
  2. package/dist/advanced.d.ts +3 -2
  3. package/dist/{chunk-J7BUGTAG.mjs → chunk-IF22UYTT.mjs} +1 -1
  4. package/dist/{chunk-B2MJQ7SU.js → chunk-K6FCVLZA.js} +999 -1
  5. package/dist/{chunk-ZTPP7PDU.mjs → chunk-RQ3ILHUQ.mjs} +999 -1
  6. package/dist/{chunk-KD2HHETX.js → chunk-ZH6ZST5T.js} +2 -2
  7. package/dist/{client-DjzIoewX.d.ts → client-BDYBB-ME.d.ts} +2 -2
  8. package/dist/{client-C5LcbNxL.d.mts → client-CDUY-6nC.d.mts} +2 -1
  9. package/dist/{client-EM8xKCPO.d.mts → client-MUD63aYS.d.mts} +2 -2
  10. package/dist/{client-Bsd4Vi_y.d.ts → client-aZInadOY.d.ts} +2 -1
  11. package/dist/{index-yMe4VZqR.d.mts → index-3C9J8Wb-.d.mts} +3 -2
  12. package/dist/{index-PbBuEWp7.d.ts → index-DC_ZcSgO.d.ts} +3 -2
  13. package/dist/index.d.mts +6 -5
  14. package/dist/index.d.ts +6 -5
  15. package/dist/mock/cli.mjs +999 -1
  16. package/dist/mock/library.d.mts +2 -2
  17. package/dist/mock/library.d.ts +2 -2
  18. package/dist/mock/library.js +999 -1
  19. package/dist/mock/library.mjs +999 -1
  20. package/dist/mock/msw.d.mts +1 -1
  21. package/dist/mock/msw.d.ts +1 -1
  22. package/dist/mock/msw.js +999 -1
  23. package/dist/mock/msw.mjs +999 -1
  24. package/dist/payment-Bse2XJ-c.d.mts +113 -0
  25. package/dist/payment-JcNqOf_T.d.ts +113 -0
  26. package/dist/{price-DMijJ6_3.d.mts → price-YBGk5seG.d.mts} +1 -1
  27. package/dist/{price-DmQTOnjj.d.ts → price-mHkRncgW.d.ts} +1 -1
  28. package/dist/{payment-4JSLNTVM.d.mts → product-DiX-HGkT.d.mts} +1 -111
  29. package/dist/{payment-4JSLNTVM.d.ts → product-DiX-HGkT.d.ts} +1 -111
  30. package/dist/react.d.mts +4 -3
  31. package/dist/react.d.ts +4 -3
  32. package/dist/{server-UARbamIZ.d.mts → server-Bg3VtA1D.d.ts} +10 -1
  33. package/dist/{server-Bs295U0t.d.mts → server-CzthOeYS.d.mts} +43 -1
  34. package/dist/{server-Bs295U0t.d.ts → server-CzthOeYS.d.ts} +43 -1
  35. package/dist/{server-UARbamIZ.d.ts → server-kakjHRgj.d.mts} +10 -1
  36. package/dist/server.d.mts +4 -3
  37. package/dist/server.d.ts +4 -3
  38. package/dist/testing/msw.d.mts +2 -1
  39. package/dist/testing/msw.d.ts +2 -1
  40. package/dist/testing/msw.js +2 -2
  41. package/dist/testing/msw.mjs +1 -1
  42. package/dist/testing/suite.d.mts +6 -5
  43. package/dist/testing/suite.d.ts +6 -5
  44. package/dist/testing/suite.js +21 -21
  45. package/dist/testing/suite.mjs +2 -2
  46. package/dist/testing.d.mts +5 -4
  47. package/dist/testing.d.ts +5 -4
  48. package/dist/testing.js +77 -77
  49. package/dist/testing.mjs +3 -3
  50. package/dist/utils.d.mts +4 -3
  51. package/dist/utils.d.ts +4 -3
  52. package/package.json +1 -1
@@ -0,0 +1,113 @@
1
+ import { M as Money, a as CurrencyCode } from './product-DiX-HGkT.mjs';
2
+
3
+ type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
4
+ type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtnmomo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
5
+ type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
6
+ mobile_money: {
7
+ provider: string;
8
+ phone_number: string;
9
+ };
10
+ } | {
11
+ ussd: {
12
+ provider: string;
13
+ };
14
+ } | {
15
+ bank: {
16
+ bank_code: string;
17
+ account_number: string;
18
+ account_name?: string;
19
+ bank_name?: string;
20
+ };
21
+ } | {
22
+ qr: {
23
+ provider: string;
24
+ };
25
+ } | {
26
+ wallet: {
27
+ provider: string;
28
+ };
29
+ } | {
30
+ crypto: {
31
+ currency: string;
32
+ };
33
+ } | {
34
+ custom: string;
35
+ };
36
+ interface AddressAuthorizationData {
37
+ address: string;
38
+ city: string;
39
+ state: string;
40
+ zip_code: string;
41
+ }
42
+ type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | "address" | {
43
+ address: AddressAuthorizationData;
44
+ };
45
+ type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
46
+ interface PaymentMethod {
47
+ type: PaymentMethodType;
48
+ provider?: string;
49
+ phone_number?: string;
50
+ card_last_four?: string;
51
+ custom_value?: string;
52
+ }
53
+ interface Payment {
54
+ id: string;
55
+ order_id: string;
56
+ business_id: string;
57
+ amount: Money;
58
+ currency: CurrencyCode;
59
+ payment_method: PaymentMethod;
60
+ status: PaymentStatus;
61
+ provider: PaymentProvider;
62
+ provider_reference?: string;
63
+ failure_reason?: string;
64
+ created_at: string;
65
+ updated_at: string;
66
+ }
67
+ interface InitializePaymentResult {
68
+ payment_id: string;
69
+ status: PaymentStatus;
70
+ redirect_url?: string;
71
+ authorization_url?: string;
72
+ reference: string;
73
+ provider: PaymentProvider;
74
+ }
75
+ interface PaymentResponse {
76
+ method: string;
77
+ provider: string;
78
+ requires_action: boolean;
79
+ public_key?: string;
80
+ client_secret?: string;
81
+ access_code?: string;
82
+ redirect_url?: string;
83
+ transaction_id?: string;
84
+ order_id?: string;
85
+ reference?: string;
86
+ metadata?: Record<string, unknown>;
87
+ instructions?: string;
88
+ display_text?: string;
89
+ requires_authorization?: boolean;
90
+ authorization_type?: AuthorizationType;
91
+ provider_payment_id?: string;
92
+ }
93
+ interface PaymentStatusResponse {
94
+ status: PaymentStatus;
95
+ paid: boolean;
96
+ amount: Money;
97
+ currency: string;
98
+ reference?: string;
99
+ message: string;
100
+ }
101
+ interface PaymentErrorDetails {
102
+ code: string;
103
+ message: string;
104
+ recoverable: boolean;
105
+ technical?: string;
106
+ }
107
+ interface SubmitAuthorizationInput {
108
+ reference: string;
109
+ auth_type: AuthorizationType;
110
+ value: string;
111
+ }
112
+
113
+ export type { AddressAuthorizationData as A, InitializePaymentResult as I, PaymentStatus as P, SubmitAuthorizationInput as S, PaymentProvider as a, PaymentMethodType as b, AuthorizationType as c, PaymentProcessingState as d, PaymentMethod as e, Payment as f, PaymentResponse as g, PaymentStatusResponse as h, PaymentErrorDetails as i };
@@ -0,0 +1,113 @@
1
+ import { M as Money, a as CurrencyCode } from './product-DiX-HGkT.js';
2
+
3
+ type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
4
+ type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtnmomo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
5
+ type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
6
+ mobile_money: {
7
+ provider: string;
8
+ phone_number: string;
9
+ };
10
+ } | {
11
+ ussd: {
12
+ provider: string;
13
+ };
14
+ } | {
15
+ bank: {
16
+ bank_code: string;
17
+ account_number: string;
18
+ account_name?: string;
19
+ bank_name?: string;
20
+ };
21
+ } | {
22
+ qr: {
23
+ provider: string;
24
+ };
25
+ } | {
26
+ wallet: {
27
+ provider: string;
28
+ };
29
+ } | {
30
+ crypto: {
31
+ currency: string;
32
+ };
33
+ } | {
34
+ custom: string;
35
+ };
36
+ interface AddressAuthorizationData {
37
+ address: string;
38
+ city: string;
39
+ state: string;
40
+ zip_code: string;
41
+ }
42
+ type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | "address" | {
43
+ address: AddressAuthorizationData;
44
+ };
45
+ type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
46
+ interface PaymentMethod {
47
+ type: PaymentMethodType;
48
+ provider?: string;
49
+ phone_number?: string;
50
+ card_last_four?: string;
51
+ custom_value?: string;
52
+ }
53
+ interface Payment {
54
+ id: string;
55
+ order_id: string;
56
+ business_id: string;
57
+ amount: Money;
58
+ currency: CurrencyCode;
59
+ payment_method: PaymentMethod;
60
+ status: PaymentStatus;
61
+ provider: PaymentProvider;
62
+ provider_reference?: string;
63
+ failure_reason?: string;
64
+ created_at: string;
65
+ updated_at: string;
66
+ }
67
+ interface InitializePaymentResult {
68
+ payment_id: string;
69
+ status: PaymentStatus;
70
+ redirect_url?: string;
71
+ authorization_url?: string;
72
+ reference: string;
73
+ provider: PaymentProvider;
74
+ }
75
+ interface PaymentResponse {
76
+ method: string;
77
+ provider: string;
78
+ requires_action: boolean;
79
+ public_key?: string;
80
+ client_secret?: string;
81
+ access_code?: string;
82
+ redirect_url?: string;
83
+ transaction_id?: string;
84
+ order_id?: string;
85
+ reference?: string;
86
+ metadata?: Record<string, unknown>;
87
+ instructions?: string;
88
+ display_text?: string;
89
+ requires_authorization?: boolean;
90
+ authorization_type?: AuthorizationType;
91
+ provider_payment_id?: string;
92
+ }
93
+ interface PaymentStatusResponse {
94
+ status: PaymentStatus;
95
+ paid: boolean;
96
+ amount: Money;
97
+ currency: string;
98
+ reference?: string;
99
+ message: string;
100
+ }
101
+ interface PaymentErrorDetails {
102
+ code: string;
103
+ message: string;
104
+ recoverable: boolean;
105
+ technical?: string;
106
+ }
107
+ interface SubmitAuthorizationInput {
108
+ reference: string;
109
+ auth_type: AuthorizationType;
110
+ value: string;
111
+ }
112
+
113
+ export type { AddressAuthorizationData as A, InitializePaymentResult as I, PaymentStatus as P, SubmitAuthorizationInput as S, PaymentProvider as a, PaymentMethodType as b, AuthorizationType as c, PaymentProcessingState as d, PaymentMethod as e, Payment as f, PaymentResponse as g, PaymentStatusResponse as h, PaymentErrorDetails as i };
@@ -1,4 +1,4 @@
1
- import { C as ChosenPrice, a as CurrencyCode } from './payment-4JSLNTVM.mjs';
1
+ import { C as ChosenPrice, a as CurrencyCode } from './product-DiX-HGkT.mjs';
2
2
 
3
3
  interface ProductWithPrice {
4
4
  price_info?: ChosenPrice;
@@ -1,4 +1,4 @@
1
- import { C as ChosenPrice, a as CurrencyCode } from './payment-4JSLNTVM.js';
1
+ import { C as ChosenPrice, a as CurrencyCode } from './product-DiX-HGkT.js';
2
2
 
3
3
  interface ProductWithPrice {
4
4
  price_info?: ChosenPrice;
@@ -1517,114 +1517,4 @@ interface TagsResponse {
1517
1517
  offset: number;
1518
1518
  }
1519
1519
 
1520
- type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
1521
- type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtnmomo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
1522
- type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
1523
- mobile_money: {
1524
- provider: string;
1525
- phone_number: string;
1526
- };
1527
- } | {
1528
- ussd: {
1529
- provider: string;
1530
- };
1531
- } | {
1532
- bank: {
1533
- bank_code: string;
1534
- account_number: string;
1535
- account_name?: string;
1536
- bank_name?: string;
1537
- };
1538
- } | {
1539
- qr: {
1540
- provider: string;
1541
- };
1542
- } | {
1543
- wallet: {
1544
- provider: string;
1545
- };
1546
- } | {
1547
- crypto: {
1548
- currency: string;
1549
- };
1550
- } | {
1551
- custom: string;
1552
- };
1553
- interface AddressAuthorizationData {
1554
- address: string;
1555
- city: string;
1556
- state: string;
1557
- zip_code: string;
1558
- }
1559
- type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | "address" | {
1560
- address: AddressAuthorizationData;
1561
- };
1562
- type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
1563
- interface PaymentMethod {
1564
- type: PaymentMethodType;
1565
- provider?: string;
1566
- phone_number?: string;
1567
- card_last_four?: string;
1568
- custom_value?: string;
1569
- }
1570
- interface Payment {
1571
- id: string;
1572
- order_id: string;
1573
- business_id: string;
1574
- amount: Money;
1575
- currency: CurrencyCode;
1576
- payment_method: PaymentMethod;
1577
- status: PaymentStatus;
1578
- provider: PaymentProvider;
1579
- provider_reference?: string;
1580
- failure_reason?: string;
1581
- created_at: string;
1582
- updated_at: string;
1583
- }
1584
- interface InitializePaymentResult {
1585
- payment_id: string;
1586
- status: PaymentStatus;
1587
- redirect_url?: string;
1588
- authorization_url?: string;
1589
- reference: string;
1590
- provider: PaymentProvider;
1591
- }
1592
- interface PaymentResponse {
1593
- method: string;
1594
- provider: string;
1595
- requires_action: boolean;
1596
- public_key?: string;
1597
- client_secret?: string;
1598
- access_code?: string;
1599
- redirect_url?: string;
1600
- transaction_id?: string;
1601
- order_id?: string;
1602
- reference?: string;
1603
- metadata?: Record<string, unknown>;
1604
- instructions?: string;
1605
- display_text?: string;
1606
- requires_authorization?: boolean;
1607
- authorization_type?: AuthorizationType;
1608
- provider_payment_id?: string;
1609
- }
1610
- interface PaymentStatusResponse {
1611
- status: PaymentStatus;
1612
- paid: boolean;
1613
- amount: Money;
1614
- currency: string;
1615
- reference?: string;
1616
- message: string;
1617
- }
1618
- interface PaymentErrorDetails {
1619
- code: string;
1620
- message: string;
1621
- recoverable: boolean;
1622
- technical?: string;
1623
- }
1624
- interface SubmitAuthorizationInput {
1625
- reference: string;
1626
- auth_type: AuthorizationType;
1627
- value: string;
1628
- }
1629
-
1630
- export { type DateRangeValue as $, type ApiError as A, type AttributeVisibility as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type MeasurementValue as F, type AttributeValidationRules as G, type CustomAttributeDefinition as H, IdempotencyMismatchError as I, type CustomAttributeValue as J, type PropertySource as K, type ProductProperty as L, type Money as M, type PropertyFacet as N, type FacetValue as O, type PaginationParams as P, type KnowledgeArticle as Q, RENDER_HINT as R, type SchedulingMode as S, type TaxonomyAttributeTemplate as T, type Product as U, type VariantStrategy as V, type InputFieldType as W, INPUT_FIELD_TYPE as X, type AddressValue as Y, ZERO as Z, type PhoneValue as _, type CurrencyCode as a, type DiscountValidation as a$, type LocationValue as a0, type SignatureValue as a1, type InputFieldValidation as a2, type SemanticKind as a3, type ProductInputField as a4, type CustomerInputValue as a5, type QuantityPricingTier as a6, type RelatedProductView as a7, type ProductWithDetails as a8, type VariantView as a9, type BundleComponentVariantView as aA, type VariantAxisView as aB, type VariantAxisValueView as aC, type CompositePricingMode as aD, type GroupPricingBehavior as aE, type ComponentSourceType as aF, type Composite as aG, type CompositeWithDetails as aH, type ComponentGroup as aI, type ComponentGroupWithComponents as aJ, type CompositeGroupView as aK, type CompositeComponentView as aL, type CompositeComponent as aM, type ComponentSelectionInput as aN, type CompositePriceResult as aO, type ComponentPriceBreakdown as aP, type PriceEntryType as aQ, type Price as aR, type LocationProductPrice as aS, type ProductAvailability as aT, type ProductTimeProfile as aU, type ProductTaxonomy as aV, type TaxonomyWithChildren as aW, type ProductAvailabilityNow as aX, type DealBenefitType as aY, type Deal as aZ, type ProductDealInfo as a_, type ProductVariant as aa, type VariantDisplayAttribute as ab, type VariantAxis as ac, type VariantAxisWithValues as ad, type VariantAxisValue as ae, type ProductVariantValue as af, type VariantLocationAvailability as ag, type VariantAxisSelection as ah, type AddOn as ai, type AddOnWithOptions as aj, type AddOnOption as ak, type AddOnOptionPrice as al, type ProductAddOn as am, type Category as an, type CategorySummary as ao, type Collection as ap, type CollectionSummary as aq, type CollectionProduct as ar, type BundlePriceType as as, type Bundle as at, type BundleSummary as au, type BundleProduct as av, type BundleWithDetails as aw, type BundleComponentData as ax, type BundleComponentInfo as ay, type BundleComponentView as az, moneyFromNumber as b, type ProductBillingPlan as b$, type Tag as b0, type TagsResponse as b1, type CartStatus as b2, type CartChannel as b3, type PriceSource as b4, type AdjustmentType as b5, type PriceAdjustment as b6, type TaxPathComponent as b7, type PricePathTaxInfo as b8, type PriceDecisionPath as b9, type UICartPricing as bA, type AddOnOptionDetails as bB, type AddOnGroupDetails as bC, type VariantDetailsDTO as bD, type CartItemDetails as bE, type UICart as bF, type CartNotice as bG, type CartMutationResult as bH, type AddToCartInput as bI, type UpdateCartItemInput as bJ, type CartSummary as bK, type PaymentStatus as bL, type PaymentProvider as bM, type PaymentMethodType as bN, type AddressAuthorizationData as bO, type AuthorizationType as bP, type PaymentProcessingState as bQ, type PaymentMethod as bR, type Payment as bS, type InitializePaymentResult as bT, type PaymentResponse as bU, type PaymentStatusResponse as bV, type PaymentErrorDetails as bW, type SubmitAuthorizationInput as bX, type BillingFrequency as bY, type BillingPlanType as bZ, type BillingMarkupType as b_, type BenefitType as ba, type AppliedDiscount as bb, type DiscountBreakdown as bc, type DiscountDetails as bd, type SelectedAddOnOption as be, type AddOnDetails as bf, type CartAddOn as bg, type VariantDetails as bh, type BundleSelectionInput as bi, type ComponentSchedulingData as bj, type BundleStoredSelection as bk, type BundleSelectionData as bl, type CompositeStoredSelection as bm, type CompositePriceBreakdown as bn, type CompositeSelectionData as bo, type LineConfiguration as bp, type Cart as bq, type CartItem as br, type CartTotals as bs, type DisplayCart as bt, type DisplayCartItem as bu, type DisplayAddOn as bv, type DisplayAddOnOption as bw, type UICartBusiness as bx, type UICartLocation as by, type UICartCustomer as bz, currencyCode as c, type EligiblePlansQuery as c0, type FormattedPlanOption as c1, type SubscriptionStatus as c2, type Subscription as c3, type SubscriptionItem as c4, type SubscriptionInvoice as c5, type SubscriptionWithDetails as c6, 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, isIdempotencyMismatchError as k, getErrorHint as l, money as m, enrichError as n, isRetryableError as o, type ProductType as p, PRODUCT_TYPE as q, type ProductRenderHint as r, type InventoryType as s, type DigitalProductType as t, type DepositType as u, type DurationUnit as v, DURATION_UNIT as w, type SalesChannel as x, type AttributeType as y, type AttributeAppliesTo as z };
1520
+ export { type DateRangeValue as $, type ApiError as A, type AttributeVisibility as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type MeasurementValue as F, type AttributeValidationRules as G, type CustomAttributeDefinition as H, IdempotencyMismatchError as I, type CustomAttributeValue as J, type PropertySource as K, type ProductProperty as L, type Money as M, type PropertyFacet as N, type FacetValue as O, type PaginationParams as P, type KnowledgeArticle as Q, RENDER_HINT as R, type SchedulingMode as S, type TaxonomyAttributeTemplate as T, type Product as U, type VariantStrategy as V, type InputFieldType as W, INPUT_FIELD_TYPE as X, type AddressValue as Y, ZERO as Z, type PhoneValue as _, type CurrencyCode as a, type DiscountValidation as a$, type LocationValue as a0, type SignatureValue as a1, type InputFieldValidation as a2, type SemanticKind as a3, type ProductInputField as a4, type CustomerInputValue as a5, type QuantityPricingTier as a6, type RelatedProductView as a7, type ProductWithDetails as a8, type VariantView as a9, type BundleComponentVariantView as aA, type VariantAxisView as aB, type VariantAxisValueView as aC, type CompositePricingMode as aD, type GroupPricingBehavior as aE, type ComponentSourceType as aF, type Composite as aG, type CompositeWithDetails as aH, type ComponentGroup as aI, type ComponentGroupWithComponents as aJ, type CompositeGroupView as aK, type CompositeComponentView as aL, type CompositeComponent as aM, type ComponentSelectionInput as aN, type CompositePriceResult as aO, type ComponentPriceBreakdown as aP, type PriceEntryType as aQ, type Price as aR, type LocationProductPrice as aS, type ProductAvailability as aT, type ProductTimeProfile as aU, type ProductTaxonomy as aV, type TaxonomyWithChildren as aW, type ProductAvailabilityNow as aX, type DealBenefitType as aY, type Deal as aZ, type ProductDealInfo as a_, type ProductVariant as aa, type VariantDisplayAttribute as ab, type VariantAxis as ac, type VariantAxisWithValues as ad, type VariantAxisValue as ae, type ProductVariantValue as af, type VariantLocationAvailability as ag, type VariantAxisSelection as ah, type AddOn as ai, type AddOnWithOptions as aj, type AddOnOption as ak, type AddOnOptionPrice as al, type ProductAddOn as am, type Category as an, type CategorySummary as ao, type Collection as ap, type CollectionSummary as aq, type CollectionProduct as ar, type BundlePriceType as as, type Bundle as at, type BundleSummary as au, type BundleProduct as av, type BundleWithDetails as aw, type BundleComponentData as ax, type BundleComponentInfo as ay, type BundleComponentView as az, moneyFromNumber as b, type Tag as b0, type TagsResponse as b1, type CartStatus as b2, type CartChannel as b3, type PriceSource as b4, type AdjustmentType as b5, type PriceAdjustment as b6, type TaxPathComponent as b7, type PricePathTaxInfo as b8, type PriceDecisionPath as b9, type UICartPricing as bA, type AddOnOptionDetails as bB, type AddOnGroupDetails as bC, type VariantDetailsDTO as bD, type CartItemDetails as bE, type UICart as bF, type CartNotice as bG, type CartMutationResult as bH, type AddToCartInput as bI, type UpdateCartItemInput as bJ, type CartSummary as bK, type BillingFrequency as bL, type BillingPlanType as bM, type BillingMarkupType as bN, type ProductBillingPlan as bO, type EligiblePlansQuery as bP, type FormattedPlanOption as bQ, type SubscriptionStatus as bR, type Subscription as bS, type SubscriptionItem as bT, type SubscriptionInvoice as bU, type SubscriptionWithDetails as bV, type BenefitType as ba, type AppliedDiscount as bb, type DiscountBreakdown as bc, type DiscountDetails as bd, type SelectedAddOnOption as be, type AddOnDetails as bf, type CartAddOn as bg, type VariantDetails as bh, type BundleSelectionInput as bi, type ComponentSchedulingData as bj, type BundleStoredSelection as bk, type BundleSelectionData as bl, type CompositeStoredSelection as bm, type CompositePriceBreakdown as bn, type CompositeSelectionData as bo, type LineConfiguration as bp, type Cart as bq, type CartItem as br, type CartTotals as bs, type DisplayCart as bt, type DisplayCartItem as bu, type DisplayAddOn as bv, type DisplayAddOnOption as bw, type UICartBusiness as bx, type UICartLocation as by, type UICartCustomer as bz, currencyCode as c, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isSupportedCurrency as i, isCimplifyError as j, isIdempotencyMismatchError as k, getErrorHint as l, money as m, enrichError as n, isRetryableError as o, type ProductType as p, PRODUCT_TYPE as q, type ProductRenderHint as r, type InventoryType as s, type DigitalProductType as t, type DepositType as u, type DurationUnit as v, DURATION_UNIT as w, type SalesChannel as x, type AttributeType as y, type AttributeAppliesTo as z };
@@ -1517,114 +1517,4 @@ interface TagsResponse {
1517
1517
  offset: number;
1518
1518
  }
1519
1519
 
1520
- type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
1521
- type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtnmomo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
1522
- type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
1523
- mobile_money: {
1524
- provider: string;
1525
- phone_number: string;
1526
- };
1527
- } | {
1528
- ussd: {
1529
- provider: string;
1530
- };
1531
- } | {
1532
- bank: {
1533
- bank_code: string;
1534
- account_number: string;
1535
- account_name?: string;
1536
- bank_name?: string;
1537
- };
1538
- } | {
1539
- qr: {
1540
- provider: string;
1541
- };
1542
- } | {
1543
- wallet: {
1544
- provider: string;
1545
- };
1546
- } | {
1547
- crypto: {
1548
- currency: string;
1549
- };
1550
- } | {
1551
- custom: string;
1552
- };
1553
- interface AddressAuthorizationData {
1554
- address: string;
1555
- city: string;
1556
- state: string;
1557
- zip_code: string;
1558
- }
1559
- type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | "address" | {
1560
- address: AddressAuthorizationData;
1561
- };
1562
- type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
1563
- interface PaymentMethod {
1564
- type: PaymentMethodType;
1565
- provider?: string;
1566
- phone_number?: string;
1567
- card_last_four?: string;
1568
- custom_value?: string;
1569
- }
1570
- interface Payment {
1571
- id: string;
1572
- order_id: string;
1573
- business_id: string;
1574
- amount: Money;
1575
- currency: CurrencyCode;
1576
- payment_method: PaymentMethod;
1577
- status: PaymentStatus;
1578
- provider: PaymentProvider;
1579
- provider_reference?: string;
1580
- failure_reason?: string;
1581
- created_at: string;
1582
- updated_at: string;
1583
- }
1584
- interface InitializePaymentResult {
1585
- payment_id: string;
1586
- status: PaymentStatus;
1587
- redirect_url?: string;
1588
- authorization_url?: string;
1589
- reference: string;
1590
- provider: PaymentProvider;
1591
- }
1592
- interface PaymentResponse {
1593
- method: string;
1594
- provider: string;
1595
- requires_action: boolean;
1596
- public_key?: string;
1597
- client_secret?: string;
1598
- access_code?: string;
1599
- redirect_url?: string;
1600
- transaction_id?: string;
1601
- order_id?: string;
1602
- reference?: string;
1603
- metadata?: Record<string, unknown>;
1604
- instructions?: string;
1605
- display_text?: string;
1606
- requires_authorization?: boolean;
1607
- authorization_type?: AuthorizationType;
1608
- provider_payment_id?: string;
1609
- }
1610
- interface PaymentStatusResponse {
1611
- status: PaymentStatus;
1612
- paid: boolean;
1613
- amount: Money;
1614
- currency: string;
1615
- reference?: string;
1616
- message: string;
1617
- }
1618
- interface PaymentErrorDetails {
1619
- code: string;
1620
- message: string;
1621
- recoverable: boolean;
1622
- technical?: string;
1623
- }
1624
- interface SubmitAuthorizationInput {
1625
- reference: string;
1626
- auth_type: AuthorizationType;
1627
- value: string;
1628
- }
1629
-
1630
- export { type DateRangeValue as $, type ApiError as A, type AttributeVisibility as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type MeasurementValue as F, type AttributeValidationRules as G, type CustomAttributeDefinition as H, IdempotencyMismatchError as I, type CustomAttributeValue as J, type PropertySource as K, type ProductProperty as L, type Money as M, type PropertyFacet as N, type FacetValue as O, type PaginationParams as P, type KnowledgeArticle as Q, RENDER_HINT as R, type SchedulingMode as S, type TaxonomyAttributeTemplate as T, type Product as U, type VariantStrategy as V, type InputFieldType as W, INPUT_FIELD_TYPE as X, type AddressValue as Y, ZERO as Z, type PhoneValue as _, type CurrencyCode as a, type DiscountValidation as a$, type LocationValue as a0, type SignatureValue as a1, type InputFieldValidation as a2, type SemanticKind as a3, type ProductInputField as a4, type CustomerInputValue as a5, type QuantityPricingTier as a6, type RelatedProductView as a7, type ProductWithDetails as a8, type VariantView as a9, type BundleComponentVariantView as aA, type VariantAxisView as aB, type VariantAxisValueView as aC, type CompositePricingMode as aD, type GroupPricingBehavior as aE, type ComponentSourceType as aF, type Composite as aG, type CompositeWithDetails as aH, type ComponentGroup as aI, type ComponentGroupWithComponents as aJ, type CompositeGroupView as aK, type CompositeComponentView as aL, type CompositeComponent as aM, type ComponentSelectionInput as aN, type CompositePriceResult as aO, type ComponentPriceBreakdown as aP, type PriceEntryType as aQ, type Price as aR, type LocationProductPrice as aS, type ProductAvailability as aT, type ProductTimeProfile as aU, type ProductTaxonomy as aV, type TaxonomyWithChildren as aW, type ProductAvailabilityNow as aX, type DealBenefitType as aY, type Deal as aZ, type ProductDealInfo as a_, type ProductVariant as aa, type VariantDisplayAttribute as ab, type VariantAxis as ac, type VariantAxisWithValues as ad, type VariantAxisValue as ae, type ProductVariantValue as af, type VariantLocationAvailability as ag, type VariantAxisSelection as ah, type AddOn as ai, type AddOnWithOptions as aj, type AddOnOption as ak, type AddOnOptionPrice as al, type ProductAddOn as am, type Category as an, type CategorySummary as ao, type Collection as ap, type CollectionSummary as aq, type CollectionProduct as ar, type BundlePriceType as as, type Bundle as at, type BundleSummary as au, type BundleProduct as av, type BundleWithDetails as aw, type BundleComponentData as ax, type BundleComponentInfo as ay, type BundleComponentView as az, moneyFromNumber as b, type ProductBillingPlan as b$, type Tag as b0, type TagsResponse as b1, type CartStatus as b2, type CartChannel as b3, type PriceSource as b4, type AdjustmentType as b5, type PriceAdjustment as b6, type TaxPathComponent as b7, type PricePathTaxInfo as b8, type PriceDecisionPath as b9, type UICartPricing as bA, type AddOnOptionDetails as bB, type AddOnGroupDetails as bC, type VariantDetailsDTO as bD, type CartItemDetails as bE, type UICart as bF, type CartNotice as bG, type CartMutationResult as bH, type AddToCartInput as bI, type UpdateCartItemInput as bJ, type CartSummary as bK, type PaymentStatus as bL, type PaymentProvider as bM, type PaymentMethodType as bN, type AddressAuthorizationData as bO, type AuthorizationType as bP, type PaymentProcessingState as bQ, type PaymentMethod as bR, type Payment as bS, type InitializePaymentResult as bT, type PaymentResponse as bU, type PaymentStatusResponse as bV, type PaymentErrorDetails as bW, type SubmitAuthorizationInput as bX, type BillingFrequency as bY, type BillingPlanType as bZ, type BillingMarkupType as b_, type BenefitType as ba, type AppliedDiscount as bb, type DiscountBreakdown as bc, type DiscountDetails as bd, type SelectedAddOnOption as be, type AddOnDetails as bf, type CartAddOn as bg, type VariantDetails as bh, type BundleSelectionInput as bi, type ComponentSchedulingData as bj, type BundleStoredSelection as bk, type BundleSelectionData as bl, type CompositeStoredSelection as bm, type CompositePriceBreakdown as bn, type CompositeSelectionData as bo, type LineConfiguration as bp, type Cart as bq, type CartItem as br, type CartTotals as bs, type DisplayCart as bt, type DisplayCartItem as bu, type DisplayAddOn as bv, type DisplayAddOnOption as bw, type UICartBusiness as bx, type UICartLocation as by, type UICartCustomer as bz, currencyCode as c, type EligiblePlansQuery as c0, type FormattedPlanOption as c1, type SubscriptionStatus as c2, type Subscription as c3, type SubscriptionItem as c4, type SubscriptionInvoice as c5, type SubscriptionWithDetails as c6, 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, isIdempotencyMismatchError as k, getErrorHint as l, money as m, enrichError as n, isRetryableError as o, type ProductType as p, PRODUCT_TYPE as q, type ProductRenderHint as r, type InventoryType as s, type DigitalProductType as t, type DepositType as u, type DurationUnit as v, DURATION_UNIT as w, type SalesChannel as x, type AttributeType as y, type AttributeAppliesTo as z };
1520
+ export { type DateRangeValue as $, type ApiError as A, type AttributeVisibility as B, type ChosenPrice as C, type DisplayMode as D, ErrorCode as E, type MeasurementValue as F, type AttributeValidationRules as G, type CustomAttributeDefinition as H, IdempotencyMismatchError as I, type CustomAttributeValue as J, type PropertySource as K, type ProductProperty as L, type Money as M, type PropertyFacet as N, type FacetValue as O, type PaginationParams as P, type KnowledgeArticle as Q, RENDER_HINT as R, type SchedulingMode as S, type TaxonomyAttributeTemplate as T, type Product as U, type VariantStrategy as V, type InputFieldType as W, INPUT_FIELD_TYPE as X, type AddressValue as Y, ZERO as Z, type PhoneValue as _, type CurrencyCode as a, type DiscountValidation as a$, type LocationValue as a0, type SignatureValue as a1, type InputFieldValidation as a2, type SemanticKind as a3, type ProductInputField as a4, type CustomerInputValue as a5, type QuantityPricingTier as a6, type RelatedProductView as a7, type ProductWithDetails as a8, type VariantView as a9, type BundleComponentVariantView as aA, type VariantAxisView as aB, type VariantAxisValueView as aC, type CompositePricingMode as aD, type GroupPricingBehavior as aE, type ComponentSourceType as aF, type Composite as aG, type CompositeWithDetails as aH, type ComponentGroup as aI, type ComponentGroupWithComponents as aJ, type CompositeGroupView as aK, type CompositeComponentView as aL, type CompositeComponent as aM, type ComponentSelectionInput as aN, type CompositePriceResult as aO, type ComponentPriceBreakdown as aP, type PriceEntryType as aQ, type Price as aR, type LocationProductPrice as aS, type ProductAvailability as aT, type ProductTimeProfile as aU, type ProductTaxonomy as aV, type TaxonomyWithChildren as aW, type ProductAvailabilityNow as aX, type DealBenefitType as aY, type Deal as aZ, type ProductDealInfo as a_, type ProductVariant as aa, type VariantDisplayAttribute as ab, type VariantAxis as ac, type VariantAxisWithValues as ad, type VariantAxisValue as ae, type ProductVariantValue as af, type VariantLocationAvailability as ag, type VariantAxisSelection as ah, type AddOn as ai, type AddOnWithOptions as aj, type AddOnOption as ak, type AddOnOptionPrice as al, type ProductAddOn as am, type Category as an, type CategorySummary as ao, type Collection as ap, type CollectionSummary as aq, type CollectionProduct as ar, type BundlePriceType as as, type Bundle as at, type BundleSummary as au, type BundleProduct as av, type BundleWithDetails as aw, type BundleComponentData as ax, type BundleComponentInfo as ay, type BundleComponentView as az, moneyFromNumber as b, type Tag as b0, type TagsResponse as b1, type CartStatus as b2, type CartChannel as b3, type PriceSource as b4, type AdjustmentType as b5, type PriceAdjustment as b6, type TaxPathComponent as b7, type PricePathTaxInfo as b8, type PriceDecisionPath as b9, type UICartPricing as bA, type AddOnOptionDetails as bB, type AddOnGroupDetails as bC, type VariantDetailsDTO as bD, type CartItemDetails as bE, type UICart as bF, type CartNotice as bG, type CartMutationResult as bH, type AddToCartInput as bI, type UpdateCartItemInput as bJ, type CartSummary as bK, type BillingFrequency as bL, type BillingPlanType as bM, type BillingMarkupType as bN, type ProductBillingPlan as bO, type EligiblePlansQuery as bP, type FormattedPlanOption as bQ, type SubscriptionStatus as bR, type Subscription as bS, type SubscriptionItem as bT, type SubscriptionInvoice as bU, type SubscriptionWithDetails as bV, type BenefitType as ba, type AppliedDiscount as bb, type DiscountBreakdown as bc, type DiscountDetails as bd, type SelectedAddOnOption as be, type AddOnDetails as bf, type CartAddOn as bg, type VariantDetails as bh, type BundleSelectionInput as bi, type ComponentSchedulingData as bj, type BundleStoredSelection as bk, type BundleSelectionData as bl, type CompositeStoredSelection as bm, type CompositePriceBreakdown as bn, type CompositeSelectionData as bo, type LineConfiguration as bp, type Cart as bq, type CartItem as br, type CartTotals as bs, type DisplayCart as bt, type DisplayCartItem as bu, type DisplayAddOn as bv, type DisplayAddOnOption as bw, type UICartBusiness as bx, type UICartLocation as by, type UICartCustomer as bz, currencyCode as c, type Pagination as d, type ErrorCodeType as e, type ErrorHint as f, ERROR_HINTS as g, CimplifyError as h, isSupportedCurrency as i, isCimplifyError as j, isIdempotencyMismatchError as k, getErrorHint as l, money as m, enrichError as n, isRetryableError as o, type ProductType as p, PRODUCT_TYPE as q, type ProductRenderHint as r, type InventoryType as s, type DigitalProductType as t, type DepositType as u, type DurationUnit as v, DURATION_UNIT as w, type SalesChannel as x, type AttributeType as y, type AttributeAppliesTo as z };
package/dist/react.d.mts CHANGED
@@ -1,11 +1,12 @@
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, an as ProcessCheckoutResult, ap as CheckoutStatus, aq as CheckoutStatusContext, bZ as Location, bW as Business, k as ReorderResult, b4 as OrderStatus, bh as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, ca as Service, cf as AvailableSlot, cg as DayAvailability, cl as CustomerBooking, cr as CancelBookingResult, J as ActivityStateResponse, E as SessionMessage, K as ActivityRecommendation, W as DeliveryFeeResponse, d0 as FxRateResponse, c4 as StorefrontBootstrap, a0 as ChatWidgetStarter, Y as ChatMessage, ab as ElementsOptions, de as AuthenticatedData, da as AddressInfo, db as PaymentMethodInfo, a5 as CimplifyElements, dg as ElementsCheckoutResult, am as ProcessCheckoutOptions, bg as LineItem, cb as Staff, c2 as Room } from './client-C5LcbNxL.mjs';
5
- import { a as CurrencyCode, U as Product, d as Pagination, h as CimplifyError, a8 as ProductWithDetails, an as Category, M as Money, bi as BundleSelectionInput, aN as ComponentSelectionInput, bl as BundleSelectionData, bo as CompositeSelectionData, ap as Collection, aV as ProductTaxonomy, aW as TaxonomyWithChildren, aU as ProductTimeProfile, aZ as Deal, a_ as ProductDealInfo, a$ as DiscountValidation, au as BundleSummary, aO as CompositePriceResult, c2 as SubscriptionStatus, c3 as Subscription, c6 as SubscriptionWithDetails, H as CustomAttributeDefinition, N as PropertyFacet, b$ as ProductBillingPlan, a9 as VariantView, ad as VariantAxisWithValues, aj as AddOnWithOptions, az as BundleComponentView, as as BundlePriceType, aK as CompositeGroupView, bt as DisplayCart, a4 as ProductInputField, J as CustomAttributeValue, L as ProductProperty, a6 as QuantityPricingTier } from './payment-4JSLNTVM.mjs';
6
- import { P as ProductWithPrice } from './price-DMijJ6_3.mjs';
4
+ import { C as CimplifyClient, an as ProcessCheckoutResult, ap as CheckoutStatus, aq as CheckoutStatusContext, bZ as Location, bW as Business, k as ReorderResult, b4 as OrderStatus, bh as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, ca as Service, cf as AvailableSlot, cg as DayAvailability, cl as CustomerBooking, cr as CancelBookingResult, J as ActivityStateResponse, E as SessionMessage, K as ActivityRecommendation, W as DeliveryFeeResponse, d0 as FxRateResponse, c4 as StorefrontBootstrap, a0 as ChatWidgetStarter, Y as ChatMessage, ab as ElementsOptions, de as AuthenticatedData, da as AddressInfo, db as PaymentMethodInfo, a5 as CimplifyElements, dg as ElementsCheckoutResult, am as ProcessCheckoutOptions, bg as LineItem, cb as Staff, c2 as Room } from './client-CDUY-6nC.mjs';
5
+ import { a as CurrencyCode, U as Product, d as Pagination, h as CimplifyError, a8 as ProductWithDetails, an as Category, M as Money, bi as BundleSelectionInput, aN as ComponentSelectionInput, bl as BundleSelectionData, bo as CompositeSelectionData, ap as Collection, aV as ProductTaxonomy, aW as TaxonomyWithChildren, aU as ProductTimeProfile, aZ as Deal, a_ as ProductDealInfo, a$ as DiscountValidation, au as BundleSummary, aO as CompositePriceResult, bR as SubscriptionStatus, bS as Subscription, bV as SubscriptionWithDetails, H as CustomAttributeDefinition, N as PropertyFacet, bO as ProductBillingPlan, a9 as VariantView, ad as VariantAxisWithValues, aj as AddOnWithOptions, az as BundleComponentView, as as BundlePriceType, aK as CompositeGroupView, bt as DisplayCart, a4 as ProductInputField, J as CustomAttributeValue, L as ProductProperty, a6 as QuantityPricingTier } from './product-DiX-HGkT.mjs';
6
+ import { P as ProductWithPrice } from './price-YBGk5seG.mjs';
7
7
  import { ClassValue } from 'clsx';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
+ import './payment-Bse2XJ-c.mjs';
9
10
 
10
11
  interface UserIdentity {
11
12
  uid: string;
package/dist/react.d.ts CHANGED
@@ -1,11 +1,12 @@
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, an as ProcessCheckoutResult, ap as CheckoutStatus, aq as CheckoutStatusContext, bZ as Location, bW as Business, k as ReorderResult, b4 as OrderStatus, bh as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, ca as Service, cf as AvailableSlot, cg as DayAvailability, cl as CustomerBooking, cr as CancelBookingResult, J as ActivityStateResponse, E as SessionMessage, K as ActivityRecommendation, W as DeliveryFeeResponse, d0 as FxRateResponse, c4 as StorefrontBootstrap, a0 as ChatWidgetStarter, Y as ChatMessage, ab as ElementsOptions, de as AuthenticatedData, da as AddressInfo, db as PaymentMethodInfo, a5 as CimplifyElements, dg as ElementsCheckoutResult, am as ProcessCheckoutOptions, bg as LineItem, cb as Staff, c2 as Room } from './client-Bsd4Vi_y.js';
5
- import { a as CurrencyCode, U as Product, d as Pagination, h as CimplifyError, a8 as ProductWithDetails, an as Category, M as Money, bi as BundleSelectionInput, aN as ComponentSelectionInput, bl as BundleSelectionData, bo as CompositeSelectionData, ap as Collection, aV as ProductTaxonomy, aW as TaxonomyWithChildren, aU as ProductTimeProfile, aZ as Deal, a_ as ProductDealInfo, a$ as DiscountValidation, au as BundleSummary, aO as CompositePriceResult, c2 as SubscriptionStatus, c3 as Subscription, c6 as SubscriptionWithDetails, H as CustomAttributeDefinition, N as PropertyFacet, b$ as ProductBillingPlan, a9 as VariantView, ad as VariantAxisWithValues, aj as AddOnWithOptions, az as BundleComponentView, as as BundlePriceType, aK as CompositeGroupView, bt as DisplayCart, a4 as ProductInputField, J as CustomAttributeValue, L as ProductProperty, a6 as QuantityPricingTier } from './payment-4JSLNTVM.js';
6
- import { P as ProductWithPrice } from './price-DmQTOnjj.js';
4
+ import { C as CimplifyClient, an as ProcessCheckoutResult, ap as CheckoutStatus, aq as CheckoutStatusContext, bZ as Location, bW as Business, k as ReorderResult, b4 as OrderStatus, bh as Order, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, P as PriceQuote, g as QuoteUiMessage, ca as Service, cf as AvailableSlot, cg as DayAvailability, cl as CustomerBooking, cr as CancelBookingResult, J as ActivityStateResponse, E as SessionMessage, K as ActivityRecommendation, W as DeliveryFeeResponse, d0 as FxRateResponse, c4 as StorefrontBootstrap, a0 as ChatWidgetStarter, Y as ChatMessage, ab as ElementsOptions, de as AuthenticatedData, da as AddressInfo, db as PaymentMethodInfo, a5 as CimplifyElements, dg as ElementsCheckoutResult, am as ProcessCheckoutOptions, bg as LineItem, cb as Staff, c2 as Room } from './client-aZInadOY.js';
5
+ import { a as CurrencyCode, U as Product, d as Pagination, h as CimplifyError, a8 as ProductWithDetails, an as Category, M as Money, bi as BundleSelectionInput, aN as ComponentSelectionInput, bl as BundleSelectionData, bo as CompositeSelectionData, ap as Collection, aV as ProductTaxonomy, aW as TaxonomyWithChildren, aU as ProductTimeProfile, aZ as Deal, a_ as ProductDealInfo, a$ as DiscountValidation, au as BundleSummary, aO as CompositePriceResult, bR as SubscriptionStatus, bS as Subscription, bV as SubscriptionWithDetails, H as CustomAttributeDefinition, N as PropertyFacet, bO as ProductBillingPlan, a9 as VariantView, ad as VariantAxisWithValues, aj as AddOnWithOptions, az as BundleComponentView, as as BundlePriceType, aK as CompositeGroupView, bt as DisplayCart, a4 as ProductInputField, J as CustomAttributeValue, L as ProductProperty, a6 as QuantityPricingTier } from './product-DiX-HGkT.js';
6
+ import { P as ProductWithPrice } from './price-mHkRncgW.js';
7
7
  import { ClassValue } from 'clsx';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
+ import './payment-JcNqOf_T.js';
9
10
 
10
11
  interface UserIdentity {
11
12
  uid: string;
@@ -1,4 +1,5 @@
1
1
  import { Hono } from 'hono';
2
+ import { a4 as ProductInputField } from './product-DiX-HGkT.js';
2
3
 
3
4
  interface Clock {
4
5
  now(): Date;
@@ -167,6 +168,14 @@ interface MockProduct {
167
168
  duration_minutes?: number;
168
169
  /** For subscription services — billing plans. */
169
170
  billing_plans?: MockBillingPlan[];
171
+ /**
172
+ * Per-product customer input fields. Surfaced as ProductView.input_fields
173
+ * on the wire so the SDK's product UIs can render the right input
174
+ * controls (file upload for prescriptions, date for DOB, signature for
175
+ * consent, etc.). Same shape the Rust backend already emits
176
+ * (`src/salesman/models/view.rs::ProductView.input_fields`).
177
+ */
178
+ input_fields?: ProductInputField[];
170
179
  metadata?: Record<string, unknown>;
171
180
  created_at: string;
172
181
  updated_at: string;
@@ -1063,7 +1072,7 @@ interface LinkService {
1063
1072
  revokeAllSessions(customerId: string): number;
1064
1073
  }
1065
1074
 
1066
- type SeedName = "default" | "empty" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
1075
+ type SeedName = "default" | "empty" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion" | "pharmacy" | "auto";
1067
1076
 
1068
1077
  interface MockOptions {
1069
1078
  seed?: SeedName;
@@ -66,6 +66,40 @@ interface Store<T> {
66
66
  loadJSON(data: Record<string, T>): void;
67
67
  }
68
68
 
69
+ declare const __money: unique symbol;
70
+ type Money = number & {
71
+ readonly [__money]: true;
72
+ };
73
+
74
+ 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";
75
+ interface InputFieldValidation {
76
+ max_length?: number;
77
+ min_length?: number;
78
+ min_value?: number;
79
+ max_value?: number;
80
+ accepted_formats?: string[];
81
+ max_size_mb?: number;
82
+ pattern?: string;
83
+ allowed_countries?: string[];
84
+ max_selections?: number;
85
+ }
86
+ type SemanticKind = "allergen" | "dietary_preference" | "sensitivity" | "consent";
87
+ interface ProductInputField {
88
+ id: string;
89
+ product_id: string;
90
+ name: string;
91
+ slug: string;
92
+ field_type: InputFieldType;
93
+ is_required: boolean;
94
+ display_order: number;
95
+ placeholder?: string;
96
+ help_text?: string;
97
+ validation?: InputFieldValidation;
98
+ options?: string[];
99
+ price_adjustment?: Money;
100
+ semantic_kind?: SemanticKind;
101
+ }
102
+
69
103
  interface Session {
70
104
  id: string;
71
105
  token: string;
@@ -167,6 +201,14 @@ interface MockProduct {
167
201
  duration_minutes?: number;
168
202
  /** For subscription services — billing plans. */
169
203
  billing_plans?: MockBillingPlan[];
204
+ /**
205
+ * Per-product customer input fields. Surfaced as ProductView.input_fields
206
+ * on the wire so the SDK's product UIs can render the right input
207
+ * controls (file upload for prescriptions, date for DOB, signature for
208
+ * consent, etc.). Same shape the Rust backend already emits
209
+ * (`src/salesman/models/view.rs::ProductView.input_fields`).
210
+ */
211
+ input_fields?: ProductInputField[];
170
212
  metadata?: Record<string, unknown>;
171
213
  created_at: string;
172
214
  updated_at: string;
@@ -1063,7 +1105,7 @@ interface LinkService {
1063
1105
  revokeAllSessions(customerId: string): number;
1064
1106
  }
1065
1107
 
1066
- type SeedName = "default" | "empty" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion";
1108
+ type SeedName = "default" | "empty" | "reesa-storefront" | "restaurant" | "retail" | "services" | "grocery" | "fashion" | "pharmacy" | "auto";
1067
1109
  declare function applySeed(registry: StateRegistry, name: SeedName): {
1068
1110
  businessId: string;
1069
1111
  };