@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.
- package/dist/schematic-components-elements.cjs.js +1682 -210
- package/dist/schematic-components-elements.d.ts +431 -1
- package/dist/schematic-components-elements.esm.js +1677 -195
- package/dist/schematic-components.browser.cjs.js +713 -187
- package/dist/schematic-components.browser.esm.js +713 -187
- package/dist/schematic-components.cjs.js +713 -187
- package/dist/schematic-components.d.ts +155 -4
- package/dist/schematic-components.esm.js +713 -187
- package/package.json +8 -8
|
@@ -3650,7 +3650,7 @@ var import_debounce2 = __toESM(require_debounce());
|
|
|
3650
3650
|
var import_merge3 = __toESM(require_merge());
|
|
3651
3651
|
var import_react5 = require("react");
|
|
3652
3652
|
|
|
3653
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
3653
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/stringify.js
|
|
3654
3654
|
var byteToHex = [];
|
|
3655
3655
|
for (let i2 = 0; i2 < 256; ++i2) {
|
|
3656
3656
|
byteToHex.push((i2 + 256).toString(16).slice(1));
|
|
@@ -3659,13 +3659,13 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
3659
3659
|
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();
|
|
3660
3660
|
}
|
|
3661
3661
|
|
|
3662
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
3662
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/rng.js
|
|
3663
3663
|
var rnds8 = new Uint8Array(16);
|
|
3664
3664
|
function rng() {
|
|
3665
3665
|
return crypto.getRandomValues(rnds8);
|
|
3666
3666
|
}
|
|
3667
3667
|
|
|
3668
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
3668
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/v4.js
|
|
3669
3669
|
function v4(options, buf, offset) {
|
|
3670
3670
|
if (!buf && !options && crypto.randomUUID) {
|
|
3671
3671
|
return crypto.randomUUID();
|
|
@@ -4560,6 +4560,24 @@ function PreviewObjectResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4560
4560
|
};
|
|
4561
4561
|
}
|
|
4562
4562
|
|
|
4563
|
+
// src/api/checkoutexternal/models/BillingPlanCreditGrantWarningTierResponseData.ts
|
|
4564
|
+
function BillingPlanCreditGrantWarningTierResponseDataFromJSON(json) {
|
|
4565
|
+
return BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(
|
|
4566
|
+
json,
|
|
4567
|
+
false
|
|
4568
|
+
);
|
|
4569
|
+
}
|
|
4570
|
+
function BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4571
|
+
if (json == null) {
|
|
4572
|
+
return json;
|
|
4573
|
+
}
|
|
4574
|
+
return {
|
|
4575
|
+
id: json["id"],
|
|
4576
|
+
key: json["key"],
|
|
4577
|
+
value: json["value"]
|
|
4578
|
+
};
|
|
4579
|
+
}
|
|
4580
|
+
|
|
4563
4581
|
// src/api/checkoutexternal/models/BillingPlanCreditGrantResponseData.ts
|
|
4564
4582
|
function BillingPlanCreditGrantResponseDataFromJSON(json) {
|
|
4565
4583
|
return BillingPlanCreditGrantResponseDataFromJSONTyped(json, false);
|
|
@@ -4620,7 +4638,10 @@ function BillingPlanCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminat
|
|
|
4620
4638
|
tierMode: json["tier_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tier_mode"]),
|
|
4621
4639
|
unitPrice: json["unit_price"] == null ? void 0 : json["unit_price"],
|
|
4622
4640
|
unitPriceDecimal: json["unit_price_decimal"] == null ? void 0 : json["unit_price_decimal"],
|
|
4623
|
-
updatedAt: new Date(json["updated_at"])
|
|
4641
|
+
updatedAt: new Date(json["updated_at"]),
|
|
4642
|
+
warningTiers: json["warning_tiers"].map(
|
|
4643
|
+
BillingPlanCreditGrantWarningTierResponseDataFromJSON
|
|
4644
|
+
)
|
|
4624
4645
|
};
|
|
4625
4646
|
}
|
|
4626
4647
|
|
|
@@ -4851,29 +4872,6 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4851
4872
|
};
|
|
4852
4873
|
}
|
|
4853
4874
|
|
|
4854
|
-
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
4855
|
-
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
4856
|
-
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
4857
|
-
}
|
|
4858
|
-
function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4859
|
-
if (json == null) {
|
|
4860
|
-
return json;
|
|
4861
|
-
}
|
|
4862
|
-
return {
|
|
4863
|
-
companyCreditAmount: json["company_credit_amount"],
|
|
4864
|
-
creditAmount: json["credit_amount"],
|
|
4865
|
-
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
4866
|
-
creditId: json["credit_id"],
|
|
4867
|
-
creditName: json["credit_name"],
|
|
4868
|
-
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
4869
|
-
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
4870
|
-
id: json["id"],
|
|
4871
|
-
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
4872
|
-
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
4873
|
-
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
4874
|
-
};
|
|
4875
|
-
}
|
|
4876
|
-
|
|
4877
4875
|
// src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
|
|
4878
4876
|
function CatalogPriceTierResponseDataFromJSON(json) {
|
|
4879
4877
|
return CatalogPriceTierResponseDataFromJSONTyped(json, false);
|
|
@@ -4916,6 +4914,420 @@ function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4916
4914
|
};
|
|
4917
4915
|
}
|
|
4918
4916
|
|
|
4917
|
+
// src/api/checkoutexternal/models/CatalogBundleCurrencyPriceResponseData.ts
|
|
4918
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSON(json) {
|
|
4919
|
+
return CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, false);
|
|
4920
|
+
}
|
|
4921
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4922
|
+
if (json == null) {
|
|
4923
|
+
return json;
|
|
4924
|
+
}
|
|
4925
|
+
return {
|
|
4926
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4927
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
4928
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4929
|
+
};
|
|
4930
|
+
}
|
|
4931
|
+
|
|
4932
|
+
// src/api/checkoutexternal/models/CatalogAutoTopupResponseData.ts
|
|
4933
|
+
function CatalogAutoTopupResponseDataFromJSON(json) {
|
|
4934
|
+
return CatalogAutoTopupResponseDataFromJSONTyped(json, false);
|
|
4935
|
+
}
|
|
4936
|
+
function CatalogAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4937
|
+
if (json == null) {
|
|
4938
|
+
return json;
|
|
4939
|
+
}
|
|
4940
|
+
return {
|
|
4941
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
4942
|
+
availability: BillingCreditAutoTopupAvailabilityFromJSON(
|
|
4943
|
+
json["availability"]
|
|
4944
|
+
),
|
|
4945
|
+
companyAmount: json["company_amount"] == null ? void 0 : json["company_amount"],
|
|
4946
|
+
companyEnabled: json["company_enabled"] == null ? void 0 : json["company_enabled"],
|
|
4947
|
+
companyThresholdCredits: json["company_threshold_credits"] == null ? void 0 : json["company_threshold_credits"],
|
|
4948
|
+
creditId: json["credit_id"],
|
|
4949
|
+
currencyPrices: json["currency_prices"].map(
|
|
4950
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
4951
|
+
),
|
|
4952
|
+
enabled: json["enabled"],
|
|
4953
|
+
planCreditGrantId: json["plan_credit_grant_id"],
|
|
4954
|
+
thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"],
|
|
4955
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4956
|
+
};
|
|
4957
|
+
}
|
|
4958
|
+
|
|
4959
|
+
// src/api/checkoutexternal/models/CatalogCapabilitiesResponseData.ts
|
|
4960
|
+
function CatalogCapabilitiesResponseDataFromJSON(json) {
|
|
4961
|
+
return CatalogCapabilitiesResponseDataFromJSONTyped(json, false);
|
|
4962
|
+
}
|
|
4963
|
+
function CatalogCapabilitiesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4964
|
+
if (json == null) {
|
|
4965
|
+
return json;
|
|
4966
|
+
}
|
|
4967
|
+
return {
|
|
4968
|
+
badgeVisibility: json["badge_visibility"],
|
|
4969
|
+
checkout: json["checkout"]
|
|
4970
|
+
};
|
|
4971
|
+
}
|
|
4972
|
+
|
|
4973
|
+
// src/api/checkoutexternal/models/CatalogCheckoutFieldResponseData.ts
|
|
4974
|
+
function CatalogCheckoutFieldResponseDataFromJSON(json) {
|
|
4975
|
+
return CatalogCheckoutFieldResponseDataFromJSONTyped(json, false);
|
|
4976
|
+
}
|
|
4977
|
+
function CatalogCheckoutFieldResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4978
|
+
if (json == null) {
|
|
4979
|
+
return json;
|
|
4980
|
+
}
|
|
4981
|
+
return {
|
|
4982
|
+
helperText: json["helper_text"] == null ? void 0 : json["helper_text"],
|
|
4983
|
+
id: json["id"],
|
|
4984
|
+
name: json["name"],
|
|
4985
|
+
required: json["required"],
|
|
4986
|
+
value: json["value"] == null ? void 0 : json["value"]
|
|
4987
|
+
};
|
|
4988
|
+
}
|
|
4989
|
+
|
|
4990
|
+
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
4991
|
+
var CheckoutBundlePurchaseBehavior = {
|
|
4992
|
+
Individual: "individual",
|
|
4993
|
+
Quantity: "quantity"
|
|
4994
|
+
};
|
|
4995
|
+
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
4996
|
+
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
4997
|
+
}
|
|
4998
|
+
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
4999
|
+
return json;
|
|
5000
|
+
}
|
|
5001
|
+
|
|
5002
|
+
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
5003
|
+
var ProrationBehavior = {
|
|
5004
|
+
CreateProrations: "create_prorations",
|
|
5005
|
+
InvoiceImmediately: "invoice_immediately"
|
|
5006
|
+
};
|
|
5007
|
+
function ProrationBehaviorFromJSON(json) {
|
|
5008
|
+
return ProrationBehaviorFromJSONTyped(json, false);
|
|
5009
|
+
}
|
|
5010
|
+
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5011
|
+
return json;
|
|
5012
|
+
}
|
|
5013
|
+
|
|
5014
|
+
// src/api/checkoutexternal/models/CatalogCheckoutSettingsResponseData.ts
|
|
5015
|
+
function CatalogCheckoutSettingsResponseDataFromJSON(json) {
|
|
5016
|
+
return CatalogCheckoutSettingsResponseDataFromJSONTyped(json, false);
|
|
5017
|
+
}
|
|
5018
|
+
function CatalogCheckoutSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5019
|
+
if (json == null) {
|
|
5020
|
+
return json;
|
|
5021
|
+
}
|
|
5022
|
+
return {
|
|
5023
|
+
bundlePurchaseBehavior: CheckoutBundlePurchaseBehaviorFromJSON(
|
|
5024
|
+
json["bundle_purchase_behavior"]
|
|
5025
|
+
),
|
|
5026
|
+
collectAddress: json["collect_address"],
|
|
5027
|
+
collectEmail: json["collect_email"],
|
|
5028
|
+
collectPhone: json["collect_phone"],
|
|
5029
|
+
collectTaxId: json["collect_tax_id"],
|
|
5030
|
+
customFields: json["custom_fields"].map(
|
|
5031
|
+
CatalogCheckoutFieldResponseDataFromJSON
|
|
5032
|
+
),
|
|
5033
|
+
prorationBehavior: ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5034
|
+
taxCollectionEnabled: json["tax_collection_enabled"]
|
|
5035
|
+
};
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
// src/api/checkoutexternal/models/CatalogPlanRefResponseData.ts
|
|
5039
|
+
function CatalogPlanRefResponseDataFromJSON(json) {
|
|
5040
|
+
return CatalogPlanRefResponseDataFromJSONTyped(json, false);
|
|
5041
|
+
}
|
|
5042
|
+
function CatalogPlanRefResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5043
|
+
if (json == null) {
|
|
5044
|
+
return json;
|
|
5045
|
+
}
|
|
5046
|
+
return {
|
|
5047
|
+
id: json["id"],
|
|
5048
|
+
name: json["name"]
|
|
5049
|
+
};
|
|
5050
|
+
}
|
|
5051
|
+
|
|
5052
|
+
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
5053
|
+
var CompanyPlanInvalidReason = {
|
|
5054
|
+
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
5055
|
+
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
5056
|
+
};
|
|
5057
|
+
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
5058
|
+
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
5059
|
+
}
|
|
5060
|
+
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
5061
|
+
return json;
|
|
5062
|
+
}
|
|
5063
|
+
|
|
5064
|
+
// src/api/checkoutexternal/models/CatalogUsageViolationResponseData.ts
|
|
5065
|
+
function CatalogUsageViolationResponseDataFromJSON(json) {
|
|
5066
|
+
return CatalogUsageViolationResponseDataFromJSONTyped(json, false);
|
|
5067
|
+
}
|
|
5068
|
+
function CatalogUsageViolationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5069
|
+
if (json == null) {
|
|
5070
|
+
return json;
|
|
5071
|
+
}
|
|
5072
|
+
return {
|
|
5073
|
+
featureId: json["feature_id"],
|
|
5074
|
+
featureName: json["feature_name"],
|
|
5075
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
5076
|
+
usage: json["usage"]
|
|
5077
|
+
};
|
|
5078
|
+
}
|
|
5079
|
+
|
|
5080
|
+
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
5081
|
+
var EntitlementValueType = {
|
|
5082
|
+
Boolean: "boolean",
|
|
5083
|
+
Credit: "credit",
|
|
5084
|
+
Numeric: "numeric",
|
|
5085
|
+
Trait: "trait",
|
|
5086
|
+
Unknown: "unknown",
|
|
5087
|
+
Unlimited: "unlimited"
|
|
5088
|
+
};
|
|
5089
|
+
function EntitlementValueTypeFromJSON(json) {
|
|
5090
|
+
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
5091
|
+
}
|
|
5092
|
+
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5093
|
+
return json;
|
|
5094
|
+
}
|
|
5095
|
+
|
|
5096
|
+
// src/api/checkoutexternal/models/FeatureType.ts
|
|
5097
|
+
var FeatureType = {
|
|
5098
|
+
Boolean: "boolean",
|
|
5099
|
+
Event: "event",
|
|
5100
|
+
License: "license",
|
|
5101
|
+
Trait: "trait"
|
|
5102
|
+
};
|
|
5103
|
+
function FeatureTypeFromJSON(json) {
|
|
5104
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
5105
|
+
}
|
|
5106
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5107
|
+
return json;
|
|
5108
|
+
}
|
|
5109
|
+
|
|
5110
|
+
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5111
|
+
function MetricPeriodMonthResetFromJSON(json) {
|
|
5112
|
+
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5113
|
+
}
|
|
5114
|
+
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5115
|
+
return json;
|
|
5116
|
+
}
|
|
5117
|
+
|
|
5118
|
+
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5119
|
+
function MetricPeriodFromJSON(json) {
|
|
5120
|
+
return MetricPeriodFromJSONTyped(json, false);
|
|
5121
|
+
}
|
|
5122
|
+
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5123
|
+
return json;
|
|
5124
|
+
}
|
|
5125
|
+
|
|
5126
|
+
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
5127
|
+
var EntitlementPriceBehavior = {
|
|
5128
|
+
CreditBurndown: "credit_burndown",
|
|
5129
|
+
Overage: "overage",
|
|
5130
|
+
PayAsYouGo: "pay_as_you_go",
|
|
5131
|
+
PayInAdvance: "pay_in_advance",
|
|
5132
|
+
Tier: "tier"
|
|
5133
|
+
};
|
|
5134
|
+
function EntitlementPriceBehaviorFromJSON(json) {
|
|
5135
|
+
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
5136
|
+
}
|
|
5137
|
+
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5138
|
+
return json;
|
|
5139
|
+
}
|
|
5140
|
+
|
|
5141
|
+
// src/api/checkoutexternal/models/CatalogCurrencyPricesResponseData.ts
|
|
5142
|
+
function CatalogCurrencyPricesResponseDataFromJSON(json) {
|
|
5143
|
+
return CatalogCurrencyPricesResponseDataFromJSONTyped(json, false);
|
|
5144
|
+
}
|
|
5145
|
+
function CatalogCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5146
|
+
if (json == null) {
|
|
5147
|
+
return json;
|
|
5148
|
+
}
|
|
5149
|
+
return {
|
|
5150
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5151
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5152
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5153
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5154
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5155
|
+
};
|
|
5156
|
+
}
|
|
5157
|
+
|
|
5158
|
+
// src/api/checkoutexternal/models/CatalogPlanEntitlementResponseData.ts
|
|
5159
|
+
function CatalogPlanEntitlementResponseDataFromJSON(json) {
|
|
5160
|
+
return CatalogPlanEntitlementResponseDataFromJSONTyped(json, false);
|
|
5161
|
+
}
|
|
5162
|
+
function CatalogPlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5163
|
+
if (json == null) {
|
|
5164
|
+
return json;
|
|
5165
|
+
}
|
|
5166
|
+
return {
|
|
5167
|
+
consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
|
|
5168
|
+
creditEquivalentLimit: json["credit_equivalent_limit"] == null ? void 0 : json["credit_equivalent_limit"],
|
|
5169
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5170
|
+
creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
|
|
5171
|
+
creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
|
|
5172
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5173
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5174
|
+
currencyPrices: json["currency_prices"].map(
|
|
5175
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5176
|
+
),
|
|
5177
|
+
featureDescription: json["feature_description"],
|
|
5178
|
+
featureIcon: json["feature_icon"],
|
|
5179
|
+
featureId: json["feature_id"],
|
|
5180
|
+
featureName: json["feature_name"],
|
|
5181
|
+
featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
|
|
5182
|
+
featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
|
|
5183
|
+
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
5184
|
+
id: json["id"],
|
|
5185
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5186
|
+
meteredMonthlyPrice: json["metered_monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_monthly_price"]),
|
|
5187
|
+
meteredQuarterlyPrice: json["metered_quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_quarterly_price"]),
|
|
5188
|
+
meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_yearly_price"]),
|
|
5189
|
+
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
5190
|
+
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
5191
|
+
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
5192
|
+
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
5193
|
+
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
5194
|
+
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
5195
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
5196
|
+
warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
|
|
5197
|
+
};
|
|
5198
|
+
}
|
|
5199
|
+
|
|
5200
|
+
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5201
|
+
function ChargeTypeFromJSON(json) {
|
|
5202
|
+
return ChargeTypeFromJSONTyped(json, false);
|
|
5203
|
+
}
|
|
5204
|
+
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5205
|
+
return json;
|
|
5206
|
+
}
|
|
5207
|
+
|
|
5208
|
+
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
5209
|
+
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
5210
|
+
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
5211
|
+
}
|
|
5212
|
+
function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5213
|
+
if (json == null) {
|
|
5214
|
+
return json;
|
|
5215
|
+
}
|
|
5216
|
+
return {
|
|
5217
|
+
companyCreditAmount: json["company_credit_amount"],
|
|
5218
|
+
creditAmount: json["credit_amount"],
|
|
5219
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5220
|
+
creditId: json["credit_id"],
|
|
5221
|
+
creditName: json["credit_name"],
|
|
5222
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5223
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5224
|
+
id: json["id"],
|
|
5225
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5226
|
+
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
5227
|
+
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
5228
|
+
};
|
|
5229
|
+
}
|
|
5230
|
+
|
|
5231
|
+
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
5232
|
+
function PlanPriceCadenceFromJSON(json) {
|
|
5233
|
+
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
5234
|
+
}
|
|
5235
|
+
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
5236
|
+
return json;
|
|
5237
|
+
}
|
|
5238
|
+
|
|
5239
|
+
// src/api/checkoutexternal/models/CatalogCompanyPlanResponseData.ts
|
|
5240
|
+
function CatalogCompanyPlanResponseDataFromJSON(json) {
|
|
5241
|
+
return CatalogCompanyPlanResponseDataFromJSONTyped(json, false);
|
|
5242
|
+
}
|
|
5243
|
+
function CatalogCompanyPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5244
|
+
if (json == null) {
|
|
5245
|
+
return json;
|
|
5246
|
+
}
|
|
5247
|
+
return {
|
|
5248
|
+
autoTopups: json["auto_topups"].map(
|
|
5249
|
+
CatalogAutoTopupResponseDataFromJSON
|
|
5250
|
+
),
|
|
5251
|
+
availablePeriods: json["available_periods"].map(
|
|
5252
|
+
PlanPriceCadenceFromJSON
|
|
5253
|
+
),
|
|
5254
|
+
billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
|
|
5255
|
+
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
5256
|
+
companyCanTrial: json["company_can_trial"],
|
|
5257
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5258
|
+
currencyPrices: json["currency_prices"].map(
|
|
5259
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5260
|
+
),
|
|
5261
|
+
current: json["current"],
|
|
5262
|
+
description: json["description"],
|
|
5263
|
+
entitlements: json["entitlements"].map(
|
|
5264
|
+
CatalogPlanEntitlementResponseDataFromJSON
|
|
5265
|
+
),
|
|
5266
|
+
icon: json["icon"],
|
|
5267
|
+
id: json["id"],
|
|
5268
|
+
includedCreditGrants: json["included_credit_grants"].map(
|
|
5269
|
+
CatalogCreditGrantResponseDataFromJSON
|
|
5270
|
+
),
|
|
5271
|
+
invalidReason: json["invalid_reason"] == null ? void 0 : CompanyPlanInvalidReasonFromJSON(json["invalid_reason"]),
|
|
5272
|
+
isTrialable: json["is_trialable"],
|
|
5273
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5274
|
+
name: json["name"],
|
|
5275
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5276
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5277
|
+
trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
|
|
5278
|
+
usageViolations: json["usage_violations"].map(
|
|
5279
|
+
CatalogUsageViolationResponseDataFromJSON
|
|
5280
|
+
),
|
|
5281
|
+
valid: json["valid"],
|
|
5282
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5283
|
+
};
|
|
5284
|
+
}
|
|
5285
|
+
|
|
5286
|
+
// src/api/checkoutexternal/models/CatalogCreditBundleResponseData.ts
|
|
5287
|
+
function CatalogCreditBundleResponseDataFromJSON(json) {
|
|
5288
|
+
return CatalogCreditBundleResponseDataFromJSONTyped(json, false);
|
|
5289
|
+
}
|
|
5290
|
+
function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5291
|
+
if (json == null) {
|
|
5292
|
+
return json;
|
|
5293
|
+
}
|
|
5294
|
+
return {
|
|
5295
|
+
bundleType: BillingCreditBundleTypeFromJSON(json["bundle_type"]),
|
|
5296
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5297
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5298
|
+
creditId: json["credit_id"],
|
|
5299
|
+
creditName: json["credit_name"],
|
|
5300
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5301
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5302
|
+
currencyPrices: json["currency_prices"].map(
|
|
5303
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
5304
|
+
),
|
|
5305
|
+
expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
5306
|
+
expiryUnit: BillingCreditExpiryUnitFromJSON(json["expiry_unit"]),
|
|
5307
|
+
expiryUnitCount: json["expiry_unit_count"] == null ? void 0 : json["expiry_unit_count"],
|
|
5308
|
+
id: json["id"],
|
|
5309
|
+
name: json["name"],
|
|
5310
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
5311
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"],
|
|
5312
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
5313
|
+
};
|
|
5314
|
+
}
|
|
5315
|
+
|
|
5316
|
+
// src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
|
|
5317
|
+
function CatalogCustomPlanCTAResponseDataFromJSON(json) {
|
|
5318
|
+
return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
|
|
5319
|
+
}
|
|
5320
|
+
function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5321
|
+
if (json == null) {
|
|
5322
|
+
return json;
|
|
5323
|
+
}
|
|
5324
|
+
return {
|
|
5325
|
+
ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
|
|
5326
|
+
ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
|
|
5327
|
+
priceText: json["price_text"] == null ? void 0 : json["price_text"]
|
|
5328
|
+
};
|
|
5329
|
+
}
|
|
5330
|
+
|
|
4919
5331
|
// src/api/checkoutexternal/models/UpdatePayInAdvanceRequestBody.ts
|
|
4920
5332
|
function UpdatePayInAdvanceRequestBodyFromJSON(json) {
|
|
4921
5333
|
return UpdatePayInAdvanceRequestBodyFromJSONTyped(json, false);
|
|
@@ -5086,24 +5498,25 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5086
5498
|
};
|
|
5087
5499
|
}
|
|
5088
5500
|
|
|
5089
|
-
// src/api/checkoutexternal/models/
|
|
5090
|
-
function
|
|
5091
|
-
return
|
|
5092
|
-
}
|
|
5093
|
-
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5094
|
-
return json;
|
|
5095
|
-
}
|
|
5096
|
-
|
|
5097
|
-
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
5098
|
-
var CheckoutBundlePurchaseBehavior = {
|
|
5099
|
-
Individual: "individual",
|
|
5100
|
-
Quantity: "quantity"
|
|
5101
|
-
};
|
|
5102
|
-
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
5103
|
-
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
5501
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
|
|
5502
|
+
function CheckoutPriceSnapshotDiscountFromJSON(json) {
|
|
5503
|
+
return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
|
|
5104
5504
|
}
|
|
5105
|
-
function
|
|
5106
|
-
|
|
5505
|
+
function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
|
|
5506
|
+
if (json == null) {
|
|
5507
|
+
return json;
|
|
5508
|
+
}
|
|
5509
|
+
return {
|
|
5510
|
+
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
5511
|
+
couponExternalId: json["coupon_external_id"],
|
|
5512
|
+
couponName: json["coupon_name"],
|
|
5513
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5514
|
+
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
5515
|
+
duration: json["duration"],
|
|
5516
|
+
durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
|
|
5517
|
+
percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
|
|
5518
|
+
promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
|
|
5519
|
+
};
|
|
5107
5520
|
}
|
|
5108
5521
|
|
|
5109
5522
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
@@ -5117,10 +5530,16 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5117
5530
|
return {
|
|
5118
5531
|
amountOff: json["amount_off"],
|
|
5119
5532
|
currency: CurrencyFromJSON(json["currency"]),
|
|
5533
|
+
discountAmount: json["discount_amount"],
|
|
5534
|
+
discounts: json["discounts"].map(
|
|
5535
|
+
CheckoutPriceSnapshotDiscountFromJSON
|
|
5536
|
+
),
|
|
5120
5537
|
dueNow: json["due_now"],
|
|
5121
5538
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5122
5539
|
newCharges: json["new_charges"],
|
|
5123
5540
|
optInRequired: json["opt_in_required"],
|
|
5541
|
+
optInText: json["opt_in_text"] == null ? void 0 : json["opt_in_text"],
|
|
5542
|
+
optInTitle: json["opt_in_title"] == null ? void 0 : json["opt_in_title"],
|
|
5124
5543
|
paymentMethodRequired: json["payment_method_required"],
|
|
5125
5544
|
percentOff: json["percent_off"],
|
|
5126
5545
|
periodStart: new Date(json["period_start"]),
|
|
@@ -5142,6 +5561,17 @@ function CheckoutStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5142
5561
|
return json;
|
|
5143
5562
|
}
|
|
5144
5563
|
|
|
5564
|
+
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5565
|
+
function CheckoutIntentFromJSON(json) {
|
|
5566
|
+
return CheckoutIntentFromJSONTyped(json, false);
|
|
5567
|
+
}
|
|
5568
|
+
function CheckoutIntentFromJSONTyped(json, ignoreDiscriminator) {
|
|
5569
|
+
return json;
|
|
5570
|
+
}
|
|
5571
|
+
function CheckoutIntentToJSON(value) {
|
|
5572
|
+
return value;
|
|
5573
|
+
}
|
|
5574
|
+
|
|
5145
5575
|
// src/api/checkoutexternal/models/CheckoutSelectionsResponseData.ts
|
|
5146
5576
|
function CheckoutSelectionsResponseDataFromJSON(json) {
|
|
5147
5577
|
return CheckoutSelectionsResponseDataFromJSONTyped(json, false);
|
|
@@ -5162,9 +5592,11 @@ function CheckoutSelectionsResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5162
5592
|
creditBundles: json["credit_bundles"].map(
|
|
5163
5593
|
UpdateCreditBundleRequestBodyFromJSON
|
|
5164
5594
|
),
|
|
5595
|
+
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
5165
5596
|
customFieldValues: json["custom_field_values"].map(
|
|
5166
5597
|
CheckoutFieldValueFromJSON
|
|
5167
5598
|
),
|
|
5599
|
+
intent: CheckoutIntentFromJSON(json["intent"]),
|
|
5168
5600
|
newPlanId: json["new_plan_id"] == null ? void 0 : json["new_plan_id"],
|
|
5169
5601
|
newPriceId: json["new_price_id"] == null ? void 0 : json["new_price_id"],
|
|
5170
5602
|
optInAccepted: json["opt_in_accepted"] == null ? void 0 : json["opt_in_accepted"],
|
|
@@ -5264,11 +5696,6 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5264
5696
|
};
|
|
5265
5697
|
}
|
|
5266
5698
|
|
|
5267
|
-
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5268
|
-
function CheckoutIntentToJSON(value) {
|
|
5269
|
-
return value;
|
|
5270
|
-
}
|
|
5271
|
-
|
|
5272
5699
|
// src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
|
|
5273
5700
|
function ScheduledDowngradeConfigBehaviorFromJSON(json) {
|
|
5274
5701
|
return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
|
|
@@ -5373,15 +5800,19 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5373
5800
|
};
|
|
5374
5801
|
}
|
|
5375
5802
|
|
|
5376
|
-
// src/api/checkoutexternal/models/
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
InvoiceImmediately: "invoice_immediately"
|
|
5380
|
-
};
|
|
5381
|
-
function ProrationBehaviorFromJSON(json) {
|
|
5382
|
-
return ProrationBehaviorFromJSONTyped(json, false);
|
|
5803
|
+
// src/api/checkoutexternal/models/Collector.ts
|
|
5804
|
+
function CollectorFromJSON(json) {
|
|
5805
|
+
return CollectorFromJSONTyped(json, false);
|
|
5383
5806
|
}
|
|
5384
|
-
function
|
|
5807
|
+
function CollectorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5808
|
+
return json;
|
|
5809
|
+
}
|
|
5810
|
+
|
|
5811
|
+
// src/api/checkoutexternal/models/PaymentGating.ts
|
|
5812
|
+
function PaymentGatingFromJSON(json) {
|
|
5813
|
+
return PaymentGatingFromJSONTyped(json, false);
|
|
5814
|
+
}
|
|
5815
|
+
function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
|
|
5385
5816
|
return json;
|
|
5386
5817
|
}
|
|
5387
5818
|
|
|
@@ -5399,20 +5830,63 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
5399
5830
|
collectionMethod: BillingCollectionMethodFromJSON(
|
|
5400
5831
|
json["collection_method"]
|
|
5401
5832
|
),
|
|
5833
|
+
collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
|
|
5402
5834
|
companyId: json["company_id"],
|
|
5403
5835
|
createdAt: new Date(json["created_at"]),
|
|
5836
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5404
5837
|
daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
|
|
5405
5838
|
environmentId: json["environment_id"],
|
|
5839
|
+
gatingDays: json["gating_days"],
|
|
5406
5840
|
id: json["id"],
|
|
5407
5841
|
isDefault: json["is_default"],
|
|
5408
5842
|
name: json["name"] == null ? void 0 : json["name"],
|
|
5843
|
+
overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
|
|
5844
|
+
paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
|
|
5409
5845
|
paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
|
|
5410
5846
|
prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5411
5847
|
providerType: BillingProviderTypeFromJSON(json["provider_type"]),
|
|
5848
|
+
purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
|
|
5412
5849
|
updatedAt: new Date(json["updated_at"])
|
|
5413
5850
|
};
|
|
5414
5851
|
}
|
|
5415
5852
|
|
|
5853
|
+
// src/api/checkoutexternal/models/CompanyCatalogResponseData.ts
|
|
5854
|
+
function CompanyCatalogResponseDataFromJSON(json) {
|
|
5855
|
+
return CompanyCatalogResponseDataFromJSONTyped(json, false);
|
|
5856
|
+
}
|
|
5857
|
+
function CompanyCatalogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5858
|
+
if (json == null) {
|
|
5859
|
+
return json;
|
|
5860
|
+
}
|
|
5861
|
+
return {
|
|
5862
|
+
addOns: json["add_ons"].map(
|
|
5863
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5864
|
+
),
|
|
5865
|
+
capabilities: CatalogCapabilitiesResponseDataFromJSON(json["capabilities"]),
|
|
5866
|
+
checkoutSettings: CatalogCheckoutSettingsResponseDataFromJSON(
|
|
5867
|
+
json["checkout_settings"]
|
|
5868
|
+
),
|
|
5869
|
+
creditBundles: json["credit_bundles"].map(
|
|
5870
|
+
CatalogCreditBundleResponseDataFromJSON
|
|
5871
|
+
),
|
|
5872
|
+
customPlanCta: json["custom_plan_cta"] == null ? void 0 : CatalogCustomPlanCTAResponseDataFromJSON(json["custom_plan_cta"]),
|
|
5873
|
+
defaultCurrency: CurrencyFromJSON(json["default_currency"]),
|
|
5874
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
5875
|
+
id: json["id"],
|
|
5876
|
+
name: json["name"],
|
|
5877
|
+
plans: json["plans"].map(
|
|
5878
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5879
|
+
),
|
|
5880
|
+
preventSelfServiceDowngrade: json["prevent_self_service_downgrade"],
|
|
5881
|
+
preventSelfServiceDowngradeButtonText: json["prevent_self_service_downgrade_button_text"] == null ? void 0 : json["prevent_self_service_downgrade_button_text"],
|
|
5882
|
+
preventSelfServiceDowngradeUrl: json["prevent_self_service_downgrade_url"] == null ? void 0 : json["prevent_self_service_downgrade_url"],
|
|
5883
|
+
pricingModel: json["pricing_model"] == null ? void 0 : json["pricing_model"],
|
|
5884
|
+
pricingUrl: json["pricing_url"] == null ? void 0 : json["pricing_url"],
|
|
5885
|
+
trialExpiryPlan: json["trial_expiry_plan"] == null ? void 0 : CatalogPlanRefResponseDataFromJSON(json["trial_expiry_plan"]),
|
|
5886
|
+
trialPaymentMethodRequired: json["trial_payment_method_required"] == null ? void 0 : json["trial_payment_method_required"]
|
|
5887
|
+
};
|
|
5888
|
+
}
|
|
5889
|
+
|
|
5416
5890
|
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
5417
5891
|
var CustomPlanActivationStrategy = {
|
|
5418
5892
|
Payment: "on_payment",
|
|
@@ -5803,30 +6277,6 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5803
6277
|
};
|
|
5804
6278
|
}
|
|
5805
6279
|
|
|
5806
|
-
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
5807
|
-
var EntitlementValueType = {
|
|
5808
|
-
Boolean: "boolean",
|
|
5809
|
-
Credit: "credit",
|
|
5810
|
-
Numeric: "numeric",
|
|
5811
|
-
Trait: "trait",
|
|
5812
|
-
Unknown: "unknown",
|
|
5813
|
-
Unlimited: "unlimited"
|
|
5814
|
-
};
|
|
5815
|
-
function EntitlementValueTypeFromJSON(json) {
|
|
5816
|
-
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
5817
|
-
}
|
|
5818
|
-
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5819
|
-
return json;
|
|
5820
|
-
}
|
|
5821
|
-
|
|
5822
|
-
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5823
|
-
function MetricPeriodMonthResetFromJSON(json) {
|
|
5824
|
-
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5825
|
-
}
|
|
5826
|
-
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5827
|
-
return json;
|
|
5828
|
-
}
|
|
5829
|
-
|
|
5830
6280
|
// src/api/checkoutexternal/models/WarningTier.ts
|
|
5831
6281
|
function WarningTierFromJSON(json) {
|
|
5832
6282
|
return WarningTierFromJSONTyped(json, false);
|
|
@@ -5841,14 +6291,6 @@ function WarningTierFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5841
6291
|
};
|
|
5842
6292
|
}
|
|
5843
6293
|
|
|
5844
|
-
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5845
|
-
function MetricPeriodFromJSON(json) {
|
|
5846
|
-
return MetricPeriodFromJSONTyped(json, false);
|
|
5847
|
-
}
|
|
5848
|
-
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5849
|
-
return json;
|
|
5850
|
-
}
|
|
5851
|
-
|
|
5852
6294
|
// src/api/checkoutexternal/models/FeatureEntitlement.ts
|
|
5853
6295
|
function FeatureEntitlementFromJSON(json) {
|
|
5854
6296
|
return FeatureEntitlementFromJSONTyped(json, false);
|
|
@@ -5998,6 +6440,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5998
6440
|
companyId: json["company_id"],
|
|
5999
6441
|
createdAt: new Date(json["created_at"]),
|
|
6000
6442
|
daysUntilDue: json["days_until_due"],
|
|
6443
|
+
endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
|
|
6001
6444
|
externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
|
|
6002
6445
|
id: json["id"],
|
|
6003
6446
|
migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
|
|
@@ -6294,35 +6737,6 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6294
6737
|
};
|
|
6295
6738
|
}
|
|
6296
6739
|
|
|
6297
|
-
// src/api/checkoutexternal/models/FeatureType.ts
|
|
6298
|
-
var FeatureType = {
|
|
6299
|
-
Boolean: "boolean",
|
|
6300
|
-
Event: "event",
|
|
6301
|
-
License: "license",
|
|
6302
|
-
Trait: "trait"
|
|
6303
|
-
};
|
|
6304
|
-
function FeatureTypeFromJSON(json) {
|
|
6305
|
-
return FeatureTypeFromJSONTyped(json, false);
|
|
6306
|
-
}
|
|
6307
|
-
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6308
|
-
return json;
|
|
6309
|
-
}
|
|
6310
|
-
|
|
6311
|
-
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6312
|
-
var EntitlementPriceBehavior = {
|
|
6313
|
-
CreditBurndown: "credit_burndown",
|
|
6314
|
-
Overage: "overage",
|
|
6315
|
-
PayAsYouGo: "pay_as_you_go",
|
|
6316
|
-
PayInAdvance: "pay_in_advance",
|
|
6317
|
-
Tier: "tier"
|
|
6318
|
-
};
|
|
6319
|
-
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6320
|
-
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6321
|
-
}
|
|
6322
|
-
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6323
|
-
return json;
|
|
6324
|
-
}
|
|
6325
|
-
|
|
6326
6740
|
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6327
6741
|
function EntitlementTypeFromJSON(json) {
|
|
6328
6742
|
return EntitlementTypeFromJSONTyped(json, false);
|
|
@@ -6605,26 +7019,6 @@ function CompanyPaymentMethodsResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
6605
7019
|
};
|
|
6606
7020
|
}
|
|
6607
7021
|
|
|
6608
|
-
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
6609
|
-
var CompanyPlanInvalidReason = {
|
|
6610
|
-
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
6611
|
-
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
6612
|
-
};
|
|
6613
|
-
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
6614
|
-
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
6615
|
-
}
|
|
6616
|
-
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
6617
|
-
return json;
|
|
6618
|
-
}
|
|
6619
|
-
|
|
6620
|
-
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
6621
|
-
function PlanPriceCadenceFromJSON(json) {
|
|
6622
|
-
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
6623
|
-
}
|
|
6624
|
-
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
6625
|
-
return json;
|
|
6626
|
-
}
|
|
6627
|
-
|
|
6628
7022
|
// src/api/checkoutexternal/models/EstimatedPlanTotal.ts
|
|
6629
7023
|
function EstimatedPlanTotalFromJSON(json) {
|
|
6630
7024
|
return EstimatedPlanTotalFromJSONTyped(json, false);
|
|
@@ -6922,7 +7316,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6922
7316
|
}
|
|
6923
7317
|
return {
|
|
6924
7318
|
createdAt: new Date(json["created_at"]),
|
|
6925
|
-
defaultValue: json["default_value"],
|
|
7319
|
+
defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
|
|
6926
7320
|
description: json["description"],
|
|
6927
7321
|
feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
|
|
6928
7322
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
@@ -7082,6 +7476,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
7082
7476
|
};
|
|
7083
7477
|
}
|
|
7084
7478
|
|
|
7479
|
+
// src/api/checkoutexternal/models/RenewalPolicy.ts
|
|
7480
|
+
function RenewalPolicyFromJSON(json) {
|
|
7481
|
+
return RenewalPolicyFromJSONTyped(json, false);
|
|
7482
|
+
}
|
|
7483
|
+
function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
7484
|
+
return json;
|
|
7485
|
+
}
|
|
7486
|
+
|
|
7085
7487
|
// src/api/checkoutexternal/models/PlanVersionResponseData.ts
|
|
7086
7488
|
function PlanVersionResponseDataFromJSON(json) {
|
|
7087
7489
|
return PlanVersionResponseDataFromJSONTyped(json, false);
|
|
@@ -7099,6 +7501,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7099
7501
|
name: json["name"],
|
|
7100
7502
|
originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
|
|
7101
7503
|
planType: PlanTypeFromJSON(json["plan_type"]),
|
|
7504
|
+
renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
|
|
7102
7505
|
status: PlanVersionStatusFromJSON(json["status"]),
|
|
7103
7506
|
updatedAt: new Date(json["updated_at"]),
|
|
7104
7507
|
version: json["version"]
|
|
@@ -7954,6 +8357,34 @@ function FinalizeCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7954
8357
|
};
|
|
7955
8358
|
}
|
|
7956
8359
|
|
|
8360
|
+
// src/api/checkoutexternal/models/GetCatalogViewByIDResponse.ts
|
|
8361
|
+
function GetCatalogViewByIDResponseFromJSON(json) {
|
|
8362
|
+
return GetCatalogViewByIDResponseFromJSONTyped(json, false);
|
|
8363
|
+
}
|
|
8364
|
+
function GetCatalogViewByIDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8365
|
+
if (json == null) {
|
|
8366
|
+
return json;
|
|
8367
|
+
}
|
|
8368
|
+
return {
|
|
8369
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8370
|
+
params: json["params"]
|
|
8371
|
+
};
|
|
8372
|
+
}
|
|
8373
|
+
|
|
8374
|
+
// src/api/checkoutexternal/models/GetCatalogViewResponse.ts
|
|
8375
|
+
function GetCatalogViewResponseFromJSON(json) {
|
|
8376
|
+
return GetCatalogViewResponseFromJSONTyped(json, false);
|
|
8377
|
+
}
|
|
8378
|
+
function GetCatalogViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8379
|
+
if (json == null) {
|
|
8380
|
+
return json;
|
|
8381
|
+
}
|
|
8382
|
+
return {
|
|
8383
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8384
|
+
params: json["params"]
|
|
8385
|
+
};
|
|
8386
|
+
}
|
|
8387
|
+
|
|
7957
8388
|
// src/api/checkoutexternal/models/GetCheckoutResponse.ts
|
|
7958
8389
|
function GetCheckoutResponseFromJSON(json) {
|
|
7959
8390
|
return GetCheckoutResponseFromJSONTyped(json, false);
|
|
@@ -8646,6 +9077,11 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8646
9077
|
const queryParameters = {};
|
|
8647
9078
|
const headerParameters = {};
|
|
8648
9079
|
headerParameters["Content-Type"] = "application/json";
|
|
9080
|
+
if (requestParameters["xCheckoutSessionID"] != null) {
|
|
9081
|
+
headerParameters["X-Checkout-Session-ID"] = String(
|
|
9082
|
+
requestParameters["xCheckoutSessionID"]
|
|
9083
|
+
);
|
|
9084
|
+
}
|
|
8649
9085
|
if (this.configuration && this.configuration.apiKey) {
|
|
8650
9086
|
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8651
9087
|
"X-Schematic-Api-Key"
|
|
@@ -8879,6 +9315,11 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8879
9315
|
const queryParameters = {};
|
|
8880
9316
|
const headerParameters = {};
|
|
8881
9317
|
headerParameters["Content-Type"] = "application/json";
|
|
9318
|
+
if (requestParameters["xCheckoutSessionID"] != null) {
|
|
9319
|
+
headerParameters["X-Checkout-Session-ID"] = String(
|
|
9320
|
+
requestParameters["xCheckoutSessionID"]
|
|
9321
|
+
);
|
|
9322
|
+
}
|
|
8882
9323
|
if (this.configuration && this.configuration.apiKey) {
|
|
8883
9324
|
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8884
9325
|
"X-Schematic-Api-Key"
|
|
@@ -8914,6 +9355,82 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8914
9355
|
);
|
|
8915
9356
|
return await response.value();
|
|
8916
9357
|
}
|
|
9358
|
+
/**
|
|
9359
|
+
* Get catalog view
|
|
9360
|
+
*/
|
|
9361
|
+
async getCatalogViewRaw(initOverrides) {
|
|
9362
|
+
const queryParameters = {};
|
|
9363
|
+
const headerParameters = {};
|
|
9364
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9365
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9366
|
+
"X-Schematic-Api-Key"
|
|
9367
|
+
);
|
|
9368
|
+
}
|
|
9369
|
+
const response = await this.request(
|
|
9370
|
+
{
|
|
9371
|
+
path: `/catalog/view`,
|
|
9372
|
+
method: "GET",
|
|
9373
|
+
headers: headerParameters,
|
|
9374
|
+
query: queryParameters
|
|
9375
|
+
},
|
|
9376
|
+
initOverrides
|
|
9377
|
+
);
|
|
9378
|
+
return new JSONApiResponse(
|
|
9379
|
+
response,
|
|
9380
|
+
(jsonValue) => GetCatalogViewResponseFromJSON(jsonValue)
|
|
9381
|
+
);
|
|
9382
|
+
}
|
|
9383
|
+
/**
|
|
9384
|
+
* Get catalog view
|
|
9385
|
+
*/
|
|
9386
|
+
async getCatalogView(initOverrides) {
|
|
9387
|
+
const response = await this.getCatalogViewRaw(initOverrides);
|
|
9388
|
+
return await response.value();
|
|
9389
|
+
}
|
|
9390
|
+
/**
|
|
9391
|
+
* Get catalog view by ID
|
|
9392
|
+
*/
|
|
9393
|
+
async getCatalogViewByIDRaw(requestParameters, initOverrides) {
|
|
9394
|
+
if (requestParameters["catalogId"] == null) {
|
|
9395
|
+
throw new RequiredError(
|
|
9396
|
+
"catalogId",
|
|
9397
|
+
'Required parameter "catalogId" was null or undefined when calling getCatalogViewByID().'
|
|
9398
|
+
);
|
|
9399
|
+
}
|
|
9400
|
+
const queryParameters = {};
|
|
9401
|
+
const headerParameters = {};
|
|
9402
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9403
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9404
|
+
"X-Schematic-Api-Key"
|
|
9405
|
+
);
|
|
9406
|
+
}
|
|
9407
|
+
const response = await this.request(
|
|
9408
|
+
{
|
|
9409
|
+
path: `/catalogs/{catalog_id}/view`.replace(
|
|
9410
|
+
`{${"catalog_id"}}`,
|
|
9411
|
+
encodeURIComponent(String(requestParameters["catalogId"]))
|
|
9412
|
+
),
|
|
9413
|
+
method: "GET",
|
|
9414
|
+
headers: headerParameters,
|
|
9415
|
+
query: queryParameters
|
|
9416
|
+
},
|
|
9417
|
+
initOverrides
|
|
9418
|
+
);
|
|
9419
|
+
return new JSONApiResponse(
|
|
9420
|
+
response,
|
|
9421
|
+
(jsonValue) => GetCatalogViewByIDResponseFromJSON(jsonValue)
|
|
9422
|
+
);
|
|
9423
|
+
}
|
|
9424
|
+
/**
|
|
9425
|
+
* Get catalog view by ID
|
|
9426
|
+
*/
|
|
9427
|
+
async getCatalogViewByID(requestParameters, initOverrides) {
|
|
9428
|
+
const response = await this.getCatalogViewByIDRaw(
|
|
9429
|
+
requestParameters,
|
|
9430
|
+
initOverrides
|
|
9431
|
+
);
|
|
9432
|
+
return await response.value();
|
|
9433
|
+
}
|
|
8917
9434
|
/**
|
|
8918
9435
|
* Get checkout
|
|
8919
9436
|
*/
|
|
@@ -10172,9 +10689,9 @@ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
10172
10689
|
|
|
10173
10690
|
// src/api/componentspublic/models/BillingCreditAutoTopupAvailability.ts
|
|
10174
10691
|
function BillingCreditAutoTopupAvailabilityFromJSON2(json) {
|
|
10175
|
-
return
|
|
10692
|
+
return BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, false);
|
|
10176
10693
|
}
|
|
10177
|
-
function
|
|
10694
|
+
function BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10178
10695
|
return json;
|
|
10179
10696
|
}
|
|
10180
10697
|
|
|
@@ -10188,17 +10705,17 @@ function BillingCreditBurnStrategyFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10188
10705
|
|
|
10189
10706
|
// src/api/componentspublic/models/BillingCreditExpiryType.ts
|
|
10190
10707
|
function BillingCreditExpiryTypeFromJSON2(json) {
|
|
10191
|
-
return
|
|
10708
|
+
return BillingCreditExpiryTypeFromJSONTyped8(json, false);
|
|
10192
10709
|
}
|
|
10193
|
-
function
|
|
10710
|
+
function BillingCreditExpiryTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10194
10711
|
return json;
|
|
10195
10712
|
}
|
|
10196
10713
|
|
|
10197
10714
|
// src/api/componentspublic/models/BillingCreditExpiryUnit.ts
|
|
10198
10715
|
function BillingCreditExpiryUnitFromJSON2(json) {
|
|
10199
|
-
return
|
|
10716
|
+
return BillingCreditExpiryUnitFromJSONTyped10(json, false);
|
|
10200
10717
|
}
|
|
10201
|
-
function
|
|
10718
|
+
function BillingCreditExpiryUnitFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10202
10719
|
return json;
|
|
10203
10720
|
}
|
|
10204
10721
|
|
|
@@ -10212,9 +10729,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10212
10729
|
|
|
10213
10730
|
// src/api/componentspublic/models/Currency.ts
|
|
10214
10731
|
function CurrencyFromJSON2(json) {
|
|
10215
|
-
return
|
|
10732
|
+
return CurrencyFromJSONTyped40(json, false);
|
|
10216
10733
|
}
|
|
10217
|
-
function
|
|
10734
|
+
function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
|
|
10218
10735
|
return json;
|
|
10219
10736
|
}
|
|
10220
10737
|
|
|
@@ -10596,41 +11113,65 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
|
|
|
10596
11113
|
|
|
10597
11114
|
// src/api/componentspublic/models/BillingStrategy.ts
|
|
10598
11115
|
function BillingStrategyFromJSON2(json) {
|
|
10599
|
-
return
|
|
11116
|
+
return BillingStrategyFromJSONTyped7(json, false);
|
|
10600
11117
|
}
|
|
10601
|
-
function
|
|
11118
|
+
function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10602
11119
|
return json;
|
|
10603
11120
|
}
|
|
10604
11121
|
|
|
10605
|
-
// src/api/componentspublic/models/
|
|
10606
|
-
function
|
|
10607
|
-
return
|
|
11122
|
+
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
11123
|
+
function EntitlementValueTypeFromJSON2(json) {
|
|
11124
|
+
return EntitlementValueTypeFromJSONTyped10(json, false);
|
|
10608
11125
|
}
|
|
10609
|
-
function
|
|
11126
|
+
function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10610
11127
|
return json;
|
|
10611
11128
|
}
|
|
10612
11129
|
|
|
10613
|
-
// src/api/componentspublic/models/
|
|
10614
|
-
function
|
|
10615
|
-
return
|
|
11130
|
+
// src/api/componentspublic/models/FeatureType.ts
|
|
11131
|
+
function FeatureTypeFromJSON2(json) {
|
|
11132
|
+
return FeatureTypeFromJSONTyped7(json, false);
|
|
10616
11133
|
}
|
|
10617
|
-
function
|
|
11134
|
+
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10618
11135
|
return json;
|
|
10619
11136
|
}
|
|
10620
11137
|
|
|
10621
11138
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
10622
11139
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
10623
|
-
return
|
|
11140
|
+
return MetricPeriodMonthResetFromJSONTyped14(json, false);
|
|
10624
11141
|
}
|
|
10625
|
-
function
|
|
11142
|
+
function MetricPeriodMonthResetFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10626
11143
|
return json;
|
|
10627
11144
|
}
|
|
10628
11145
|
|
|
10629
11146
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
10630
11147
|
function MetricPeriodFromJSON2(json) {
|
|
10631
|
-
return
|
|
11148
|
+
return MetricPeriodFromJSONTyped14(json, false);
|
|
11149
|
+
}
|
|
11150
|
+
function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
|
|
11151
|
+
return json;
|
|
11152
|
+
}
|
|
11153
|
+
|
|
11154
|
+
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
11155
|
+
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
11156
|
+
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
11157
|
+
}
|
|
11158
|
+
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
11159
|
+
return json;
|
|
10632
11160
|
}
|
|
10633
|
-
|
|
11161
|
+
|
|
11162
|
+
// src/api/componentspublic/models/ChargeType.ts
|
|
11163
|
+
function ChargeTypeFromJSON2(json) {
|
|
11164
|
+
return ChargeTypeFromJSONTyped7(json, false);
|
|
11165
|
+
}
|
|
11166
|
+
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11167
|
+
return json;
|
|
11168
|
+
}
|
|
11169
|
+
|
|
11170
|
+
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11171
|
+
function PlanPriceCadenceFromJSON2(json) {
|
|
11172
|
+
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
11173
|
+
}
|
|
11174
|
+
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10634
11175
|
return json;
|
|
10635
11176
|
}
|
|
10636
11177
|
|
|
@@ -10736,14 +11277,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
10736
11277
|
};
|
|
10737
11278
|
}
|
|
10738
11279
|
|
|
10739
|
-
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
10740
|
-
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
10741
|
-
return EntitlementPriceBehaviorFromJSONTyped6(json, false);
|
|
10742
|
-
}
|
|
10743
|
-
function EntitlementPriceBehaviorFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10744
|
-
return json;
|
|
10745
|
-
}
|
|
10746
|
-
|
|
10747
11280
|
// src/api/componentspublic/models/EntityType.ts
|
|
10748
11281
|
function EntityTypeFromJSON2(json) {
|
|
10749
11282
|
return EntityTypeFromJSONTyped9(json, false);
|
|
@@ -10805,14 +11338,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10805
11338
|
return json;
|
|
10806
11339
|
}
|
|
10807
11340
|
|
|
10808
|
-
// src/api/componentspublic/models/FeatureType.ts
|
|
10809
|
-
function FeatureTypeFromJSON2(json) {
|
|
10810
|
-
return FeatureTypeFromJSONTyped5(json, false);
|
|
10811
|
-
}
|
|
10812
|
-
function FeatureTypeFromJSONTyped5(json, ignoreDiscriminator) {
|
|
10813
|
-
return json;
|
|
10814
|
-
}
|
|
10815
|
-
|
|
10816
11341
|
// src/api/componentspublic/models/PreviewObject.ts
|
|
10817
11342
|
function PreviewObjectFromJSON2(json) {
|
|
10818
11343
|
return PreviewObjectFromJSONTyped3(json, false);
|
|
@@ -10993,7 +11518,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
10993
11518
|
}
|
|
10994
11519
|
return {
|
|
10995
11520
|
createdAt: new Date(json["created_at"]),
|
|
10996
|
-
defaultValue: json["default_value"],
|
|
11521
|
+
defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
|
|
10997
11522
|
description: json["description"],
|
|
10998
11523
|
feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
|
|
10999
11524
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
@@ -11163,14 +11688,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
11163
11688
|
};
|
|
11164
11689
|
}
|
|
11165
11690
|
|
|
11166
|
-
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11167
|
-
function PlanPriceCadenceFromJSON2(json) {
|
|
11168
|
-
return PlanPriceCadenceFromJSONTyped5(json, false);
|
|
11169
|
-
}
|
|
11170
|
-
function PlanPriceCadenceFromJSONTyped5(json, ignoreDiscriminator) {
|
|
11171
|
-
return json;
|
|
11172
|
-
}
|
|
11173
|
-
|
|
11174
11691
|
// src/api/componentspublic/models/PlanCreditGrantView.ts
|
|
11175
11692
|
function PlanCreditGrantViewFromJSON2(json) {
|
|
11176
11693
|
return PlanCreditGrantViewFromJSONTyped3(json, false);
|
|
@@ -11266,6 +11783,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
|
|
|
11266
11783
|
};
|
|
11267
11784
|
}
|
|
11268
11785
|
|
|
11786
|
+
// src/api/componentspublic/models/RenewalPolicy.ts
|
|
11787
|
+
function RenewalPolicyFromJSON2(json) {
|
|
11788
|
+
return RenewalPolicyFromJSONTyped3(json, false);
|
|
11789
|
+
}
|
|
11790
|
+
function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
|
|
11791
|
+
return json;
|
|
11792
|
+
}
|
|
11793
|
+
|
|
11269
11794
|
// src/api/componentspublic/models/PlanVersionResponseData.ts
|
|
11270
11795
|
function PlanVersionResponseDataFromJSON2(json) {
|
|
11271
11796
|
return PlanVersionResponseDataFromJSONTyped5(json, false);
|
|
@@ -11283,6 +11808,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
11283
11808
|
name: json["name"],
|
|
11284
11809
|
originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
|
|
11285
11810
|
planType: PlanTypeFromJSON2(json["plan_type"]),
|
|
11811
|
+
renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
|
|
11286
11812
|
status: PlanVersionStatusFromJSON2(json["status"]),
|
|
11287
11813
|
updatedAt: new Date(json["updated_at"]),
|
|
11288
11814
|
version: json["version"]
|
|
@@ -16870,7 +17396,7 @@ var reducer = (state, action) => {
|
|
|
16870
17396
|
// src/context/EmbedProvider.tsx
|
|
16871
17397
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
16872
17398
|
var getCustomHeaders = (sessionId) => ({
|
|
16873
|
-
"X-Schematic-Components-Version": "2.
|
|
17399
|
+
"X-Schematic-Components-Version": "2.34.1",
|
|
16874
17400
|
"X-Schematic-Session-ID": sessionId
|
|
16875
17401
|
});
|
|
16876
17402
|
var normalizeCurrencyFilter = (filter2) => {
|