@schematichq/schematic-components 2.33.0 → 2.34.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.
@@ -3677,7 +3677,7 @@ var import_debounce2 = __toESM(require_debounce());
3677
3677
  var import_merge3 = __toESM(require_merge());
3678
3678
  import { useCallback as useCallback2, useEffect, useMemo as useMemo2, useReducer, useRef as useRef2 } from "react";
3679
3679
 
3680
- // node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist/stringify.js
3680
+ // node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/stringify.js
3681
3681
  var byteToHex = [];
3682
3682
  for (let i2 = 0; i2 < 256; ++i2) {
3683
3683
  byteToHex.push((i2 + 256).toString(16).slice(1));
@@ -3686,13 +3686,13 @@ function unsafeStringify(arr, offset = 0) {
3686
3686
  return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
3687
3687
  }
3688
3688
 
3689
- // node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist/rng.js
3689
+ // node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/rng.js
3690
3690
  var rnds8 = new Uint8Array(16);
3691
3691
  function rng() {
3692
3692
  return crypto.getRandomValues(rnds8);
3693
3693
  }
3694
3694
 
3695
- // node_modules/.pnpm/uuid@14.0.2/node_modules/uuid/dist/v4.js
3695
+ // node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/v4.js
3696
3696
  function v4(options, buf, offset) {
3697
3697
  if (!buf && !options && crypto.randomUUID) {
3698
3698
  return crypto.randomUUID();
@@ -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
 
@@ -4878,29 +4899,6 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
4878
4899
  };
4879
4900
  }
4880
4901
 
4881
- // src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
4882
- function CatalogCreditGrantResponseDataFromJSON(json) {
4883
- return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
4884
- }
4885
- function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4886
- if (json == null) {
4887
- return json;
4888
- }
4889
- return {
4890
- companyCreditAmount: json["company_credit_amount"],
4891
- creditAmount: json["credit_amount"],
4892
- creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
4893
- creditId: json["credit_id"],
4894
- creditName: json["credit_name"],
4895
- creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
4896
- creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
4897
- id: json["id"],
4898
- licenseId: json["license_id"] == null ? void 0 : json["license_id"],
4899
- resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
4900
- scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
4901
- };
4902
- }
4903
-
4904
4902
  // src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
4905
4903
  function CatalogPriceTierResponseDataFromJSON(json) {
4906
4904
  return CatalogPriceTierResponseDataFromJSONTyped(json, false);
@@ -4943,6 +4941,420 @@ function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4943
4941
  };
4944
4942
  }
4945
4943
 
