@schematichq/schematic-components 2.34.0 → 2.35.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 +7992 -4529
- package/dist/schematic-components-elements.d.ts +723 -0
- package/dist/schematic-components-elements.esm.js +8038 -4546
- package/dist/schematic-components.browser.cjs.js +238 -38
- package/dist/schematic-components.browser.esm.js +238 -38
- package/dist/schematic-components.cjs.js +238 -38
- package/dist/schematic-components.d.ts +296 -4
- package/dist/schematic-components.esm.js +238 -38
- package/package.json +6 -6
|
@@ -4916,6 +4916,24 @@ function PreviewObjectResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4916
4916
|
};
|
|
4917
4917
|
}
|
|
4918
4918
|
|
|
4919
|
+
// src/api/checkoutexternal/models/BillingPlanCreditGrantWarningTierResponseData.ts
|
|
4920
|
+
function BillingPlanCreditGrantWarningTierResponseDataFromJSON(json) {
|
|
4921
|
+
return BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(
|
|
4922
|
+
json,
|
|
4923
|
+
false
|
|
4924
|
+
);
|
|
4925
|
+
}
|
|
4926
|
+
function BillingPlanCreditGrantWarningTierResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4927
|
+
if (json == null) {
|
|
4928
|
+
return json;
|
|
4929
|
+
}
|
|
4930
|
+
return {
|
|
4931
|
+
id: json["id"],
|
|
4932
|
+
key: json["key"],
|
|
4933
|
+
value: json["value"]
|
|
4934
|
+
};
|
|
4935
|
+
}
|
|
4936
|
+
|
|
4919
4937
|
// src/api/checkoutexternal/models/BillingPlanCreditGrantResponseData.ts
|
|
4920
4938
|
function BillingPlanCreditGrantResponseDataFromJSON(json) {
|
|
4921
4939
|
return BillingPlanCreditGrantResponseDataFromJSONTyped(json, false);
|
|
@@ -4976,7 +4994,10 @@ function BillingPlanCreditGrantResponseDataFromJSONTyped(json, ignoreDiscriminat
|
|
|
4976
4994
|
tierMode: json["tier_mode"] == null ? void 0 : BillingTiersModeFromJSON(json["tier_mode"]),
|
|
4977
4995
|
unitPrice: json["unit_price"] == null ? void 0 : json["unit_price"],
|
|
4978
4996
|
unitPriceDecimal: json["unit_price_decimal"] == null ? void 0 : json["unit_price_decimal"],
|
|
4979
|
-
updatedAt: new Date(json["updated_at"])
|
|
4997
|
+
updatedAt: new Date(json["updated_at"]),
|
|
4998
|
+
warningTiers: json["warning_tiers"].map(
|
|
4999
|
+
BillingPlanCreditGrantWarningTierResponseDataFromJSON
|
|
5000
|
+
)
|
|
4980
5001
|
};
|
|
4981
5002
|
}
|
|
4982
5003
|
|
|
@@ -5833,6 +5854,82 @@ function ChangeSubscriptionRequestBodyToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5833
5854
|
};
|
|
5834
5855
|
}
|
|
5835
5856
|
|
|
5857
|
+
// src/api/checkoutexternal/models/CheckoutChargeTiming.ts
|
|
5858
|
+
function CheckoutChargeTimingFromJSON(json) {
|
|
5859
|
+
return CheckoutChargeTimingFromJSONTyped(json, false);
|
|
5860
|
+
}
|
|
5861
|
+
function CheckoutChargeTimingFromJSONTyped(json, ignoreDiscriminator) {
|
|
5862
|
+
return json;
|
|
5863
|
+
}
|
|
5864
|
+
|
|
5865
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotDiscount.ts
|
|
5866
|
+
function CheckoutPriceSnapshotDiscountFromJSON(json) {
|
|
5867
|
+
return CheckoutPriceSnapshotDiscountFromJSONTyped(json, false);
|
|
5868
|
+
}
|
|
5869
|
+
function CheckoutPriceSnapshotDiscountFromJSONTyped(json, ignoreDiscriminator) {
|
|
5870
|
+
if (json == null) {
|
|
5871
|
+
return json;
|
|
5872
|
+
}
|
|
5873
|
+
return {
|
|
5874
|
+
amountOff: json["amount_off"] == null ? void 0 : json["amount_off"],
|
|
5875
|
+
couponExternalId: json["coupon_external_id"],
|
|
5876
|
+
couponName: json["coupon_name"],
|
|
5877
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
5878
|
+
customerFacingCode: json["customer_facing_code"] == null ? void 0 : json["customer_facing_code"],
|
|
5879
|
+
duration: json["duration"],
|
|
5880
|
+
durationInMonths: json["duration_in_months"] == null ? void 0 : json["duration_in_months"],
|
|
5881
|
+
percentOff: json["percent_off"] == null ? void 0 : json["percent_off"],
|
|
5882
|
+
promoCodeExternalId: json["promo_code_external_id"] == null ? void 0 : json["promo_code_external_id"]
|
|
5883
|
+
};
|
|
5884
|
+
}
|
|
5885
|
+
|
|
5886
|
+
// src/api/checkoutexternal/models/ProrationLineKind.ts
|
|
5887
|
+
function ProrationLineKindFromJSON(json) {
|
|
5888
|
+
return ProrationLineKindFromJSONTyped(json, false);
|
|
5889
|
+
}
|
|
5890
|
+
function ProrationLineKindFromJSONTyped(json, ignoreDiscriminator) {
|
|
5891
|
+
return json;
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5894
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProrationLine.ts
|
|
5895
|
+
function CheckoutPriceSnapshotProrationLineFromJSON(json) {
|
|
5896
|
+
return CheckoutPriceSnapshotProrationLineFromJSONTyped(json, false);
|
|
5897
|
+
}
|
|
5898
|
+
function CheckoutPriceSnapshotProrationLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
5899
|
+
if (json == null) {
|
|
5900
|
+
return json;
|
|
5901
|
+
}
|
|
5902
|
+
return {
|
|
5903
|
+
amount: json["amount"],
|
|
5904
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
5905
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
5906
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
5907
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
5908
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
5909
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
5910
|
+
};
|
|
5911
|
+
}
|
|
5912
|
+
|
|
5913
|
+
// src/api/checkoutexternal/models/CheckoutPriceSnapshotProration.ts
|
|
5914
|
+
function CheckoutPriceSnapshotProrationFromJSON(json) {
|
|
5915
|
+
return CheckoutPriceSnapshotProrationFromJSONTyped(json, false);
|
|
5916
|
+
}
|
|
5917
|
+
function CheckoutPriceSnapshotProrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
5918
|
+
if (json == null) {
|
|
5919
|
+
return json;
|
|
5920
|
+
}
|
|
5921
|
+
return {
|
|
5922
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
5923
|
+
charge: json["charge"],
|
|
5924
|
+
credit: json["credit"],
|
|
5925
|
+
lines: json["lines"].map(
|
|
5926
|
+
CheckoutPriceSnapshotProrationLineFromJSON
|
|
5927
|
+
),
|
|
5928
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
5929
|
+
total: json["total"]
|
|
5930
|
+
};
|
|
5931
|
+
}
|
|
5932
|
+
|
|
5836
5933
|
// src/api/checkoutexternal/models/CheckoutPriceSnapshot.ts
|
|
5837
5934
|
function CheckoutPriceSnapshotFromJSON(json) {
|
|
5838
5935
|
return CheckoutPriceSnapshotFromJSONTyped(json, false);
|
|
@@ -5844,6 +5941,12 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5844
5941
|
return {
|
|
5845
5942
|
amountOff: json["amount_off"],
|
|
5846
5943
|
currency: CurrencyFromJSON(json["currency"]),
|
|
5944
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
5945
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
5946
|
+
discountAmount: json["discount_amount"],
|
|
5947
|
+
discounts: json["discounts"].map(
|
|
5948
|
+
CheckoutPriceSnapshotDiscountFromJSON
|
|
5949
|
+
),
|
|
5847
5950
|
dueNow: json["due_now"],
|
|
5848
5951
|
isScheduledDowngrade: json["is_scheduled_downgrade"],
|
|
5849
5952
|
newCharges: json["new_charges"],
|
|
@@ -5856,6 +5959,7 @@ function CheckoutPriceSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5856
5959
|
pricedAt: new Date(json["priced_at"]),
|
|
5857
5960
|
promoCodeApplied: json["promo_code_applied"],
|
|
5858
5961
|
proration: json["proration"],
|
|
5962
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : CheckoutPriceSnapshotProrationFromJSON(json["proration_detail"]),
|
|
5859
5963
|
scheduledChangeTime: json["scheduled_change_time"] == null ? void 0 : new Date(json["scheduled_change_time"]),
|
|
5860
5964
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
5861
5965
|
totalPerBillingPeriod: json["total_per_billing_period"],
|
|
@@ -6110,6 +6214,22 @@ function CheckoutUnsubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6110
6214
|
};
|
|
6111
6215
|
}
|
|
6112
6216
|
|
|
6217
|
+
// src/api/checkoutexternal/models/Collector.ts
|
|
6218
|
+
function CollectorFromJSON(json) {
|
|
6219
|
+
return CollectorFromJSONTyped(json, false);
|
|
6220
|
+
}
|
|
6221
|
+
function CollectorFromJSONTyped(json, ignoreDiscriminator) {
|
|
6222
|
+
return json;
|
|
6223
|
+
}
|
|
6224
|
+
|
|
6225
|
+
// src/api/checkoutexternal/models/PaymentGating.ts
|
|
6226
|
+
function PaymentGatingFromJSON(json) {
|
|
6227
|
+
return PaymentGatingFromJSONTyped(json, false);
|
|
6228
|
+
}
|
|
6229
|
+
function PaymentGatingFromJSONTyped(json, ignoreDiscriminator) {
|
|
6230
|
+
return json;
|
|
6231
|
+
}
|
|
6232
|
+
|
|
6113
6233
|
// src/api/checkoutexternal/models/CompanyBillingProfileResponseData.ts
|
|
6114
6234
|
function CompanyBillingProfileResponseDataFromJSON(json) {
|
|
6115
6235
|
return CompanyBillingProfileResponseDataFromJSONTyped(json, false);
|
|
@@ -6124,16 +6244,22 @@ function CompanyBillingProfileResponseDataFromJSONTyped(json, ignoreDiscriminato
|
|
|
6124
6244
|
collectionMethod: BillingCollectionMethodFromJSON(
|
|
6125
6245
|
json["collection_method"]
|
|
6126
6246
|
),
|
|
6247
|
+
collector: json["collector"] == null ? void 0 : CollectorFromJSON(json["collector"]),
|
|
6127
6248
|
companyId: json["company_id"],
|
|
6128
6249
|
createdAt: new Date(json["created_at"]),
|
|
6250
|
+
currency: json["currency"] == null ? void 0 : CurrencyFromJSON(json["currency"]),
|
|
6129
6251
|
daysUntilDue: json["days_until_due"] == null ? void 0 : json["days_until_due"],
|
|
6130
6252
|
environmentId: json["environment_id"],
|
|
6253
|
+
gatingDays: json["gating_days"],
|
|
6131
6254
|
id: json["id"],
|
|
6132
6255
|
isDefault: json["is_default"],
|
|
6133
6256
|
name: json["name"] == null ? void 0 : json["name"],
|
|
6257
|
+
overdraftLimit: json["overdraft_limit"] == null ? void 0 : json["overdraft_limit"],
|
|
6258
|
+
paymentGating: PaymentGatingFromJSON(json["payment_gating"]),
|
|
6134
6259
|
paymentMethodId: json["payment_method_id"] == null ? void 0 : json["payment_method_id"],
|
|
6135
6260
|
prorationBehavior: json["proration_behavior"] == null ? void 0 : ProrationBehaviorFromJSON(json["proration_behavior"]),
|
|
6136
6261
|
providerType: BillingProviderTypeFromJSON(json["provider_type"]),
|
|
6262
|
+
purchaseOrder: json["purchase_order"] == null ? void 0 : json["purchase_order"],
|
|
6137
6263
|
updatedAt: new Date(json["updated_at"])
|
|
6138
6264
|
};
|
|
6139
6265
|
}
|
|
@@ -6728,6 +6854,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6728
6854
|
companyId: json["company_id"],
|
|
6729
6855
|
createdAt: new Date(json["created_at"]),
|
|
6730
6856
|
daysUntilDue: json["days_until_due"],
|
|
6857
|
+
endDate: json["end_date"] == null ? void 0 : new Date(json["end_date"]),
|
|
6731
6858
|
externalInvoiceId: json["external_invoice_id"] == null ? void 0 : json["external_invoice_id"],
|
|
6732
6859
|
id: json["id"],
|
|
6733
6860
|
migrationId: json["migration_id"] == null ? void 0 : json["migration_id"],
|
|
@@ -7603,7 +7730,7 @@ function FlagInPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7603
7730
|
}
|
|
7604
7731
|
return {
|
|
7605
7732
|
createdAt: new Date(json["created_at"]),
|
|
7606
|
-
defaultValue: json["default_value"],
|
|
7733
|
+
defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
|
|
7607
7734
|
description: json["description"],
|
|
7608
7735
|
feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON(json["feature"]),
|
|
7609
7736
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
@@ -7763,6 +7890,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped(json, ignoreDiscriminator)
|
|
|
7763
7890
|
};
|
|
7764
7891
|
}
|
|
7765
7892
|
|
|
7893
|
+
// src/api/checkoutexternal/models/RenewalPolicy.ts
|
|
7894
|
+
function RenewalPolicyFromJSON(json) {
|
|
7895
|
+
return RenewalPolicyFromJSONTyped(json, false);
|
|
7896
|
+
}
|
|
7897
|
+
function RenewalPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
7898
|
+
return json;
|
|
7899
|
+
}
|
|
7900
|
+
|
|
7766
7901
|
// src/api/checkoutexternal/models/PlanVersionResponseData.ts
|
|
7767
7902
|
function PlanVersionResponseDataFromJSON(json) {
|
|
7768
7903
|
return PlanVersionResponseDataFromJSONTyped(json, false);
|
|
@@ -7780,6 +7915,7 @@ function PlanVersionResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7780
7915
|
name: json["name"],
|
|
7781
7916
|
originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
|
|
7782
7917
|
planType: PlanTypeFromJSON(json["plan_type"]),
|
|
7918
|
+
renewalPolicy: RenewalPolicyFromJSON(json["renewal_policy"]),
|
|
7783
7919
|
status: PlanVersionStatusFromJSON(json["status"]),
|
|
7784
7920
|
updatedAt: new Date(json["updated_at"]),
|
|
7785
7921
|
version: json["version"]
|
|
@@ -9096,6 +9232,46 @@ function PreviewSubscriptionDiscountResponseDataFromJSONTyped(json, ignoreDiscri
|
|
|
9096
9232
|
};
|
|
9097
9233
|
}
|
|
9098
9234
|
|
|
9235
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationLineResponseData.ts
|
|
9236
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSON(json) {
|
|
9237
|
+
return PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, false);
|
|
9238
|
+
}
|
|
9239
|
+
function PreviewSubscriptionProrationLineResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
9240
|
+
if (json == null) {
|
|
9241
|
+
return json;
|
|
9242
|
+
}
|
|
9243
|
+
return {
|
|
9244
|
+
amount: json["amount"],
|
|
9245
|
+
kind: ProrationLineKindFromJSON(json["kind"]),
|
|
9246
|
+
periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
|
|
9247
|
+
periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
|
|
9248
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
9249
|
+
priceId: json["price_id"] == null ? void 0 : json["price_id"],
|
|
9250
|
+
quantity: json["quantity"] == null ? void 0 : json["quantity"]
|
|
9251
|
+
};
|
|
9252
|
+
}
|
|
9253
|
+
|
|
9254
|
+
// src/api/checkoutexternal/models/PreviewSubscriptionProrationResponseData.ts
|
|
9255
|
+
function PreviewSubscriptionProrationResponseDataFromJSON(json) {
|
|
9256
|
+
return PreviewSubscriptionProrationResponseDataFromJSONTyped(json, false);
|
|
9257
|
+
}
|
|
9258
|
+
function PreviewSubscriptionProrationResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
9259
|
+
if (json == null) {
|
|
9260
|
+
return json;
|
|
9261
|
+
}
|
|
9262
|
+
return {
|
|
9263
|
+
billedAt: json["billed_at"] == null ? void 0 : new Date(json["billed_at"]),
|
|
9264
|
+
charge: json["charge"],
|
|
9265
|
+
credit: json["credit"],
|
|
9266
|
+
currency: CurrencyFromJSON(json["currency"]),
|
|
9267
|
+
lines: json["lines"].map(
|
|
9268
|
+
PreviewSubscriptionProrationLineResponseDataFromJSON
|
|
9269
|
+
),
|
|
9270
|
+
timing: CheckoutChargeTimingFromJSON(json["timing"]),
|
|
9271
|
+
total: json["total"]
|
|
9272
|
+
};
|
|
9273
|
+
}
|
|
9274
|
+
|
|
9099
9275
|
// src/api/checkoutexternal/models/PreviewSubscriptionFinanceResponseData.ts
|
|
9100
9276
|
function PreviewSubscriptionFinanceResponseDataFromJSON(json) {
|
|
9101
9277
|
return PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, false);
|
|
@@ -9107,6 +9283,8 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
9107
9283
|
return {
|
|
9108
9284
|
amountOff: json["amount_off"],
|
|
9109
9285
|
currency: CurrencyFromJSON(json["currency"]),
|
|
9286
|
+
customerBalanceApplied: json["customer_balance_applied"],
|
|
9287
|
+
customerBalanceRemaining: json["customer_balance_remaining"],
|
|
9110
9288
|
discountAmount: json["discount_amount"],
|
|
9111
9289
|
discounts: json["discounts"].map(
|
|
9112
9290
|
PreviewSubscriptionDiscountResponseDataFromJSON
|
|
@@ -9119,6 +9297,9 @@ function PreviewSubscriptionFinanceResponseDataFromJSONTyped(json, ignoreDiscrim
|
|
|
9119
9297
|
promoCodeApplied: json["promo_code_applied"],
|
|
9120
9298
|
proration: json["proration"],
|
|
9121
9299
|
prorationBilledAt: json["proration_billed_at"] == null ? void 0 : new Date(json["proration_billed_at"]),
|
|
9300
|
+
prorationDetail: json["proration_detail"] == null ? void 0 : PreviewSubscriptionProrationResponseDataFromJSON(
|
|
9301
|
+
json["proration_detail"]
|
|
9302
|
+
),
|
|
9122
9303
|
taxAmount: json["tax_amount"] == null ? void 0 : json["tax_amount"],
|
|
9123
9304
|
taxDisplayName: json["tax_display_name"] == null ? void 0 : json["tax_display_name"],
|
|
9124
9305
|
taxRequireBillingDetails: json["tax_require_billing_details"],
|
|
@@ -9355,6 +9536,11 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
9355
9536
|
const queryParameters = {};
|
|
9356
9537
|
const headerParameters = {};
|
|
9357
9538
|
headerParameters["Content-Type"] = "application/json";
|
|
9539
|
+
if (requestParameters["xCheckoutSessionID"] != null) {
|
|
9540
|
+
headerParameters["X-Checkout-Session-ID"] = String(
|
|
9541
|
+
requestParameters["xCheckoutSessionID"]
|
|
9542
|
+
);
|
|
9543
|
+
}
|
|
9358
9544
|
if (this.configuration && this.configuration.apiKey) {
|
|
9359
9545
|
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9360
9546
|
"X-Schematic-Api-Key"
|
|
@@ -9588,6 +9774,11 @@ var CheckoutexternalApi = class extends BaseAPI {
|
|
|
9588
9774
|
const queryParameters = {};
|
|
9589
9775
|
const headerParameters = {};
|
|
9590
9776
|
headerParameters["Content-Type"] = "application/json";
|
|
9777
|
+
if (requestParameters["xCheckoutSessionID"] != null) {
|
|
9778
|
+
headerParameters["X-Checkout-Session-ID"] = String(
|
|
9779
|
+
requestParameters["xCheckoutSessionID"]
|
|
9780
|
+
);
|
|
9781
|
+
}
|
|
9591
9782
|
if (this.configuration && this.configuration.apiKey) {
|
|
9592
9783
|
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
9593
9784
|
"X-Schematic-Api-Key"
|
|
@@ -10997,9 +11188,9 @@ function BillingCreditLedgerAuthorityFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
10997
11188
|
|
|
10998
11189
|
// src/api/componentspublic/models/Currency.ts
|
|
10999
11190
|
function CurrencyFromJSON2(json) {
|
|
11000
|
-
return
|
|
11191
|
+
return CurrencyFromJSONTyped41(json, false);
|
|
11001
11192
|
}
|
|
11002
|
-
function
|
|
11193
|
+
function CurrencyFromJSONTyped41(json, ignoreDiscriminator) {
|
|
11003
11194
|
return json;
|
|
11004
11195
|
}
|
|
11005
11196
|
|
|
@@ -11387,14 +11578,6 @@ function BillingStrategyFromJSONTyped7(json, ignoreDiscriminator) {
|
|
|
11387
11578
|
return json;
|
|
11388
11579
|
}
|
|
11389
11580
|
|
|
11390
|
-
// src/api/componentspublic/models/ChargeType.ts
|
|
11391
|
-
function ChargeTypeFromJSON2(json) {
|
|
11392
|
-
return ChargeTypeFromJSONTyped7(json, false);
|
|
11393
|
-
}
|
|
11394
|
-
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11395
|
-
return json;
|
|
11396
|
-
}
|
|
11397
|
-
|
|
11398
11581
|
// src/api/componentspublic/models/EntitlementValueType.ts
|
|
11399
11582
|
function EntitlementValueTypeFromJSON2(json) {
|
|
11400
11583
|
return EntitlementValueTypeFromJSONTyped10(json, false);
|
|
@@ -11403,6 +11586,14 @@ function EntitlementValueTypeFromJSONTyped10(json, ignoreDiscriminator) {
|
|
|
11403
11586
|
return json;
|
|
11404
11587
|
}
|
|
11405
11588
|
|
|
11589
|
+
// src/api/componentspublic/models/FeatureType.ts
|
|
11590
|
+
function FeatureTypeFromJSON2(json) {
|
|
11591
|
+
return FeatureTypeFromJSONTyped7(json, false);
|
|
11592
|
+
}
|
|
11593
|
+
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11594
|
+
return json;
|
|
11595
|
+
}
|
|
11596
|
+
|
|
11406
11597
|
// src/api/componentspublic/models/MetricPeriodMonthReset.ts
|
|
11407
11598
|
function MetricPeriodMonthResetFromJSON2(json) {
|
|
11408
11599
|
return MetricPeriodMonthResetFromJSONTyped14(json, false);
|
|
@@ -11419,6 +11610,30 @@ function MetricPeriodFromJSONTyped14(json, ignoreDiscriminator) {
|
|
|
11419
11610
|
return json;
|
|
11420
11611
|
}
|
|
11421
11612
|
|
|
11613
|
+
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
11614
|
+
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
11615
|
+
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
11616
|
+
}
|
|
11617
|
+
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
11618
|
+
return json;
|
|
11619
|
+
}
|
|
11620
|
+
|
|
11621
|
+
// src/api/componentspublic/models/ChargeType.ts
|
|
11622
|
+
function ChargeTypeFromJSON2(json) {
|
|
11623
|
+
return ChargeTypeFromJSONTyped7(json, false);
|
|
11624
|
+
}
|
|
11625
|
+
function ChargeTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11626
|
+
return json;
|
|
11627
|
+
}
|
|
11628
|
+
|
|
11629
|
+
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11630
|
+
function PlanPriceCadenceFromJSON2(json) {
|
|
11631
|
+
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
11632
|
+
}
|
|
11633
|
+
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11634
|
+
return json;
|
|
11635
|
+
}
|
|
11636
|
+
|
|
11422
11637
|
// src/api/componentspublic/models/RuleType.ts
|
|
11423
11638
|
function RuleTypeFromJSON2(json) {
|
|
11424
11639
|
return RuleTypeFromJSONTyped5(json, false);
|
|
@@ -11521,14 +11736,6 @@ function EntitlementCurrencyPricesResponseDataFromJSONTyped3(json, ignoreDiscrim
|
|
|
11521
11736
|
};
|
|
11522
11737
|
}
|
|
11523
11738
|
|
|
11524
|
-
// src/api/componentspublic/models/EntitlementPriceBehavior.ts
|
|
11525
|
-
function EntitlementPriceBehaviorFromJSON2(json) {
|
|
11526
|
-
return EntitlementPriceBehaviorFromJSONTyped8(json, false);
|
|
11527
|
-
}
|
|
11528
|
-
function EntitlementPriceBehaviorFromJSONTyped8(json, ignoreDiscriminator) {
|
|
11529
|
-
return json;
|
|
11530
|
-
}
|
|
11531
|
-
|
|
11532
11739
|
// src/api/componentspublic/models/EntityType.ts
|
|
11533
11740
|
function EntityTypeFromJSON2(json) {
|
|
11534
11741
|
return EntityTypeFromJSONTyped9(json, false);
|
|
@@ -11590,14 +11797,6 @@ function FeatureEventSourceFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
11590
11797
|
return json;
|
|
11591
11798
|
}
|
|
11592
11799
|
|
|
11593
|
-
// src/api/componentspublic/models/FeatureType.ts
|
|
11594
|
-
function FeatureTypeFromJSON2(json) {
|
|
11595
|
-
return FeatureTypeFromJSONTyped7(json, false);
|
|
11596
|
-
}
|
|
11597
|
-
function FeatureTypeFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11598
|
-
return json;
|
|
11599
|
-
}
|
|
11600
|
-
|
|
11601
11800
|
// src/api/componentspublic/models/PreviewObject.ts
|
|
11602
11801
|
function PreviewObjectFromJSON2(json) {
|
|
11603
11802
|
return PreviewObjectFromJSONTyped3(json, false);
|
|
@@ -11778,7 +11977,7 @@ function FlagInPlanResponseDataFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
11778
11977
|
}
|
|
11779
11978
|
return {
|
|
11780
11979
|
createdAt: new Date(json["created_at"]),
|
|
11781
|
-
defaultValue: json["default_value"],
|
|
11980
|
+
defaultValue: json["default_value"] == null ? void 0 : json["default_value"],
|
|
11782
11981
|
description: json["description"],
|
|
11783
11982
|
feature: json["feature"] == null ? void 0 : FeatureResponseDataFromJSON2(json["feature"]),
|
|
11784
11983
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
@@ -11948,14 +12147,6 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
|
|
|
11948
12147
|
};
|
|
11949
12148
|
}
|
|
11950
12149
|
|
|
11951
|
-
// src/api/componentspublic/models/PlanPriceCadence.ts
|
|
11952
|
-
function PlanPriceCadenceFromJSON2(json) {
|
|
11953
|
-
return PlanPriceCadenceFromJSONTyped7(json, false);
|
|
11954
|
-
}
|
|
11955
|
-
function PlanPriceCadenceFromJSONTyped7(json, ignoreDiscriminator) {
|
|
11956
|
-
return json;
|
|
11957
|
-
}
|
|
11958
|
-
|
|
11959
12150
|
// src/api/componentspublic/models/PlanCreditGrantView.ts
|
|
11960
12151
|
function PlanCreditGrantViewFromJSON2(json) {
|
|
11961
12152
|
return PlanCreditGrantViewFromJSONTyped3(json, false);
|
|
@@ -12051,6 +12242,14 @@ function PlanCurrencyPricesResponseDataFromJSONTyped5(json, ignoreDiscriminator)
|
|
|
12051
12242
|
};
|
|
12052
12243
|
}
|
|
12053
12244
|
|
|
12245
|
+
// src/api/componentspublic/models/RenewalPolicy.ts
|
|
12246
|
+
function RenewalPolicyFromJSON2(json) {
|
|
12247
|
+
return RenewalPolicyFromJSONTyped3(json, false);
|
|
12248
|
+
}
|
|
12249
|
+
function RenewalPolicyFromJSONTyped3(json, ignoreDiscriminator) {
|
|
12250
|
+
return json;
|
|
12251
|
+
}
|
|
12252
|
+
|
|
12054
12253
|
// src/api/componentspublic/models/PlanVersionResponseData.ts
|
|
12055
12254
|
function PlanVersionResponseDataFromJSON2(json) {
|
|
12056
12255
|
return PlanVersionResponseDataFromJSONTyped5(json, false);
|
|
@@ -12068,6 +12267,7 @@ function PlanVersionResponseDataFromJSONTyped5(json, ignoreDiscriminator) {
|
|
|
12068
12267
|
name: json["name"],
|
|
12069
12268
|
originalPlanId: json["original_plan_id"] == null ? void 0 : json["original_plan_id"],
|
|
12070
12269
|
planType: PlanTypeFromJSON2(json["plan_type"]),
|
|
12270
|
+
renewalPolicy: RenewalPolicyFromJSON2(json["renewal_policy"]),
|
|
12071
12271
|
status: PlanVersionStatusFromJSON2(json["status"]),
|
|
12072
12272
|
updatedAt: new Date(json["updated_at"]),
|
|
12073
12273
|
version: json["version"]
|
|
@@ -17656,7 +17856,7 @@ var reducer = (state, action) => {
|
|
|
17656
17856
|
// src/context/EmbedProvider.tsx
|
|
17657
17857
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
17658
17858
|
var getCustomHeaders = (sessionId) => ({
|
|
17659
|
-
"X-Schematic-Components-Version": "2.
|
|
17859
|
+
"X-Schematic-Components-Version": "2.35.0",
|
|
17660
17860
|
"X-Schematic-Session-ID": sessionId
|
|
17661
17861
|
});
|
|
17662
17862
|
var normalizeCurrencyFilter = (filter) => {
|