@cimplify/sdk 0.99.2 → 0.100.1

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 (62) hide show
  1. package/dist/advanced.d.mts +3 -3
  2. package/dist/advanced.d.ts +3 -3
  3. package/dist/advanced.js +22 -22
  4. package/dist/advanced.mjs +3 -3
  5. package/dist/{chunk-R7FAU2ZF.js → chunk-BHQCSHIG.js} +78 -72
  6. package/dist/{chunk-KFLGQGMC.mjs → chunk-DLW3RWRK.mjs} +35 -15
  7. package/dist/{chunk-QYBGG3ZJ.mjs → chunk-KEC2CX4R.mjs} +2 -2
  8. package/dist/{chunk-FECGCIVV.js → chunk-NH3HYUC3.js} +3 -3
  9. package/dist/{chunk-AETVRBKI.js → chunk-NIOUSKQQ.js} +1 -0
  10. package/dist/{chunk-7TEMLVDT.mjs → chunk-NKZIXLKW.mjs} +1 -1
  11. package/dist/{chunk-J64F56EB.js → chunk-NR4Z2SFY.js} +4 -4
  12. package/dist/{chunk-K5EN2W2Q.mjs → chunk-O3YUHLZL.mjs} +1 -0
  13. package/dist/{chunk-ZFI2TKTO.mjs → chunk-PTKAN4SI.mjs} +25 -15
  14. package/dist/{chunk-4S5EMSF5.js → chunk-QGFKIAEM.js} +48 -38
  15. package/dist/{chunk-DOEGVGTM.mjs → chunk-T2B656RS.mjs} +8 -3
  16. package/dist/{chunk-PTPOQVXS.js → chunk-WMEC5JWN.js} +37 -16
  17. package/dist/{client-CX59ew7C.d.ts → client-B0Lku_lc.d.mts} +17 -16
  18. package/dist/{client-CCCOOaI3.d.ts → client-DRgEa78P.d.ts} +2 -2
  19. package/dist/{client-BNfVL2IL.d.mts → client-DxgC_lXU.d.ts} +17 -16
  20. package/dist/{client-BeMhSkRT.d.mts → client-T5c-Nxq-.d.mts} +2 -2
  21. package/dist/{index-D-w5h82t.d.ts → index-CzKN1hjf.d.ts} +3 -3
  22. package/dist/{index-BuNjyfaV.d.mts → index-DzuLT5wi.d.mts} +3 -3
  23. package/dist/index.d.mts +7 -7
  24. package/dist/index.d.ts +7 -7
  25. package/dist/index.js +117 -117
  26. package/dist/index.mjs +5 -5
  27. package/dist/{payment-pKPpaORI.d.mts → payment-D8NEwCna.d.mts} +2 -2
  28. package/dist/{payment-By0JidTe.d.ts → payment-lZBP7h5M.d.ts} +2 -2
  29. package/dist/{price-BvRtp6ak.d.mts → price-DepWAmcL.d.mts} +1 -1
  30. package/dist/{price-23RNXftz.d.ts → price-ncQb-TC8.d.ts} +1 -1
  31. package/dist/{product-O8-wcHSe.d.ts → product-B384_Qm2.d.mts} +38 -49
  32. package/dist/{product-O8-wcHSe.d.mts → product-B384_Qm2.d.ts} +38 -49
  33. package/dist/react.d.mts +10 -5
  34. package/dist/react.d.ts +10 -5
  35. package/dist/react.js +830 -446
  36. package/dist/react.mjs +711 -327
  37. package/dist/{server-JBuTPY-j.d.ts → server-B7O4ttpv.d.ts} +1 -1
  38. package/dist/{server-HVDbbqR9.d.mts → server-oCGNIO_K.d.mts} +1 -1
  39. package/dist/server.d.mts +4 -4
  40. package/dist/server.d.ts +4 -4
  41. package/dist/server.js +10 -10
  42. package/dist/server.mjs +4 -4
  43. package/dist/testing/msw.d.mts +2 -2
  44. package/dist/testing/msw.d.ts +2 -2
  45. package/dist/testing/msw.js +3 -3
  46. package/dist/testing/msw.mjs +2 -2
  47. package/dist/testing/suite.d.mts +6 -6
  48. package/dist/testing/suite.d.ts +6 -6
  49. package/dist/testing/suite.js +25 -25
  50. package/dist/testing/suite.mjs +6 -6
  51. package/dist/testing.d.mts +5 -5
  52. package/dist/testing.d.ts +5 -5
  53. package/dist/testing.js +81 -81
  54. package/dist/testing.mjs +7 -7
  55. package/dist/utils.d.mts +4 -4
  56. package/dist/utils.d.ts +4 -4
  57. package/dist/utils.js +29 -29
  58. package/dist/utils.mjs +2 -2
  59. package/package.json +1 -1
  60. package/registry/cart-summary.json +1 -1
  61. package/registry/product-customizer.json +1 -1
  62. package/registry/sale-badge.json +1 -1