4944
+ // src/api/checkoutexternal/models/CatalogBundleCurrencyPriceResponseData.ts
4945
+ function CatalogBundleCurrencyPriceResponseDataFromJSON(json) {
4946
+ return CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, false);
4947
+ }
4948
+ function CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4949
+ if (json == null) {
4950
+ return json;
4951
+ }
4952
+ return {
4953
+ currency: CurrencyFromJSON(json["currency"]),
4954
+ price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
4955
+ unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
4956
+ };
4957
+ }
4958
+
4959
+ // src/api/checkoutexternal/models/CatalogAutoTopupResponseData.ts
4960
+ function CatalogAutoTopupResponseDataFromJSON(json) {
4961
+ return CatalogAutoTopupResponseDataFromJSONTyped(json, false);
4962
+ }
4963
+ function CatalogAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4964
+ if (json == null) {
4965
+ return json;
4966
+ }
4967
+ return {
4968
+ amount: json["amount"] == null ? void 0 : json["amount"],
4969
+ availability: BillingCreditAutoTopupAvailabilityFromJSON(
4970
+ json["availability"]
4971
+ ),
4972
+ companyAmount: json["company_amount"] == null ? void 0 : json["company_amount"],
4973
+ companyEnabled: json["company_enabled"] == null ? void 0 : json["company_enabled"],
4974
+ companyThresholdCredits: json["company_threshold_credits"] == null ? void 0 : json["company_threshold_credits"],
4975
+ creditId: json["credit_id"],
4976
+ currencyPrices: json["currency_prices"].map(
4977
+ CatalogBundleCurrencyPriceResponseDataFromJSON
4978
+ ),
4979
+ enabled: json["enabled"],
4980
+ planCreditGrantId: json["plan_credit_grant_id"],
4981
+ thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"],
4982
+ unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
4983
+ };
4984
+ }
4985
+
4986
+ // src/api/checkoutexternal/models/CatalogCapabilitiesResponseData.ts
4987
+ function CatalogCapabilitiesResponseDataFromJSON(json) {
4988
+ return CatalogCapabilitiesResponseDataFromJSONTyped(json, false);
4989
+ }
4990
+ function CatalogCapabilitiesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4991
+ if (json == null) {
4992
+ return json;
4993
+ }
4994
+ return {
4995
+ badgeVisibility: json["badge_visibility"],
4996
+ checkout: json["checkout"]
4997
+ };
4998
+ }
4999
+
5000
+ // src/api/checkoutexternal/models/CatalogCheckoutFieldResponseData.ts
5001
+ function CatalogCheckoutFieldResponseDataFromJSON(json) {
5002
+ return CatalogCheckoutFieldResponseDataFromJSONTyped(json, false);
5003
+ }
5004
+ function CatalogCheckoutFieldResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5005
+ if (json == null) {
5006
+ return json;
5007
+ }
5008
+ return {
5009
+ helperText: json["helper_text"] == null ? void 0 : json["helper_text"],
5010
+ id: json["id"],
5011
+ name: json["name"],
5012
+ required: json["required"],
5013
+ value: json["value"] == null ? void 0 : json["value"]
5014
+ };
5015
+ }
5016
+
5017
+ // src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
5018
+ var CheckoutBundlePurchaseBehavior = {
5019
+ Individual: "individual",
5020
+ Quantity: "quantity"
5021
+ };
5022
+ function CheckoutBundlePurchaseBehaviorFromJSON(json) {
5023
+ return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
5024
+ }
5025
+ function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
5026
+ return json;
5027
+ }
5028
+
5029
+ // src/api/checkoutexternal/models/ProrationBehavior.ts
5030
+ var ProrationBehavior = {
5031
+ CreateProrations: "create_prorations",
5032
+ InvoiceImmediately: "invoice_immediately"
5033
+ };
5034
+ function ProrationBehaviorFromJSON(json) {
5035
+ return ProrationBehaviorFromJSONTyped(json, false);
5036
+ }
5037
+ function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
5038
+ return json;
5039
+ }
5040
+
5041
+ // src/api/checkoutexternal/models/CatalogCheckoutSettingsResponseData.ts
5042
+ function CatalogCheckoutSettingsResponseDataFromJSON(json) {
5043
+ return CatalogCheckoutSettingsResponseDataFromJSONTyped(json, false);
5044
+ }
5045
+ function CatalogCheckoutSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5046
+ if (json == null) {
5047
+ return json;
5048
+ }
5049
+ return {
5050
+ bundlePurchaseBehavior: CheckoutBundlePurchaseBehaviorFromJSON(
5051
+ json["bundle_purchase_behavior"]
5052
+ ),
5053
+ collectAddress: json["collect_address"],
5054
+ collectEmail: json["collect_email"],
5055
+ collectPhone: json["collect_phone"],
5056
+ collectTaxId: json["collect_tax_id"],
5057
+ customFields: json["custom_fields"].map(
5058
+ CatalogCheckoutFieldResponseDataFromJSON
5059
+ ),
5060
+ prorationBehavior: ProrationBehaviorFromJSON(json["proration_behavior"]),
5061
+ taxCollectionEnabled: json["tax_collection_enabled"]
5062
+ };
5063
+ }
5064
+
5065
+ // src/api/checkoutexternal/models/CatalogPlanRefResponseData.ts
5066
+ function CatalogPlanRefResponseDataFromJSON(json) {
5067
+ return CatalogPlanRefResponseDataFromJSONTyped(json, false);
5068
+ }
5069
+ function CatalogPlanRefResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5070
+ if (json == null) {
5071
+ return json;
5072
+ }
5073
+ return {
5074
+ id: json["id"],
5075
+ name: json["name"]
5076
+ };
5077
+ }
5078
+
5079
+ // src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
5080
+ var CompanyPlanInvalidReason = {
5081
+ DowngradeNotPermitted: "downgrade_not_permitted",
5082
+ FeatureUsageExceeded: "feature_usage_exceeded"
5083
+ };
5084
+ function CompanyPlanInvalidReasonFromJSON(json) {
5085
+ return CompanyPlanInvalidReasonFromJSONTyped(json, false);
5086
+ }
5087
+ function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
5088
+ return json;
5089
+ }
5090
+
5091
+ // src/api/checkoutexternal/models/CatalogUsageViolationResponseData.ts
5092
+ function CatalogUsageViolationResponseDataFromJSON(json) {
5093
+ return CatalogUsageViolationResponseDataFromJSONTyped(json, false);
5094
+ }
5095
+ function CatalogUsageViolationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5096
+ if (json == null) {
5097
+ return json;
5098
+ }
5099
+ return {
5100
+ featureId: json["feature_id"],
5101
+ featureName: json["feature_name"],
5102
+ limit: json["limit"] == null ? void 0 : json["limit"],
5103
+ usage: json["usage"]
5104
+ };
5105
+ }
5106
+
5107
+ // src/api/checkoutexternal/models/EntitlementValueType.ts
5108
+ var EntitlementValueType = {
5109
+ Boolean: "boolean",
5110
+ Credit: "credit",
5111
+ Numeric: "numeric",
5112
+ Trait: "trait",
5113
+ Unknown: "unknown",
5114
+ Unlimited: "unlimited"
5115
+ };
5116
+ function EntitlementValueTypeFromJSON(json) {
5117
+ return EntitlementValueTypeFromJSONTyped(json, false);
5118
+ }
5119
+ function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
5120
+ return json;
5121
+ }
5122
+
5123
+ // src/api/checkoutexternal/models/FeatureType.ts
5124
+ var FeatureType = {
5125
+ Boolean: "boolean",
5126
+ Event: "event",
5127
+ License: "license",
5128
+ Trait: "trait"
5129
+ };
5130
+ function FeatureTypeFromJSON(json) {
5131
+ return FeatureTypeFromJSONTyped(json, false);
5132
+ }
5133
+ function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
5134
+ return json;
5135
+ }
5136
+
5137
+ // src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
5138
+ function MetricPeriodMonthResetFromJSON(json) {
5139
+ return MetricPeriodMonthResetFromJSONTyped(json, false);
5140
+ }
5141
+ function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
5142
+ return json;
5143
+ }
5144
+
5145
+ // src/api/checkoutexternal/models/MetricPeriod.ts
5146
+ function MetricPeriodFromJSON(json) {
5147
+ return MetricPeriodFromJSONTyped(json, false);
5148
+ }
5149
+ function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
5150
+ return json;
5151
+ }
5152
+
5153
+ // src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
5154
+ var EntitlementPriceBehavior = {
5155
+ CreditBurndown: "credit_burndown",
5156
+ Overage: "overage",
5157
+ PayAsYouGo: "pay_as_you_go",
5158
+ PayInAdvance: "pay_in_advance",
5159
+ Tier: "tier"
5160
+ };
5161
+ function EntitlementPriceBehaviorFromJSON(json) {
5162
+ return EntitlementPriceBehaviorFromJSONTyped(json, false);
5163
+ }
5164
+ function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
5165
+ return json;
5166
+ }
5167
+
5168
+ // src/api/checkoutexternal/models/CatalogCurrencyPricesResponseData.ts
5169
+ function CatalogCurrencyPricesResponseDataFromJSON(json) {
5170
+ return CatalogCurrencyPricesResponseDataFromJSONTyped(json, false);
5171
+ }
5172
+ function CatalogCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5173
+ if (json == null) {
5174
+ return json;
5175
+ }
5176
+ return {
5177
+ currency: CurrencyFromJSON(json["currency"]),
5178
+ monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
5179
+ oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
5180
+ quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
5181
+ yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
5182
+ };
5183
+ }
5184
+
5185
+ // src/api/checkoutexternal/models/CatalogPlanEntitlementResponseData.ts
5186
+ function CatalogPlanEntitlementResponseDataFromJSON(json) {
5187
+ return CatalogPlanEntitlementResponseDataFromJSONTyped(json, false);
5188
+ }
5189
+ function CatalogPlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5190
+ if (json == null) {
5191
+ return json;
5192
+ }
5193
+ return {
5194
+ consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
5195
+ creditEquivalentLimit: json["credit_equivalent_limit"] == null ? void 0 : json["credit_equivalent_limit"],
5196
+ creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
5197
+ creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
5198
+ creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
5199
+ creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
5200
+ creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
5201
+ currencyPrices: json["currency_prices"].map(
5202
+ CatalogCurrencyPricesResponseDataFromJSON
5203
+ ),
5204
+ featureDescription: json["feature_description"],
5205
+ featureIcon: json["feature_icon"],
5206
+ featureId: json["feature_id"],
5207
+ featureName: json["feature_name"],
5208
+ featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
5209
+ featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
5210
+ featureType: FeatureTypeFromJSON(json["feature_type"]),
5211
+ id: json["id"],
5212
+ licenseId: json["license_id"] == null ? void 0 : json["license_id"],
5213
+ meteredMonthlyPrice: json["metered_monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_monthly_price"]),
5214
+ meteredQuarterlyPrice: json["metered_quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_quarterly_price"]),
5215
+ meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_yearly_price"]),
5216
+ metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
5217
+ metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
5218
+ priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
5219
+ softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
5220
+ valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
5221
+ valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
5222
+ valueType: EntitlementValueTypeFromJSON(json["value_type"]),
5223
+ warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
5224
+ };
5225
+ }
5226
+
5227
+ // src/api/checkoutexternal/models/ChargeType.ts
5228
+ function ChargeTypeFromJSON(json) {
5229
+ return ChargeTypeFromJSONTyped(json, false);
5230
+ }
5231
+ function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
5232
+ return json;
5233
+ }
5234
+
5235
+ // src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
5236
+ function CatalogCreditGrantResponseDataFromJSON(json) {
5237
+ return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
5238
+ }
5239
+ function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5240
+ if (json == null) {
5241
+ return json;
5242
+ }
5243
+ return {
5244
+ companyCreditAmount: json["company_credit_amount"],
5245
+ creditAmount: json["credit_amount"],
5246
+ creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
5247
+ creditId: json["credit_id"],
5248
+ creditName: json["credit_name"],
5249
+ creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
5250
+ creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
5251
+ id: json["id"],
5252
+ licenseId: json["license_id"] == null ? void 0 : json["license_id"],
5253
+ resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
5254
+ scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
5255
+ };
5256
+ }
5257
+
5258
+ // src/api/checkoutexternal/models/PlanPriceCadence.ts
5259
+ function PlanPriceCadenceFromJSON(json) {
5260
+ return PlanPriceCadenceFromJSONTyped(json, false);
5261
+ }
5262
+ function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
5263
+ return json;
5264
+ }
5265
+
5266
+ // src/api/checkoutexternal/models/CatalogCompanyPlanResponseData.ts
5267
+ function CatalogCompanyPlanResponseDataFromJSON(json) {
5268
+ return CatalogCompanyPlanResponseDataFromJSONTyped(json, false);
5269
+ }
5270
+ function CatalogCompanyPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5271
+ if (json == null) {
5272
+ return json;
5273
+ }
5274
+ return {
5275
+ autoTopups: json["auto_topups"].map(
5276
+ CatalogAutoTopupResponseDataFromJSON
5277
+ ),
5278
+ availablePeriods: json["available_periods"].map(
5279
+ PlanPriceCadenceFromJSON
5280
+ ),
5281
+ billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
5282
+ chargeType: ChargeTypeFromJSON(json["charge_type"]),
5283
+ companyCanTrial: json["company_can_trial"],
5284
+ compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
5285
+ currencyPrices: json["currency_prices"].map(
5286
+ CatalogCurrencyPricesResponseDataFromJSON
5287
+ ),
5288
+ current: json["current"],
5289
+ description: json["description"],
5290
+ entitlements: json["entitlements"].map(
5291
+ CatalogPlanEntitlementResponseDataFromJSON
5292
+ ),
5293
+ icon: json["icon"],
5294
+ id: json["id"],
5295
+ includedCreditGrants: json["included_credit_grants"].map(
5296
+ CatalogCreditGrantResponseDataFromJSON
5297
+ ),
5298
+ invalidReason: json["invalid_reason"] == null ? void 0 : CompanyPlanInvalidReasonFromJSON(json["invalid_reason"]),
5299
+ isTrialable: json["is_trialable"],
5300
+ monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
5301
+ name: json["name"],
5302
+ oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
5303
+ quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
5304
+ trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
5305
+ usageViolations: json["usage_violations"].map(
5306
+ CatalogUsageViolationResponseDataFromJSON
5307
+ ),
5308
+ valid: json["valid"],
5309
+ yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
5310
+ };
5311
+ }
5312
+
5313
+ // src/api/checkoutexternal/models/CatalogCreditBundleResponseData.ts
5314
+ function CatalogCreditBundleResponseDataFromJSON(json) {
5315
+ return CatalogCreditBundleResponseDataFromJSONTyped(json, false);
5316
+ }
5317
+ function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5318
+ if (json == null) {
5319
+ return json;
5320
+ }
5321
+ return {
5322
+ bundleType: BillingCreditBundleTypeFromJSON(json["bundle_type"]),
5323
+ compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
5324
+ creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
5325
+ creditId: json["credit_id"],
5326
+ creditName: json["credit_name"],
5327
+ creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
5328
+ creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
5329
+ currencyPrices: json["currency_prices"].map(
5330
+ CatalogBundleCurrencyPriceResponseDataFromJSON
5331
+ ),
5332
+ expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
5333
+ expiryUnit: BillingCreditExpiryUnitFromJSON(json["expiry_unit"]),
5334
+ expiryUnitCount: json["expiry_unit_count"] == null ? void 0 : json["expiry_unit_count"],
5335
+ id: json["id"],
5336
+ name: json["name"],
5337
+ price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
5338
+ quantity: json["quantity"] == null ? void 0 : json["quantity"],
5339
+ unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
5340
+ };
5341
+ }
5342
+
5343
+ // src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
5344
+ function CatalogCustomPlanCTAResponseDataFromJSON(json) {
5345
+ return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
5346
+ }
5347
+ function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5348
+ if (json == null) {
5349
+ return json;
5350
+ }
5351
+ return {
5352
+ ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
5353
+ ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
5354
+ priceText: json["price_text"] == null ? void 0 : json["price_text"]
5355
+ };
5356
+ }
5357
+
4946
5358
  // src/api/checkoutexternal/models/UpdatePayInAdvanceRequestBody.ts
