@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
|
@@ -3677,7 +3677,7 @@ var import_debounce2 = __toESM(require_debounce());
|
|
|
3677
3677
|
var import_merge3 = __toESM(require_merge());
|
|
3678
3678
|
import { useCallback as useCallback2, useEffect, useMemo as useMemo2, useReducer, useRef as useRef2 } from "react";
|
|
3679
3679
|
|
|
3680
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
3680
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/stringify.js
|
|
3681
3681
|
var byteToHex = [];
|
|
3682
3682
|
for (let i2 = 0; i2 < 256; ++i2) {
|
|
3683
3683
|
byteToHex.push((i2 + 256).toString(16).slice(1));
|
|
@@ -3686,13 +3686,13 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
3686
3686
|
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
3687
3687
|
}
|
|
3688
3688
|
|
|
3689
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
3689
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/rng.js
|
|
3690
3690
|
var rnds8 = new Uint8Array(16);
|
|
3691
3691
|
function rng() {
|
|
3692
3692
|
return crypto.getRandomValues(rnds8);
|
|
3693
3693
|
}
|
|
3694
3694
|
|
|
3695
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
3695
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/v4.js
|
|
3696
3696
|
function v4(options, buf, offset) {
|
|
3697
3697
|
if (!buf && !options && crypto.randomUUID) {
|
|
3698
3698
|
return crypto.randomUUID();
|
|
@@ -4878,6 +4878,339 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4878
4878
|
};
|
|
4879
4879
|
}
|
|
4880
4880
|
|
|
4881
|
+
// src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
|
|
4882
|
+
function CatalogPriceTierResponseDataFromJSON(json) {
|
|
4883
|
+
return CatalogPriceTierResponseDataFromJSONTyped(json, false);
|
|
4884
|
+
}
|
|
4885
|
+
function CatalogPriceTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4886
|
+
if (json == null) {
|
|
4887
|
+
return json;
|
|
4888
|
+
}
|
|
4889
|
+
return {
|
|
4890
|
+
flatPrice: json["flat_price"] == null ? void 0 : json["flat_price"],
|
|
4891
|
+
from: json["from"],
|
|
4892
|
+
perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
|
|
4893
|
+
perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
|
|
4894
|
+
to: json["to"] == null ? void 0 : json["to"]
|
|
4895
|
+
};
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4898
|
+
// src/api/checkoutexternal/models/CatalogPriceResponseData.ts
|
|
4899
|
+
function CatalogPriceResponseDataFromJSON(json) {
|
|
4900
|
+
return CatalogPriceResponseDataFromJSONTyped(json, false);
|
|
4901
|
+
}
|
|
4902
|
+
function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4903
|
+
if (json == null) {
|
|
4904
|
+
return json;
|
|
4905
|
+
}
|
|
4906
|
+
return {
|
|
4907
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4908
|
+
id: json["id"],
|
|
4909
|
+
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
4910
|
+
intervalCount: json["interval_count"],
|
|
4911
|
+
overageUnitPriceDecimal: json["overage_unit_price_decimal"] == null ? void 0 : json["overage_unit_price_decimal"],
|
|
4912
|
+
packageSize: json["package_size"],
|
|
4913
|
+
price: json["price"],
|
|
4914
|
+
priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
|
|
4915
|
+
priceTiers: json["price_tiers"].map(
|
|
4916
|
+
CatalogPriceTierResponseDataFromJSON
|
|
4917
|
+
),
|
|
4918
|
+
scheme: BillingPriceSchemeFromJSON(json["scheme"]),
|
|
4919
|
+
tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"])
|
|
4920
|
+
};
|
|
4921
|
+
}
|
|
4922
|
+
|
|
4923
|
+
// src/api/checkoutexternal/models/CatalogBundleCurrencyPriceResponseData.ts
|
|
4924
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSON(json) {
|
|
4925
|
+
return CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, false);
|
|
4926
|
+
}
|
|
4927
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4928
|
+
if (json == null) {
|
|
4929
|
+
return json;
|
|
4930
|
+
}
|
|
4931
|
+
return {
|
|
4932
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4933
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
4934
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4935
|
+
};
|
|
4936
|
+
}
|
|
4937
|
+
|
|
4938
|
+
// src/api/checkoutexternal/models/CatalogAutoTopupResponseData.ts
|
|
4939
|
+
function CatalogAutoTopupResponseDataFromJSON(json) {
|
|
4940
|
+
return CatalogAutoTopupResponseDataFromJSONTyped(json, false);
|
|
4941
|
+
}
|
|
4942
|
+
function CatalogAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4943
|
+
if (json == null) {
|
|
4944
|
+
return json;
|
|
4945
|
+
}
|
|
4946
|
+
return {
|
|
4947
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
4948
|
+
availability: BillingCreditAutoTopupAvailabilityFromJSON(
|
|
4949
|
+
json["availability"]
|
|
4950
|
+
),
|
|
4951
|
+
companyAmount: json["company_amount"] == null ? void 0 : json["company_amount"],
|
|
4952
|
+
companyEnabled: json["company_enabled"] == null ? void 0 : json["company_enabled"],
|
|
4953
|
+
companyThresholdCredits: json["company_threshold_credits"] == null ? void 0 : json["company_threshold_credits"],
|
|
4954
|
+
creditId: json["credit_id"],
|
|
4955
|
+
currencyPrices: json["currency_prices"].map(
|
|
4956
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
4957
|
+
),
|
|
4958
|
+
enabled: json["enabled"],
|
|
4959
|
+
planCreditGrantId: json["plan_credit_grant_id"],
|
|
4960
|
+
thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"],
|
|
4961
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4962
|
+
};
|
|
4963
|
+
}
|
|
4964
|
+
|
|
4965
|
+
// src/api/checkoutexternal/models/CatalogCapabilitiesResponseData.ts
|
|
4966
|
+
function CatalogCapabilitiesResponseDataFromJSON(json) {
|
|
4967
|
+
return CatalogCapabilitiesResponseDataFromJSONTyped(json, false);
|
|
4968
|
+
}
|
|
4969
|
+
function CatalogCapabilitiesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4970
|
+
if (json == null) {
|
|
4971
|
+
return json;
|
|
4972
|
+
}
|
|
4973
|
+
return {
|
|
4974
|
+
badgeVisibility: json["badge_visibility"],
|
|
4975
|
+
checkout: json["checkout"]
|
|
4976
|
+
};
|
|
4977
|
+
}
|
|
4978
|
+
|
|
4979
|
+
// src/api/checkoutexternal/models/CatalogCheckoutFieldResponseData.ts
|
|
4980
|
+
function CatalogCheckoutFieldResponseDataFromJSON(json) {
|
|
4981
|
+
return CatalogCheckoutFieldResponseDataFromJSONTyped(json, false);
|
|
4982
|
+
}
|
|
4983
|
+
function CatalogCheckoutFieldResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4984
|
+
if (json == null) {
|
|
4985
|
+
return json;
|
|
4986
|
+
}
|
|
4987
|
+
return {
|
|
4988
|
+
helperText: json["helper_text"] == null ? void 0 : json["helper_text"],
|
|
4989
|
+
id: json["id"],
|
|
4990
|
+
name: json["name"],
|
|
4991
|
+
required: json["required"],
|
|
4992
|
+
value: json["value"] == null ? void 0 : json["value"]
|
|
4993
|
+
};
|
|
4994
|
+
}
|
|
4995
|
+
|
|
4996
|
+
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
4997
|
+
var CheckoutBundlePurchaseBehavior = {
|
|
4998
|
+
Individual: "individual",
|
|
4999
|
+
Quantity: "quantity"
|
|
5000
|
+
};
|
|
5001
|
+
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
5002
|
+
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
5003
|
+
}
|
|
5004
|
+
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5005
|
+
return json;
|
|
5006
|
+
}
|
|
5007
|
+
|
|
5008
|
+
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
5009
|
+
var ProrationBehavior = {
|
|
5010
|
+
CreateProrations: "create_prorations",
|
|
5011
|
+
InvoiceImmediately: "invoice_immediately"
|
|
5012
|
+
};
|
|
5013
|
+
function ProrationBehaviorFromJSON(json) {
|
|
5014
|
+
return ProrationBehaviorFromJSONTyped(json, false);
|
|
5015
|
+
}
|
|
5016
|
+
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5017
|
+
return json;
|
|
5018
|
+
}
|
|
5019
|
+
|
|
5020
|
+
// src/api/checkoutexternal/models/CatalogCheckoutSettingsResponseData.ts
|
|
5021
|
+
function CatalogCheckoutSettingsResponseDataFromJSON(json) {
|
|
5022
|
+
return CatalogCheckoutSettingsResponseDataFromJSONTyped(json, false);
|
|
5023
|
+
}
|
|
5024
|
+
function CatalogCheckoutSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5025
|
+
if (json == null) {
|
|
5026
|
+
return json;
|
|
5027
|
+
}
|
|
5028
|
+
return {
|
|
5029
|
+
bundlePurchaseBehavior: CheckoutBundlePurchaseBehaviorFromJSON(
|
|
5030
|
+
json["bundle_purchase_behavior"]
|
|
5031
|
+
),
|
|
5032
|
+
collectAddress: json["collect_address"],
|
|
5033
|
+
collectEmail: json["collect_email"],
|
|
5034
|
+
collectPhone: json["collect_phone"],
|
|
5035
|
+
collectTaxId: json["collect_tax_id"],
|
|
5036
|
+
customFields: json["custom_fields"].map(
|
|
5037
|
+
CatalogCheckoutFieldResponseDataFromJSON
|
|
5038
|
+
),
|
|
5039
|
+
prorationBehavior: ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5040
|
+
taxCollectionEnabled: json["tax_collection_enabled"]
|
|
5041
|
+
};
|
|
5042
|
+
}
|
|
5043
|
+
|
|
5044
|
+
// src/api/checkoutexternal/models/CatalogPlanRefResponseData.ts
|
|
5045
|
+
function CatalogPlanRefResponseDataFromJSON(json) {
|
|
5046
|
+
return CatalogPlanRefResponseDataFromJSONTyped(json, false);
|
|
5047
|
+
}
|
|
5048
|
+
function CatalogPlanRefResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5049
|
+
if (json == null) {
|
|
5050
|
+
return json;
|
|
5051
|
+
}
|
|
5052
|
+
return {
|
|
5053
|
+
id: json["id"],
|
|
5054
|
+
name: json["name"]
|
|
5055
|
+
};
|
|
5056
|
+
}
|
|
5057
|
+
|
|
5058
|
+
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
5059
|
+
var CompanyPlanInvalidReason = {
|
|
5060
|
+
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
5061
|
+
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
5062
|
+
};
|
|
5063
|
+
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
5064
|
+
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
5065
|
+
}
|
|
5066
|
+
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
5067
|
+
return json;
|
|
5068
|
+
}
|
|
5069
|
+
|
|
5070
|
+
// src/api/checkoutexternal/models/CatalogUsageViolationResponseData.ts
|
|
5071
|
+
function CatalogUsageViolationResponseDataFromJSON(json) {
|
|
5072
|
+
return CatalogUsageViolationResponseDataFromJSONTyped(json, false);
|
|
5073
|
+
}
|
|
5074
|
+
function CatalogUsageViolationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5075
|
+
if (json == null) {
|
|
5076
|
+
return json;
|
|
5077
|
+
}
|
|
5078
|
+
return {
|
|
5079
|
+
featureId: json["feature_id"],
|
|
5080
|
+
featureName: json["feature_name"],
|
|
5081
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
5082
|
+
usage: json["usage"]
|
|
5083
|
+
};
|
|
5084
|
+
}
|
|
5085
|
+
|
|
5086
|
+
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
5087
|
+
var EntitlementValueType = {
|
|
5088
|
+
Boolean: "boolean",
|
|
5089
|
+
Credit: "credit",
|
|
5090
|
+
Numeric: "numeric",
|
|
5091
|
+
Trait: "trait",
|
|
5092
|
+
Unknown: "unknown",
|
|
5093
|
+
Unlimited: "unlimited"
|
|
5094
|
+
};
|
|
5095
|
+
function EntitlementValueTypeFromJSON(json) {
|
|
5096
|
+
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
5097
|
+
}
|
|
5098
|
+
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5099
|
+
return json;
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5102
|
+
// src/api/checkoutexternal/models/FeatureType.ts
|
|
5103
|
+
var FeatureType = {
|
|
5104
|
+
Boolean: "boolean",
|
|
5105
|
+
Event: "event",
|
|
5106
|
+
License: "license",
|
|
5107
|
+
Trait: "trait"
|
|
5108
|
+
};
|
|
5109
|
+
function FeatureTypeFromJSON(json) {
|
|
5110
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
5111
|
+
}
|
|
5112
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5113
|
+
return json;
|
|
5114
|
+
}
|
|
5115
|
+
|
|
5116
|
+
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5117
|
+
function MetricPeriodMonthResetFromJSON(json) {
|
|
5118
|
+
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5119
|
+
}
|
|
5120
|
+
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5121
|
+
return json;
|
|
5122
|
+
}
|
|
5123
|
+
|
|
5124
|
+
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5125
|
+
function MetricPeriodFromJSON(json) {
|
|
5126
|
+
return MetricPeriodFromJSONTyped(json, false);
|
|
5127
|
+
}
|
|
5128
|
+
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5129
|
+
return json;
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
5133
|
+
var EntitlementPriceBehavior = {
|
|
5134
|
+
CreditBurndown: "credit_burndown",
|
|
5135
|
+
Overage: "overage",
|
|
5136
|
+
PayAsYouGo: "pay_as_you_go",
|
|
5137
|
+
PayInAdvance: "pay_in_advance",
|
|
5138
|
+
Tier: "tier"
|
|
5139
|
+
};
|
|
5140
|
+
function EntitlementPriceBehaviorFromJSON(json) {
|
|
5141
|
+
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
5142
|
+
}
|
|
5143
|
+
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5144
|
+
return json;
|
|
5145
|
+
}
|
|
5146
|
+
|
|
5147
|
+
// src/api/checkoutexternal/models/CatalogCurrencyPricesResponseData.ts
|
|
5148
|
+
function CatalogCurrencyPricesResponseDataFromJSON(json) {
|
|
5149
|
+
return CatalogCurrencyPricesResponseDataFromJSONTyped(json, false);
|
|
5150
|
+
}
|
|
5151
|
+
function CatalogCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5152
|
+
if (json == null) {
|
|
5153
|
+
return json;
|
|
5154
|
+
}
|
|
5155
|
+
return {
|
|
5156
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5157
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5158
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5159
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5160
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5161
|
+
};
|
|
5162
|
+
}
|
|
5163
|
+
|
|
5164
|
+
// src/api/checkoutexternal/models/CatalogPlanEntitlementResponseData.ts
|
|
5165
|
+
function CatalogPlanEntitlementResponseDataFromJSON(json) {
|
|
5166
|
+
return CatalogPlanEntitlementResponseDataFromJSONTyped(json, false);
|
|
5167
|
+
}
|
|
5168
|
+
function CatalogPlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5169
|
+
if (json == null) {
|
|
5170
|
+
return json;
|
|
5171
|
+
}
|
|
5172
|
+
return {
|
|
5173
|
+
consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
|
|
5174
|
+
creditEquivalentLimit: json["credit_equivalent_limit"] == null ? void 0 : json["credit_equivalent_limit"],
|
|
5175
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5176
|
+
creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
|
|
5177
|
+
creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
|
|
5178
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5179
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5180
|
+
currencyPrices: json["currency_prices"].map(
|
|
5181
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5182
|
+
),
|
|
5183
|
+
featureDescription: json["feature_description"],
|
|
5184
|
+
featureIcon: json["feature_icon"],
|
|
5185
|
+
featureId: json["feature_id"],
|
|
5186
|
+
featureName: json["feature_name"],
|
|
5187
|
+
featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
|
|
5188
|
+
featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
|
|
5189
|
+
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
5190
|
+
id: json["id"],
|
|
5191
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5192
|
+
meteredMonthlyPrice: json["metered_monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_monthly_price"]),
|
|
5193
|
+
meteredQuarterlyPrice: json["metered_quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_quarterly_price"]),
|
|
5194
|
+
meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_yearly_price"]),
|
|
5195
|
+
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
5196
|
+
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
5197
|
+
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
5198
|
+
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
5199
|
+
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
5200
|
+
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
5201
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
5202
|
+
warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
|
|
5203
|
+
};
|
|
5204
|
+
}
|
|
5205
|
+
|
|
5206
|
+
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5207
|
+
function ChargeTypeFromJSON(json) {
|
|
5208
|
+
return ChargeTypeFromJSONTyped(json, false);
|
|
5209
|
+
}
|
|
5210
|
+
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5211
|
+
return json;
|
|
5212
|
+
}
|
|
5213
|
+
|
|
4881
5214
|
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
4882
5215
|
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
4883
5216
|
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
@@ -4901,45 +5234,103 @@ function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
4901
5234
|
};
|
|
4902
5235
|
}
|
|
4903
5236
|
|
|
4904
|
-
// src/api/checkoutexternal/models/
|
|
4905
|
-
function
|
|
4906
|
-
return
|
|
5237
|
+
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
5238
|
+
function PlanPriceCadenceFromJSON(json) {
|
|
5239
|
+
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
4907
5240
|
}
|
|
4908
|
-
function
|
|
5241
|
+
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
5242
|
+
return json;
|
|
5243
|
+
}
|
|
5244
|
+
|
|
5245
|
+
// src/api/checkoutexternal/models/CatalogCompanyPlanResponseData.ts
|
|
5246
|
+
function CatalogCompanyPlanResponseDataFromJSON(json) {
|
|
5247
|
+
return CatalogCompanyPlanResponseDataFromJSONTyped(json, false);
|
|
5248
|
+
}
|
|
5249
|
+
function CatalogCompanyPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4909
5250
|
if (json == null) {
|
|
4910
5251
|
return json;
|
|
4911
5252
|
}
|
|
4912
5253
|
return {
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
5254
|
+
autoTopups: json["auto_topups"].map(
|
|
5255
|
+
CatalogAutoTopupResponseDataFromJSON
|
|
5256
|
+
),
|
|
5257
|
+
availablePeriods: json["available_periods"].map(
|
|
5258
|
+
PlanPriceCadenceFromJSON
|
|
5259
|
+
),
|
|
5260
|
+
billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
|
|
5261
|
+
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
5262
|
+
companyCanTrial: json["company_can_trial"],
|
|
5263
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5264
|
+
currencyPrices: json["currency_prices"].map(
|
|
5265
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5266
|
+
),
|
|
5267
|
+
current: json["current"],
|
|
5268
|
+
description: json["description"],
|
|
5269
|
+
entitlements: json["entitlements"].map(
|
|
5270
|
+
CatalogPlanEntitlementResponseDataFromJSON
|
|
5271
|
+
),
|
|
5272
|
+
icon: json["icon"],
|
|
5273
|
+
id: json["id"],
|
|
5274
|
+
includedCreditGrants: json["included_credit_grants"].map(
|
|
5275
|
+
CatalogCreditGrantResponseDataFromJSON
|
|
5276
|
+
),
|
|
5277
|
+
invalidReason: json["invalid_reason"] == null ? void 0 : CompanyPlanInvalidReasonFromJSON(json["invalid_reason"]),
|
|
5278
|
+
isTrialable: json["is_trialable"],
|
|
5279
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5280
|
+
name: json["name"],
|
|
5281
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5282
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5283
|
+
trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
|
|
5284
|
+
usageViolations: json["usage_violations"].map(
|
|
5285
|
+
CatalogUsageViolationResponseDataFromJSON
|
|
5286
|
+
),
|
|
5287
|
+
valid: json["valid"],
|
|
5288
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5289
|
+
};
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5292
|
+
// src/api/checkoutexternal/models/CatalogCreditBundleResponseData.ts
|
|
5293
|
+
function CatalogCreditBundleResponseDataFromJSON(json) {
|
|
5294
|
+
return CatalogCreditBundleResponseDataFromJSONTyped(json, false);
|
|
5295
|
+
}
|
|
5296
|
+
function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5297
|
+
if (json == null) {
|
|
5298
|
+
return json;
|
|
5299
|
+
}
|
|
5300
|
+
return {
|
|
5301
|
+
bundleType: BillingCreditBundleTypeFromJSON(json["bundle_type"]),
|
|
5302
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5303
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5304
|
+
creditId: json["credit_id"],
|
|
5305
|
+
creditName: json["credit_name"],
|
|
5306
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5307
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5308
|
+
currencyPrices: json["currency_prices"].map(
|
|
5309
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
5310
|
+
),
|
|
5311
|
+
expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
5312
|
+
expiryUnit: BillingCreditExpiryUnitFromJSON(json["expiry_unit"]),
|
|
5313
|
+
expiryUnitCount: json["expiry_unit_count"] == null ? void 0 : json["expiry_unit_count"],
|
|
5314
|
+
id: json["id"],
|
|
5315
|
+
name: json["name"],
|
|
5316
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
5317
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"],
|
|
5318
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4918
5319
|
};
|
|
4919
5320
|
}
|
|
4920
5321
|
|
|
4921
|
-
// src/api/checkoutexternal/models/
|
|
4922
|
-
function
|
|
4923
|
-
return
|
|
5322
|
+
// src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
|
|
5323
|
+
function CatalogCustomPlanCTAResponseDataFromJSON(json) {
|
|
5324
|
+
return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
|
|
4924
5325
|
}
|
|
4925
|
-
function
|
|
5326
|
+
function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4926
5327
|
if (json == null) {
|
|
4927
5328
|
return json;
|
|
4928
5329
|
}
|
|
4929
5330
|
return {
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
intervalCount: json["interval_count"],
|
|
4934
|
-
overageUnitPriceDecimal: json["overage_unit_price_decimal"] == null ? void 0 : json["overage_unit_price_decimal"],
|
|
4935
|
-
packageSize: json["package_size"],
|
|
4936
|
-
price: json["price"],
|
|
4937
|
-
priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
|
|
4938
|
-
priceTiers: json["price_tiers"].map(
|
|
4939
|
-
CatalogPriceTierResponseDataFromJSON
|
|
4940
|
-
),
|
|
4941
|
-
scheme: BillingPriceSchemeFromJSON(json["scheme"]),
|
|
4942
|
-
tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"])
|
|
5331
|
+
ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
|
|
5332
|
+
ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
|
|
5333
|
+
priceText: json["price_text"] == null ? void 0 : json["price_text"]
|
|
4943
5334
|
};
|
|
4944
5335
|
}
|
|
4945
5336
|
|
|
@@ -5113,26 +5504,6 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5113
5504
|
};
|
|
5114
5505
|
}
|
|
5115
5506
|
|
|
5116
|
-
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5117
|
-
function ChargeTypeFromJSON(json) {
|
|
5118
|
-
return ChargeTypeFromJSONTyped(json, false);
|
|
5119
|
-
}
|
|
5120
|
-
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5121
|
-
return json;
|
|
5122
|
-
}
|
|
5123
|
-
|
|
5124
|
-
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
5125
|
-
var CheckoutBundlePurchaseBehavior = {
|
|
5126
|
-
Individual: "individual",
|
|
5127
|
-
Quantity: "quantity"
|
|
5128
|
-
};
|
|
5129
|
-
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
5130
|
-
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
5131
|
-
}
|
|
5132
|
-
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5133
|
-
return json;
|
|
5134
|
-
}
|
|
5135
|
-
|
|
5136
5507
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
5137
5508
|
function CheckoutPriceSnapshotFromJSON(json) {
|
|
5138
5509
|
return CheckoutPriceSnapshotFromJSONTyped(json, false);
|
|
@@ -5148,6 +5519,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5148
5519
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5149
5520
|
newCharges: json["new_charges"],
|
|
5150
5521
|
optInRequired: json["opt_in_required"],
|
|
5522
|
+
optInText: json["opt_in_text"] == null ? void 0 : json["opt_in_text"],
|
|
5523
|
+
optInTitle: json["opt_in_title"] == null ? void 0 : json["opt_in_title"],
|
|
5151
5524
|
paymentMethodRequired: json["payment_method_required"],
|
|
5152
5525
|
percentOff: json["percent_off"],
|
|
5153
5526
|
periodStart: new Date(json["period_start"]),
|
|
@@ -5169,6 +5542,17 @@ function CheckoutStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5169
5542
|
return json;
|
|
5170
5543
|
}
|
|
5171
5544
|
|
|
5545
|
+
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5546
|
+
function CheckoutIntentFromJSON(json) {
|
|
5547
|
+
return CheckoutIntentFromJSONTyped(json, false);
|
|
5548
|
+
}
|
|
5549
|
+
function CheckoutIntentFromJSONTyped(json, ignoreDiscriminator) {
|
|
5550
|
+
return json;
|
|
5551
|
+
}
|
|
5552
|
+
function CheckoutIntentToJSON(value) {
|
|
5553
|
+
return value;
|
|
5554
|
+
}
|
|
5555
|
+
|
|
5172
5556
|
// src/api/checkoutexternal/models/CheckoutSelectionsResponseData.ts
|
|
5173
5557
|
function CheckoutSelectionsResponseDataFromJSON(json) {
|
|
5174
5558
|
return CheckoutSelectionsResponseDataFromJSONTyped(json, false);
|
|
@@ -5189,9 +5573,11 @@ function CheckoutSelectionsResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5189
5573
|
creditBundles: json["credit_bundles"].map(
|
|
5190
5574
|
UpdateCreditBundleRequestBodyFromJSON
|
|
5191
5575
|
),
|
|
5576
|
+
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
5192
5577
|
customFieldValues: json["custom_field_values"].map(
|
|
5193
5578
|
CheckoutFieldValueFromJSON
|
|
5194
5579
|
),
|
|
5580
|
+
intent: CheckoutIntentFromJSON(json["intent"]),
|
|
5195
5581
|
newPlanId: json["new_plan_id"] == null ? void 0 : json["new_plan_id"],
|
|
5196
5582
|
newPriceId: json["new_price_id"] == null ? void 0 : json["new_price_id"],
|
|
5197
5583
|
optInAccepted: json["opt_in_accepted"] == null ? void 0 : json["opt_in_accepted"],
|
|
@@ -5291,11 +5677,6 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5291
5677
|
};
|
|
5292
5678
|
}
|
|
5293
5679
|
|
|
5294
|
-
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5295
|
-
function CheckoutIntentToJSON(value) {
|
|
5296
|
-
return value;
|
|
5297
|
-
}
|
|
5298
|
-
|
|
5299
5680
|
// src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
|
|
5300
5681
|
function ScheduledDowngradeConfigBehaviorFromJSON(json) {
|
|
5301
5682
|
return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
|
|
@@ -5400,18 +5781,6 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5400
5781
|
};
|
|
5401
5782
|
}
|
|
5402
5783
|
|
|
5403
|
-
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
5404
|
-
var ProrationBehavior = {
|
|
5405
|
-
CreateProrations: "create_prorations",
|
|
5406
|
-
InvoiceImmediately: "invoice_immediately"
|
|
5407
|
-
};
|
|
5408
|
-
function ProrationBehaviorFromJSON(json) {
|
|
5409
|
-
return ProrationBehaviorFromJSONTyped(json, false);
|
|
5410
|
-
}
|
|
5411
|
-
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5412
|
-
return json;
|
|
5413
|
-
}
|
|
5414
|
-
|
|
5415
5784
|
// src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
|
|
5416
5785
|
function CompanyBillingProfileResponseDataFromJSON(json) {
|
|
5417
5786
|
return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
|
|
@@ -5440,6 +5809,43 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
5440
5809
|
};
|
|
5441
5810
|
}
|
|
5442
5811
|
|
|
5812
|
+
// src/api/checkoutexternal/models/CompanyCatalogResponseData.ts
|
|
5813
|
+
function CompanyCatalogResponseDataFromJSON(json) {
|
|
5814
|
+
return CompanyCatalogResponseDataFromJSONTyped(json, false);
|
|
5815
|
+
}
|
|
5816
|
+
function CompanyCatalogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5817
|
+
if (json == null) {
|
|
5818
|
+
return json;
|
|
5819
|
+
}
|
|
5820
|
+
return {
|
|
5821
|
+
addOns: json["add_ons"].map(
|
|
5822
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5823
|
+
),
|
|
5824
|
+
capabilities: CatalogCapabilitiesResponseDataFromJSON(json["capabilities"]),
|
|
5825
|
+
checkoutSettings: CatalogCheckoutSettingsResponseDataFromJSON(
|
|
5826
|
+
json["checkout_settings"]
|
|
5827
|
+
),
|
|
5828
|
+
creditBundles: json["credit_bundles"].map(
|
|
5829
|
+
CatalogCreditBundleResponseDataFromJSON
|
|
5830
|
+
),
|
|
5831
|
+
customPlanCta: json["custom_plan_cta"] == null ? void 0 : CatalogCustomPlanCTAResponseDataFromJSON(json["custom_plan_cta"]),
|
|
5832
|
+
defaultCurrency: CurrencyFromJSON(json["default_currency"]),
|
|
5833
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
5834
|
+
id: json["id"],
|
|
5835
|
+
name: json["name"],
|
|
5836
|
+
plans: json["plans"].map(
|
|
5837
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5838
|
+
),
|
|
5839
|
+
preventSelfServiceDowngrade: json["prevent_self_service_downgrade"],
|
|
5840
|
+
preventSelfServiceDowngradeButtonText: json["prevent_self_service_downgrade_button_text"] == null ? void 0 : json["prevent_self_service_downgrade_button_text"],
|
|
5841
|
+
preventSelfServiceDowngradeUrl: json["prevent_self_service_downgrade_url"] == null ? void 0 : json["prevent_self_service_downgrade_url"],
|
|
5842
|
+
pricingModel: json["pricing_model"] == null ? void 0 : json["pricing_model"],
|
|
5843
|
+
pricingUrl: json["pricing_url"] == null ? void 0 : json["pricing_url"],
|
|
5844
|
+
trialExpiryPlan: json["trial_expiry_plan"] == null ? void 0 : CatalogPlanRefResponseDataFromJSON(json["trial_expiry_plan"]),
|
|
5845
|
+
trialPaymentMethodRequired: json["trial_payment_method_required"] == null ? void 0 : json["trial_payment_method_required"]
|
|
5846
|
+
};
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5443
5849
|
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
5444
5850
|
var CustomPlanActivationStrategy = {
|
|
5445
5851
|
Payment: "on_payment",
|
|
@@ -5830,30 +6236,6 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5830
6236
|
};
|
|
5831
6237
|
}
|
|
5832
6238
|
|
|
5833
|
-
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
5834
|
-
var EntitlementValueType = {
|
|
5835
|
-
Boolean: "boolean",
|
|
5836
|
-
Credit: "credit",
|
|
5837
|
-
Numeric: "numeric",
|
|
5838
|
-
Trait: "trait",
|
|
5839
|
-
Unknown: "unknown",
|
|
5840
|
-
Unlimited: "unlimited"
|
|
5841
|
-
};
|
|
5842
|
-
function EntitlementValueTypeFromJSON(json) {
|
|
5843
|
-
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
5844
|
-
}
|
|
5845
|
-
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5846
|
-
return json;
|
|
5847
|
-
}
|
|
5848
|
-
|
|
5849
|
-
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5850
|
-
function MetricPeriodMonthResetFromJSON(json) {
|
|
5851
|
-
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5852
|
-
}
|
|
5853
|
-
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5854
|
-
return json;
|
|
5855
|
-
}
|
|
5856
|
-
|
|
5857
6239
|
// src/api/checkoutexternal/models/WarningTier.ts
|
|
5858
6240
|
function WarningTierFromJSON(json) {
|
|
5859
6241
|
return WarningTierFromJSONTyped(json, false);
|
|
@@ -5868,14 +6250,6 @@ function WarningTierFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5868
6250
|
};
|
|
5869
6251
|
}
|
|
5870
6252
|
|
|
5871
|
-
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5872
|
-
function MetricPeriodFromJSON(json) {
|
|
5873
|
-
return MetricPeriodFromJSONTyped(json, false);
|
|
5874
|
-
}
|
|
5875
|
-
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5876
|
-
return json;
|
|
5877
|
-
}
|
|
5878
|
-
|
|
5879
6253
|
// src/api/checkoutexternal/models/FeatureEntitlement.ts
|
|
5880
6254
|
function FeatureEntitlementFromJSON(json) {
|
|
5881
6255
|
return FeatureEntitlementFromJSONTyped(json, false);
|
|
@@ -6321,35 +6695,6 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6321
6695
|
};
|
|
6322
6696
|
}
|
|
6323
6697
|
|
|
6324
|
-
// src/api/checkoutexternal/models/FeatureType.ts
|
|
6325
|
-
var FeatureType = {
|
|
6326
|
-
Boolean: "boolean",
|
|
6327
|
-
Event: "event",
|
|
6328
|
-
License: "license",
|
|
6329
|
-
Trait: "trait"
|
|
6330
|
-
};
|
|
6331
|
-
function FeatureTypeFromJSON(json) {
|
|
6332
|
-
return FeatureTypeFromJSONTyped(json, false);
|
|
6333
|
-
}
|
|
6334
|
-
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6335
|
-
return json;
|
|
6336
|
-
}
|
|
6337
|
-
|
|
6338
|
-
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6339
|
-
var EntitlementPriceBehavior = {
|
|
6340
|
-
CreditBurndown: "credit_burndown",
|
|
6341
|
-
Overage: "overage",
|
|
6342
|
-
PayAsYouGo: "pay_as_you_go",
|
|
6343
|
-
PayInAdvance: "pay_in_advance",
|
|
6344
|
-
Tier: "tier"
|
|
6345
|
-
};
|
|
6346
|
-
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6347
|
-
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6348
|
-
}
|
|
6349
|
-
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6350
|
-
return json;
|
|
6351
|
-
}
|
|
6352
|
-
|
|
6353
6698
|
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6354
6699
|
function EntitlementTypeFromJSON(json) {
|
|
6355
6700
|
return EntitlementTypeFromJSONTyped(json, false);
|
|
@@ -6632,26 +6977,6 @@ function CompanyPaymentMethodsResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
6632
6977
|
};
|
|
6633
6978
|
}
|
|
6634
6979
|
|
|
6635
|
-
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
6636
|
-
var CompanyPlanInvalidReason = {
|
|
6637
|
-
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
6638
|
-
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
6639
|
-
};
|
|
6640
|
-
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
6641
|
-
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
6642
|
-
}
|
|
6643
|
-
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
6644
|
-
return json;
|
|
6645
|
-
}
|
|
6646
|
-
|
|
6647
|
-
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
6648
|
-
function PlanPriceCadenceFromJSON(json) {
|
|
6649
|
-
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
6650
|
-
}
|
|
6651
|
-
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
6652
|
-
return json;
|
|
6653
|
-
}
|
|
6654
|
-
|
|
6655
6980
|
// src/api/checkoutexternal/models/EstimatedPlanTotal.ts
|
|
6656
6981
|
function EstimatedPlanTotalFromJSON(json) {
|
|
6657
6982
|
return EstimatedPlanTotalFromJSONTyped(json, false);
|
|
@@ -7981,6 +8306,34 @@ function FinalizeCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7981
8306
|
};
|
|
7982
8307
|
}
|
|
7983
8308
|
|
|
8309
|
+
// src/api/checkoutexternal/models/GetCatalogViewByIDResponse.ts
|
|
8310
|
+
function GetCatalogViewByIDResponseFromJSON(json) {
|
|
8311
|
+
return GetCatalogViewByIDResponseFromJSONTyped(json, false);
|
|
8312
|
+
}
|
|
8313
|
+
function GetCatalogViewByIDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8314
|
+
if (json == null) {
|
|
8315
|
+
return json;
|
|
8316
|
+
}
|
|
8317
|
+
return {
|
|
8318
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8319
|
+
params: json["params"]
|
|
8320
|
+
};
|
|
8321
|
+
}
|
|
8322
|
+
|
|
8323
|
+
// src/api/checkoutexternal/models/GetCatalogViewResponse.ts
|
|
8324
|
+
function GetCatalogViewResponseFromJSON(json) {
|
|
8325
|
+
return GetCatalogViewResponseFromJSONTyped(json, false);
|
|
8326
|
+
}
|
|
8327
|
+
function GetCatalogViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8328
|
+
if (json == null) {
|
|
8329
|
+
return json;
|
|
8330
|
+
}
|
|
8331
|
+
return {
|
|
8332
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8333
|
+
params: json["params"]
|
|
8334
|
+
};
|
|
8335
|
+
}
|
|
8336
|
+
|
|
7984
8337
|
// src/api/checkoutexternal/models/GetCheckoutResponse.ts
|
|
7985
8338
|
function GetCheckoutResponseFromJSON(json) {
|
|
7986
8339
|
return GetCheckoutResponseFromJSONTyped(json, false);
|
|
@@ -8941,6 +9294,82 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8941
9294
|
);
|
|
8942
9295
|
return await response.value();
|
|
8943
9296
|
}
|
|
9297
|
+
/**
|
|
9298
|
+
* Get catalog view
|
|
9299
|
+
*/
|
|
9300
|
+
async getCatalogViewRaw(initOverrides) {
|
|
9301
|
+
const queryParameters = {};
|
|
9302
|
+
const headerParameters = {};
|
|
9303
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9304
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9305
|
+
"X-Schematic-Api-Key"
|
|
9306
|
+
);
|
|
9307
|
+
}
|
|
9308
|
+
const response = await this.request(
|
|
9309
|
+
{
|
|
9310
|
+
path: `/catalog/view`,
|
|
9311
|
+
method: "GET",
|
|
9312
|
+
headers: headerParameters,
|
|
9313
|
+
query: queryParameters
|
|
9314
|
+
},
|
|
9315
|
+
initOverrides
|
|
9316
|
+
);
|
|
9317
|
+
return new JSONApiResponse(
|
|
9318
|
+
response,
|
|
9319
|
+
(jsonValue) => GetCatalogViewResponseFromJSON(jsonValue)
|
|
9320
|
+
);
|
|
9321
|
+
}
|
|
9322
|
+
/**
|
|
9323
|
+
* Get catalog view
|
|
9324
|
+
*/
|
|
9325
|
+
async getCatalogView(initOverrides) {
|
|
9326
|
+
const response = await this.getCatalogViewRaw(initOverrides);
|
|
9327
|
+
return await response.value();
|
|
9328
|
+
}
|
|
9329
|
+
/**
|
|
9330
|
+
* Get catalog view by ID
|
|
9331
|
+
*/
|
|
9332
|
+
async getCatalogViewByIDRaw(requestParameters, initOverrides) {
|
|
9333
|
+
if (requestParameters["catalogId"] == null) {
|
|
9334
|
+
throw new RequiredError(
|
|
9335
|
+
"catalogId",
|
|
9336
|
+
'Required parameter "catalogId" was null or undefined when calling getCatalogViewByID().'
|
|
9337
|
+
);
|
|
9338
|
+
}
|
|
9339
|
+
const queryParameters = {};
|
|
9340
|
+
const headerParameters = {};
|
|
9341
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9342
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9343
|
+
"X-Schematic-Api-Key"
|
|
9344
|
+
);
|
|
9345
|
+
}
|
|
9346
|
+
const response = await this.request(
|
|
9347
|
+
{
|
|
9348
|
+
path: `/catalogs/{catalog_id}/view`.replace(
|
|
9349
|
+
`{${"catalog_id"}}`,
|
|
9350
|
+
encodeURIComponent(String(requestParameters["catalogId"]))
|
|
9351
|
+
),
|
|
9352
|
+
method: "GET",
|
|
9353
|
+
headers: headerParameters,
|
|
9354
|
+
query: queryParameters
|
|
9355
|
+
},
|
|
9356
|
+
initOverrides
|
|
9357
|
+
);
|
|
9358
|
+
return new JSONApiResponse(
|
|
9359
|
+
response,
|
|
9360
|
+
(jsonValue) => GetCatalogViewByIDResponseFromJSON(jsonValue)
|
|
9361
|
+
);
|
|
9362
|
+
}
|
|
9363
|
+
/**
|
|
9364
|
+
* Get catalog view by ID
|
|
9365
|
+
*/
|
|
9366
|
+
async getCatalogViewByID(requestParameters, initOverrides) {
|
|
9367
|
+
const response = await this.getCatalogViewByIDRaw(
|
|
9368
|
+
requestParameters,
|
|
9369
|
+
initOverrides
|
|
9370
|
+
);
|
|
9371
|
+
return await response.value();
|
|
9372
|
+
}
|
|
8944
9373
|
/**
|
|
8945
9374
|
* Get checkout
|
|
8946
9375
|
*/
|
|
@@ -10199,9 +10628,9 @@ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
10199
10628
|
|
|
10200
10629
|
// src/api/componentspublic/models/BillingCreditAutoTopupAvailability.ts
|
|
10201
10630
|
function BillingCreditAutoTopupAvailabilityFromJSON2(json) {
|
|
10202
|
-
return
|
|
10631
|
+
return BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, false);
|
|
10203
10632
|
}
|
|
10204
|
-
function
|
|
10633
|
+
function BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10205
10634
|
return json;
|
|
10206
10635
|
}
|
|
10207
10636
|
|
|
@@ -10215,17 +10644,17 @@ function BillingCreditBurnStrategyFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10215
10644
|
|
|
10216
10645
|
// src/api/componentspublic/models/BillingCreditExpiryType.ts
|
|
10217
10646
|
function BillingCreditExpiryTypeFromJSON2(json) {
|
|
10218
|
-
return
|
|
10647
|
+
return BillingCreditExpiryTypeFromJSONTyped8(json, false);
|
|
10219
10648
|
}
|
|
10220
|
-
function
|
|
10649
|
+
function BillingCreditExpiryTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10221
10650
|
return json;
|
|
10222
10651
|
}
|
|
10223
10652
|
|
|
10224
10653
|
// src/api/componentspublic/models/BillingCreditExpiryUnit.ts
|
|
10225
10654
|
function BillingCreditExpiryUnitFromJSON2(json) {
|
|
10226
|
-
return
|
|
10655
|
+
return BillingCreditExpiryUnitFromJSONTyped10(json, false);
|
|
10227
10656
|
}
|
|
10228
|
-
function
|
|
10657
|
+
function BillingCreditExpiryUnitFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10229
10658
|
return json;
|
|
10230
10659
|
}
|
|
10231
10660
|
|
|
@@ -10239,9 +10668,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10239
10668
|
|
|
10240
10669
|
// src/api/componentspublic/models/Currency.ts
|
|
10241
10670
|
function CurrencyFromJSON2(json) {
|
|
10242
|
-
return
|
|
10671
|
+
return CurrencyFromJSONTyped38(json, false);
|
|
10243
10672
|
}
|
|
10244
|
-
function
|
|
10673
|
+
function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
|
|
10245
10674
|
return json;
|
|
10246
10675
|
}
|
|
10247
10676
|
|
|
@@ -10623,41 +11052,41 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
|
|
|
10623
11052
|
|
|
10624
11053
|
// src/api/componentspublic/models/BillingStrategy.ts
|
|
10625
11054
|
function BillingStrategyFromJSON2(json) {
|
|
10626
|
-
return
|
|
11055
|
+
return BillingStrategyFromJSONTyped7(json, false);
|
|
10627
11056
|
}
|
|
10628
|
-
function
|
|
11057
|
+
function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10629
11058
|
return json;
|
|
10630
11059
|
}
|
|
10631
11060
|
|
|
10632
11061
|
// src/api/componentspublic/models/ChargeType.ts
|
|
10633
11062
|
function ChargeTypeFromJSON2(json) {
|
|
10634
|
-
return
|
|
11063
|
+
return ChargeTypeFromJSONTyped7(json, false);
|
|
10635
11064
|
}
|
|
10636
|
-
function
|
|
11065
|
+
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10637
11066
|
return json;
|
|
10638
11067
|
}
|
|
10639
11068
|
|
|
10640
11069
|
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
10641
11070
|
function EntitlementValueTypeFromJSON2(json) {
|
|
10642
|
-
return
|
|
11071
|
+
return EntitlementValueTypeFromJSONTyped10(json, false);
|
|
10643
11072
|
}
|
|
10644
|
-
function
|
|
11073
|
+
function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10645
11074
|
return json;
|
|
10646
11075
|
}
|
|
10647
11076
|
|
|
10648
11077
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
10649
11078
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
10650
|
-
return
|
|
11079
|
+
return MetricPeriodMonthResetFromJSONTyped14(json, false);
|
|
10651
11080
|
}
|
|
10652
|
-
function
|
|
11081
|
+
function MetricPeriodMonthResetFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10653
11082
|
return json;
|
|
10654
11083
|
}
|
|
10655
11084
|
|
|
10656
11085
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
10657
11086
|
function MetricPeriodFromJSON2(json) {
|
|
10658
|
-
return
|
|
11087
|
+
return MetricPeriodFromJSONTyped14(json, false);
|
|
10659
11088
|
}
|
|
10660
|
-
function
|
|
11089
|
+
function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10661
11090
|
return json;
|
|
10662
11091
|
}
|
|
10663
11092
|
|
|
@@ -10765,9 +11194,9 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
10765
11194
|
|
|
10766
11195
|
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
10767
11196
|
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
10768
|
-
return
|
|
11197
|
+
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
10769
11198
|
}
|
|
10770
|
-
function
|
|
11199
|
+
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10771
11200
|
return json;
|
|
10772
11201
|
}
|
|
10773
11202
|
|
|
@@ -10834,9 +11263,9 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10834
11263
|
|
|
10835
11264
|
// src/api/componentspublic/models/FeatureType.ts
|
|
10836
11265
|
function FeatureTypeFromJSON2(json) {
|
|
10837
|
-
return
|
|
11266
|
+
return FeatureTypeFromJSONTyped7(json, false);
|
|
10838
11267
|
}
|
|
10839
|
-
function
|
|
11268
|
+
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10840
11269
|
return json;
|
|
10841
11270
|
}
|
|
10842
11271
|
|
|
@@ -11192,9 +11621,9 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
11192
11621
|
|
|
11193
11622
|
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11194
11623
|
function PlanPriceCadenceFromJSON2(json) {
|
|
11195
|
-
return
|
|
11624
|
+
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
11196
11625
|
}
|
|
11197
|
-
function
|
|
11626
|
+
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11198
11627
|
return json;
|
|
11199
11628
|
}
|
|
11200
11629
|
|
|
@@ -16904,7 +17333,7 @@ var reducer = (state, action) => {
|
|
|
16904
17333
|
// src/context/EmbedProvider.tsx
|
|
16905
17334
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
16906
17335
|
var getCustomHeaders = (sessionId) => ({
|
|
16907
|
-
"X-Schematic-Components-Version": "2.
|
|
17336
|
+
"X-Schematic-Components-Version": "2.34.0",
|
|
16908
17337
|
"X-Schematic-Session-ID": sessionId
|
|
16909
17338
|
});
|
|
16910
17339
|
var normalizeCurrencyFilter = (filter2) => {
|