@schematichq/schematic-components 2.32.0 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schematic-components-elements.cjs.js +2490 -409
- package/dist/schematic-components-elements.d.ts +605 -11
- package/dist/schematic-components-elements.esm.js +2466 -370
- package/dist/schematic-components.browser.cjs.js +859 -215
- package/dist/schematic-components.browser.esm.js +859 -215
- package/dist/schematic-components.cjs.js +859 -215
- package/dist/schematic-components.d.ts +127 -0
- package/dist/schematic-components.esm.js +859 -215
- package/package.json +10 -10
|
@@ -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"])
|
|
5247
5618
|
};
|
|
5248
5619
|
}
|
|
5249
5620
|
|
|
5250
|
-
// src/api/checkoutexternal/models/
|
|
5251
|
-
function
|
|
5252
|
-
return
|
|
5621
|
+
// src/api/checkoutexternal/models/CatalogCreditBundleResponseData.ts
|
|
5622
|
+
function CatalogCreditBundleResponseDataFromJSON(json) {
|
|
5623
|
+
return CatalogCreditBundleResponseDataFromJSONTyped(json, false);
|
|
5253
5624
|
}
|
|
5254
|
-
function
|
|
5625
|
+
function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5255
5626
|
if (json == null) {
|
|
5256
5627
|
return json;
|
|
5257
5628
|
}
|
|
5258
5629
|
return {
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
CatalogPriceTierResponseDataFromJSON
|
|
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
|
|
5269
5639
|
),
|
|
5270
|
-
|
|
5271
|
-
|
|
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"])
|
|
5648
|
+
};
|
|
5649
|
+
}
|
|
5650
|
+
|
|
5651
|
+
// src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
|
|
5652
|
+
function CatalogCustomPlanCTAResponseDataFromJSON(json) {
|
|
5653
|
+
return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
|
|
5654
|
+
}
|
|
5655
|
+
function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5656
|
+
if (json == null) {
|
|
5657
|
+
return json;
|
|
5658
|
+
}
|
|
5659
|
+
return {
|
|
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,43 +6110,194 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5729
6110
|
};
|
|
5730
6111
|
}
|
|
5731
6112
|
|
|
5732
|
-
// src/api/checkoutexternal/models/
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
6113
|
+
// src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
|
|
6114
|
+
function CompanyBillingProfileResponseDataFromJSON(json) {
|
|
6115
|
+
return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
|
|
6116
|
+
}
|
|
6117
|
+
function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6118
|
+
if (json == null) {
|
|
6119
|
+
return json;
|
|
6120
|
+
}
|
|
6121
|
+
return {
|
|
6122
|
+
accountId: json["account_id"],
|
|
6123
|
+
billingCustomerId: json["billing_customer_id"] == null ? void 0 : json["billing_customer_id"],
|
|
6124
|
+
collectionMethod: BillingCollectionMethodFromJSON(
|
|
6125
|
+
json["collection_method"]
|
|
6126
|
+
),
|
|
6127
|
+
companyId: json["company_id"],
|
|
6128
|
+
createdAt: new Date(json["created_at"]),
|
|
6129
|
+
daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
|
|
6130
|
+
environmentId: json["environment_id"],
|
|
6131
|
+
id: json["id"],
|
|
6132
|
+
isDefault: json["is_default"],
|
|
6133
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
6134
|
+
paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
|
|
6135
|
+
prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
6136
|
+
providerType: BillingProviderTypeFromJSON(json["provider_type"]),
|
|
6137
|
+
updatedAt: new Date(json["updated_at"])
|
|
6138
|
+
};
|
|
6139
|
+
}
|
|
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
|
+
|
|
6178
|
+
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
6179
|
+
var CustomPlanActivationStrategy = {
|
|
6180
|
+
Payment: "on_payment",
|
|
6181
|
+
Publish: "on_publish"
|
|
5736
6182
|
};
|
|
5737
|
-
function
|
|
5738
|
-
return
|
|
6183
|
+
function CustomPlanActivationStrategyFromJSON(json) {
|
|
6184
|
+
return CustomPlanActivationStrategyFromJSONTyped(json, false);
|
|
5739
6185
|
}
|
|
5740
|
-
function
|
|
6186
|
+
function CustomPlanActivationStrategyFromJSONTyped(json, ignoreDiscriminator) {
|
|
5741
6187
|
return json;
|
|
5742
6188
|
}
|
|
5743
6189
|
|
|
5744
|
-
// src/api/checkoutexternal/models/
|
|
5745
|
-
function
|
|
5746
|
-
return
|
|
6190
|
+
// src/api/checkoutexternal/models/CompanyContextCustomPlanBillingResponseData.ts
|
|
6191
|
+
function CompanyContextCustomPlanBillingResponseDataFromJSON(json) {
|
|
6192
|
+
return CompanyContextCustomPlanBillingResponseDataFromJSONTyped(json, false);
|
|
5747
6193
|
}
|
|
5748
|
-
function
|
|
6194
|
+
function CompanyContextCustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6195
|
+
if (json == null) {
|
|
6196
|
+
return json;
|
|
6197
|
+
}
|
|
6198
|
+
return {
|
|
6199
|
+
activationStrategy: CustomPlanActivationStrategyFromJSON(
|
|
6200
|
+
json["activation_strategy"]
|
|
6201
|
+
),
|
|
6202
|
+
dueAt: new Date(json["due_at"]),
|
|
6203
|
+
invoiceUrl: json["invoice_url"] == null ? void 0 : json["invoice_url"],
|
|
6204
|
+
planId: json["plan_id"],
|
|
6205
|
+
planName: json["plan_name"] == null ? void 0 : json["plan_name"]
|
|
6206
|
+
};
|
|
6207
|
+
}
|
|
6208
|
+
|
|
6209
|
+
// src/api/checkoutexternal/models/CompanyContextPlanResponseData.ts
|
|
6210
|
+
function CompanyContextPlanResponseDataFromJSON(json) {
|
|
6211
|
+
return CompanyContextPlanResponseDataFromJSONTyped(json, false);
|
|
6212
|
+
}
|
|
6213
|
+
function CompanyContextPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6214
|
+
if (json == null) {
|
|
6215
|
+
return json;
|
|
6216
|
+
}
|
|
6217
|
+
return {
|
|
6218
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
6219
|
+
id: json["id"],
|
|
6220
|
+
includedCreditIds: json["included_credit_ids"],
|
|
6221
|
+
name: json["name"],
|
|
6222
|
+
period: json["period"] == null ? void 0 : json["period"],
|
|
6223
|
+
price: json["price"] == null ? void 0 : json["price"]
|
|
6224
|
+
};
|
|
6225
|
+
}
|
|
6226
|
+
|
|
6227
|
+
// src/api/checkoutexternal/models/CompanyContextScheduledDowngradeResponseData.ts
|
|
6228
|
+
function CompanyContextScheduledDowngradeResponseDataFromJSON(json) {
|
|
6229
|
+
return CompanyContextScheduledDowngradeResponseDataFromJSONTyped(json, false);
|
|
6230
|
+
}
|
|
6231
|
+
function CompanyContextScheduledDowngradeResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6232
|
+
if (json == null) {
|
|
6233
|
+
return json;
|
|
6234
|
+
}
|
|
6235
|
+
return {
|
|
6236
|
+
fromPlanId: json["from_plan_id"],
|
|
6237
|
+
fromPlanName: json["from_plan_name"],
|
|
6238
|
+
toPlanId: json["to_plan_id"],
|
|
6239
|
+
toPlanName: json["to_plan_name"]
|
|
6240
|
+
};
|
|
6241
|
+
}
|
|
6242
|
+
|
|
6243
|
+
// src/api/checkoutexternal/models/CompanyContextSubscriptionResponseData.ts
|
|
6244
|
+
function CompanyContextSubscriptionResponseDataFromJSON(json) {
|
|
6245
|
+
return CompanyContextSubscriptionResponseDataFromJSONTyped(json, false);
|
|
6246
|
+
}
|
|
6247
|
+
function CompanyContextSubscriptionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6248
|
+
if (json == null) {
|
|
6249
|
+
return json;
|
|
6250
|
+
}
|
|
6251
|
+
return {
|
|
6252
|
+
cancelAt: json["cancel_at"] == null ? void 0 : new Date(json["cancel_at"]),
|
|
6253
|
+
cancelAtPeriodEnd: json["cancel_at_period_end"],
|
|
6254
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
6255
|
+
nextBillAt: json["next_bill_at"] == null ? void 0 : new Date(json["next_bill_at"]),
|
|
6256
|
+
period: json["period"] == null ? void 0 : json["period"],
|
|
6257
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
6258
|
+
status: json["status"],
|
|
6259
|
+
trialEnd: json["trial_end"] == null ? void 0 : new Date(json["trial_end"])
|
|
6260
|
+
};
|
|
6261
|
+
}
|
|
6262
|
+
|
|
6263
|
+
// src/api/checkoutexternal/models/CompanyContextResponseData.ts
|
|
6264
|
+
function CompanyContextResponseDataFromJSON(json) {
|
|
6265
|
+
return CompanyContextResponseDataFromJSONTyped(json, false);
|
|
6266
|
+
}
|
|
6267
|
+
function CompanyContextResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6268
|
+
if (json == null) {
|
|
6269
|
+
return json;
|
|
6270
|
+
}
|
|
6271
|
+
return {
|
|
6272
|
+
addOns: json["add_ons"].map(
|
|
6273
|
+
CompanyContextPlanResponseDataFromJSON
|
|
6274
|
+
),
|
|
6275
|
+
customPlanBilling: json["custom_plan_billing"] == null ? void 0 : CompanyContextCustomPlanBillingResponseDataFromJSON(
|
|
6276
|
+
json["custom_plan_billing"]
|
|
6277
|
+
),
|
|
6278
|
+
id: json["id"],
|
|
6279
|
+
name: json["name"],
|
|
6280
|
+
plan: json["plan"] == null ? void 0 : CompanyContextPlanResponseDataFromJSON(json["plan"]),
|
|
6281
|
+
scheduledDowngrade: json["scheduled_downgrade"] == null ? void 0 : CompanyContextScheduledDowngradeResponseDataFromJSON(
|
|
6282
|
+
json["scheduled_downgrade"]
|
|
6283
|
+
),
|
|
6284
|
+
subscription: json["subscription"] == null ? void 0 : CompanyContextSubscriptionResponseDataFromJSON(json["subscription"])
|
|
6285
|
+
};
|
|
6286
|
+
}
|
|
6287
|
+
|
|
6288
|
+
// src/api/checkoutexternal/models/CompanyCreditAutoTopupResponseData.ts
|
|
6289
|
+
function CompanyCreditAutoTopupResponseDataFromJSON(json) {
|
|
6290
|
+
return CompanyCreditAutoTopupResponseDataFromJSONTyped(json, false);
|
|
6291
|
+
}
|
|
6292
|
+
function CompanyCreditAutoTopupResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5749
6293
|
if (json == null) {
|
|
5750
6294
|
return json;
|
|
5751
6295
|
}
|
|
5752
6296
|
return {
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
),
|
|
5758
|
-
companyId: json["company_id"],
|
|
5759
|
-
createdAt: new Date(json["created_at"]),
|
|
5760
|
-
daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
|
|
5761
|
-
environmentId: json["environment_id"],
|
|
5762
|
-
id: json["id"],
|
|
5763
|
-
isDefault: json["is_default"],
|
|
5764
|
-
name: json["name"] == null ? void 0 : json["name"],
|
|
5765
|
-
paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
|
|
5766
|
-
prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
5767
|
-
providerType: BillingProviderTypeFromJSON(json["provider_type"]),
|
|
5768
|
-
updatedAt: new Date(json["updated_at"])
|
|
6297
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
6298
|
+
enabled: json["enabled"],
|
|
6299
|
+
selfService: json["self_service"],
|
|
6300
|
+
thresholdCredits: json["threshold_credits"] == null ? void 0 : json["threshold_credits"]
|
|
5769
6301
|
};
|
|
5770
6302
|
}
|
|
5771
6303
|
|
|
@@ -5826,6 +6358,7 @@ function CompanyCreditBalanceResponseDataFromJSONTyped(json, ignoreDiscriminator
|
|
|
5826
6358
|
return json;
|
|
5827
6359
|
}
|
|
5828
6360
|
return {
|
|
6361
|
+
autoTopup: json["auto_topup"] == null ? void 0 : CompanyCreditAutoTopupResponseDataFromJSON(json["auto_topup"]),
|
|
5829
6362
|
composition: json["composition"] == null ? void 0 : CompanyCreditCompositionResponseDataFromJSON(json["composition"]),
|
|
5830
6363
|
creditDescription: json["credit_description"],
|
|
5831
6364
|
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
@@ -6032,30 +6565,6 @@ function CompanyPlanWithBillingSubViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6032
6565
|
};
|
|
6033
6566
|
}
|
|
6034
6567
|
|
|
6035
|
-
// src/api/checkoutexternal/models/EntitlementValueType.ts
|
|
6036
|
-
var EntitlementValueType = {
|
|
6037
|
-
Boolean: "boolean",
|
|
6038
|
-
Credit: "credit",
|
|
6039
|
-
Numeric: "numeric",
|
|
6040
|
-
Trait: "trait",
|
|
6041
|
-
Unknown: "unknown",
|
|
6042
|
-
Unlimited: "unlimited"
|
|
6043
|
-
};
|
|
6044
|
-
function EntitlementValueTypeFromJSON(json) {
|
|
6045
|
-
return EntitlementValueTypeFromJSONTyped(json, false);
|
|
6046
|
-
}
|
|
6047
|
-
function EntitlementValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6048
|
-
return json;
|
|
6049
|
-
}
|
|
6050
|
-
|
|
6051
|
-
// src/api/checkoutexternal/models/MetricPeriodMonthReset.ts
|
|
6052
|
-
function MetricPeriodMonthResetFromJSON(json) {
|
|
6053
|
-
return MetricPeriodMonthResetFromJSONTyped(json, false);
|
|
6054
|
-
}
|
|
6055
|
-
function MetricPeriodMonthResetFromJSONTyped(json, ignoreDiscriminator) {
|
|
6056
|
-
return json;
|
|
6057
|
-
}
|
|
6058
|
-
|
|
6059
6568
|
// src/api/checkoutexternal/models/WarningTier.ts
|
|
6060
6569
|
function WarningTierFromJSON(json) {
|
|
6061
6570
|
return WarningTierFromJSONTyped(json, false);
|
|
@@ -6070,14 +6579,6 @@ function WarningTierFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6070
6579
|
};
|
|
6071
6580
|
}
|
|
6072
6581
|
|
|
6073
|
-
// src/api/checkoutexternal/models/MetricPeriod.ts
|
|
6074
|
-
function MetricPeriodFromJSON(json) {
|
|
6075
|
-
return MetricPeriodFromJSONTyped(json, false);
|
|
6076
|
-
}
|
|
6077
|
-
function MetricPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
6078
|
-
return json;
|
|
6079
|
-
}
|
|
6080
|
-
|
|
6081
6582
|
// src/api/checkoutexternal/models/FeatureEntitlement.ts
|
|
6082
6583
|
function FeatureEntitlementFromJSON(json) {
|
|
6083
6584
|
return FeatureEntitlementFromJSONTyped(json, false);
|
|
@@ -6102,6 +6603,7 @@ function FeatureEntitlementFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6102
6603
|
metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
|
|
6103
6604
|
metricResetAt: json["metric_reset_at"] == null ? void 0 : new Date(json["metric_reset_at"]),
|
|
6104
6605
|
monthReset: json["month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["month_reset"]),
|
|
6606
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
6105
6607
|
softLimit: json["soft_limit"] == null ? void 0 : json["soft_limit"],
|
|
6106
6608
|
usage: json["usage"] == null ? void 0 : json["usage"],
|
|
6107
6609
|
valueType: EntitlementValueTypeFromJSON(json["value_type"]),
|
|
@@ -6186,18 +6688,6 @@ function EntityTraitDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6186
6688
|
};
|
|
6187
6689
|
}
|
|
6188
6690
|
|
|
6189
|
-
// src/api/checkoutexternal/models/CustomPlanActivationStrategy.ts
|
|
6190
|
-
var CustomPlanActivationStrategy = {
|
|
6191
|
-
Payment: "on_payment",
|
|
6192
|
-
Publish: "on_publish"
|
|
6193
|
-
};
|
|
6194
|
-
function CustomPlanActivationStrategyFromJSON(json) {
|
|
6195
|
-
return CustomPlanActivationStrategyFromJSONTyped(json, false);
|
|
6196
|
-
}
|
|
6197
|
-
function CustomPlanActivationStrategyFromJSONTyped(json, ignoreDiscriminator) {
|
|
6198
|
-
return json;
|
|
6199
|
-
}
|
|
6200
|
-
|
|
6201
6691
|
// src/api/checkoutexternal/models/CustomPlanBillingStatus.ts
|
|
6202
6692
|
var CustomPlanBillingStatus = {
|
|
6203
6693
|
Active: "active",
|
|
@@ -6234,6 +6724,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6234
6724
|
),
|
|
6235
6725
|
billingCycleAnchor: json["billing_cycle_anchor"] == null ? void 0 : new Date(json["billing_cycle_anchor"]),
|
|
6236
6726
|
billingStartDate: json["billing_start_date"] == null ? void 0 : new Date(json["billing_start_date"]),
|
|
6727
|
+
checkoutId: json["checkout_id"] == null ? void 0 : json["checkout_id"],
|
|
6237
6728
|
companyId: json["company_id"],
|
|
6238
6729
|
createdAt: new Date(json["created_at"]),
|
|
6239
6730
|
daysUntilDue: json["days_until_due"],
|
|
@@ -6243,6 +6734,9 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6243
6734
|
paidAt: json["paid_at"] == null ? void 0 : new Date(json["paid_at"]),
|
|
6244
6735
|
planBillingSource: PlanBillingSourceFromJSON(json["plan_billing_source"]),
|
|
6245
6736
|
planId: json["plan_id"],
|
|
6737
|
+
problems: json["problems"].map(
|
|
6738
|
+
CheckoutProblemResponseDataFromJSON
|
|
6739
|
+
),
|
|
6246
6740
|
prorateFirstPeriod: json["prorate_first_period"] == null ? void 0 : json["prorate_first_period"],
|
|
6247
6741
|
publishedAt: json["published_at"] == null ? void 0 : new Date(json["published_at"]),
|
|
6248
6742
|
sendInvoice: json["send_invoice"],
|
|
@@ -6403,6 +6897,7 @@ function ConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6403
6897
|
metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
|
|
6404
6898
|
metricValue: json["metric_value"] == null ? void 0 : json["metric_value"],
|
|
6405
6899
|
operator: ComparableOperatorFromJSON(json["operator"]),
|
|
6900
|
+
quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"],
|
|
6406
6901
|
resourceIds: json["resource_ids"],
|
|
6407
6902
|
traitDefinition: json["trait_definition"] == null ? void 0 : TraitDefinitionFromJSON(json["trait_definition"]),
|
|
6408
6903
|
traitValue: json["trait_value"]
|
|
@@ -6529,35 +7024,6 @@ function CompanyDiscountResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6529
7024
|
};
|
|
6530
7025
|
}
|
|
6531
7026
|
|
|
6532
|
-
// src/api/checkoutexternal/models/FeatureType.ts
|
|
6533
|
-
var FeatureType = {
|
|
6534
|
-
Boolean: "boolean",
|
|
6535
|
-
Event: "event",
|
|
6536
|
-
License: "license",
|
|
6537
|
-
Trait: "trait"
|
|
6538
|
-
};
|
|
6539
|
-
function FeatureTypeFromJSON(json) {
|
|
6540
|
-
return FeatureTypeFromJSONTyped(json, false);
|
|
6541
|
-
}
|
|
6542
|
-
function FeatureTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
6543
|
-
return json;
|
|
6544
|
-
}
|
|
6545
|
-
|
|
6546
|
-
// src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
|
|
6547
|
-
var EntitlementPriceBehavior = {
|
|
6548
|
-
CreditBurndown: "credit_burndown",
|
|
6549
|
-
Overage: "overage",
|
|
6550
|
-
PayAsYouGo: "pay_as_you_go",
|
|
6551
|
-
PayInAdvance: "pay_in_advance",
|
|
6552
|
-
Tier: "tier"
|
|
6553
|
-
};
|
|
6554
|
-
function EntitlementPriceBehaviorFromJSON(json) {
|
|
6555
|
-
return EntitlementPriceBehaviorFromJSONTyped(json, false);
|
|
6556
|
-
}
|
|
6557
|
-
function EntitlementPriceBehaviorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6558
|
-
return json;
|
|
6559
|
-
}
|
|
6560
|
-
|
|
6561
7027
|
// src/api/checkoutexternal/models/EntitlementType.ts
|
|
6562
7028
|
function EntitlementTypeFromJSON(json) {
|
|
6563
7029
|
return EntitlementTypeFromJSONTyped(json, false);
|
|
@@ -6840,26 +7306,6 @@ function CompanyPaymentMethodsResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
6840
7306
|
};
|
|
6841
7307
|
}
|
|
6842
7308
|
|
|
6843
|
-
// src/api/checkoutexternal/models/CompanyPlanInvalidReason.ts
|
|
6844
|
-
var CompanyPlanInvalidReason = {
|
|
6845
|
-
DowngradeNotPermitted: "downgrade_not_permitted",
|
|
6846
|
-
FeatureUsageExceeded: "feature_usage_exceeded"
|
|
6847
|
-
};
|
|
6848
|
-
function CompanyPlanInvalidReasonFromJSON(json) {
|
|
6849
|
-
return CompanyPlanInvalidReasonFromJSONTyped(json, false);
|
|
6850
|
-
}
|
|
6851
|
-
function CompanyPlanInvalidReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
6852
|
-
return json;
|
|
6853
|
-
}
|
|
6854
|
-
|
|
6855
|
-
// src/api/checkoutexternal/models/PlanPriceCadence.ts
|
|
6856
|
-
function PlanPriceCadenceFromJSON(json) {
|
|
6857
|
-
return PlanPriceCadenceFromJSONTyped(json, false);
|
|
6858
|
-
}
|
|
6859
|
-
function PlanPriceCadenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
6860
|
-
return json;
|
|
6861
|
-
}
|
|
6862
|
-
|
|
6863
7309
|
// src/api/checkoutexternal/models/EstimatedPlanTotal.ts
|
|
6864
7310
|
function EstimatedPlanTotalFromJSON(json) {
|
|
6865
7311
|
return EstimatedPlanTotalFromJSONTyped(json, false);
|
|
@@ -7340,6 +7786,20 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7340
7786
|
};
|
|
7341
7787
|
}
|
|
7342
7788
|
|
|
7789
|
+
// src/api/checkoutexternal/models/PlanCreditVisibility.ts
|
|
7790
|
+
function PlanCreditVisibilityFromJSON(json) {
|
|
7791
|
+
return PlanCreditVisibilityFromJSONTyped(json, false);
|
|
7792
|
+
}
|
|
7793
|
+
function PlanCreditVisibilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
7794
|
+
if (json == null) {
|
|
7795
|
+
return json;
|
|
7796
|
+
}
|
|
7797
|
+
return {
|
|
7798
|
+
creditId: json["credit_id"],
|
|
7799
|
+
visible: json["visible"]
|
|
7800
|
+
};
|
|
7801
|
+
}
|
|
7802
|
+
|
|
7343
7803
|
// src/api/checkoutexternal/models/CreditUsageAggregation.ts
|
|
7344
7804
|
function CreditUsageAggregationFromJSON(json) {
|
|
7345
7805
|
return CreditUsageAggregationFromJSONTyped(json, false);
|
|
@@ -7453,6 +7913,9 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7453
7913
|
controlledBy: BillingProviderTypeFromJSON(json["controlled_by"]),
|
|
7454
7914
|
copiedFromPlanId: json["copied_from_plan_id"] == null ? void 0 : json["copied_from_plan_id"],
|
|
7455
7915
|
createdAt: new Date(json["created_at"]),
|
|
7916
|
+
creditVisibility: json["credit_visibility"] == null ? void 0 : json["credit_visibility"].map(
|
|
7917
|
+
PlanCreditVisibilityFromJSON
|
|
7918
|
+
),
|
|
7456
7919
|
credits: json["credits"].map(
|
|
7457
7920
|
BillingCreditResponseDataFromJSON
|
|
7458
7921
|
),
|
|
@@ -8172,6 +8635,34 @@ function FinalizeCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
8172
8635
|
};
|
|
8173
8636
|
}
|
|
8174
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
|
+
|
|
8175
8666
|
// src/api/checkoutexternal/models/GetCheckoutResponse.ts
|
|
8176
8667
|
function GetCheckoutResponseFromJSON(json) {
|
|
8177
8668
|
return GetCheckoutResponseFromJSONTyped(json, false);
|
|
@@ -8340,6 +8831,20 @@ function GetCompanyPaymentMethodsResponseFromJSONTyped(json, ignoreDiscriminator
|
|
|
8340
8831
|
};
|
|
8341
8832
|
}
|
|
8342
8833
|
|
|
8834
|
+
// src/api/checkoutexternal/models/GetCompanyResponse.ts
|
|
8835
|
+
function GetCompanyResponseFromJSON(json) {
|
|
8836
|
+
return GetCompanyResponseFromJSONTyped(json, false);
|
|
8837
|
+
}
|
|
8838
|
+
function GetCompanyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8839
|
+
if (json == null) {
|
|
8840
|
+
return json;
|
|
8841
|
+
}
|
|
8842
|
+
return {
|
|
8843
|
+
data: CompanyContextResponseDataFromJSON(json["data"]),
|
|
8844
|
+
params: json["params"]
|
|
8845
|
+
};
|
|
8846
|
+
}
|
|
8847
|
+
|
|
8343
8848
|
// src/api/checkoutexternal/models/GetCompanyUpcomingInvoiceResponse.ts
|
|
8344
8849
|
function GetCompanyUpcomingInvoiceResponseFromJSON(json) {
|
|
8345
8850
|
return GetCompanyUpcomingInvoiceResponseFromJSONTyped(json, false);
|
|
@@ -9118,6 +9623,82 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
9118
9623
|
);
|
|
9119
9624
|
return await response.value();
|
|
9120
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
|
+
}
|
|
9121
9702
|
/**
|
|
9122
9703
|
* Get checkout
|
|
9123
9704
|
*/
|
|
@@ -9194,6 +9775,38 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
9194
9775
|
const response = await this.getCheckoutTaxIDRaw(initOverrides);
|
|
9195
9776
|
return await response.value();
|
|
9196
9777
|
}
|
|
9778
|
+
/**
|
|
9779
|
+
* Get company
|
|
9780
|
+
*/
|
|
9781
|
+
async getCompanyRaw(initOverrides) {
|
|
9782
|
+
const queryParameters = {};
|
|
9783
|
+
const headerParameters = {};
|
|
9784
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
9785
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9786
|
+
"X-Schematic-Api-Key"
|
|
9787
|
+
);
|
|
9788
|
+
}
|
|
9789
|
+
const response = await this.request(
|
|
9790
|
+
{
|
|
9791
|
+
path: `/company`,
|
|
9792
|
+
method: "GET",
|
|
9793
|
+
headers: headerParameters,
|
|
9794
|
+
query: queryParameters
|
|
9795
|
+
},
|
|
9796
|
+
initOverrides
|
|
9797
|
+
);
|
|
9798
|
+
return new JSONApiResponse(
|
|
9799
|
+
response,
|
|
9800
|
+
(jsonValue) => GetCompanyResponseFromJSON(jsonValue)
|
|
9801
|
+
);
|
|
9802
|
+
}
|
|
9803
|
+
/**
|
|
9804
|
+
* Get company
|
|
9805
|
+
*/
|
|
9806
|
+
async getCompany(initOverrides) {
|
|
9807
|
+
const response = await this.getCompanyRaw(initOverrides);
|
|
9808
|
+
return await response.value();
|
|
9809
|
+
}
|
|
9197
9810
|
/**
|
|
9198
9811
|
* Get company credit balances
|
|
9199
9812
|
*/
|
|
@@ -10344,9 +10957,9 @@ function BillingArrearsCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
10344
10957
|
|
|
10345
10958
|
// src/api/componentspublic/models/BillingCreditAutoTopupAvailability.ts
|
|
10346
10959
|
function BillingCreditAutoTopupAvailabilityFromJSON2(json) {
|
|
10347
|
-
return
|
|
10960
|
+
return BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, false);
|
|
10348
10961
|
}
|
|
10349
|
-
function
|
|
10962
|
+
function BillingCreditAutoTopupAvailabilityFromJSONTyped6(json, ignoreDiscriminator) {
|
|
10350
10963
|
return json;
|
|
10351
10964
|
}
|
|
10352
10965
|
|
|
@@ -10360,17 +10973,17 @@ function BillingCreditBurnStrategyFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10360
10973
|
|
|
10361
10974
|
// src/api/componentspublic/models/BillingCreditExpiryType.ts
|
|
10362
10975
|
function BillingCreditExpiryTypeFromJSON2(json) {
|
|
10363
|
-
return
|
|
10976
|
+
return BillingCreditExpiryTypeFromJSONTyped8(json, false);
|
|
10364
10977
|
}
|
|
10365
|
-
function
|
|
10978
|
+
function BillingCreditExpiryTypeFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10366
10979
|
return json;
|
|
10367
10980
|
}
|
|
10368
10981
|
|
|
10369
10982
|
// src/api/componentspublic/models/BillingCreditExpiryUnit.ts
|
|
10370
10983
|
function BillingCreditExpiryUnitFromJSON2(json) {
|
|
10371
|
-
return
|
|
10984
|
+
return BillingCreditExpiryUnitFromJSONTyped10(json, false);
|
|
10372
10985
|
}
|
|
10373
|
-
function
|
|
10986
|
+
function BillingCreditExpiryUnitFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10374
10987
|
return json;
|
|
10375
10988
|
}
|
|
10376
10989
|
|
|
@@ -10384,9 +10997,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10384
10997
|
|
|
10385
10998
|
// src/api/componentspublic/models/Currency.ts
|
|
10386
10999
|
function CurrencyFromJSON2(json) {
|
|
10387
|
-
return
|
|
11000
|
+
return CurrencyFromJSONTyped38(json, false);
|
|
10388
11001
|
}
|
|
10389
|
-
function
|
|
11002
|
+
function CurrencyFromJSONTyped38(json, ignoreDiscriminator) {
|
|
10390
11003
|
return json;
|
|
10391
11004
|
}
|
|
10392
11005
|
|
|
@@ -10768,41 +11381,41 @@ function BillingProductDetailResponseDataFromJSONTyped5(json, ignoreDiscriminato
|
|
|
10768
11381
|
|
|
10769
11382
|
// src/api/componentspublic/models/BillingStrategy.ts
|
|
10770
11383
|
function BillingStrategyFromJSON2(json) {
|
|
10771
|
-
return
|
|
11384
|
+
return BillingStrategyFromJSONTyped7(json, false);
|
|
10772
11385
|
}
|
|
10773
|
-
function
|
|
11386
|
+
function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10774
11387
|
return json;
|
|
10775
11388
|
}
|
|
10776
11389
|
|
|
10777
11390
|
// src/api/componentspublic/models/ChargeType.ts
|
|
10778
11391
|
function ChargeTypeFromJSON2(json) {
|
|
10779
|
-
return
|
|
11392
|
+
return ChargeTypeFromJSONTyped7(json, false);
|
|
10780
11393
|
}
|
|
10781
|
-
function
|
|
11394
|
+
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10782
11395
|
return json;
|
|
10783
11396
|
}
|
|
10784
11397
|
|
|
10785
11398
|
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
10786
11399
|
function EntitlementValueTypeFromJSON2(json) {
|
|
10787
|
-
return
|
|
11400
|
+
return EntitlementValueTypeFromJSONTyped10(json, false);
|
|
10788
11401
|
}
|
|
10789
|
-
function
|
|
11402
|
+
function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
|
|
10790
11403
|
return json;
|
|
10791
11404
|
}
|
|
10792
11405
|
|
|
10793
11406
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
10794
11407
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
10795
|
-
return
|
|
11408
|
+
return MetricPeriodMonthResetFromJSONTyped14(json, false);
|
|
10796
11409
|
}
|
|
10797
|
-
function
|
|
11410
|
+
function MetricPeriodMonthResetFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10798
11411
|
return json;
|
|
10799
11412
|
}
|
|
10800
11413
|
|
|
10801
11414
|
// src/api/componentspublic/models/MetricPeriod.ts
|
|
10802
11415
|
function MetricPeriodFromJSON2(json) {
|
|
10803
|
-
return
|
|
11416
|
+
return MetricPeriodFromJSONTyped14(json, false);
|
|
10804
11417
|
}
|
|
10805
|
-
function
|
|
11418
|
+
function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
|
|
10806
11419
|
return json;
|
|
10807
11420
|
}
|
|
10808
11421
|
|
|
@@ -10910,9 +11523,9 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
10910
11523
|
|
|
10911
11524
|
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
10912
11525
|
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
10913
|
-
return
|
|
11526
|
+
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
10914
11527
|
}
|
|
10915
|
-
function
|
|
11528
|
+
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
10916
11529
|
return json;
|
|
10917
11530
|
}
|
|
10918
11531
|
|
|
@@ -10979,9 +11592,9 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10979
11592
|
|
|
10980
11593
|
// src/api/componentspublic/models/FeatureType.ts
|
|
10981
11594
|
function FeatureTypeFromJSON2(json) {
|
|
10982
|
-
return
|
|
11595
|
+
return FeatureTypeFromJSONTyped7(json, false);
|
|
10983
11596
|
}
|
|
10984
|
-
function
|
|
11597
|
+
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
10985
11598
|
return json;
|
|
10986
11599
|
}
|
|
10987
11600
|
|
|
@@ -11337,9 +11950,9 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
11337
11950
|
|
|
11338
11951
|
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11339
11952
|
function PlanPriceCadenceFromJSON2(json) {
|
|
11340
|
-
return
|
|
11953
|
+
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
11341
11954
|
}
|
|
11342
|
-
function
|
|
11955
|
+
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11343
11956
|
return json;
|
|
11344
11957
|
}
|
|
11345
11958
|
|
|
@@ -11461,6 +12074,20 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
11461
12074
|
};
|
|
11462
12075
|
}
|
|
11463
12076
|
|
|
12077
|
+
// src/api/componentspublic/models/PlanCreditVisibility.ts
|
|
12078
|
+
function PlanCreditVisibilityFromJSON2(json) {
|
|
12079
|
+
return PlanCreditVisibilityFromJSONTyped3(json, false);
|
|
12080
|
+
}
|
|
12081
|
+
function PlanCreditVisibilityFromJSONTyped3(json, ignoreDiscriminator) {
|
|
12082
|
+
if (json == null) {
|
|
12083
|
+
return json;
|
|
12084
|
+
}
|
|
12085
|
+
return {
|
|
12086
|
+
creditId: json["credit_id"],
|
|
12087
|
+
visible: json["visible"]
|
|
12088
|
+
};
|
|
12089
|
+
}
|
|
12090
|
+
|
|
11464
12091
|
// src/api/componentspublic/models/PlanViewPublicResponseData.ts
|
|
11465
12092
|
function PlanViewPublicResponseDataFromJSON(json) {
|
|
11466
12093
|
return PlanViewPublicResponseDataFromJSONTyped(json, false);
|
|
@@ -11492,6 +12119,9 @@ function PlanViewPublicResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11492
12119
|
controlledBy: BillingProviderTypeFromJSON2(json["controlled_by"]),
|
|
11493
12120
|
copiedFromPlanId: json["copied_from_plan_id"] == null ? void 0 : json["copied_from_plan_id"],
|
|
11494
12121
|
createdAt: new Date(json["created_at"]),
|
|
12122
|
+
creditVisibility: json["credit_visibility"] == null ? void 0 : json["credit_visibility"].map(
|
|
12123
|
+
PlanCreditVisibilityFromJSON2
|
|
12124
|
+
),
|
|
11495
12125
|
credits: json["credits"].map(
|
|
11496
12126
|
BillingCreditResponseDataFromJSON2
|
|
11497
12127
|
),
|
|
@@ -15370,6 +16000,17 @@ function getResetCadencePeriod(cadence) {
|
|
|
15370
16000
|
function isPerLicenseGrant(grant) {
|
|
15371
16001
|
return grant.scaling === PlanCreditGrantScaling.PerLicense;
|
|
15372
16002
|
}
|
|
16003
|
+
function getDisplayedPlanCreditGrants(plan) {
|
|
16004
|
+
if (!plan) {
|
|
16005
|
+
return [];
|
|
16006
|
+
}
|
|
16007
|
+
const hidden = new Set(
|
|
16008
|
+
(plan.creditVisibility ?? []).filter((override) => !override.visible).map((override) => override.creditId)
|
|
16009
|
+
);
|
|
16010
|
+
return plan.includedCreditGrants.filter(
|
|
16011
|
+
(grant) => !hidden.has(grant.creditId)
|
|
16012
|
+
);
|
|
16013
|
+
}
|
|
15373
16014
|
function groupPlanCreditGrants(creditGrants) {
|
|
15374
16015
|
const map = creditGrants.reduce(
|
|
15375
16016
|
(acc, grant) => {
|
|
@@ -17015,7 +17656,7 @@ var reducer = (state, action) => {
|
|
|
17015
17656
|
// src/context/EmbedProvider.tsx
|
|
17016
17657
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
17017
17658
|
var getCustomHeaders = (sessionId) => ({
|
|
17018
|
-
"X-Schematic-Components-Version": "2.
|
|
17659
|
+
"X-Schematic-Components-Version": "2.34.0",
|
|
17019
17660
|
"X-Schematic-Session-ID": sessionId
|
|
17020
17661
|
});
|
|
17021
17662
|
var normalizeCurrencyFilter = (filter) => {
|
|
@@ -19859,7 +20500,9 @@ var Plan = ({
|
|
|
19859
20500
|
{ useSelectedPeriod: true },
|
|
19860
20501
|
currency
|
|
19861
20502
|
) || {};
|
|
19862
|
-
const credits = groupPlanCreditGrants(
|
|
20503
|
+
const credits = groupPlanCreditGrants(
|
|
20504
|
+
getDisplayedPlanCreditGrants(plan)
|
|
20505
|
+
);
|
|
19863
20506
|
const hasUsageBasedEntitlements = (plan.entitlements ?? []).some(
|
|
19864
20507
|
(entitlement) => !!entitlement.priceBehavior
|
|
19865
20508
|
);
|
|
@@ -20237,8 +20880,8 @@ var Quantity = ({
|
|
|
20237
20880
|
const cardPadding = settings.theme.card.padding / TEXT_BASE_SIZE;
|
|
20238
20881
|
const unitPriceFontSize = 0.875 * settings.theme.typography.text.fontSize;
|
|
20239
20882
|
const planCredits = (0, import_react26.useMemo)(
|
|
20240
|
-
() => groupPlanCreditGrants(selectedPlan
|
|
20241
|
-
[selectedPlan
|
|
20883
|
+
() => groupPlanCreditGrants(getDisplayedPlanCreditGrants(selectedPlan)),
|
|
20884
|
+
[selectedPlan]
|
|
20242
20885
|
);
|
|
20243
20886
|
const prorationBehavior = data?.checkoutSettings?.prorationBehavior;
|
|
20244
20887
|
const { billDate: renewalDate } = useNextBillDate();
|
|
@@ -21489,16 +22132,17 @@ var CheckoutDialog = ({ top }) => {
|
|
|
21489
22132
|
);
|
|
21490
22133
|
}, [availablePlans, checkoutState, selectedPlanId]);
|
|
21491
22134
|
const [shouldTrial, setShouldTrial] = (0, import_react29.useState)(false);
|
|
21492
|
-
const
|
|
21493
|
-
|
|
21494
|
-
|
|
22135
|
+
const displayedPlanCreditGrants = (0, import_react29.useMemo)(
|
|
22136
|
+
() => getDisplayedPlanCreditGrants(selectedPlan),
|
|
22137
|
+
[selectedPlan]
|
|
22138
|
+
);
|
|
22139
|
+
const planCreditGrants = (0, import_react29.useMemo)(
|
|
22140
|
+
() => mergeCompanyGrants(
|
|
22141
|
+
displayedPlanCreditGrants,
|
|
21495
22142
|
data?.company?.plan?.includedCreditGrants
|
|
21496
|
-
)
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
selectedPlan?.includedCreditGrants,
|
|
21500
|
-
data?.company?.plan?.includedCreditGrants
|
|
21501
|
-
]);
|
|
22143
|
+
),
|
|
22144
|
+
[displayedPlanCreditGrants, data?.company?.plan?.includedCreditGrants]
|
|
22145
|
+
);
|
|
21502
22146
|
const [autoTopupConfigs, setAutoTopupConfigs] = (0, import_react29.useState)(() => {
|
|
21503
22147
|
const initialConfigs = data?.company?.plan?.includedCreditGrants.reduce(
|
|
21504
22148
|
(acc, companyGrant) => {
|
|
@@ -21738,7 +22382,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
21738
22382
|
description: t2("Choose your base plan")
|
|
21739
22383
|
});
|
|
21740
22384
|
}
|
|
21741
|
-
const hasSelfServiceAutoTopup =
|
|
22385
|
+
const hasSelfServiceAutoTopup = displayedPlanCreditGrants.some(
|
|
21742
22386
|
(grant) => isSelfServiceAutoTopupAvailable(grant)
|
|
21743
22387
|
);
|
|
21744
22388
|
if (hasSelfServiceAutoTopup) {
|
|
@@ -21798,7 +22442,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
21798
22442
|
data?.customCheckoutFields,
|
|
21799
22443
|
collectTaxId,
|
|
21800
22444
|
availablePlans,
|
|
21801
|
-
|
|
22445
|
+
displayedPlanCreditGrants,
|
|
21802
22446
|
willTrialWithoutPaymentMethod,
|
|
21803
22447
|
payInAdvanceEntitlements,
|
|
21804
22448
|
addOns,
|
|
@@ -24438,8 +25082,8 @@ var SubscriptionSidebar = (0, import_react37.forwardRef)(
|
|
|
24438
25082
|
data?.company?.plan?.includedCreditGrants
|
|
24439
25083
|
]);
|
|
24440
25084
|
const planCredits = (0, import_react37.useMemo)(
|
|
24441
|
-
() => groupPlanCreditGrants(selectedPlan
|
|
24442
|
-
[selectedPlan
|
|
25085
|
+
() => groupPlanCreditGrants(getDisplayedPlanCreditGrants(selectedPlan)),
|
|
25086
|
+
[selectedPlan]
|
|
24443
25087
|
);
|
|
24444
25088
|
const { payInAdvanceEntitlements } = (0, import_react37.useMemo)(() => {
|
|
24445
25089
|
const payAsYouGoEntitlements = [];
|
|
@@ -29982,7 +30626,7 @@ var Plan2 = ({
|
|
|
29982
30626
|
const currentPlanIndex = plans.findIndex((plan2) => plan2.current);
|
|
29983
30627
|
const isActivePlan = plan.current && currentPeriod === selectedPeriod;
|
|
29984
30628
|
const { price: planPrice, currency: planCurrency } = getPlanPrice(plan, selectedPeriod, { useSelectedPeriod: true }, currency) || {};
|
|
29985
|
-
const credits = groupPlanCreditGrants(plan
|
|
30629
|
+
const credits = groupPlanCreditGrants(getDisplayedPlanCreditGrants(plan));
|
|
29986
30630
|
const hasUsageBasedEntitlements = (plan.entitlements ?? []).some(
|
|
29987
30631
|
(entitlement) => !!entitlement.priceBehavior
|
|
29988
30632
|
);
|