@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
|
@@ -4006,7 +4006,7 @@ var import_merge3 = __toESM(require_merge());
|
|
|
4006
4006
|
var import_react4 = require("react");
|
|
4007
4007
|
var import_styled_components3 = __toESM(require_styled_components_cjs());
|
|
4008
4008
|
|
|
4009
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
4009
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/stringify.js
|
|
4010
4010
|
var byteToHex = [];
|
|
4011
4011
|
for (let i = 0; i < 256; ++i) {
|
|
4012
4012
|
byteToHex.push((i + 256).toString(16).slice(1));
|
|
@@ -4015,13 +4015,13 @@ function unsafeStringify(arr, offset = 0) {
|
|
|
4015
4015
|
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();
|
|
4016
4016
|
}
|
|
4017
4017
|
|
|
4018
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
4018
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/rng.js
|
|
4019
4019
|
var rnds8 = new Uint8Array(16);
|
|
4020
4020
|
function rng() {
|
|
4021
4021
|
return crypto.getRandomValues(rnds8);
|
|
4022
4022
|
}
|
|
4023
4023
|
|
|
4024
|
-
// node_modules/.pnpm/uuid@14.0.
|
|
4024
|
+
// node_modules/.pnpm/uuid@14.0.3/node_modules/uuid/dist/v4.js
|
|
4025
4025
|
function v4(options, buf, offset) {
|
|
4026
4026
|
if (!buf && !options && crypto.randomUUID) {
|
|
4027
4027
|
return crypto.randomUUID();
|
|
@@ -4916,6 +4916,24 @@ function PreviewObjectResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4916
4916
|
};
|
|
4917
4917
|
}
|
|
4918
4918
|
|
|
4919
|
+
// src/api/checkoutexternal/models/BillingPlanCreditGrantWarningTierResponseData.ts
|
|
4920
|
+
function BillingPlanCreditGrantWarningTierResponseDataFromJSON(json) {
|
|
4921
|
+
return BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(
|
|
4922
|
+
json,
|
|
4923
|
+
false
|
|
4924
|
+
);
|
|
4925
|
+
}
|
|
4926
|
+
function BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4927
|
+
if (json == null) {
|
|
4928
|
+
return json;
|
|
4929
|
+
}
|
|
4930
|
+
return {
|
|
4931
|
+
id: json["id"],
|
|
4932
|
+
key: json["key"],
|
|
4933
|
+
value: json["value"]
|
|
4934
|
+
};
|
|
4935
|
+
}
|
|
4936
|
+
|
|
4919
4937
|
// src/api/checkoutexternal/models/BillingPlanCreditGrantResponseData.ts
|
|
4920
4938
|
function BillingPlanCreditGrantResponseDataFromJSON(json) {
|
|
4921
4939
|
return BillingPlanCreditGrantResponseDataFromJSONTyped(json, false);
|
|
@@ -4976,7 +4994,10 @@ function BillingPlanCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminat
|
|
|
4976
4994
|
tierMode: json["tier_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tier_mode"]),
|
|
4977
4995
|
unitPrice: json["unit_price"] == null ? void 0 : json["unit_price"],
|
|
4978
4996
|
unitPriceDecimal: json["unit_price_decimal"] == null ? void 0 : json["unit_price_decimal"],
|
|
4979
|
-
updatedAt: new Date(json["updated_at"])
|
|
4997
|
+
updatedAt: new Date(json["updated_at"]),
|
|
4998
|
+
warningTiers: json["warning_tiers"].map(
|
|
4999
|
+
BillingPlanCreditGrantWarningTierResponseDataFromJSON
|
|
5000
|
+
)
|
|
4980
5001
|
};
|
|
4981
5002
|
}
|
|
4982
5003
|
|
|
@@ -5207,29 +5228,6 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5207
5228
|
};
|
|
5208
5229
|
}
|
|
5209
5230
|
|
|
5210
|
-
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
5211
|
-
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
5212
|
-
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
5213
|
-
}
|
|
5214
|
-
function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5215
|
-
if (json == null) {
|
|
5216
|
-
return json;
|
|
5217
|
-
}
|
|
5218
|
-
return {
|
|
5219
|
-
companyCreditAmount: json["company_credit_amount"],
|
|
5220
|
-
creditAmount: json["credit_amount"],
|
|
5221
|
-
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5222
|
-
creditId: json["credit_id"],
|
|
5223
|
-
creditName: json["credit_name"],
|
|
5224
|
-
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5225
|
-
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5226
|
-
id: json["id"],
|
|
5227
|
-
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5228
|
-
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
5229
|
-
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
5230
|
-
};
|
|
5231
|
-
}
|
|
5232
|
-
|
|
5233
5231
|
// src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
|
|
5234
5232
|
function CatalogPriceTierResponseDataFromJSON(json) {
|
|
5235
5233
|
return CatalogPriceTierResponseDataFromJSONTyped(json, false);
|
|
@@ -5272,6 +5270,420 @@ function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5272
5270
|
};
|
|
5273
5271
|
}
|
|
5274
5272
|
|
|
5273
|
+
// src/api/checkoutexternal/models/CatalogBundleCurrencyPriceResponseData.ts
|
|
5274
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSON(json) {
|
|
5275
|
+
return CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, false);
|
|
5276
|
+
}
|
|
5277
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5278
|
+
if (json == null) {
|
|
5279
|
+
return json;
|
|
5280
|
+
}
|
|
5281
|
+
return {
|
|
5282
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5283
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
5284
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
5285
|
+
};
|
|
5286
|
+
}
|
|
5287
|
+
|
|
5288
|
+
// src/api/checkoutexternal/models/CatalogAutoTopupResponseData.ts
|
|
5289
|
+
function CatalogAutoTopupResponseDataFromJSON(json) {
|
|
5290
|
+
return CatalogAutoTopupResponseDataFromJSONTyped(json, false);
|
|
5291
|
+
}
|
|
5292
|
+
function CatalogAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5293
|
+
if (json == null) {
|
|
5294
|
+
return json;
|
|
5295
|
+
}
|
|
5296
|
+
return {
|
|
5297
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
5298
|
+
availability: BillingCreditAutoTopupAvailabilityFromJSON(
|
|
5299
|
+
json["availability"]
|
|
5300
|
+
),
|
|
5301
|
+
companyAmount: json["company_amount"] == null ? void 0 : json["company_amount"],
|
|
5302
|
+
companyEnabled: json["company_enabled"] == null ? void 0 : json["company_enabled"],
|
|
5303
|
+
companyThresholdCredits: json["company_threshold_credits"] == null ? void 0 : json["company_threshold_credits"],
|
|
5304
|
+
creditId: json["credit_id"],
|
|
5305
|
+
currencyPrices: json["currency_prices"].map(
|
|
5306
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
5307
|
+
),
|
|
5308
|
+
enabled: json["enabled"],
|
|
5309
|
+
planCreditGrantId: json["plan_credit_grant_id"],
|
|
5310
|
+
thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"],
|
|
5311
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
5312
|
+
};
|
|
5313
|
+
}
|
|
5314
|
+
|
|
5315
|
+
// src/api/checkoutexternal/models/CatalogCapabilitiesResponseData.ts
|
|
5316
|
+
function CatalogCapabilitiesResponseDataFromJSON(json) {
|
|
5317
|
+
return CatalogCapabilitiesResponseDataFromJSONTyped(json, false);
|
|
5318
|
+
}
|
|
5319
|
+
function CatalogCapabilitiesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5320
|
+
if (json == null) {
|
|
5321
|
+
return json;
|
|
5322
|
+
}
|
|
5323
|
+
return {
|
|
5324
|
+
badgeVisibility: json["badge_visibility"],
|
|
5325
|
+
checkout: json["checkout"]
|
|
5326
|
+
};
|
|
5327
|
+
}
|
|
5328
|
+
|
|
5329
|
+
// src/api/checkoutexternal/models/CatalogCheckoutFieldResponseData.ts
|
|
5330
|
+
function CatalogCheckoutFieldResponseDataFromJSON(json) {
|
|
5331
|
+
return CatalogCheckoutFieldResponseDataFromJSONTyped(json, false);
|
|
5332
|
+
}
|
|
5333
|
+
function CatalogCheckoutFieldResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5334
|
+
if (json == null) {
|
|
5335
|
+
return json;
|
|
5336
|
+
}
|
|
5337
|
+
return {
|
|
5338
|
+
helperText: json["helper_text"] == null ? void 0 : json["helper_text"],
|
|
5339
|
+
id: json["id"],
|
|
5340
|
+
name: json["name"],
|
|
5341
|
+
required: json["required"],
|
|
5342
|
+
value: json["value"] == null ? void 0 : json["value"]
|
|
5343
|
+
};
|
|
5344
|
+
}
|
|
5345
|
+
|
|
5346
|
+
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
5347
|
+
var CheckoutBundlePurchaseBehavior = {
|
|
5348
|
+
Individual: "individual",
|
|
5349
|
+
Quantity: "quantity"
|
|
5350
|
+
};
|
|
5351
|
+
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
5352
|
+
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
5353
|
+
}
|
|
5354
|
+
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5355
|
+
return json;
|
|
5356
|
+
}
|
|
5357
|
+
|
|
5358
|
+
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
5359
|
+
var ProrationBehavior = {
|
|
5360
|
+
CreateProrations: "create_prorations",
|
|
5361
|
+
InvoiceImmediately: "invoice_immediately"
|
|
5362
|
+
};
|
|
5363
|
+
function ProrationBehaviorFromJSON(json) {
|
|
5364
|
+
return ProrationBehaviorFromJSONTyped(json, false);
|
|
5365
|
+
}
|
|
5366
|
+
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5367
|
+
return json;
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5370
|
+
// src/api/checkoutexternal/models/CatalogCheckoutSettingsResponseData.ts
|
|
5371
|
+
function CatalogCheckoutSettingsResponseDataFromJSON(json) {
|
|
5372
|
+
return CatalogCheckoutSettingsResponseDataFromJSONTyped(json, false);
|
|
5373
|
+
}
|
|
5374
|
+
function CatalogCheckoutSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5375
|
+
if (json == null) {
|
|
5376
|
+
return json;
|
|
5377
|
+
}
|
|
5378
|
+
return {
|
|
5379
|
+
bundlePurchaseBehavior: CheckoutBundlePurchaseBehaviorFromJSON(
|
|
5380
|
+
json["bundle_purchase_behavior"]
|
|
5381
|
+
),
|
|
5382
|
+
collectAddress: json["collect_address"],
|
|
5383
|
+
collectEmail: json["collect_email"],
|
|
5384
|
+
collectPhone: json["collect_phone"],
|
|
5385
|
+
collectTaxId: json["collect_tax_id"],
|
|
5386
|
+
customFields: json["custom_fields"].map(
|
|
5387
|
+
CatalogCheckoutFieldResponseDataFromJSON
|
|
5388
|
+
),
|
|
5389
|
+
prorationBehavior: ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5390
|
+
taxCollectionEnabled: json["tax_collection_enabled"]
|
|
5391
|
+
};
|
|
5392
|
+
}
|
|
5393
|
+
|
|
5394
|
+
// src/api/checkoutexternal/models/CatalogPlanRefResponseData.ts
|
|
5395
|
+
function CatalogPlanRefResponseDataFromJSON(json) {
|
|
5396
|
+
return CatalogPlanRefResponseDataFromJSONTyped(json, false);
|
|
5397
|
+
}
|
|
5398
|
+
function CatalogPlanRefResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5399
|
+
if (json == null) {
|
|
5400
|
+
return json;
|
|
5401
|
+
}
|
|
5402
|
+
return {
|
|
5403
|
+
id: json["id"],
|
|
5404
|
+
name: json["name"]
|
|
5405
|
+
};
|
|
5406
|
+
}
|
|
5407
|
+
|
|
5408
|
+
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
5409
|
+
var CompanyPlanInvalidReason = {
|
|
5410
|
+
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
5411
|
+
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
5412
|
+
};
|
|
5413
|
+
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
5414
|
+
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
5415
|
+
}
|
|
5416
|
+
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
5417
|
+
return json;
|
|
5418
|
+
}
|
|
5419
|
+
|
|
5420
|
+
// src/api/checkoutexternal/models/CatalogUsageViolationResponseData.ts
|
|
5421
|
+
function CatalogUsageViolationResponseDataFromJSON(json) {
|
|
5422
|
+
return CatalogUsageViolationResponseDataFromJSONTyped(json, false);
|
|
5423
|
+
}
|
|
5424
|
+
function CatalogUsageViolationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5425
|
+
if (json == null) {
|
|
5426
|
+
return json;
|
|
5427
|
+
}
|
|
5428
|
+
return {
|
|
5429
|
+
featureId: json["feature_id"],
|
|
5430
|
+
featureName: json["feature_name"],
|
|
5431
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
5432
|
+
usage: json["usage"]
|
|
5433
|
+
};
|
|
5434
|
+
}
|
|
5435
|
+
|
|
5436
|
+
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
5437
|
+
var EntitlementValueType = {
|
|
5438
|
+
Boolean: "boolean",
|
|
5439
|
+
Credit: "credit",
|
|
5440
|
+
Numeric: "numeric",
|
|
5441
|
+
Trait: "trait",
|
|
5442
|
+
Unknown: "unknown",
|
|
5443
|
+
Unlimited: "unlimited"
|
|
5444
|
+
};
|
|
5445
|
+
function EntitlementValueTypeFromJSON(json) {
|
|
5446
|
+
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
5447
|
+
}
|
|
5448
|
+
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5449
|
+
return json;
|
|
5450
|
+
}
|
|
5451
|
+
|
|
5452
|
+
// src/api/checkoutexternal/models/FeatureType.ts
|
|
5453
|
+
var FeatureType = {
|
|
5454
|
+
Boolean: "boolean",
|
|
5455
|
+
Event: "event",
|
|
5456
|
+
License: "license",
|
|
5457
|
+
Trait: "trait"
|
|
5458
|
+
};
|
|
5459
|
+
function FeatureTypeFromJSON(json) {
|
|
5460
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
5461
|
+
}
|
|
5462
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5463
|
+
return json;
|
|
5464
|
+
}
|
|
5465
|
+
|
|
5466
|
+
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5467
|
+
function MetricPeriodMonthResetFromJSON(json) {
|
|
5468
|
+
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5469
|
+
}
|
|
5470
|
+
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5471
|
+
return json;
|
|
5472
|
+
}
|
|
5473
|
+
|
|
5474
|
+
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5475
|
+
function MetricPeriodFromJSON(json) {
|
|
5476
|
+
return MetricPeriodFromJSONTyped(json, false);
|
|
5477
|
+
}
|
|
5478
|
+
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5479
|
+
return json;
|
|
5480
|
+
}
|
|
5481
|
+
|
|
5482
|
+
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
5483
|
+
var EntitlementPriceBehavior = {
|
|
5484
|
+
CreditBurndown: "credit_burndown",
|
|
5485
|
+
Overage: "overage",
|
|
5486
|
+
PayAsYouGo: "pay_as_you_go",
|
|
5487
|
+
PayInAdvance: "pay_in_advance",
|
|
5488
|
+
Tier: "tier"
|
|
5489
|
+
};
|
|
5490
|
+
function EntitlementPriceBehaviorFromJSON(json) {
|
|
5491
|
+
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
5492
|
+
}
|
|
5493
|
+
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5494
|
+
return json;
|
|
5495
|
+
}
|
|
5496
|
+
|
|
5497
|
+
// src/api/checkoutexternal/models/CatalogCurrencyPricesResponseData.ts
|
|
5498
|
+
function CatalogCurrencyPricesResponseDataFromJSON(json) {
|
|
5499
|
+
return CatalogCurrencyPricesResponseDataFromJSONTyped(json, false);
|
|
5500
|
+
}
|
|
5501
|
+
function CatalogCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5502
|
+
if (json == null) {
|
|
5503
|
+
return json;
|
|
5504
|
+
}
|
|
5505
|
+
return {
|
|
5506
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5507
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5508
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5509
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5510
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5511
|
+
};
|
|
5512
|
+
}
|
|
5513
|
+
|
|
5514
|
+
// src/api/checkoutexternal/models/CatalogPlanEntitlementResponseData.ts
|
|
5515
|
+
function CatalogPlanEntitlementResponseDataFromJSON(json) {
|
|
5516
|
+
return CatalogPlanEntitlementResponseDataFromJSONTyped(json, false);
|
|
5517
|
+
}
|
|
5518
|
+
function CatalogPlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5519
|
+
if (json == null) {
|
|
5520
|
+
return json;
|
|
5521
|
+
}
|
|
5522
|
+
return {
|
|
5523
|
+
consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
|
|
5524
|
+
creditEquivalentLimit: json["credit_equivalent_limit"] == null ? void 0 : json["credit_equivalent_limit"],
|
|
5525
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5526
|
+
creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
|
|
5527
|
+
creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
|
|
5528
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5529
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5530
|
+
currencyPrices: json["currency_prices"].map(
|
|
5531
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5532
|
+
),
|
|
5533
|
+
featureDescription: json["feature_description"],
|
|
5534
|
+
featureIcon: json["feature_icon"],
|
|
5535
|
+
featureId: json["feature_id"],
|
|
5536
|
+
featureName: json["feature_name"],
|
|
5537
|
+
featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
|
|
5538
|
+
featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
|
|
5539
|
+
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
5540
|
+
id: json["id"],
|
|
5541
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5542
|
+
meteredMonthlyPrice: json["metered_monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_monthly_price"]),
|
|
5543
|
+
meteredQuarterlyPrice: json["metered_quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_quarterly_price"]),
|
|
5544
|
+
meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_yearly_price"]),
|
|
5545
|
+
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
5546
|
+
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
5547
|
+
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
5548
|
+
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
5549
|
+
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
5550
|
+
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
5551
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
5552
|
+
warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
|
|
5553
|
+
};
|
|
5554
|
+
}
|
|
5555
|
+
|
|
5556
|
+
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5557
|
+
function ChargeTypeFromJSON(json) {
|
|
5558
|
+
return ChargeTypeFromJSONTyped(json, false);
|
|
5559
|
+
}
|
|
5560
|
+
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5561
|
+
return json;
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5564
|
+
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
5565
|
+
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
5566
|
+
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
5567
|
+
}
|
|
5568
|
+
function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5569
|
+
if (json == null) {
|
|
5570
|
+
return json;
|
|
5571
|
+
}
|
|
5572
|
+
return {
|
|
5573
|
+
companyCreditAmount: json["company_credit_amount"],
|
|
5574
|
+
creditAmount: json["credit_amount"],
|
|
5575
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5576
|
+
creditId: json["credit_id"],
|
|
5577
|
+
creditName: json["credit_name"],
|
|
5578
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5579
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5580
|
+
id: json["id"],
|
|
5581
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5582
|
+
resetCadence: json["reset_cadence"] == null ? void 0 : BillingPlanCreditGrantResetCadenceFromJSON(json["reset_cadence"]),
|
|
5583
|
+
scaling: PlanCreditGrantScalingFromJSON(json["scaling"])
|
|
5584
|
+
};
|
|
5585
|
+
}
|
|
5586
|
+
|
|
5587
|
+
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
5588
|
+
function PlanPriceCadenceFromJSON(json) {
|
|
5589
|
+
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
5590
|
+
}
|
|
5591
|
+
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
5592
|
+
return json;
|
|
5593
|
+
}
|
|
5594
|
+
|
|
5595
|
+
// src/api/checkoutexternal/models/CatalogCompanyPlanResponseData.ts
|
|
5596
|
+
function CatalogCompanyPlanResponseDataFromJSON(json) {
|
|
5597
|
+
return CatalogCompanyPlanResponseDataFromJSONTyped(json, false);
|
|
5598
|
+
}
|
|
5599
|
+
function CatalogCompanyPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5600
|
+
if (json == null) {
|
|
5601
|
+
return json;
|
|
5602
|
+
}
|
|
5603
|
+
return {
|
|
5604
|
+
autoTopups: json["auto_topups"].map(
|
|
5605
|
+
CatalogAutoTopupResponseDataFromJSON
|
|
5606
|
+
),
|
|
5607
|
+
availablePeriods: json["available_periods"].map(
|
|
5608
|
+
PlanPriceCadenceFromJSON
|
|
5609
|
+
),
|
|
5610
|
+
billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
|
|
5611
|
+
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
5612
|
+
companyCanTrial: json["company_can_trial"],
|
|
5613
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5614
|
+
currencyPrices: json["currency_prices"].map(
|
|
5615
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5616
|
+
),
|
|
5617
|
+
current: json["current"],
|
|
5618
|
+
description: json["description"],
|
|
5619
|
+
entitlements: json["entitlements"].map(
|
|
5620
|
+
CatalogPlanEntitlementResponseDataFromJSON
|
|
5621
|
+
),
|
|
5622
|
+
icon: json["icon"],
|
|
5623
|
+
id: json["id"],
|
|
5624
|
+
includedCreditGrants: json["included_credit_grants"].map(
|
|
5625
|
+
CatalogCreditGrantResponseDataFromJSON
|
|
5626
|
+
),
|
|
5627
|
+
invalidReason: json["invalid_reason"] == null ? void 0 : CompanyPlanInvalidReasonFromJSON(json["invalid_reason"]),
|
|
5628
|
+
isTrialable: json["is_trialable"],
|
|
5629
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5630
|
+
name: json["name"],
|
|
5631
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5632
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5633
|
+
trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
|
|
5634
|
+
usageViolations: json["usage_violations"].map(
|
|
5635
|
+
CatalogUsageViolationResponseDataFromJSON
|
|
5636
|
+
),
|
|
5637
|
+
valid: json["valid"],
|
|
5638
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5639
|
+
};
|
|
5640
|
+
}
|
|
5641
|
+
|
|
5642
|
+
// src/api/checkoutexternal/models/CatalogCreditBundleResponseData.ts
|
|
5643
|
+
function CatalogCreditBundleResponseDataFromJSON(json) {
|
|
5644
|
+
return CatalogCreditBundleResponseDataFromJSONTyped(json, false);
|
|
5645
|
+
}
|
|
5646
|
+
function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5647
|
+
if (json == null) {
|
|
5648
|
+
return json;
|
|
5649
|
+
}
|
|
5650
|
+
return {
|
|
5651
|
+
bundleType: BillingCreditBundleTypeFromJSON(json["bundle_type"]),
|
|
5652
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5653
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5654
|
+
creditId: json["credit_id"],
|
|
5655
|
+
creditName: json["credit_name"],
|
|
5656
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5657
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5658
|
+
currencyPrices: json["currency_prices"].map(
|
|
5659
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
5660
|
+
),
|
|
5661
|
+
expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
5662
|
+
expiryUnit: BillingCreditExpiryUnitFromJSON(json["expiry_unit"]),
|
|
5663
|
+
expiryUnitCount: json["expiry_unit_count"] == null ? void 0 : json["expiry_unit_count"],
|
|
5664
|
+
id: json["id"],
|
|
5665
|
+
name: json["name"],
|
|
5666
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
5667
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"],
|
|
5668
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
5669
|
+
};
|
|
5670
|
+
}
|
|
5671
|
+
|
|
5672
|
+
// src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
|
|
5673
|
+
function CatalogCustomPlanCTAResponseDataFromJSON(json) {
|
|
5674
|
+
return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
|
|
5675
|
+
}
|
|
5676
|
+
function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5677
|
+
if (json == null) {
|
|
5678
|
+
return json;
|
|
5679
|
+
}
|
|
5680
|
+
return {
|
|
5681
|
+
ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
|
|
5682
|
+
ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
|
|
5683
|
+
priceText: json["price_text"] == null ? void 0 : json["price_text"]
|
|
5684
|
+
};
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5275
5687
|
// src/api/checkoutexternal/models/UpdatePayInAdvanceRequestBody.ts
|
|
5276
5688
|
function UpdatePayInAdvanceRequestBodyFromJSON(json) {
|
|
5277
5689
|
return UpdatePayInAdvanceRequestBodyFromJSONTyped(json, false);
|
|
@@ -5442,24 +5854,25 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5442
5854
|
};
|
|
5443
5855
|
}
|
|
5444
5856
|
|
|
5445
|
-
// src/api/checkoutexternal/models/
|
|
5446
|
-
function
|
|
5447
|
-
return
|
|
5448
|
-
}
|
|
5449
|
-
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5450
|
-
return json;
|
|
5451
|
-
}
|
|
5452
|
-
|
|
5453
|
-
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
5454
|
-
var CheckoutBundlePurchaseBehavior = {
|
|
5455
|
-
Individual: "individual",
|
|
5456
|
-
Quantity: "quantity"
|
|
5457
|
-
};
|
|
5458
|
-
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
5459
|
-
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
5857
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
|
|
5858
|
+
function CheckoutPriceSnapshotDiscountFromJSON(json) {
|
|
5859
|
+
return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
|
|
5460
5860
|
}
|
|
5461
|
-
function
|
|
5462
|
-
|
|
5861
|
+
function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
|
|
5862
|
+
if (json == null) {
|
|
5863
|
+
return json;
|
|
5864
|
+
}
|
|
5865
|
+
return {
|
|
5866
|
+
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
5867
|
+
couponExternalId: json["coupon_external_id"],
|
|
5868
|
+
couponName: json["coupon_name"],
|
|
5869
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5870
|
+
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
5871
|
+
duration: json["duration"],
|
|
5872
|
+
durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
|
|
5873
|
+
percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
|
|
5874
|
+
promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
|
|
5875
|
+
};
|
|
5463
5876
|
}
|
|
5464
5877
|
|
|
5465
5878
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
@@ -5473,10 +5886,16 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5473
5886
|
return {
|
|
5474
5887
|
amountOff: json["amount_off"],
|
|
5475
5888
|
currency: CurrencyFromJSON(json["currency"]),
|
|
5889
|
+
discountAmount: json["discount_amount"],
|
|
5890
|
+
discounts: json["discounts"].map(
|
|
5891
|
+
CheckoutPriceSnapshotDiscountFromJSON
|
|
5892
|
+
),
|
|
5476
5893
|
dueNow: json["due_now"],
|
|
5477
5894
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5478
5895
|
newCharges: json["new_charges"],
|
|
5479
5896
|
optInRequired: json["opt_in_required"],
|
|
5897
|
+
optInText: json["opt_in_text"] == null ? void 0 : json["opt_in_text"],
|
|
5898
|
+
optInTitle: json["opt_in_title"] == null ? void 0 : json["opt_in_title"],
|
|
5480
5899
|
paymentMethodRequired: json["payment_method_required"],
|
|
5481
5900
|
percentOff: json["percent_off"],
|
|
5482
5901
|
periodStart: new Date(json["period_start"]),
|
|
@@ -5498,6 +5917,17 @@ function CheckoutStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5498
5917
|
return json;
|
|
5499
5918
|
}
|
|
5500
5919
|
|
|
5920
|
+
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5921
|
+
function CheckoutIntentFromJSON(json) {
|
|
5922
|
+
return CheckoutIntentFromJSONTyped(json, false);
|
|
5923
|
+
}
|
|
5924
|
+
function CheckoutIntentFromJSONTyped(json, ignoreDiscriminator) {
|
|
5925
|
+
return json;
|
|
5926
|
+
}
|
|
5927
|
+
function CheckoutIntentToJSON(value) {
|
|
5928
|
+
return value;
|
|
5929
|
+
}
|
|
5930
|
+
|
|
5501
5931
|
// src/api/checkoutexternal/models/CheckoutSelectionsResponseData.ts
|
|
5502
5932
|
function CheckoutSelectionsResponseDataFromJSON(json) {
|
|
5503
5933
|
return CheckoutSelectionsResponseDataFromJSONTyped(json, false);
|
|
@@ -5518,9 +5948,11 @@ function CheckoutSelectionsResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5518
5948
|
creditBundles: json["credit_bundles"].map(
|
|
5519
5949
|
UpdateCreditBundleRequestBodyFromJSON
|
|
5520
5950
|
),
|
|
5951
|
+
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
5521
5952
|
customFieldValues: json["custom_field_values"].map(
|
|
5522
5953
|
CheckoutFieldValueFromJSON
|
|
5523
5954
|
),
|
|
5955
|
+
intent: CheckoutIntentFromJSON(json["intent"]),
|
|
5524
5956
|
newPlanId: json["new_plan_id"] == null ? void 0 : json["new_plan_id"],
|
|
5525
5957
|
newPriceId: json["new_price_id"] == null ? void 0 : json["new_price_id"],
|
|
5526
5958
|
optInAccepted: json["opt_in_accepted"] == null ? void 0 : json["opt_in_accepted"],
|
|
@@ -5620,11 +6052,6 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5620
6052
|
};
|
|
5621
6053
|
}
|
|
5622
6054
|
|
|
5623
|
-
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5624
|
-
function CheckoutIntentToJSON(value) {
|
|
5625
|
-
return value;
|
|
5626
|
-
}
|
|
5627
|
-
|
|
5628
6055
|
// src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
|
|
5629
6056
|
function ScheduledDowngradeConfigBehaviorFromJSON(json) {
|
|
5630
6057
|
return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
|
|
@@ -5729,15 +6156,19 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5729
6156
|
};
|
|
5730
6157
|
}
|
|
5731
6158
|
|
|
5732
|
-
// src/api/checkoutexternal/models/
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
InvoiceImmediately: "invoice_immediately"
|
|
5736
|
-
};
|
|
5737
|
-
function ProrationBehaviorFromJSON(json) {
|
|
5738
|
-
return ProrationBehaviorFromJSONTyped(json, false);
|
|
6159
|
+
// src/api/checkoutexternal/models/Collector.ts
|
|
6160
|
+
function CollectorFromJSON(json) {
|
|
6161
|
+
return CollectorFromJSONTyped(json, false);
|
|
5739
6162
|
}
|
|
5740
|
-
function
|
|
6163
|
+
function CollectorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6164
|
+
return json;
|
|
6165
|
+
}
|
|
6166
|
+
|
|
6167
|
+
// src/api/checkoutexternal/models/PaymentGating.ts
|
|
6168
|
+
function PaymentGatingFromJSON(json) {
|
|
6169
|
+
return PaymentGatingFromJSONTyped(json, false);
|
|
6170
|
+
}
|
|
6171
|
+
function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
|
|
5741
6172
|
return json;
|
|
5742
6173
|
}
|
|
5743
6174
|
|
|
@@ -5755,20 +6186,63 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
5755
6186
|
collectionMethod: BillingCollectionMethodFromJSON(
|
|
5756
6187
|
json["collection_method"]
|
|
5757
6188
|
),
|
|
6189
|
+
collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
|
|
5758
6190
|
companyId: json["company_id"],
|
|
5759
6191
|
createdAt: new Date(json["created_at"]),
|
|
6192
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5760
6193
|
daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
|
|
5761
6194
|
environmentId: json["environment_id"],
|
|
6195
|
+
gatingDays: json["gating_days"],
|
|
5762
6196
|
id: json["id"],
|
|
5763
6197
|
isDefault: json["is_default"],
|
|
5764
6198
|
name: json["name"] == null ? void 0 : json["name"],
|
|
6199
|
+
overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
|
|
6200
|
+
paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
|
|
5765
6201
|
paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
|
|
5766
6202
|
prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5767
6203
|
providerType: BillingProviderTypeFromJSON(json["provider_type"]),
|
|
6204
|
+
purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
|
|
5768
6205
|
updatedAt: new Date(json["updated_at"])
|
|
5769
6206
|
};
|
|
5770
6207
|
}
|
|
5771
6208
|
|
|
6209
|
+
// src/api/checkoutexternal/models/CompanyCatalogResponseData.ts
|
|
6210
|
+
function CompanyCatalogResponseDataFromJSON(json) {
|
|
6211
|
+
return CompanyCatalogResponseDataFromJSONTyped(json, false);
|
|
6212
|
+
}
|
|
6213
|
+
function CompanyCatalogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6214
|
+
if (json == null) {
|
|
6215
|
+
return json;
|
|
6216
|
+
}
|
|
6217
|
+
return {
|
|
6218
|
+
addOns: json["add_ons"].map(
|
|
6219
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
6220
|
+
),
|
|
6221
|
+
capabilities: CatalogCapabilitiesResponseDataFromJSON(json["capabilities"]),
|
|
6222
|
+
checkoutSettings: CatalogCheckoutSettingsResponseDataFromJSON(
|
|
6223
|
+
json["checkout_settings"]
|
|
6224
|
+
),
|
|
6225
|
+
creditBundles: json["credit_bundles"].map(
|
|
6226
|
+
CatalogCreditBundleResponseDataFromJSON
|
|
6227
|
+
),
|
|
6228
|
+
customPlanCta: json["custom_plan_cta"] == null ? void 0 : CatalogCustomPlanCTAResponseDataFromJSON(json["custom_plan_cta"]),
|
|
6229
|
+
defaultCurrency: CurrencyFromJSON(json["default_currency"]),
|
|
6230
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
6231
|
+
id: json["id"],
|
|
6232
|
+
name: json["name"],
|
|
6233
|
+
plans: json["plans"].map(
|
|
6234
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
6235
|
+
),
|
|
6236
|
+
preventSelfServiceDowngrade: json["prevent_self_service_downgrade"],
|
|
6237
|
+
preventSelfServiceDowngradeButtonText: json["prevent_self_service_downgrade_button_text"] == null ? void 0 : json["prevent_self_service_downgrade_button_text"],
|
|
6238
|
+
preventSelfServiceDowngradeUrl: json["prevent_self_service_downgrade_url"] == null ? void 0 : json["prevent_self_service_downgrade_url"],
|
|
6239
|
+
pricingModel: json["pricing_model"] == null ? void 0 : json["pricing_model"],
|
|
6240
|
+
pricingUrl: json["pricing_url"] == null ? void 0 : json["pricing_url"],
|
|
6241
|
+
trialExpiryPlan: json["trial_expiry_plan"] == null ? void 0 : CatalogPlanRefResponseDataFromJSON(json["trial_expiry_plan"]),
|
|
6242
|
+
trialPaymentMethodRequired: json["trial_payment_method_required"] == null ? void 0 : json["trial_payment_method_required"]
|
|
6243
|
+
};
|
|
6244
|
+
}
|
|
6245
|
+
|
|
5772
6246
|
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
5773
6247
|
var CustomPlanActivationStrategy = {
|
|
5774
6248
|
Payment: "on_payment",
|
|
@@ -6159,30 +6633,6 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6159
6633
|
};
|
|
6160
6634
|
}
|
|
6161
6635
|
|
|
6162
|
-
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
6163
|
-
var EntitlementValueType = {
|
|
6164
|
-
Boolean: "boolean",
|
|
6165
|
-
Credit: "credit",
|
|
6166
|
-
Numeric: "numeric",
|
|
6167
|
-
Trait: "trait",
|
|
6168
|
-
Unknown: "unknown",
|
|
6169
|
-
Unlimited: "unlimited"
|
|
6170
|
-
};
|
|
6171
|
-
function EntitlementValueTypeFromJSON(json) {
|
|
6172
|
-
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
6173
|
-
}
|
|
6174
|
-
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6175
|
-
return json;
|
|
6176
|
-
}
|
|
6177
|
-
|
|
6178
|
-
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
6179
|
-
function MetricPeriodMonthResetFromJSON(json) {
|
|
6180
|
-
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
6181
|
-
}
|
|
6182
|
-
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
6183
|
-
return json;
|
|
6184
|
-
}
|
|
6185
|
-
|
|
6186
6636
|
// src/api/checkoutexternal/models/WarningTier.ts
|
|
6187
6637
|
function WarningTierFromJSON(json) {
|
|
6188
6638
|
return WarningTierFromJSONTyped(json, false);
|
|
@@ -6197,14 +6647,6 @@ function WarningTierFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6197
6647
|
};
|
|
6198
6648
|
}
|
|
6199
6649
|
|
|
6200
|
-
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
6201
|
-
function MetricPeriodFromJSON(json) {
|
|
6202
|
-
return MetricPeriodFromJSONTyped(json, false);
|
|
6203
|
-
}
|
|
6204
|
-
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
6205
|
-
return json;
|
|
6206
|
-
}
|
|
6207
|
-
|
|
6208
6650
|
// src/api/checkoutexternal/models/FeatureEntitlement.ts
|
|
6209
6651
|
function FeatureEntitlementFromJSON(json) {
|
|
6210
6652
|
return FeatureEntitlementFromJSONTyped(json, false);
|
|
@@ -6354,6 +6796,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6354
6796
|
companyId: json["company_id"],
|
|
6355
6797
|
createdAt: new Date(json["created_at"]),
|
|
6356
6798
|
daysUntilDue: json["days_until_due"],
|
|
6799
|
+
endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
|
|
6357
6800
|
externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
|
|
6358
6801
|
id: json["id"],
|
|
6359
6802
|
migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
|
|
@@ -6650,35 +7093,6 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6650
7093
|
};
|
|
6651
7094
|
}
|
|
6652
7095
|
|
|
6653
|
-
// src/api/checkoutexternal/models/FeatureType.ts
|
|
6654
|
-
var FeatureType = {
|
|
6655
|
-
Boolean: "boolean",
|
|
6656
|
-
Event: "event",
|
|
6657
|
-
License: "license",
|
|
6658
|
-
Trait: "trait"
|
|
6659
|
-
};
|
|
6660
|
-
function FeatureTypeFromJSON(json) {
|
|
6661
|
-
return FeatureTypeFromJSONTyped(json, false);
|
|
6662
|
-
}
|
|
6663
|
-
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6664
|
-
return json;
|
|
6665
|
-
}
|
|
6666
|
-
|
|
6667
|
-
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6668
|
-
var EntitlementPriceBehavior = {
|
|
6669
|
-
CreditBurndown: "credit_burndown",
|
|
6670
|
-
Overage: "overage",
|
|
6671
|
-
PayAsYouGo: "pay_as_you_go",
|
|
6672
|
-
PayInAdvance: "pay_in_advance",
|
|
6673
|
-
Tier: "tier"
|
|
6674
|
-
};
|
|
6675
|
-
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6676
|
-
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6677
|
-
}
|
|
6678
|
-
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6679
|
-
return json;
|
|
6680
|
-
}
|
|
6681
|
-
|
|
6682
7096
|
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6683
7097
|
function EntitlementTypeFromJSON(json) {
|
|
6684
7098
|
return EntitlementTypeFromJSONTyped(json, false);
|
|
@@ -6961,26 +7375,6 @@ function CompanyPaymentMethodsResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
6961
7375
|
};
|
|
6962
7376
|
}
|
|
6963
7377
|
|
|
6964
|
-
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
6965
|
-
var CompanyPlanInvalidReason = {
|
|
6966
|
-
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
6967
|
-
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
6968
|
-
};
|
|
6969
|
-
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
6970
|
-
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
6971
|
-
}
|
|
6972
|
-
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
6973
|
-
return json;
|
|
6974
|
-
}
|
|
6975
|
-
|
|
6976
|
-
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
6977
|
-
function PlanPriceCadenceFromJSON(json) {
|
|
6978
|
-
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
6979
|
-
}
|
|
6980
|
-
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
6981
|
-
return json;
|
|
6982
|
-
}
|
|
6983
|
-
|
|
6984
7378
|
// src/api/checkoutexternal/models/EstimatedPlanTotal.ts
|
|
6985
7379
|
function EstimatedPlanTotalFromJSON(json) {
|
|
6986
7380
|
return EstimatedPlanTotalFromJSONTyped(json, false);
|
|
@@ -7278,7 +7672,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7278
7672
|
}
|
|
7279
7673
|
return {
|
|
7280
7674
|
createdAt: new Date(json["created_at"]),
|
|
7281
|
-
defaultValue: json["default_value"],
|
|
7675
|
+
defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
|
|
7282
7676
|
description: json["description"],
|
|
7283
7677
|
feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
|
|
7284
7678
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
@@ -7438,6 +7832,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
7438
7832
|
};
|
|
7439
7833
|
}
|
|
7440
7834
|
|
|
7835
|
+
// src/api/checkoutexternal/models/RenewalPolicy.ts
|
|
7836
|
+
function RenewalPolicyFromJSON(json) {
|
|
7837
|
+
return RenewalPolicyFromJSONTyped(json, false);
|
|
7838
|
+
}
|
|
7839
|
+
function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
7840
|
+
return json;
|
|
7841
|
+
}
|
|
7842
|
+
|
|
7441
7843
|
// src/api/checkoutexternal/models/PlanVersionResponseData.ts
|
|
7442
7844
|
function PlanVersionResponseDataFromJSON(json) {
|
|
7443
7845
|
return PlanVersionResponseDataFromJSONTyped(json, false);
|
|
@@ -7455,6 +7857,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7455
7857
|
name: json["name"],
|
|
7456
7858
|
originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
|
|
7457
7859
|
planType: PlanTypeFromJSON(json["plan_type"]),
|
|
7860
|
+
renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
|
|
7458
7861
|
status: PlanVersionStatusFromJSON(json["status"]),
|
|
7459
7862
|
updatedAt: new Date(json["updated_at"]),
|
|
7460
7863
|
version: json["version"]
|
|
@@ -8310,6 +8713,34 @@ function FinalizeCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
8310
8713
|
};
|
|
8311
8714
|
}
|
|
8312
8715
|
|
|
8716
|
+
// src/api/checkoutexternal/models/GetCatalogViewByIDResponse.ts
|
|
8717
|
+
function GetCatalogViewByIDResponseFromJSON(json) {
|
|
8718
|
+
return GetCatalogViewByIDResponseFromJSONTyped(json, false);
|
|
8719
|
+
}
|
|
8720
|
+
function GetCatalogViewByIDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8721
|
+
if (json == null) {
|
|
8722
|
+
return json;
|
|
8723
|
+
}
|
|
8724
|
+
return {
|
|
8725
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8726
|
+
params: json["params"]
|
|
8727
|
+
};
|
|
8728
|
+
}
|
|
8729
|
+
|
|
8730
|
+
// src/api/checkoutexternal/models/GetCatalogViewResponse.ts
|
|
8731
|
+
function GetCatalogViewResponseFromJSON(json) {
|
|
8732
|
+
return GetCatalogViewResponseFromJSONTyped(json, false);
|
|
8733
|
+
}
|
|
8734
|
+
function GetCatalogViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8735
|
+
if (json == null) {
|
|
8736
|
+
return json;
|
|
8737
|
+
}
|
|
8738
|
+
return {
|
|
8739
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8740
|
+
params: json["params"]
|
|
8741
|
+
};
|
|
8742
|
+
}
|
|
8743
|
+
|
|
8313
8744
|
// src/api/checkoutexternal/models/GetCheckoutResponse.ts
|
|
8314
8745
|
function GetCheckoutResponseFromJSON(json) {
|
|
8315
8746
|
return GetCheckoutResponseFromJSONTyped(json, false);
|
|
@@ -9002,6 +9433,11 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
9002
9433
|
const queryParameters = {};
|
|
9003
9434
|
const headerParameters = {};
|
|
9004
9435
|
headerParameters["Content-Type"] = "application/json";
|
|
9436
|
+
if (requestParameters["xCheckoutSessionID"] != null) {
|
|
9437
|
+
headerParameters["X-Checkout-Session-ID"] = String(
|
|
9438
|
+
requestParameters["xCheckoutSessionID"]
|
|
9439
|
+
);
|
|
9440
|
+
}
|
|
9005
9441
|
if (this.configuration && this.configuration.apiKey) {
|
|
9006
9442
|
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9007
9443
|
"X-Schematic-Api-Key"
|
|
@@ -9235,6 +9671,11 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
9235
9671
|
const queryParameters = {};
|
|
9236
9672
|
const headerParameters = {};
|
|
9237
9673
|
headerParameters["Content-Type"] = "application/json";
|
|
9674
|
+
if (requestParameters["xCheckoutSessionID"] != null) {
|
|
9675
|
+
headerParameters["X-Checkout-Session-ID"] = String(
|
|
9676
|
+
requestParameters["xCheckoutSessionID"]
|
|
9677
|
+
);
|
|
9678
|
+
}
|
|
9238
9679
|
if (this.configuration && this.configuration.apiKey) {
|
|
9239
9680
|
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9240
9681
|
"X-Schematic-Api-Key"
|
|
@@ -9270,6 +9711,82 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
9270
9711
|
);
|
|
9271
9712
|
return await response.value();
|
|
9272
9713
|
}
|
|
9714
|
+
/**
|
|
9715
|
+
* Get catalog view
|
|
9716
|
+
*/
|
|
9717
|
+
async getCatalogViewRaw(initOverrides) {
|
|
9718
|
+
const queryParameters = {};
|
|
9719
|
+
const headerParameters = {};
|
|
9720
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9721
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9722
|
+
"X-Schematic-Api-Key"
|
|
9723
|
+
);
|
|
9724
|
+
}
|
|
9725
|
+
const response = await this.request(
|
|
9726
|
+
{
|
|
9727
|
+
path: `/catalog/view`,
|
|
9728
|
+
method: "GET",
|
|
9729
|
+
headers: headerParameters,
|
|
9730
|
+
query: queryParameters
|
|
9731
|
+
},
|
|
9732
|
+
initOverrides
|
|
9733
|
+
);
|
|
9734
|
+
return new JSONApiResponse(
|
|
9735
|
+
response,
|
|
9736
|
+
(jsonValue) => GetCatalogViewResponseFromJSON(jsonValue)
|
|
9737
|
+
);
|
|
9738
|
+
}
|
|
9739
|
+
/**
|
|
9740
|
+
* Get catalog view
|
|
9741
|
+
*/
|
|
9742
|
+
async getCatalogView(initOverrides) {
|
|
9743
|
+
const response = await this.getCatalogViewRaw(initOverrides);
|
|
9744
|
+
return await response.value();
|
|
9745
|
+
}
|
|
9746
|
+
/**
|
|
9747
|
+
* Get catalog view by ID
|
|
9748
|
+
*/
|
|
9749
|
+
async getCatalogViewByIDRaw(requestParameters, initOverrides) {
|
|
9750
|
+
if (requestParameters["catalogId"] == null) {
|
|
9751
|
+
throw new RequiredError(
|
|
9752
|
+
"catalogId",
|
|
9753
|
+
'Required parameter "catalogId" was null or undefined when calling getCatalogViewByID().'
|
|
9754
|
+
);
|
|
9755
|
+
}
|
|
9756
|
+
const queryParameters = {};
|
|
9757
|
+
const headerParameters = {};
|
|
9758
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9759
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9760
|
+
"X-Schematic-Api-Key"
|
|
9761
|
+
);
|
|
9762
|
+
}
|
|
9763
|
+
const response = await this.request(
|
|
9764
|
+
{
|
|
9765
|
+
path: `/catalogs/{catalog_id}/view`.replace(
|
|
9766
|
+
`{${"catalog_id"}}`,
|
|
9767
|
+
encodeURIComponent(String(requestParameters["catalogId"]))
|
|
9768
|
+
),
|
|
9769
|
+
method: "GET",
|
|
9770
|
+
headers: headerParameters,
|
|
9771
|
+
query: queryParameters
|
|
9772
|
+
},
|
|
9773
|
+
initOverrides
|
|
9774
|
+
);
|
|
9775
|
+
return new JSONApiResponse(
|
|
9776
|
+
response,
|
|
9777
|
+
(jsonValue) => GetCatalogViewByIDResponseFromJSON(jsonValue)
|
|
9778
|
+
);
|
|
9779
|
+
}
|
|
9780
|
+
/**
|
|
9781
|
+
* Get catalog view by ID
|
|
9782
|
+
*/
|
|
9783
|
+
async getCatalogViewByID(requestParameters, initOverrides) {
|
|
9784
|
+
const response = await this.getCatalogViewByIDRaw(
|
|
9785
|
+
requestParameters,
|
|
9786
|
+
initOverrides
|
|
9787
|
+
);
|
|
9788
|
+
return await response.value();
|
|
9789
|
+
}
|
|
9273
9790
|
/**
|
|
9274
9791
|
* Get checkout
|
|
9275
9792
|
*/
|
|
@@ -10528,9 +11045,9 @@ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
10528
11045
|
|
|
10529
11046
|
// src/api/componentspublic/models/BillingCreditAutoTopupAvailability.ts
|
|
10530
11047
|
function BillingCreditAutoTopupAvailabilityFromJSON2(json) {
|
|
10531
|
-
return
|
|
11048
|
+
return BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, false);
|
|
10532
11049
|
}
|
|
10533
|
-
function
|
|
11050
|
+
function BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10534
11051
|
return json;
|
|
10535
11052
|
}
|
|
10536
11053
|
|
|
@@ -10544,17 +11061,17 @@ function BillingCreditBurnStrategyFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10544
11061
|
|
|
10545
11062
|
// src/api/componentspublic/models/BillingCreditExpiryType.ts
|
|
10546
11063
|
function BillingCreditExpiryTypeFromJSON2(json) {
|
|
10547
|
-
return
|
|
11064
|
+
return BillingCreditExpiryTypeFromJSONTyped8(json, false);
|
|
10548
11065
|
}
|
|
10549
|
-
function
|
|
11066
|
+
function BillingCreditExpiryTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10550
11067
|
return json;
|
|
10551
11068
|
}
|
|
10552
11069
|
|
|
10553
11070
|
// src/api/componentspublic/models/BillingCreditExpiryUnit.ts
|
|
10554
11071
|
function BillingCreditExpiryUnitFromJSON2(json) {
|
|
10555
|
-
return
|
|
11072
|
+
return BillingCreditExpiryUnitFromJSONTyped10(json, false);
|
|
10556
11073
|
}
|
|
10557
|
-
function
|
|
11074
|
+
function BillingCreditExpiryUnitFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10558
11075
|
return json;
|
|
10559
11076
|
}
|
|
10560
11077
|
|
|
@@ -10568,9 +11085,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10568
11085
|
|
|
10569
11086
|
// src/api/componentspublic/models/Currency.ts
|
|
10570
11087
|
function CurrencyFromJSON2(json) {
|
|
10571
|
-
return
|
|
11088
|
+
return CurrencyFromJSONTyped40(json, false);
|
|
10572
11089
|
}
|
|
10573
|
-
function
|
|
11090
|
+
function CurrencyFromJSONTyped40(json, ignoreDiscriminator) {
|
|
10574
11091
|
return json;
|
|
10575
11092
|
}
|
|
10576
11093
|
|
|
@@ -10952,41 +11469,65 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
|
|
|
10952
11469
|
|
|
10953
11470
|
// src/api/componentspublic/models/BillingStrategy.ts
|
|
10954
11471
|
function BillingStrategyFromJSON2(json) {
|
|
10955
|
-
return
|
|
11472
|
+
return BillingStrategyFromJSONTyped7(json, false);
|
|
10956
11473
|
}
|
|
10957
|
-
function
|
|
11474
|
+
function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10958
11475
|
return json;
|
|
10959
11476
|
}
|
|
10960
11477
|
|
|
10961
|
-
// src/api/componentspublic/models/
|
|
10962
|
-
function
|
|
10963
|
-
return
|
|
11478
|
+
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
11479
|
+
function EntitlementValueTypeFromJSON2(json) {
|
|
11480
|
+
return EntitlementValueTypeFromJSONTyped10(json, false);
|
|
10964
11481
|
}
|
|
10965
|
-
function
|
|
11482
|
+
function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10966
11483
|
return json;
|
|
10967
11484
|
}
|
|
10968
11485
|
|
|
10969
|
-
// src/api/componentspublic/models/
|
|
10970
|
-
function
|
|
10971
|
-
return
|
|
11486
|
+
// src/api/componentspublic/models/FeatureType.ts
|
|
11487
|
+
function FeatureTypeFromJSON2(json) {
|
|
11488
|
+
return FeatureTypeFromJSONTyped7(json, false);
|
|
10972
11489
|
}
|
|
10973
|
-
function
|
|
11490
|
+
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10974
11491
|
return json;
|
|
10975
11492
|
}
|
|
10976
11493
|
|
|
10977
11494
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
10978
11495
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
10979
|
-
return
|
|
11496
|
+
return MetricPeriodMonthResetFromJSONTyped14(json, false);
|
|
10980
11497
|
}
|
|
10981
|
-
function
|
|
11498
|
+
function MetricPeriodMonthResetFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10982
11499
|
return json;
|
|
10983
11500
|
}
|
|
10984
11501
|
|
|
10985
11502
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
10986
11503
|
function MetricPeriodFromJSON2(json) {
|
|
10987
|
-
return
|
|
11504
|
+
return MetricPeriodFromJSONTyped14(json, false);
|
|
11505
|
+
}
|
|
11506
|
+
function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
|
|
11507
|
+
return json;
|
|
11508
|
+
}
|
|
11509
|
+
|
|
11510
|
+
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
11511
|
+
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
11512
|
+
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
11513
|
+
}
|
|
11514
|
+
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
11515
|
+
return json;
|
|
10988
11516
|
}
|
|
10989
|
-
|
|
11517
|
+
|
|
11518
|
+
// src/api/componentspublic/models/ChargeType.ts
|
|
11519
|
+
function ChargeTypeFromJSON2(json) {
|
|
11520
|
+
return ChargeTypeFromJSONTyped7(json, false);
|
|
11521
|
+
}
|
|
11522
|
+
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11523
|
+
return json;
|
|
11524
|
+
}
|
|
11525
|
+
|
|
11526
|
+
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11527
|
+
function PlanPriceCadenceFromJSON2(json) {
|
|
11528
|
+
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
11529
|
+
}
|
|
11530
|
+
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10990
11531
|
return json;
|
|
10991
11532
|
}
|
|
10992
11533
|
|
|
@@ -11092,14 +11633,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
11092
11633
|
};
|
|
11093
11634
|
}
|
|
11094
11635
|
|
|
11095
|
-
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
11096
|
-
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
11097
|
-
return EntitlementPriceBehaviorFromJSONTyped6(json, false);
|
|
11098
|
-
}
|
|
11099
|
-
function EntitlementPriceBehaviorFromJSONTyped6(json, ignoreDiscriminator) {
|
|
11100
|
-
return json;
|
|
11101
|
-
}
|
|
11102
|
-
|
|
11103
11636
|
// src/api/componentspublic/models/EntityType.ts
|
|
11104
11637
|
function EntityTypeFromJSON2(json) {
|
|
11105
11638
|
return EntityTypeFromJSONTyped9(json, false);
|
|
@@ -11161,14 +11694,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
11161
11694
|
return json;
|
|
11162
11695
|
}
|
|
11163
11696
|
|
|
11164
|
-
// src/api/componentspublic/models/FeatureType.ts
|
|
11165
|
-
function FeatureTypeFromJSON2(json) {
|
|
11166
|
-
return FeatureTypeFromJSONTyped5(json, false);
|
|
11167
|
-
}
|
|
11168
|
-
function FeatureTypeFromJSONTyped5(json, ignoreDiscriminator) {
|
|
11169
|
-
return json;
|
|
11170
|
-
}
|
|
11171
|
-
|
|
11172
11697
|
// src/api/componentspublic/models/PreviewObject.ts
|
|
11173
11698
|
function PreviewObjectFromJSON2(json) {
|
|
11174
11699
|
return PreviewObjectFromJSONTyped3(json, false);
|
|
@@ -11349,7 +11874,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
11349
11874
|
}
|
|
11350
11875
|
return {
|
|
11351
11876
|
createdAt: new Date(json["created_at"]),
|
|
11352
|
-
defaultValue: json["default_value"],
|
|
11877
|
+
defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
|
|
11353
11878
|
description: json["description"],
|
|
11354
11879
|
feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
|
|
11355
11880
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
@@ -11519,14 +12044,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
11519
12044
|
};
|
|
11520
12045
|
}
|
|
11521
12046
|
|
|
11522
|
-
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11523
|
-
function PlanPriceCadenceFromJSON2(json) {
|
|
11524
|
-
return PlanPriceCadenceFromJSONTyped5(json, false);
|
|
11525
|
-
}
|
|
11526
|
-
function PlanPriceCadenceFromJSONTyped5(json, ignoreDiscriminator) {
|
|
11527
|
-
return json;
|
|
11528
|
-
}
|
|
11529
|
-
|
|
11530
12047
|
// src/api/componentspublic/models/PlanCreditGrantView.ts
|
|
11531
12048
|
function PlanCreditGrantViewFromJSON2(json) {
|
|
11532
12049
|
return PlanCreditGrantViewFromJSONTyped3(json, false);
|
|
@@ -11622,6 +12139,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
|
|
|
11622
12139
|
};
|
|
11623
12140
|
}
|
|
11624
12141
|
|
|
12142
|
+
// src/api/componentspublic/models/RenewalPolicy.ts
|
|
12143
|
+
function RenewalPolicyFromJSON2(json) {
|
|
12144
|
+
return RenewalPolicyFromJSONTyped3(json, false);
|
|
12145
|
+
}
|
|
12146
|
+
function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
|
|
12147
|
+
return json;
|
|
12148
|
+
}
|
|
12149
|
+
|
|
11625
12150
|
// src/api/componentspublic/models/PlanVersionResponseData.ts
|
|
11626
12151
|
function PlanVersionResponseDataFromJSON2(json) {
|
|
11627
12152
|
return PlanVersionResponseDataFromJSONTyped5(json, false);
|
|
@@ -11639,6 +12164,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
11639
12164
|
name: json["name"],
|
|
11640
12165
|
originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
|
|
11641
12166
|
planType: PlanTypeFromJSON2(json["plan_type"]),
|
|
12167
|
+
renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
|
|
11642
12168
|
status: PlanVersionStatusFromJSON2(json["status"]),
|
|
11643
12169
|
updatedAt: new Date(json["updated_at"]),
|
|
11644
12170
|
version: json["version"]
|
|
@@ -17227,7 +17753,7 @@ var reducer = (state, action) => {
|
|
|
17227
17753
|
// src/context/EmbedProvider.tsx
|
|
17228
17754
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
17229
17755
|
var getCustomHeaders = (sessionId) => ({
|
|
17230
|
-
"X-Schematic-Components-Version": "2.
|
|
17756
|
+
"X-Schematic-Components-Version": "2.34.1",
|
|
17231
17757
|
"X-Schematic-Session-ID": sessionId
|
|
17232
17758
|
});
|
|
17233
17759
|
var normalizeCurrencyFilter = (filter) => {
|