4947
5359
  function UpdatePayInAdvanceRequestBodyFromJSON(json) {
4948
5360
  return UpdatePayInAdvanceRequestBodyFromJSONTyped(json, false);
@@ -5113,24 +5525,25 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
5113
5525
  };
5114
5526
  }
5115
5527
 
5116
- // src/api/checkoutexternal/models/ChargeType.ts
5117
- function ChargeTypeFromJSON(json) {
5118
- return ChargeTypeFromJSONTyped(json, false);
5119
- }
5120
- function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
5121
- return json;
5122
- }
5123
-
5124
- // src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
5125
- var CheckoutBundlePurchaseBehavior = {
5126
- Individual: "individual",
5127
- Quantity: "quantity"
5128
- };
5129
- function CheckoutBundlePurchaseBehaviorFromJSON(json) {
5130
- return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
5528
+ // src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
5529
+ function CheckoutPriceSnapshotDiscountFromJSON(json) {
5530
+ return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
5131
5531
  }
5132
- function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
5133
- return json;
5532
+ function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
5533
+ if (json == null) {
5534
+ return json;
5535
+ }
5536
+ return {
5537
+ amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
5538
+ couponExternalId: json["coupon_external_id"],
5539
+ couponName: json["coupon_name"],
5540
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5541
+ customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
5542
+ duration: json["duration"],
5543
+ durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
5544
+ percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
5545
+ promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
5546
+ };
5134
5547
  }
