@schematichq/schematic-components 2.8.2 → 2.8.3

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.
@@ -2273,6 +2273,72 @@ function BillingProductPriceResponseDataFromJSONTyped(json, ignoreDiscriminator)
2273
2273
  };
2274
2274
  }
2275
2275
 
2276
+ // src/api/checkoutexternal/models/BillingProductPriceTierResponseData.ts
2277
+ function BillingProductPriceTierResponseDataFromJSON(json) {
2278
+ return BillingProductPriceTierResponseDataFromJSONTyped(json, false);
2279
+ }
2280
+ function BillingProductPriceTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
2281
+ if (json == null) {
2282
+ return json;
2283
+ }
2284
+ return {
2285
+ flatAmount: json["flat_amount"] == null ? void 0 : json["flat_amount"],
2286
+ perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
2287
+ perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
2288
+ upTo: json["up_to"] == null ? void 0 : json["up_to"]
2289
+ };
2290
+ }
2291
+
2292
+ // src/api/checkoutexternal/models/BillingPriceView.ts
2293
+ function BillingPriceViewFromJSON(json) {
2294
+ return BillingPriceViewFromJSONTyped(json, false);
2295
+ }
2296
+ function BillingPriceViewFromJSONTyped(json, ignoreDiscriminator) {
2297
+ if (json == null) {
2298
+ return json;
2299
+ }
2300
+ return {
2301
+ billingScheme: BillingPriceSchemeFromJSON(json["billing_scheme"]),
2302
+ createdAt: new Date(json["created_at"]),
2303
+ currency: json["currency"],
2304
+ id: json["id"],
2305
+ interval: BillingProductPriceIntervalFromJSON(json["interval"]),
2306
+ isActive: json["is_active"],
2307
+ meterEventName: json["meter_event_name"] == null ? void 0 : json["meter_event_name"],
2308
+ meterEventPayloadKey: json["meter_event_payload_key"] == null ? void 0 : json["meter_event_payload_key"],
2309
+ meterId: json["meter_id"] == null ? void 0 : json["meter_id"],
2310
+ packageSize: json["package_size"],
2311
+ price: json["price"],
2312
+ priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
2313
+ priceExternalId: json["price_external_id"],
2314
+ priceId: json["price_id"],
2315
+ priceTier: json["price_tier"].map(
2316
+ BillingProductPriceTierResponseDataFromJSON
2317
+ ),
2318
+ productExternalId: json["product_external_id"],
2319
+ productId: json["product_id"],
2320
+ productName: json["product_name"],
2321
+ providerType: BillingProviderTypeFromJSON(json["provider_type"]),
2322
+ tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"]),
2323
+ updatedAt: new Date(json["updated_at"]),
2324
+ usageType: BillingPriceUsageTypeFromJSON(json["usage_type"])
2325
+ };
2326
+ }
2327
+
2328
+ // src/api/checkoutexternal/models/CreditBundleCurrencyPrice.ts
2329
+ function CreditBundleCurrencyPriceFromJSON(json) {
2330
+ return CreditBundleCurrencyPriceFromJSONTyped(json, false);
2331
+ }
2332
+ function CreditBundleCurrencyPriceFromJSONTyped(json, ignoreDiscriminator) {
2333
+ if (json == null) {
2334
+ return json;
2335
+ }
2336
+ return {
2337
+ currency: json["currency"],
2338
+ price: json["price"] == null ? void 0 : BillingPriceViewFromJSON(json["price"])
2339
+ };
2340
+ }
2341
+
2276
2342
  // src/api/checkoutexternal/models/BillingCreditExpiryUnit.ts
