@schematichq/schematic-components 2.33.0 → 2.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schematic-components-elements.cjs.js +1682 -210
- package/dist/schematic-components-elements.d.ts +431 -1
- package/dist/schematic-components-elements.esm.js +1677 -195
- package/dist/schematic-components.browser.cjs.js +713 -187
- package/dist/schematic-components.browser.esm.js +713 -187
- package/dist/schematic-components.cjs.js +713 -187
- package/dist/schematic-components.d.ts +155 -4
- package/dist/schematic-components.esm.js +713 -187
- package/package.json +8 -8
|
@@ -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();
|
|
@@ -4462,6 +4462,24 @@ function PreviewObjectResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4462
4462
|
};
|
|
4463
4463
|
}
|
|
4464
4464
|
|
|
4465
|
+
// src/api/checkoutexternal/models/BillingPlanCreditGrantWarningTierResponseData.ts
|
|
4466
|
+
function BillingPlanCreditGrantWarningTierResponseDataFromJSON(json) {
|
|
4467
|
+
return BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(
|
|
4468
|
+
json,
|
|
4469
|
+
false
|
|
4470
|
+
);
|
|
4471
|
+
}
|
|
4472
|
+
function BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4473
|
+
if (json == null) {
|
|
4474
|
+
return json;
|
|
4475
|
+
}
|
|
4476
|
+
return {
|
|
4477
|
+
id: json["id"],
|
|
4478
|
+
key: json["key"],
|
|
4479
|
+
value: json["value"]
|
|
4480
|
+
};
|
|
4481
|
+
}
|
|
4482
|
+
|
|
4465
4483
|
// src/api/checkoutexternal/models/BillingPlanCreditGrantResponseData.ts
|
|
4466
4484
|
function BillingPlanCreditGrantResponseDataFromJSON(json) {
|
|
4467
4485
|
return BillingPlanCreditGrantResponseDataFromJSONTyped(json, false);
|
|
@@ -4522,7 +4540,10 @@ function BillingPlanCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminat
|
|
|
4522
4540
|
tierMode: json["tier_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tier_mode"]),
|
|
4523
4541
|
unitPrice: json["unit_price"] == null ? void 0 : json["unit_price"],
|
|
4524
4542
|
unitPriceDecimal: json["unit_price_decimal"] == null ? void 0 : json["unit_price_decimal"],
|
|
4525
|
-
updatedAt: new Date(json["updated_at"])
|
|
4543
|
+
updatedAt: new Date(json["updated_at"]),
|
|
4544
|
+
warningTiers: json["warning_tiers"].map(
|
|
4545
|
+
BillingPlanCreditGrantWarningTierResponseDataFromJSON
|
|
4546
|
+
)
|
|
4526
4547
|
};
|
|
4527
4548
|
}
|
|
4528
4549
|
|
|
@@ -4753,29 +4774,6 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4753
4774
|
};
|
|
4754
4775
|
}
|
|
4755
4776
|
|
|
4756
|
-
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
4757
|
-
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
4758
|
-
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
4759
|
-
}
|
|
4760
|
-
function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4761
|
-
if (json == null) {
|
|
4762
|
-
return json;
|
|
4763
|
-
}
|
|
4764
|
-
return {
|
|
4765
|
-
companyCreditAmount: json["company_credit_amount"],
|
|
4766
|
-
creditAmount: json["credit_amount"],
|
|
4767
|
-
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
4768
|
-
creditId: json["credit_id"],
|
|
4769
|
-
creditName: json["credit_name"],
|
|
4770
|
-
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
4771
|
-
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
4772
|
-
id: json["id"],
|
|
4773
|
-
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
4774
|
-
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
4775
|
-
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
4776
|
-
};
|
|
4777
|
-
}
|
|
4778
|
-
|
|
4779
4777
|
// src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
|
|
4780
4778
|
function CatalogPriceTierResponseDataFromJSON(json) {
|
|
4781
4779
|
return CatalogPriceTierResponseDataFromJSONTyped(json, false);
|
|
@@ -4818,6 +4816,420 @@ function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4818
4816
|
};
|
|
4819
4817
|
}
|
|
4820
4818
|
|
|
4819
|
+
// src/api/checkoutexternal/models/CatalogBundleCurrencyPriceResponseData.ts
|
|
4820
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSON(json) {
|
|
4821
|
+
return CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, false);
|
|
4822
|
+
}
|
|
4823
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4824
|
+
if (json == null) {
|
|
4825
|
+
return json;
|
|
4826
|
+
}
|
|
4827
|
+
return {
|
|
4828
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
4829
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
4830
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4831
|
+
};
|
|
4832
|
+
}
|
|
4833
|
+
|
|
4834
|
+
// src/api/checkoutexternal/models/CatalogAutoTopupResponseData.ts
|
|
4835
|
+
function CatalogAutoTopupResponseDataFromJSON(json) {
|
|
4836
|
+
return CatalogAutoTopupResponseDataFromJSONTyped(json, false);
|
|
4837
|
+
}
|
|
4838
|
+
function CatalogAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4839
|
+
if (json == null) {
|
|
4840
|
+
return json;
|
|
4841
|
+
}
|
|
4842
|
+
return {
|
|
4843
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
4844
|
+
availability: BillingCreditAutoTopupAvailabilityFromJSON(
|
|
4845
|
+
json["availability"]
|
|
4846
|
+
),
|
|
4847
|
+
companyAmount: json["company_amount"] == null ? void 0 : json["company_amount"],
|
|
4848
|
+
companyEnabled: json["company_enabled"] == null ? void 0 : json["company_enabled"],
|
|
4849
|
+
companyThresholdCredits: json["company_threshold_credits"] == null ? void 0 : json["company_threshold_credits"],
|
|
4850
|
+
creditId: json["credit_id"],
|
|
4851
|
+
currencyPrices: json["currency_prices"].map(
|
|
4852
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
4853
|
+
),
|
|
4854
|
+
enabled: json["enabled"],
|
|
4855
|
+
planCreditGrantId: json["plan_credit_grant_id"],
|
|
4856
|
+
thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"],
|
|
4857
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
4858
|
+
};
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4861
|
+
// src/api/checkoutexternal/models/CatalogCapabilitiesResponseData.ts
|
|
4862
|
+
function CatalogCapabilitiesResponseDataFromJSON(json) {
|
|
4863
|
+
return CatalogCapabilitiesResponseDataFromJSONTyped(json, false);
|
|
4864
|
+
}
|
|
4865
|
+
function CatalogCapabilitiesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4866
|
+
if (json == null) {
|
|
4867
|
+
return json;
|
|
4868
|
+
}
|
|
4869
|
+
return {
|
|
4870
|
+
badgeVisibility: json["badge_visibility"],
|
|
4871
|
+
checkout: json["checkout"]
|
|
4872
|
+
};
|
|
4873
|
+
}
|
|
4874
|
+
|
|
4875
|
+
// src/api/checkoutexternal/models/CatalogCheckoutFieldResponseData.ts
|
|
4876
|
+
function CatalogCheckoutFieldResponseDataFromJSON(json) {
|
|
4877
|
+
return CatalogCheckoutFieldResponseDataFromJSONTyped(json, false);
|
|
4878
|
+
}
|
|
4879
|
+
function CatalogCheckoutFieldResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4880
|
+
if (json == null) {
|
|
4881
|
+
return json;
|
|
4882
|
+
}
|
|
4883
|
+
return {
|
|
4884
|
+
helperText: json["helper_text"] == null ? void 0 : json["helper_text"],
|
|
4885
|
+
id: json["id"],
|
|
4886
|
+
name: json["name"],
|
|
4887
|
+
required: json["required"],
|
|
4888
|
+
value: json["value"] == null ? void 0 : json["value"]
|
|
4889
|
+
};
|
|
4890
|
+
}
|
|
4891
|
+
|
|
4892
|
+
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
4893
|
+
var CheckoutBundlePurchaseBehavior = {
|
|
4894
|
+
Individual: "individual",
|
|
4895
|
+
Quantity: "quantity"
|
|
4896
|
+
};
|
|
4897
|
+
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
4898
|
+
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
4899
|
+
}
|
|
4900
|
+
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
4901
|
+
return json;
|
|
4902
|
+
}
|
|
4903
|
+
|
|
4904
|
+
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
4905
|
+
var ProrationBehavior = {
|
|
4906
|
+
CreateProrations: "create_prorations",
|
|
4907
|
+
InvoiceImmediately: "invoice_immediately"
|
|
4908
|
+
};
|
|
4909
|
+
function ProrationBehaviorFromJSON(json) {
|
|
4910
|
+
return ProrationBehaviorFromJSONTyped(json, false);
|
|
4911
|
+
}
|
|
4912
|
+
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
4913
|
+
return json;
|
|
4914
|
+
}
|
|
4915
|
+
|
|
4916
|
+
// src/api/checkoutexternal/models/CatalogCheckoutSettingsResponseData.ts
|
|
4917
|
+
function CatalogCheckoutSettingsResponseDataFromJSON(json) {
|
|
4918
|
+
return CatalogCheckoutSettingsResponseDataFromJSONTyped(json, false);
|
|
4919
|
+
}
|
|
4920
|
+
function CatalogCheckoutSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4921
|
+
if (json == null) {
|
|
4922
|
+
return json;
|
|
4923
|
+
}
|
|
4924
|
+
return {
|
|
4925
|
+
bundlePurchaseBehavior: CheckoutBundlePurchaseBehaviorFromJSON(
|
|
4926
|
+
json["bundle_purchase_behavior"]
|
|
4927
|
+
),
|
|
4928
|
+
collectAddress: json["collect_address"],
|
|
4929
|
+
collectEmail: json["collect_email"],
|
|
4930
|
+
collectPhone: json["collect_phone"],
|
|
4931
|
+
collectTaxId: json["collect_tax_id"],
|
|
4932
|
+
customFields: json["custom_fields"].map(
|
|
4933
|
+
CatalogCheckoutFieldResponseDataFromJSON
|
|
4934
|
+
),
|
|
4935
|
+
prorationBehavior: ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
4936
|
+
taxCollectionEnabled: json["tax_collection_enabled"]
|
|
4937
|
+
};
|
|
4938
|
+
}
|
|
4939
|
+
|
|
4940
|
+
// src/api/checkoutexternal/models/CatalogPlanRefResponseData.ts
|
|
4941
|
+
function CatalogPlanRefResponseDataFromJSON(json) {
|
|
4942
|
+
return CatalogPlanRefResponseDataFromJSONTyped(json, false);
|
|
4943
|
+
}
|
|
4944
|
+
function CatalogPlanRefResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4945
|
+
if (json == null) {
|
|
4946
|
+
return json;
|
|
4947
|
+
}
|
|
4948
|
+
return {
|
|
4949
|
+
id: json["id"],
|
|
4950
|
+
name: json["name"]
|
|
4951
|
+
};
|
|
4952
|
+
}
|
|
4953
|
+
|
|
4954
|
+
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
4955
|
+
var CompanyPlanInvalidReason = {
|
|
4956
|
+
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
4957
|
+
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
4958
|
+
};
|
|
4959
|
+
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
4960
|
+
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
4961
|
+
}
|
|
4962
|
+
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
4963
|
+
return json;
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4966
|
+
// src/api/checkoutexternal/models/CatalogUsageViolationResponseData.ts
|
|
4967
|
+
function CatalogUsageViolationResponseDataFromJSON(json) {
|
|
4968
|
+
return CatalogUsageViolationResponseDataFromJSONTyped(json, false);
|
|
4969
|
+
}
|
|
4970
|
+
function CatalogUsageViolationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4971
|
+
if (json == null) {
|
|
4972
|
+
return json;
|
|
4973
|
+
}
|
|
4974
|
+
return {
|
|
4975
|
+
featureId: json["feature_id"],
|
|
4976
|
+
featureName: json["feature_name"],
|
|
4977
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
4978
|
+
usage: json["usage"]
|
|
4979
|
+
};
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4982
|
+
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
4983
|
+
var EntitlementValueType = {
|
|
4984
|
+
Boolean: "boolean",
|
|
4985
|
+
Credit: "credit",
|
|
4986
|
+
Numeric: "numeric",
|
|
4987
|
+
Trait: "trait",
|
|
4988
|
+
Unknown: "unknown",
|
|
4989
|
+
Unlimited: "unlimited"
|
|
4990
|
+
};
|
|
4991
|
+
function EntitlementValueTypeFromJSON(json) {
|
|
4992
|
+
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
4993
|
+
}
|
|
4994
|
+
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
4995
|
+
return json;
|
|
4996
|
+
}
|
|
4997
|
+
|
|
4998
|
+
// src/api/checkoutexternal/models/FeatureType.ts
|
|
4999
|
+
var FeatureType = {
|
|
5000
|
+
Boolean: "boolean",
|
|
5001
|
+
Event: "event",
|
|
5002
|
+
License: "license",
|
|
5003
|
+
Trait: "trait"
|
|
5004
|
+
};
|
|
5005
|
+
function FeatureTypeFromJSON(json) {
|
|
5006
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
5007
|
+
}
|
|
5008
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5009
|
+
return json;
|
|
5010
|
+
}
|
|
5011
|
+
|
|
5012
|
+
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5013
|
+
function MetricPeriodMonthResetFromJSON(json) {
|
|
5014
|
+
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5015
|
+
}
|
|
5016
|
+
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5017
|
+
return json;
|
|
5018
|
+
}
|
|
5019
|
+
|
|
5020
|
+
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5021
|
+
function MetricPeriodFromJSON(json) {
|
|
5022
|
+
return MetricPeriodFromJSONTyped(json, false);
|
|
5023
|
+
}
|
|
5024
|
+
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5025
|
+
return json;
|
|
5026
|
+
}
|
|
5027
|
+
|
|
5028
|
+
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
5029
|
+
var EntitlementPriceBehavior = {
|
|
5030
|
+
CreditBurndown: "credit_burndown",
|
|
5031
|
+
Overage: "overage",
|
|
5032
|
+
PayAsYouGo: "pay_as_you_go",
|
|
5033
|
+
PayInAdvance: "pay_in_advance",
|
|
5034
|
+
Tier: "tier"
|
|
5035
|
+
};
|
|
5036
|
+
function EntitlementPriceBehaviorFromJSON(json) {
|
|
5037
|
+
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
5038
|
+
}
|
|
5039
|
+
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5040
|
+
return json;
|
|
5041
|
+
}
|
|
5042
|
+
|
|
5043
|
+
// src/api/checkoutexternal/models/CatalogCurrencyPricesResponseData.ts
|
|
5044
|
+
function CatalogCurrencyPricesResponseDataFromJSON(json) {
|
|
5045
|
+
return CatalogCurrencyPricesResponseDataFromJSONTyped(json, false);
|
|
5046
|
+
}
|
|
5047
|
+
function CatalogCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5048
|
+
if (json == null) {
|
|
5049
|
+
return json;
|
|
5050
|
+
}
|
|
5051
|
+
return {
|
|
5052
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5053
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5054
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5055
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5056
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5057
|
+
};
|
|
5058
|
+
}
|
|
5059
|
+
|
|
5060
|
+
// src/api/checkoutexternal/models/CatalogPlanEntitlementResponseData.ts
|
|
5061
|
+
function CatalogPlanEntitlementResponseDataFromJSON(json) {
|
|
5062
|
+
return CatalogPlanEntitlementResponseDataFromJSONTyped(json, false);
|
|
5063
|
+
}
|
|
5064
|
+
function CatalogPlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5065
|
+
if (json == null) {
|
|
5066
|
+
return json;
|
|
5067
|
+
}
|
|
5068
|
+
return {
|
|
5069
|
+
consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
|
|
5070
|
+
creditEquivalentLimit: json["credit_equivalent_limit"] == null ? void 0 : json["credit_equivalent_limit"],
|
|
5071
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5072
|
+
creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
|
|
5073
|
+
creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
|
|
5074
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5075
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5076
|
+
currencyPrices: json["currency_prices"].map(
|
|
5077
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5078
|
+
),
|
|
5079
|
+
featureDescription: json["feature_description"],
|
|
5080
|
+
featureIcon: json["feature_icon"],
|
|
5081
|
+
featureId: json["feature_id"],
|
|
5082
|
+
featureName: json["feature_name"],
|
|
5083
|
+
featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
|
|
5084
|
+
featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
|
|
5085
|
+
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
5086
|
+
id: json["id"],
|
|
5087
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5088
|
+
meteredMonthlyPrice: json["metered_monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_monthly_price"]),
|
|
5089
|
+
meteredQuarterlyPrice: json["metered_quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_quarterly_price"]),
|
|
5090
|
+
meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_yearly_price"]),
|
|
5091
|
+
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
5092
|
+
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
5093
|
+
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
5094
|
+
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
5095
|
+
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
5096
|
+
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
5097
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
5098
|
+
warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
|
|
5099
|
+
};
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5102
|
+
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5103
|
+
function ChargeTypeFromJSON(json) {
|
|
5104
|
+
return ChargeTypeFromJSONTyped(json, false);
|
|
5105
|
+
}
|
|
5106
|
+
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5107
|
+
return json;
|
|
5108
|
+
}
|
|
5109
|
+
|
|
5110
|
+
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
5111
|
+
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
5112
|
+
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
5113
|
+
}
|
|
5114
|
+
function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5115
|
+
if (json == null) {
|
|
5116
|
+
return json;
|
|
5117
|
+
}
|
|
5118
|
+
return {
|
|
5119
|
+
companyCreditAmount: json["company_credit_amount"],
|
|
5120
|
+
creditAmount: json["credit_amount"],
|
|
5121
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5122
|
+
creditId: json["credit_id"],
|
|
5123
|
+
creditName: json["credit_name"],
|
|
5124
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5125
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5126
|
+
id: json["id"],
|
|
5127
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5128
|
+
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
5129
|
+
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
5130
|
+
};
|
|
5131
|
+
}
|
|
5132
|
+
|
|
5133
|
+
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
5134
|
+
function PlanPriceCadenceFromJSON(json) {
|
|
5135
|
+
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
5136
|
+
}
|
|
5137
|
+
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
5138
|
+
return json;
|
|
5139
|
+
}
|
|
5140
|
+
|
|
5141
|
+
// src/api/checkoutexternal/models/CatalogCompanyPlanResponseData.ts
|
|
5142
|
+
function CatalogCompanyPlanResponseDataFromJSON(json) {
|
|
5143
|
+
return CatalogCompanyPlanResponseDataFromJSONTyped(json, false);
|
|
5144
|
+
}
|
|
5145
|
+
function CatalogCompanyPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5146
|
+
if (json == null) {
|
|
5147
|
+
return json;
|
|
5148
|
+
}
|
|
5149
|
+
return {
|
|
5150
|
+
autoTopups: json["auto_topups"].map(
|
|
5151
|
+
CatalogAutoTopupResponseDataFromJSON
|
|
5152
|
+
),
|
|
5153
|
+
availablePeriods: json["available_periods"].map(
|
|
5154
|
+
PlanPriceCadenceFromJSON
|
|
5155
|
+
),
|
|
5156
|
+
billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
|
|
5157
|
+
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
5158
|
+
companyCanTrial: json["company_can_trial"],
|
|
5159
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5160
|
+
currencyPrices: json["currency_prices"].map(
|
|
5161
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5162
|
+
),
|
|
5163
|
+
current: json["current"],
|
|
5164
|
+
description: json["description"],
|
|
5165
|
+
entitlements: json["entitlements"].map(
|
|
5166
|
+
CatalogPlanEntitlementResponseDataFromJSON
|
|
5167
|
+
),
|
|
5168
|
+
icon: json["icon"],
|
|
5169
|
+
id: json["id"],
|
|
5170
|
+
includedCreditGrants: json["included_credit_grants"].map(
|
|
5171
|
+
CatalogCreditGrantResponseDataFromJSON
|
|
5172
|
+
),
|
|
5173
|
+
invalidReason: json["invalid_reason"] == null ? void 0 : CompanyPlanInvalidReasonFromJSON(json["invalid_reason"]),
|
|
5174
|
+
isTrialable: json["is_trialable"],
|
|
5175
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5176
|
+
name: json["name"],
|
|
5177
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5178
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5179
|
+
trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
|
|
5180
|
+
usageViolations: json["usage_violations"].map(
|
|
5181
|
+
CatalogUsageViolationResponseDataFromJSON
|
|
5182
|
+
),
|
|
5183
|
+
valid: json["valid"],
|
|
5184
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5185
|
+
};
|
|
5186
|
+
}
|
|
5187
|
+
|
|
5188
|
+
// src/api/checkoutexternal/models/CatalogCreditBundleResponseData.ts
|
|
5189
|
+
function CatalogCreditBundleResponseDataFromJSON(json) {
|
|
5190
|
+
return CatalogCreditBundleResponseDataFromJSONTyped(json, false);
|
|
5191
|
+
}
|
|
5192
|
+
function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5193
|
+
if (json == null) {
|
|
5194
|
+
return json;
|
|
5195
|
+
}
|
|
5196
|
+
return {
|
|
5197
|
+
bundleType: BillingCreditBundleTypeFromJSON(json["bundle_type"]),
|
|
5198
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5199
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5200
|
+
creditId: json["credit_id"],
|
|
5201
|
+
creditName: json["credit_name"],
|
|
5202
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5203
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5204
|
+
currencyPrices: json["currency_prices"].map(
|
|
5205
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
5206
|
+
),
|
|
5207
|
+
expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
5208
|
+
expiryUnit: BillingCreditExpiryUnitFromJSON(json["expiry_unit"]),
|
|
5209
|
+
expiryUnitCount: json["expiry_unit_count"] == null ? void 0 : json["expiry_unit_count"],
|
|
5210
|
+
id: json["id"],
|
|
5211
|
+
name: json["name"],
|
|
5212
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
5213
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"],
|
|
5214
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
5215
|
+
};
|
|
5216
|
+
}
|
|
5217
|
+
|
|
5218
|
+
// src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
|
|
5219
|
+
function CatalogCustomPlanCTAResponseDataFromJSON(json) {
|
|
5220
|
+
return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
|
|
5221
|
+
}
|
|
5222
|
+
function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5223
|
+
if (json == null) {
|
|
5224
|
+
return json;
|
|
5225
|
+
}
|
|
5226
|
+
return {
|
|
5227
|
+
ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
|
|
5228
|
+
ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
|
|
5229
|
+
priceText: json["price_text"] == null ? void 0 : json["price_text"]
|
|
5230
|
+
};
|
|
5231
|
+
}
|
|
5232
|
+
|
|
4821
5233
|
// src/api/checkoutexternal/models/UpdatePayInAdvanceRequestBody.ts
|
|
4822
5234
|
function UpdatePayInAdvanceRequestBodyFromJSON(json) {
|
|
4823
5235
|
return UpdatePayInAdvanceRequestBodyFromJSONTyped(json, false);
|
|
@@ -4988,24 +5400,25 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
4988
5400
|
};
|
|
4989
5401
|
}
|
|
4990
5402
|
|
|
4991
|
-
// src/api/checkoutexternal/models/
|
|
4992
|
-
function
|
|
4993
|
-
return
|
|
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);
|
|
5403
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
|
|
5404
|
+
function CheckoutPriceSnapshotDiscountFromJSON(json) {
|
|
5405
|
+
return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
|
|
5006
5406
|
}
|
|
5007
|
-
function
|
|
5008
|
-
|
|
5407
|
+
function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
|
|
5408
|
+
if (json == null) {
|
|
5409
|
+
return json;
|
|
5410
|
+
}
|
|
5411
|
+
return {
|
|
5412
|
+
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
5413
|
+
couponExternalId: json["coupon_external_id"],
|
|
5414
|
+
couponName: json["coupon_name"],
|
|
5415
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5416
|
+
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
5417
|
+
duration: json["duration"],
|
|
5418
|
+
durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
|
|
5419
|
+
percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
|
|
5420
|
+
promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
|
|
5421
|
+
};
|
|
5009
5422
|
}
|
|
5010
5423
|
|
|
5011
5424
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
@@ -5019,10 +5432,16 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5019
5432
|
return {
|
|
5020
5433
|
amountOff: json["amount_off"],
|
|
5021
5434
|
currency: CurrencyFromJSON(json["currency"]),
|
|
5435
|
+
discountAmount: json["discount_amount"],
|
|
5436
|
+
discounts: json["discounts"].map(
|
|
5437
|
+
CheckoutPriceSnapshotDiscountFromJSON
|
|
5438
|
+
),
|
|
5022
5439
|
dueNow: json["due_now"],
|
|
5023
5440
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5024
5441
|
newCharges: json["new_charges"],
|
|
5025
5442
|
optInRequired: json["opt_in_required"],
|
|
5443
|
+
optInText: json["opt_in_text"] == null ? void 0 : json["opt_in_text"],
|
|
5444
|
+
optInTitle: json["opt_in_title"] == null ? void 0 : json["opt_in_title"],
|
|
5026
5445
|
paymentMethodRequired: json["payment_method_required"],
|
|
5027
5446
|
percentOff: json["percent_off"],
|
|
5028
5447
|
periodStart: new Date(json["period_start"]),
|
|
@@ -5044,6 +5463,17 @@ function CheckoutStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5044
5463
|
return json;
|
|
5045
5464
|
}
|
|
5046
5465
|
|
|
5466
|
+
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5467
|
+
function CheckoutIntentFromJSON(json) {
|
|
5468
|
+
return CheckoutIntentFromJSONTyped(json, false);
|
|
5469
|
+
}
|
|
5470
|
+
function CheckoutIntentFromJSONTyped(json, ignoreDiscriminator) {
|
|
5471
|
+
return json;
|
|
5472
|
+
}
|
|
5473
|
+
function CheckoutIntentToJSON(value) {
|
|
5474
|
+
return value;
|
|
5475
|
+
}
|
|
5476
|
+
|
|
5047
5477
|
// src/api/checkoutexternal/models/CheckoutSelectionsResponseData.ts
|
|
5048
5478
|
function CheckoutSelectionsResponseDataFromJSON(json) {
|
|
5049
5479
|
return CheckoutSelectionsResponseDataFromJSONTyped(json, false);
|
|
@@ -5064,9 +5494,11 @@ function CheckoutSelectionsResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5064
5494
|
creditBundles: json["credit_bundles"].map(
|
|
5065
5495
|
UpdateCreditBundleRequestBodyFromJSON
|
|
5066
5496
|
),
|
|
5497
|
+
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
5067
5498
|
customFieldValues: json["custom_field_values"].map(
|
|
5068
5499
|
CheckoutFieldValueFromJSON
|
|
5069
5500
|
),
|
|
5501
|
+
intent: CheckoutIntentFromJSON(json["intent"]),
|
|
5070
5502
|
newPlanId: json["new_plan_id"] == null ? void 0 : json["new_plan_id"],
|
|
5071
5503
|
newPriceId: json["new_price_id"] == null ? void 0 : json["new_price_id"],
|
|
5072
5504
|
optInAccepted: json["opt_in_accepted"] == null ? void 0 : json["opt_in_accepted"],
|
|
@@ -5166,11 +5598,6 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5166
5598
|
};
|
|
5167
5599
|
}
|
|
5168
5600
|
|
|
5169
|
-
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5170
|
-
function CheckoutIntentToJSON(value) {
|
|
5171
|
-
return value;
|
|
5172
|
-
}
|
|
5173
|
-
|
|
5174
5601
|
// src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
|
|
5175
5602
|
function ScheduledDowngradeConfigBehaviorFromJSON(json) {
|
|
5176
5603
|
return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
|
|
@@ -5275,15 +5702,19 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5275
5702
|
};
|
|
5276
5703
|
}
|
|
5277
5704
|
|
|
5278
|
-
// src/api/checkoutexternal/models/
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
InvoiceImmediately: "invoice_immediately"
|
|
5282
|
-
};
|
|
5283
|
-
function ProrationBehaviorFromJSON(json) {
|
|
5284
|
-
return ProrationBehaviorFromJSONTyped(json, false);
|
|
5705
|
+
// src/api/checkoutexternal/models/Collector.ts
|
|
5706
|
+
function CollectorFromJSON(json) {
|
|
5707
|
+
return CollectorFromJSONTyped(json, false);
|
|
5285
5708
|
}
|
|
5286
|
-
function
|
|
5709
|
+
function CollectorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5710
|
+
return json;
|
|
5711
|
+
}
|
|
5712
|
+
|
|
5713
|
+
// src/api/checkoutexternal/models/PaymentGating.ts
|
|
5714
|
+
function PaymentGatingFromJSON(json) {
|
|
5715
|
+
return PaymentGatingFromJSONTyped(json, false);
|
|
5716
|
+
}
|
|
5717
|
+
function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
|
|
5287
5718
|
return json;
|
|
5288
5719
|
}
|
|
5289
5720
|
|
|
@@ -5301,20 +5732,63 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
5301
5732
|
collectionMethod: BillingCollectionMethodFromJSON(
|
|
5302
5733
|
json["collection_method"]
|
|
5303
5734
|
),
|
|
5735
|
+
collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
|
|
5304
5736
|
companyId: json["company_id"],
|
|
5305
5737
|
createdAt: new Date(json["created_at"]),
|
|
5738
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5306
5739
|
daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
|
|
5307
5740
|
environmentId: json["environment_id"],
|
|
5741
|
+
gatingDays: json["gating_days"],
|
|
5308
5742
|
id: json["id"],
|
|
5309
5743
|
isDefault: json["is_default"],
|
|
5310
5744
|
name: json["name"] == null ? void 0 : json["name"],
|
|
5745
|
+
overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
|
|
5746
|
+
paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
|
|
5311
5747
|
paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
|
|
5312
5748
|
prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5313
5749
|
providerType: BillingProviderTypeFromJSON(json["provider_type"]),
|
|
5750
|
+
purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
|
|
5314
5751
|
updatedAt: new Date(json["updated_at"])
|
|
5315
5752
|
};
|
|
5316
5753
|
}
|
|
5317
5754
|
|
|
5755
|
+
// src/api/checkoutexternal/models/CompanyCatalogResponseData.ts
|
|
5756
|
+
function CompanyCatalogResponseDataFromJSON(json) {
|
|
5757
|
+
return CompanyCatalogResponseDataFromJSONTyped(json, false);
|
|
5758
|
+
}
|
|
5759
|
+
function CompanyCatalogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5760
|
+
if (json == null) {
|
|
5761
|
+
return json;
|
|
5762
|
+
}
|
|
5763
|
+
return {
|
|
5764
|
+
addOns: json["add_ons"].map(
|
|
5765
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5766
|
+
),
|
|
5767
|
+
capabilities: CatalogCapabilitiesResponseDataFromJSON(json["capabilities"]),
|
|
5768
|
+
checkoutSettings: CatalogCheckoutSettingsResponseDataFromJSON(
|
|
5769
|
+
json["checkout_settings"]
|
|
5770
|
+
),
|
|
5771
|
+
creditBundles: json["credit_bundles"].map(
|
|
5772
|
+
CatalogCreditBundleResponseDataFromJSON
|
|
5773
|
+
),
|
|
5774
|
+
customPlanCta: json["custom_plan_cta"] == null ? void 0 : CatalogCustomPlanCTAResponseDataFromJSON(json["custom_plan_cta"]),
|
|
5775
|
+
defaultCurrency: CurrencyFromJSON(json["default_currency"]),
|
|
5776
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
5777
|
+
id: json["id"],
|
|
5778
|
+
name: json["name"],
|
|
5779
|
+
plans: json["plans"].map(
|
|
5780
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
5781
|
+
),
|
|
5782
|
+
preventSelfServiceDowngrade: json["prevent_self_service_downgrade"],
|
|
5783
|
+
preventSelfServiceDowngradeButtonText: json["prevent_self_service_downgrade_button_text"] == null ? void 0 : json["prevent_self_service_downgrade_button_text"],
|
|
5784
|
+
preventSelfServiceDowngradeUrl: json["prevent_self_service_downgrade_url"] == null ? void 0 : json["prevent_self_service_downgrade_url"],
|
|
5785
|
+
pricingModel: json["pricing_model"] == null ? void 0 : json["pricing_model"],
|
|
5786
|
+
pricingUrl: json["pricing_url"] == null ? void 0 : json["pricing_url"],
|
|
5787
|
+
trialExpiryPlan: json["trial_expiry_plan"] == null ? void 0 : CatalogPlanRefResponseDataFromJSON(json["trial_expiry_plan"]),
|
|
5788
|
+
trialPaymentMethodRequired: json["trial_payment_method_required"] == null ? void 0 : json["trial_payment_method_required"]
|
|
5789
|
+
};
|
|
5790
|
+
}
|
|
5791
|
+
|
|
5318
5792
|
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
5319
5793
|
var CustomPlanActivationStrategy = {
|
|
5320
5794
|
Payment: "on_payment",
|
|
@@ -5705,30 +6179,6 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5705
6179
|
};
|
|
5706
6180
|
}
|
|
5707
6181
|
|
|
5708
|
-
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
5709
|
-
var EntitlementValueType = {
|
|
5710
|
-
Boolean: "boolean",
|
|
5711
|
-
Credit: "credit",
|
|
5712
|
-
Numeric: "numeric",
|
|
5713
|
-
Trait: "trait",
|
|
5714
|
-
Unknown: "unknown",
|
|
5715
|
-
Unlimited: "unlimited"
|
|
5716
|
-
};
|
|
5717
|
-
function EntitlementValueTypeFromJSON(json) {
|
|
5718
|
-
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
5719
|
-
}
|
|
5720
|
-
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5721
|
-
return json;
|
|
5722
|
-
}
|
|
5723
|
-
|
|
5724
|
-
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5725
|
-
function MetricPeriodMonthResetFromJSON(json) {
|
|
5726
|
-
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5727
|
-
}
|
|
5728
|
-
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5729
|
-
return json;
|
|
5730
|
-
}
|
|
5731
|
-
|
|
5732
6182
|
// src/api/checkoutexternal/models/WarningTier.ts
|
|
5733
6183
|
function WarningTierFromJSON(json) {
|
|
5734
6184
|
return WarningTierFromJSONTyped(json, false);
|
|
@@ -5743,14 +6193,6 @@ function WarningTierFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5743
6193
|
};
|
|
5744
6194
|
}
|
|
5745
6195
|
|
|
5746
|
-
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5747
|
-
function MetricPeriodFromJSON(json) {
|
|
5748
|
-
return MetricPeriodFromJSONTyped(json, false);
|
|
5749
|
-
}
|
|
5750
|
-
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5751
|
-
return json;
|
|
5752
|
-
}
|
|
5753
|
-
|
|
5754
6196
|
// src/api/checkoutexternal/models/FeatureEntitlement.ts
|
|
5755
6197
|
function FeatureEntitlementFromJSON(json) {
|
|
5756
6198
|
return FeatureEntitlementFromJSONTyped(json, false);
|
|
@@ -5900,6 +6342,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5900
6342
|
companyId: json["company_id"],
|
|
5901
6343
|
createdAt: new Date(json["created_at"]),
|
|
5902
6344
|
daysUntilDue: json["days_until_due"],
|
|
6345
|
+
endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
|
|
5903
6346
|
externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
|
|
5904
6347
|
id: json["id"],
|
|
5905
6348
|
migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
|
|
@@ -6196,35 +6639,6 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6196
6639
|
};
|
|
6197
6640
|
}
|
|
6198
6641
|
|
|
6199
|
-
// src/api/checkoutexternal/models/FeatureType.ts
|
|
6200
|
-
var FeatureType = {
|
|
6201
|
-
Boolean: "boolean",
|
|
6202
|
-
Event: "event",
|
|
6203
|
-
License: "license",
|
|
6204
|
-
Trait: "trait"
|
|
6205
|
-
};
|
|
6206
|
-
function FeatureTypeFromJSON(json) {
|
|
6207
|
-
return FeatureTypeFromJSONTyped(json, false);
|
|
6208
|
-
}
|
|
6209
|
-
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6210
|
-
return json;
|
|
6211
|
-
}
|
|
6212
|
-
|
|
6213
|
-
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6214
|
-
var EntitlementPriceBehavior = {
|
|
6215
|
-
CreditBurndown: "credit_burndown",
|
|
6216
|
-
Overage: "overage",
|
|
6217
|
-
PayAsYouGo: "pay_as_you_go",
|
|
6218
|
-
PayInAdvance: "pay_in_advance",
|
|
6219
|
-
Tier: "tier"
|
|
6220
|
-
};
|
|
6221
|
-
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6222
|
-
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6223
|
-
}
|
|
6224
|
-
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6225
|
-
return json;
|
|
6226
|
-
}
|
|
6227
|
-
|
|
6228
6642
|
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6229
6643
|
function EntitlementTypeFromJSON(json) {
|
|
6230
6644
|
return EntitlementTypeFromJSONTyped(json, false);
|
|
@@ -6507,26 +6921,6 @@ function CompanyPaymentMethodsResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
6507
6921
|
};
|
|
6508
6922
|
}
|
|
6509
6923
|
|
|
6510
|
-
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
6511
|
-
var CompanyPlanInvalidReason = {
|
|
6512
|
-
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
6513
|
-
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
6514
|
-
};
|
|
6515
|
-
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
6516
|
-
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
6517
|
-
}
|
|
6518
|
-
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
6519
|
-
return json;
|
|
6520
|
-
}
|
|
6521
|
-
|
|
6522
|
-
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
6523
|
-
function PlanPriceCadenceFromJSON(json) {
|
|
6524
|
-
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
6525
|
-
}
|
|
6526
|
-
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
6527
|
-
return json;
|
|
6528
|
-
}
|
|
6529
|
-
|
|
6530
6924
|
// src/api/checkoutexternal/models/EstimatedPlanTotal.ts
|
|
6531
6925
|
function EstimatedPlanTotalFromJSON(json) {
|
|
6532
6926
|
return EstimatedPlanTotalFromJSONTyped(json, false);
|
|
@@ -6824,7 +7218,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6824
7218
|
}
|
|
6825
7219
|
return {
|
|
6826
7220
|
createdAt: new Date(json["created_at"]),
|
|
6827
|
-
defaultValue: json["default_value"],
|
|
7221
|
+
defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
|
|
6828
7222
|
description: json["description"],
|
|
6829
7223
|
feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
|
|
6830
7224
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
@@ -6984,6 +7378,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
6984
7378
|
};
|
|
6985
7379
|
}
|
|
6986
7380
|
|
|
7381
|
+
// src/api/checkoutexternal/models/RenewalPolicy.ts
|
|
7382
|
+
function RenewalPolicyFromJSON(json) {
|
|
7383
|
+
return RenewalPolicyFromJSONTyped(json, false);
|
|
7384
|
+
}
|
|
7385
|
+
function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
7386
|
+
return json;
|
|
7387
|
+
}
|
|
7388
|
+
|
|
6987
7389
|
// src/api/checkoutexternal/models/PlanVersionResponseData.ts
|
|
6988
7390
|
function PlanVersionResponseDataFromJSON(json) {
|
|
6989
7391
|
return PlanVersionResponseDataFromJSONTyped(json, false);
|
|
@@ -7001,6 +7403,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7001
7403
|
name: json["name"],
|
|
7002
7404
|
originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
|
|
7003
7405
|
planType: PlanTypeFromJSON(json["plan_type"]),
|
|
7406
|
+
renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
|
|
7004
7407
|
status: PlanVersionStatusFromJSON(json["status"]),
|
|
7005
7408
|
updatedAt: new Date(json["updated_at"]),
|
|
7006
7409
|
version: json["version"]
|
|
@@ -7856,6 +8259,34 @@ function FinalizeCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7856
8259
|
};
|
|
7857
8260
|
}
|
|
7858
8261
|
|
|
8262
|
+
// src/api/checkoutexternal/models/GetCatalogViewByIDResponse.ts
|
|
8263
|
+
function GetCatalogViewByIDResponseFromJSON(json) {
|
|
8264
|
+
return GetCatalogViewByIDResponseFromJSONTyped(json, false);
|
|
8265
|
+
}
|
|
8266
|
+
function GetCatalogViewByIDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8267
|
+
if (json == null) {
|
|
8268
|
+
return json;
|
|
8269
|
+
}
|
|
8270
|
+
return {
|
|
8271
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8272
|
+
params: json["params"]
|
|
8273
|
+
};
|
|
8274
|
+
}
|
|
8275
|
+
|
|
8276
|
+
// src/api/checkoutexternal/models/GetCatalogViewResponse.ts
|
|
8277
|
+
function GetCatalogViewResponseFromJSON(json) {
|
|
8278
|
+
return GetCatalogViewResponseFromJSONTyped(json, false);
|
|
8279
|
+
}
|
|
8280
|
+
function GetCatalogViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8281
|
+
if (json == null) {
|
|
8282
|
+
return json;
|
|
8283
|
+
}
|
|
8284
|
+
return {
|
|
8285
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8286
|
+
params: json["params"]
|
|
8287
|
+
};
|
|
8288
|
+
}
|
|
8289
|
+
|
|
7859
8290
|
// src/api/checkoutexternal/models/GetCheckoutResponse.ts
|
|
7860
8291
|
function GetCheckoutResponseFromJSON(json) {
|
|
7861
8292
|
return GetCheckoutResponseFromJSONTyped(json, false);
|
|
@@ -8548,6 +8979,11 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8548
8979
|
const queryParameters = {};
|
|
8549
8980
|
const headerParameters = {};
|
|
8550
8981
|
headerParameters["Content-Type"] = "application/json";
|
|
8982
|
+
if (requestParameters["xCheckoutSessionID"] != null) {
|
|
8983
|
+
headerParameters["X-Checkout-Session-ID"] = String(
|
|
8984
|
+
requestParameters["xCheckoutSessionID"]
|
|
8985
|
+
);
|
|
8986
|
+
}
|
|
8551
8987
|
if (this.configuration && this.configuration.apiKey) {
|
|
8552
8988
|
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8553
8989
|
"X-Schematic-Api-Key"
|
|
@@ -8781,6 +9217,11 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8781
9217
|
const queryParameters = {};
|
|
8782
9218
|
const headerParameters = {};
|
|
8783
9219
|
headerParameters["Content-Type"] = "application/json";
|
|
9220
|
+
if (requestParameters["xCheckoutSessionID"] != null) {
|
|
9221
|
+
headerParameters["X-Checkout-Session-ID"] = String(
|
|
9222
|
+
requestParameters["xCheckoutSessionID"]
|
|
9223
|
+
);
|
|
9224
|
+
}
|
|
8784
9225
|
if (this.configuration && this.configuration.apiKey) {
|
|
8785
9226
|
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
8786
9227
|
"X-Schematic-Api-Key"
|
|
@@ -8816,6 +9257,82 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
8816
9257
|
);
|
|
8817
9258
|
return await response.value();
|
|
8818
9259
|
}
|
|
9260
|
+
/**
|
|
9261
|
+
* Get catalog view
|
|
9262
|
+
*/
|
|
9263
|
+
async getCatalogViewRaw(initOverrides) {
|
|
9264
|
+
const queryParameters = {};
|
|
9265
|
+
const headerParameters = {};
|
|
9266
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9267
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9268
|
+
"X-Schematic-Api-Key"
|
|
9269
|
+
);
|
|
9270
|
+
}
|
|
9271
|
+
const response = await this.request(
|
|
9272
|
+
{
|
|
9273
|
+
path: `/catalog/view`,
|
|
9274
|
+
method: "GET",
|
|
9275
|
+
headers: headerParameters,
|
|
9276
|
+
query: queryParameters
|
|
9277
|
+
},
|
|
9278
|
+
initOverrides
|
|
9279
|
+
);
|
|
9280
|
+
return new JSONApiResponse(
|
|
9281
|
+
response,
|
|
9282
|
+
(jsonValue) => GetCatalogViewResponseFromJSON(jsonValue)
|
|
9283
|
+
);
|
|
9284
|
+
}
|
|
9285
|
+
/**
|
|
9286
|
+
* Get catalog view
|
|
9287
|
+
*/
|
|
9288
|
+
async getCatalogView(initOverrides) {
|
|
9289
|
+
const response = await this.getCatalogViewRaw(initOverrides);
|
|
9290
|
+
return await response.value();
|
|
9291
|
+
}
|
|
9292
|
+
/**
|
|
9293
|
+
* Get catalog view by ID
|
|
9294
|
+
*/
|
|
9295
|
+
async getCatalogViewByIDRaw(requestParameters, initOverrides) {
|
|
9296
|
+
if (requestParameters["catalogId"] == null) {
|
|
9297
|
+
throw new RequiredError(
|
|
9298
|
+
"catalogId",
|
|
9299
|
+
'Required parameter "catalogId" was null or undefined when calling getCatalogViewByID().'
|
|
9300
|
+
);
|
|
9301
|
+
}
|
|
9302
|
+
const queryParameters = {};
|
|
9303
|
+
const headerParameters = {};
|
|
9304
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9305
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9306
|
+
"X-Schematic-Api-Key"
|
|
9307
|
+
);
|
|
9308
|
+
}
|
|
9309
|
+
const response = await this.request(
|
|
9310
|
+
{
|
|
9311
|
+
path: `/catalogs/{catalog_id}/view`.replace(
|
|
9312
|
+
`{${"catalog_id"}}`,
|
|
9313
|
+
encodeURIComponent(String(requestParameters["catalogId"]))
|
|
9314
|
+
),
|
|
9315
|
+
method: "GET",
|
|
9316
|
+
headers: headerParameters,
|
|
9317
|
+
query: queryParameters
|
|
9318
|
+
},
|
|
9319
|
+
initOverrides
|
|
9320
|
+
);
|
|
9321
|
+
return new JSONApiResponse(
|
|
9322
|
+
response,
|
|
9323
|
+
(jsonValue) => GetCatalogViewByIDResponseFromJSON(jsonValue)
|
|
9324
|
+
);
|
|
9325
|
+
}
|
|
9326
|
+
/**
|
|
9327
|
+
* Get catalog view by ID
|
|
9328
|
+
*/
|
|
9329
|
+
async getCatalogViewByID(requestParameters, initOverrides) {
|
|
9330
|
+
const response = await this.getCatalogViewByIDRaw(
|
|
9331
|
+
requestParameters,
|
|
9332
|
+
initOverrides
|
|
9333
|
+
);
|
|
9334
|
+
return await response.value();
|
|
9335
|
+
}
|
|
8819
9336
|
/**
|
|
8820
9337
|
* Get checkout
|
|
8821
9338
|
*/
|
|
@@ -10074,9 +10591,9 @@ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
10074
10591
|
|
|
10075
10592
|
// src/api/componentspublic/models/BillingCreditAutoTopupAvailability.ts
|
|
10076
10593
|
function BillingCreditAutoTopupAvailabilityFromJSON2(json) {
|
|
10077
|
-
return
|
|
10594
|
+
return BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, false);
|
|
10078
10595
|
}
|
|
10079
|
-
function
|
|
10596
|
+
function BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10080
10597
|
return json;
|
|
10081
10598
|
}
|
|
10082
10599
|
|
|
@@ -10090,17 +10607,17 @@ function BillingCreditBurnStrategyFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10090
10607
|
|
|
10091
10608
|
// src/api/componentspublic/models/BillingCreditExpiryType.ts
|
|
10092
10609
|
function BillingCreditExpiryTypeFromJSON2(json) {
|
|
10093
|
-
return
|
|
10610
|
+
return BillingCreditExpiryTypeFromJSONTyped8(json, false);
|
|
10094
10611
|
}
|
|
10095
|
-
function
|
|
10612
|
+
function BillingCreditExpiryTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10096
10613
|
return json;
|
|
10097
10614
|
}
|
|
10098
10615
|
|
|
10099
10616
|
// src/api/componentspublic/models/BillingCreditExpiryUnit.ts
|
|
10100
10617
|
function BillingCreditExpiryUnitFromJSON2(json) {
|
|
10101
|
-
return
|
|
10618
|
+
return BillingCreditExpiryUnitFromJSONTyped10(json, false);
|
|
10102
10619
|
}
|
|
10103
|
-
function
|
|
10620
|
+
function BillingCreditExpiryUnitFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10104
10621
|
return json;
|
|
10105
10622
|
}
|
|
10106
10623
|
|
|
@@ -10114,9 +10631,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10114
10631
|
|
|
10115
10632
|
// src/api/componentspublic/models/Currency.ts
|
|
10116
10633
|
function CurrencyFromJSON2(json) {
|
|
10117
|
-
return
|
|
10634
|
+
return CurrencyFromJSONTyped40(json, false);
|
|
10118
10635
|
}
|
|
10119
|
-
function
|
|
10636
|
+
function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
|
|
10120
10637
|
return json;
|
|
10121
10638
|
}
|
|
10122
10639
|
|
|
@@ -10498,41 +11015,65 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
|
|
|
10498
11015
|
|
|
10499
11016
|
// src/api/componentspublic/models/BillingStrategy.ts
|
|
10500
11017
|
function BillingStrategyFromJSON2(json) {
|
|
10501
|
-
return
|
|
11018
|
+
return BillingStrategyFromJSONTyped7(json, false);
|
|
10502
11019
|
}
|
|
10503
|
-
function
|
|
11020
|
+
function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10504
11021
|
return json;
|
|
10505
11022
|
}
|
|
10506
11023
|
|
|
10507
|
-
// src/api/componentspublic/models/
|
|
10508
|
-
function
|
|
10509
|
-
return
|
|
11024
|
+
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
11025
|
+
function EntitlementValueTypeFromJSON2(json) {
|
|
11026
|
+
return EntitlementValueTypeFromJSONTyped10(json, false);
|
|
10510
11027
|
}
|
|
10511
|
-
function
|
|
11028
|
+
function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10512
11029
|
return json;
|
|
10513
11030
|
}
|
|
10514
11031
|
|
|
10515
|
-
// src/api/componentspublic/models/
|
|
10516
|
-
function
|
|
10517
|
-
return
|
|
11032
|
+
// src/api/componentspublic/models/FeatureType.ts
|
|
11033
|
+
function FeatureTypeFromJSON2(json) {
|
|
11034
|
+
return FeatureTypeFromJSONTyped7(json, false);
|
|
10518
11035
|
}
|
|
10519
|
-
function
|
|
11036
|
+
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10520
11037
|
return json;
|
|
10521
11038
|
}
|
|
10522
11039
|
|
|
10523
11040
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
10524
11041
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
10525
|
-
return
|
|
11042
|
+
return MetricPeriodMonthResetFromJSONTyped14(json, false);
|
|
10526
11043
|
}
|
|
10527
|
-
function
|
|
11044
|
+
function MetricPeriodMonthResetFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10528
11045
|
return json;
|
|
10529
11046
|
}
|
|
10530
11047
|
|
|
10531
11048
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
10532
11049
|
function MetricPeriodFromJSON2(json) {
|
|
10533
|
-
return
|
|
11050
|
+
return MetricPeriodFromJSONTyped14(json, false);
|
|
11051
|
+
}
|
|
11052
|
+
function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
|
|
11053
|
+
return json;
|
|
11054
|
+
}
|
|
11055
|
+
|
|
11056
|
+
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
11057
|
+
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
11058
|
+
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
11059
|
+
}
|
|
11060
|
+
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
11061
|
+
return json;
|
|
10534
11062
|
}
|
|
10535
|
-
|
|
11063
|
+
|
|
11064
|
+
// src/api/componentspublic/models/ChargeType.ts
|
|
11065
|
+
function ChargeTypeFromJSON2(json) {
|
|
11066
|
+
return ChargeTypeFromJSONTyped7(json, false);
|
|
11067
|
+
}
|
|
11068
|
+
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11069
|
+
return json;
|
|
11070
|
+
}
|
|
11071
|
+
|
|
11072
|
+
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11073
|
+
function PlanPriceCadenceFromJSON2(json) {
|
|
11074
|
+
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
11075
|
+
}
|
|
11076
|
+
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10536
11077
|
return json;
|
|
10537
11078
|
}
|
|
10538
11079
|
|
|
@@ -10638,14 +11179,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
10638
11179
|
};
|
|
10639
11180
|
}
|
|
10640
11181
|
|
|
10641
|
-
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
10642
|
-
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
10643
|
-
return EntitlementPriceBehaviorFromJSONTyped6(json, false);
|
|
10644
|
-
}
|
|
10645
|
-
function EntitlementPriceBehaviorFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10646
|
-
return json;
|
|
10647
|
-
}
|
|
10648
|
-
|
|
10649
11182
|
// src/api/componentspublic/models/EntityType.ts
|
|
10650
11183
|
function EntityTypeFromJSON2(json) {
|
|
10651
11184
|
return EntityTypeFromJSONTyped9(json, false);
|
|
@@ -10707,14 +11240,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10707
11240
|
return json;
|
|
10708
11241
|
}
|
|
10709
11242
|
|
|
10710
|
-
// src/api/componentspublic/models/FeatureType.ts
|
|
10711
|
-
function FeatureTypeFromJSON2(json) {
|
|
10712
|
-
return FeatureTypeFromJSONTyped5(json, false);
|
|
10713
|
-
}
|
|
10714
|
-
function FeatureTypeFromJSONTyped5(json, ignoreDiscriminator) {
|
|
10715
|
-
return json;
|
|
10716
|
-
}
|
|
10717
|
-
|
|
10718
11243
|
// src/api/componentspublic/models/PreviewObject.ts
|
|
10719
11244
|
function PreviewObjectFromJSON2(json) {
|
|
10720
11245
|
return PreviewObjectFromJSONTyped3(json, false);
|
|
@@ -10895,7 +11420,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
10895
11420
|
}
|
|
10896
11421
|
return {
|
|
10897
11422
|
createdAt: new Date(json["created_at"]),
|
|
10898
|
-
defaultValue: json["default_value"],
|
|
11423
|
+
defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
|
|
10899
11424
|
description: json["description"],
|
|
10900
11425
|
feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
|
|
10901
11426
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
@@ -11065,14 +11590,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
11065
11590
|
};
|
|
11066
11591
|
}
|
|
11067
11592
|
|
|
11068
|
-
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11069
|
-
function PlanPriceCadenceFromJSON2(json) {
|
|
11070
|
-
return PlanPriceCadenceFromJSONTyped5(json, false);
|
|
11071
|
-
}
|
|
11072
|
-
function PlanPriceCadenceFromJSONTyped5(json, ignoreDiscriminator) {
|
|
11073
|
-
return json;
|
|
11074
|
-
}
|
|
11075
|
-
|
|
11076
11593
|
// src/api/componentspublic/models/PlanCreditGrantView.ts
|
|
11077
11594
|
function PlanCreditGrantViewFromJSON2(json) {
|
|
11078
11595
|
return PlanCreditGrantViewFromJSONTyped3(json, false);
|
|
@@ -11168,6 +11685,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
|
|
|
11168
11685
|
};
|
|
11169
11686
|
}
|
|
11170
11687
|
|
|
11688
|
+
// src/api/componentspublic/models/RenewalPolicy.ts
|
|
11689
|
+
function RenewalPolicyFromJSON2(json) {
|
|
11690
|
+
return RenewalPolicyFromJSONTyped3(json, false);
|
|
11691
|
+
}
|
|
11692
|
+
function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
|
|
11693
|
+
return json;
|
|
11694
|
+
}
|
|
11695
|
+
|
|
11171
11696
|
// src/api/componentspublic/models/PlanVersionResponseData.ts
|
|
11172
11697
|
function PlanVersionResponseDataFromJSON2(json) {
|
|
11173
11698
|
return PlanVersionResponseDataFromJSONTyped5(json, false);
|
|
@@ -11185,6 +11710,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
11185
11710
|
name: json["name"],
|
|
11186
11711
|
originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
|
|
11187
11712
|
planType: PlanTypeFromJSON2(json["plan_type"]),
|
|
11713
|
+
renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
|
|
11188
11714
|
status: PlanVersionStatusFromJSON2(json["status"]),
|
|
11189
11715
|
updatedAt: new Date(json["updated_at"]),
|
|
11190
11716
|
version: json["version"]
|
|
@@ -16779,7 +17305,7 @@ var reducer = (state, action) => {
|
|
|
16779
17305
|
// src/context/EmbedProvider.tsx
|
|
16780
17306
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
16781
17307
|
var getCustomHeaders = (sessionId) => ({
|
|
16782
|
-
"X-Schematic-Components-Version": "2.
|
|
17308
|
+
"X-Schematic-Components-Version": "2.34.1",
|
|
16783
17309
|
"X-Schematic-Session-ID": sessionId
|
|
16784
17310
|
});
|
|
16785
17311
|
var normalizeCurrencyFilter = (filter2) => {
|