@schematichq/schematic-components 2.34.0 → 2.35.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.
@@ -4587,6 +4587,24 @@ function PreviewObjectResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4587
4587
  };
4588
4588
  }
4589
4589
 
4590
+ // src/api/checkoutexternal/models/BillingPlanCreditGrantWarningTierResponseData.ts
4591
+ function BillingPlanCreditGrantWarningTierResponseDataFromJSON(json) {
4592
+ return BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(
4593
+ json,
4594
+ false
4595
+ );
4596
+ }
4597
+ function BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4598
+ if (json == null) {
4599
+ return json;
4600
+ }
4601
+ return {
4602
+ id: json["id"],
4603
+ key: json["key"],
4604
+ value: json["value"]
4605
+ };
4606
+ }
4607
+
4590
4608
  // src/api/checkoutexternal/models/BillingPlanCreditGrantResponseData.ts
4591
4609
  function BillingPlanCreditGrantResponseDataFromJSON(json) {
4592
4610
  return BillingPlanCreditGrantResponseDataFromJSONTyped(json, false);
@@ -4647,7 +4665,10 @@ function BillingPlanCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminat
4647
4665
  tierMode: json["tier_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tier_mode"]),
4648
4666
  unitPrice: json["unit_price"] == null ? void 0 : json["unit_price"],
4649
4667
  unitPriceDecimal: json["unit_price_decimal"] == null ? void 0 : json["unit_price_decimal"],
4650
- updatedAt: new Date(json["updated_at"])
4668
+ updatedAt: new Date(json["updated_at"]),
4669
+ warningTiers: json["warning_tiers"].map(
4670
+ BillingPlanCreditGrantWarningTierResponseDataFromJSON
4671
+ )
4651
4672
  };
4652
4673
  }
4653
4674
 
@@ -5504,6 +5525,82 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5504
5525
  };
5505
5526
  }
5506
5527
 
5528
+ // src/api/checkoutexternal/models/CheckoutChargeTiming.ts
5529
+ function CheckoutChargeTimingFromJSON(json) {
5530
+ return CheckoutChargeTimingFromJSONTyped(json, false);
5531
+ }
5532
+ function CheckoutChargeTimingFromJSONTyped(json, ignoreDiscriminator) {
5533
+ return json;
5534
+ }
5535
+
5536
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5537
+ function CheckoutPriceSnapshotDiscountFromJSON(json) {
5538
+ return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
5539
+ }
5540
+ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5541
+ if (json == null) {
5542
+ return json;
5543
+ }
5544
+ return {
5545
+ amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
5546
+ couponExternalId: json["coupon_external_id"],
5547
+ couponName: json["coupon_name"],
5548
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5549
+ customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
5550
+ duration: json["duration"],
5551
+ durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
5552
+ percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
5553
+ promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
5554
+ };
5555
+ }
5556
+
5557
+ // src/api/checkoutexternal/models/ProrationLineKind.ts
5558
+ function ProrationLineKindFromJSON(json) {
5559
+ return ProrationLineKindFromJSONTyped(json, false);
5560
+ }
5561
+ function ProrationLineKindFromJSONTyped(json, ignoreDiscriminator) {
5562
+ return json;
5563
+ }
5564
+
5565
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotProrationLine.ts
5566
+ function CheckoutPriceSnapshotProrationLineFromJSON(json) {
5567
+ return CheckoutPriceSnapshotProrationLineFromJSONTyped(json, false);
5568
+ }
5569
+ function CheckoutPriceSnapshotProrationLineFromJSONTyped(json, ignoreDiscriminator) {
5570
+ if (json == null) {
5571
+ return json;
5572
+ }
5573
+ return {
5574
+ amount: json["amount"],
5575
+ kind: ProrationLineKindFromJSON(json["kind"]),
5576
+ periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
5577
+ periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
5578
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
5579
+ priceId: json["price_id"] == null ? void 0 : json["price_id"],
5580
+ quantity: json["quantity"] == null ? void 0 : json["quantity"]
5581
+ };
5582
+ }
5583
+
5584
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotProration.ts
5585
+ function CheckoutPriceSnapshotProrationFromJSON(json) {
5586
+ return CheckoutPriceSnapshotProrationFromJSONTyped(json, false);
5587
+ }
5588
+ function CheckoutPriceSnapshotProrationFromJSONTyped(json, ignoreDiscriminator) {
5589
+ if (json == null) {
5590
+ return json;
5591
+ }
5592
+ return {
5593
+ billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
5594
+ charge: json["charge"],
5595
+ credit: json["credit"],
5596
+ lines: json["lines"].map(
5597
+ CheckoutPriceSnapshotProrationLineFromJSON
5598
+ ),
5599
+ timing: CheckoutChargeTimingFromJSON(json["timing"]),
5600
+ total: json["total"]
5601
+ };
5602
+ }
5603
+
5507
5604
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
5508
5605
  function CheckoutPriceSnapshotFromJSON(json) {
5509
5606
  return CheckoutPriceSnapshotFromJSONTyped(json, false);
@@ -5515,6 +5612,12 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5515
5612
  return {
5516
5613
  amountOff: json["amount_off"],
5517
5614
  currency: CurrencyFromJSON(json["currency"]),
5615
+ customerBalanceApplied: json["customer_balance_applied"],
5616
+ customerBalanceRemaining: json["customer_balance_remaining"],
5617
+ discountAmount: json["discount_amount"],
5618
+ discounts: json["discounts"].map(
5619
+ CheckoutPriceSnapshotDiscountFromJSON
5620
+ ),
5518
5621
  dueNow: json["due_now"],
5519
5622
  isScheduledDowngrade: json["is_scheduled_downgrade"],
5520
5623
  newCharges: json["new_charges"],
@@ -5527,6 +5630,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5527
5630
  pricedAt: new Date(json["priced_at"]),
5528
5631
  promoCodeApplied: json["promo_code_applied"],
5529
5632
  proration: json["proration"],
5633
+ prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
5530
5634
  scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
5531
5635
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
5532
5636
  totalPerBillingPeriod: json["total_per_billing_period"],
@@ -5781,6 +5885,22 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
5781
5885
  };
5782
5886
  }