5135
5548
 
5136
5549
  // src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
@@ -5144,10 +5557,16 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
5144
5557
  return {
5145
5558
  amountOff: json["amount_off"],
5146
5559
  currency: CurrencyFromJSON(json["currency"]),
5560
+ discountAmount: json["discount_amount"],
5561
+ discounts: json["discounts"].map(
5562
+ CheckoutPriceSnapshotDiscountFromJSON
5563
+ ),
5147
5564
  dueNow: json["due_now"],
5148
5565
  isScheduledDowngrade: json["is_scheduled_downgrade"],
5149
5566
  newCharges: json["new_charges"],
5150
5567
  optInRequired: json["opt_in_required"],
5568
+ optInText: json["opt_in_text"] == null ? void 0 : json["opt_in_text"],
5569
+ optInTitle: json["opt_in_title"] == null ? void 0 : json["opt_in_title"],
5151
5570
  paymentMethodRequired: json["payment_method_required"],
5152
5571
  percentOff: json["percent_off"],
5153
5572
  periodStart: new Date(json["period_start"]),
@@ -5169,6 +5588,17 @@ function CheckoutStatusFromJSONTyped(json, ignoreDiscriminator) {
5169
5588
  return json;
5170
5589
  }
5171
5590
 
5591
+ // src/api/checkoutexternal/models/CheckoutIntent.ts
5592
+ function CheckoutIntentFromJSON(json) {
5593
+ return CheckoutIntentFromJSONTyped(json, false);
5594
+ }
5595
+ function CheckoutIntentFromJSONTyped(json, ignoreDiscriminator) {
5596
+ return json;
5597
+ }
5598
+ function CheckoutIntentToJSON(value) {
5599
+ return value;
5600
+ }
5601
+
5172
5602
  // src/api/checkoutexternal/models/CheckoutSelectionsResponseData.ts
5173
5603
  function CheckoutSelectionsResponseDataFromJSON(json) {
5174
5604
  return CheckoutSelectionsResponseDataFromJSONTyped(json, false);
@@ -5189,9 +5619,11 @@ function CheckoutSelectionsResponseDataFromJSONTyped(json, ignoreDiscriminator)
5189
5619
  creditBundles: json["credit_bundles"].map(
5190
5620
  UpdateCreditBundleRequestBodyFromJSON
5191
5621
  ),
5622
+ currency: json["currency"] == null ? void 0 : json["currency"],
5192
5623
  customFieldValues: json["custom_field_values"].map(
5193
5624
  CheckoutFieldValueFromJSON
5194
5625
  ),
5626
+ intent: CheckoutIntentFromJSON(json["intent"]),
5195
5627
  newPlanId: json["new_plan_id"] == null ? void 0 : json["new_plan_id"],
5196
5628
  newPriceId: json["new_price_id"] == null ? void 0 : json["new_price_id"],
5197
5629
  optInAccepted: json["opt_in_accepted"] == null ? void 0 : json["opt_in_accepted"],
@@ -5291,11 +5723,6 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
5291
5723
  };
5292
5724
  }
5293
5725
 
5294
- // src/api/checkoutexternal/models/CheckoutIntent.ts
5295
- function CheckoutIntentToJSON(value) {
5296
- return value;
5297
- }
5298
-
5299
5726
  // src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
5300
5727
  function ScheduledDowngradeConfigBehaviorFromJSON(json) {
5301
5728
  return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
@@ -5400,15 +5827,19 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
5400
5827
  };
5401
5828
  }
5402
5829
 
5403
- // src/api/checkoutexternal/models/ProrationBehavior.ts
5404
- var ProrationBehavior = {
5405
- CreateProrations: "create_prorations",
5406
- InvoiceImmediately: "invoice_immediately"
5407
- };
5408
- function ProrationBehaviorFromJSON(json) {
5409
- return ProrationBehaviorFromJSONTyped(json, false);
5830
+ // src/api/checkoutexternal/models/Collector.ts
5831
+ function CollectorFromJSON(json) {
5832
+ return CollectorFromJSONTyped(json, false);
5410
5833
  }
5411
- function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
5834
+ function CollectorFromJSONTyped(json, ignoreDiscriminator) {
5835
+ return json;
5836
+ }
5837
+
5838
+ // src/api/checkoutexternal/models/PaymentGating.ts
5839
+ function PaymentGatingFromJSON(json) {
5840
+ return PaymentGatingFromJSONTyped(json, false);
5841
+ }
5842
+ function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
5412
5843
  return json;
5413
5844
  }
5414
5845
 
@@ -5426,20 +5857,63 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
5426
5857
  collectionMethod: BillingCollectionMethodFromJSON(
5427
5858
  json["collection_method"]
5428
5859
  ),
5860
+ collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
5429
5861
  companyId: json["company_id"],
