@schematichq/schematic-components 2.3.1 → 2.5.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.cjs.js +15924 -11273
- package/dist/schematic-components.d.ts +734 -104
- package/dist/schematic-components.esm.js +15403 -10752
- package/package.json +34 -33
|
@@ -17,6 +17,15 @@ import { RuleSet } from 'styled-components';
|
|
|
17
17
|
import type { Stripe } from '@stripe/stripe-js';
|
|
18
18
|
import { Substitute } from 'styled-components/dist/types';
|
|
19
19
|
|
|
20
|
+
export declare const AddOns: ({ addOns, toggle, isLoading, period }: AddOnsProps) => JSX.Element;
|
|
21
|
+
|
|
22
|
+
declare interface AddOnsProps {
|
|
23
|
+
addOns: SelectedPlan[];
|
|
24
|
+
toggle: (id: string) => void;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
period: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
20
29
|
declare interface AvailablePlanOptions {
|
|
21
30
|
useSelectedPeriod?: boolean;
|
|
22
31
|
}
|
|
@@ -740,10 +749,16 @@ declare interface BillingPriceResponseData {
|
|
|
740
749
|
priceDecimal?: string | null;
|
|
741
750
|
/**
|
|
742
751
|
*
|
|
743
|
-
* @type {
|
|
752
|
+
* @type {BillingProviderType}
|
|
753
|
+
* @memberof BillingPriceResponseData
|
|
754
|
+
*/
|
|
755
|
+
providerType: BillingProviderType;
|
|
756
|
+
/**
|
|
757
|
+
*
|
|
758
|
+
* @type {BillingPriceScheme}
|
|
744
759
|
* @memberof BillingPriceResponseData
|
|
745
760
|
*/
|
|
746
|
-
scheme:
|
|
761
|
+
scheme: BillingPriceScheme;
|
|
747
762
|
}
|
|
748
763
|
|
|
749
764
|
/**
|
|
@@ -790,12 +805,40 @@ declare interface BillingPriceResponseData_2 {
|
|
|
790
805
|
priceDecimal?: string | null;
|
|
791
806
|
/**
|
|
792
807
|
*
|
|
793
|
-
* @type {
|
|
808
|
+
* @type {BillingProviderType}
|
|
809
|
+
* @memberof BillingPriceResponseData
|
|
810
|
+
*/
|
|
811
|
+
providerType: BillingProviderType_2;
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @type {BillingPriceScheme}
|
|
794
815
|
* @memberof BillingPriceResponseData
|
|
795
816
|
*/
|
|
796
|
-
scheme:
|
|
817
|
+
scheme: BillingPriceScheme_2;
|
|
797
818
|
}
|
|
798
819
|
|
|
820
|
+
/**
|
|
821
|
+
*
|
|
822
|
+
* @export
|
|
823
|
+
*/
|
|
824
|
+
declare const BillingPriceScheme: {
|
|
825
|
+
readonly PerUnit: "per_unit";
|
|
826
|
+
readonly Tiered: "tiered";
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
declare type BillingPriceScheme = (typeof BillingPriceScheme)[keyof typeof BillingPriceScheme];
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @export
|
|
834
|
+
*/
|
|
835
|
+
declare const BillingPriceScheme_2: {
|
|
836
|
+
readonly PerUnit: "per_unit";
|
|
837
|
+
readonly Tiered: "tiered";
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
declare type BillingPriceScheme_2 = (typeof BillingPriceScheme_2)[keyof typeof BillingPriceScheme_2];
|
|
841
|
+
|
|
799
842
|
/**
|
|
800
843
|
*
|
|
801
844
|
* @export
|
|
@@ -807,6 +850,17 @@ declare const BillingPriceUsageType: {
|
|
|
807
850
|
|
|
808
851
|
declare type BillingPriceUsageType = (typeof BillingPriceUsageType)[keyof typeof BillingPriceUsageType];
|
|
809
852
|
|
|
853
|
+
/**
|
|
854
|
+
*
|
|
855
|
+
* @export
|
|
856
|
+
*/
|
|
857
|
+
declare const BillingPriceUsageType_2: {
|
|
858
|
+
readonly Licensed: "licensed";
|
|
859
|
+
readonly Metered: "metered";
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
declare type BillingPriceUsageType_2 = (typeof BillingPriceUsageType_2)[keyof typeof BillingPriceUsageType_2];
|
|
863
|
+
|
|
810
864
|
/**
|
|
811
865
|
*
|
|
812
866
|
* @export
|
|
@@ -815,10 +869,10 @@ declare type BillingPriceUsageType = (typeof BillingPriceUsageType)[keyof typeof
|
|
|
815
869
|
declare interface BillingPriceView {
|
|
816
870
|
/**
|
|
817
871
|
*
|
|
818
|
-
* @type {
|
|
872
|
+
* @type {BillingPriceScheme}
|
|
819
873
|
* @memberof BillingPriceView
|
|
820
874
|
*/
|
|
821
|
-
billingScheme:
|
|
875
|
+
billingScheme: BillingPriceScheme;
|
|
822
876
|
/**
|
|
823
877
|
*
|
|
824
878
|
* @type {Date}
|
|
@@ -921,6 +975,12 @@ declare interface BillingPriceView {
|
|
|
921
975
|
* @memberof BillingPriceView
|
|
922
976
|
*/
|
|
923
977
|
productName: string;
|
|
978
|
+
/**
|
|
979
|
+
*
|
|
980
|
+
* @type {BillingProviderType}
|
|
981
|
+
* @memberof BillingPriceView
|
|
982
|
+
*/
|
|
983
|
+
providerType: BillingProviderType;
|
|
924
984
|
/**
|
|
925
985
|
*
|
|
926
986
|
* @type {BillingTiersMode}
|
|
@@ -935,10 +995,10 @@ declare interface BillingPriceView {
|
|
|
935
995
|
updatedAt: Date;
|
|
936
996
|
/**
|
|
937
997
|
*
|
|
938
|
-
* @type {
|
|
998
|
+
* @type {BillingPriceUsageType}
|
|
939
999
|
* @memberof BillingPriceView
|
|
940
1000
|
*/
|
|
941
|
-
usageType:
|
|
1001
|
+
usageType: BillingPriceUsageType;
|
|
942
1002
|
}
|
|
943
1003
|
|
|
944
1004
|
/**
|
|
@@ -949,10 +1009,10 @@ declare interface BillingPriceView {
|
|
|
949
1009
|
declare interface BillingPriceView_2 {
|
|
950
1010
|
/**
|
|
951
1011
|
*
|
|
952
|
-
* @type {
|
|
1012
|
+
* @type {BillingPriceScheme}
|
|
953
1013
|
* @memberof BillingPriceView
|
|
954
1014
|
*/
|
|
955
|
-
billingScheme:
|
|
1015
|
+
billingScheme: BillingPriceScheme_2;
|
|
956
1016
|
/**
|
|
957
1017
|
*
|
|
958
1018
|
* @type {Date}
|
|
@@ -1055,6 +1115,12 @@ declare interface BillingPriceView_2 {
|
|
|
1055
1115
|
* @memberof BillingPriceView
|
|
1056
1116
|
*/
|
|
1057
1117
|
productName: string;
|
|
1118
|
+
/**
|
|
1119
|
+
*
|
|
1120
|
+
* @type {BillingProviderType}
|
|
1121
|
+
* @memberof BillingPriceView
|
|
1122
|
+
*/
|
|
1123
|
+
providerType: BillingProviderType_2;
|
|
1058
1124
|
/**
|
|
1059
1125
|
*
|
|
1060
1126
|
* @type {BillingTiersMode}
|
|
@@ -1069,10 +1135,10 @@ declare interface BillingPriceView_2 {
|
|
|
1069
1135
|
updatedAt: Date;
|
|
1070
1136
|
/**
|
|
1071
1137
|
*
|
|
1072
|
-
* @type {
|
|
1138
|
+
* @type {BillingPriceUsageType}
|
|
1073
1139
|
* @memberof BillingPriceView
|
|
1074
1140
|
*/
|
|
1075
|
-
usageType:
|
|
1141
|
+
usageType: BillingPriceUsageType_2;
|
|
1076
1142
|
}
|
|
1077
1143
|
|
|
1078
1144
|
/**
|
|
@@ -1148,6 +1214,12 @@ declare interface BillingProductDetailResponseData {
|
|
|
1148
1214
|
* @memberof BillingProductDetailResponseData
|
|
1149
1215
|
*/
|
|
1150
1216
|
productId: string;
|
|
1217
|
+
/**
|
|
1218
|
+
*
|
|
1219
|
+
* @type {BillingProviderType}
|
|
1220
|
+
* @memberof BillingProductDetailResponseData
|
|
1221
|
+
*/
|
|
1222
|
+
providerType: BillingProviderType;
|
|
1151
1223
|
/**
|
|
1152
1224
|
*
|
|
1153
1225
|
* @type {number}
|
|
@@ -1241,6 +1313,12 @@ declare interface BillingProductDetailResponseData_2 {
|
|
|
1241
1313
|
* @memberof BillingProductDetailResponseData
|
|
1242
1314
|
*/
|
|
1243
1315
|
productId: string;
|
|
1316
|
+
/**
|
|
1317
|
+
*
|
|
1318
|
+
* @type {BillingProviderType}
|
|
1319
|
+
* @memberof BillingProductDetailResponseData
|
|
1320
|
+
*/
|
|
1321
|
+
providerType: BillingProviderType_2;
|
|
1244
1322
|
/**
|
|
1245
1323
|
*
|
|
1246
1324
|
* @type {number}
|
|
@@ -1269,10 +1347,10 @@ declare interface BillingProductDetailResponseData_2 {
|
|
|
1269
1347
|
declare interface BillingProductForSubscriptionResponseData {
|
|
1270
1348
|
/**
|
|
1271
1349
|
*
|
|
1272
|
-
* @type {
|
|
1350
|
+
* @type {BillingPriceScheme}
|
|
1273
1351
|
* @memberof BillingProductForSubscriptionResponseData
|
|
1274
1352
|
*/
|
|
1275
|
-
billingScheme:
|
|
1353
|
+
billingScheme: BillingPriceScheme;
|
|
1276
1354
|
/**
|
|
1277
1355
|
*
|
|
1278
1356
|
* @type {number}
|
|
@@ -1363,6 +1441,12 @@ declare interface BillingProductForSubscriptionResponseData {
|
|
|
1363
1441
|
* @memberof BillingProductForSubscriptionResponseData
|
|
1364
1442
|
*/
|
|
1365
1443
|
priceTier: Array<BillingProductPriceTierResponseData>;
|
|
1444
|
+
/**
|
|
1445
|
+
*
|
|
1446
|
+
* @type {BillingProviderType}
|
|
1447
|
+
* @memberof BillingProductForSubscriptionResponseData
|
|
1448
|
+
*/
|
|
1449
|
+
providerType: BillingProviderType;
|
|
1366
1450
|
/**
|
|
1367
1451
|
*
|
|
1368
1452
|
* @type {number}
|
|
@@ -1429,10 +1513,10 @@ declare type BillingProductPriceInterval_2 = (typeof BillingProductPriceInterval
|
|
|
1429
1513
|
declare interface BillingProductPriceResponseData {
|
|
1430
1514
|
/**
|
|
1431
1515
|
*
|
|
1432
|
-
* @type {
|
|
1516
|
+
* @type {BillingPriceScheme}
|
|
1433
1517
|
* @memberof BillingProductPriceResponseData
|
|
1434
1518
|
*/
|
|
1435
|
-
billingScheme:
|
|
1519
|
+
billingScheme: BillingPriceScheme;
|
|
1436
1520
|
/**
|
|
1437
1521
|
*
|
|
1438
1522
|
* @type {Date}
|
|
@@ -1499,6 +1583,12 @@ declare interface BillingProductPriceResponseData {
|
|
|
1499
1583
|
* @memberof BillingProductPriceResponseData
|
|
1500
1584
|
*/
|
|
1501
1585
|
productExternalId: string;
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @type {BillingProviderType}
|
|
1589
|
+
* @memberof BillingProductPriceResponseData
|
|
1590
|
+
*/
|
|
1591
|
+
providerType: BillingProviderType;
|
|
1502
1592
|
/**
|
|
1503
1593
|
*
|
|
1504
1594
|
* @type {BillingTiersMode}
|
|
@@ -1513,10 +1603,10 @@ declare interface BillingProductPriceResponseData {
|
|
|
1513
1603
|
updatedAt: Date;
|
|
1514
1604
|
/**
|
|
1515
1605
|
*
|
|
1516
|
-
* @type {
|
|
1606
|
+
* @type {BillingPriceUsageType}
|
|
1517
1607
|
* @memberof BillingProductPriceResponseData
|
|
1518
1608
|
*/
|
|
1519
|
-
usageType:
|
|
1609
|
+
usageType: BillingPriceUsageType;
|
|
1520
1610
|
}
|
|
1521
1611
|
|
|
1522
1612
|
/**
|
|
@@ -1605,17 +1695,6 @@ declare interface BillingProductPriceTierResponseData_2 {
|
|
|
1605
1695
|
upTo?: number | null;
|
|
1606
1696
|
}
|
|
1607
1697
|
|
|
1608
|
-
/**
|
|
1609
|
-
* Schematic API
|
|
1610
|
-
* Schematic API
|
|
1611
|
-
*
|
|
1612
|
-
* The version of the OpenAPI document: 0.1
|
|
1613
|
-
*
|
|
1614
|
-
*
|
|
1615
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1616
|
-
* https://openapi-generator.tech
|
|
1617
|
-
* Do not edit the class manually.
|
|
1618
|
-
*/
|
|
1619
1698
|
/**
|
|
1620
1699
|
*
|
|
1621
1700
|
* @export
|
|
@@ -1683,6 +1762,12 @@ declare interface BillingProductResponseData {
|
|
|
1683
1762
|
* @memberof BillingProductResponseData
|
|
1684
1763
|
*/
|
|
1685
1764
|
productId: string;
|
|
1765
|
+
/**
|
|
1766
|
+
*
|
|
1767
|
+
* @type {BillingProviderType}
|
|
1768
|
+
* @memberof BillingProductResponseData
|
|
1769
|
+
*/
|
|
1770
|
+
providerType: BillingProviderType;
|
|
1686
1771
|
/**
|
|
1687
1772
|
*
|
|
1688
1773
|
* @type {number}
|
|
@@ -1697,17 +1782,6 @@ declare interface BillingProductResponseData {
|
|
|
1697
1782
|
updatedAt: Date;
|
|
1698
1783
|
}
|
|
1699
1784
|
|
|
1700
|
-
/**
|
|
1701
|
-
* Schematic API
|
|
1702
|
-
* Schematic API
|
|
1703
|
-
*
|
|
1704
|
-
* The version of the OpenAPI document: 0.1
|
|
1705
|
-
*
|
|
1706
|
-
*
|
|
1707
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1708
|
-
* https://openapi-generator.tech
|
|
1709
|
-
* Do not edit the class manually.
|
|
1710
|
-
*/
|
|
1711
1785
|
/**
|
|
1712
1786
|
*
|
|
1713
1787
|
* @export
|
|
@@ -1775,6 +1849,12 @@ declare interface BillingProductResponseData_2 {
|
|
|
1775
1849
|
* @memberof BillingProductResponseData
|
|
1776
1850
|
*/
|
|
1777
1851
|
productId: string;
|
|
1852
|
+
/**
|
|
1853
|
+
*
|
|
1854
|
+
* @type {BillingProviderType}
|
|
1855
|
+
* @memberof BillingProductResponseData
|
|
1856
|
+
*/
|
|
1857
|
+
providerType: BillingProviderType_2;
|
|
1778
1858
|
/**
|
|
1779
1859
|
*
|
|
1780
1860
|
* @type {number}
|
|
@@ -1789,6 +1869,28 @@ declare interface BillingProductResponseData_2 {
|
|
|
1789
1869
|
updatedAt: Date;
|
|
1790
1870
|
}
|
|
1791
1871
|
|
|
1872
|
+
/**
|
|
1873
|
+
*
|
|
1874
|
+
* @export
|
|
1875
|
+
*/
|
|
1876
|
+
declare const BillingProviderType: {
|
|
1877
|
+
readonly Schematic: "schematic";
|
|
1878
|
+
readonly Stripe: "stripe";
|
|
1879
|
+
};
|
|
1880
|
+
|
|
1881
|
+
declare type BillingProviderType = (typeof BillingProviderType)[keyof typeof BillingProviderType];
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
*
|
|
1885
|
+
* @export
|
|
1886
|
+
*/
|
|
1887
|
+
declare const BillingProviderType_2: {
|
|
1888
|
+
readonly Schematic: "schematic";
|
|
1889
|
+
readonly Stripe: "stripe";
|
|
1890
|
+
};
|
|
1891
|
+
|
|
1892
|
+
declare type BillingProviderType_2 = (typeof BillingProviderType_2)[keyof typeof BillingProviderType_2];
|
|
1893
|
+
|
|
1792
1894
|
/**
|
|
1793
1895
|
* Schematic API
|
|
1794
1896
|
* Schematic API
|
|
@@ -2017,6 +2119,12 @@ declare interface BillingSubscriptionView {
|
|
|
2017
2119
|
* @memberof BillingSubscriptionView
|
|
2018
2120
|
*/
|
|
2019
2121
|
products: Array<BillingProductForSubscriptionResponseData>;
|
|
2122
|
+
/**
|
|
2123
|
+
*
|
|
2124
|
+
* @type {BillingProviderType}
|
|
2125
|
+
* @memberof BillingSubscriptionView
|
|
2126
|
+
*/
|
|
2127
|
+
providerType: BillingProviderType;
|
|
2020
2128
|
/**
|
|
2021
2129
|
*
|
|
2022
2130
|
* @type {string}
|
|
@@ -2193,6 +2301,11 @@ export declare interface BypassConfig {
|
|
|
2193
2301
|
* Default: false (skipped stages still appear in breadcrumbs)
|
|
2194
2302
|
*/
|
|
2195
2303
|
hideSkipped?: boolean;
|
|
2304
|
+
/**
|
|
2305
|
+
* Billing period to pre-select.
|
|
2306
|
+
* Optional - defaults to company's current period or "month".
|
|
2307
|
+
*/
|
|
2308
|
+
period?: "month" | "year";
|
|
2196
2309
|
}
|
|
2197
2310
|
|
|
2198
2311
|
export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
|
|
@@ -2290,12 +2403,32 @@ declare const ChargeType_2: {
|
|
|
2290
2403
|
|
|
2291
2404
|
declare type ChargeType_2 = (typeof ChargeType_2)[keyof typeof ChargeType_2];
|
|
2292
2405
|
|
|
2293
|
-
export declare const
|
|
2406
|
+
export declare const Checkout: ({ isPaymentMethodRequired, setPaymentMethodId, updatePromoCode, confirmPaymentIntentProps, financeData, onPaymentMethodSaved, }: CheckoutProps) => JSX.Element | null;
|
|
2407
|
+
|
|
2408
|
+
export declare const CheckoutDialog: ({ top }: CheckoutDialogProps) => JSX.Element | null;
|
|
2294
2409
|
|
|
2295
2410
|
declare interface CheckoutDialogProps {
|
|
2296
2411
|
top?: number;
|
|
2297
2412
|
}
|
|
2298
2413
|
|
|
2414
|
+
declare interface CheckoutProps {
|
|
2415
|
+
isPaymentMethodRequired: boolean;
|
|
2416
|
+
setPaymentMethodId: (id: string) => void;
|
|
2417
|
+
updatePromoCode: (code: string) => void;
|
|
2418
|
+
confirmPaymentIntentProps?: ConfirmPaymentIntentProps_2 | null | undefined;
|
|
2419
|
+
financeData?: PreviewSubscriptionFinanceResponseData | null;
|
|
2420
|
+
onPaymentMethodSaved?: (updates: {
|
|
2421
|
+
period?: string;
|
|
2422
|
+
plan?: SelectedPlan;
|
|
2423
|
+
shouldTrial?: boolean;
|
|
2424
|
+
addOns?: SelectedPlan[];
|
|
2425
|
+
payInAdvanceEntitlements?: UsageBasedEntitlement[];
|
|
2426
|
+
addOnPayInAdvanceEntitlements?: UsageBasedEntitlement[];
|
|
2427
|
+
creditBundles?: CreditBundle[];
|
|
2428
|
+
promoCode?: string | null;
|
|
2429
|
+
}) => void;
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2299
2432
|
/**
|
|
2300
2433
|
*
|
|
2301
2434
|
* @export
|
|
@@ -2418,6 +2551,12 @@ declare interface CheckoutResponseData {
|
|
|
2418
2551
|
* @memberof CheckoutResponseData
|
|
2419
2552
|
*/
|
|
2420
2553
|
periodStart: number;
|
|
2554
|
+
/**
|
|
2555
|
+
*
|
|
2556
|
+
* @type {BillingProviderType}
|
|
2557
|
+
* @memberof CheckoutResponseData
|
|
2558
|
+
*/
|
|
2559
|
+
providerType: BillingProviderType;
|
|
2421
2560
|
/**
|
|
2422
2561
|
*
|
|
2423
2562
|
* @type {string}
|
|
@@ -3068,10 +3207,10 @@ declare interface CompanyPlanDetailResponseData {
|
|
|
3068
3207
|
includedCreditGrants: Array<PlanCreditGrantView>;
|
|
3069
3208
|
/**
|
|
3070
3209
|
*
|
|
3071
|
-
* @type {
|
|
3210
|
+
* @type {CompanyPlanInvalidReason}
|
|
3072
3211
|
* @memberof CompanyPlanDetailResponseData
|
|
3073
3212
|
*/
|
|
3074
|
-
invalidReason?:
|
|
3213
|
+
invalidReason?: CompanyPlanInvalidReason | null;
|
|
3075
3214
|
/**
|
|
3076
3215
|
*
|
|
3077
3216
|
* @type {boolean}
|
|
@@ -3145,6 +3284,12 @@ declare interface CompanyPlanDetailResponseData {
|
|
|
3145
3284
|
* @memberof CompanyPlanDetailResponseData
|
|
3146
3285
|
*/
|
|
3147
3286
|
valid: boolean;
|
|
3287
|
+
/**
|
|
3288
|
+
*
|
|
3289
|
+
* @type {Array<PlanVersionResponseData>}
|
|
3290
|
+
* @memberof CompanyPlanDetailResponseData
|
|
3291
|
+
*/
|
|
3292
|
+
versions: Array<PlanVersionResponseData>;
|
|
3148
3293
|
/**
|
|
3149
3294
|
*
|
|
3150
3295
|
* @type {BillingPriceResponseData}
|
|
@@ -3154,14 +3299,15 @@ declare interface CompanyPlanDetailResponseData {
|
|
|
3154
3299
|
}
|
|
3155
3300
|
|
|
3156
3301
|
/**
|
|
3302
|
+
*
|
|
3157
3303
|
* @export
|
|
3158
3304
|
*/
|
|
3159
|
-
declare const
|
|
3160
|
-
readonly FeatureUsageExceeded: "feature_usage_exceeded";
|
|
3305
|
+
declare const CompanyPlanInvalidReason: {
|
|
3161
3306
|
readonly DowngradeNotPermitted: "downgrade_not_permitted";
|
|
3307
|
+
readonly FeatureUsageExceeded: "feature_usage_exceeded";
|
|
3162
3308
|
};
|
|
3163
3309
|
|
|
3164
|
-
declare type
|
|
3310
|
+
declare type CompanyPlanInvalidReason = (typeof CompanyPlanInvalidReason)[keyof typeof CompanyPlanInvalidReason];
|
|
3165
3311
|
|
|
3166
3312
|
/**
|
|
3167
3313
|
*
|
|
@@ -3490,6 +3636,92 @@ declare interface ComponentCheckoutSettings {
|
|
|
3490
3636
|
taxCollectionEnabled: boolean;
|
|
3491
3637
|
}
|
|
3492
3638
|
|
|
3639
|
+
/**
|
|
3640
|
+
* Schematic API
|
|
3641
|
+
* Schematic API
|
|
3642
|
+
*
|
|
3643
|
+
* The version of the OpenAPI document: 0.1
|
|
3644
|
+
*
|
|
3645
|
+
*
|
|
3646
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3647
|
+
* https://openapi-generator.tech
|
|
3648
|
+
* Do not edit the class manually.
|
|
3649
|
+
*/
|
|
3650
|
+
/**
|
|
3651
|
+
*
|
|
3652
|
+
* @export
|
|
3653
|
+
* @interface ComponentDisplaySettings
|
|
3654
|
+
*/
|
|
3655
|
+
declare interface ComponentDisplaySettings {
|
|
3656
|
+
/**
|
|
3657
|
+
*
|
|
3658
|
+
* @type {boolean}
|
|
3659
|
+
* @memberof ComponentDisplaySettings
|
|
3660
|
+
*/
|
|
3661
|
+
showAsMonthlyPrices: boolean;
|
|
3662
|
+
/**
|
|
3663
|
+
*
|
|
3664
|
+
* @type {boolean}
|
|
3665
|
+
* @memberof ComponentDisplaySettings
|
|
3666
|
+
*/
|
|
3667
|
+
showCredits: boolean;
|
|
3668
|
+
/**
|
|
3669
|
+
*
|
|
3670
|
+
* @type {boolean}
|
|
3671
|
+
* @memberof ComponentDisplaySettings
|
|
3672
|
+
*/
|
|
3673
|
+
showPeriodToggle: boolean;
|
|
3674
|
+
/**
|
|
3675
|
+
*
|
|
3676
|
+
* @type {boolean}
|
|
3677
|
+
* @memberof ComponentDisplaySettings
|
|
3678
|
+
*/
|
|
3679
|
+
showZeroPriceAsFree: boolean;
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
/**
|
|
3683
|
+
* Schematic API
|
|
3684
|
+
* Schematic API
|
|
3685
|
+
*
|
|
3686
|
+
* The version of the OpenAPI document: 0.1
|
|
3687
|
+
*
|
|
3688
|
+
*
|
|
3689
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3690
|
+
* https://openapi-generator.tech
|
|
3691
|
+
* Do not edit the class manually.
|
|
3692
|
+
*/
|
|
3693
|
+
/**
|
|
3694
|
+
*
|
|
3695
|
+
* @export
|
|
3696
|
+
* @interface ComponentDisplaySettings
|
|
3697
|
+
*/
|
|
3698
|
+
declare interface ComponentDisplaySettings_2 {
|
|
3699
|
+
/**
|
|
3700
|
+
*
|
|
3701
|
+
* @type {boolean}
|
|
3702
|
+
* @memberof ComponentDisplaySettings
|
|
3703
|
+
*/
|
|
3704
|
+
showAsMonthlyPrices: boolean;
|
|
3705
|
+
/**
|
|
3706
|
+
*
|
|
3707
|
+
* @type {boolean}
|
|
3708
|
+
* @memberof ComponentDisplaySettings
|
|
3709
|
+
*/
|
|
3710
|
+
showCredits: boolean;
|
|
3711
|
+
/**
|
|
3712
|
+
*
|
|
3713
|
+
* @type {boolean}
|
|
3714
|
+
* @memberof ComponentDisplaySettings
|
|
3715
|
+
*/
|
|
3716
|
+
showPeriodToggle: boolean;
|
|
3717
|
+
/**
|
|
3718
|
+
*
|
|
3719
|
+
* @type {boolean}
|
|
3720
|
+
* @memberof ComponentDisplaySettings
|
|
3721
|
+
*/
|
|
3722
|
+
showZeroPriceAsFree: boolean;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3493
3725
|
/**
|
|
3494
3726
|
*
|
|
3495
3727
|
* @export
|
|
@@ -3573,6 +3805,12 @@ declare interface ComponentHydrateResponseData {
|
|
|
3573
3805
|
* @memberof ComponentHydrateResponseData
|
|
3574
3806
|
*/
|
|
3575
3807
|
defaultPlan?: PlanDetailResponseData;
|
|
3808
|
+
/**
|
|
3809
|
+
*
|
|
3810
|
+
* @type {ComponentDisplaySettings}
|
|
3811
|
+
* @memberof ComponentHydrateResponseData
|
|
3812
|
+
*/
|
|
3813
|
+
displaySettings: ComponentDisplaySettings;
|
|
3576
3814
|
/**
|
|
3577
3815
|
*
|
|
3578
3816
|
* @type {FeatureUsageDetailResponseData}
|
|
@@ -3607,18 +3845,28 @@ declare interface ComponentHydrateResponseData {
|
|
|
3607
3845
|
*
|
|
3608
3846
|
* @type {boolean}
|
|
3609
3847
|
* @memberof ComponentHydrateResponseData
|
|
3848
|
+
* @deprecated
|
|
3849
|
+
*/
|
|
3850
|
+
showAsMonthlyPrices: boolean;
|
|
3851
|
+
/**
|
|
3852
|
+
*
|
|
3853
|
+
* @type {boolean}
|
|
3854
|
+
* @memberof ComponentHydrateResponseData
|
|
3855
|
+
* @deprecated
|
|
3610
3856
|
*/
|
|
3611
3857
|
showCredits: boolean;
|
|
3612
3858
|
/**
|
|
3613
3859
|
*
|
|
3614
3860
|
* @type {boolean}
|
|
3615
3861
|
* @memberof ComponentHydrateResponseData
|
|
3862
|
+
* @deprecated
|
|
3616
3863
|
*/
|
|
3617
3864
|
showPeriodToggle: boolean;
|
|
3618
3865
|
/**
|
|
3619
3866
|
*
|
|
3620
3867
|
* @type {boolean}
|
|
3621
3868
|
* @memberof ComponentHydrateResponseData
|
|
3869
|
+
* @deprecated
|
|
3622
3870
|
*/
|
|
3623
3871
|
showZeroPriceAsFree: boolean;
|
|
3624
3872
|
/**
|
|
@@ -3901,8 +4149,15 @@ declare interface ConfirmPaymentIntentProps {
|
|
|
3901
4149
|
callback: (confirmed: boolean) => void;
|
|
3902
4150
|
}
|
|
3903
4151
|
|
|
4152
|
+
declare interface ConfirmPaymentIntentProps_2 {
|
|
4153
|
+
clientSecret: string;
|
|
4154
|
+
callback: (confirmed: boolean) => void;
|
|
4155
|
+
}
|
|
4156
|
+
|
|
3904
4157
|
export declare const Container: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3905
4158
|
|
|
4159
|
+
export declare const ContainerStyle: RuleSet<object>;
|
|
4160
|
+
|
|
3906
4161
|
export declare const createActiveUsageBasedEntitlementsReducer: (entitlements: FeatureUsageResponseData[], period: string) => (acc: UsageBasedEntitlement[], entitlement: PlanEntitlementResponseData) => UsageBasedEntitlement[];
|
|
3907
4162
|
|
|
3908
4163
|
declare type CreditBundle = BillingCreditBundleView & {
|
|
@@ -3963,6 +4218,12 @@ declare interface CreditCompanyGrantView {
|
|
|
3963
4218
|
* @memberof CreditCompanyGrantView
|
|
3964
4219
|
*/
|
|
3965
4220
|
creditName: string;
|
|
4221
|
+
/**
|
|
4222
|
+
*
|
|
4223
|
+
* @type {Date}
|
|
4224
|
+
* @memberof CreditCompanyGrantView
|
|
4225
|
+
*/
|
|
4226
|
+
exhaustedAt?: Date | null;
|
|
3966
4227
|
/**
|
|
3967
4228
|
*
|
|
3968
4229
|
* @type {Date}
|
|
@@ -4043,16 +4304,34 @@ declare interface CreditCompanyGrantView {
|
|
|
4043
4304
|
quantityUsed: number;
|
|
4044
4305
|
/**
|
|
4045
4306
|
*
|
|
4046
|
-
* @type {
|
|
4307
|
+
* @type {boolean}
|
|
4047
4308
|
* @memberof CreditCompanyGrantView
|
|
4048
4309
|
*/
|
|
4049
|
-
|
|
4310
|
+
renewalEnabled: boolean;
|
|
4050
4311
|
/**
|
|
4051
4312
|
*
|
|
4052
|
-
* @type {
|
|
4313
|
+
* @type {BillingPlanCreditGrantResetCadence}
|
|
4053
4314
|
* @memberof CreditCompanyGrantView
|
|
4054
4315
|
*/
|
|
4055
|
-
|
|
4316
|
+
renewalPeriod?: BillingPlanCreditGrantResetCadence | null;
|
|
4317
|
+
/**
|
|
4318
|
+
*
|
|
4319
|
+
* @type {string}
|
|
4320
|
+
* @memberof CreditCompanyGrantView
|
|
4321
|
+
*/
|
|
4322
|
+
singularName?: string | null;
|
|
4323
|
+
/**
|
|
4324
|
+
*
|
|
4325
|
+
* @type {string}
|
|
4326
|
+
* @memberof CreditCompanyGrantView
|
|
4327
|
+
*/
|
|
4328
|
+
sourceLabel: string;
|
|
4329
|
+
/**
|
|
4330
|
+
*
|
|
4331
|
+
* @type {Array<CreditTransferView>}
|
|
4332
|
+
* @memberof CreditCompanyGrantView
|
|
4333
|
+
*/
|
|
4334
|
+
transfers?: Array<CreditTransferView>;
|
|
4056
4335
|
/**
|
|
4057
4336
|
*
|
|
4058
4337
|
* @type {Date}
|
|
@@ -4111,6 +4390,69 @@ declare interface CreditGrantDetail {
|
|
|
4111
4390
|
quantity: number;
|
|
4112
4391
|
}
|
|
4113
4392
|
|
|
4393
|
+
export declare const Credits: ({ bundles, updateCount }: CreditsProps) => JSX.Element;
|
|
4394
|
+
|
|
4395
|
+
declare interface CreditsProps {
|
|
4396
|
+
isLoading: boolean;
|
|
4397
|
+
bundles: CreditBundle[];
|
|
4398
|
+
updateCount: (id: string, count: number) => void;
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4401
|
+
/**
|
|
4402
|
+
* Schematic API
|
|
4403
|
+
* Schematic API
|
|
4404
|
+
*
|
|
4405
|
+
* The version of the OpenAPI document: 0.1
|
|
4406
|
+
*
|
|
4407
|
+
*
|
|
4408
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4409
|
+
* https://openapi-generator.tech
|
|
4410
|
+
* Do not edit the class manually.
|
|
4411
|
+
*/
|
|
4412
|
+
/**
|
|
4413
|
+
*
|
|
4414
|
+
* @export
|
|
4415
|
+
* @interface CreditTransferView
|
|
4416
|
+
*/
|
|
4417
|
+
declare interface CreditTransferView {
|
|
4418
|
+
/**
|
|
4419
|
+
*
|
|
4420
|
+
* @type {number}
|
|
4421
|
+
* @memberof CreditTransferView
|
|
4422
|
+
*/
|
|
4423
|
+
amount: number;
|
|
4424
|
+
/**
|
|
4425
|
+
*
|
|
4426
|
+
* @type {Date}
|
|
4427
|
+
* @memberof CreditTransferView
|
|
4428
|
+
*/
|
|
4429
|
+
createdAt: Date;
|
|
4430
|
+
/**
|
|
4431
|
+
*
|
|
4432
|
+
* @type {string}
|
|
4433
|
+
* @memberof CreditTransferView
|
|
4434
|
+
*/
|
|
4435
|
+
direction: string;
|
|
4436
|
+
/**
|
|
4437
|
+
*
|
|
4438
|
+
* @type {string}
|
|
4439
|
+
* @memberof CreditTransferView
|
|
4440
|
+
*/
|
|
4441
|
+
id: string;
|
|
4442
|
+
/**
|
|
4443
|
+
*
|
|
4444
|
+
* @type {string}
|
|
4445
|
+
* @memberof CreditTransferView
|
|
4446
|
+
*/
|
|
4447
|
+
reason: string;
|
|
4448
|
+
/**
|
|
4449
|
+
*
|
|
4450
|
+
* @type {string}
|
|
4451
|
+
* @memberof CreditTransferView
|
|
4452
|
+
*/
|
|
4453
|
+
relatedGrantId: string;
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4114
4456
|
/**
|
|
4115
4457
|
* Schematic API
|
|
4116
4458
|
* Schematic API
|
|
@@ -4469,6 +4811,30 @@ declare interface DesignProps_9 {
|
|
|
4469
4811
|
};
|
|
4470
4812
|
}
|
|
4471
4813
|
|
|
4814
|
+
export declare const Dialog: ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLDialogElement | null>>;
|
|
4815
|
+
|
|
4816
|
+
export declare const DialogContent: ForwardRefExoticComponent<DialogContentProps & RefAttributes<HTMLDivElement | null>>;
|
|
4817
|
+
|
|
4818
|
+
declare interface DialogContentProps {
|
|
4819
|
+
children?: React.ReactNode;
|
|
4820
|
+
}
|
|
4821
|
+
|
|
4822
|
+
export declare const DialogHeader: ({ children, bordered, onClose, }: DialogHeaderProps) => JSX.Element;
|
|
4823
|
+
|
|
4824
|
+
declare interface DialogHeaderProps {
|
|
4825
|
+
children?: React.ReactNode;
|
|
4826
|
+
bordered?: boolean;
|
|
4827
|
+
onClose?: () => void;
|
|
4828
|
+
}
|
|
4829
|
+
|
|
4830
|
+
export declare interface DialogProps extends React.DialogHTMLAttributes<HTMLDialogElement> {
|
|
4831
|
+
isModal?: boolean;
|
|
4832
|
+
size?: DialogSize;
|
|
4833
|
+
top?: number;
|
|
4834
|
+
}
|
|
4835
|
+
|
|
4836
|
+
export declare type DialogSize = "sm" | "md" | "lg" | "auto";
|
|
4837
|
+
|
|
4472
4838
|
declare const Element_2: IStyledComponentBase<"web", FastOmit<FastOmit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
4473
4839
|
$viewport?: {
|
|
4474
4840
|
"sm"?: TransientCSSProperties;
|
|
@@ -4508,6 +4874,7 @@ export declare interface EmbedContextProps extends EmbedState {
|
|
|
4508
4874
|
setError: (error: Error) => void;
|
|
4509
4875
|
setLayout: (layout: EmbedLayout) => void;
|
|
4510
4876
|
setCheckoutState: (state: CheckoutState) => void;
|
|
4877
|
+
clearCheckoutState: () => void;
|
|
4511
4878
|
initializeWithPlan: (config: string | BypassConfig) => void;
|
|
4512
4879
|
setData: (data: HydrateDataWithCompanyContext) => void;
|
|
4513
4880
|
updateSettings: (settings: DeepPartial<EmbedSettings>, options?: {
|
|
@@ -5500,7 +5867,7 @@ declare interface FeatureUsageResponseData {
|
|
|
5500
5867
|
*/
|
|
5501
5868
|
access: boolean;
|
|
5502
5869
|
/**
|
|
5503
|
-
* The maximum amount of usage that is permitted; a null value indicates that unlimited usage is permitted.
|
|
5870
|
+
* The maximum amount of usage that is permitted; a null value indicates that unlimited usage is permitted or that this is a credit-based entitlement (use credit_remaining instead).
|
|
5504
5871
|
* @type {number}
|
|
5505
5872
|
* @memberof FeatureUsageResponseData
|
|
5506
5873
|
*/
|
|
@@ -5550,9 +5917,10 @@ declare interface FeatureUsageResponseData {
|
|
|
5550
5917
|
*/
|
|
5551
5918
|
creditRemaining?: number | null;
|
|
5552
5919
|
/**
|
|
5553
|
-
*
|
|
5920
|
+
* Deprecated: Use credit_remaining instead.
|
|
5554
5921
|
* @type {number}
|
|
5555
5922
|
* @memberof FeatureUsageResponseData
|
|
5923
|
+
* @deprecated
|
|
5556
5924
|
*/
|
|
5557
5925
|
creditTotal?: number | null;
|
|
5558
5926
|
/**
|
|
@@ -5561,6 +5929,12 @@ declare interface FeatureUsageResponseData {
|
|
|
5561
5929
|
* @memberof FeatureUsageResponseData
|
|
5562
5930
|
*/
|
|
5563
5931
|
creditTypeIcon?: string | null;
|
|
5932
|
+
/**
|
|
5933
|
+
*
|
|
5934
|
+
* @type {FeatureUsageResponseDataCreditUsageAggregation}
|
|
5935
|
+
* @memberof FeatureUsageResponseData
|
|
5936
|
+
*/
|
|
5937
|
+
creditUsageAggregation?: FeatureUsageResponseDataCreditUsageAggregation;
|
|
5564
5938
|
/**
|
|
5565
5939
|
*
|
|
5566
5940
|
* @type {number}
|
|
@@ -5682,7 +6056,7 @@ declare interface FeatureUsageResponseData {
|
|
|
5682
6056
|
*/
|
|
5683
6057
|
softLimit?: number | null;
|
|
5684
6058
|
/**
|
|
5685
|
-
* The amount of usage that has been consumed; a null value indicates that usage is not being measured.
|
|
6059
|
+
* The amount of usage that has been consumed; a null value indicates that usage is not being measured or that this is a credit-based entitlement (use credit_used instead).
|
|
5686
6060
|
* @type {number}
|
|
5687
6061
|
* @memberof FeatureUsageResponseData
|
|
5688
6062
|
*/
|
|
@@ -5695,6 +6069,49 @@ declare interface FeatureUsageResponseData {
|
|
|
5695
6069
|
yearlyUsageBasedPrice?: BillingPriceView;
|
|
5696
6070
|
}
|
|
5697
6071
|
|
|
6072
|
+
/**
|
|
6073
|
+
* Schematic API
|
|
6074
|
+
* Schematic API
|
|
6075
|
+
*
|
|
6076
|
+
* The version of the OpenAPI document: 0.1
|
|
6077
|
+
*
|
|
6078
|
+
*
|
|
6079
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6080
|
+
* https://openapi-generator.tech
|
|
6081
|
+
* Do not edit the class manually.
|
|
6082
|
+
*/
|
|
6083
|
+
/**
|
|
6084
|
+
*
|
|
6085
|
+
* @export
|
|
6086
|
+
* @interface FeatureUsageResponseDataCreditUsageAggregation
|
|
6087
|
+
*/
|
|
6088
|
+
declare interface FeatureUsageResponseDataCreditUsageAggregation {
|
|
6089
|
+
/**
|
|
6090
|
+
* Credit usage within the current billing period
|
|
6091
|
+
* @type {number}
|
|
6092
|
+
* @memberof FeatureUsageResponseDataCreditUsageAggregation
|
|
6093
|
+
*/
|
|
6094
|
+
usageThisBillingPeriod?: number | null;
|
|
6095
|
+
/**
|
|
6096
|
+
* Credit usage within the current calendar month
|
|
6097
|
+
* @type {number}
|
|
6098
|
+
* @memberof FeatureUsageResponseDataCreditUsageAggregation
|
|
6099
|
+
*/
|
|
6100
|
+
usageThisCalendarMonth?: number | null;
|
|
6101
|
+
/**
|
|
6102
|
+
* Credit usage within the current calendar week (Monday to Sunday)
|
|
6103
|
+
* @type {number}
|
|
6104
|
+
* @memberof FeatureUsageResponseDataCreditUsageAggregation
|
|
6105
|
+
*/
|
|
6106
|
+
usageThisWeek?: number | null;
|
|
6107
|
+
/**
|
|
6108
|
+
* Credit usage for the current day
|
|
6109
|
+
* @type {number}
|
|
6110
|
+
* @memberof FeatureUsageResponseDataCreditUsageAggregation
|
|
6111
|
+
*/
|
|
6112
|
+
usageToday?: number | null;
|
|
6113
|
+
}
|
|
6114
|
+
|
|
5698
6115
|
declare type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
|
|
5699
6116
|
|
|
5700
6117
|
/**
|
|
@@ -6068,6 +6485,7 @@ export declare const initialContext: {
|
|
|
6068
6485
|
setAccessToken: () => never;
|
|
6069
6486
|
setLayout: () => never;
|
|
6070
6487
|
setCheckoutState: () => never;
|
|
6488
|
+
clearCheckoutState: () => never;
|
|
6071
6489
|
initializeWithPlan: () => never;
|
|
6072
6490
|
setData: () => never;
|
|
6073
6491
|
updateSettings: () => never;
|
|
@@ -6091,17 +6509,6 @@ $color?: "primary" | "secondary" | "danger";
|
|
|
6091
6509
|
$variant?: "filled" | "outline" | "ghost" | "text";
|
|
6092
6510
|
}>> & string;
|
|
6093
6511
|
|
|
6094
|
-
/**
|
|
6095
|
-
* Schematic API
|
|
6096
|
-
* Schematic API
|
|
6097
|
-
*
|
|
6098
|
-
* The version of the OpenAPI document: 0.1
|
|
6099
|
-
*
|
|
6100
|
-
*
|
|
6101
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6102
|
-
* https://openapi-generator.tech
|
|
6103
|
-
* Do not edit the class manually.
|
|
6104
|
-
*/
|
|
6105
6512
|
/**
|
|
6106
6513
|
*
|
|
6107
6514
|
* @export
|
|
@@ -6186,6 +6593,12 @@ declare interface InvoiceResponseData {
|
|
|
6186
6593
|
* @memberof InvoiceResponseData
|
|
6187
6594
|
*/
|
|
6188
6595
|
paymentMethodExternalId?: string | null;
|
|
6596
|
+
/**
|
|
6597
|
+
*
|
|
6598
|
+
* @type {BillingProviderType}
|
|
6599
|
+
* @memberof InvoiceResponseData
|
|
6600
|
+
*/
|
|
6601
|
+
providerType: BillingProviderType;
|
|
6189
6602
|
/**
|
|
6190
6603
|
*
|
|
6191
6604
|
* @type {string}
|
|
@@ -6291,31 +6704,6 @@ declare interface Middleware {
|
|
|
6291
6704
|
onError?(context: ErrorContext): Promise<Response | void>;
|
|
6292
6705
|
}
|
|
6293
6706
|
|
|
6294
|
-
export declare const Modal: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDivElement | null>>;
|
|
6295
|
-
|
|
6296
|
-
export declare const ModalContent: ForwardRefExoticComponent<ModalContentProps & RefAttributes<HTMLDivElement | null>>;
|
|
6297
|
-
|
|
6298
|
-
declare interface ModalContentProps {
|
|
6299
|
-
children?: React.ReactNode;
|
|
6300
|
-
}
|
|
6301
|
-
|
|
6302
|
-
export declare const ModalHeader: ({ children, bordered, onClose, }: ModalHeaderProps) => JSX.Element;
|
|
6303
|
-
|
|
6304
|
-
declare interface ModalHeaderProps {
|
|
6305
|
-
children?: React.ReactNode;
|
|
6306
|
-
bordered?: boolean;
|
|
6307
|
-
onClose?: () => void;
|
|
6308
|
-
}
|
|
6309
|
-
|
|
6310
|
-
export declare interface ModalProps extends React.HTMLAttributes<HTMLElement> {
|
|
6311
|
-
children: React.ReactNode;
|
|
6312
|
-
size?: ModalSize;
|
|
6313
|
-
top?: number;
|
|
6314
|
-
onClose?: () => void;
|
|
6315
|
-
}
|
|
6316
|
-
|
|
6317
|
-
export declare type ModalSize = "sm" | "md" | "lg" | "auto";
|
|
6318
|
-
|
|
6319
6707
|
export declare const Notice: IStyledComponentBase<"web", FastOmit<FastOmit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
6320
6708
|
$viewport?: {
|
|
6321
6709
|
"sm"?: TransientCSSProperties;
|
|
@@ -6327,6 +6715,17 @@ $viewport?: {
|
|
|
6327
6715
|
};
|
|
6328
6716
|
}, never>> & string;
|
|
6329
6717
|
|
|
6718
|
+
export declare const Overlay: IStyledComponentBase<"web", FastOmit<FastOmit<FastOmit<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
|
|
6719
|
+
$viewport?: {
|
|
6720
|
+
"sm"?: TransientCSSProperties;
|
|
6721
|
+
"md"?: TransientCSSProperties;
|
|
6722
|
+
"lg"?: TransientCSSProperties;
|
|
6723
|
+
"xl"?: TransientCSSProperties;
|
|
6724
|
+
"2xl"?: TransientCSSProperties;
|
|
6725
|
+
[key: string]: TransientCSSProperties | undefined;
|
|
6726
|
+
};
|
|
6727
|
+
}, never>, never>> & string;
|
|
6728
|
+
|
|
6330
6729
|
export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
|
|
6331
6730
|
portal?: HTMLElement | null;
|
|
6332
6731
|
allowEdit?: boolean;
|
|
@@ -6352,17 +6751,6 @@ declare interface PaymentMethodDetailsProps {
|
|
|
6352
6751
|
|
|
6353
6752
|
export declare type PaymentMethodProps = DesignProps_5;
|
|
6354
6753
|
|
|
6355
|
-
/**
|
|
6356
|
-
* Schematic API
|
|
6357
|
-
* Schematic API
|
|
6358
|
-
*
|
|
6359
|
-
* The version of the OpenAPI document: 0.1
|
|
6360
|
-
*
|
|
6361
|
-
*
|
|
6362
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6363
|
-
* https://openapi-generator.tech
|
|
6364
|
-
* Do not edit the class manually.
|
|
6365
|
-
*/
|
|
6366
6754
|
/**
|
|
6367
6755
|
*
|
|
6368
6756
|
* @export
|
|
@@ -6465,6 +6853,12 @@ declare interface PaymentMethodResponseData {
|
|
|
6465
6853
|
* @memberof PaymentMethodResponseData
|
|
6466
6854
|
*/
|
|
6467
6855
|
paymentMethodType: string;
|
|
6856
|
+
/**
|
|
6857
|
+
*
|
|
6858
|
+
* @type {BillingProviderType}
|
|
6859
|
+
* @memberof PaymentMethodResponseData
|
|
6860
|
+
*/
|
|
6861
|
+
providerType: BillingProviderType;
|
|
6468
6862
|
/**
|
|
6469
6863
|
*
|
|
6470
6864
|
* @type {Date}
|
|
@@ -6473,7 +6867,9 @@ declare interface PaymentMethodResponseData {
|
|
|
6473
6867
|
updatedAt: Date;
|
|
6474
6868
|
}
|
|
6475
6869
|
|
|
6476
|
-
declare
|
|
6870
|
+
export declare const Plan: ({ isLoading, plans, selectedPlan, period, selectPlan, shouldTrial, tooltipPortal, }: PlanProps) => JSX.Element;
|
|
6871
|
+
|
|
6872
|
+
declare type Plan_2 = CompanyPlanDetailResponseData;
|
|
6477
6873
|
|
|
6478
6874
|
/**
|
|
6479
6875
|
*
|
|
@@ -6941,6 +7337,12 @@ declare interface PlanDetailResponseData {
|
|
|
6941
7337
|
* @memberof PlanDetailResponseData
|
|
6942
7338
|
*/
|
|
6943
7339
|
updatedAt: Date;
|
|
7340
|
+
/**
|
|
7341
|
+
*
|
|
7342
|
+
* @type {Array<PlanVersionResponseData>}
|
|
7343
|
+
* @memberof PlanDetailResponseData
|
|
7344
|
+
*/
|
|
7345
|
+
versions: Array<PlanVersionResponseData>;
|
|
6944
7346
|
/**
|
|
6945
7347
|
*
|
|
6946
7348
|
* @type {BillingPriceResponseData}
|
|
@@ -7271,6 +7673,20 @@ portal?: HTMLElement | null;
|
|
|
7271
7673
|
|
|
7272
7674
|
export declare type PlanManagerProps = DesignProps_6;
|
|
7273
7675
|
|
|
7676
|
+
declare interface PlanProps {
|
|
7677
|
+
isLoading: boolean;
|
|
7678
|
+
plans: SelectedPlan[];
|
|
7679
|
+
selectedPlan?: SelectedPlan;
|
|
7680
|
+
period: string;
|
|
7681
|
+
selectPlan: (updates: {
|
|
7682
|
+
plan: SelectedPlan;
|
|
7683
|
+
period?: string;
|
|
7684
|
+
shouldTrial?: boolean;
|
|
7685
|
+
}) => void;
|
|
7686
|
+
shouldTrial: boolean;
|
|
7687
|
+
tooltipPortal?: HTMLElement | null;
|
|
7688
|
+
}
|
|
7689
|
+
|
|
7274
7690
|
/**
|
|
7275
7691
|
*
|
|
7276
7692
|
* @export
|
|
@@ -7407,6 +7823,178 @@ declare const PlanType_2: {
|
|
|
7407
7823
|
|
|
7408
7824
|
declare type PlanType_2 = (typeof PlanType_2)[keyof typeof PlanType_2];
|
|
7409
7825
|
|
|
7826
|
+
/**
|
|
7827
|
+
*
|
|
7828
|
+
* @export
|
|
7829
|
+
* @interface PlanVersionResponseData
|
|
7830
|
+
*/
|
|
7831
|
+
declare interface PlanVersionResponseData {
|
|
7832
|
+
/**
|
|
7833
|
+
*
|
|
7834
|
+
* @type {Date}
|
|
7835
|
+
* @memberof PlanVersionResponseData
|
|
7836
|
+
*/
|
|
7837
|
+
createdAt: Date;
|
|
7838
|
+
/**
|
|
7839
|
+
*
|
|
7840
|
+
* @type {string}
|
|
7841
|
+
* @memberof PlanVersionResponseData
|
|
7842
|
+
*/
|
|
7843
|
+
description: string;
|
|
7844
|
+
/**
|
|
7845
|
+
*
|
|
7846
|
+
* @type {string}
|
|
7847
|
+
* @memberof PlanVersionResponseData
|
|
7848
|
+
*/
|
|
7849
|
+
environmentId: string;
|
|
7850
|
+
/**
|
|
7851
|
+
*
|
|
7852
|
+
* @type {string}
|
|
7853
|
+
* @memberof PlanVersionResponseData
|
|
7854
|
+
*/
|
|
7855
|
+
icon: string;
|
|
7856
|
+
/**
|
|
7857
|
+
*
|
|
7858
|
+
* @type {string}
|
|
7859
|
+
* @memberof PlanVersionResponseData
|
|
7860
|
+
*/
|
|
7861
|
+
id: string;
|
|
7862
|
+
/**
|
|
7863
|
+
*
|
|
7864
|
+
* @type {string}
|
|
7865
|
+
* @memberof PlanVersionResponseData
|
|
7866
|
+
*/
|
|
7867
|
+
name: string;
|
|
7868
|
+
/**
|
|
7869
|
+
*
|
|
7870
|
+
* @type {string}
|
|
7871
|
+
* @memberof PlanVersionResponseData
|
|
7872
|
+
*/
|
|
7873
|
+
originalPlanId?: string | null;
|
|
7874
|
+
/**
|
|
7875
|
+
*
|
|
7876
|
+
* @type {PlanType}
|
|
7877
|
+
* @memberof PlanVersionResponseData
|
|
7878
|
+
*/
|
|
7879
|
+
planType: PlanType;
|
|
7880
|
+
/**
|
|
7881
|
+
*
|
|
7882
|
+
* @type {PlanVersionStatus}
|
|
7883
|
+
* @memberof PlanVersionResponseData
|
|
7884
|
+
*/
|
|
7885
|
+
status: PlanVersionStatus;
|
|
7886
|
+
/**
|
|
7887
|
+
*
|
|
7888
|
+
* @type {Date}
|
|
7889
|
+
* @memberof PlanVersionResponseData
|
|
7890
|
+
*/
|
|
7891
|
+
updatedAt: Date;
|
|
7892
|
+
/**
|
|
7893
|
+
*
|
|
7894
|
+
* @type {number}
|
|
7895
|
+
* @memberof PlanVersionResponseData
|
|
7896
|
+
*/
|
|
7897
|
+
version: number;
|
|
7898
|
+
}
|
|
7899
|
+
|
|
7900
|
+
/**
|
|
7901
|
+
*
|
|
7902
|
+
* @export
|
|
7903
|
+
* @interface PlanVersionResponseData
|
|
7904
|
+
*/
|
|
7905
|
+
declare interface PlanVersionResponseData_2 {
|
|
7906
|
+
/**
|
|
7907
|
+
*
|
|
7908
|
+
* @type {Date}
|
|
7909
|
+
* @memberof PlanVersionResponseData
|
|
7910
|
+
*/
|
|
7911
|
+
createdAt: Date;
|
|
7912
|
+
/**
|
|
7913
|
+
*
|
|
7914
|
+
* @type {string}
|
|
7915
|
+
* @memberof PlanVersionResponseData
|
|
7916
|
+
*/
|
|
7917
|
+
description: string;
|
|
7918
|
+
/**
|
|
7919
|
+
*
|
|
7920
|
+
* @type {string}
|
|
7921
|
+
* @memberof PlanVersionResponseData
|
|
7922
|
+
*/
|
|
7923
|
+
environmentId: string;
|
|
7924
|
+
/**
|
|
7925
|
+
*
|
|
7926
|
+
* @type {string}
|
|
7927
|
+
* @memberof PlanVersionResponseData
|
|
7928
|
+
*/
|
|
7929
|
+
icon: string;
|
|
7930
|
+
/**
|
|
7931
|
+
*
|
|
7932
|
+
* @type {string}
|
|
7933
|
+
* @memberof PlanVersionResponseData
|
|
7934
|
+
*/
|
|
7935
|
+
id: string;
|
|
7936
|
+
/**
|
|
7937
|
+
*
|
|
7938
|
+
* @type {string}
|
|
7939
|
+
* @memberof PlanVersionResponseData
|
|
7940
|
+
*/
|
|
7941
|
+
name: string;
|
|
7942
|
+
/**
|
|
7943
|
+
*
|
|
7944
|
+
* @type {string}
|
|
7945
|
+
* @memberof PlanVersionResponseData
|
|
7946
|
+
*/
|
|
7947
|
+
originalPlanId?: string | null;
|
|
7948
|
+
/**
|
|
7949
|
+
*
|
|
7950
|
+
* @type {PlanType}
|
|
7951
|
+
* @memberof PlanVersionResponseData
|
|
7952
|
+
*/
|
|
7953
|
+
planType: PlanType_2;
|
|
7954
|
+
/**
|
|
7955
|
+
*
|
|
7956
|
+
* @type {PlanVersionStatus}
|
|
7957
|
+
* @memberof PlanVersionResponseData
|
|
7958
|
+
*/
|
|
7959
|
+
status: PlanVersionStatus_2;
|
|
7960
|
+
/**
|
|
7961
|
+
*
|
|
7962
|
+
* @type {Date}
|
|
7963
|
+
* @memberof PlanVersionResponseData
|
|
7964
|
+
*/
|
|
7965
|
+
updatedAt: Date;
|
|
7966
|
+
/**
|
|
7967
|
+
*
|
|
7968
|
+
* @type {number}
|
|
7969
|
+
* @memberof PlanVersionResponseData
|
|
7970
|
+
*/
|
|
7971
|
+
version: number;
|
|
7972
|
+
}
|
|
7973
|
+
|
|
7974
|
+
/**
|
|
7975
|
+
*
|
|
7976
|
+
* @export
|
|
7977
|
+
*/
|
|
7978
|
+
declare const PlanVersionStatus: {
|
|
7979
|
+
readonly Published: "published";
|
|
7980
|
+
readonly Draft: "draft";
|
|
7981
|
+
readonly Archived: "archived";
|
|
7982
|
+
};
|
|
7983
|
+
|
|
7984
|
+
declare type PlanVersionStatus = (typeof PlanVersionStatus)[keyof typeof PlanVersionStatus];
|
|
7985
|
+
|
|
7986
|
+
/**
|
|
7987
|
+
*
|
|
7988
|
+
* @export
|
|
7989
|
+
*/
|
|
7990
|
+
declare const PlanVersionStatus_2: {
|
|
7991
|
+
readonly Published: "published";
|
|
7992
|
+
readonly Draft: "draft";
|
|
7993
|
+
readonly Archived: "archived";
|
|
7994
|
+
};
|
|
7995
|
+
|
|
7996
|
+
declare type PlanVersionStatus_2 = (typeof PlanVersionStatus_2)[keyof typeof PlanVersionStatus_2];
|
|
7997
|
+
|
|
7410
7998
|
/**
|
|
7411
7999
|
*
|
|
7412
8000
|
* @export
|
|
@@ -7565,6 +8153,12 @@ declare interface PlanViewPublicResponseData {
|
|
|
7565
8153
|
* @memberof PlanViewPublicResponseData
|
|
7566
8154
|
*/
|
|
7567
8155
|
updatedAt: Date;
|
|
8156
|
+
/**
|
|
8157
|
+
*
|
|
8158
|
+
* @type {Array<PlanVersionResponseData>}
|
|
8159
|
+
* @memberof PlanViewPublicResponseData
|
|
8160
|
+
*/
|
|
8161
|
+
versions: Array<PlanVersionResponseData_2>;
|
|
7568
8162
|
/**
|
|
7569
8163
|
*
|
|
7570
8164
|
* @type {BillingPriceResponseData}
|
|
@@ -7915,6 +8509,12 @@ declare interface PreviewSubscriptionFinanceResponseData {
|
|
|
7915
8509
|
* @memberof PreviewSubscriptionFinanceResponseData
|
|
7916
8510
|
*/
|
|
7917
8511
|
taxRequireBillingDetails: boolean;
|
|
8512
|
+
/**
|
|
8513
|
+
*
|
|
8514
|
+
* @type {number}
|
|
8515
|
+
* @memberof PreviewSubscriptionFinanceResponseData
|
|
8516
|
+
*/
|
|
8517
|
+
totalPerBillingPeriod: number;
|
|
7918
8518
|
/**
|
|
7919
8519
|
*
|
|
7920
8520
|
* @type {Date}
|
|
@@ -8030,22 +8630,38 @@ declare interface PublicPlansResponseData {
|
|
|
8030
8630
|
* @memberof PublicPlansResponseData
|
|
8031
8631
|
*/
|
|
8032
8632
|
capabilities?: ComponentCapabilities_2;
|
|
8633
|
+
/**
|
|
8634
|
+
*
|
|
8635
|
+
* @type {ComponentDisplaySettings}
|
|
8636
|
+
* @memberof PublicPlansResponseData
|
|
8637
|
+
*/
|
|
8638
|
+
displaySettings: ComponentDisplaySettings_2;
|
|
8033
8639
|
/**
|
|
8034
8640
|
*
|
|
8035
8641
|
* @type {boolean}
|
|
8036
8642
|
* @memberof PublicPlansResponseData
|
|
8643
|
+
* @deprecated
|
|
8644
|
+
*/
|
|
8645
|
+
showAsMonthlyPrices: boolean;
|
|
8646
|
+
/**
|
|
8647
|
+
*
|
|
8648
|
+
* @type {boolean}
|
|
8649
|
+
* @memberof PublicPlansResponseData
|
|
8650
|
+
* @deprecated
|
|
8037
8651
|
*/
|
|
8038
8652
|
showCredits: boolean;
|
|
8039
8653
|
/**
|
|
8040
8654
|
*
|
|
8041
8655
|
* @type {boolean}
|
|
8042
8656
|
* @memberof PublicPlansResponseData
|
|
8657
|
+
* @deprecated
|
|
8043
8658
|
*/
|
|
8044
8659
|
showPeriodToggle: boolean;
|
|
8045
8660
|
/**
|
|
8046
8661
|
*
|
|
8047
8662
|
* @type {boolean}
|
|
8048
8663
|
* @memberof PublicPlansResponseData
|
|
8664
|
+
* @deprecated
|
|
8049
8665
|
*/
|
|
8050
8666
|
showZeroPriceAsFree: boolean;
|
|
8051
8667
|
}
|
|
@@ -8062,6 +8678,8 @@ declare type RequestState<TData> = {
|
|
|
8062
8678
|
data: TData | undefined;
|
|
8063
8679
|
};
|
|
8064
8680
|
|
|
8681
|
+
export declare const ResetStyle: RuleSet<object>;
|
|
8682
|
+
|
|
8065
8683
|
declare interface ResponseContext {
|
|
8066
8684
|
fetch: FetchAPI;
|
|
8067
8685
|
url: string;
|
|
@@ -8677,7 +9295,7 @@ declare type RuleRuleTypeEnum = (typeof RuleRuleTypeEnum)[keyof typeof RuleRuleT
|
|
|
8677
9295
|
|
|
8678
9296
|
export declare const SchematicEmbed: ({ id, accessToken }: EmbedProps) => JSX.Element;
|
|
8679
9297
|
|
|
8680
|
-
declare type SelectedPlan =
|
|
9298
|
+
declare type SelectedPlan = Plan_2 & {
|
|
8681
9299
|
isSelected: boolean;
|
|
8682
9300
|
};
|
|
8683
9301
|
|
|
@@ -8827,11 +9445,12 @@ export declare interface ThemeSettings {
|
|
|
8827
9445
|
};
|
|
8828
9446
|
}
|
|
8829
9447
|
|
|
8830
|
-
export declare const Tooltip: ({ trigger, content, position, fullWidth, ...rest }: TooltipProps) => JSX.Element;
|
|
9448
|
+
export declare const Tooltip: ({ trigger, content, portal, position, fullWidth, ...rest }: TooltipProps) => JSX.Element;
|
|
8831
9449
|
|
|
8832
9450
|
export declare interface TooltipProps extends BoxProps {
|
|
8833
9451
|
trigger: React.ReactNode;
|
|
8834
9452
|
content: React.ReactNode;
|
|
9453
|
+
portal?: HTMLElement | null;
|
|
8835
9454
|
position?: Position;
|
|
8836
9455
|
fullWidth?: boolean;
|
|
8837
9456
|
}
|
|
@@ -9053,6 +9672,8 @@ declare interface UpdatePaymentMethodResponse {
|
|
|
9053
9672
|
params: object;
|
|
9054
9673
|
}
|
|
9055
9674
|
|
|
9675
|
+
export declare const Usage: ({ entitlements, updateQuantity, period }: UsageProps) => JSX.Element;
|
|
9676
|
+
|
|
9056
9677
|
declare interface UsageBasedEntitlement extends PlanEntitlementResponseData {
|
|
9057
9678
|
allocation: number;
|
|
9058
9679
|
usage: number;
|
|
@@ -9139,6 +9760,14 @@ declare interface UsageBasedEntitlementResponseData {
|
|
|
9139
9760
|
yearlyUsageBasedPrice?: BillingPriceView;
|
|
9140
9761
|
}
|
|
9141
9762
|
|
|
9763
|
+
declare interface UsageProps {
|
|
9764
|
+
isLoading: boolean;
|
|
9765
|
+
period: string;
|
|
9766
|
+
selectedPlan?: SelectedPlan;
|
|
9767
|
+
entitlements: UsageBasedEntitlement[];
|
|
9768
|
+
updateQuantity: (id: string, quantity: number) => void;
|
|
9769
|
+
}
|
|
9770
|
+
|
|
9142
9771
|
export declare function useAvailablePlans(activePeriod: string, options?: AvailablePlanOptions): {
|
|
9143
9772
|
plans: SelectedPlan[];
|
|
9144
9773
|
addOns: SelectedPlan[];
|
|
@@ -9173,7 +9802,8 @@ export declare function useRequest<TData>(fn: () => Promise<{
|
|
|
9173
9802
|
|
|
9174
9803
|
export declare function useTrialEnd(): {
|
|
9175
9804
|
endDate: Date | undefined;
|
|
9176
|
-
|
|
9805
|
+
amount: number | undefined;
|
|
9806
|
+
units: string | undefined;
|
|
9177
9807
|
};
|
|
9178
9808
|
|
|
9179
9809
|
export declare function useWrapChildren(ref: React.RefObject<HTMLElement[]>): boolean;
|