@schematichq/schematic-components 2.33.0 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schematic-components-elements.cjs.js +1634 -133
- package/dist/schematic-components-elements.d.ts +431 -1
- package/dist/schematic-components-elements.esm.js +1631 -120
- package/dist/schematic-components.browser.cjs.js +601 -172
- package/dist/schematic-components.browser.esm.js +601 -172
- package/dist/schematic-components.cjs.js +601 -172
- package/dist/schematic-components.esm.js +601 -172
- package/package.json +8 -8
|
@@ -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();
|
|
@@ -5207,6 +5207,339 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5207
5207
|
};
|
|
5208
5208
|
}
|
|
5209
5209
|
|
|
5210
|
+
// src/api/checkoutexternal/models/CatalogPriceTierResponseData.ts
|
|
5211
|
+
function CatalogPriceTierResponseDataFromJSON(json) {
|
|
5212
|
+
return CatalogPriceTierResponseDataFromJSONTyped(json, false);
|
|
5213
|
+
}
|
|
5214
|
+
function CatalogPriceTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5215
|
+
if (json == null) {
|
|
5216
|
+
return json;
|
|
5217
|
+
}
|
|
5218
|
+
return {
|
|
5219
|
+
flatPrice: json["flat_price"] == null ? void 0 : json["flat_price"],
|
|
5220
|
+
from: json["from"],
|
|
5221
|
+
perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
|
|
5222
|
+
perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
|
|
5223
|
+
to: json["to"] == null ? void 0 : json["to"]
|
|
5224
|
+
};
|
|
5225
|
+
}
|
|
5226
|
+
|
|
5227
|
+
// src/api/checkoutexternal/models/CatalogPriceResponseData.ts
|
|
5228
|
+
function CatalogPriceResponseDataFromJSON(json) {
|
|
5229
|
+
return CatalogPriceResponseDataFromJSONTyped(json, false);
|
|
5230
|
+
}
|
|
5231
|
+
function CatalogPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5232
|
+
if (json == null) {
|
|
5233
|
+
return json;
|
|
5234
|
+
}
|
|
5235
|
+
return {
|
|
5236
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5237
|
+
id: json["id"],
|
|
5238
|
+
interval: BillingProductPriceIntervalFromJSON(json["interval"]),
|
|
5239
|
+
intervalCount: json["interval_count"],
|
|
5240
|
+
overageUnitPriceDecimal: json["overage_unit_price_decimal"] == null ? void 0 : json["overage_unit_price_decimal"],
|
|
5241
|
+
packageSize: json["package_size"],
|
|
5242
|
+
price: json["price"],
|
|
5243
|
+
priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
|
|
5244
|
+
priceTiers: json["price_tiers"].map(
|
|
5245
|
+
CatalogPriceTierResponseDataFromJSON
|
|
5246
|
+
),
|
|
5247
|
+
scheme: BillingPriceSchemeFromJSON(json["scheme"]),
|
|
5248
|
+
tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"])
|
|
5249
|
+
};
|
|
5250
|
+
}
|
|
5251
|
+
|
|
5252
|
+
// src/api/checkoutexternal/models/CatalogBundleCurrencyPriceResponseData.ts
|
|
5253
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSON(json) {
|
|
5254
|
+
return CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, false);
|
|
5255
|
+
}
|
|
5256
|
+
function CatalogBundleCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5257
|
+
if (json == null) {
|
|
5258
|
+
return json;
|
|
5259
|
+
}
|
|
5260
|
+
return {
|
|
5261
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5262
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
5263
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
5264
|
+
};
|
|
5265
|
+
}
|
|
5266
|
+
|
|
5267
|
+
// src/api/checkoutexternal/models/CatalogAutoTopupResponseData.ts
|
|
5268
|
+
function CatalogAutoTopupResponseDataFromJSON(json) {
|
|
5269
|
+
return CatalogAutoTopupResponseDataFromJSONTyped(json, false);
|
|
5270
|
+
}
|
|
5271
|
+
function CatalogAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5272
|
+
if (json == null) {
|
|
5273
|
+
return json;
|
|
5274
|
+
}
|
|
5275
|
+
return {
|
|
5276
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
5277
|
+
availability: BillingCreditAutoTopupAvailabilityFromJSON(
|
|
5278
|
+
json["availability"]
|
|
5279
|
+
),
|
|
5280
|
+
companyAmount: json["company_amount"] == null ? void 0 : json["company_amount"],
|
|
5281
|
+
companyEnabled: json["company_enabled"] == null ? void 0 : json["company_enabled"],
|
|
5282
|
+
companyThresholdCredits: json["company_threshold_credits"] == null ? void 0 : json["company_threshold_credits"],
|
|
5283
|
+
creditId: json["credit_id"],
|
|
5284
|
+
currencyPrices: json["currency_prices"].map(
|
|
5285
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
5286
|
+
),
|
|
5287
|
+
enabled: json["enabled"],
|
|
5288
|
+
planCreditGrantId: json["plan_credit_grant_id"],
|
|
5289
|
+
thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"],
|
|
5290
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
5291
|
+
};
|
|
5292
|
+
}
|
|
5293
|
+
|
|
5294
|
+
// src/api/checkoutexternal/models/CatalogCapabilitiesResponseData.ts
|
|
5295
|
+
function CatalogCapabilitiesResponseDataFromJSON(json) {
|
|
5296
|
+
return CatalogCapabilitiesResponseDataFromJSONTyped(json, false);
|
|
5297
|
+
}
|
|
5298
|
+
function CatalogCapabilitiesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5299
|
+
if (json == null) {
|
|
5300
|
+
return json;
|
|
5301
|
+
}
|
|
5302
|
+
return {
|
|
5303
|
+
badgeVisibility: json["badge_visibility"],
|
|
5304
|
+
checkout: json["checkout"]
|
|
5305
|
+
};
|
|
5306
|
+
}
|
|
5307
|
+
|
|
5308
|
+
// src/api/checkoutexternal/models/CatalogCheckoutFieldResponseData.ts
|
|
5309
|
+
function CatalogCheckoutFieldResponseDataFromJSON(json) {
|
|
5310
|
+
return CatalogCheckoutFieldResponseDataFromJSONTyped(json, false);
|
|
5311
|
+
}
|
|
5312
|
+
function CatalogCheckoutFieldResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5313
|
+
if (json == null) {
|
|
5314
|
+
return json;
|
|
5315
|
+
}
|
|
5316
|
+
return {
|
|
5317
|
+
helperText: json["helper_text"] == null ? void 0 : json["helper_text"],
|
|
5318
|
+
id: json["id"],
|
|
5319
|
+
name: json["name"],
|
|
5320
|
+
required: json["required"],
|
|
5321
|
+
value: json["value"] == null ? void 0 : json["value"]
|
|
5322
|
+
};
|
|
5323
|
+
}
|
|
5324
|
+
|
|
5325
|
+
// src/api/checkoutexternal/models/CheckoutBundlePurchaseBehavior.ts
|
|
5326
|
+
var CheckoutBundlePurchaseBehavior = {
|
|
5327
|
+
Individual: "individual",
|
|
5328
|
+
Quantity: "quantity"
|
|
5329
|
+
};
|
|
5330
|
+
function CheckoutBundlePurchaseBehaviorFromJSON(json) {
|
|
5331
|
+
return CheckoutBundlePurchaseBehaviorFromJSONTyped(json, false);
|
|
5332
|
+
}
|
|
5333
|
+
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5334
|
+
return json;
|
|
5335
|
+
}
|
|
5336
|
+
|
|
5337
|
+
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
5338
|
+
var ProrationBehavior = {
|
|
5339
|
+
CreateProrations: "create_prorations",
|
|
5340
|
+
InvoiceImmediately: "invoice_immediately"
|
|
5341
|
+
};
|
|
5342
|
+
function ProrationBehaviorFromJSON(json) {
|
|
5343
|
+
return ProrationBehaviorFromJSONTyped(json, false);
|
|
5344
|
+
}
|
|
5345
|
+
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5346
|
+
return json;
|
|
5347
|
+
}
|
|
5348
|
+
|
|
5349
|
+
// src/api/checkoutexternal/models/CatalogCheckoutSettingsResponseData.ts
|
|
5350
|
+
function CatalogCheckoutSettingsResponseDataFromJSON(json) {
|
|
5351
|
+
return CatalogCheckoutSettingsResponseDataFromJSONTyped(json, false);
|
|
5352
|
+
}
|
|
5353
|
+
function CatalogCheckoutSettingsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5354
|
+
if (json == null) {
|
|
5355
|
+
return json;
|
|
5356
|
+
}
|
|
5357
|
+
return {
|
|
5358
|
+
bundlePurchaseBehavior: CheckoutBundlePurchaseBehaviorFromJSON(
|
|
5359
|
+
json["bundle_purchase_behavior"]
|
|
5360
|
+
),
|
|
5361
|
+
collectAddress: json["collect_address"],
|
|
5362
|
+
collectEmail: json["collect_email"],
|
|
5363
|
+
collectPhone: json["collect_phone"],
|
|
5364
|
+
collectTaxId: json["collect_tax_id"],
|
|
5365
|
+
customFields: json["custom_fields"].map(
|
|
5366
|
+
CatalogCheckoutFieldResponseDataFromJSON
|
|
5367
|
+
),
|
|
5368
|
+
prorationBehavior: ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5369
|
+
taxCollectionEnabled: json["tax_collection_enabled"]
|
|
5370
|
+
};
|
|
5371
|
+
}
|
|
5372
|
+
|
|
5373
|
+
// src/api/checkoutexternal/models/CatalogPlanRefResponseData.ts
|
|
5374
|
+
function CatalogPlanRefResponseDataFromJSON(json) {
|
|
5375
|
+
return CatalogPlanRefResponseDataFromJSONTyped(json, false);
|
|
5376
|
+
}
|
|
5377
|
+
function CatalogPlanRefResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5378
|
+
if (json == null) {
|
|
5379
|
+
return json;
|
|
5380
|
+
}
|
|
5381
|
+
return {
|
|
5382
|
+
id: json["id"],
|
|
5383
|
+
name: json["name"]
|
|
5384
|
+
};
|
|
5385
|
+
}
|
|
5386
|
+
|
|
5387
|
+
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
5388
|
+
var CompanyPlanInvalidReason = {
|
|
5389
|
+
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
5390
|
+
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
5391
|
+
};
|
|
5392
|
+
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
5393
|
+
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
5394
|
+
}
|
|
5395
|
+
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
5396
|
+
return json;
|
|
5397
|
+
}
|
|
5398
|
+
|
|
5399
|
+
// src/api/checkoutexternal/models/CatalogUsageViolationResponseData.ts
|
|
5400
|
+
function CatalogUsageViolationResponseDataFromJSON(json) {
|
|
5401
|
+
return CatalogUsageViolationResponseDataFromJSONTyped(json, false);
|
|
5402
|
+
}
|
|
5403
|
+
function CatalogUsageViolationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5404
|
+
if (json == null) {
|
|
5405
|
+
return json;
|
|
5406
|
+
}
|
|
5407
|
+
return {
|
|
5408
|
+
featureId: json["feature_id"],
|
|
5409
|
+
featureName: json["feature_name"],
|
|
5410
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
5411
|
+
usage: json["usage"]
|
|
5412
|
+
};
|
|
5413
|
+
}
|
|
5414
|
+
|
|
5415
|
+
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
5416
|
+
var EntitlementValueType = {
|
|
5417
|
+
Boolean: "boolean",
|
|
5418
|
+
Credit: "credit",
|
|
5419
|
+
Numeric: "numeric",
|
|
5420
|
+
Trait: "trait",
|
|
5421
|
+
Unknown: "unknown",
|
|
5422
|
+
Unlimited: "unlimited"
|
|
5423
|
+
};
|
|
5424
|
+
function EntitlementValueTypeFromJSON(json) {
|
|
5425
|
+
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
5426
|
+
}
|
|
5427
|
+
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5428
|
+
return json;
|
|
5429
|
+
}
|
|
5430
|
+
|
|
5431
|
+
// src/api/checkoutexternal/models/FeatureType.ts
|
|
5432
|
+
var FeatureType = {
|
|
5433
|
+
Boolean: "boolean",
|
|
5434
|
+
Event: "event",
|
|
5435
|
+
License: "license",
|
|
5436
|
+
Trait: "trait"
|
|
5437
|
+
};
|
|
5438
|
+
function FeatureTypeFromJSON(json) {
|
|
5439
|
+
return FeatureTypeFromJSONTyped(json, false);
|
|
5440
|
+
}
|
|
5441
|
+
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5442
|
+
return json;
|
|
5443
|
+
}
|
|
5444
|
+
|
|
5445
|
+
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
5446
|
+
function MetricPeriodMonthResetFromJSON(json) {
|
|
5447
|
+
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
5448
|
+
}
|
|
5449
|
+
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
5450
|
+
return json;
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
5454
|
+
function MetricPeriodFromJSON(json) {
|
|
5455
|
+
return MetricPeriodFromJSONTyped(json, false);
|
|
5456
|
+
}
|
|
5457
|
+
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
5458
|
+
return json;
|
|
5459
|
+
}
|
|
5460
|
+
|
|
5461
|
+
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
5462
|
+
var EntitlementPriceBehavior = {
|
|
5463
|
+
CreditBurndown: "credit_burndown",
|
|
5464
|
+
Overage: "overage",
|
|
5465
|
+
PayAsYouGo: "pay_as_you_go",
|
|
5466
|
+
PayInAdvance: "pay_in_advance",
|
|
5467
|
+
Tier: "tier"
|
|
5468
|
+
};
|
|
5469
|
+
function EntitlementPriceBehaviorFromJSON(json) {
|
|
5470
|
+
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
5471
|
+
}
|
|
5472
|
+
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5473
|
+
return json;
|
|
5474
|
+
}
|
|
5475
|
+
|
|
5476
|
+
// src/api/checkoutexternal/models/CatalogCurrencyPricesResponseData.ts
|
|
5477
|
+
function CatalogCurrencyPricesResponseDataFromJSON(json) {
|
|
5478
|
+
return CatalogCurrencyPricesResponseDataFromJSONTyped(json, false);
|
|
5479
|
+
}
|
|
5480
|
+
function CatalogCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5481
|
+
if (json == null) {
|
|
5482
|
+
return json;
|
|
5483
|
+
}
|
|
5484
|
+
return {
|
|
5485
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
5486
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5487
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5488
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5489
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5490
|
+
};
|
|
5491
|
+
}
|
|
5492
|
+
|
|
5493
|
+
// src/api/checkoutexternal/models/CatalogPlanEntitlementResponseData.ts
|
|
5494
|
+
function CatalogPlanEntitlementResponseDataFromJSON(json) {
|
|
5495
|
+
return CatalogPlanEntitlementResponseDataFromJSONTyped(json, false);
|
|
5496
|
+
}
|
|
5497
|
+
function CatalogPlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5498
|
+
if (json == null) {
|
|
5499
|
+
return json;
|
|
5500
|
+
}
|
|
5501
|
+
return {
|
|
5502
|
+
consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
|
|
5503
|
+
creditEquivalentLimit: json["credit_equivalent_limit"] == null ? void 0 : json["credit_equivalent_limit"],
|
|
5504
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5505
|
+
creditId: json["credit_id"] == null ? void 0 : json["credit_id"],
|
|
5506
|
+
creditName: json["credit_name"] == null ? void 0 : json["credit_name"],
|
|
5507
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5508
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5509
|
+
currencyPrices: json["currency_prices"].map(
|
|
5510
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5511
|
+
),
|
|
5512
|
+
featureDescription: json["feature_description"],
|
|
5513
|
+
featureIcon: json["feature_icon"],
|
|
5514
|
+
featureId: json["feature_id"],
|
|
5515
|
+
featureName: json["feature_name"],
|
|
5516
|
+
featurePluralName: json["feature_plural_name"] == null ? void 0 : json["feature_plural_name"],
|
|
5517
|
+
featureSingularName: json["feature_singular_name"] == null ? void 0 : json["feature_singular_name"],
|
|
5518
|
+
featureType: FeatureTypeFromJSON(json["feature_type"]),
|
|
5519
|
+
id: json["id"],
|
|
5520
|
+
licenseId: json["license_id"] == null ? void 0 : json["license_id"],
|
|
5521
|
+
meteredMonthlyPrice: json["metered_monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_monthly_price"]),
|
|
5522
|
+
meteredQuarterlyPrice: json["metered_quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_quarterly_price"]),
|
|
5523
|
+
meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["metered_yearly_price"]),
|
|
5524
|
+
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
5525
|
+
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
5526
|
+
priceBehavior: json["price_behavior"] == null ? void 0 : EntitlementPriceBehaviorFromJSON(json["price_behavior"]),
|
|
5527
|
+
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
5528
|
+
valueBool: json["value_bool"] == null ? void 0 : json["value_bool"],
|
|
5529
|
+
valueNumeric: json["value_numeric"] == null ? void 0 : json["value_numeric"],
|
|
5530
|
+
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
5531
|
+
warningThreshold: json["warning_threshold"] == null ? void 0 : json["warning_threshold"]
|
|
5532
|
+
};
|
|
5533
|
+
}
|
|
5534
|
+
|
|
5535
|
+
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5536
|
+
function ChargeTypeFromJSON(json) {
|
|
5537
|
+
return ChargeTypeFromJSONTyped(json, false);
|
|
5538
|
+
}
|
|
5539
|
+
function ChargeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
5540
|
+
return json;
|
|
5541
|
+
}
|
|
5542
|
+
|
|
5210
5543
|
// src/api/checkoutexternal/models/CatalogCreditGrantResponseData.ts
|
|
5211
5544
|
function CatalogCreditGrantResponseDataFromJSON(json) {
|
|
5212
5545
|
return CatalogCreditGrantResponseDataFromJSONTyped(json, false);
|
|
@@ -5230,45 +5563,103 @@ function CatalogCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5230
5563
|
};
|
|
5231
5564
|
}
|
|
5232
5565
|
|
|
5233
|
-
// src/api/checkoutexternal/models/
|
|
5234
|
-
function
|
|
5235
|
-
return
|
|
5566
|
+
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
5567
|
+
function PlanPriceCadenceFromJSON(json) {
|
|
5568
|
+
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
5236
5569
|
}
|
|
5237
|
-
function
|
|
5570
|
+
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
5571
|
+
return json;
|
|
5572
|
+
}
|
|
5573
|
+
|
|
5574
|
+
// src/api/checkoutexternal/models/CatalogCompanyPlanResponseData.ts
|
|
5575
|
+
function CatalogCompanyPlanResponseDataFromJSON(json) {
|
|
5576
|
+
return CatalogCompanyPlanResponseDataFromJSONTyped(json, false);
|
|
5577
|
+
}
|
|
5578
|
+
function CatalogCompanyPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5238
5579
|
if (json == null) {
|
|
5239
5580
|
return json;
|
|
5240
5581
|
}
|
|
5241
5582
|
return {
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5583
|
+
autoTopups: json["auto_topups"].map(
|
|
5584
|
+
CatalogAutoTopupResponseDataFromJSON
|
|
5585
|
+
),
|
|
5586
|
+
availablePeriods: json["available_periods"].map(
|
|
5587
|
+
PlanPriceCadenceFromJSON
|
|
5588
|
+
),
|
|
5589
|
+
billingStrategy: BillingStrategyFromJSON(json["billing_strategy"]),
|
|
5590
|
+
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
5591
|
+
companyCanTrial: json["company_can_trial"],
|
|
5592
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5593
|
+
currencyPrices: json["currency_prices"].map(
|
|
5594
|
+
CatalogCurrencyPricesResponseDataFromJSON
|
|
5595
|
+
),
|
|
5596
|
+
current: json["current"],
|
|
5597
|
+
description: json["description"],
|
|
5598
|
+
entitlements: json["entitlements"].map(
|
|
5599
|
+
CatalogPlanEntitlementResponseDataFromJSON
|
|
5600
|
+
),
|
|
5601
|
+
icon: json["icon"],
|
|
5602
|
+
id: json["id"],
|
|
5603
|
+
includedCreditGrants: json["included_credit_grants"].map(
|
|
5604
|
+
CatalogCreditGrantResponseDataFromJSON
|
|
5605
|
+
),
|
|
5606
|
+
invalidReason: json["invalid_reason"] == null ? void 0 : CompanyPlanInvalidReasonFromJSON(json["invalid_reason"]),
|
|
5607
|
+
isTrialable: json["is_trialable"],
|
|
5608
|
+
monthlyPrice: json["monthly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["monthly_price"]),
|
|
5609
|
+
name: json["name"],
|
|
5610
|
+
oneTimePrice: json["one_time_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["one_time_price"]),
|
|
5611
|
+
quarterlyPrice: json["quarterly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["quarterly_price"]),
|
|
5612
|
+
trialDays: json["trial_days"] == null ? void 0 : json["trial_days"],
|
|
5613
|
+
usageViolations: json["usage_violations"].map(
|
|
5614
|
+
CatalogUsageViolationResponseDataFromJSON
|
|
5615
|
+
),
|
|
5616
|
+
valid: json["valid"],
|
|
5617
|
+
yearlyPrice: json["yearly_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["yearly_price"])
|
|
5618
|
+
};
|
|
5619
|
+
}
|
|
5620
|
+
|
|
5621
|
+
// src/api/checkoutexternal/models/CatalogCreditBundleResponseData.ts
|
|
5622
|
+
function CatalogCreditBundleResponseDataFromJSON(json) {
|
|
5623
|
+
return CatalogCreditBundleResponseDataFromJSONTyped(json, false);
|
|
5624
|
+
}
|
|
5625
|
+
function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5626
|
+
if (json == null) {
|
|
5627
|
+
return json;
|
|
5628
|
+
}
|
|
5629
|
+
return {
|
|
5630
|
+
bundleType: BillingCreditBundleTypeFromJSON(json["bundle_type"]),
|
|
5631
|
+
compatiblePlanIds: json["compatible_plan_ids"] == null ? void 0 : json["compatible_plan_ids"],
|
|
5632
|
+
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
5633
|
+
creditId: json["credit_id"],
|
|
5634
|
+
creditName: json["credit_name"],
|
|
5635
|
+
creditPluralName: json["credit_plural_name"] == null ? void 0 : json["credit_plural_name"],
|
|
5636
|
+
creditSingularName: json["credit_singular_name"] == null ? void 0 : json["credit_singular_name"],
|
|
5637
|
+
currencyPrices: json["currency_prices"].map(
|
|
5638
|
+
CatalogBundleCurrencyPriceResponseDataFromJSON
|
|
5639
|
+
),
|
|
5640
|
+
expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
5641
|
+
expiryUnit: BillingCreditExpiryUnitFromJSON(json["expiry_unit"]),
|
|
5642
|
+
expiryUnitCount: json["expiry_unit_count"] == null ? void 0 : json["expiry_unit_count"],
|
|
5643
|
+
id: json["id"],
|
|
5644
|
+
name: json["name"],
|
|
5645
|
+
price: json["price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["price"]),
|
|
5646
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"],
|
|
5647
|
+
unitPrice: json["unit_price"] == null ? void 0 : CatalogPriceResponseDataFromJSON(json["unit_price"])
|
|
5247
5648
|
};
|
|
5248
5649
|
}
|
|
5249
5650
|
|
|
5250
|
-
// src/api/checkoutexternal/models/
|
|
5251
|
-
function
|
|
5252
|
-
return
|
|
5651
|
+
// src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
|
|
5652
|
+
function CatalogCustomPlanCTAResponseDataFromJSON(json) {
|
|
5653
|
+
return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
|
|
5253
5654
|
}
|
|
5254
|
-
function
|
|
5655
|
+
function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5255
5656
|
if (json == null) {
|
|
5256
5657
|
return json;
|
|
5257
5658
|
}
|
|
5258
5659
|
return {
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
intervalCount: json["interval_count"],
|
|
5263
|
-
overageUnitPriceDecimal: json["overage_unit_price_decimal"] == null ? void 0 : json["overage_unit_price_decimal"],
|
|
5264
|
-
packageSize: json["package_size"],
|
|
5265
|
-
price: json["price"],
|
|
5266
|
-
priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
|
|
5267
|
-
priceTiers: json["price_tiers"].map(
|
|
5268
|
-
CatalogPriceTierResponseDataFromJSON
|
|
5269
|
-
),
|
|
5270
|
-
scheme: BillingPriceSchemeFromJSON(json["scheme"]),
|
|
5271
|
-
tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"])
|
|
5660
|
+
ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
|
|
5661
|
+
ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
|
|
5662
|
+
priceText: json["price_text"] == null ? void 0 : json["price_text"]
|
|
5272
5663
|
};
|
|
5273
5664
|
}
|
|
5274
5665
|
|
|
@@ -5442,26 +5833,6 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5442
5833
|
};
|
|
5443
5834
|
}
|
|
5444
5835
|
|
|
5445
|
-
// src/api/checkoutexternal/models/ChargeType.ts
|
|
5446
|
-
function ChargeTypeFromJSON(json) {
|
|
5447
|
-
return ChargeTypeFromJSONTyped(json, false);
|
|
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);
|
|
5460
|
-
}
|
|
5461
|
-
function CheckoutBundlePurchaseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5462
|
-
return json;
|
|
5463
|
-
}
|
|
5464
|
-
|
|
5465
5836
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
5466
5837
|
function CheckoutPriceSnapshotFromJSON(json) {
|
|
5467
5838
|
return CheckoutPriceSnapshotFromJSONTyped(json, false);
|
|
@@ -5477,6 +5848,8 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5477
5848
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5478
5849
|
newCharges: json["new_charges"],
|
|
5479
5850
|
optInRequired: json["opt_in_required"],
|
|
5851
|
+
optInText: json["opt_in_text"] == null ? void 0 : json["opt_in_text"],
|
|
5852
|
+
optInTitle: json["opt_in_title"] == null ? void 0 : json["opt_in_title"],
|
|
5480
5853
|
paymentMethodRequired: json["payment_method_required"],
|
|
5481
5854
|
percentOff: json["percent_off"],
|
|
5482
5855
|
periodStart: new Date(json["period_start"]),
|
|
@@ -5498,6 +5871,17 @@ function CheckoutStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5498
5871
|
return json;
|
|
5499
5872
|
}
|
|
5500
5873
|
|
|
5874
|
+
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5875
|
+
function CheckoutIntentFromJSON(json) {
|
|
5876
|
+
return CheckoutIntentFromJSONTyped(json, false);
|
|
5877
|
+
}
|
|
5878
|
+
function CheckoutIntentFromJSONTyped(json, ignoreDiscriminator) {
|
|
5879
|
+
return json;
|
|
5880
|
+
}
|
|
5881
|
+
function CheckoutIntentToJSON(value) {
|
|
5882
|
+
return value;
|
|
5883
|
+
}
|
|
5884
|
+
|
|
5501
5885
|
// src/api/checkoutexternal/models/CheckoutSelectionsResponseData.ts
|
|
5502
5886
|
function CheckoutSelectionsResponseDataFromJSON(json) {
|
|
5503
5887
|
return CheckoutSelectionsResponseDataFromJSONTyped(json, false);
|
|
@@ -5518,9 +5902,11 @@ function CheckoutSelectionsResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5518
5902
|
creditBundles: json["credit_bundles"].map(
|
|
5519
5903
|
UpdateCreditBundleRequestBodyFromJSON
|
|
5520
5904
|
),
|
|
5905
|
+
currency: json["currency"] == null ? void 0 : json["currency"],
|
|
5521
5906
|
customFieldValues: json["custom_field_values"].map(
|
|
5522
5907
|
CheckoutFieldValueFromJSON
|
|
5523
5908
|
),
|
|
5909
|
+
intent: CheckoutIntentFromJSON(json["intent"]),
|
|
5524
5910
|
newPlanId: json["new_plan_id"] == null ? void 0 : json["new_plan_id"],
|
|
5525
5911
|
newPriceId: json["new_price_id"] == null ? void 0 : json["new_price_id"],
|
|
5526
5912
|
optInAccepted: json["opt_in_accepted"] == null ? void 0 : json["opt_in_accepted"],
|
|
@@ -5620,11 +6006,6 @@ function CheckoutFieldWithValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5620
6006
|
};
|
|
5621
6007
|
}
|
|
5622
6008
|
|
|
5623
|
-
// src/api/checkoutexternal/models/CheckoutIntent.ts
|
|
5624
|
-
function CheckoutIntentToJSON(value) {
|
|
5625
|
-
return value;
|
|
5626
|
-
}
|
|
5627
|
-
|
|
5628
6009
|
// src/api/checkoutexternal/models/ScheduledDowngradeConfigBehavior.ts
|
|
5629
6010
|
function ScheduledDowngradeConfigBehaviorFromJSON(json) {
|
|
5630
6011
|
return ScheduledDowngradeConfigBehaviorFromJSONTyped(json, false);
|
|
@@ -5729,18 +6110,6 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5729
6110
|
};
|
|
5730
6111
|
}
|
|
5731
6112
|
|
|
5732
|
-
// src/api/checkoutexternal/models/ProrationBehavior.ts
|
|
5733
|
-
var ProrationBehavior = {
|
|
5734
|
-
CreateProrations: "create_prorations",
|
|
5735
|
-
InvoiceImmediately: "invoice_immediately"
|
|
5736
|
-
};
|
|
5737
|
-
function ProrationBehaviorFromJSON(json) {
|
|
5738
|
-
return ProrationBehaviorFromJSONTyped(json, false);
|
|
5739
|
-
}
|
|
5740
|
-
function ProrationBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
5741
|
-
return json;
|
|
5742
|
-
}
|
|
5743
|
-
|
|
5744
6113
|
// src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
|
|
5745
6114
|
function CompanyBillingProfileResponseDataFromJSON(json) {
|
|
5746
6115
|
return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
|
|
@@ -5769,6 +6138,43 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
5769
6138
|
};
|
|
5770
6139
|
}
|
|
5771
6140
|
|
|
6141
|
+
// src/api/checkoutexternal/models/CompanyCatalogResponseData.ts
|
|
6142
|
+
function CompanyCatalogResponseDataFromJSON(json) {
|
|
6143
|
+
return CompanyCatalogResponseDataFromJSONTyped(json, false);
|
|
6144
|
+
}
|
|
6145
|
+
function CompanyCatalogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6146
|
+
if (json == null) {
|
|
6147
|
+
return json;
|
|
6148
|
+
}
|
|
6149
|
+
return {
|
|
6150
|
+
addOns: json["add_ons"].map(
|
|
6151
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
6152
|
+
),
|
|
6153
|
+
capabilities: CatalogCapabilitiesResponseDataFromJSON(json["capabilities"]),
|
|
6154
|
+
checkoutSettings: CatalogCheckoutSettingsResponseDataFromJSON(
|
|
6155
|
+
json["checkout_settings"]
|
|
6156
|
+
),
|
|
6157
|
+
creditBundles: json["credit_bundles"].map(
|
|
6158
|
+
CatalogCreditBundleResponseDataFromJSON
|
|
6159
|
+
),
|
|
6160
|
+
customPlanCta: json["custom_plan_cta"] == null ? void 0 : CatalogCustomPlanCTAResponseDataFromJSON(json["custom_plan_cta"]),
|
|
6161
|
+
defaultCurrency: CurrencyFromJSON(json["default_currency"]),
|
|
6162
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
6163
|
+
id: json["id"],
|
|
6164
|
+
name: json["name"],
|
|
6165
|
+
plans: json["plans"].map(
|
|
6166
|
+
CatalogCompanyPlanResponseDataFromJSON
|
|
6167
|
+
),
|
|
6168
|
+
preventSelfServiceDowngrade: json["prevent_self_service_downgrade"],
|
|
6169
|
+
preventSelfServiceDowngradeButtonText: json["prevent_self_service_downgrade_button_text"] == null ? void 0 : json["prevent_self_service_downgrade_button_text"],
|
|
6170
|
+
preventSelfServiceDowngradeUrl: json["prevent_self_service_downgrade_url"] == null ? void 0 : json["prevent_self_service_downgrade_url"],
|
|
6171
|
+
pricingModel: json["pricing_model"] == null ? void 0 : json["pricing_model"],
|
|
6172
|
+
pricingUrl: json["pricing_url"] == null ? void 0 : json["pricing_url"],
|
|
6173
|
+
trialExpiryPlan: json["trial_expiry_plan"] == null ? void 0 : CatalogPlanRefResponseDataFromJSON(json["trial_expiry_plan"]),
|
|
6174
|
+
trialPaymentMethodRequired: json["trial_payment_method_required"] == null ? void 0 : json["trial_payment_method_required"]
|
|
6175
|
+
};
|
|
6176
|
+
}
|
|
6177
|
+
|
|
5772
6178
|
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
5773
6179
|
var CustomPlanActivationStrategy = {
|
|
5774
6180
|
Payment: "on_payment",
|
|
@@ -6159,30 +6565,6 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6159
6565
|
};
|
|
6160
6566
|
}
|
|
6161
6567
|
|
|
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
6568
|
// src/api/checkoutexternal/models/WarningTier.ts
|
|
6187
6569
|
function WarningTierFromJSON(json) {
|
|
6188
6570
|
return WarningTierFromJSONTyped(json, false);
|
|
@@ -6197,14 +6579,6 @@ function WarningTierFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6197
6579
|
};
|
|
6198
6580
|
}
|
|
6199
6581
|
|
|
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
6582
|
// src/api/checkoutexternal/models/FeatureEntitlement.ts
|
|
6209
6583
|
function FeatureEntitlementFromJSON(json) {
|
|
6210
6584
|
return FeatureEntitlementFromJSONTyped(json, false);
|
|
@@ -6650,35 +7024,6 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6650
7024
|
};
|
|
6651
7025
|
}
|
|
6652
7026
|
|
|
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
7027
|
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6683
7028
|
function EntitlementTypeFromJSON(json) {
|
|
6684
7029
|
return EntitlementTypeFromJSONTyped(json, false);
|
|
@@ -6961,26 +7306,6 @@ function CompanyPaymentMethodsResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
6961
7306
|
};
|
|
6962
7307
|
}
|
|
6963
7308
|
|
|
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
7309
|
// src/api/checkoutexternal/models/EstimatedPlanTotal.ts
|
|
6985
7310
|
function EstimatedPlanTotalFromJSON(json) {
|
|
6986
7311
|
return EstimatedPlanTotalFromJSONTyped(json, false);
|
|
@@ -8310,6 +8635,34 @@ function FinalizeCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
8310
8635
|
};
|
|
8311
8636
|
}
|
|
8312
8637
|
|
|
8638
|
+
// src/api/checkoutexternal/models/GetCatalogViewByIDResponse.ts
|
|
8639
|
+
function GetCatalogViewByIDResponseFromJSON(json) {
|
|
8640
|
+
return GetCatalogViewByIDResponseFromJSONTyped(json, false);
|
|
8641
|
+
}
|
|
8642
|
+
function GetCatalogViewByIDResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8643
|
+
if (json == null) {
|
|
8644
|
+
return json;
|
|
8645
|
+
}
|
|
8646
|
+
return {
|
|
8647
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8648
|
+
params: json["params"]
|
|
8649
|
+
};
|
|
8650
|
+
}
|
|
8651
|
+
|
|
8652
|
+
// src/api/checkoutexternal/models/GetCatalogViewResponse.ts
|
|
8653
|
+
function GetCatalogViewResponseFromJSON(json) {
|
|
8654
|
+
return GetCatalogViewResponseFromJSONTyped(json, false);
|
|
8655
|
+
}
|
|
8656
|
+
function GetCatalogViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8657
|
+
if (json == null) {
|
|
8658
|
+
return json;
|
|
8659
|
+
}
|
|
8660
|
+
return {
|
|
8661
|
+
data: CompanyCatalogResponseDataFromJSON(json["data"]),
|
|
8662
|
+
params: json["params"]
|
|
8663
|
+
};
|
|
8664
|
+
}
|
|
8665
|
+
|
|
8313
8666
|
// src/api/checkoutexternal/models/GetCheckoutResponse.ts
|
|
8314
8667
|
function GetCheckoutResponseFromJSON(json) {
|
|
8315
8668
|
return GetCheckoutResponseFromJSONTyped(json, false);
|
|
@@ -9270,6 +9623,82 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
9270
9623
|
);
|
|
9271
9624
|
return await response.value();
|
|
9272
9625
|
}
|
|
9626
|
+
/**
|
|
9627
|
+
* Get catalog view
|
|
9628
|
+
*/
|
|
9629
|
+
async getCatalogViewRaw(initOverrides) {
|
|
9630
|
+
const queryParameters = {};
|
|
9631
|
+
const headerParameters = {};
|
|
9632
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9633
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9634
|
+
"X-Schematic-Api-Key"
|
|
9635
|
+
);
|
|
9636
|
+
}
|
|
9637
|
+
const response = await this.request(
|
|
9638
|
+
{
|
|
9639
|
+
path: `/catalog/view`,
|
|
9640
|
+
method: "GET",
|
|
9641
|
+
headers: headerParameters,
|
|
9642
|
+
query: queryParameters
|
|
9643
|
+
},
|
|
9644
|
+
initOverrides
|
|
9645
|
+
);
|
|
9646
|
+
return new JSONApiResponse(
|
|
9647
|
+
response,
|
|
9648
|
+
(jsonValue) => GetCatalogViewResponseFromJSON(jsonValue)
|
|
9649
|
+
);
|
|
9650
|
+
}
|
|
9651
|
+
/**
|
|
9652
|
+
* Get catalog view
|
|
9653
|
+
*/
|
|
9654
|
+
async getCatalogView(initOverrides) {
|
|
9655
|
+
const response = await this.getCatalogViewRaw(initOverrides);
|
|
9656
|
+
return await response.value();
|
|
9657
|
+
}
|
|
9658
|
+
/**
|
|
9659
|
+
* Get catalog view by ID
|
|
9660
|
+
*/
|
|
9661
|
+
async getCatalogViewByIDRaw(requestParameters, initOverrides) {
|
|
9662
|
+
if (requestParameters["catalogId"] == null) {
|
|
9663
|
+
throw new RequiredError(
|
|
9664
|
+
"catalogId",
|
|
9665
|
+
'Required parameter "catalogId" was null or undefined when calling getCatalogViewByID().'
|
|
9666
|
+
);
|
|
9667
|
+
}
|
|
9668
|
+
const queryParameters = {};
|
|
9669
|
+
const headerParameters = {};
|
|
9670
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9671
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9672
|
+
"X-Schematic-Api-Key"
|
|
9673
|
+
);
|
|
9674
|
+
}
|
|
9675
|
+
const response = await this.request(
|
|
9676
|
+
{
|
|
9677
|
+
path: `/catalogs/{catalog_id}/view`.replace(
|
|
9678
|
+
`{${"catalog_id"}}`,
|
|
9679
|
+
encodeURIComponent(String(requestParameters["catalogId"]))
|
|
9680
|
+
),
|
|
9681
|
+
method: "GET",
|
|
9682
|
+
headers: headerParameters,
|
|
9683
|
+
query: queryParameters
|
|
9684
|
+
},
|
|
9685
|
+
initOverrides
|
|
9686
|
+
);
|
|
9687
|
+
return new JSONApiResponse(
|
|
9688
|
+
response,
|
|
9689
|
+
(jsonValue) => GetCatalogViewByIDResponseFromJSON(jsonValue)
|
|
9690
|
+
);
|
|
9691
|
+
}
|
|
9692
|
+
/**
|
|
9693
|
+
* Get catalog view by ID
|
|
9694
|
+
*/
|
|
9695
|
+
async getCatalogViewByID(requestParameters, initOverrides) {
|
|
9696
|
+
const response = await this.getCatalogViewByIDRaw(
|
|
9697
|
+
requestParameters,
|
|
9698
|
+
initOverrides
|
|
9699
|
+
);
|
|
9700
|
+
return await response.value();
|
|
9701
|
+
}
|
|
9273
9702
|
/**
|
|
9274
9703
|
* Get checkout
|
|
9275
9704
|
*/
|
|
@@ -10528,9 +10957,9 @@ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
10528
10957
|
|
|
10529
10958
|
// src/api/componentspublic/models/BillingCreditAutoTopupAvailability.ts
|
|
10530
10959
|
function BillingCreditAutoTopupAvailabilityFromJSON2(json) {
|
|
10531
|
-
return
|
|
10960
|
+
return BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, false);
|
|
10532
10961
|
}
|
|
10533
|
-
function
|
|
10962
|
+
function BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10534
10963
|
return json;
|
|
10535
10964
|
}
|
|
10536
10965
|
|
|
@@ -10544,17 +10973,17 @@ function BillingCreditBurnStrategyFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10544
10973
|
|
|
10545
10974
|
// src/api/componentspublic/models/BillingCreditExpiryType.ts
|
|
10546
10975
|
function BillingCreditExpiryTypeFromJSON2(json) {
|
|
10547
|
-
return
|
|
10976
|
+
return BillingCreditExpiryTypeFromJSONTyped8(json, false);
|
|
10548
10977
|
}
|
|
10549
|
-
function
|
|
10978
|
+
function BillingCreditExpiryTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10550
10979
|
return json;
|
|
10551
10980
|
}
|
|
10552
10981
|
|
|
10553
10982
|
// src/api/componentspublic/models/BillingCreditExpiryUnit.ts
|
|
10554
10983
|
function BillingCreditExpiryUnitFromJSON2(json) {
|
|
10555
|
-
return
|
|
10984
|
+
return BillingCreditExpiryUnitFromJSONTyped10(json, false);
|
|
10556
10985
|
}
|
|
10557
|
-
function
|
|
10986
|
+
function BillingCreditExpiryUnitFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10558
10987
|
return json;
|
|
10559
10988
|
}
|
|
10560
10989
|
|
|
@@ -10568,9 +10997,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10568
10997
|
|
|
10569
10998
|
// src/api/componentspublic/models/Currency.ts
|
|
10570
10999
|
function CurrencyFromJSON2(json) {
|
|
10571
|
-
return
|
|
11000
|
+
return CurrencyFromJSONTyped38(json, false);
|
|
10572
11001
|
}
|
|
10573
|
-
function
|
|
11002
|
+
function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
|
|
10574
11003
|
return json;
|
|
10575
11004
|
}
|
|
10576
11005
|
|
|
@@ -10952,41 +11381,41 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
|
|
|
10952
11381
|
|
|
10953
11382
|
// src/api/componentspublic/models/BillingStrategy.ts
|
|
10954
11383
|
function BillingStrategyFromJSON2(json) {
|
|
10955
|
-
return
|
|
11384
|
+
return BillingStrategyFromJSONTyped7(json, false);
|
|
10956
11385
|
}
|
|
10957
|
-
function
|
|
11386
|
+
function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10958
11387
|
return json;
|
|
10959
11388
|
}
|
|
10960
11389
|
|
|
10961
11390
|
// src/api/componentspublic/models/ChargeType.ts
|
|
10962
11391
|
function ChargeTypeFromJSON2(json) {
|
|
10963
|
-
return
|
|
11392
|
+
return ChargeTypeFromJSONTyped7(json, false);
|
|
10964
11393
|
}
|
|
10965
|
-
function
|
|
11394
|
+
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10966
11395
|
return json;
|
|
10967
11396
|
}
|
|
10968
11397
|
|
|
10969
11398
|
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
10970
11399
|
function EntitlementValueTypeFromJSON2(json) {
|
|
10971
|
-
return
|
|
11400
|
+
return EntitlementValueTypeFromJSONTyped10(json, false);
|
|
10972
11401
|
}
|
|
10973
|
-
function
|
|
11402
|
+
function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10974
11403
|
return json;
|
|
10975
11404
|
}
|
|
10976
11405
|
|
|
10977
11406
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
10978
11407
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
10979
|
-
return
|
|
11408
|
+
return MetricPeriodMonthResetFromJSONTyped14(json, false);
|
|
10980
11409
|
}
|
|
10981
|
-
function
|
|
11410
|
+
function MetricPeriodMonthResetFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10982
11411
|
return json;
|
|
10983
11412
|
}
|
|
10984
11413
|
|
|
10985
11414
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
10986
11415
|
function MetricPeriodFromJSON2(json) {
|
|
10987
|
-
return
|
|
11416
|
+
return MetricPeriodFromJSONTyped14(json, false);
|
|
10988
11417
|
}
|
|
10989
|
-
function
|
|
11418
|
+
function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10990
11419
|
return json;
|
|
10991
11420
|
}
|
|
10992
11421
|
|
|
@@ -11094,9 +11523,9 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
11094
11523
|
|
|
11095
11524
|
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
11096
11525
|
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
11097
|
-
return
|
|
11526
|
+
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
11098
11527
|
}
|
|
11099
|
-
function
|
|
11528
|
+
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
11100
11529
|
return json;
|
|
11101
11530
|
}
|
|
11102
11531
|
|
|
@@ -11163,9 +11592,9 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
11163
11592
|
|
|
11164
11593
|
// src/api/componentspublic/models/FeatureType.ts
|
|
11165
11594
|
function FeatureTypeFromJSON2(json) {
|
|
11166
|
-
return
|
|
11595
|
+
return FeatureTypeFromJSONTyped7(json, false);
|
|
11167
11596
|
}
|
|
11168
|
-
function
|
|
11597
|
+
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11169
11598
|
return json;
|
|
11170
11599
|
}
|
|
11171
11600
|
|
|
@@ -11521,9 +11950,9 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
11521
11950
|
|
|
11522
11951
|
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11523
11952
|
function PlanPriceCadenceFromJSON2(json) {
|
|
11524
|
-
return
|
|
11953
|
+
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
11525
11954
|
}
|
|
11526
|
-
function
|
|
11955
|
+
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11527
11956
|
return json;
|
|
11528
11957
|
}
|
|
11529
11958
|
|
|
@@ -17227,7 +17656,7 @@ var reducer = (state, action) => {
|
|
|
17227
17656
|
// src/context/EmbedProvider.tsx
|
|
17228
17657
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
17229
17658
|
var getCustomHeaders = (sessionId) => ({
|
|
17230
|
-
"X-Schematic-Components-Version": "2.
|
|
17659
|
+
"X-Schematic-Components-Version": "2.34.0",
|
|
17231
17660
|
"X-Schematic-Session-ID": sessionId
|
|
17232
17661
|
});
|
|
17233
17662
|
var normalizeCurrencyFilter = (filter) => {
|