5430
5862
  createdAt: new Date(json["created_at"]),
5863
+ currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
5431
5864
  daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
5432
5865
  environmentId: json["environment_id"],
5866
+ gatingDays: json["gating_days"],
5433
5867
  id: json["id"],
5434
5868
  isDefault: json["is_default"],
5435
5869
  name: json["name"] == null ? void 0 : json["name"],
5870
+ overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
5871
+ paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
5436
5872
  paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
5437
5873
  prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
5438
5874
  providerType: BillingProviderTypeFromJSON(json["provider_type"]),
5875
+ purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
5439
5876
  updatedAt: new Date(json["updated_at"])
5440
5877
  };
5441
5878
  }
5442
5879
 
5880
+ // src/api/checkoutexternal/models/CompanyCatalogResponseData.ts
5881
+ function CompanyCatalogResponseDataFromJSON(json) {
5882
+ return CompanyCatalogResponseDataFromJSONTyped(json, false);
5883
+ }
5884
+ function CompanyCatalogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5885
+ if (json == null) {
5886
+ return json;
5887
+ }
5888
+ return {
5889
+ addOns: json["add_ons"].map(
5890
+ CatalogCompanyPlanResponseDataFromJSON
5891
+ ),
5892
+ capabilities: CatalogCapabilitiesResponseDataFromJSON(json["capabilities"]),
5893
+ checkoutSettings: CatalogCheckoutSettingsResponseDataFromJSON(
5894
+ json["checkout_settings"]
5895
+ ),
5896
+ creditBundles: json["credit_bundles"].map(
5897
+ CatalogCreditBundleResponseDataFromJSON
5898
+ ),
5899
+ customPlanCta: json["custom_plan_cta"] == null ? void 0 : CatalogCustomPlanCTAResponseDataFromJSON(json["custom_plan_cta"]),
5900
+ defaultCurrency: CurrencyFromJSON(json["default_currency"]),
5901
+ description: json["description"] == null ? void 0 : json["description"],
5902
+ id: json["id"],
5903
+ name: json["name"],
5904
+ plans: json["plans"].map(
5905
+ CatalogCompanyPlanResponseDataFromJSON
5906
+ ),
5907
+ preventSelfServiceDowngrade: json["prevent_self_service_downgrade"],
5908
+ preventSelfServiceDowngradeButtonText: json["prevent_self_service_downgrade_button_text"] == null ? void 0 : json["prevent_self_service_downgrade_button_text"],
5909
+ preventSelfServiceDowngradeUrl: json["prevent_self_service_downgrade_url"] == null ? void 0 : json["prevent_self_service_downgrade_url"],
5910
+ pricingModel: json["pricing_model"] == null ? void 0 : json["pricing_model"],
5911
+ pricingUrl: json["pricing_url"] == null ? void 0 : json["pricing_url"],
5912
+ trialExpiryPlan: json["trial_expiry_plan"] == null ? void 0 : CatalogPlanRefResponseDataFromJSON(json["trial_expiry_plan"]),
5913
+ trialPaymentMethodRequired: json["trial_payment_method_required"] == null ? void 0 : json["trial_payment_method_required"]
5914
+ };
5915
+ }
5916
+
5443
5917
  // src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
5444
5918
  var CustomPlanActivationStrategy = {
5445
5919
  Payment: "on_payment",
@@ -5830,30 +6304,6 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
5830
6304
  };
5831
6305
  }
5832
6306
 
5833
- // src/api/checkoutexternal/models/EntitlementValueType.ts
5834
- var EntitlementValueType = {
5835
- Boolean: "boolean",
5836
- Credit: "credit",
5837
- Numeric: "numeric",
5838
- Trait: "trait",
5839
- Unknown: "unknown",
5840
- Unlimited: "unlimited"
5841
- };
5842
- function EntitlementValueTypeFromJSON(json) {
5843
- return EntitlementValueTypeFromJSONTyped(json, false);
5844
- }
5845
- function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
5846
- return json;
5847
- }
5848
-
5849
- // src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
5850
- function MetricPeriodMonthResetFromJSON(json) {
5851
- return MetricPeriodMonthResetFromJSONTyped(json, false);
5852
- }
5853
- function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
5854
- return json;
5855
- }
5856
-
5857
6307
  // src/api/checkoutexternal/models/WarningTier.ts
5858
6308
  function WarningTierFromJSON(json) {
5859
6309
  return WarningTierFromJSONTyped(json, false);
@@ -5868,14 +6318,6 @@ function WarningTierFromJSONTyped(json, ignoreDiscriminator) {
5868
6318
  };
5869
6319
  }
5870
6320
 
5871
- // src/api/checkoutexternal/models/MetricPeriod.ts
5872
- function MetricPeriodFromJSON(json) {
5873
- return MetricPeriodFromJSONTyped(json, false);
5874
- }
5875
- function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
5876
- return json;
5877
- }
5878
-
5879
6321
  // src/api/checkoutexternal/models/FeatureEntitlement.ts
5880
6322
  function FeatureEntitlementFromJSON(json) {
5881
6323
  return FeatureEntitlementFromJSONTyped(json, false);
@@ -6025,6 +6467,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6025
6467
  companyId: json["company_id"],
6026
6468
  createdAt: new Date(json["created_at"]),
6027
6469
  daysUntilDue: json["days_until_due"],
6470
+ endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
6028
6471
  externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
6029
6472
  id: json["id"],
6030
6473
  migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
@@ -6321,35 +6764,6 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6321
6764
  };
6322
6765
  }
6323
6766
 
6324
- // src/api/checkoutexternal/models/FeatureType.ts
6325
- var FeatureType = {
6326
- Boolean: "boolean",
6327
- Event: "event",
6328
- License: "license",
6329
- Trait: "trait"
6330
- };
6331
- function FeatureTypeFromJSON(json) {
6332
- return FeatureTypeFromJSONTyped(json, false);
6333
- }
6334
- function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
6335
- return json;
6336
- }
6337
-
6338
- // src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
6339
- var EntitlementPriceBehavior = {
6340
- CreditBurndown: "credit_burndown",
6341
- Overage: "overage",
6342
- PayAsYouGo: "pay_as_you_go",
6343
- PayInAdvance: "pay_in_advance",
6344
- Tier: "tier"
6345
- };
6346
- function EntitlementPriceBehaviorFromJSON(json) {
6347
- return EntitlementPriceBehaviorFromJSONTyped(json, false);
6348
- }
6349
- function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
6350
- return json;
6351
- }
6352
-
6353
6767
  // src/api/checkoutexternal/models/EntitlementType.ts
