@schematichq/schematic-components 2.32.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 +2490 -409
- package/dist/schematic-components-elements.d.ts +605 -11
- package/dist/schematic-components-elements.esm.js +2466 -370
- package/dist/schematic-components.browser.cjs.js +859 -215
- package/dist/schematic-components.browser.esm.js +859 -215
- package/dist/schematic-components.cjs.js +859 -215
- package/dist/schematic-components.d.ts +127 -0
- package/dist/schematic-components.esm.js +859 -215
- package/package.json +10 -10
|
@@ -3552,7 +3552,7 @@ var import_debounce2 = __toESM(require_debounce());
|
|
|
3552
3552
|
var import_merge3 = __toESM(require_merge());
|
|
3553
3553
|
import { useCallback as useCallback2, useEffect, useMemo as useMemo2, useReducer, useRef as useRef2 } from "react";
|
|
3554
3554
|
|
|
3555
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
3555
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/stringify.js
|
|
3556
3556
|
var byteToHex = [];
|
|
3557
3557
|
for (let i2 = 0; i2 < 256; ++i2) {
|
|
3558
3558
|
byteToHex.push((i2 + 256).toString(16).slice(1));
|
|
@@ -3561,13 +3561,13 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
3561
3561
|
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();
|
|
3562
3562
|
}
|
|
3563
3563
|
|
|
3564
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
3564
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/rng.js
|
|
3565
3565
|
var rnds8 = new Uint8Array(16);
|
|
3566
3566
|
function rng() {
|
|
3567
3567
|
return crypto.getRandomValues(rnds8);
|
|
3568
3568
|
}
|
|
3569
3569
|
|
|
3570
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
3570
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/v4.js
|
|
3571
3571
|
function v4(options, buf, offset) {
|
|
3572
3572
|
if (!buf && !options && crypto.randomUUID) {
|
|
3573
3573
|
return crypto.randomUUID();
|
|
@@ -4753,6 +4753,339 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4753
4753
|
};
|
|
4754
4754
|
}
|
|
4755
4755
|
|
|
4756
|
+
// src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
|
|
4757
|
+
function CatalogPriceTierResponseDataFromJSON(json) {
|
|
4758
|
+
return CatalogPriceTierResponseDataFromJSONTyped(json, false);
|
|
4759
|
+
}
|
|
4760
|
+
function CatalogPriceTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4761
|
+
if (json == null) {
|
|
4762
|
+
return json;
|
|
4763
|
+
}
|
|
4764
|
+
return {
|
|
4765
|
+
flatPrice: json["flat_price"] == null ? void 0 : json["flat_price"],
|
|
4766
|
+
from: json["from"],
|
|
4767
|
+
perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
|
|
4768
|
+
perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
|
|
4769
|
+
to: json["to"] == null ? void 0 : json["to"]
|
|
4770
|
+
};
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4773
|
+
// src/api/checkoutexternal/models/CatalogPriceResponseData.ts
|
|
4774
|
+
function CatalogPriceResponseDataFromJSON(json) {
|
|
4775
|
+
return CatalogPriceResponseDataFromJSONTyped(json, false);
|
|
4776
|
+
}
|
|
4777
|
+
function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4778
|
+
if (json == null) {
|
|
4779
|
+
return json;
|
|
4780
|
+
}
|
|
4781
|
+
return {
|
|
4782
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4783
|
+
id: json["id"],
|
|
4784
|
+
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
4785
|
+
intervalCount: json["interval_count"],
|
|
4786
|
+
overageUnitPriceDecimal: json["overage_unit_price_decimal"] == null ? void 0 : json["overage_unit_price_decimal"],
|
|
4787
|
+
packageSize: json["package_size"],
|
|
4788
|
+
price: json["price"],
|
|
4789
|
+
priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
|
|
4790
|
+
priceTiers: json["price_tiers"].map(
|
|
4791
|
+
CatalogPriceTierResponseDataFromJSON
|
|
4792
|
+
),
|
|
4793
|
+
scheme: BillingPriceSchemeFromJSON(json["scheme"]),
|
|
4794
|
+
tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"])
|
|
4795
|
+
};
|
|
4796
|
+
}
|
|
4797
|
+
|
|
4798
|
+
// src/api/checkoutexternal/models/CatalogBundleCurrencyPriceResponseData.ts
|
|
4799
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSON(json) {
|
|
4800
|
+
return CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, false);
|
|
4801
|
+
}
|
|
4802
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4803
|
+
if (json == null) {
|
|
4804
|
+
return json;
|
|
4805
|
+
}
|
|
4806
|
+
return {
|
|
4807
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4808
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
4809
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4810
|
+
};
|
|
4811
|
+
}
|
|
4812
|
+
|
|
4813
|
+
// src/api/checkoutexternal/models/CatalogAutoTopupResponseData.ts
|
|
4814
|
+
function CatalogAutoTopupResponseDataFromJSON(json) {
|
|
4815
|
+
return CatalogAutoTopupResponseDataFromJSONTyped(json, false);
|
|
4816
|
+
}
|
|
4817
|
+
function CatalogAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4818
|
+
if (json == null) {
|
|
4819
|
+
return json;
|
|
4820
|
+
}
|
|
4821
|
+
return {
|
|
4822
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
4823
|
+
availability: BillingCreditAutoTopupAvailabilityFromJSON(
|
|
4824
|
+
json["availability"]
|
|
4825
|
+
),
|
|
4826
|
+
companyAmount: json["company_amount"] == null ? void 0 : json["company_amount"],
|
|
4827
|
+
companyEnabled: json["company_enabled"] == null ? void 0 : json["company_enabled"],
|
|
4828
|
+
companyThresholdCredits: json["company_threshold_credits"] == null ? void 0 : json["company_threshold_credits"],
|
|
4829
|
+
creditId: json["credit_id"],
|
|
4830
|
+
currencyPrices: json["currency_prices"].map(
|
|
4831
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
4832
|
+
),
|
|
4833
|
+
enabled: json["enabled"],
|
|
4834
|
+
planCreditGrantId: json["plan_credit_grant_id"],
|
|
4835
|
+
thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"],
|
|
4836
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4837
|
+
};
|
|
4838
|
+
}
|
|
4839
|
+
|
|
4840
|
+
// src/api/checkoutexternal/models/CatalogCapabilitiesResponseData.ts
|
|
4841
|
+
function CatalogCapabilitiesResponseDataFromJSON(json) {
|
|
4842
|
+
return CatalogCapabilitiesResponseDataFromJSONTyped(json, false);
|
|
4843
|
+
}
|
|
4844
|
+
function CatalogCapabilitiesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4845
|
+
if (json == null) {
|
|
4846
|
+
return json;
|
|
4847
|
+
}
|
|
4848
|
+
return {
|
|
4849
|
+
badgeVisibility: json["badge_visibility"],
|
|
4850
|
+
checkout: json["checkout"]
|
|
4851
|
+
};
|
|
4852
|
+
}
|
|
4853
|
+
|
|
4854
|
+
// src/api/checkoutexternal/models/CatalogCheckoutFieldResponseData.ts
|
|
4855
|
+
function CatalogCheckoutFieldResponseDataFromJSON(json) {
|
|
4856
|
+
return CatalogCheckoutFieldResponseDataFromJSONTyped(json, false);
|
|
4857
|
+
}
|
|
4858
|
+
function CatalogCheckoutFieldResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4859
|
+
if (json == null) {
|
|
4860
|
+
return json;
|
|
4861
|
+
}
|
|
4862
|
+
return {
|
|
4863
|
+
helperText: json["helper_text"] == null ? void 0 : json["helper_text"],
|
|
4864
|
+
id: json["id"],
|
|
4865
|
+
name: json["name"],
|
|
4866
|
+
required: json["required"],
|
|
4867
|
+
value: json["value"] == null ? void 0 : json["value"]
|
|
4868
|
+
};
|
|
4869
|
+
}
|
|
4870
|
+
|
|
4871
|
+
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
4872
|
+
var CheckoutBundlePurchaseBehavior = {
|
|
4873
|
+
Individual: "individual",
|
|
4874
|
+
Quantity: "quantity"
|
|
4875
|
+
};
|
|
4876
|
+
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
4877
|
+
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
4878
|
+
}
|
|
4879
|
+
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
4880
|
+
return json;
|
|
4881
|
+
}
|
|
4882
|
+
|
|
4883
|
+
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
4884
|
+
var ProrationBehavior = {
|
|
4885
|
+
CreateProrations: "create_prorations",
|
|
4886
|
+
InvoiceImmediately: "invoice_immediately"
|
|
4887
|
+
};
|
|
4888
|
+
function ProrationBehaviorFromJSON(json) {
|
|
4889
|
+
return ProrationBehaviorFromJSONTyped(json, false);
|
|
4890
|
+
}
|
|
4891
|
+
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
4892
|
+
return json;
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
// src/api/checkoutexternal/models/CatalogCheckoutSettingsResponseData.ts
|
|
4896
|
+
function CatalogCheckoutSettingsResponseDataFromJSON(json) {
|
|
4897
|
+
return CatalogCheckoutSettingsResponseDataFromJSONTyped(json, false);
|
|
4898
|
+
}
|
|
4899
|
+
function CatalogCheckoutSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4900
|
+
if (json == null) {
|
|
4901
|
+
return json;
|
|
4902
|
+
}
|
|
4903
|
+
return {
|
|
4904
|
+
bundlePurchaseBehavior: CheckoutBundlePurchaseBehaviorFromJSON(
|
|
4905
|
+
json["bundle_purchase_behavior"]
|
|
4906
|
+
),
|
|
4907
|
+
collectAddress: json["collect_address"],
|
|
4908
|
+
collectEmail: json["collect_email"],
|
|
4909
|
+
collectPhone: json["collect_phone"],
|
|
4910
|
+
collectTaxId: json["collect_tax_id"],
|
|
4911
|
+
customFields: json["custom_fields"].map(
|
|
4912
|
+
CatalogCheckoutFieldResponseDataFromJSON
|
|
4913
|
+
),
|
|
4914
|
+
prorationBehavior: ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
4915
|
+
taxCollectionEnabled: json["tax_collection_enabled"]
|
|
4916
|
+
};
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4919
|
+
// src/api/checkoutexternal/models/CatalogPlanRefResponseData.ts
|
|
4920
|
+
function CatalogPlanRefResponseDataFromJSON(json) {
|
|
4921
|
+
return CatalogPlanRefResponseDataFromJSONTyped(json, false);
|
|
4922
|
+
}
|
|
4923
|
+
function CatalogPlanRefResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4924
|
+
if (json == null) {
|
|
4925
|
+
return json;
|
|
4926
|
+
}
|
|
4927
|
+
return {
|
|
4928
|
+
id: json["id"],
|
|
4929
|
+
name: json["name"]
|
|
4930
|
+
};
|
|
4931
|
+
}
|
|
4932
|
+
|
|
4933
|
+
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
4934
|
+
var CompanyPlanInvalidReason = {
|
|
4935
|
+
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
4936
|
+
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
4937
|
+
};
|
|
4938
|
+
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
4939
|
+
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
4940
|
+
}
|
|
4941
|
+
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
4942
|
+
return json;
|
|
4943
|
+
}
|
|
4944
|
+
|
|
4945
|
+
// src/api/checkoutexternal/models/CatalogUsageViolationResponseData.ts
|
|
4946
|
+
function CatalogUsageViolationResponseDataFromJSON(json) {
|
|
4947
|
+
return CatalogUsageViolationResponseDataFromJSONTyped(json, false);
|
|
4948
|
+
}
|
|
4949
|
+
function CatalogUsageViolationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4950
|
+
if (json == null) {
|
|
4951
|
+
return json;
|
|
4952
|
+
}
|
|
4953
|
+
return {
|
|
4954
|
+
featureId: json["feature_id"],
|
|
4955
|
+
featureName: json["feature_name"],
|
|
4956
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
4957
|
+
usage: json["usage"]
|
|
4958
|
+
};
|
|
4959
|
+
}
|
|
4960
|
+
|
|
4961
|
+
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
4962
|
+
var EntitlementValueType = {
|
|
4963
|
+
Boolean: "boolean",
|
|
4964
|
+
Credit: "credit",
|
|
4965
|
+
Numeric: "numeric",
|
|
4966
|
+
Trait: "trait",
|
|
4967
|
+
Unknown: "unknown",
|
|
4968
|
+
Unlimited: "unlimited"
|
|
4969
|
+
};
|
|
4970
|
+
function EntitlementValueTypeFromJSON(json) {
|
|
4971
|
+
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
4972
|
+
}
|
|
4973
|
+
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
4974
|
+
return json;
|
|
4975
|
+
}
|
|
4976
|
+
|
|
4977
|
+
// src/api/checkoutexternal/models/FeatureType.ts
|
|
4978
|
+
var FeatureType = {
|
|
4979
|
+
Boolean: "boolean",
|
|
4980
|
+
Event: "event",
|
|
4981
|
+
License: "license",
|
|
4982
|
+
Trait: "trait"
|
|
4983
|
+
};
|
|
4984
|
+
function FeatureTypeFromJSON(json) {
|
|
4985
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
4986
|
+
}
|
|
4987
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
4988
|
+
return json;
|
|
4989
|
+
}
|
|
4990
|
+
|
|
4991
|
+
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
4992
|
+
function MetricPeriodMonthResetFromJSON(json) {
|
|
4993
|
+
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
4994
|
+
}
|
|
4995
|
+
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
4996
|
+
return json;
|
|
4997
|
+
}
|
|
4998
|
+
|
|
4999
|
+
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5000
|
+
function MetricPeriodFromJSON(json) {
|
|
5001
|
+
return MetricPeriodFromJSONTyped(json, false);
|
|
5002
|
+
}
|
|
5003
|
+
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5004
|
+
return json;
|
|
5005
|
+
}
|
|
5006
|
+
|
|
5007
|
+
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
5008
|
+
var EntitlementPriceBehavior = {
|
|
5009
|
+
CreditBurndown: "credit_burndown",
|
|
5010
|
+
Overage: "overage",
|
|
5011
|
+
PayAsYouGo: "pay_as_you_go",
|
|
5012
|
+
PayInAdvance: "pay_in_advance",
|
|
5013
|
+
Tier: "tier"
|
|
5014
|
+
};
|
|
5015
|
+
function EntitlementPriceBehaviorFromJSON(json) {
|
|
5016
|
+
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
5017
|
+
}
|
|
5018
|
+
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5019
|
+
return json;
|
|
5020
|
+
}
|
|
5021
|
+
|
|
5022
|
+
// src/api/checkoutexternal/models/CatalogCurrencyPricesResponseData.ts
|
|
5023
|
+
function CatalogCurrencyPricesResponseDataFromJSON(json) {
|
|
5024
|
+
return CatalogCurrencyPricesResponseDataFromJSONTyped(json, false);
|
|
5025
|
+
}
|
|
5026
|
+
function CatalogCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5027
|
+
if (json == null) {
|
|
5028
|
+
return json;
|
|
5029
|
+
}
|
|
5030
|
+
return {
|
|
5031
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5032
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5033
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5034
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5035
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5036
|
+
};
|
|
5037
|
+
}
|
|
5038
|
+
|
|
5039
|
+
// src/api/checkoutexternal/models/CatalogPlanEntitlementResponseData.ts
|
|
5040
|
+
function CatalogPlanEntitlementResponseDataFromJSON(json) {
|
|
5041
|
+
return CatalogPlanEntitlementResponseDataFromJSONTyped(json, false);
|
|
5042
|
+
}
|
|
5043
|
+
function CatalogPlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5044
|
+
if (json == null) {
|
|
5045
|
+
return json;
|
|
5046
|
+
}
|
|
5047
|
+
return {
|
|
5048
|
+
consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
|
|
5049
|
+
creditEquivalentLimit: json["credit_equivalent_limit"] == null ? void 0 : json["credit_equivalent_limit"],
|
|
5050
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5051
|
+
creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
|
|
5052
|
+
creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
|
|
5053
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5054
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5055
|
+
currencyPrices: json["currency_prices"].map(
|
|
5056
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5057
|
+
),
|
|
5058
|
+
featureDescription: json["feature_description"],
|
|
5059
|
+
featureIcon: json["feature_icon"],
|
|
5060
|
+
featureId: json["feature_id"],
|
|
5061
|
+
featureName: json["feature_name"],
|
|
5062
|
+
featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
|
|
5063
|
+
featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
|
|
5064
|
+
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
5065
|
+
id: json["id"],
|
|
5066
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5067
|
+
meteredMonthlyPrice: json["metered_monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_monthly_price"]),
|
|
5068
|
+
meteredQuarterlyPrice: json["metered_quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_quarterly_price"]),
|
|
5069
|
+
meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_yearly_price"]),
|
|
5070
|
+
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
5071
|
+
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
5072
|
+
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
5073
|
+
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
5074
|
+
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
5075
|
+
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
5076
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
5077
|
+
warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
|
|
5078
|
+
};
|
|
5079
|
+
}
|
|
5080
|
+
|
|
5081
|
+
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5082
|
+
function ChargeTypeFromJSON(json) {
|
|
5083
|
+
return ChargeTypeFromJSONTyped(json, false);
|
|
5084
|
+
}
|
|
5085
|
+
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5086
|
+
return json;
|
|
5087
|
+
}
|
|
5088
|
+
|
|
4756
5089
|
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
4757
5090
|
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
4758
5091
|
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
@@ -4776,45 +5109,103 @@ function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
4776
5109
|
};
|
|
4777
5110
|
}
|
|
4778
5111
|
|
|
4779
|
-
// src/api/checkoutexternal/models/
|
|
4780
|
-
function
|
|
4781
|
-
return
|
|
5112
|
+
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
5113
|
+
function PlanPriceCadenceFromJSON(json) {
|
|
5114
|
+
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
4782
5115
|
}
|
|
4783
|
-
function
|
|
5116
|
+
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
5117
|
+
return json;
|
|
5118
|
+
}
|
|
5119
|
+
|
|
5120
|
+
// src/api/checkoutexternal/models/CatalogCompanyPlanResponseData.ts
|
|
5121
|
+
function CatalogCompanyPlanResponseDataFromJSON(json) {
|
|
5122
|
+
return CatalogCompanyPlanResponseDataFromJSONTyped(json, false);
|
|
5123
|
+
}
|
|
5124
|
+
function CatalogCompanyPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4784
5125
|
if (json == null) {
|
|
4785
5126
|
return json;
|
|
4786
5127
|
}
|
|
4787
5128
|
return {
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
5129
|
+
autoTopups: json["auto_topups"].map(
|
|
5130
|
+
CatalogAutoTopupResponseDataFromJSON
|
|
5131
|
+
),
|
|
5132
|
+
availablePeriods: json["available_periods"].map(
|
|
5133
|
+
PlanPriceCadenceFromJSON
|
|
5134
|
+
),
|
|
5135
|
+
billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
|
|
5136
|
+
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
5137
|
+
companyCanTrial: json["company_can_trial"],
|
|
5138
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5139
|
+
currencyPrices: json["currency_prices"].map(
|
|
5140
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5141
|
+
),
|
|
5142
|
+
current: json["current"],
|
|
5143
|
+
description: json["description"],
|
|
5144
|
+
entitlements: json["entitlements"].map(
|
|
5145
|
+
CatalogPlanEntitlementResponseDataFromJSON
|
|
5146
|
+
),
|
|
5147
|
+
icon: json["icon"],
|
|
5148
|
+
id: json["id"],
|
|
5149
|
+
includedCreditGrants: json["included_credit_grants"].map(
|
|
5150
|
+
CatalogCreditGrantResponseDataFromJSON
|
|
5151
|
+
),
|
|
5152
|
+
invalidReason: json["invalid_reason"] == null ? void 0 : CompanyPlanInvalidReasonFromJSON(json["invalid_reason"]),
|
|
5153
|
+
isTrialable: json["is_trialable"],
|
|
5154
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5155
|
+
name: json["name"],
|
|
5156
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5157
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5158
|
+
trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
|
|
5159
|
+
usageViolations: json["usage_violations"].map(
|
|
5160
|
+
CatalogUsageViolationResponseDataFromJSON
|
|
5161
|
+
),
|
|
5162
|
+
valid: json["valid"],
|
|
5163
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
4793
5164
|
};
|
|
4794
5165
|
}
|
|
4795
5166
|
|
|
4796
|
-
// src/api/checkoutexternal/models/
|
|
4797
|
-
function
|
|
4798
|
-
return
|
|
5167
|
+
// src/api/checkoutexternal/models/CatalogCreditBundleResponseData.ts
|
|
5168
|
+
function CatalogCreditBundleResponseDataFromJSON(json) {
|
|
5169
|
+
return CatalogCreditBundleResponseDataFromJSONTyped(json, false);
|
|
4799
5170
|
}
|
|
4800
|
-
function
|
|
5171
|
+
function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4801
5172
|
if (json == null) {
|
|
4802
5173
|
return json;
|
|
4803
5174
|
}
|
|
4804
5175
|
return {
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
CatalogPriceTierResponseDataFromJSON
|
|
5176
|
+
bundleType: BillingCreditBundleTypeFromJSON(json["bundle_type"]),
|
|
5177
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5178
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5179
|
+
creditId: json["credit_id"],
|
|
5180
|
+
creditName: json["credit_name"],
|
|
5181
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5182
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5183
|
+
currencyPrices: json["currency_prices"].map(
|
|
5184
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
4815
5185
|
),
|
|
4816
|
-
|
|
4817
|
-
|
|
5186
|
+
expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
5187
|
+
expiryUnit: BillingCreditExpiryUnitFromJSON(json["expiry_unit"]),
|
|
5188
|
+
expiryUnitCount: json["expiry_unit_count"] == null ? void 0 : json["expiry_unit_count"],
|
|
5189
|
+
id: json["id"],
|
|
5190
|
+
name: json["name"],
|
|
5191
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
5192
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"],
|
|
5193
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
5194
|
+
};
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
// src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
|
|
5198
|
+
function CatalogCustomPlanCTAResponseDataFromJSON(json) {
|
|
5199
|
+
return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
|
|
5200
|
+
}
|
|
5201
|
+
function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5202
|
+
if (json == null) {
|
|
5203
|
+
return json;
|
|
5204
|
+
}
|
|
5205
|
+
return {
|
|
5206
|
+
ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
|
|
5207
|
+
ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
|
|
5208
|
+
priceText: json["price_text"] == null ? void 0 : json["price_text"]
|
|
4818
5209
|
};
|
|
4819
5210
|
}
|
|
4820
5211
|
|
|
@@ -4988,26 +5379,6 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
4988
5379
|
};
|
|
4989
5380
|
}
|
|
4990
5381
|
|
|
4991
|
-
// src/api/checkoutexternal/models/ChargeType.ts
|
|
4992
|
-
function ChargeTypeFromJSON(json) {
|
|
4993
|
-
return ChargeTypeFromJSONTyped(json, false);
|
|
4994
|
-
}
|
|
4995
|
-
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
4996
|
-
return json;
|
|
4997
|
-
}
|
|
4998
|
-
|
|
4999
|
-
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
5000
|
-
var CheckoutBundlePurchaseBehavior = {
|
|
5001
|
-
Individual: "individual",
|
|
5002
|
-
Quantity: "quantity"
|
|
5003
|
-
};
|
|
5004
|
-
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
5005
|
-
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
5006
|
-
}
|
|
5007
|
-
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5008
|
-
return json;
|
|
5009
|
-
}
|
|
5010
|
-
|
|
5011
5382
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
5012
5383
|
function CheckoutPriceSnapshotFromJSON(json) {
|
|
5013
5384
|
return CheckoutPriceSnapshotFromJSONTyped(json, false);
|
|
@@ -5023,6 +5394,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5023
5394
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5024
5395
|
newCharges: json["new_charges"],
|
|
5025
5396
|
optInRequired: json["opt_in_required"],
|
|
5397
|
+
optInText: json["opt_in_text"] == null ? void 0 : json["opt_in_text"],
|
|
5398
|
+
optInTitle: json["opt_in_title"] == null ? void 0 : json["opt_in_title"],
|
|
5026
5399
|
paymentMethodRequired: json["payment_method_required"],
|
|
5027
5400
|
percentOff: json["percent_off"],
|
|
5028
5401
|
periodStart: new Date(json["period_start"]),
|
|
@@ -5044,6 +5417,17 @@ function CheckoutStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5044
5417
|
return json;
|
|
5045
5418
|
}
|
|
5046
5419
|
|
|
5420
|
+
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5421
|
+
function CheckoutIntentFromJSON(json) {
|
|
5422
|
+
return CheckoutIntentFromJSONTyped(json, false);
|
|
5423
|
+
}
|
|
5424
|
+
function CheckoutIntentFromJSONTyped(json, ignoreDiscriminator) {
|
|
5425
|
+
return json;
|
|
5426
|
+
}
|
|
5427
|
+
function CheckoutIntentToJSON(value) {
|
|
5428
|
+
return value;
|
|
5429
|
+
}
|
|
5430
|
+
|
|
5047
5431
|
// src/api/checkoutexternal/models/CheckoutSelectionsResponseData.ts
|
|
5048
5432
|
function CheckoutSelectionsResponseDataFromJSON(json) {
|
|
5049
5433
|
return CheckoutSelectionsResponseDataFromJSONTyped(json, false);
|
|
@@ -5064,9 +5448,11 @@ function CheckoutSelectionsResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5064
5448
|
creditBundles: json["credit_bundles"].map(
|
|
5065
5449
|
UpdateCreditBundleRequestBodyFromJSON
|
|
5066
5450
|
),
|
|
5451
|
+
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
5067
5452
|
customFieldValues: json["custom_field_values"].map(
|
|
5068
5453
|
CheckoutFieldValueFromJSON
|
|
5069
5454
|
),
|
|
5455
|
+
intent: CheckoutIntentFromJSON(json["intent"]),
|
|
5070
5456
|
newPlanId: json["new_plan_id"] == null ? void 0 : json["new_plan_id"],
|
|
5071
5457
|
newPriceId: json["new_price_id"] == null ? void 0 : json["new_price_id"],
|
|
5072
5458
|
optInAccepted: json["opt_in_accepted"] == null ? void 0 : json["opt_in_accepted"],
|
|
@@ -5166,11 +5552,6 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5166
5552
|
};
|
|
5167
5553
|
}
|
|
5168
5554
|
|
|
5169
|
-
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5170
|
-
function CheckoutIntentToJSON(value) {
|
|
5171
|
-
return value;
|
|
5172
|
-
}
|
|
5173
|
-
|
|
5174
5555
|
// src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
|
|
5175
5556
|
function ScheduledDowngradeConfigBehaviorFromJSON(json) {
|
|
5176
5557
|
return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
|
|
@@ -5275,43 +5656,194 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5275
5656
|
};
|
|
5276
5657
|
}
|
|
5277
5658
|
|
|
5278
|
-
// src/api/checkoutexternal/models/
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5659
|
+
// src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
|
|
5660
|
+
function CompanyBillingProfileResponseDataFromJSON(json) {
|
|
5661
|
+
return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
|
|
5662
|
+
}
|
|
5663
|
+
function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5664
|
+
if (json == null) {
|
|
5665
|
+
return json;
|
|
5666
|
+
}
|
|
5667
|
+
return {
|
|
5668
|
+
accountId: json["account_id"],
|
|
5669
|
+
billingCustomerId: json["billing_customer_id"] == null ? void 0 : json["billing_customer_id"],
|
|
5670
|
+
collectionMethod: BillingCollectionMethodFromJSON(
|
|
5671
|
+
json["collection_method"]
|
|
5672
|
+
),
|
|
5673
|
+
companyId: json["company_id"],
|
|
5674
|
+
createdAt: new Date(json["created_at"]),
|
|
5675
|
+
daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
|
|
5676
|
+
environmentId: json["environment_id"],
|
|
5677
|
+
id: json["id"],
|
|
5678
|
+
isDefault: json["is_default"],
|
|
5679
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
5680
|
+
paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
|
|
5681
|
+
prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5682
|
+
providerType: BillingProviderTypeFromJSON(json["provider_type"]),
|
|
5683
|
+
updatedAt: new Date(json["updated_at"])
|
|
5684
|
+
};
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5687
|
+
// src/api/checkoutexternal/models/CompanyCatalogResponseData.ts
|
|
5688
|
+
function CompanyCatalogResponseDataFromJSON(json) {
|
|
5689
|
+
return CompanyCatalogResponseDataFromJSONTyped(json, false);
|
|
5690
|
+
}
|
|
5691
|
+
function CompanyCatalogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5692
|
+
if (json == null) {
|
|
5693
|
+
return json;
|
|
5694
|
+
}
|
|
5695
|
+
return {
|
|
5696
|
+
addOns: json["add_ons"].map(
|
|
5697
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5698
|
+
),
|
|
5699
|
+
capabilities: CatalogCapabilitiesResponseDataFromJSON(json["capabilities"]),
|
|
5700
|
+
checkoutSettings: CatalogCheckoutSettingsResponseDataFromJSON(
|
|
5701
|
+
json["checkout_settings"]
|
|
5702
|
+
),
|
|
5703
|
+
creditBundles: json["credit_bundles"].map(
|
|
5704
|
+
CatalogCreditBundleResponseDataFromJSON
|
|
5705
|
+
),
|
|
5706
|
+
customPlanCta: json["custom_plan_cta"] == null ? void 0 : CatalogCustomPlanCTAResponseDataFromJSON(json["custom_plan_cta"]),
|
|
5707
|
+
defaultCurrency: CurrencyFromJSON(json["default_currency"]),
|
|
5708
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
5709
|
+
id: json["id"],
|
|
5710
|
+
name: json["name"],
|
|
5711
|
+
plans: json["plans"].map(
|
|
5712
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5713
|
+
),
|
|
5714
|
+
preventSelfServiceDowngrade: json["prevent_self_service_downgrade"],
|
|
5715
|
+
preventSelfServiceDowngradeButtonText: json["prevent_self_service_downgrade_button_text"] == null ? void 0 : json["prevent_self_service_downgrade_button_text"],
|
|
5716
|
+
preventSelfServiceDowngradeUrl: json["prevent_self_service_downgrade_url"] == null ? void 0 : json["prevent_self_service_downgrade_url"],
|
|
5717
|
+
pricingModel: json["pricing_model"] == null ? void 0 : json["pricing_model"],
|
|
5718
|
+
pricingUrl: json["pricing_url"] == null ? void 0 : json["pricing_url"],
|
|
5719
|
+
trialExpiryPlan: json["trial_expiry_plan"] == null ? void 0 : CatalogPlanRefResponseDataFromJSON(json["trial_expiry_plan"]),
|
|
5720
|
+
trialPaymentMethodRequired: json["trial_payment_method_required"] == null ? void 0 : json["trial_payment_method_required"]
|
|
5721
|
+
};
|
|
5722
|
+
}
|
|
5723
|
+
|
|
5724
|
+
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
5725
|
+
var CustomPlanActivationStrategy = {
|
|
5726
|
+
Payment: "on_payment",
|
|
5727
|
+
Publish: "on_publish"
|
|
5282
5728
|
};
|
|
5283
|
-
function
|
|
5284
|
-
return
|
|
5729
|
+
function CustomPlanActivationStrategyFromJSON(json) {
|
|
5730
|
+
return CustomPlanActivationStrategyFromJSONTyped(json, false);
|
|
5285
5731
|
}
|
|
5286
|
-
function
|
|
5732
|
+
function CustomPlanActivationStrategyFromJSONTyped(json, ignoreDiscriminator) {
|
|
5287
5733
|
return json;
|
|
5288
5734
|
}
|
|
5289
5735
|
|
|
5290
|
-
// src/api/checkoutexternal/models/
|
|
5291
|
-
function
|
|
5292
|
-
return
|
|
5736
|
+
// src/api/checkoutexternal/models/CompanyContextCustomPlanBillingResponseData.ts
|
|
5737
|
+
function CompanyContextCustomPlanBillingResponseDataFromJSON(json) {
|
|
5738
|
+
return CompanyContextCustomPlanBillingResponseDataFromJSONTyped(json, false);
|
|
5293
5739
|
}
|
|
5294
|
-
function
|
|
5740
|
+
function CompanyContextCustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5741
|
+
if (json == null) {
|
|
5742
|
+
return json;
|
|
5743
|
+
}
|
|
5744
|
+
return {
|
|
5745
|
+
activationStrategy: CustomPlanActivationStrategyFromJSON(
|
|
5746
|
+
json["activation_strategy"]
|
|
5747
|
+
),
|
|
5748
|
+
dueAt: new Date(json["due_at"]),
|
|
5749
|
+
invoiceUrl: json["invoice_url"] == null ? void 0 : json["invoice_url"],
|
|
5750
|
+
planId: json["plan_id"],
|
|
5751
|
+
planName: json["plan_name"] == null ? void 0 : json["plan_name"]
|
|
5752
|
+
};
|
|
5753
|
+
}
|
|
5754
|
+
|
|
5755
|
+
// src/api/checkoutexternal/models/CompanyContextPlanResponseData.ts
|
|
5756
|
+
function CompanyContextPlanResponseDataFromJSON(json) {
|
|
5757
|
+
return CompanyContextPlanResponseDataFromJSONTyped(json, false);
|
|
5758
|
+
}
|
|
5759
|
+
function CompanyContextPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5760
|
+
if (json == null) {
|
|
5761
|
+
return json;
|
|
5762
|
+
}
|
|
5763
|
+
return {
|
|
5764
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
5765
|
+
id: json["id"],
|
|
5766
|
+
includedCreditIds: json["included_credit_ids"],
|
|
5767
|
+
name: json["name"],
|
|
5768
|
+
period: json["period"] == null ? void 0 : json["period"],
|
|
5769
|
+
price: json["price"] == null ? void 0 : json["price"]
|
|
5770
|
+
};
|
|
5771
|
+
}
|
|
5772
|
+
|
|
5773
|
+
// src/api/checkoutexternal/models/CompanyContextScheduledDowngradeResponseData.ts
|
|
5774
|
+
function CompanyContextScheduledDowngradeResponseDataFromJSON(json) {
|
|
5775
|
+
return CompanyContextScheduledDowngradeResponseDataFromJSONTyped(json, false);
|
|
5776
|
+
}
|
|
5777
|
+
function CompanyContextScheduledDowngradeResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5778
|
+
if (json == null) {
|
|
5779
|
+
return json;
|
|
5780
|
+
}
|
|
5781
|
+
return {
|
|
5782
|
+
fromPlanId: json["from_plan_id"],
|
|
5783
|
+
fromPlanName: json["from_plan_name"],
|
|
5784
|
+
toPlanId: json["to_plan_id"],
|
|
5785
|
+
toPlanName: json["to_plan_name"]
|
|
5786
|
+
};
|
|
5787
|
+
}
|
|
5788
|
+
|
|
5789
|
+
// src/api/checkoutexternal/models/CompanyContextSubscriptionResponseData.ts
|
|
5790
|
+
function CompanyContextSubscriptionResponseDataFromJSON(json) {
|
|
5791
|
+
return CompanyContextSubscriptionResponseDataFromJSONTyped(json, false);
|
|
5792
|
+
}
|
|
5793
|
+
function CompanyContextSubscriptionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5794
|
+
if (json == null) {
|
|
5795
|
+
return json;
|
|
5796
|
+
}
|
|
5797
|
+
return {
|
|
5798
|
+
cancelAt: json["cancel_at"] == null ? void 0 : new Date(json["cancel_at"]),
|
|
5799
|
+
cancelAtPeriodEnd: json["cancel_at_period_end"],
|
|
5800
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5801
|
+
nextBillAt: json["next_bill_at"] == null ? void 0 : new Date(json["next_bill_at"]),
|
|
5802
|
+
period: json["period"] == null ? void 0 : json["period"],
|
|
5803
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
5804
|
+
status: json["status"],
|
|
5805
|
+
trialEnd: json["trial_end"] == null ? void 0 : new Date(json["trial_end"])
|
|
5806
|
+
};
|
|
5807
|
+
}
|
|
5808
|
+
|
|
5809
|
+
// src/api/checkoutexternal/models/CompanyContextResponseData.ts
|
|
5810
|
+
function CompanyContextResponseDataFromJSON(json) {
|
|
5811
|
+
return CompanyContextResponseDataFromJSONTyped(json, false);
|
|
5812
|
+
}
|
|
5813
|
+
function CompanyContextResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5814
|
+
if (json == null) {
|
|
5815
|
+
return json;
|
|
5816
|
+
}
|
|
5817
|
+
return {
|
|
5818
|
+
addOns: json["add_ons"].map(
|
|
5819
|
+
CompanyContextPlanResponseDataFromJSON
|
|
5820
|
+
),
|
|
5821
|
+
customPlanBilling: json["custom_plan_billing"] == null ? void 0 : CompanyContextCustomPlanBillingResponseDataFromJSON(
|
|
5822
|
+
json["custom_plan_billing"]
|
|
5823
|
+
),
|
|
5824
|
+
id: json["id"],
|
|
5825
|
+
name: json["name"],
|
|
5826
|
+
plan: json["plan"] == null ? void 0 : CompanyContextPlanResponseDataFromJSON(json["plan"]),
|
|
5827
|
+
scheduledDowngrade: json["scheduled_downgrade"] == null ? void 0 : CompanyContextScheduledDowngradeResponseDataFromJSON(
|
|
5828
|
+
json["scheduled_downgrade"]
|
|
5829
|
+
),
|
|
5830
|
+
subscription: json["subscription"] == null ? void 0 : CompanyContextSubscriptionResponseDataFromJSON(json["subscription"])
|
|
5831
|
+
};
|
|
5832
|
+
}
|
|
5833
|
+
|
|
5834
|
+
// src/api/checkoutexternal/models/CompanyCreditAutoTopupResponseData.ts
|
|
5835
|
+
function CompanyCreditAutoTopupResponseDataFromJSON(json) {
|
|
5836
|
+
return CompanyCreditAutoTopupResponseDataFromJSONTyped(json, false);
|
|
5837
|
+
}
|
|
5838
|
+
function CompanyCreditAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5295
5839
|
if (json == null) {
|
|
5296
5840
|
return json;
|
|
5297
5841
|
}
|
|
5298
5842
|
return {
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
),
|
|
5304
|
-
companyId: json["company_id"],
|
|
5305
|
-
createdAt: new Date(json["created_at"]),
|
|
5306
|
-
daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
|
|
5307
|
-
environmentId: json["environment_id"],
|
|
5308
|
-
id: json["id"],
|
|
5309
|
-
isDefault: json["is_default"],
|
|
5310
|
-
name: json["name"] == null ? void 0 : json["name"],
|
|
5311
|
-
paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
|
|
5312
|
-
prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5313
|
-
providerType: BillingProviderTypeFromJSON(json["provider_type"]),
|
|
5314
|
-
updatedAt: new Date(json["updated_at"])
|
|
5843
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
5844
|
+
enabled: json["enabled"],
|
|
5845
|
+
selfService: json["self_service"],
|
|
5846
|
+
thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"]
|
|
5315
5847
|
};
|
|
5316
5848
|
}
|
|
5317
5849
|
|
|
@@ -5372,6 +5904,7 @@ function CompanyCreditBalanceResponseDataFromJSONTyped(json, ignoreDiscriminator
|
|
|
5372
5904
|
return json;
|
|
5373
5905
|
}
|
|
5374
5906
|
return {
|
|
5907
|
+
autoTopup: json["auto_topup"] == null ? void 0 : CompanyCreditAutoTopupResponseDataFromJSON(json["auto_topup"]),
|
|
5375
5908
|
composition: json["composition"] == null ? void 0 : CompanyCreditCompositionResponseDataFromJSON(json["composition"]),
|
|
5376
5909
|
creditDescription: json["credit_description"],
|
|
5377
5910
|
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
@@ -5578,30 +6111,6 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5578
6111
|
};
|
|
5579
6112
|
}
|
|
5580
6113
|
|
|
5581
|
-
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
5582
|
-
var EntitlementValueType = {
|
|
5583
|
-
Boolean: "boolean",
|
|
5584
|
-
Credit: "credit",
|
|
5585
|
-
Numeric: "numeric",
|
|
5586
|
-
Trait: "trait",
|
|
5587
|
-
Unknown: "unknown",
|
|
5588
|
-
Unlimited: "unlimited"
|
|
5589
|
-
};
|
|
5590
|
-
function EntitlementValueTypeFromJSON(json) {
|
|
5591
|
-
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
5592
|
-
}
|
|
5593
|
-
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5594
|
-
return json;
|
|
5595
|
-
}
|
|
5596
|
-
|
|
5597
|
-
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5598
|
-
function MetricPeriodMonthResetFromJSON(json) {
|
|
5599
|
-
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5600
|
-
}
|
|
5601
|
-
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5602
|
-
return json;
|
|
5603
|
-
}
|
|
5604
|
-
|
|
5605
6114
|
// src/api/checkoutexternal/models/WarningTier.ts
|
|
5606
6115
|
function WarningTierFromJSON(json) {
|
|
5607
6116
|
return WarningTierFromJSONTyped(json, false);
|
|
@@ -5616,14 +6125,6 @@ function WarningTierFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5616
6125
|
};
|
|
5617
6126
|
}
|
|
5618
6127
|
|
|
5619
|
-
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5620
|
-
function MetricPeriodFromJSON(json) {
|
|
5621
|
-
return MetricPeriodFromJSONTyped(json, false);
|
|
5622
|
-
}
|
|
5623
|
-
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5624
|
-
return json;
|
|
5625
|
-
}
|
|
5626
|
-
|
|
5627
6128
|
// src/api/checkoutexternal/models/FeatureEntitlement.ts
|
|
5628
6129
|
function FeatureEntitlementFromJSON(json) {
|
|
5629
6130
|
return FeatureEntitlementFromJSONTyped(json, false);
|
|
@@ -5648,6 +6149,7 @@ function FeatureEntitlementFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5648
6149
|
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
5649
6150
|
metricResetAt: json["metric_reset_at"] == null ? void 0 : new Date(json["metric_reset_at"]),
|
|
5650
6151
|
monthReset: json["month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["month_reset"]),
|
|
6152
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
5651
6153
|
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
5652
6154
|
usage: json["usage"] == null ? void 0 : json["usage"],
|
|
5653
6155
|
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
@@ -5732,18 +6234,6 @@ function EntityTraitDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5732
6234
|
};
|
|
5733
6235
|
}
|
|
5734
6236
|
|
|
5735
|
-
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
5736
|
-
var CustomPlanActivationStrategy = {
|
|
5737
|
-
Payment: "on_payment",
|
|
5738
|
-
Publish: "on_publish"
|
|
5739
|
-
};
|
|
5740
|
-
function CustomPlanActivationStrategyFromJSON(json) {
|
|
5741
|
-
return CustomPlanActivationStrategyFromJSONTyped(json, false);
|
|
5742
|
-
}
|
|
5743
|
-
function CustomPlanActivationStrategyFromJSONTyped(json, ignoreDiscriminator) {
|
|
5744
|
-
return json;
|
|
5745
|
-
}
|
|
5746
|
-
|
|
5747
6237
|
// src/api/checkoutexternal/models/CustomPlanBillingStatus.ts
|
|
5748
6238
|
var CustomPlanBillingStatus = {
|
|
5749
6239
|
Active: "active",
|
|
@@ -5780,6 +6270,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5780
6270
|
),
|
|
5781
6271
|
billingCycleAnchor: json["billing_cycle_anchor"] == null ? void 0 : new Date(json["billing_cycle_anchor"]),
|
|
5782
6272
|
billingStartDate: json["billing_start_date"] == null ? void 0 : new Date(json["billing_start_date"]),
|
|
6273
|
+
checkoutId: json["checkout_id"] == null ? void 0 : json["checkout_id"],
|
|
5783
6274
|
companyId: json["company_id"],
|
|
5784
6275
|
createdAt: new Date(json["created_at"]),
|
|
5785
6276
|
daysUntilDue: json["days_until_due"],
|
|
@@ -5789,6 +6280,9 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5789
6280
|
paidAt: json["paid_at"] == null ? void 0 : new Date(json["paid_at"]),
|
|
5790
6281
|
planBillingSource: PlanBillingSourceFromJSON(json["plan_billing_source"]),
|
|
5791
6282
|
planId: json["plan_id"],
|
|
6283
|
+
problems: json["problems"].map(
|
|
6284
|
+
CheckoutProblemResponseDataFromJSON
|
|
6285
|
+
),
|
|
5792
6286
|
prorateFirstPeriod: json["prorate_first_period"] == null ? void 0 : json["prorate_first_period"],
|
|
5793
6287
|
publishedAt: json["published_at"] == null ? void 0 : new Date(json["published_at"]),
|
|
5794
6288
|
sendInvoice: json["send_invoice"],
|
|
@@ -5949,6 +6443,7 @@ function ConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5949
6443
|
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
5950
6444
|
metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
|
|
5951
6445
|
operator: ComparableOperatorFromJSON(json["operator"]),
|
|
6446
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
5952
6447
|
resourceIds: json["resource_ids"],
|
|
5953
6448
|
traitDefinition: json["trait_definition"] == null ? void 0 : TraitDefinitionFromJSON(json["trait_definition"]),
|
|
5954
6449
|
traitValue: json["trait_value"]
|
|
@@ -6075,35 +6570,6 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6075
6570
|
};
|
|
6076
6571
|
}
|
|
6077
6572
|
|
|
6078
|
-
// src/api/checkoutexternal/models/FeatureType.ts
|
|
6079
|
-
var FeatureType = {
|
|
6080
|
-
Boolean: "boolean",
|
|
6081
|
-
Event: "event",
|
|
6082
|
-
License: "license",
|
|
6083
|
-
Trait: "trait"
|
|
6084
|
-
};
|
|
6085
|
-
function FeatureTypeFromJSON(json) {
|
|
6086
|
-
return FeatureTypeFromJSONTyped(json, false);
|
|
6087
|
-
}
|
|
6088
|
-
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6089
|
-
return json;
|
|
6090
|
-
}
|
|
6091
|
-
|
|
6092
|
-
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6093
|
-
var EntitlementPriceBehavior = {
|
|
6094
|
-
CreditBurndown: "credit_burndown",
|
|
6095
|
-
Overage: "overage",
|
|
6096
|
-
PayAsYouGo: "pay_as_you_go",
|
|
6097
|
-
PayInAdvance: "pay_in_advance",
|
|
6098
|
-
Tier: "tier"
|
|
6099
|
-
};
|
|
6100
|
-
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6101
|
-
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6102
|
-
}
|
|
6103
|
-
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6104
|
-
return json;
|
|
6105
|
-
}
|
|
6106
|
-
|
|
6107
6573
|
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6108
6574
|
function EntitlementTypeFromJSON(json) {
|
|
6109
6575
|
return EntitlementTypeFromJSONTyped(json, false);
|
|
@@ -6386,26 +6852,6 @@ function CompanyPaymentMethodsResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
6386
6852
|
};
|
|
6387
6853
|
}
|
|
6388
6854
|
|
|
6389
|
-
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
6390
|
-
var CompanyPlanInvalidReason = {
|
|
6391
|
-
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
6392
|
-
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
6393
|
-
};
|
|
6394
|
-
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
6395
|
-
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
6396
|
-
}
|
|
6397
|
-
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
6398
|
-
return json;
|
|
6399
|
-
}
|
|
6400
|
-
|
|
6401
|
-
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
6402
|
-
function PlanPriceCadenceFromJSON(json) {
|
|
6403
|
-
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
6404
|
-
}
|
|
6405
|
-
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
6406
|
-
return json;
|
|
6407
|
-
}
|
|
6408
|
-
|
|
6409
6855
|
// src/api/checkoutexternal/models/EstimatedPlanTotal.ts
|
|
6410
6856
|
function EstimatedPlanTotalFromJSON(json) {
|
|
6411
6857
|
return EstimatedPlanTotalFromJSONTyped(json, false);
|
|
@@ -6886,6 +7332,20 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6886
7332
|
};
|
|
6887
7333
|
}
|
|
6888
7334
|
|
|
7335
|
+
// src/api/checkoutexternal/models/PlanCreditVisibility.ts
|
|
7336
|
+
function PlanCreditVisibilityFromJSON(json) {
|
|
7337
|
+
return PlanCreditVisibilityFromJSONTyped(json, false);
|
|
7338
|
+
}
|
|
7339
|
+
function PlanCreditVisibilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
7340
|
+
if (json == null) {
|
|
7341
|
+
return json;
|
|
7342
|
+
}
|
|
7343
|
+
return {
|
|
7344
|
+
creditId: json["credit_id"],
|
|
7345
|
+
visible: json["visible"]
|
|
7346
|
+
};
|
|
7347
|
+
}
|
|
7348
|
+
|
|
6889
7349
|
// src/api/checkoutexternal/models/CreditUsageAggregation.ts
|
|
6890
7350
|
function CreditUsageAggregationFromJSON(json) {
|
|
6891
7351
|
return CreditUsageAggregationFromJSONTyped(json, false);
|
|
@@ -6999,6 +7459,9 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6999
7459
|
controlledBy: BillingProviderTypeFromJSON(json["controlled_by"]),
|
|
7000
7460
|
copiedFromPlanId: json["copied_from_plan_id"] == null ? void 0 : json["copied_from_plan_id"],
|
|
7001
7461
|
createdAt: new Date(json["created_at"]),
|
|
7462
|
+
creditVisibility: json["credit_visibility"] == null ? void 0 : json["credit_visibility"].map(
|
|
7463
|
+
PlanCreditVisibilityFromJSON
|
|
7464
|
+
),
|
|
7002
7465
|
credits: json["credits"].map(
|
|
7003
7466
|
BillingCreditResponseDataFromJSON
|
|
7004
7467
|
),
|
|
@@ -7718,6 +8181,34 @@ function FinalizeCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7718
8181
|
};
|
|
7719
8182
|
}
|
|
7720
8183
|
|
|
8184
|
+
// src/api/checkoutexternal/models/GetCatalogViewByIDResponse.ts
|
|
8185
|
+
function GetCatalogViewByIDResponseFromJSON(json) {
|
|
8186
|
+
return GetCatalogViewByIDResponseFromJSONTyped(json, false);
|
|
8187
|
+
}
|
|
8188
|
+
function GetCatalogViewByIDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8189
|
+
if (json == null) {
|
|
8190
|
+
return json;
|
|
8191
|
+
}
|
|
8192
|
+
return {
|
|
8193
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8194
|
+
params: json["params"]
|
|
8195
|
+
};
|
|
8196
|
+
}
|
|
8197
|
+
|
|
8198
|
+
// src/api/checkoutexternal/models/GetCatalogViewResponse.ts
|
|
8199
|
+
function GetCatalogViewResponseFromJSON(json) {
|
|
8200
|
+
return GetCatalogViewResponseFromJSONTyped(json, false);
|
|
8201
|
+
}
|
|
8202
|
+
function GetCatalogViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8203
|
+
if (json == null) {
|
|
8204
|
+
return json;
|
|
8205
|
+
}
|
|
8206
|
+
return {
|
|
8207
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8208
|
+
params: json["params"]
|
|
8209
|
+
};
|
|
8210
|
+
}
|
|
8211
|
+
|
|
7721
8212
|
// src/api/checkoutexternal/models/GetCheckoutResponse.ts
|
|
7722
8213
|
function GetCheckoutResponseFromJSON(json) {
|
|
7723
8214
|
return GetCheckoutResponseFromJSONTyped(json, false);
|
|
@@ -7886,6 +8377,20 @@ function GetCompanyPaymentMethodsResponseFromJSONTyped(json, ignoreDiscriminator
|
|
|
7886
8377
|
};
|
|
7887
8378
|
}
|
|
7888
8379
|
|
|
8380
|
+
// src/api/checkoutexternal/models/GetCompanyResponse.ts
|
|
8381
|
+
function GetCompanyResponseFromJSON(json) {
|
|
8382
|
+
return GetCompanyResponseFromJSONTyped(json, false);
|
|
8383
|
+
}
|
|
8384
|
+
function GetCompanyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8385
|
+
if (json == null) {
|
|
8386
|
+
return json;
|
|
8387
|
+
}
|
|
8388
|
+
return {
|
|
8389
|
+
data: CompanyContextResponseDataFromJSON(json["data"]),
|
|
8390
|
+
params: json["params"]
|
|
8391
|
+
};
|
|
8392
|
+
}
|
|
8393
|
+
|
|
7889
8394
|
// src/api/checkoutexternal/models/GetCompanyUpcomingInvoiceResponse.ts
|
|
7890
8395
|
function GetCompanyUpcomingInvoiceResponseFromJSON(json) {
|
|
7891
8396
|
return GetCompanyUpcomingInvoiceResponseFromJSONTyped(json, false);
|
|
@@ -8664,6 +9169,82 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8664
9169
|
);
|
|
8665
9170
|
return await response.value();
|
|
8666
9171
|
}
|
|
9172
|
+
/**
|
|
9173
|
+
* Get catalog view
|
|
9174
|
+
*/
|
|
9175
|
+
async getCatalogViewRaw(initOverrides) {
|
|
9176
|
+
const queryParameters = {};
|
|
9177
|
+
const headerParameters = {};
|
|
9178
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9179
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9180
|
+
"X-Schematic-Api-Key"
|
|
9181
|
+
);
|
|
9182
|
+
}
|
|
9183
|
+
const response = await this.request(
|
|
9184
|
+
{
|
|
9185
|
+
path: `/catalog/view`,
|
|
9186
|
+
method: "GET",
|
|
9187
|
+
headers: headerParameters,
|
|
9188
|
+
query: queryParameters
|
|
9189
|
+
},
|
|
9190
|
+
initOverrides
|
|
9191
|
+
);
|
|
9192
|
+
return new JSONApiResponse(
|
|
9193
|
+
response,
|
|
9194
|
+
(jsonValue) => GetCatalogViewResponseFromJSON(jsonValue)
|
|
9195
|
+
);
|
|
9196
|
+
}
|
|
9197
|
+
/**
|
|
9198
|
+
* Get catalog view
|
|
9199
|
+
*/
|
|
9200
|
+
async getCatalogView(initOverrides) {
|
|
9201
|
+
const response = await this.getCatalogViewRaw(initOverrides);
|
|
9202
|
+
return await response.value();
|
|
9203
|
+
}
|
|
9204
|
+
/**
|
|
9205
|
+
* Get catalog view by ID
|
|
9206
|
+
*/
|
|
9207
|
+
async getCatalogViewByIDRaw(requestParameters, initOverrides) {
|
|
9208
|
+
if (requestParameters["catalogId"] == null) {
|
|
9209
|
+
throw new RequiredError(
|
|
9210
|
+
"catalogId",
|
|
9211
|
+
'Required parameter "catalogId" was null or undefined when calling getCatalogViewByID().'
|
|
9212
|
+
);
|
|
9213
|
+
}
|
|
9214
|
+
const queryParameters = {};
|
|
9215
|
+
const headerParameters = {};
|
|
9216
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9217
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9218
|
+
"X-Schematic-Api-Key"
|
|
9219
|
+
);
|
|
9220
|
+
}
|
|
9221
|
+
const response = await this.request(
|
|
9222
|
+
{
|
|
9223
|
+
path: `/catalogs/{catalog_id}/view`.replace(
|
|
9224
|
+
`{${"catalog_id"}}`,
|
|
9225
|
+
encodeURIComponent(String(requestParameters["catalogId"]))
|
|
9226
|
+
),
|
|
9227
|
+
method: "GET",
|
|
9228
|
+
headers: headerParameters,
|
|
9229
|
+
query: queryParameters
|
|
9230
|
+
},
|
|
9231
|
+
initOverrides
|
|
9232
|
+
);
|
|
9233
|
+
return new JSONApiResponse(
|
|
9234
|
+
response,
|
|
9235
|
+
(jsonValue) => GetCatalogViewByIDResponseFromJSON(jsonValue)
|
|
9236
|
+
);
|
|
9237
|
+
}
|
|
9238
|
+
/**
|
|
9239
|
+
* Get catalog view by ID
|
|
9240
|
+
*/
|
|
9241
|
+
async getCatalogViewByID(requestParameters, initOverrides) {
|
|
9242
|
+
const response = await this.getCatalogViewByIDRaw(
|
|
9243
|
+
requestParameters,
|
|
9244
|
+
initOverrides
|
|
9245
|
+
);
|
|
9246
|
+
return await response.value();
|
|
9247
|
+
}
|
|
8667
9248
|
/**
|
|
8668
9249
|
* Get checkout
|
|
8669
9250
|
*/
|
|
@@ -8740,6 +9321,38 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8740
9321
|
const response = await this.getCheckoutTaxIDRaw(initOverrides);
|
|
8741
9322
|
return await response.value();
|
|
8742
9323
|
}
|
|
9324
|
+
/**
|
|
9325
|
+
* Get company
|
|
9326
|
+
*/
|
|
9327
|
+
async getCompanyRaw(initOverrides) {
|
|
9328
|
+
const queryParameters = {};
|
|
9329
|
+
const headerParameters = {};
|
|
9330
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9331
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9332
|
+
"X-Schematic-Api-Key"
|
|
9333
|
+
);
|
|
9334
|
+
}
|
|
9335
|
+
const response = await this.request(
|
|
9336
|
+
{
|
|
9337
|
+
path: `/company`,
|
|
9338
|
+
method: "GET",
|
|
9339
|
+
headers: headerParameters,
|
|
9340
|
+
query: queryParameters
|
|
9341
|
+
},
|
|
9342
|
+
initOverrides
|
|
9343
|
+
);
|
|
9344
|
+
return new JSONApiResponse(
|
|
9345
|
+
response,
|
|
9346
|
+
(jsonValue) => GetCompanyResponseFromJSON(jsonValue)
|
|
9347
|
+
);
|
|
9348
|
+
}
|
|
9349
|
+
/**
|
|
9350
|
+
* Get company
|
|
9351
|
+
*/
|
|
9352
|
+
async getCompany(initOverrides) {
|
|
9353
|
+
const response = await this.getCompanyRaw(initOverrides);
|
|
9354
|
+
return await response.value();
|
|
9355
|
+
}
|
|
8743
9356
|
/**
|
|
8744
9357
|
* Get company credit balances
|
|
8745
9358
|
*/
|
|
@@ -9890,9 +10503,9 @@ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
9890
10503
|
|
|
9891
10504
|
// src/api/componentspublic/models/BillingCreditAutoTopupAvailability.ts
|
|
9892
10505
|
function BillingCreditAutoTopupAvailabilityFromJSON2(json) {
|
|
9893
|
-
return
|
|
10506
|
+
return BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, false);
|
|
9894
10507
|
}
|
|
9895
|
-
function
|
|
10508
|
+
function BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, ignoreDiscriminator) {
|
|
9896
10509
|
return json;
|
|
9897
10510
|
}
|
|
9898
10511
|
|
|
@@ -9906,17 +10519,17 @@ function BillingCreditBurnStrategyFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
9906
10519
|
|
|
9907
10520
|
// src/api/componentspublic/models/BillingCreditExpiryType.ts
|
|
9908
10521
|
function BillingCreditExpiryTypeFromJSON2(json) {
|
|
9909
|
-
return
|
|
10522
|
+
return BillingCreditExpiryTypeFromJSONTyped8(json, false);
|
|
9910
10523
|
}
|
|
9911
|
-
function
|
|
10524
|
+
function BillingCreditExpiryTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
9912
10525
|
return json;
|
|
9913
10526
|
}
|
|
9914
10527
|
|
|
9915
10528
|
// src/api/componentspublic/models/BillingCreditExpiryUnit.ts
|
|
9916
10529
|
function BillingCreditExpiryUnitFromJSON2(json) {
|
|
9917
|
-
return
|
|
10530
|
+
return BillingCreditExpiryUnitFromJSONTyped10(json, false);
|
|
9918
10531
|
}
|
|
9919
|
-
function
|
|
10532
|
+
function BillingCreditExpiryUnitFromJSONTyped10(json, ignoreDiscriminator) {
|
|
9920
10533
|
return json;
|
|
9921
10534
|
}
|
|
9922
10535
|
|
|
@@ -9930,9 +10543,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
9930
10543
|
|
|
9931
10544
|
// src/api/componentspublic/models/Currency.ts
|
|
9932
10545
|
function CurrencyFromJSON2(json) {
|
|
9933
|
-
return
|
|
10546
|
+
return CurrencyFromJSONTyped38(json, false);
|
|
9934
10547
|
}
|
|
9935
|
-
function
|
|
10548
|
+
function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
|
|
9936
10549
|
return json;
|
|
9937
10550
|
}
|
|
9938
10551
|
|
|
@@ -10314,41 +10927,41 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
|
|
|
10314
10927
|
|
|
10315
10928
|
// src/api/componentspublic/models/BillingStrategy.ts
|
|
10316
10929
|
function BillingStrategyFromJSON2(json) {
|
|
10317
|
-
return
|
|
10930
|
+
return BillingStrategyFromJSONTyped7(json, false);
|
|
10318
10931
|
}
|
|
10319
|
-
function
|
|
10932
|
+
function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10320
10933
|
return json;
|
|
10321
10934
|
}
|
|
10322
10935
|
|
|
10323
10936
|
// src/api/componentspublic/models/ChargeType.ts
|
|
10324
10937
|
function ChargeTypeFromJSON2(json) {
|
|
10325
|
-
return
|
|
10938
|
+
return ChargeTypeFromJSONTyped7(json, false);
|
|
10326
10939
|
}
|
|
10327
|
-
function
|
|
10940
|
+
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10328
10941
|
return json;
|
|
10329
10942
|
}
|
|
10330
10943
|
|
|
10331
10944
|
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
10332
10945
|
function EntitlementValueTypeFromJSON2(json) {
|
|
10333
|
-
return
|
|
10946
|
+
return EntitlementValueTypeFromJSONTyped10(json, false);
|
|
10334
10947
|
}
|
|
10335
|
-
function
|
|
10948
|
+
function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10336
10949
|
return json;
|
|
10337
10950
|
}
|
|
10338
10951
|
|
|
10339
10952
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
10340
10953
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
10341
|
-
return
|
|
10954
|
+
return MetricPeriodMonthResetFromJSONTyped14(json, false);
|
|
10342
10955
|
}
|
|
10343
|
-
function
|
|
10956
|
+
function MetricPeriodMonthResetFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10344
10957
|
return json;
|
|
10345
10958
|
}
|
|
10346
10959
|
|
|
10347
10960
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
10348
10961
|
function MetricPeriodFromJSON2(json) {
|
|
10349
|
-
return
|
|
10962
|
+
return MetricPeriodFromJSONTyped14(json, false);
|
|
10350
10963
|
}
|
|
10351
|
-
function
|
|
10964
|
+
function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10352
10965
|
return json;
|
|
10353
10966
|
}
|
|
10354
10967
|
|
|
@@ -10456,9 +11069,9 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
10456
11069
|
|
|
10457
11070
|
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
10458
11071
|
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
10459
|
-
return
|
|
11072
|
+
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
10460
11073
|
}
|
|
10461
|
-
function
|
|
11074
|
+
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10462
11075
|
return json;
|
|
10463
11076
|
}
|
|
10464
11077
|
|
|
@@ -10525,9 +11138,9 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10525
11138
|
|
|
10526
11139
|
// src/api/componentspublic/models/FeatureType.ts
|
|
10527
11140
|
function FeatureTypeFromJSON2(json) {
|
|
10528
|
-
return
|
|
11141
|
+
return FeatureTypeFromJSONTyped7(json, false);
|
|
10529
11142
|
}
|
|
10530
|
-
function
|
|
11143
|
+
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10531
11144
|
return json;
|
|
10532
11145
|
}
|
|
10533
11146
|
|
|
@@ -10883,9 +11496,9 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
10883
11496
|
|
|
10884
11497
|
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
10885
11498
|
function PlanPriceCadenceFromJSON2(json) {
|
|
10886
|
-
return
|
|
11499
|
+
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
10887
11500
|
}
|
|
10888
|
-
function
|
|
11501
|
+
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10889
11502
|
return json;
|
|
10890
11503
|
}
|
|
10891
11504
|
|
|
@@ -11007,6 +11620,20 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
11007
11620
|
};
|
|
11008
11621
|
}
|
|
11009
11622
|
|
|
11623
|
+
// src/api/componentspublic/models/PlanCreditVisibility.ts
|
|
11624
|
+
function PlanCreditVisibilityFromJSON2(json) {
|
|
11625
|
+
return PlanCreditVisibilityFromJSONTyped3(json, false);
|
|
11626
|
+
}
|
|
11627
|
+
function PlanCreditVisibilityFromJSONTyped3(json, ignoreDiscriminator) {
|
|
11628
|
+
if (json == null) {
|
|
11629
|
+
return json;
|
|
11630
|
+
}
|
|
11631
|
+
return {
|
|
11632
|
+
creditId: json["credit_id"],
|
|
11633
|
+
visible: json["visible"]
|
|
11634
|
+
};
|
|
11635
|
+
}
|
|
11636
|
+
|
|
11010
11637
|
// src/api/componentspublic/models/PlanViewPublicResponseData.ts
|
|
11011
11638
|
function PlanViewPublicResponseDataFromJSON(json) {
|
|
11012
11639
|
return PlanViewPublicResponseDataFromJSONTyped(json, false);
|
|
@@ -11038,6 +11665,9 @@ function PlanViewPublicResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11038
11665
|
controlledBy: BillingProviderTypeFromJSON2(json["controlled_by"]),
|
|
11039
11666
|
copiedFromPlanId: json["copied_from_plan_id"] == null ? void 0 : json["copied_from_plan_id"],
|
|
11040
11667
|
createdAt: new Date(json["created_at"]),
|
|
11668
|
+
creditVisibility: json["credit_visibility"] == null ? void 0 : json["credit_visibility"].map(
|
|
11669
|
+
PlanCreditVisibilityFromJSON2
|
|
11670
|
+
),
|
|
11041
11671
|
credits: json["credits"].map(
|
|
11042
11672
|
BillingCreditResponseDataFromJSON2
|
|
11043
11673
|
),
|
|
@@ -14923,6 +15553,17 @@ function getResetCadencePeriod(cadence) {
|
|
|
14923
15553
|
function isPerLicenseGrant(grant) {
|
|
14924
15554
|
return grant.scaling === PlanCreditGrantScaling.PerLicense;
|
|
14925
15555
|
}
|
|
15556
|
+
function getDisplayedPlanCreditGrants(plan) {
|
|
15557
|
+
if (!plan) {
|
|
15558
|
+
return [];
|
|
15559
|
+
}
|
|
15560
|
+
const hidden = new Set(
|
|
15561
|
+
(plan.creditVisibility ?? []).filter((override) => !override.visible).map((override) => override.creditId)
|
|
15562
|
+
);
|
|
15563
|
+
return plan.includedCreditGrants.filter(
|
|
15564
|
+
(grant) => !hidden.has(grant.creditId)
|
|
15565
|
+
);
|
|
15566
|
+
}
|
|
14926
15567
|
function groupPlanCreditGrants(creditGrants) {
|
|
14927
15568
|
const map = creditGrants.reduce(
|
|
14928
15569
|
(acc, grant) => {
|
|
@@ -16567,7 +17208,7 @@ var reducer = (state, action) => {
|
|
|
16567
17208
|
// src/context/EmbedProvider.tsx
|
|
16568
17209
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
16569
17210
|
var getCustomHeaders = (sessionId) => ({
|
|
16570
|
-
"X-Schematic-Components-Version": "2.
|
|
17211
|
+
"X-Schematic-Components-Version": "2.34.0",
|
|
16571
17212
|
"X-Schematic-Session-ID": sessionId
|
|
16572
17213
|
});
|
|
16573
17214
|
var normalizeCurrencyFilter = (filter2) => {
|
|
@@ -19406,7 +20047,9 @@ var Plan = ({
|
|
|
19406
20047
|
{ useSelectedPeriod: true },
|
|
19407
20048
|
currency
|
|
19408
20049
|
) || {};
|
|
19409
|
-
const credits = groupPlanCreditGrants(
|
|
20050
|
+
const credits = groupPlanCreditGrants(
|
|
20051
|
+
getDisplayedPlanCreditGrants(plan)
|
|
20052
|
+
);
|
|
19410
20053
|
const hasUsageBasedEntitlements = (plan.entitlements ?? []).some(
|
|
19411
20054
|
(entitlement) => !!entitlement.priceBehavior
|
|
19412
20055
|
);
|
|
@@ -19784,8 +20427,8 @@ var Quantity = ({
|
|
|
19784
20427
|
const cardPadding = settings.theme.card.padding / TEXT_BASE_SIZE;
|
|
19785
20428
|
const unitPriceFontSize = 0.875 * settings.theme.typography.text.fontSize;
|
|
19786
20429
|
const planCredits = useMemo14(
|
|
19787
|
-
() => groupPlanCreditGrants(selectedPlan
|
|
19788
|
-
[selectedPlan
|
|
20430
|
+
() => groupPlanCreditGrants(getDisplayedPlanCreditGrants(selectedPlan)),
|
|
20431
|
+
[selectedPlan]
|
|
19789
20432
|
);
|
|
19790
20433
|
const prorationBehavior = data?.checkoutSettings?.prorationBehavior;
|
|
19791
20434
|
const { billDate: renewalDate } = useNextBillDate();
|
|
@@ -21041,16 +21684,17 @@ var CheckoutDialog = ({ top }) => {
|
|
|
21041
21684
|
);
|
|
21042
21685
|
}, [availablePlans, checkoutState, selectedPlanId]);
|
|
21043
21686
|
const [shouldTrial, setShouldTrial] = useState8(false);
|
|
21044
|
-
const
|
|
21045
|
-
|
|
21046
|
-
|
|
21687
|
+
const displayedPlanCreditGrants = useMemo16(
|
|
21688
|
+
() => getDisplayedPlanCreditGrants(selectedPlan),
|
|
21689
|
+
[selectedPlan]
|
|
21690
|
+
);
|
|
21691
|
+
const planCreditGrants = useMemo16(
|
|
21692
|
+
() => mergeCompanyGrants(
|
|
21693
|
+
displayedPlanCreditGrants,
|
|
21047
21694
|
data?.company?.plan?.includedCreditGrants
|
|
21048
|
-
)
|
|
21049
|
-
|
|
21050
|
-
|
|
21051
|
-
selectedPlan?.includedCreditGrants,
|
|
21052
|
-
data?.company?.plan?.includedCreditGrants
|
|
21053
|
-
]);
|
|
21695
|
+
),
|
|
21696
|
+
[displayedPlanCreditGrants, data?.company?.plan?.includedCreditGrants]
|
|
21697
|
+
);
|
|
21054
21698
|
const [autoTopupConfigs, setAutoTopupConfigs] = useState8(() => {
|
|
21055
21699
|
const initialConfigs = data?.company?.plan?.includedCreditGrants.reduce(
|
|
21056
21700
|
(acc, companyGrant) => {
|
|
@@ -21290,7 +21934,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
21290
21934
|
description: t3("Choose your base plan")
|
|
21291
21935
|
});
|
|
21292
21936
|
}
|
|
21293
|
-
const hasSelfServiceAutoTopup =
|
|
21937
|
+
const hasSelfServiceAutoTopup = displayedPlanCreditGrants.some(
|
|
21294
21938
|
(grant) => isSelfServiceAutoTopupAvailable(grant)
|
|
21295
21939
|
);
|
|
21296
21940
|
if (hasSelfServiceAutoTopup) {
|
|
@@ -21350,7 +21994,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
21350
21994
|
data?.customCheckoutFields,
|
|
21351
21995
|
collectTaxId,
|
|
21352
21996
|
availablePlans,
|
|
21353
|
-
|
|
21997
|
+
displayedPlanCreditGrants,
|
|
21354
21998
|
willTrialWithoutPaymentMethod,
|
|
21355
21999
|
payInAdvanceEntitlements,
|
|
21356
22000
|
addOns,
|
|
@@ -24002,8 +24646,8 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
24002
24646
|
data?.company?.plan?.includedCreditGrants
|
|
24003
24647
|
]);
|
|
24004
24648
|
const planCredits = useMemo22(
|
|
24005
|
-
() => groupPlanCreditGrants(selectedPlan
|
|
24006
|
-
[selectedPlan
|
|
24649
|
+
() => groupPlanCreditGrants(getDisplayedPlanCreditGrants(selectedPlan)),
|
|
24650
|
+
[selectedPlan]
|
|
24007
24651
|
);
|
|
24008
24652
|
const { payInAdvanceEntitlements } = useMemo22(() => {
|
|
24009
24653
|
const payAsYouGoEntitlements = [];
|
|
@@ -29551,7 +30195,7 @@ var Plan2 = ({
|
|
|
29551
30195
|
const currentPlanIndex = plans.findIndex((plan2) => plan2.current);
|
|
29552
30196
|
const isActivePlan = plan.current && currentPeriod === selectedPeriod;
|
|
29553
30197
|
const { price: planPrice, currency: planCurrency } = getPlanPrice(plan, selectedPeriod, { useSelectedPeriod: true }, currency) || {};
|
|
29554
|
-
const credits = groupPlanCreditGrants(plan
|
|
30198
|
+
const credits = groupPlanCreditGrants(getDisplayedPlanCreditGrants(plan));
|
|
29555
30199
|
const hasUsageBasedEntitlements = (plan.entitlements ?? []).some(
|
|
29556
30200
|
(entitlement) => !!entitlement.priceBehavior
|
|
29557
30201
|
);
|