5783
5887
 
5888
+ // src/api/checkoutexternal/models/Collector.ts
5889
+ function CollectorFromJSON(json) {
5890
+ return CollectorFromJSONTyped(json, false);
5891
+ }
5892
+ function CollectorFromJSONTyped(json, ignoreDiscriminator) {
5893
+ return json;
5894
+ }
5895
+
5896
+ // src/api/checkoutexternal/models/PaymentGating.ts
5897
+ function PaymentGatingFromJSON(json) {
5898
+ return PaymentGatingFromJSONTyped(json, false);
5899
+ }
5900
+ function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
5901
+ return json;
5902
+ }
5903
+
5784
5904
  // src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
5785
5905
  function CompanyBillingProfileResponseDataFromJSON(json) {
5786
5906
  return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
@@ -5795,16 +5915,22 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
5795
5915
  collectionMethod: BillingCollectionMethodFromJSON(
5796
5916
  json["collection_method"]
5797
5917
  ),
5918
+ collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
5798
5919
  companyId: json["company_id"],
5799
5920
  createdAt: new Date(json["created_at"]),
5921
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5800
5922
  daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
5801
5923
  environmentId: json["environment_id"],
5924
+ gatingDays: json["gating_days"],
5802
5925
  id: json["id"],
5803
5926
  isDefault: json["is_default"],
5804
5927
  name: json["name"] == null ? void 0 : json["name"],
5928
+ overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
5929
+ paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
5805
5930
  paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
5806
5931
  prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
5807
5932
  providerType: BillingProviderTypeFromJSON(json["provider_type"]),
5933
+ purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
5808
5934
  updatedAt: new Date(json["updated_at"])
5809
5935
  };
5810
5936
  }
@@ -6399,6 +6525,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6399
6525
  companyId: json["company_id"],
6400
6526
  createdAt: new Date(json["created_at"]),
6401
6527
  daysUntilDue: json["days_until_due"],
6528
+ endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
6402
6529
  externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
6403
6530
  id: json["id"],
6404
6531
  migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
@@ -7274,7 +7401,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7274
7401
  }
7275
7402
  return {
7276
7403
  createdAt: new Date(json["created_at"]),
7277
- defaultValue: json["default_value"],
7404
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
7278
7405
  description: json["description"],
7279
7406
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
7280
7407
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -7434,6 +7561,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
7434
7561
  };
7435
7562
  }
7436
7563
 
7564
+ // src/api/checkoutexternal/models/RenewalPolicy.ts
7565
+ function RenewalPolicyFromJSON(json) {
7566
+ return RenewalPolicyFromJSONTyped(json, false);
7567
+ }
7568
+ function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
7569
+ return json;
7570
+ }
7571
+
7437
7572
  // src/api/checkoutexternal/models/PlanVersionResponseData.ts