@@ -5,7 +5,7 @@ type Money = (string | number) & {
5
5
  declare function money(value: string | number): Money;
6
6
  declare function moneyFromNumber(value: number): Money;
7
7
  declare const ZERO: Money;
8
- type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
8
+ type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "COP" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
9
9
  declare function isSupportedCurrency(code: string): code is CurrencyCode;
10
10
  declare function currencyCode(value: string): CurrencyCode;
11
11
  interface PaginationParams {
@@ -675,7 +675,6 @@ interface Subscription {
675
675
  customer_id: string;
676
676
  billing_plan_id?: string;
677
677
  business_id?: string;
678
- price_id?: string;
679
678
  status: SubscriptionStatus;
680
679
  current_period_start: string;
681
680
  current_period_end: string;
@@ -722,10 +721,10 @@ interface SubscriptionInvoice {
722
721
  }
723
722
  interface SubscriptionWithDetails {
724
723
  subscription: Subscription;
725
- plan?: ProductBillingPlan;
726
- product?: Product;
724
+ billing_plan?: ProductBillingPlan | null;
725
+ catalogue_product?: Product | null;
727
726
  items: SubscriptionItem[];
728
- latest_invoice?: SubscriptionInvoice;
727
+ latest_invoice?: SubscriptionInvoice | null;
729
728
  }
730
729
 
731
730
  interface components {
@@ -1082,8 +1081,6 @@ interface components {
1082
1081
  BenefitType: "fixed" | "percentage" | "points" | "free_item" | "buy_x_get_y_free";
1083
1082
  /** @enum {string} */
1084
1083
  BillingFrequency: "weekly" | "biweekly" | "monthly" | "quarterly" | "annually";
1085
- /** @enum {string} */
1086
- BillingInterval: "one_time" | "week" | "month" | "quarterly" | "year";
1087
1084
  BillingInvoice: {
1088
1085
  id: string;
1089
1086
  invoice_number: string;
@@ -1116,43 +1113,8 @@ interface components {
1116
1113
  };
1117
1114
  /** @enum {string} */
1118
1115
  BillingMarkupType: "fixed" | "percentage";
1119
- BillingPrice: {
1120
- id: string;
1121
- product_id: string;
1122
- amount: string;
1123
- currency: string;
1124
- interval: components["schemas"]["BillingInterval"];
1125
- /** Format: int32 */
1126
- interval_count: number;
1127
- /** Format: int32 */
1128
- trial_period_days?: number | null;
1129
- active: boolean;
1130
- metadata?: Record<string, never> | null;
1131
- /** Format: date-time */
1132
- created_at: string;
1133
- };
1134
- BillingProduct: {
1135
- id: string;
1136
- provider_type: components["schemas"]["BillingProvider"];
1137
- provider_id?: string | null;
1138
- name: string;
1139
- description?: string | null;
1140
- active: boolean;
1141
- product_type: components["schemas"]["BillingProductType"];
1142
- pricing_type: components["schemas"]["PricingType"];
1143
- metadata?: Record<string, never> | null;
1144
- /** Format: date-time */
1145
- created_at: string;
1146
- /** Format: date-time */
1147
- updated_at: string;
1148
- };
1149
- /** @enum {string} */
1150
- BillingProductType: "Catalog" | "Instance";
1151
- /** @enum {string} */
1152
- BillingProvider: "Business";
1153
1116
  BillingSubscription: {
1154
1117
  id: string;
1155
- price_id?: string | null;
1156
1118
  billing_plan_id?: string | null;
1157
1119
  business_id?: string | null;
1158
1120
  customer_id: string;
@@ -1183,6 +1145,10 @@ interface components {
1183
1145
  source_id?: string | null;
1184
1146
  frequency?: null | components["schemas"]["BillingFrequency"];
1185
1147
  fulfillment_frequency?: null | components["schemas"]["BillingFrequency"];
1148
+ plan_type?: null | components["schemas"]["ProductBillingPlanType"];
1149
+ /** Format: int32 */
1150
+ max_cycles?: number | null;
1151
+ billing_currency?: string | null;
1186
1152
  /** Format: date-time */
1187
1153
  contract_ends_at?: string | null;
1188
1154
  metadata?: Record<string, never> | null;
@@ -2502,7 +2468,7 @@ interface components {
2502
2468
  download_expires_days?: number | null;
2503
2469
  };
2504
2470
  /** @enum {string} */
2505
- DunningStatus: "pending" | "retrying" | "action_required" | "succeeded" | "exhausted" | "cancelled";
2471
+ DunningStatus: "pending" | "awaiting_payment" | "action_required" | "succeeded" | "exhausted" | "cancelled";
2506
2472
  /**
2507
2473
  * @description Unit of measurement for service/rental durations.
2508
2474
  * Stored alongside the numeric `duration_value` field which holds the raw
@@ -2740,7 +2706,12 @@ interface components {
2740
2706
  * @enum {string}
2741
2707
  */
2742
2708
  InventoryType: "one_to_one" | "composition" | "none";
2743
- /** @enum {string} */
2709
+ /**
2710
+ * @description Lifecycle value stored by `billing_invoices.status`. Keep the SQLx type
2711
+ * aligned with the physical VARCHAR column; SQLx 0.9 checks compatibility at
2712
+ * runtime for inferred query fields.
2713
+ * @enum {string}
2714
+ */
2744
2715
  InvoiceStatus: "draft" | "open" | "paid" | "void" | "uncollectible";
2745
2716
  /** @description Represents item availability at a location */
2746
2717
  ItemAvailability: {
@@ -3472,6 +3443,7 @@ interface components {
3472
3443
  item_price_info: components["schemas"]["ChosenPrice"];
3473
3444
  variant_price_info?: null | components["schemas"]["ChosenPrice"];
3474
3445
  final_price_info: components["schemas"]["ChosenPrice"];
3446
+ sale?: null | components["schemas"]["SaleInfo"];
3475
3447
  add_on_option_ids?: string[];
3476
3448
  bundle_selections?: components["schemas"]["QuoteBundleSelection"][];
3477
3449
  add_ons_price_info?: null | components["schemas"]["ChosenPrice"];
@@ -3519,8 +3491,6 @@ interface components {
3519
3491
  /** @description Whether to enable automatic pricing */
3520
3492
  auto_pricing: boolean;
3521
3493
  };
3522
- /** @enum {string} */
3523
- PricingType: "Fixed" | "Dynamic";
3524
3494
  ProcessArgs: components["schemas"]["CheckoutFormData"];
3525
3495
  Product: {
3526
3496
  id: string;
@@ -3672,6 +3642,12 @@ interface components {
3672
3642
  sku?: string | null;
3673
3643
  barcode?: string | null;
3674
3644
  default_price?: string;
3645
+ /**
3646
+ * @description Currency of the evaluated storefront price. Kept beside the scalar
3647
+ * amount because the richer internal price path is intentionally not
3648
+ * serialized on catalogue payloads.
3649
+ */
3650
+ currency?: string | null;
3675
3651
  sale?: null | components["schemas"]["SaleInfo"];
3676
3652
  upcoming_sale?: null | components["schemas"]["UpcomingSale"];
3677
3653
  location_prices?: {
@@ -4363,6 +4339,11 @@ interface components {
4363
4339
  id: string;
4364
4340
  subscription_id: string;
4365
4341
  product_id: string;
4342
+ /**
4343
+ * @description Catalogue-plan lineage accepted for this item. The referenced offer may
4344
+ * later change or be retired without changing this item's contract.
4345
+ */
4346
+ billing_plan_id?: string | null;
4366
4347
  /** Format: int32 */
4367
4348
  quantity: number;
4368
4349
  unit_price?: string | null;
@@ -4373,12 +4354,15 @@ interface components {
4373
4354
  removed_at?: string | null;
4374
4355
  metadata?: Record<string, never> | null;
4375
4356
  };
4376
- /** @enum {string} */
4357
+ /**
4358
+ * @description Lifecycle value stored by `billing_subscriptions.status`. The SQLx type
4359
+ * deliberately matches the physical VARCHAR column so checked row decoding
4360
+ * cannot fail after a successful compile.
4361
+ * @enum {string}
4362
+ */
4377
4363
  SubscriptionStatus: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
4378
4364
  SubscriptionWithDetails: {
4379
4365
  subscription: components["schemas"]["BillingSubscription"];
4380
- price?: null | components["schemas"]["BillingPrice"];
4381
- product?: null | components["schemas"]["BillingProduct"];
4382
4366
  catalogue_product?: null | components["schemas"]["Product"];
4383
4367
  billing_plan?: null | components["schemas"]["ProductBillingPlan"];
4384
4368
  items: components["schemas"]["SubscriptionItem"][];
@@ -4580,6 +4564,7 @@ interface components {
4580
4564
  sku?: string | null;
4581
4565
  barcode?: string | null;
4582
4566
  price_adjustment?: string;
4567
+ price_info?: null | components["schemas"]["ChosenPrice"];
4583
4568
  location_prices?: {
4584
4569
  [key: string]: components["schemas"]["ChosenPrice"];
4585
4570
  } | null;
@@ -4846,6 +4831,8 @@ interface Product {
4846
4831
  description?: string;
4847
4832
  image_url?: string;
4848
4833
  default_price: Money;
4834
+ /** Currency of `default_price`, resolved by the canonical pricing engine. */
4835
+ currency?: CurrencyCode | null;
4849
4836
  /** Sales-engine overlay from the pricing API, when the product is on sale. */
4850
4837
  sale?: SaleInfo | null;
4851
4838
  /** A recurring sale that returns soon — present only when there's no live `sale`. */
@@ -5080,6 +5067,8 @@ interface VariantView {
5080
5067
  sku?: string;
5081
5068
  barcode?: string;
5082
5069
  price_adjustment: Money;
5070
+ /** Canonical evaluated unit price in the active shopper/location scope. */
5071
+ price_info?: ChosenPrice;
5083
5072
  location_prices?: Record<string, ChosenPrice>;
5084
5073
  axis_selections?: Record<string, string>;
5085
5074
  display_attributes?: VariantDisplayAttribute[];
@@ -5,7 +5,7 @@ type Money = (string | number) & {
5
5
  declare function money(value: string | number): Money;
6
6
  declare function moneyFromNumber(value: number): Money;
7
7
  declare const ZERO: Money;
8
- type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
8
+ type CurrencyCode = "USD" | "EUR" | "GBP" | "JPY" | "CNY" | "CHF" | "CAD" | "AUD" | "GHS" | "NGN" | "KES" | "ZAR" | "XOF" | "XAF" | "EGP" | "TZS" | "UGX" | "RWF" | "ETB" | "ZMW" | "BWP" | "MUR" | "NAD" | "MWK" | "AOA" | "CDF" | "GMD" | "GNF" | "LRD" | "SLL" | "MZN" | "BIF" | "INR" | "BRL" | "COP" | "MXN" | "KRW" | "TRY" | "THB" | "MYR" | "PHP" | "IDR" | "VND" | "SGD" | "HKD" | "TWD" | "AED" | "SAR" | "ILS";
9
9
  declare function isSupportedCurrency(code: string): code is CurrencyCode;
10
10
  declare function currencyCode(value: string): CurrencyCode;
11
11
  interface PaginationParams {
@@ -675,7 +675,6 @@ interface Subscription {
675
675
  customer_id: string;
676
676
  billing_plan_id?: string;
677
677
  business_id?: string;
678
- price_id?: string;
679
678
  status: SubscriptionStatus;
680
679
  current_period_start: string;
681
680
  current_period_end: string;
@@ -722,10 +721,10 @@ interface SubscriptionInvoice {
722
721
  }
723
722
  interface SubscriptionWithDetails {
724
723
  subscription: Subscription;
725
- plan?: ProductBillingPlan;
726
- product?: Product;
724
+ billing_plan?: ProductBillingPlan | null;
725
+ catalogue_product?: Product | null;
727
726
  items: SubscriptionItem[];
728
- latest_invoice?: SubscriptionInvoice;
727
+ latest_invoice?: SubscriptionInvoice | null;
729
728
  }
730
729
 
731
730
  interface components {
@@ -1082,8 +1081,6 @@ interface components {
1082
1081
  BenefitType: "fixed" | "percentage" | "points" | "free_item" | "buy_x_get_y_free";
1083
1082
  /** @enum {string} */
1084
1083
  BillingFrequency: "weekly" | "biweekly" | "monthly" | "quarterly" | "annually";
1085
- /** @enum {string} */
1086
- BillingInterval: "one_time" | "week" | "month" | "quarterly" | "year";
1087
1084
  BillingInvoice: {
1088
1085
  id: string;
1089
1086
  invoice_number: string;
@@ -1116,43 +1113,8 @@ interface components {
1116
1113
  };
1117
1114
  /** @enum {string} */
1118
1115
  BillingMarkupType: "fixed" | "percentage";
1119
- BillingPrice: {
1120
- id: string;
1121
- product_id: string;
1122
- amount: string;
1123
- currency: string;
1124
- interval: components["schemas"]["BillingInterval"];
1125
- /** Format: int32 */
1126
- interval_count: number;
1127
- /** Format: int32 */
1128
- trial_period_days?: number | null;
1129
- active: boolean;
1130
- metadata?: Record<string, never> | null;
1131
- /** Format: date-time */
1132
- created_at: string;
1133
- };
1134
- BillingProduct: {
1135
- id: string;
1136
- provider_type: components["schemas"]["BillingProvider"];
1137
- provider_id?: string | null;
1138
- name: string;
1139
- description?: string | null;
1140
- active: boolean;
1141
- product_type: components["schemas"]["BillingProductType"];
1142
- pricing_type: components["schemas"]["PricingType"];
1143
- metadata?: Record<string, never> | null;
1144
- /** Format: date-time */
1145
- created_at: string;
1146
- /** Format: date-time */
1147
- updated_at: string;
1148
- };
1149
- /** @enum {string} */
1150
- BillingProductType: "Catalog" | "Instance";
1151
- /** @enum {string} */
1152
- BillingProvider: "Business";
1153
1116
  BillingSubscription: {
1154
1117
  id: string;
1155
- price_id?: string | null;
1156
1118
  billing_plan_id?: string | null;
1157
1119
  business_id?: string | null;
1158
1120
  customer_id: string;
@@ -1183,6 +1145,10 @@ interface components {
1183
1145
  source_id?: string | null;
1184
1146
  frequency?: null | components["schemas"]["BillingFrequency"];
1185
1147
  fulfillment_frequency?: null | components["schemas"]["BillingFrequency"];
1148
+ plan_type?: null | components["schemas"]["ProductBillingPlanType"];
1149
+ /** Format: int32 */
1150
+ max_cycles?: number | null;
1151
+ billing_currency?: string | null;
1186
1152
  /** Format: date-time */
1187
1153
  contract_ends_at?: string | null;
1188
1154
  metadata?: Record<string, never> | null;
@@ -2502,7 +2468,7 @@ interface components {
2502
2468
  download_expires_days?: number | null;
2503
2469
  };
2504
2470
  /** @enum {string} */
2505
- DunningStatus: "pending" | "retrying" | "action_required" | "succeeded" | "exhausted" | "cancelled";
2471
+ DunningStatus: "pending" | "awaiting_payment" | "action_required" | "succeeded" | "exhausted" | "cancelled";
2506
2472
  /**
2507
2473
  * @description Unit of measurement for service/rental durations.
2508
2474
  * Stored alongside the numeric `duration_value` field which holds the raw
@@ -2740,7 +2706,12 @@ interface components {
2740
2706
  * @enum {string}
2741
2707
  */
2742
2708
  InventoryType: "one_to_one" | "composition" | "none";
2743
- /** @enum {string} */
2709
+ /**
2710
+ * @description Lifecycle value stored by `billing_invoices.status`. Keep the SQLx type
2711
+ * aligned with the physical VARCHAR column; SQLx 0.9 checks compatibility at
2712
+ * runtime for inferred query fields.
2713
+ * @enum {string}
2714
+ */
2744
2715
  InvoiceStatus: "draft" | "open" | "paid" | "void" | "uncollectible";
2745
2716
  /** @description Represents item availability at a location */
2746
2717
  ItemAvailability: {
@@ -3472,6 +3443,7 @@ interface components {
3472
3443
  item_price_info: components["schemas"]["ChosenPrice"];
3473
3444
  variant_price_info?: null | components["schemas"]["ChosenPrice"];
3474
3445
  final_price_info: components["schemas"]["ChosenPrice"];
3446
+ sale?: null | components["schemas"]["SaleInfo"];
3475
3447
  add_on_option_ids?: string[];
3476
3448
  bundle_selections?: components["schemas"]["QuoteBundleSelection"][];
3477
3449
  add_ons_price_info?: null | components["schemas"]["ChosenPrice"];
@@ -3519,8 +3491,6 @@ interface components {
3519
3491
  /** @description Whether to enable automatic pricing */
3520
3492
  auto_pricing: boolean;
3521
3493
  };
3522
- /** @enum {string} */
3523
- PricingType: "Fixed" | "Dynamic";
3524
3494
  ProcessArgs: components["schemas"]["CheckoutFormData"];
3525
3495
  Product: {
3526
3496
  id: string;
@@ -3672,6 +3642,12 @@ interface components {
3672
3642
  sku?: string | null;
3673
3643
  barcode?: string | null;
3674
3644
  default_price?: string;
3645
+ /**
3646
+ * @description Currency of the evaluated storefront price. Kept beside the scalar
3647
+ * amount because the richer internal price path is intentionally not
3648
+ * serialized on catalogue payloads.
3649
+ */
3650
+ currency?: string | null;
3675
3651
  sale?: null | components["schemas"]["SaleInfo"];
3676
3652
  upcoming_sale?: null | components["schemas"]["UpcomingSale"];
3677
3653
  location_prices?: {
@@ -4363,6 +4339,11 @@ interface components {
4363
4339
  id: string;
4364
4340
  subscription_id: string;
4365
4341
  product_id: string;
4342
+ /**
4343
+ * @description Catalogue-plan lineage accepted for this item. The referenced offer may
4344
+ * later change or be retired without changing this item's contract.
4345
+ */
4346
+ billing_plan_id?: string | null;
4366
4347
  /** Format: int32 */
4367
4348
  quantity: number;
4368
4349
  unit_price?: string | null;
@@ -4373,12 +4354,15 @@ interface components {
4373
4354
  removed_at?: string | null;
4374
4355
  metadata?: Record<string, never> | null;
4375
4356
  };
4376
- /** @enum {string} */
4357
+ /**
4358
+ * @description Lifecycle value stored by `billing_subscriptions.status`. The SQLx type
4359
+ * deliberately matches the physical VARCHAR column so checked row decoding
4360
+ * cannot fail after a successful compile.
4361
+ * @enum {string}
4362
+ */
4377
4363
  SubscriptionStatus: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
4378
4364
  SubscriptionWithDetails: {
4379
4365
  subscription: components["schemas"]["BillingSubscription"];
4380
- price?: null | components["schemas"]["BillingPrice"];
4381
- product?: null | components["schemas"]["BillingProduct"];
4382
4366
  catalogue_product?: null | components["schemas"]["Product"];
4383
4367
  billing_plan?: null | components["schemas"]["ProductBillingPlan"];
4384
4368
  items: components["schemas"]["SubscriptionItem"][];
@@ -4580,6 +4564,7 @@ interface components {
4580
4564
  sku?: string | null;
4581
4565
  barcode?: string | null;
4582
4566
  price_adjustment?: string;
4567
+ price_info?: null | components["schemas"]["ChosenPrice"];
4583
4568
  location_prices?: {
4584
4569
  [key: string]: components["schemas"]["ChosenPrice"];
4585
4570
  } | null;
@@ -4846,6 +4831,8 @@ interface Product {
4846
4831
  description?: string;
4847
4832
  image_url?: string;
4848
4833
  default_price: Money;
4834
+ /** Currency of `default_price`, resolved by the canonical pricing engine. */
4835
+ currency?: CurrencyCode | null;
4849
4836
  /** Sales-engine overlay from the pricing API, when the product is on sale. */
4850
4837
  sale?: SaleInfo | null;
4851
4838
  /** A recurring sale that returns soon — present only when there's no live `sale`. */
@@ -5080,6 +5067,8 @@ interface VariantView {
5080
5067
  sku?: string;
5081
5068
  barcode?: string;
5082
5069
  price_adjustment: Money;
5070
+ /** Canonical evaluated unit price in the active shopper/location scope. */
5071
+ price_info?: ChosenPrice;
5083
5072
  location_prices?: Record<string, ChosenPrice>;
5084
5073
  axis_selections?: Record<string, string>;
5085
5074
  display_attributes?: VariantDisplayAttribute[];
package/dist/react.d.mts CHANGED
@@ -2,13 +2,13 @@ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, PointerEvent, MouseEvent } from 'react';
3
3
  import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.mjs';
4
4
  export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.mjs';
5
- import { af as CimplifyClient, ca as OrderType, cv as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a_ as EnrichedOrderItem, aZ as EnrichedOrder, w as Business, bz as Location, cM as ReorderResult, c8 as OrderStatus, bP as Order, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cr as PriceQuote, cB as QuoteUiMessage, d6 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, df as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aC as DeliveryOptionsResponse, bc as FxRateResponse, dp as StoreCreditBalance, dr as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aY as ElementsOptions, cl as PaymentMethodInfo, aW as ElementsCheckoutResult, cu as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bo as LineItem, di as Staff, d1 as Room, Y as ChatReplyContext } from './client-BNfVL2IL.mjs';
5
+ import { af as CimplifyClient, ca as OrderType, cv as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a_ as EnrichedOrderItem, aZ as EnrichedOrder, w as Business, bz as Location, cM as ReorderResult, c8 as OrderStatus, bP as Order, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cr as PriceQuote, cB as QuoteUiMessage, d6 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, df as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aC as DeliveryOptionsResponse, bc as FxRateResponse, dp as StoreCreditBalance, dr as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aY as ElementsOptions, cl as PaymentMethodInfo, aW as ElementsCheckoutResult, cu as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bo as LineItem, di as Staff, d1 as Room, Y as ChatReplyContext } from './client-B0Lku_lc.mjs';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-O8-wcHSe.mjs';
8
- import { P as ProductWithPrice } from './price-BvRtp6ak.mjs';
7
+ import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, U as ChosenPrice, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-B384_Qm2.mjs';
8
+ import { P as ProductWithPrice } from './price-DepWAmcL.mjs';
9
9
  import { ClassValue } from 'clsx';
10
10
  import { Matcher } from 'react-day-picker';
11
- import './payment-pKPpaORI.mjs';
11
+ import './payment-D8NEwCna.mjs';
12
12
 
13
13
  interface UserIdentity {
14
14
  uid: string;
@@ -933,6 +933,8 @@ interface CartVariantSelection {
933
933
  id: string;
934
934
  name: string;
935
935
  price_adjustment?: Money;
936
+ /** Canonical evaluated variant price in the active shopper scope. */
937
+ price_info?: ChosenPrice;
936
938
  }
937
939
  interface CartAddOnOptionSelection {
938
940
  id: string;
@@ -974,6 +976,8 @@ interface AddToCartOptions {
974
976
  variantId?: string;
975
977
  variant?: CartVariantSelection;
976
978
  quoteId?: string;
979
+ /** Shopper-payable unit amount used until the authoritative cart returns. */
980
+ quotedUnitPrice?: Money;
977
981
  addOnOptionIds?: string[];
978
982
  addOnOptions?: CartAddOnOptionSelection[];
979
983
  bundleSelections?: BundleSelectionInput[];
@@ -1226,6 +1230,7 @@ interface UseProductPriceInput {
1226
1230
  quantity?: number;
1227
1231
  variant?: {
1228
1232
  price_adjustment?: number | string;
1233
+ price_info?: ChosenPrice;
1229
1234
  };
1230
1235
  addOnOptions?: Array<{
1231
1236
  default_price?: number | string;
@@ -1775,7 +1780,7 @@ interface ProductCustomizerProps {
1775
1780
  className?: string;
1776
1781
  classNames?: ProductCustomizerClassNames;
1777
1782
  }
1778
- declare function ProductCustomizer({ product, onAddToCart, onVariantChange, showSpecialInstructions, submitLabel, className, classNames, }: ProductCustomizerProps): React__default.ReactElement;
1783
+ declare function ProductCustomizer(props: ProductCustomizerProps): React__default.ReactElement;
1779
1784
 
1780
1785
  interface ProductImageGalleryProps {
1781
1786
  images: string[];
package/dist/react.d.ts CHANGED
@@ -2,13 +2,13 @@ import * as React$1 from 'react';
2
2
  import React__default, { ReactNode, PointerEvent, MouseEvent } from 'react';
3
3
  import { d as AdSlot, c as AdPosition, a as AdContextValue, S as SignInOptions } from './sign-in-DQlIdqsi.js';
4
4
  export { A as AdConfig, g as getVariantDisplayName } from './sign-in-DQlIdqsi.js';
5
- import { af as CimplifyClient, ca as OrderType, cv as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a_ as EnrichedOrderItem, aZ as EnrichedOrder, w as Business, bz as Location, cM as ReorderResult, c8 as OrderStatus, bP as Order, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cr as PriceQuote, cB as QuoteUiMessage, d6 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, df as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aC as DeliveryOptionsResponse, bc as FxRateResponse, dp as StoreCreditBalance, dr as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aY as ElementsOptions, cl as PaymentMethodInfo, aW as ElementsCheckoutResult, cu as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bo as LineItem, di as Staff, d1 as Room, Y as ChatReplyContext } from './client-CX59ew7C.js';
5
+ import { af as CimplifyClient, ca as OrderType, cv as ProcessCheckoutResult, ac as CheckoutStatus, ad as CheckoutStatusContext, a_ as EnrichedOrderItem, aZ as EnrichedOrder, w as Business, bz as Location, cM as ReorderResult, c8 as OrderStatus, bP as Order, cx as QuoteBundleSelectionInput, cy as QuoteCompositeSelectionInput, cr as PriceQuote, cB as QuoteUiMessage, d6 as Service, r as AvailableSlot, ay as DayAvailability, aq as CustomerBooking, L as CancelBookingResult, f as ActivityStateResponse, df as SessionMessage, c as ActivityRecommendation, aA as DeliveryFeeResponse, aC as DeliveryOptionsResponse, bc as FxRateResponse, dp as StoreCreditBalance, dr as StorefrontBootstrap, _ as ChatWidgetStarter, W as ChatMessage, Z as ChatUploadAttachment, h as AddressInfo, n as AuthenticatedData, aY as ElementsOptions, cl as PaymentMethodInfo, aW as ElementsCheckoutResult, cu as ProcessCheckoutOptions, ai as CimplifyElements, T as ChatAttachment, bo as LineItem, di as Staff, d1 as Room, Y as ChatReplyContext } from './client-DxgC_lXU.js';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-O8-wcHSe.js';
8
- import { P as ProductWithPrice } from './price-23RNXftz.js';
7
+ import { ad as CurrencyCode, aZ as Product, aQ as Pagination, V as CimplifyError, bb as ProductWithDetails, S as Category, aO as Money, U as ChosenPrice, E as BundleSelectionInput, a1 as ComponentSelectionInput, D as BundleSelectionData, aa as CompositeSelectionData, W as Collection, b6 as ProductTaxonomy, bx as TaxonomyWithChildren, b7 as ProductTimeProfile, aj as Deal, b2 as ProductDealInfo, ap as DiscountValidation, G as BundleSummary, a8 as CompositePriceResult, bs as SubscriptionWithDetails, br as SubscriptionStatus, bo as Subscription, ae as CustomAttributeDefinition, bc as PropertyFacet, b1 as ProductBillingPlan, bQ as VariantView, bK as VariantAxisWithValues, f as AddOnWithOptions, y as BundleComponentView, z as BundlePriceType, a6 as CompositeGroupView, as as DisplayCart, b3 as ProductInputField, h as AddressValue, bi as SaleInfo, bD as UpcomingSale, av as DurationUnit, t as BoundaryKind, bk as SchedulingMode, al as DepositType, af as CustomAttributeValue, b4 as ProductProperty, be as QuantityPricingTier } from './product-B384_Qm2.js';
8
+ import { P as ProductWithPrice } from './price-ncQb-TC8.js';
9
9
  import { ClassValue } from 'clsx';
10
10
  import { Matcher } from 'react-day-picker';
11
- import './payment-By0JidTe.js';
11
+ import './payment-lZBP7h5M.js';
12
12
 
13
13
  interface UserIdentity {
14
14
  uid: string;
@@ -933,6 +933,8 @@ interface CartVariantSelection {
933
933
  id: string;
934
934
  name: string;
935
935
  price_adjustment?: Money;
936
+ /** Canonical evaluated variant price in the active shopper scope. */
937
+ price_info?: ChosenPrice;
936
938
  }
937
939
  interface CartAddOnOptionSelection {
938
940
  id: string;
@@ -974,6 +976,8 @@ interface AddToCartOptions {
974
976
  variantId?: string;
975
977
  variant?: CartVariantSelection;
976
978
  quoteId?: string;
979
+ /** Shopper-payable unit amount used until the authoritative cart returns. */
980
+ quotedUnitPrice?: Money;
977
981
  addOnOptionIds?: string[];
978
982
  addOnOptions?: CartAddOnOptionSelection[];
979
983
  bundleSelections?: BundleSelectionInput[];
@@ -1226,6 +1230,7 @@ interface UseProductPriceInput {
1226
1230
  quantity?: number;
1227
1231
  variant?: {
1228
1232
  price_adjustment?: number | string;
1233
+ price_info?: ChosenPrice;
1229
1234
  };
1230
1235
  addOnOptions?: Array<{
1231
1236
  default_price?: number | string;
@@ -1775,7 +1780,7 @@ interface ProductCustomizerProps {
1775
1780
  className?: string;
1776
1781
  classNames?: ProductCustomizerClassNames;
1777
1782
  }
1778
- declare function ProductCustomizer({ product, onAddToCart, onVariantChange, showSpecialInstructions, submitLabel, className, classNames, }: ProductCustomizerProps): React__default.ReactElement;
1783
+ declare function ProductCustomizer(props: ProductCustomizerProps): React__default.ReactElement;
1779
1784
 
1780
1785
  interface ProductImageGalleryProps {
1781
1786
  images: string[];