2277
2343
  function BillingCreditExpiryUnitFromJSON(json) {
2278
2344
  return BillingCreditExpiryUnitFromJSONTyped(json, false);
@@ -2296,6 +2362,9 @@ function BillingCreditBundleViewFromJSONTyped(json, ignoreDiscriminator) {
2296
2362
  creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
2297
2363
  creditId: json["credit_id"],
2298
2364
  creditName: json["credit_name"],
2365
+ currencyPrices: json["currency_prices"] == null ? void 0 : json["currency_prices"].map(
2366
+ CreditBundleCurrencyPriceFromJSON
2367
+ ),
2299
2368
  expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
2300
2369
  expiryUnit: BillingCreditExpiryUnitFromJSON(json["expiry_unit"]),
2301
2370
  expiryUnitCount: json["expiry_unit_count"] == null ? void 0 : json["expiry_unit_count"],
@@ -2342,6 +2411,40 @@ function BillingCreditGrantZeroedOutReasonFromJSONTyped(json, ignoreDiscriminato
2342
2411
  return json;
2343
2412
  }
2344
2413
 
2414
+ // src/api/checkoutexternal/models/BillingPriceResponseData.ts
2415
+ function BillingPriceResponseDataFromJSON(json) {
2416
+ return BillingPriceResponseDataFromJSONTyped(json, false);
2417
+ }
2418
+ function BillingPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
2419
+ if (json == null) {
2420
+ return json;
2421
+ }
2422
+ return {
2423
+ currency: json["currency"],
2424
+ externalPriceId: json["external_price_id"],
2425
+ id: json["id"],
2426
+ interval: BillingProductPriceIntervalFromJSON(json["interval"]),
2427
+ price: json["price"],
2428
+ priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
2429
+ providerType: BillingProviderTypeFromJSON(json["provider_type"]),
2430
+ scheme: BillingPriceSchemeFromJSON(json["scheme"])
2431
+ };
2432
+ }
2433
+
2434
+ // src/api/checkoutexternal/models/CreditCurrencyPriceResponseData.ts
2435
+ function CreditCurrencyPriceResponseDataFromJSON(json) {
2436
+ return CreditCurrencyPriceResponseDataFromJSONTyped(json, false);
2437
+ }
2438
+ function CreditCurrencyPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
2439
+ if (json == null) {
2440
+ return json;
2441
+ }
2442
+ return {
2443
+ currency: json["currency"],
2444
+ price: json["price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["price"])
2445
+ };
2446
+ }
2447
+
2345
2448
  // src/api/checkoutexternal/models/BillingProductResponseData.ts
2346
2449
  function BillingProductResponseDataFromJSON(json) {
2347
2450
  return BillingProductResponseDataFromJSONTyped(json, false);
@@ -2367,26 +2470,6 @@ function BillingProductResponseDataFromJSONTyped(json, ignoreDiscriminator) {
2367
2470
  };
2368
2471
  }
2369
2472
 
2370
- // src/api/checkoutexternal/models/BillingPriceResponseData.ts
2371
- function BillingPriceResponseDataFromJSON(json) {
2372
- return BillingPriceResponseDataFromJSONTyped(json, false);
2373
- }
2374
- function BillingPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
2375
- if (json == null) {
2376
- return json;
2377
- }
2378
- return {
2379
- currency: json["currency"],
2380
- externalPriceId: json["external_price_id"],
2381
- id: json["id"],
2382
- interval: BillingProductPriceIntervalFromJSON(json["interval"]),
2383
- price: json["price"],
2384
- priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
2385
- providerType: BillingProviderTypeFromJSON(json["provider_type"]),
2386
- scheme: BillingPriceSchemeFromJSON(json["scheme"])
2387
- };
2388
- }
2389
-
2390
2473
  // src/api/checkoutexternal/models/BillingCreditRolloverPolicy.ts
