@schematichq/schematic-components 2.33.0 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schematic-components-elements.cjs.js +1634 -133
- package/dist/schematic-components-elements.d.ts +431 -1
- package/dist/schematic-components-elements.esm.js +1631 -120
- package/dist/schematic-components.browser.cjs.js +601 -172
- package/dist/schematic-components.browser.esm.js +601 -172
- package/dist/schematic-components.cjs.js +601 -172
- package/dist/schematic-components.esm.js +601 -172
- 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();
|
|
@@ -4851,6 +4851,339 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4851
4851
|
};
|
|
4852
4852
|
}
|
|
4853
4853
|
|
|
4854
|
+
// src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
|
|
4855
|
+
function CatalogPriceTierResponseDataFromJSON(json) {
|
|
4856
|
+
return CatalogPriceTierResponseDataFromJSONTyped(json, false);
|
|
4857
|
+
}
|
|
4858
|
+
function CatalogPriceTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4859
|
+
if (json == null) {
|
|
4860
|
+
return json;
|
|
4861
|
+
}
|
|
4862
|
+
return {
|
|
4863
|
+
flatPrice: json["flat_price"] == null ? void 0 : json["flat_price"],
|
|
4864
|
+
from: json["from"],
|
|
4865
|
+
perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
|
|
4866
|
+
perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
|
|
4867
|
+
to: json["to"] == null ? void 0 : json["to"]
|
|
4868
|
+
};
|
|
4869
|
+
}
|
|
4870
|
+
|
|
4871
|
+
// src/api/checkoutexternal/models/CatalogPriceResponseData.ts
|
|
4872
|
+
function CatalogPriceResponseDataFromJSON(json) {
|
|
4873
|
+
return CatalogPriceResponseDataFromJSONTyped(json, false);
|
|
4874
|
+
}
|
|
4875
|
+
function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4876
|
+
if (json == null) {
|
|
4877
|
+
return json;
|
|
4878
|
+
}
|
|
4879
|
+
return {
|
|
4880
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4881
|
+
id: json["id"],
|
|
4882
|
+
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
4883
|
+
intervalCount: json["interval_count"],
|
|
4884
|
+
overageUnitPriceDecimal: json["overage_unit_price_decimal"] == null ? void 0 : json["overage_unit_price_decimal"],
|
|
4885
|
+
packageSize: json["package_size"],
|
|
4886
|
+
price: json["price"],
|
|
4887
|
+
priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
|
|
4888
|
+
priceTiers: json["price_tiers"].map(
|
|
4889
|
+
CatalogPriceTierResponseDataFromJSON
|
|
4890
|
+
),
|
|
4891
|
+
scheme: BillingPriceSchemeFromJSON(json["scheme"]),
|
|
4892
|
+
tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"])
|
|
4893
|
+
};
|
|
4894
|
+
}
|
|
4895
|
+
|
|
4896
|
+
// src/api/checkoutexternal/models/CatalogBundleCurrencyPriceResponseData.ts
|
|
4897
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSON(json) {
|
|
4898
|
+
return CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, false);
|
|
4899
|
+
}
|
|
4900
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4901
|
+
if (json == null) {
|
|
4902
|
+
return json;
|
|
4903
|
+
}
|
|
4904
|
+
return {
|
|
4905
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4906
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
4907
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4908
|
+
};
|
|
4909
|
+
}
|
|
4910
|
+
|
|
4911
|
+
// src/api/checkoutexternal/models/CatalogAutoTopupResponseData.ts
|
|
4912
|
+
function CatalogAutoTopupResponseDataFromJSON(json) {
|
|
4913
|
+
return CatalogAutoTopupResponseDataFromJSONTyped(json, false);
|
|
4914
|
+
}
|
|
4915
|
+
function CatalogAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4916
|
+
if (json == null) {
|
|
4917
|
+
return json;
|
|
4918
|
+
}
|
|
4919
|
+
return {
|
|
4920
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
4921
|
+
availability: BillingCreditAutoTopupAvailabilityFromJSON(
|
|
4922
|
+
json["availability"]
|
|
4923
|
+
),
|
|
4924
|
+
companyAmount: json["company_amount"] == null ? void 0 : json["company_amount"],
|
|
4925
|
+
companyEnabled: json["company_enabled"] == null ? void 0 : json["company_enabled"],
|
|
4926
|
+
companyThresholdCredits: json["company_threshold_credits"] == null ? void 0 : json["company_threshold_credits"],
|
|
4927
|
+
creditId: json["credit_id"],
|
|
4928
|
+
currencyPrices: json["currency_prices"].map(
|
|
4929
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
4930
|
+
),
|
|
4931
|
+
enabled: json["enabled"],
|
|
4932
|
+
planCreditGrantId: json["plan_credit_grant_id"],
|
|
4933
|
+
thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"],
|
|
4934
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4935
|
+
};
|
|
4936
|
+
}
|
|
4937
|
+
|
|
4938
|
+
// src/api/checkoutexternal/models/CatalogCapabilitiesResponseData.ts
|
|
4939
|
+
function CatalogCapabilitiesResponseDataFromJSON(json) {
|
|
4940
|
+
return CatalogCapabilitiesResponseDataFromJSONTyped(json, false);
|
|
4941
|
+
}
|
|
4942
|
+
function CatalogCapabilitiesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4943
|
+
if (json == null) {
|
|
4944
|
+
return json;
|
|
4945
|
+
}
|
|
4946
|
+
return {
|
|
4947
|
+
badgeVisibility: json["badge_visibility"],
|
|
4948
|
+
checkout: json["checkout"]
|
|
4949
|
+
};
|
|
4950
|
+
}
|
|
4951
|
+
|
|
4952
|
+
// src/api/checkoutexternal/models/CatalogCheckoutFieldResponseData.ts
|
|
4953
|
+
function CatalogCheckoutFieldResponseDataFromJSON(json) {
|
|
4954
|
+
return CatalogCheckoutFieldResponseDataFromJSONTyped(json, false);
|
|
4955
|
+
}
|
|
4956
|
+
function CatalogCheckoutFieldResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4957
|
+
if (json == null) {
|
|
4958
|
+
return json;
|
|
4959
|
+
}
|
|
4960
|
+
return {
|
|
4961
|
+
helperText: json["helper_text"] == null ? void 0 : json["helper_text"],
|
|
4962
|
+
id: json["id"],
|
|
4963
|
+
name: json["name"],
|
|
4964
|
+
required: json["required"],
|
|
4965
|
+
value: json["value"] == null ? void 0 : json["value"]
|
|
4966
|
+
};
|
|
4967
|
+
}
|
|
4968
|
+
|
|
4969
|
+
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
4970
|
+
var CheckoutBundlePurchaseBehavior = {
|
|
4971
|
+
Individual: "individual",
|
|
4972
|
+
Quantity: "quantity"
|
|
4973
|
+
};
|
|
4974
|
+
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
4975
|
+
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
4976
|
+
}
|
|
4977
|
+
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
4978
|
+
return json;
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
4982
|
+
var ProrationBehavior = {
|
|
4983
|
+
CreateProrations: "create_prorations",
|
|
4984
|
+
InvoiceImmediately: "invoice_immediately"
|
|
4985
|
+
};
|
|
4986
|
+
function ProrationBehaviorFromJSON(json) {
|
|
4987
|
+
return ProrationBehaviorFromJSONTyped(json, false);
|
|
4988
|
+
}
|
|
4989
|
+
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
4990
|
+
return json;
|
|
4991
|
+
}
|
|
4992
|
+
|
|
4993
|
+
// src/api/checkoutexternal/models/CatalogCheckoutSettingsResponseData.ts
|
|
4994
|
+
function CatalogCheckoutSettingsResponseDataFromJSON(json) {
|
|
4995
|
+
return CatalogCheckoutSettingsResponseDataFromJSONTyped(json, false);
|
|
4996
|
+
}
|
|
4997
|
+
function CatalogCheckoutSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4998
|
+
if (json == null) {
|
|
4999
|
+
return json;
|
|
5000
|
+
}
|
|
5001
|
+
return {
|
|
5002
|
+
bundlePurchaseBehavior: CheckoutBundlePurchaseBehaviorFromJSON(
|
|
5003
|
+
json["bundle_purchase_behavior"]
|
|
5004
|
+
),
|
|
5005
|
+
collectAddress: json["collect_address"],
|
|
5006
|
+
collectEmail: json["collect_email"],
|
|
5007
|
+
collectPhone: json["collect_phone"],
|
|
5008
|
+
collectTaxId: json["collect_tax_id"],
|
|
5009
|
+
customFields: json["custom_fields"].map(
|
|
5010
|
+
CatalogCheckoutFieldResponseDataFromJSON
|
|
5011
|
+
),
|
|
5012
|
+
prorationBehavior: ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5013
|
+
taxCollectionEnabled: json["tax_collection_enabled"]
|
|
5014
|
+
};
|
|
5015
|
+
}
|
|
5016
|
+
|
|
5017
|
+
// src/api/checkoutexternal/models/CatalogPlanRefResponseData.ts
|
|
5018
|
+
function CatalogPlanRefResponseDataFromJSON(json) {
|
|
5019
|
+
return CatalogPlanRefResponseDataFromJSONTyped(json, false);
|
|
5020
|
+
}
|
|
5021
|
+
function CatalogPlanRefResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5022
|
+
if (json == null) {
|
|
5023
|
+
return json;
|
|
5024
|
+
}
|
|
5025
|
+
return {
|
|
5026
|
+
id: json["id"],
|
|
5027
|
+
name: json["name"]
|
|
5028
|
+
};
|
|
5029
|
+
}
|
|
5030
|
+
|
|
5031
|
+
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
5032
|
+
var CompanyPlanInvalidReason = {
|
|
5033
|
+
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
5034
|
+
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
5035
|
+
};
|
|
5036
|
+
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
5037
|
+
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
5038
|
+
}
|
|
5039
|
+
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
5040
|
+
return json;
|
|
5041
|
+
}
|
|
5042
|
+
|
|
5043
|
+
// src/api/checkoutexternal/models/CatalogUsageViolationResponseData.ts
|
|
5044
|
+
function CatalogUsageViolationResponseDataFromJSON(json) {
|
|
5045
|
+
return CatalogUsageViolationResponseDataFromJSONTyped(json, false);
|
|
5046
|
+
}
|
|
5047
|
+
function CatalogUsageViolationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5048
|
+
if (json == null) {
|
|
5049
|
+
return json;
|
|
5050
|
+
}
|
|
5051
|
+
return {
|
|
5052
|
+
featureId: json["feature_id"],
|
|
5053
|
+
featureName: json["feature_name"],
|
|
5054
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
5055
|
+
usage: json["usage"]
|
|
5056
|
+
};
|
|
5057
|
+
}
|
|
5058
|
+
|
|
5059
|
+
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
5060
|
+
var EntitlementValueType = {
|
|
5061
|
+
Boolean: "boolean",
|
|
5062
|
+
Credit: "credit",
|
|
5063
|
+
Numeric: "numeric",
|
|
5064
|
+
Trait: "trait",
|
|
5065
|
+
Unknown: "unknown",
|
|
5066
|
+
Unlimited: "unlimited"
|
|
5067
|
+
};
|
|
5068
|
+
function EntitlementValueTypeFromJSON(json) {
|
|
5069
|
+
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
5070
|
+
}
|
|
5071
|
+
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5072
|
+
return json;
|
|
5073
|
+
}
|
|
5074
|
+
|
|
5075
|
+
// src/api/checkoutexternal/models/FeatureType.ts
|
|
5076
|
+
var FeatureType = {
|
|
5077
|
+
Boolean: "boolean",
|
|
5078
|
+
Event: "event",
|
|
5079
|
+
License: "license",
|
|
5080
|
+
Trait: "trait"
|
|
5081
|
+
};
|
|
5082
|
+
function FeatureTypeFromJSON(json) {
|
|
5083
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
5084
|
+
}
|
|
5085
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5086
|
+
return json;
|
|
5087
|
+
}
|
|
5088
|
+
|
|
5089
|
+
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5090
|
+
function MetricPeriodMonthResetFromJSON(json) {
|
|
5091
|
+
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5092
|
+
}
|
|
5093
|
+
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5094
|
+
return json;
|
|
5095
|
+
}
|
|
5096
|
+
|
|
5097
|
+
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5098
|
+
function MetricPeriodFromJSON(json) {
|
|
5099
|
+
return MetricPeriodFromJSONTyped(json, false);
|
|
5100
|
+
}
|
|
5101
|
+
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5102
|
+
return json;
|
|
5103
|
+
}
|
|
5104
|
+
|
|
5105
|
+
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
5106
|
+
var EntitlementPriceBehavior = {
|
|
5107
|
+
CreditBurndown: "credit_burndown",
|
|
5108
|
+
Overage: "overage",
|
|
5109
|
+
PayAsYouGo: "pay_as_you_go",
|
|
5110
|
+
PayInAdvance: "pay_in_advance",
|
|
5111
|
+
Tier: "tier"
|
|
5112
|
+
};
|
|
5113
|
+
function EntitlementPriceBehaviorFromJSON(json) {
|
|
5114
|
+
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
5115
|
+
}
|
|
5116
|
+
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5117
|
+
return json;
|
|
5118
|
+
}
|
|
5119
|
+
|
|
5120
|
+
// src/api/checkoutexternal/models/CatalogCurrencyPricesResponseData.ts
|
|
5121
|
+
function CatalogCurrencyPricesResponseDataFromJSON(json) {
|
|
5122
|
+
return CatalogCurrencyPricesResponseDataFromJSONTyped(json, false);
|
|
5123
|
+
}
|
|
5124
|
+
function CatalogCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5125
|
+
if (json == null) {
|
|
5126
|
+
return json;
|
|
5127
|
+
}
|
|
5128
|
+
return {
|
|
5129
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5130
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5131
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5132
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5133
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5134
|
+
};
|
|
5135
|
+
}
|
|
5136
|
+
|
|
5137
|
+
// src/api/checkoutexternal/models/CatalogPlanEntitlementResponseData.ts
|
|
5138
|
+
function CatalogPlanEntitlementResponseDataFromJSON(json) {
|
|
5139
|
+
return CatalogPlanEntitlementResponseDataFromJSONTyped(json, false);
|
|
5140
|
+
}
|
|
5141
|
+
function CatalogPlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5142
|
+
if (json == null) {
|
|
5143
|
+
return json;
|
|
5144
|
+
}
|
|
5145
|
+
return {
|
|
5146
|
+
consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
|
|
5147
|
+
creditEquivalentLimit: json["credit_equivalent_limit"] == null ? void 0 : json["credit_equivalent_limit"],
|
|
5148
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5149
|
+
creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
|
|
5150
|
+
creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
|
|
5151
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5152
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5153
|
+
currencyPrices: json["currency_prices"].map(
|
|
5154
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5155
|
+
),
|
|
5156
|
+
featureDescription: json["feature_description"],
|
|
5157
|
+
featureIcon: json["feature_icon"],
|
|
5158
|
+
featureId: json["feature_id"],
|
|
5159
|
+
featureName: json["feature_name"],
|
|
5160
|
+
featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
|
|
5161
|
+
featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
|
|
5162
|
+
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
5163
|
+
id: json["id"],
|
|
5164
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5165
|
+
meteredMonthlyPrice: json["metered_monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_monthly_price"]),
|
|
5166
|
+
meteredQuarterlyPrice: json["metered_quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_quarterly_price"]),
|
|
5167
|
+
meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_yearly_price"]),
|
|
5168
|
+
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
5169
|
+
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
5170
|
+
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
5171
|
+
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
5172
|
+
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
5173
|
+
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
5174
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
5175
|
+
warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
|
|
5176
|
+
};
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5179
|
+
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5180
|
+
function ChargeTypeFromJSON(json) {
|
|
5181
|
+
return ChargeTypeFromJSONTyped(json, false);
|
|
5182
|
+
}
|
|
5183
|
+
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5184
|
+
return json;
|
|
5185
|
+
}
|
|
5186
|
+
|
|
4854
5187
|
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
4855
5188
|
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
4856
5189
|
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
@@ -4874,45 +5207,103 @@ function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
4874
5207
|
};
|
|
4875
5208
|
}
|
|
4876
5209
|
|
|
4877
|
-
// src/api/checkoutexternal/models/
|
|
4878
|
-
function
|
|
4879
|
-
return
|
|
5210
|
+
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
5211
|
+
function PlanPriceCadenceFromJSON(json) {
|
|
5212
|
+
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
4880
5213
|
}
|
|
4881
|
-
function
|
|
5214
|
+
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
5215
|
+
return json;
|
|
5216
|
+
}
|
|
5217
|
+
|
|
5218
|
+
// src/api/checkoutexternal/models/CatalogCompanyPlanResponseData.ts
|
|
5219
|
+
function CatalogCompanyPlanResponseDataFromJSON(json) {
|
|
5220
|
+
return CatalogCompanyPlanResponseDataFromJSONTyped(json, false);
|
|
5221
|
+
}
|
|
5222
|
+
function CatalogCompanyPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4882
5223
|
if (json == null) {
|
|
4883
5224
|
return json;
|
|
4884
5225
|
}
|
|
4885
5226
|
return {
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
5227
|
+
autoTopups: json["auto_topups"].map(
|
|
5228
|
+
CatalogAutoTopupResponseDataFromJSON
|
|
5229
|
+
),
|
|
5230
|
+
availablePeriods: json["available_periods"].map(
|
|
5231
|
+
PlanPriceCadenceFromJSON
|
|
5232
|
+
),
|
|
5233
|
+
billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
|
|
5234
|
+
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
5235
|
+
companyCanTrial: json["company_can_trial"],
|
|
5236
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5237
|
+
currencyPrices: json["currency_prices"].map(
|
|
5238
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5239
|
+
),
|
|
5240
|
+
current: json["current"],
|
|
5241
|
+
description: json["description"],
|
|
5242
|
+
entitlements: json["entitlements"].map(
|
|
5243
|
+
CatalogPlanEntitlementResponseDataFromJSON
|
|
5244
|
+
),
|
|
5245
|
+
icon: json["icon"],
|
|
5246
|
+
id: json["id"],
|
|
5247
|
+
includedCreditGrants: json["included_credit_grants"].map(
|
|
5248
|
+
CatalogCreditGrantResponseDataFromJSON
|
|
5249
|
+
),
|
|
5250
|
+
invalidReason: json["invalid_reason"] == null ? void 0 : CompanyPlanInvalidReasonFromJSON(json["invalid_reason"]),
|
|
5251
|
+
isTrialable: json["is_trialable"],
|
|
5252
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5253
|
+
name: json["name"],
|
|
5254
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5255
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5256
|
+
trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
|
|
5257
|
+
usageViolations: json["usage_violations"].map(
|
|
5258
|
+
CatalogUsageViolationResponseDataFromJSON
|
|
5259
|
+
),
|
|
5260
|
+
valid: json["valid"],
|
|
5261
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5262
|
+
};
|
|
5263
|
+
}
|
|
5264
|
+
|
|
5265
|
+
// src/api/checkoutexternal/models/CatalogCreditBundleResponseData.ts
|
|
5266
|
+
function CatalogCreditBundleResponseDataFromJSON(json) {
|
|
5267
|
+
return CatalogCreditBundleResponseDataFromJSONTyped(json, false);
|
|
5268
|
+
}
|
|
5269
|
+
function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5270
|
+
if (json == null) {
|
|
5271
|
+
return json;
|
|
5272
|
+
}
|
|
5273
|
+
return {
|
|
5274
|
+
bundleType: BillingCreditBundleTypeFromJSON(json["bundle_type"]),
|
|
5275
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5276
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5277
|
+
creditId: json["credit_id"],
|
|
5278
|
+
creditName: json["credit_name"],
|
|
5279
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5280
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5281
|
+
currencyPrices: json["currency_prices"].map(
|
|
5282
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
5283
|
+
),
|
|
5284
|
+
expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
5285
|
+
expiryUnit: BillingCreditExpiryUnitFromJSON(json["expiry_unit"]),
|
|
5286
|
+
expiryUnitCount: json["expiry_unit_count"] == null ? void 0 : json["expiry_unit_count"],
|
|
5287
|
+
id: json["id"],
|
|
5288
|
+
name: json["name"],
|
|
5289
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
5290
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"],
|
|
5291
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4891
5292
|
};
|
|
4892
5293
|
}
|
|
4893
5294
|
|
|
4894
|
-
// src/api/checkoutexternal/models/
|
|
4895
|
-
function
|
|
4896
|
-
return
|
|
5295
|
+
// src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
|
|
5296
|
+
function CatalogCustomPlanCTAResponseDataFromJSON(json) {
|
|
5297
|
+
return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
|
|
4897
5298
|
}
|
|
4898
|
-
function
|
|
5299
|
+
function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4899
5300
|
if (json == null) {
|
|
4900
5301
|
return json;
|
|
4901
5302
|
}
|
|
4902
5303
|
return {
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
intervalCount: json["interval_count"],
|
|
4907
|
-
overageUnitPriceDecimal: json["overage_unit_price_decimal"] == null ? void 0 : json["overage_unit_price_decimal"],
|
|
4908
|
-
packageSize: json["package_size"],
|
|
4909
|
-
price: json["price"],
|
|
4910
|
-
priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
|
|
4911
|
-
priceTiers: json["price_tiers"].map(
|
|
4912
|
-
CatalogPriceTierResponseDataFromJSON
|
|
4913
|
-
),
|
|
4914
|
-
scheme: BillingPriceSchemeFromJSON(json["scheme"]),
|
|
4915
|
-
tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"])
|
|
5304
|
+
ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
|
|
5305
|
+
ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
|
|
5306
|
+
priceText: json["price_text"] == null ? void 0 : json["price_text"]
|
|
4916
5307
|
};
|
|
4917
5308
|
}
|
|
4918
5309
|
|
|
@@ -5086,26 +5477,6 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5086
5477
|
};
|
|
5087
5478
|
}
|
|
5088
5479
|
|
|
5089
|
-
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5090
|
-
function ChargeTypeFromJSON(json) {
|
|
5091
|
-
return ChargeTypeFromJSONTyped(json, false);
|
|
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);
|
|
5104
|
-
}
|
|
5105
|
-
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5106
|
-
return json;
|
|
5107
|
-
}
|
|
5108
|
-
|
|
5109
5480
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
5110
5481
|
function CheckoutPriceSnapshotFromJSON(json) {
|
|
5111
5482
|
return CheckoutPriceSnapshotFromJSONTyped(json, false);
|
|
@@ -5121,6 +5492,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5121
5492
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5122
5493
|
newCharges: json["new_charges"],
|
|
5123
5494
|
optInRequired: json["opt_in_required"],
|
|
5495
|
+
optInText: json["opt_in_text"] == null ? void 0 : json["opt_in_text"],
|
|
5496
|
+
optInTitle: json["opt_in_title"] == null ? void 0 : json["opt_in_title"],
|
|
5124
5497
|
paymentMethodRequired: json["payment_method_required"],
|
|
5125
5498
|
percentOff: json["percent_off"],
|
|
5126
5499
|
periodStart: new Date(json["period_start"]),
|
|
@@ -5142,6 +5515,17 @@ function CheckoutStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5142
5515
|
return json;
|
|
5143
5516
|
}
|
|
5144
5517
|
|
|
5518
|
+
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5519
|
+
function CheckoutIntentFromJSON(json) {
|
|
5520
|
+
return CheckoutIntentFromJSONTyped(json, false);
|
|
5521
|
+
}
|
|
5522
|
+
function CheckoutIntentFromJSONTyped(json, ignoreDiscriminator) {
|
|
5523
|
+
return json;
|
|
5524
|
+
}
|
|
5525
|
+
function CheckoutIntentToJSON(value) {
|
|
5526
|
+
return value;
|
|
5527
|
+
}
|
|
5528
|
+
|
|
5145
5529
|
// src/api/checkoutexternal/models/CheckoutSelectionsResponseData.ts
|
|
5146
5530
|
function CheckoutSelectionsResponseDataFromJSON(json) {
|
|
5147
5531
|
return CheckoutSelectionsResponseDataFromJSONTyped(json, false);
|
|
@@ -5162,9 +5546,11 @@ function CheckoutSelectionsResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5162
5546
|
creditBundles: json["credit_bundles"].map(
|
|
5163
5547
|
UpdateCreditBundleRequestBodyFromJSON
|
|
5164
5548
|
),
|
|
5549
|
+
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
5165
5550
|
customFieldValues: json["custom_field_values"].map(
|
|
5166
5551
|
CheckoutFieldValueFromJSON
|
|
5167
5552
|
),
|
|
5553
|
+
intent: CheckoutIntentFromJSON(json["intent"]),
|
|
5168
5554
|
newPlanId: json["new_plan_id"] == null ? void 0 : json["new_plan_id"],
|
|
5169
5555
|
newPriceId: json["new_price_id"] == null ? void 0 : json["new_price_id"],
|
|
5170
5556
|
optInAccepted: json["opt_in_accepted"] == null ? void 0 : json["opt_in_accepted"],
|
|
@@ -5264,11 +5650,6 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5264
5650
|
};
|
|
5265
5651
|
}
|
|
5266
5652
|
|
|
5267
|
-
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5268
|
-
function CheckoutIntentToJSON(value) {
|
|
5269
|
-
return value;
|
|
5270
|
-
}
|
|
5271
|
-
|
|
5272
5653
|
// src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
|
|
5273
5654
|
function ScheduledDowngradeConfigBehaviorFromJSON(json) {
|
|
5274
5655
|
return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
|
|
@@ -5373,18 +5754,6 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5373
5754
|
};
|
|
5374
5755
|
}
|
|
5375
5756
|
|
|
5376
|
-
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
5377
|
-
var ProrationBehavior = {
|
|
5378
|
-
CreateProrations: "create_prorations",
|
|
5379
|
-
InvoiceImmediately: "invoice_immediately"
|
|
5380
|
-
};
|
|
5381
|
-
function ProrationBehaviorFromJSON(json) {
|
|
5382
|
-
return ProrationBehaviorFromJSONTyped(json, false);
|
|
5383
|
-
}
|
|
5384
|
-
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5385
|
-
return json;
|
|
5386
|
-
}
|
|
5387
|
-
|
|
5388
5757
|
// src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
|
|
5389
5758
|
function CompanyBillingProfileResponseDataFromJSON(json) {
|
|
5390
5759
|
return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
|
|
@@ -5413,6 +5782,43 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
5413
5782
|
};
|
|
5414
5783
|
}
|
|
5415
5784
|
|
|
5785
|
+
// src/api/checkoutexternal/models/CompanyCatalogResponseData.ts
|
|
5786
|
+
function CompanyCatalogResponseDataFromJSON(json) {
|
|
5787
|
+
return CompanyCatalogResponseDataFromJSONTyped(json, false);
|
|
5788
|
+
}
|
|
5789
|
+
function CompanyCatalogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5790
|
+
if (json == null) {
|
|
5791
|
+
return json;
|
|
5792
|
+
}
|
|
5793
|
+
return {
|
|
5794
|
+
addOns: json["add_ons"].map(
|
|
5795
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5796
|
+
),
|
|
5797
|
+
capabilities: CatalogCapabilitiesResponseDataFromJSON(json["capabilities"]),
|
|
5798
|
+
checkoutSettings: CatalogCheckoutSettingsResponseDataFromJSON(
|
|
5799
|
+
json["checkout_settings"]
|
|
5800
|
+
),
|
|
5801
|
+
creditBundles: json["credit_bundles"].map(
|
|
5802
|
+
CatalogCreditBundleResponseDataFromJSON
|
|
5803
|
+
),
|
|
5804
|
+
customPlanCta: json["custom_plan_cta"] == null ? void 0 : CatalogCustomPlanCTAResponseDataFromJSON(json["custom_plan_cta"]),
|
|
5805
|
+
defaultCurrency: CurrencyFromJSON(json["default_currency"]),
|
|
5806
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
5807
|
+
id: json["id"],
|
|
5808
|
+
name: json["name"],
|
|
5809
|
+
plans: json["plans"].map(
|
|
5810
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5811
|
+
),
|
|
5812
|
+
preventSelfServiceDowngrade: json["prevent_self_service_downgrade"],
|
|
5813
|
+
preventSelfServiceDowngradeButtonText: json["prevent_self_service_downgrade_button_text"] == null ? void 0 : json["prevent_self_service_downgrade_button_text"],
|
|
5814
|
+
preventSelfServiceDowngradeUrl: json["prevent_self_service_downgrade_url"] == null ? void 0 : json["prevent_self_service_downgrade_url"],
|
|
5815
|
+
pricingModel: json["pricing_model"] == null ? void 0 : json["pricing_model"],
|
|
5816
|
+
pricingUrl: json["pricing_url"] == null ? void 0 : json["pricing_url"],
|
|
5817
|
+
trialExpiryPlan: json["trial_expiry_plan"] == null ? void 0 : CatalogPlanRefResponseDataFromJSON(json["trial_expiry_plan"]),
|
|
5818
|
+
trialPaymentMethodRequired: json["trial_payment_method_required"] == null ? void 0 : json["trial_payment_method_required"]
|
|
5819
|
+
};
|
|
5820
|
+
}
|
|
5821
|
+
|
|
5416
5822
|
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
5417
5823
|
var CustomPlanActivationStrategy = {
|
|
5418
5824
|
Payment: "on_payment",
|
|
@@ -5803,30 +6209,6 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5803
6209
|
};
|
|
5804
6210
|
}
|
|
5805
6211
|
|
|
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
6212
|
// src/api/checkoutexternal/models/WarningTier.ts
|
|
5831
6213
|
function WarningTierFromJSON(json) {
|
|
5832
6214
|
return WarningTierFromJSONTyped(json, false);
|
|
@@ -5841,14 +6223,6 @@ function WarningTierFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5841
6223
|
};
|
|
5842
6224
|
}
|
|
5843
6225
|
|
|
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
6226
|
// src/api/checkoutexternal/models/FeatureEntitlement.ts
|
|
5853
6227
|
function FeatureEntitlementFromJSON(json) {
|
|
5854
6228
|
return FeatureEntitlementFromJSONTyped(json, false);
|
|
@@ -6294,35 +6668,6 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6294
6668
|
};
|
|
6295
6669
|
}
|
|
6296
6670
|
|
|
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
6671
|
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6327
6672
|
function EntitlementTypeFromJSON(json) {
|
|
6328
6673
|
return EntitlementTypeFromJSONTyped(json, false);
|
|
@@ -6605,26 +6950,6 @@ function CompanyPaymentMethodsResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
6605
6950
|
};
|
|
6606
6951
|
}
|
|
6607
6952
|
|
|
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
6953
|
// src/api/checkoutexternal/models/EstimatedPlanTotal.ts
|
|
6629
6954
|
function EstimatedPlanTotalFromJSON(json) {
|
|
6630
6955
|
return EstimatedPlanTotalFromJSONTyped(json, false);
|
|
@@ -7954,6 +8279,34 @@ function FinalizeCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7954
8279
|
};
|
|
7955
8280
|
}
|
|
7956
8281
|
|
|
8282
|
+
// src/api/checkoutexternal/models/GetCatalogViewByIDResponse.ts
|
|
8283
|
+
function GetCatalogViewByIDResponseFromJSON(json) {
|
|
8284
|
+
return GetCatalogViewByIDResponseFromJSONTyped(json, false);
|
|
8285
|
+
}
|
|
8286
|
+
function GetCatalogViewByIDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8287
|
+
if (json == null) {
|
|
8288
|
+
return json;
|
|
8289
|
+
}
|
|
8290
|
+
return {
|
|
8291
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8292
|
+
params: json["params"]
|
|
8293
|
+
};
|
|
8294
|
+
}
|
|
8295
|
+
|
|
8296
|
+
// src/api/checkoutexternal/models/GetCatalogViewResponse.ts
|
|
8297
|
+
function GetCatalogViewResponseFromJSON(json) {
|
|
8298
|
+
return GetCatalogViewResponseFromJSONTyped(json, false);
|
|
8299
|
+
}
|
|
8300
|
+
function GetCatalogViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8301
|
+
if (json == null) {
|
|
8302
|
+
return json;
|
|
8303
|
+
}
|
|
8304
|
+
return {
|
|
8305
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8306
|
+
params: json["params"]
|
|
8307
|
+
};
|
|
8308
|
+
}
|
|
8309
|
+
|
|
7957
8310
|
// src/api/checkoutexternal/models/GetCheckoutResponse.ts
|
|
7958
8311
|
function GetCheckoutResponseFromJSON(json) {
|
|
7959
8312
|
return GetCheckoutResponseFromJSONTyped(json, false);
|
|
@@ -8914,6 +9267,82 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8914
9267
|
);
|
|
8915
9268
|
return await response.value();
|
|
8916
9269
|
}
|
|
9270
|
+
/**
|
|
9271
|
+
* Get catalog view
|
|
9272
|
+
*/
|
|
9273
|
+
async getCatalogViewRaw(initOverrides) {
|
|
9274
|
+
const queryParameters = {};
|
|
9275
|
+
const headerParameters = {};
|
|
9276
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9277
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9278
|
+
"X-Schematic-Api-Key"
|
|
9279
|
+
);
|
|
9280
|
+
}
|
|
9281
|
+
const response = await this.request(
|
|
9282
|
+
{
|
|
9283
|
+
path: `/catalog/view`,
|
|
9284
|
+
method: "GET",
|
|
9285
|
+
headers: headerParameters,
|
|
9286
|
+
query: queryParameters
|
|
9287
|
+
},
|
|
9288
|
+
initOverrides
|
|
9289
|
+
);
|
|
9290
|
+
return new JSONApiResponse(
|
|
9291
|
+
response,
|
|
9292
|
+
(jsonValue) => GetCatalogViewResponseFromJSON(jsonValue)
|
|
9293
|
+
);
|
|
9294
|
+
}
|
|
9295
|
+
/**
|
|
9296
|
+
* Get catalog view
|
|
9297
|
+
*/
|
|
9298
|
+
async getCatalogView(initOverrides) {
|
|
9299
|
+
const response = await this.getCatalogViewRaw(initOverrides);
|
|
9300
|
+
return await response.value();
|
|
9301
|
+
}
|
|
9302
|
+
/**
|
|
9303
|
+
* Get catalog view by ID
|
|
9304
|
+
*/
|
|
9305
|
+
async getCatalogViewByIDRaw(requestParameters, initOverrides) {
|
|
9306
|
+
if (requestParameters["catalogId"] == null) {
|
|
9307
|
+
throw new RequiredError(
|
|
9308
|
+
"catalogId",
|
|
9309
|
+
'Required parameter "catalogId" was null or undefined when calling getCatalogViewByID().'
|
|
9310
|
+
);
|
|
9311
|
+
}
|
|
9312
|
+
const queryParameters = {};
|
|
9313
|
+
const headerParameters = {};
|
|
9314
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9315
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9316
|
+
"X-Schematic-Api-Key"
|
|
9317
|
+
);
|
|
9318
|
+
}
|
|
9319
|
+
const response = await this.request(
|
|
9320
|
+
{
|
|
9321
|
+
path: `/catalogs/{catalog_id}/view`.replace(
|
|
9322
|
+
`{${"catalog_id"}}`,
|
|
9323
|
+
encodeURIComponent(String(requestParameters["catalogId"]))
|
|
9324
|
+
),
|
|
9325
|
+
method: "GET",
|
|
9326
|
+
headers: headerParameters,
|
|
9327
|
+
query: queryParameters
|
|
9328
|
+
},
|
|
9329
|
+
initOverrides
|
|
9330
|
+
);
|
|
9331
|
+
return new JSONApiResponse(
|
|
9332
|
+
response,
|
|
9333
|
+
(jsonValue) => GetCatalogViewByIDResponseFromJSON(jsonValue)
|
|
9334
|
+
);
|
|
9335
|
+
}
|
|
9336
|
+
/**
|
|
9337
|
+
* Get catalog view by ID
|
|
9338
|
+
*/
|
|
9339
|
+
async getCatalogViewByID(requestParameters, initOverrides) {
|
|
9340
|
+
const response = await this.getCatalogViewByIDRaw(
|
|
9341
|
+
requestParameters,
|
|
9342
|
+
initOverrides
|
|
9343
|
+
);
|
|
9344
|
+
return await response.value();
|
|
9345
|
+
}
|
|
8917
9346
|
/**
|
|
8918
9347
|
* Get checkout
|
|
8919
9348
|
*/
|
|
@@ -10172,9 +10601,9 @@ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
10172
10601
|
|
|
10173
10602
|
// src/api/componentspublic/models/BillingCreditAutoTopupAvailability.ts
|
|
10174
10603
|
function BillingCreditAutoTopupAvailabilityFromJSON2(json) {
|
|
10175
|
-
return
|
|
10604
|
+
return BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, false);
|
|
10176
10605
|
}
|
|
10177
|
-
function
|
|
10606
|
+
function BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10178
10607
|
return json;
|
|
10179
10608
|
}
|
|
10180
10609
|
|
|
@@ -10188,17 +10617,17 @@ function BillingCreditBurnStrategyFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10188
10617
|
|
|
10189
10618
|
// src/api/componentspublic/models/BillingCreditExpiryType.ts
|
|
10190
10619
|
function BillingCreditExpiryTypeFromJSON2(json) {
|
|
10191
|
-
return
|
|
10620
|
+
return BillingCreditExpiryTypeFromJSONTyped8(json, false);
|
|
10192
10621
|
}
|
|
10193
|
-
function
|
|
10622
|
+
function BillingCreditExpiryTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10194
10623
|
return json;
|
|
10195
10624
|
}
|
|
10196
10625
|
|
|
10197
10626
|
// src/api/componentspublic/models/BillingCreditExpiryUnit.ts
|
|
10198
10627
|
function BillingCreditExpiryUnitFromJSON2(json) {
|
|
10199
|
-
return
|
|
10628
|
+
return BillingCreditExpiryUnitFromJSONTyped10(json, false);
|
|
10200
10629
|
}
|
|
10201
|
-
function
|
|
10630
|
+
function BillingCreditExpiryUnitFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10202
10631
|
return json;
|
|
10203
10632
|
}
|
|
10204
10633
|
|
|
@@ -10212,9 +10641,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10212
10641
|
|
|
10213
10642
|
// src/api/componentspublic/models/Currency.ts
|
|
10214
10643
|
function CurrencyFromJSON2(json) {
|
|
10215
|
-
return
|
|
10644
|
+
return CurrencyFromJSONTyped38(json, false);
|
|
10216
10645
|
}
|
|
10217
|
-
function
|
|
10646
|
+
function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
|
|
10218
10647
|
return json;
|
|
10219
10648
|
}
|
|
10220
10649
|
|
|
@@ -10596,41 +11025,41 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
|
|
|
10596
11025
|
|
|
10597
11026
|
// src/api/componentspublic/models/BillingStrategy.ts
|
|
10598
11027
|
function BillingStrategyFromJSON2(json) {
|
|
10599
|
-
return
|
|
11028
|
+
return BillingStrategyFromJSONTyped7(json, false);
|
|
10600
11029
|
}
|
|
10601
|
-
function
|
|
11030
|
+
function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10602
11031
|
return json;
|
|
10603
11032
|
}
|
|
10604
11033
|
|
|
10605
11034
|
// src/api/componentspublic/models/ChargeType.ts
|
|
10606
11035
|
function ChargeTypeFromJSON2(json) {
|
|
10607
|
-
return
|
|
11036
|
+
return ChargeTypeFromJSONTyped7(json, false);
|
|
10608
11037
|
}
|
|
10609
|
-
function
|
|
11038
|
+
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10610
11039
|
return json;
|
|
10611
11040
|
}
|
|
10612
11041
|
|
|
10613
11042
|
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
10614
11043
|
function EntitlementValueTypeFromJSON2(json) {
|
|
10615
|
-
return
|
|
11044
|
+
return EntitlementValueTypeFromJSONTyped10(json, false);
|
|
10616
11045
|
}
|
|
10617
|
-
function
|
|
11046
|
+
function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10618
11047
|
return json;
|
|
10619
11048
|
}
|
|
10620
11049
|
|
|
10621
11050
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
10622
11051
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
10623
|
-
return
|
|
11052
|
+
return MetricPeriodMonthResetFromJSONTyped14(json, false);
|
|
10624
11053
|
}
|
|
10625
|
-
function
|
|
11054
|
+
function MetricPeriodMonthResetFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10626
11055
|
return json;
|
|
10627
11056
|
}
|
|
10628
11057
|
|
|
10629
11058
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
10630
11059
|
function MetricPeriodFromJSON2(json) {
|
|
10631
|
-
return
|
|
11060
|
+
return MetricPeriodFromJSONTyped14(json, false);
|
|
10632
11061
|
}
|
|
10633
|
-
function
|
|
11062
|
+
function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10634
11063
|
return json;
|
|
10635
11064
|
}
|
|
10636
11065
|
|
|
@@ -10738,9 +11167,9 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
10738
11167
|
|
|
10739
11168
|
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
10740
11169
|
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
10741
|
-
return
|
|
11170
|
+
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
10742
11171
|
}
|
|
10743
|
-
function
|
|
11172
|
+
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10744
11173
|
return json;
|
|
10745
11174
|
}
|
|
10746
11175
|
|
|
@@ -10807,9 +11236,9 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10807
11236
|
|
|
10808
11237
|
// src/api/componentspublic/models/FeatureType.ts
|
|
10809
11238
|
function FeatureTypeFromJSON2(json) {
|
|
10810
|
-
return
|
|
11239
|
+
return FeatureTypeFromJSONTyped7(json, false);
|
|
10811
11240
|
}
|
|
10812
|
-
function
|
|
11241
|
+
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10813
11242
|
return json;
|
|
10814
11243
|
}
|
|
10815
11244
|
|
|
@@ -11165,9 +11594,9 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
11165
11594
|
|
|
11166
11595
|
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11167
11596
|
function PlanPriceCadenceFromJSON2(json) {
|
|
11168
|
-
return
|
|
11597
|
+
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
11169
11598
|
}
|
|
11170
|
-
function
|
|
11599
|
+
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11171
11600
|
return json;
|
|
11172
11601
|
}
|
|
11173
11602
|
|
|
@@ -16870,7 +17299,7 @@ var reducer = (state, action) => {
|
|
|
16870
17299
|
// src/context/EmbedProvider.tsx
|
|
16871
17300
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
16872
17301
|
var getCustomHeaders = (sessionId) => ({
|
|
16873
|
-
"X-Schematic-Components-Version": "2.
|
|
17302
|
+
"X-Schematic-Components-Version": "2.34.0",
|
|
16874
17303
|
"X-Schematic-Session-ID": sessionId
|
|
16875
17304
|
});
|
|
16876
17305
|
var normalizeCurrencyFilter = (filter2) => {
|