6354
6768
  function EntitlementTypeFromJSON(json) {
6355
6769
  return EntitlementTypeFromJSONTyped(json, false);
@@ -6632,26 +7046,6 @@ function CompanyPaymentMethodsResponseDataFromJSONTyped(json, ignoreDiscriminato
6632
7046
  };
6633
7047
  }
6634
7048
 
6635
- // src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
6636
- var CompanyPlanInvalidReason = {
6637
- DowngradeNotPermitted: "downgrade_not_permitted",
6638
- FeatureUsageExceeded: "feature_usage_exceeded"
6639
- };
6640
- function CompanyPlanInvalidReasonFromJSON(json) {
6641
- return CompanyPlanInvalidReasonFromJSONTyped(json, false);
6642
- }
6643
- function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
6644
- return json;
6645
- }
6646
-
6647
- // src/api/checkoutexternal/models/PlanPriceCadence.ts
6648
- function PlanPriceCadenceFromJSON(json) {
6649
- return PlanPriceCadenceFromJSONTyped(json, false);
6650
- }
6651
- function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
6652
- return json;
6653
- }
6654
-
6655
7049
  // src/api/checkoutexternal/models/EstimatedPlanTotal.ts
6656
7050
  function EstimatedPlanTotalFromJSON(json) {
6657
7051
  return EstimatedPlanTotalFromJSONTyped(json, false);
@@ -6949,7 +7343,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6949
7343
  }
6950
7344
  return {
6951
7345
  createdAt: new Date(json["created_at"]),
6952
- defaultValue: json["default_value"],
7346
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
6953
7347
  description: json["description"],
6954
7348
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
6955
7349
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -7109,6 +7503,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
7109
7503
  };
7110
7504
  }
7111
7505
 
7506
+ // src/api/checkoutexternal/models/RenewalPolicy.ts
7507
+ function RenewalPolicyFromJSON(json) {
7508
+ return RenewalPolicyFromJSONTyped(json, false);
7509
+ }
7510
+ function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
7511
+ return json;
7512
+ }
7513
+
7112
7514
  // src/api/checkoutexternal/models/PlanVersionResponseData.ts
7113
7515
  function PlanVersionResponseDataFromJSON(json) {
7114
7516
  return PlanVersionResponseDataFromJSONTyped(json, false);
@@ -7126,6 +7528,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7126
7528
  name: json["name"],
7127
7529
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
7128
7530
  planType: PlanTypeFromJSON(json["plan_type"]),
7531
+ renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
7129
7532
  status: PlanVersionStatusFromJSON(json["status"]),
7130
7533
  updatedAt: new Date(json["updated_at"]),
7131
7534
  version: json["version"]
@@ -7981,6 +8384,34 @@ function FinalizeCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
7981
8384
  };
7982
8385
  }
7983
8386
 
8387
+ // src/api/checkoutexternal/models/GetCatalogViewByIDResponse.ts
8388
+ function GetCatalogViewByIDResponseFromJSON(json) {
8389
+ return GetCatalogViewByIDResponseFromJSONTyped(json, false);
8390
+ }
8391
+ function GetCatalogViewByIDResponseFromJSONTyped(json, ignoreDiscriminator) {
8392
+ if (json == null) {
8393
+ return json;
8394
+ }
8395
+ return {
8396
+ data: CompanyCatalogResponseDataFromJSON(json["data"]),
8397
+ params: json["params"]
8398
+ };
8399
+ }
8400
+
8401
+ // src/api/checkoutexternal/models/GetCatalogViewResponse.ts
8402
+ function GetCatalogViewResponseFromJSON(json) {
8403
+ return GetCatalogViewResponseFromJSONTyped(json, false);
8404
+ }
8405
+ function GetCatalogViewResponseFromJSONTyped(json, ignoreDiscriminator) {
8406
+ if (json == null) {
8407
+ return json;
8408
+ }
8409
+ return {
8410
+ data: CompanyCatalogResponseDataFromJSON(json["data"]),
8411
+ params: json["params"]
8412
+ };
8413
+ }
8414
+
7984
8415
  // src/api/checkoutexternal/models/GetCheckoutResponse.ts