2391
2474
  function BillingCreditRolloverPolicyFromJSON(json) {
2392
2475
  return BillingCreditRolloverPolicyFromJSONTyped(json, false);
@@ -2407,6 +2490,9 @@ function BillingCreditResponseDataFromJSONTyped(json, ignoreDiscriminator) {
2407
2490
  burnStrategy: BillingCreditBurnStrategyFromJSON(json["burn_strategy"]),
2408
2491
  costEditable: json["cost_editable"],
2409
2492
  createdAt: new Date(json["created_at"]),
2493
+ currencyPrices: json["currency_prices"].map(
2494
+ CreditCurrencyPriceResponseDataFromJSON
2495
+ ),
2410
2496
  defaultExpiryUnit: BillingCreditExpiryUnitFromJSON(
2411
2497
  json["default_expiry_unit"]
2412
2498
  ),
@@ -2426,58 +2512,6 @@ function BillingCreditResponseDataFromJSONTyped(json, ignoreDiscriminator) {
2426
2512
  };
2427
2513
  }
2428
2514
 
2429
- // src/api/checkoutexternal/models/BillingProductPriceTierResponseData.ts
2430
- function BillingProductPriceTierResponseDataFromJSON(json) {
2431
- return BillingProductPriceTierResponseDataFromJSONTyped(json, false);
2432
- }
2433
- function BillingProductPriceTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
2434
- if (json == null) {
2435
- return json;
2436
- }
2437
- return {
2438
- flatAmount: json["flat_amount"] == null ? void 0 : json["flat_amount"],
2439
- perUnitPrice: json["per_unit_price"] == null ? void 0 : json["per_unit_price"],
2440
- perUnitPriceDecimal: json["per_unit_price_decimal"] == null ? void 0 : json["per_unit_price_decimal"],
2441
- upTo: json["up_to"] == null ? void 0 : json["up_to"]
2442
- };
2443
- }
2444
-
2445
- // src/api/checkoutexternal/models/BillingPriceView.ts
2446
- function BillingPriceViewFromJSON(json) {
2447
- return BillingPriceViewFromJSONTyped(json, false);
2448
- }
2449
- function BillingPriceViewFromJSONTyped(json, ignoreDiscriminator) {
2450
- if (json == null) {
2451
- return json;
2452
- }
2453
- return {
2454
- billingScheme: BillingPriceSchemeFromJSON(json["billing_scheme"]),
2455
- createdAt: new Date(json["created_at"]),
2456
- currency: json["currency"],
2457
- id: json["id"],
2458
- interval: BillingProductPriceIntervalFromJSON(json["interval"]),
2459
- isActive: json["is_active"],
2460
- meterEventName: json["meter_event_name"] == null ? void 0 : json["meter_event_name"],
2461
- meterEventPayloadKey: json["meter_event_payload_key"] == null ? void 0 : json["meter_event_payload_key"],
2462
- meterId: json["meter_id"] == null ? void 0 : json["meter_id"],
2463
- packageSize: json["package_size"],
2464
- price: json["price"],
2465
- priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
2466
- priceExternalId: json["price_external_id"],
2467
- priceId: json["price_id"],
2468
- priceTier: json["price_tier"].map(
2469
- BillingProductPriceTierResponseDataFromJSON
2470
- ),
2471
- productExternalId: json["product_external_id"],
2472
- productId: json["product_id"],
2473
- productName: json["product_name"],
2474
- providerType: BillingProviderTypeFromJSON(json["provider_type"]),
2475
- tiersMode: json["tiers_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tiers_mode"]),
2476
- updatedAt: new Date(json["updated_at"]),
2477
- usageType: BillingPriceUsageTypeFromJSON(json["usage_type"])
2478
- };
2479
- }
2480
-
2481
2515
  // src/api/checkoutexternal/models/BillingCreditView.ts
2482
2516
  function BillingCreditViewFromJSON(json) {
2483
2517
  return BillingCreditViewFromJSONTyped(json, false);
@@ -3691,6 +3725,21 @@ function PlanControlledByTypeFromJSONTyped(json, ignoreDiscriminator) {
3691
3725
  return json;
3692
3726
  }
3693
3727
 
3728
+ // src/api/checkoutexternal/models/EntitlementCurrencyPricesResponseData.ts
3729
+ function EntitlementCurrencyPricesResponseDataFromJSON(json) {
3730
+ return EntitlementCurrencyPricesResponseDataFromJSONTyped(json, false);
3731
+ }
3732
+ function EntitlementCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
3733
+ if (json == null) {
3734
+ return json;
3735
+ }
3736
+ return {
3737
+ currency: json["currency"],
3738
+ monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["monthly_price"]),
3739
+ yearlyPrice: json["yearly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["yearly_price"])
3740
+ };
3741
+ }
3742
+
3694
3743
  // src/api/checkoutexternal/models/EntitlementPriceBehavior.ts