7438
7573
  function PlanVersionResponseDataFromJSON(json) {
7439
7574
  return PlanVersionResponseDataFromJSONTyped(json, false);
@@ -7451,6 +7586,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7451
7586
  name: json["name"],
7452
7587
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
7453
7588
  planType: PlanTypeFromJSON(json["plan_type"]),
7589
+ renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
7454
7590
  status: PlanVersionStatusFromJSON(json["status"]),
7455
7591
  updatedAt: new Date(json["updated_at"]),
7456
7592
  version: json["version"]
@@ -8767,6 +8903,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
8767
8903
  };
8768
8904
  }
8769
8905
 
8906
+ // src/api/checkoutexternal/models/PreviewSubscriptionProrationLineResponseData.ts
8907
+ function PreviewSubscriptionProrationLineResponseDataFromJSON(json) {
8908
+ return PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, false);
8909
+ }
8910
+ function PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8911
+ if (json == null) {
8912
+ return json;
8913
+ }
8914
+ return {
8915
+ amount: json["amount"],
8916
+ kind: ProrationLineKindFromJSON(json["kind"]),
8917
+ periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
8918
+ periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
8919
+ planId: json["plan_id"] == null ? void 0 : json["plan_id"],
8920
+ priceId: json["price_id"] == null ? void 0 : json["price_id"],
8921
+ quantity: json["quantity"] == null ? void 0 : json["quantity"]
8922
+ };
8923
+ }
8924
+
8925
+ // src/api/checkoutexternal/models/PreviewSubscriptionProrationResponseData.ts
8926
+ function PreviewSubscriptionProrationResponseDataFromJSON(json) {
8927
+ return PreviewSubscriptionProrationResponseDataFromJSONTyped(json, false);
8928
+ }
8929
+ function PreviewSubscriptionProrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8930
+ if (json == null) {
8931
+ return json;
8932
+ }
8933
+ return {
8934
+ billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
8935
+ charge: json["charge"],
8936
+ credit: json["credit"],
8937
+ currency: CurrencyFromJSON(json["currency"]),
8938
+ lines: json["lines"].map(
8939
+ PreviewSubscriptionProrationLineResponseDataFromJSON
8940
+ ),
8941
+ timing: CheckoutChargeTimingFromJSON(json["timing"]),
8942
+ total: json["total"]
8943
+ };
8944
+ }
8945
+
8770
8946
  // src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
8771
8947
  function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
8772
8948
  return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