7985
8416
  function GetCheckoutResponseFromJSON(json) {
7986
8417
  return GetCheckoutResponseFromJSONTyped(json, false);
@@ -8673,6 +9104,11 @@ var CheckoutexternalApi = class extends BaseAPI {
8673
9104
  const queryParameters = {};
8674
9105
  const headerParameters = {};
8675
9106
  headerParameters["Content-Type"] = "application/json";
9107
+ if (requestParameters["xCheckoutSessionID"] != null) {
9108
+ headerParameters["X-Checkout-Session-ID"] = String(
9109
+ requestParameters["xCheckoutSessionID"]
9110
+ );
9111
+ }
8676
9112
  if (this.configuration && this.configuration.apiKey) {
8677
9113
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
8678
9114
  "X-Schematic-Api-Key"
@@ -8906,6 +9342,11 @@ var CheckoutexternalApi = class extends BaseAPI {
8906
9342
  const queryParameters = {};
8907
9343
  const headerParameters = {};
8908
9344
  headerParameters["Content-Type"] = "application/json";
9345
+ if (requestParameters["xCheckoutSessionID"] != null) {
9346
+ headerParameters["X-Checkout-Session-ID"] = String(
9347
+ requestParameters["xCheckoutSessionID"]
9348
+ );
9349
+ }
8909
9350
  if (this.configuration && this.configuration.apiKey) {
8910
9351
  headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
8911
9352
  "X-Schematic-Api-Key"
@@ -8941,6 +9382,82 @@ var CheckoutexternalApi = class extends BaseAPI {
8941
9382
  );
8942
9383
  return await response.value();
8943
9384
  }
9385
+ /**
9386
+ * Get catalog view
9387
+ */
9388
+ async getCatalogViewRaw(initOverrides) {
9389
+ const queryParameters = {};
9390
+ const headerParameters = {};
9391
+ if (this.configuration && this.configuration.apiKey) {
9392
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9393
+ "X-Schematic-Api-Key"
9394
+ );
9395
+ }
9396
+ const response = await this.request(
9397
+ {
9398
+ path: `/catalog/view`,
9399
+ method: "GET",
9400
+ headers: headerParameters,
9401
+ query: queryParameters
9402
+ },
9403
+ initOverrides
9404
+ );
9405
+ return new JSONApiResponse(
9406
+ response,
9407
+ (jsonValue) => GetCatalogViewResponseFromJSON(jsonValue)
9408
+ );
9409
+ }
9410
+ /**
9411
+ * Get catalog view
9412
+ */
9413
+ async getCatalogView(initOverrides) {
9414
+ const response = await this.getCatalogViewRaw(initOverrides);
9415
+ return await response.value();
9416
+ }
9417
+ /**
9418
+ * Get catalog view by ID
9419
+ */
9420
+ async getCatalogViewByIDRaw(requestParameters, initOverrides) {
9421
+ if (requestParameters["catalogId"] == null) {
9422
+ throw new RequiredError(
9423
+ "catalogId",
9424
+ 'Required parameter "catalogId" was null or undefined when calling getCatalogViewByID().'
9425
+ );
9426
+ }
9427
+ const queryParameters = {};
9428
+ const headerParameters = {};
9429
+ if (this.configuration && this.configuration.apiKey) {
9430
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9431
+ "X-Schematic-Api-Key"
9432
+ );
9433
+ }
9434
+ const response = await this.request(
9435
+ {
9436
+ path: `/catalogs/{catalog_id}/view`.replace(
9437
+ `{${"catalog_id"}}`,
9438
+ encodeURIComponent(String(requestParameters["catalogId"]))
9439
+ ),
9440
+ method: "GET",
9441
+ headers: headerParameters,
9442
+ query: queryParameters
9443
+ },
9444
+ initOverrides
9445
+ );
9446
+ return new JSONApiResponse(
9447
+ response,
9448
+ (jsonValue) => GetCatalogViewByIDResponseFromJSON(jsonValue)
9449
+ );
9450
+ }
9451
+ /**
9452
+ * Get catalog view by ID
9453
+ */
9454
+ async getCatalogViewByID(requestParameters, initOverrides) {
9455
+ const response = await this.getCatalogViewByIDRaw(
9456
+ requestParameters,
9457
+ initOverrides
9458
+ );
9459
+ return await response.value();
9460
+ }
8944
9461
  /**
8945
9462
  * Get checkout
8946
9463
  */
@@ -10199,9 +10716,9 @@ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
10199
10716
 
10200
10717
  // src/api/componentspublic/models/BillingCreditAutoTopupAvailability.ts
10201
10718
  function BillingCreditAutoTopupAvailabilityFromJSON2(json) {
10202
- return BillingCreditAutoTopupAvailabilityFromJSONTyped5(json, false);
10719
+ return BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, false);
10203
10720
  }
10204
- function BillingCreditAutoTopupAvailabilityFromJSONTyped5(json, ignoreDiscriminator) {
10721
+ function BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, ignoreDiscriminator) {
10205
10722
  return json;
10206
10723
  }
10207
10724
 
@@ -10215,17 +10732,17 @@ function BillingCreditBurnStrategyFromJSONTyped4(json, ignoreDiscriminator) {
10215
10732
 
10216
10733
  // src/api/componentspublic/models/BillingCreditExpiryType.ts
10217
10734
  function BillingCreditExpiryTypeFromJSON2(json) {
10218
- return BillingCreditExpiryTypeFromJSONTyped7(json, false);
10735
+ return BillingCreditExpiryTypeFromJSONTyped8(json, false);
10219
10736
  }
10220
- function BillingCreditExpiryTypeFromJSONTyped7(json, ignoreDiscriminator) {
10737
+ function BillingCreditExpiryTypeFromJSONTyped8(json, ignoreDiscriminator) {
10221
10738
  return json;
10222
10739
  }
10223
10740
 
10224
10741
  // src/api/componentspublic/models/BillingCreditExpiryUnit.ts
10225
10742
  function BillingCreditExpiryUnitFromJSON2(json) {
10226
- return BillingCreditExpiryUnitFromJSONTyped9(json, false);
10743
+ return BillingCreditExpiryUnitFromJSONTyped10(json, false);
10227
10744
  }
10228
- function BillingCreditExpiryUnitFromJSONTyped9(json, ignoreDiscriminator) {
10745
+ function BillingCreditExpiryUnitFromJSONTyped10(json, ignoreDiscriminator) {
10229
10746
  return json;
10230
10747
  }
10231
10748
 
@@ -10239,9 +10756,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
10239
10756
 
10240
10757
  // src/api/componentspublic/models/Currency.ts
10241
10758
  function CurrencyFromJSON2(json) {
10242
- return CurrencyFromJSONTyped34(json, false);
10759
+ return CurrencyFromJSONTyped40(json, false);
10243
10760
  }
10244
- function CurrencyFromJSONTyped34(json, ignoreDiscriminator) {
10761
+ function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
10245
10762
  return json;
10246
10763
  }
10247
10764
 
@@ -10623,41 +11140,65 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
10623
11140
 
10624
11141
  // src/api/componentspublic/models/BillingStrategy.ts
10625
11142
  function BillingStrategyFromJSON2(json) {
10626
- return BillingStrategyFromJSONTyped5(json, false);
11143
+ return BillingStrategyFromJSONTyped7(json, false);
10627
11144
  }
10628
- function BillingStrategyFromJSONTyped5(json, ignoreDiscriminator) {
11145
+ function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
10629
11146
  return json;
10630
11147
  }
10631
11148
 
10632
- // src/api/componentspublic/models/ChargeType.ts
10633
- function ChargeTypeFromJSON2(json) {
10634
- return ChargeTypeFromJSONTyped5(json, false);
11149
+ // src/api/componentspublic/models/EntitlementValueType.ts
11150
+ function EntitlementValueTypeFromJSON2(json) {
11151
+ return EntitlementValueTypeFromJSONTyped10(json, false);
10635
11152
  }
10636
- function ChargeTypeFromJSONTyped5(json, ignoreDiscriminator) {
11153
+ function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
10637
11154
  return json;
10638
11155
  }
10639
11156
 
10640
- // src/api/componentspublic/models/EntitlementValueType.ts
10641
- function EntitlementValueTypeFromJSON2(json) {
10642
- return EntitlementValueTypeFromJSONTyped8(json, false);
11157
+ // src/api/componentspublic/models/FeatureType.ts
11158
+ function FeatureTypeFromJSON2(json) {
11159
+ return FeatureTypeFromJSONTyped7(json, false);
10643
11160
  }
10644
- function EntitlementValueTypeFromJSONTyped8(json, ignoreDiscriminator) {
11161
+ function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
10645
11162
  return json;
10646
11163
  }
10647
11164
 
10648
11165
  // src/api/componentspublic/models/MetricPeriodMonthReset.ts
10649
11166
  function MetricPeriodMonthResetFromJSON2(json) {
10650
- return MetricPeriodMonthResetFromJSONTyped12(json, false);
11167
+ return MetricPeriodMonthResetFromJSONTyped14(json, false);
10651
11168
  }
10652
- function MetricPeriodMonthResetFromJSONTyped12(json, ignoreDiscriminator) {
11169
+ function MetricPeriodMonthResetFromJSONTyped14(json, ignoreDiscriminator) {
10653
11170
  return json;
10654
11171
  }
10655
11172
 
10656
11173
  // src/api/componentspublic/models/MetricPeriod.ts
10657
11174
  function MetricPeriodFromJSON2(json) {
10658
- return MetricPeriodFromJSONTyped12(json, false);
11175
+ return MetricPeriodFromJSONTyped14(json, false);
11176
+ }
11177
+ function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
11178
+ return json;
11179
+ }
11180
+
11181
+ // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11182
+ function EntitlementPriceBehaviorFromJSON2(json) {
11183
+ return EntitlementPriceBehaviorFromJSONTyped8(json, false);
11184
+ }
11185
+ function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
11186
+ return json;
10659
11187
  }
10660
- function MetricPeriodFromJSONTyped12(json, ignoreDiscriminator) {
11188
+
11189
+ // src/api/componentspublic/models/ChargeType.ts
11190
+ function ChargeTypeFromJSON2(json) {
11191
+ return ChargeTypeFromJSONTyped7(json, false);
11192
+ }
11193
+ function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
11194
+ return json;
11195
+ }
11196
+
11197
+ // src/api/componentspublic/models/PlanPriceCadence.ts
11198
+ function PlanPriceCadenceFromJSON2(json) {
11199
+ return PlanPriceCadenceFromJSONTyped7(json, false);
11200
+ }
11201
+ function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
10661
11202
  return json;
10662
11203
  }
10663
11204
 
@@ -10763,14 +11304,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
10763
11304
  };
10764
11305
  }
10765
11306
 
10766
- // src/api/componentspublic/models/EntitlementPriceBehavior.ts
10767
- function EntitlementPriceBehaviorFromJSON2(json) {
10768
- return EntitlementPriceBehaviorFromJSONTyped6(json, false);
10769
- }
10770
- function EntitlementPriceBehaviorFromJSONTyped6(json, ignoreDiscriminator) {
10771
- return json;
10772
- }
10773
-
10774
11307
  // src/api/componentspublic/models/EntityType.ts
10775
11308
  function EntityTypeFromJSON2(json) {
10776
11309
  return EntityTypeFromJSONTyped9(json, false);
@@ -10832,14 +11365,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
10832
11365
  return json;
10833
11366
  }
10834
11367
 
10835
- // src/api/componentspublic/models/FeatureType.ts
10836
- function FeatureTypeFromJSON2(json) {
10837
- return FeatureTypeFromJSONTyped5(json, false);
10838
- }
10839
- function FeatureTypeFromJSONTyped5(json, ignoreDiscriminator) {
10840
- return json;
10841
- }
10842
-
10843
11368
  // src/api/componentspublic/models/PreviewObject.ts
10844
11369
  function PreviewObjectFromJSON2(json) {
10845
11370
  return PreviewObjectFromJSONTyped3(json, false);
@@ -11020,7 +11545,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11020
11545
  }
11021
11546
  return {
11022
11547
  createdAt: new Date(json["created_at"]),
11023
- defaultValue: json["default_value"],
11548
+ defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
11024
11549
  description: json["description"],
11025
11550
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
11026
11551
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
@@ -11190,14 +11715,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
11190
11715
  };
11191
11716
  }
11192
11717
 
11193
- // src/api/componentspublic/models/PlanPriceCadence.ts
11194
- function PlanPriceCadenceFromJSON2(json) {
11195
- return PlanPriceCadenceFromJSONTyped5(json, false);
11196
- }
11197
- function PlanPriceCadenceFromJSONTyped5(json, ignoreDiscriminator) {
11198
- return json;
11199
- }
11200
-
11201
11718
  // src/api/componentspublic/models/PlanCreditGrantView.ts
11202
11719
  function PlanCreditGrantViewFromJSON2(json) {
11203
11720
  return PlanCreditGrantViewFromJSONTyped3(json, false);
@@ -11293,6 +11810,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
11293
11810
  };
11294
11811
  }