3695
3744
  var EntitlementPriceBehavior = {
3696
3745
  CreditBurndown: "credit_burndown",
@@ -3746,6 +3795,9 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
3746
3795
  billingThreshold: json["billing_threshold"] == null ? void 0 : json["billing_threshold"],
3747
3796
  consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
3748
3797
  createdAt: new Date(json["created_at"]),
3798
+ currencyPrices: json["currency_prices"].map(
3799
+ EntitlementCurrencyPricesResponseDataFromJSON
3800
+ ),
3749
3801
  environmentId: json["environment_id"],
3750
3802
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
3751
3803
  featureId: json["feature_id"],
@@ -3771,6 +3823,37 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
3771
3823
  };
3772
3824
  }
3773
3825
 
3826
+ // src/api/checkoutexternal/models/CustomPlanConfig.ts
3827
+ function CustomPlanConfigFromJSON(json) {
3828
+ return CustomPlanConfigFromJSONTyped(json, false);
3829
+ }
3830
+ function CustomPlanConfigFromJSONTyped(json, ignoreDiscriminator) {
3831
+ if (json == null) {
3832
+ return json;
3833
+ }
3834
+ return {
3835
+ ctaText: json["cta_text"],
3836
+ ctaWebSite: json["cta_web_site"],
3837
+ priceText: json["price_text"]
3838
+ };
3839
+ }
3840
+
3841
+ // src/api/checkoutexternal/models/PlanCurrencyPricesResponseData.ts
3842
+ function PlanCurrencyPricesResponseDataFromJSON(json) {
3843
+ return PlanCurrencyPricesResponseDataFromJSONTyped(json, false);
3844
+ }
3845
+ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
3846
+ if (json == null) {
3847
+ return json;
3848
+ }
3849
+ return {
3850
+ currency: json["currency"],
3851
+ monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["monthly_price"]),
3852
+ oneTimePrice: json["one_time_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["one_time_price"]),
3853
+ yearlyPrice: json["yearly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON(json["yearly_price"])
3854
+ };
3855
+ }
3856
+
3774
3857
  // src/api/checkoutexternal/models/PlanVersionStatus.ts
3775
3858
  function PlanVersionStatusFromJSON(json) {
3776
3859
  return PlanVersionStatusFromJSONTyped(json, false);
@@ -3802,21 +3885,6 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
3802
3885
  };
3803
3886
  }
3804
3887
 
3805
- // src/api/checkoutexternal/models/CustomPlanConfig.ts
3806
- function CustomPlanConfigFromJSON(json) {
3807
- return CustomPlanConfigFromJSONTyped(json, false);
3808
- }
3809
- function CustomPlanConfigFromJSONTyped(json, ignoreDiscriminator) {
3810
- if (json == null) {
3811
- return json;
3812
- }
3813
- return {
3814
- ctaText: json["cta_text"],
3815
- ctaWebSite: json["cta_web_site"],
3816
- priceText: json["price_text"]
3817
- };
3818
- }
3819
-
3820
3888
  // src/api/checkoutexternal/models/CreditUsageAggregation.ts