@@ -8778,6 +8954,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8778
8954
  return {
8779
8955
  amountOff: json["amount_off"],
8780
8956
  currency: CurrencyFromJSON(json["currency"]),
8957
+ customerBalanceApplied: json["customer_balance_applied"],
8958
+ customerBalanceRemaining: json["customer_balance_remaining"],
8781
8959
  discountAmount: json["discount_amount"],
8782
8960
  discounts: json["discounts"].map(
8783
8961
  PreviewSubscriptionDiscountResponseDataFromJSON
@@ -8790,6 +8968,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
8790
8968
  promoCodeApplied: json["promo_code_applied"],
8791
8969
  proration: json["proration"],
8792
8970
  prorationBilledAt: json["proration_billed_at"] == null ? void 0 : new Date(json["proration_billed_at"]),
8971
+ prorationDetail: json["proration_detail"] == null ? void 0 : PreviewSubscriptionProrationResponseDataFromJSON(
8972
+ json["proration_detail"]
8973
+ ),
8793
8974
  taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
8794
8975
  taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
8795
8976
  taxRequireBillingDetails: json["tax_require_billing_details"],
@@ -9026,6 +9207,11 @@ var CheckoutexternalApi = class extends BaseAPI {
9026
9207
  const queryParameters = {};
9027
9208
  const headerParameters = {};
9028
9209
  headerParameters["Content-Type"] = "application/json";
9210
+ if (requestParameters["xCheckoutSessionID"] != null) {
9211
+ headerParameters["X-Checkout-Session-ID"] = String(
9212
+ requestParameters["xCheckoutSessionID"]
9213
+ );
9214
+ }
9029
9215
  if (this.configuration && this.configuration.apiKey) {
9030
9216
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9031
9217
  "X-Schematic-Api-Key"
@@ -9259,6 +9445,11 @@ var CheckoutexternalApi = class extends BaseAPI {
9259
9445
  const queryParameters = {};
9260
9446
  const headerParameters = {};
9261
9447
  headerParameters["Content-Type"] = "application/json";
9448
+ if (requestParameters["xCheckoutSessionID"] != null) {
9449
+ headerParameters["X-Checkout-Session-ID"] = String(
9450
+ requestParameters["xCheckoutSessionID"]
9451
+ );
9452
+ }
9262
9453
  if (this.configuration && this.configuration.apiKey) {
9263
9454
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9264
9455
  "X-Schematic-Api-Key"
@@ -10668,9 +10859,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
10668
10859
 
10669
10860
  // src/api/componentspublic/models/Currency.ts
10670
10861
  function CurrencyFromJSON2(json) {
10671
- return CurrencyFromJSONTyped38(json, false);
10862
+ return CurrencyFromJSONTyped41(json, false);
10672
10863
  }
10673
- function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
10864
+ function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
10674
10865
  return json;
10675
10866
  }
10676
10867
 
@@ -11058,14 +11249,6 @@ function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
11058
11249
  return json;
11059
11250
  }
11060
11251
 
11061
- // src/api/componentspublic/models/ChargeType.ts
11062
- function ChargeTypeFromJSON2(json) {
11063
- return ChargeTypeFromJSONTyped7(json, false);
11064
- }
11065
- function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11066
- return json;
11067
- }
11068
-
11069
11252
  // src/api/componentspublic/models/EntitlementValueType.ts
11070
11253
  function EntitlementValueTypeFromJSON2(json) {
11071
11254
  return EntitlementValueTypeFromJSONTyped10(json, false);
@@ -11074,6 +11257,14 @@ function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
11074
11257
  return json;
11075
11258
  }
11076
11259
 
11260
+ // src/api/componentspublic/models/FeatureType.ts
11261
+ function FeatureTypeFromJSON2(json) {
11262
+ return FeatureTypeFromJSONTyped7(json, false);
11263
+ }
11264
+ function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11265
+ return json;
11266
+ }
11267
+
11077
11268
  // src/api/componentspublic/models/MetricPeriodMonthReset.ts
11078
11269
  function MetricPeriodMonthResetFromJSON2(json) {
11079
11270
  return MetricPeriodMonthResetFromJSONTyped14(json, false);
@@ -11090,6 +11281,30 @@ function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
11090
11281
  return json;
11091
11282
  }
11092
11283
 
11284
+ // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11285
+ function EntitlementPriceBehaviorFromJSON2(json) {
11286
+ return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11287
+ }
11288
+ function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11289
+ return json;
11290
+ }
11291
+
11292
+ // src/api/componentspublic/models/ChargeType.ts
11293
+ function ChargeTypeFromJSON2(json) {
11294
+ return ChargeTypeFromJSONTyped7(json, false);
11295
+ }
11296
+ function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11297
+ return json;
11298
+ }
11299
+
11300
+ // src/api/componentspublic/models/PlanPriceCadence.ts
11301
+ function PlanPriceCadenceFromJSON2(json) {
11302
+ return PlanPriceCadenceFromJSONTyped7(json, false);
11303
+ }
11304
+ function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11305
+ return json;
11306
+ }
11307
+
11093
11308
  // src/api/componentspublic/models/RuleType.ts
11094
11309
  function RuleTypeFromJSON2(json) {
11095
11310
  return RuleTypeFromJSONTyped5(json, false);
@@ -11192,14 +11407,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
11192
11407
  };
11193
11408
  }
11194
11409
 
11195
- // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11196
- function EntitlementPriceBehaviorFromJSON2(json) {
11197
- return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11198
- }
11199
- function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11200
- return json;
11201
- }
11202
-
11203
11410
  // src/api/componentspublic/models/EntityType.ts
11204
11411
  function EntityTypeFromJSON2(json) {
11205
11412
  return EntityTypeFromJSONTyped9(json, false);
@@ -11261,14 +11468,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
11261
11468
  return json;
11262
11469
  }
11263
11470
 
11264
- // src/api/componentspublic/models/FeatureType.ts
11265
- function FeatureTypeFromJSON2(json) {
11266
- return FeatureTypeFromJSONTyped7(json, false);
11267
- }
11268
- function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
11269
- return json;
11270
- }
11271
-
11272
11471
  // src/api/componentspublic/models/PreviewObject.ts
11273
11472
  function PreviewObjectFromJSON2(json) {
11274
11473
  return PreviewObjectFromJSONTyped3(json, false);
@@ -11449,7 +11648,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11449
11648
  }