11295
11812
 
11813
+ // src/api/componentspublic/models/RenewalPolicy.ts
11814
+ function RenewalPolicyFromJSON2(json) {
11815
+ return RenewalPolicyFromJSONTyped3(json, false);
11816
+ }
11817
+ function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
11818
+ return json;
11819
+ }
11820
+
11296
11821
  // src/api/componentspublic/models/PlanVersionResponseData.ts
11297
11822
  function PlanVersionResponseDataFromJSON2(json) {
11298
11823
  return PlanVersionResponseDataFromJSONTyped5(json, false);
@@ -11310,6 +11835,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
11310
11835
  name: json["name"],
11311
11836
  originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
11312
11837
  planType: PlanTypeFromJSON2(json["plan_type"]),
11838
+ renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
11313
11839
  status: PlanVersionStatusFromJSON2(json["status"]),
11314
11840
  updatedAt: new Date(json["updated_at"]),
11315
11841
  version: json["version"]
@@ -16904,7 +17430,7 @@ var reducer = (state, action) => {
16904
17430
  // src/context/EmbedProvider.tsx
16905
17431
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
16906
17432
  var getCustomHeaders = (sessionId) => ({
16907
- "X-Schematic-Components-Version": "2.33.0",
17433
+ "X-Schematic-Components-Version": "2.34.1",
16908
17434
  "X-Schematic-Session-ID": sessionId
16909
17435
  });
16910
17436
  var normalizeCurrencyFilter = (filter2) => {