3821
3889
  function CreditUsageAggregationFromJSON(json) {
3822
3890
  return CreditUsageAggregationFromJSONTyped(json, false);
@@ -3923,6 +3991,9 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
3923
3991
  compatiblePlanIds: json["compatible_plan_ids"],
3924
3992
  controlledBy: PlanControlledByTypeFromJSON(json["controlled_by"]),
3925
3993
  createdAt: new Date(json["created_at"]),
3994
+ currencyPrices: json["currency_prices"].map(
3995
+ PlanCurrencyPricesResponseDataFromJSON
3996
+ ),
3926
3997
  current: json["current"],
3927
3998
  custom: json["custom"],
3928
3999
  customPlanConfig: json["custom_plan_config"] == null ? void 0 : CustomPlanConfigFromJSON(json["custom_plan_config"]),
@@ -4077,6 +4148,9 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
4077
4148
  companyCount: json["company_count"],
4078
4149
  controlledBy: PlanControlledByTypeFromJSON(json["controlled_by"]),
4079
4150
  createdAt: new Date(json["created_at"]),
4151
+ currencyPrices: json["currency_prices"].map(
4152
+ PlanCurrencyPricesResponseDataFromJSON
4153
+ ),
4080
4154
  description: json["description"],
4081
4155
  draftVersion: json["draft_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["draft_version"]),
4082
4156
  features: json["features"].map(
@@ -4154,6 +4228,7 @@ function CreditCompanyGrantViewFromJSONTyped(json, ignoreDiscriminator) {
4154
4228
  creditDescription: json["credit_description"],
4155
4229
  creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
4156
4230
  creditName: json["credit_name"],
4231
+ currency: json["currency"] == null ? void 0 : json["currency"],
4157
4232
  exhaustedAt: json["exhausted_at"] == null ? void 0 : new Date(json["exhausted_at"]),
4158
4233
  expiresAt: json["expires_at"] == null ? void 0 : new Date(json["expires_at"]),
4159
4234
  expiryType: json["expiry_type"] == null ? void 0 : BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
@@ -9331,6 +9406,7 @@ var SUPPORT_NOTICE_KEY = "__i18next_supportNoticeShown";
9331
9406
  var getSupportNoticeShown = () => {
9332
9407
  if (typeof globalThis !== "undefined" && !!globalThis[SUPPORT_NOTICE_KEY]) return true;
9333
9408
  if (typeof process !== "undefined" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE) return true;
9409
+ if (typeof process !== "undefined" && process.env && false) return true;
9334
9410
  return false;
9335
9411
  };
9336
9412
  var setSupportNoticeShown = () => {
@@ -11305,39 +11381,6 @@ function BillingCreditExpiryUnitFromJSONTyped8(json, ignoreDiscriminator) {
11305
11381
  return json;
11306
11382
  }
11307
11383
 
11308
- // src/api/componentspublic/models/BillingProviderType.ts
11309
- function BillingProviderTypeFromJSON2(json) {
11310
- return BillingProviderTypeFromJSONTyped13(json, false);
11311
- }
11312
- function BillingProviderTypeFromJSONTyped13(json, ignoreDiscriminator) {
11313
- return json;
11314
- }
11315
-
11316
- // src/api/componentspublic/models/BillingProductResponseData.ts
11317
- function BillingProductResponseDataFromJSON2(json) {
11318
- return BillingProductResponseDataFromJSONTyped5(json, false);
11319
- }
11320
- function BillingProductResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
11321
- if (json == null) {
11322
- return json;
11323
- }
11324
- return {
11325
- accountId: json["account_id"],
11326
- createdAt: new Date(json["created_at"]),
11327
- currency: json["currency"] == null ? void 0 : json["currency"],
11328
- environmentId: json["environment_id"],
11329
- externalId: json["external_id"],
11330
- isActive: json["is_active"],
11331
- name: json["name"],
11332
- price: json["price"],
11333
- priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
11334
- productId: json["product_id"],
11335
- providerType: BillingProviderTypeFromJSON2(json["provider_type"]),
11336
- quantity: json["quantity"],
11337
- updatedAt: new Date(json["updated_at"])
11338
- };
11339
- }
11340
-
11341
11384
  // src/api/componentspublic/models/BillingProductPriceInterval.ts
11342
11385
  function BillingProductPriceIntervalFromJSON2(json) {
11343
11386
  return BillingProductPriceIntervalFromJSONTyped5(json, false);
@@ -11346,6 +11389,14 @@ function BillingProductPriceIntervalFromJSONTyped5(json, ignoreDiscriminator) {
11346
11389
  return json;
11347
11390
  }
11348
11391
 
11392
+ // src/api/componentspublic/models/BillingProviderType.ts
11393
+ function BillingProviderTypeFromJSON2(json) {
11394
+ return BillingProviderTypeFromJSONTyped13(json, false);
11395
+ }
11396
+ function BillingProviderTypeFromJSONTyped13(json, ignoreDiscriminator) {
11397
+ return json;
11398
+ }
11399
+
11349
11400
  // src/api/componentspublic/models/BillingPriceScheme.ts
11350
11401
  function BillingPriceSchemeFromJSON2(json) {
11351
11402
  return BillingPriceSchemeFromJSONTyped6(json, false);
@@ -11356,9 +11407,9 @@ function BillingPriceSchemeFromJSONTyped6(json, ignoreDiscriminator) {
11356
11407
 
11357
11408
  // src/api/componentspublic/models/BillingPriceResponseData.ts
11358
11409
  function BillingPriceResponseDataFromJSON2(json) {
11359
- return BillingPriceResponseDataFromJSONTyped7(json, false);
11410
+ return BillingPriceResponseDataFromJSONTyped9(json, false);
11360
11411
  }
11361
- function BillingPriceResponseDataFromJSONTyped7(json, ignoreDiscriminator) {
11412
+ function BillingPriceResponseDataFromJSONTyped9(json, ignoreDiscriminator) {
11362
11413
  if (json == null) {
11363
11414
  return json;
11364
11415
  }
@@ -11374,6 +11425,45 @@ function BillingPriceResponseDataFromJSONTyped7(json, ignoreDiscriminator) {
11374
11425
  };
11375
11426
  }
11376
11427
 
11428
+ // src/api/componentspublic/models/CreditCurrencyPriceResponseData.ts
11429
+ function CreditCurrencyPriceResponseDataFromJSON2(json) {
11430
+ return CreditCurrencyPriceResponseDataFromJSONTyped3(json, false);
11431
+ }
11432
+ function CreditCurrencyPriceResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11433
+ if (json == null) {
11434
+ return json;
11435
+ }
11436
+ return {
11437
+ currency: json["currency"],
11438
+ price: json["price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["price"])
11439
+ };
11440
+ }
11441
+
11442
+ // src/api/componentspublic/models/BillingProductResponseData.ts
11443
+ function BillingProductResponseDataFromJSON2(json) {
11444
+ return BillingProductResponseDataFromJSONTyped5(json, false);
11445
+ }
11446
+ function BillingProductResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
11447
+ if (json == null) {
11448
+ return json;
11449
+ }
11450
+ return {
11451
+ accountId: json["account_id"],
11452
+ createdAt: new Date(json["created_at"]),
11453
+ currency: json["currency"] == null ? void 0 : json["currency"],
11454
+ environmentId: json["environment_id"],
11455
+ externalId: json["external_id"],
11456
+ isActive: json["is_active"],
11457
+ name: json["name"],
11458
+ price: json["price"],
11459
+ priceDecimal: json["price_decimal"] == null ? void 0 : json["price_decimal"],
11460
+ productId: json["product_id"],
11461
+ providerType: BillingProviderTypeFromJSON2(json["provider_type"]),
11462
+ quantity: json["quantity"],
11463
+ updatedAt: new Date(json["updated_at"])
11464
+ };
11465
+ }
11466
+
11377
11467
  // src/api/componentspublic/models/BillingCreditRolloverPolicy.ts
11378
11468
  function BillingCreditRolloverPolicyFromJSON2(json) {
11379
11469
  return BillingCreditRolloverPolicyFromJSONTyped4(json, false);
@@ -11394,6 +11484,9 @@ function BillingCreditResponseDataFromJSONTyped4(json, ignoreDiscriminator) {
11394
11484
  burnStrategy: BillingCreditBurnStrategyFromJSON2(json["burn_strategy"]),
11395
11485
  costEditable: json["cost_editable"],
11396
11486
  createdAt: new Date(json["created_at"]),
11487
+ currencyPrices: json["currency_prices"].map(
11488
+ CreditCurrencyPriceResponseDataFromJSON2
11489
+ ),
11397
11490
  defaultExpiryUnit: BillingCreditExpiryUnitFromJSON2(
11398
11491
  json["default_expiry_unit"]
11399
11492
  ),
@@ -11447,9 +11540,9 @@ function BillingTiersModeFromJSONTyped4(json, ignoreDiscriminator) {
11447
11540
 
11448
11541
  // src/api/componentspublic/models/BillingPriceView.ts
11449
11542
  function BillingPriceViewFromJSON2(json) {
11450
- return BillingPriceViewFromJSONTyped6(json, false);
11543
+ return BillingPriceViewFromJSONTyped8(json, false);
11451
11544
  }
11452
- function BillingPriceViewFromJSONTyped6(json, ignoreDiscriminator) {
11545
+ function BillingPriceViewFromJSONTyped8(json, ignoreDiscriminator) {
11453
11546
  if (json == null) {
11454
11547
  return json;
11455
11548
  }
@@ -11662,6 +11755,21 @@ function CustomPlanConfigFromJSONTyped3(json, ignoreDiscriminator) {
11662
11755
  };
11663
11756
  }
11664
11757
 
11758
+ // src/api/componentspublic/models/EntitlementCurrencyPricesResponseData.ts
11759
+ function EntitlementCurrencyPricesResponseDataFromJSON2(json) {
11760
+ return EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, false);
11761
+ }
11762
+ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
11763
+ if (json == null) {
11764
+ return json;
11765
+ }
11766
+ return {
11767
+ currency: json["currency"],
11768
+ monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["monthly_price"]),
11769
+ yearlyPrice: json["yearly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["yearly_price"])
11770
+ };
11771
+ }
11772
+
11665
11773
  // src/api/componentspublic/models/EntitlementPriceBehavior.ts
11666
11774
  function EntitlementPriceBehaviorFromJSON2(json) {
11667
11775
  return EntitlementPriceBehaviorFromJSONTyped5(json, false);
@@ -11992,6 +12100,22 @@ function PlanCreditGrantViewFromJSONTyped4(json, ignoreDiscriminator) {
11992
12100
  };
11993
12101
  }
11994
12102
 
12103
+ // src/api/componentspublic/models/PlanCurrencyPricesResponseData.ts
12104
+ function PlanCurrencyPricesResponseDataFromJSON2(json) {
12105
+ return PlanCurrencyPricesResponseDataFromJSONTyped5(json, false);
12106
+ }
12107
+ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
12108
+ if (json == null) {
12109
+ return json;
12110
+ }
12111
+ return {
12112
+ currency: json["currency"],
12113
+ monthlyPrice: json["monthly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["monthly_price"]),
12114
+ oneTimePrice: json["one_time_price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["one_time_price"]),
12115
+ yearlyPrice: json["yearly_price"] == null ? void 0 : BillingPriceResponseDataFromJSON2(json["yearly_price"])
12116
+ };
12117
+ }
12118
+
11995
12119
  // src/api/componentspublic/models/PlanType.ts
11996
12120
  function PlanTypeFromJSON2(json) {
11997
12121
  return PlanTypeFromJSONTyped7(json, false);
@@ -12032,6 +12156,9 @@ function PlanEntitlementResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
12032
12156
  billingThreshold: json["billing_threshold"] == null ? void 0 : json["billing_threshold"],
12033
12157
  consumptionRate: json["consumption_rate"] == null ? void 0 : json["consumption_rate"],
12034
12158
  createdAt: new Date(json["created_at"]),
12159
+ currencyPrices: json["currency_prices"].map(
12160
+ EntitlementCurrencyPricesResponseDataFromJSON2
12161
+ ),
12035
12162
  environmentId: json["environment_id"],
12036
12163
  feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
12037
12164
  featureId: json["feature_id"],
@@ -12105,6 +12232,9 @@ function PlanViewPublicResponseDataFromJSONTyped(json, ignoreDiscriminator) {
12105
12232
  compatiblePlanIds: json["compatible_plan_ids"],
12106
12233
  controlledBy: PlanControlledByTypeFromJSON2(json["controlled_by"]),
12107
12234
  createdAt: new Date(json["created_at"]),
12235
+ currencyPrices: json["currency_prices"].map(
12236
+ PlanCurrencyPricesResponseDataFromJSON2
12237
+ ),
12108
12238
  custom: json["custom"],
12109
12239
  customPlanConfig: json["custom_plan_config"] == null ? void 0 : CustomPlanConfigFromJSON2(json["custom_plan_config"]),
12110
12240
  description: json["description"],
@@ -12416,7 +12546,7 @@ var reducer = (state, action) => {
12416
12546
  // src/context/EmbedProvider.tsx
12417
12547
  var import_jsx_runtime2 = require("react/jsx-runtime");
12418
12548
  var getCustomHeaders = (sessionId) => ({
12419
- "X-Schematic-Components-Version": "2.8.2",
12549
+ "X-Schematic-Components-Version": "2.8.3",
12420
12550
  "X-Schematic-Session-ID": sessionId
12421
12551
  });
12422
12552
  var EmbedProvider = ({
@@ -12804,6 +12934,7 @@ var EmbedProvider = ({
12804
12934
  value: {
12805
12935
  isPending: state.isPending,
12806
12936
  stale: state.stale,
12937
+ accessToken: state.accessToken,
12807
12938
  data: state.data,
12808
12939
  error: state.error,
12809
12940
  settings: state.settings,
@@ -15740,9 +15871,7 @@ var CheckoutDialog = ({ top }) => {
15740
15871
  (available) => available.id === addOnId
15741
15872
  );
15742
15873
  if (!availableAddOn) return [];
15743
- return availableAddOn.entitlements.filter(
15744
- (entitlement) => entitlement.priceBehavior === EntitlementPriceBehavior.PayInAdvance
15745
- ).map((entitlement) => ({
15874
+ return availableAddOn.entitlements.filter((entitlement) => !!entitlement.priceBehavior).map((entitlement) => ({
15746
15875
  ...entitlement,
15747
15876
  allocation: entitlement.valueNumeric || 0,
15748
15877
  usage: 0,
@@ -17699,18 +17828,18 @@ var SubscriptionSidebar = (0, import_react39.forwardRef)(
17699
17828
  usageBasedEntitlements,
17700
17829
  addOnUsageBasedEntitlements
17701
17830
  ]);
17702
- const selectedAddOnsWithCost = (0, import_react39.useMemo)(
17831
+ const selectedAddOnsWithPrice = (0, import_react39.useMemo)(
17703
17832
  () => addOns.filter(
17704
- (addOn) => addOn.isSelected && getPlanPrice(addOn)?.price
17833
+ (addOn) => addOn.isSelected && typeof getPlanPrice(addOn)?.price === "number"
17705
17834
  ),
17706
17835
  [addOns]
17707
17836
  );
17708
17837
  const { removedAddOns, willAddOnsChange } = (0, import_react39.useMemo)(() => {
17709
- const addedAddOns = selectedAddOnsWithCost.filter(
17710
- (selected) => getPlanPrice(selected)?.price && !currentAddOns.some((current) => selected.id === current.id)
17838
+ const addedAddOns = selectedAddOnsWithPrice.filter(
17839
+ (selected) => !currentAddOns.some((current) => selected.id === current.id)
17711
17840
  );
17712
17841
  const removedAddOns2 = currentAddOns.filter(
17713
- (current) => current.planPrice && current.planPeriod !== "one-time" && !selectedAddOnsWithCost.some(
17842
+ (current) => current.planPrice && current.planPeriod !== "one-time" && !selectedAddOnsWithPrice.some(
17714
17843
  (selected) => current.id === selected.id
17715
17844
  )
17716
17845
  );
@@ -17720,7 +17849,7 @@ var SubscriptionSidebar = (0, import_react39.forwardRef)(
17720
17849
  removedAddOns: removedAddOns2,
17721
17850
  willAddOnsChange: willAddOnsChange2
17722
17851
  };
17723
- }, [currentAddOns, selectedAddOnsWithCost]);
17852
+ }, [currentAddOns, selectedAddOnsWithPrice]);
17724
17853
  const addedCreditBundles = (0, import_react39.useMemo)(
17725
17854
  () => creditBundles.filter((bundle) => bundle.count > 0),
17726
17855
  [creditBundles]
@@ -18164,7 +18293,7 @@ var SubscriptionSidebar = (0, import_react39.forwardRef)(
18164
18293
  }
18165
18294
  )
18166
18295
  ] }),
18167
- (willAddOnsChange || selectedAddOnsWithCost.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
18296
+ (willAddOnsChange || selectedAddOnsWithPrice.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Flex, { $flexDirection: "column", $gap: "0.5rem", $marginBottom: "1.5rem", children: [
18168
18297
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Box, { $opacity: "0.625", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Text, { $size: 14, children: t2("Add-ons") }) }),
18169
18298
  removedAddOns.map((addOn, index) => {
18170
18299
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
@@ -18193,7 +18322,7 @@ var SubscriptionSidebar = (0, import_react39.forwardRef)(
18193
18322
  index
18194
18323
  );
18195
18324
  }),
18196
- selectedAddOnsWithCost.map((addOn, index) => {
18325
+ selectedAddOnsWithPrice.map((addOn, index) => {
18197
18326
  const { price: addOnPrice, currency: addOnCurrency } = getAddOnPrice(addOn, planPeriod) || {};
18198
18327
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
18199
18328
  Flex,