11450
11649
  return {
11451
11650
  createdAt: new Date(json["created_at"]),
11452
- defaultValue: json["default_value"],
11651
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
11453
11652
  description: json["description"],
11454
11653
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
11455
11654
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -11619,14 +11818,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
11619
11818
  };
11620
11819
  }
11621
11820
 
11622
- // src/api/componentspublic/models/PlanPriceCadence.ts
11623
- function PlanPriceCadenceFromJSON2(json) {
11624
- return PlanPriceCadenceFromJSONTyped7(json, false);
11625
- }
11626
- function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
11627
- return json;
11628
- }
11629
-
11630
11821
  // src/api/componentspublic/models/PlanCreditGrantView.ts
11631
11822
  function PlanCreditGrantViewFromJSON2(json) {
11632
11823
  return PlanCreditGrantViewFromJSONTyped3(json, false);
@@ -11722,6 +11913,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
11722
11913
  };
11723
11914
  }
11724
11915
 
11916
+ // src/api/componentspublic/models/RenewalPolicy.ts
11917
+ function RenewalPolicyFromJSON2(json) {
11918
+ return RenewalPolicyFromJSONTyped3(json, false);
11919
+ }
11920
+ function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
11921
+ return json;
11922
+ }
11923
+
11725
11924
  // src/api/componentspublic/models/PlanVersionResponseData.ts
11726
11925
  function PlanVersionResponseDataFromJSON2(json) {
11727
11926
  return PlanVersionResponseDataFromJSONTyped5(json, false);
@@ -11739,6 +11938,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
11739
11938
  name: json["name"],
11740
11939
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
11741
11940
  planType: PlanTypeFromJSON2(json["plan_type"]),
11941
+ renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
11742
11942
  status: PlanVersionStatusFromJSON2(json["status"]),
11743
11943
  updatedAt: new Date(json["updated_at"]),
11744
11944
  version: json["version"]
@@ -17333,7 +17533,7 @@ var reducer = (state, action) => {
17333
17533
  // src/context/EmbedProvider.tsx
17334
17534
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
17335
17535
  var getCustomHeaders = (sessionId) => ({
17336
- "X-Schematic-Components-Version": "2.34.0",
17536
+ "X-Schematic-Components-Version": "2.35.0",
17337
17537
  "X-Schematic-Session-ID": sessionId
17338
17538
  });
17339
17539
  var normalizeCurrencyFilter = (filter2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-components",
3
- "version": "2.34.0",
3
+ "version": "2.35.0",
4
4
  "main": "dist/schematic-components.cjs.js",
5
5
  "module": "dist/schematic-components.esm.js",
6
6
  "types": "dist/schematic-components.d.ts",
@@ -83,8 +83,8 @@
83
83
  "@eslint/markdown": "^8.0.3",
84
84
  "@microsoft/api-extractor": "^7.59.4",
85
85
  "@openapitools/openapi-generator-cli": "^2.41.0",
86
- "@schematichq/schematic-js": "^1.14.0",
87
- "@schematichq/schematic-react": "^1.14.0",
86
+ "@schematichq/schematic-js": "^1.15.0",
87
+ "@schematichq/schematic-react": "^1.15.0",
88
88
  "@stripe/react-stripe-js": "^6.12.0",
89
89
  "@swc/core": "^1.16.13",
90
90
  "@testing-library/dom": "^10.4.2",
@@ -93,7 +93,7 @@
93
93
  "@types/lodash": "^4.17.26",
94
94
  "@types/react": "^19.3.0",
95
95
  "@types/react-dom": "^19.3.0",
96
- "@vitest/browser": "^5.0.3",
96
+ "@vitest/browser": "^5.0.5",
97
97
  "csstype": "^3.2.3",
98
98
  "esbuild": "^0.28.2",
99
99
  "eslint": "^10.12.0",
@@ -110,10 +110,10 @@
110
110
  "react-dom": "^19.3.0",
111
111
  "typescript": "^6.0.3",
112
112
  "typescript-eslint": "^8.71.1",
113
- "vitest": "^5.0.3"
113
+ "vitest": "^5.0.5"
114
114
  },
115
115
  "peerDependencies": {
116
- "@schematichq/schematic-react": "^1.14.0",
116
+ "@schematichq/schematic-react": "^1.15.0",
117
117
  "@stripe/react-stripe-js": ">=3",
118
118
  "@stripe/stripe-js": ">=4",
119
119
  "react": ">=18",