@schematichq/schematic-components 2.1.0 → 2.1.2
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 +261 -112
- package/dist/schematic-components.d.ts +148 -12
- package/dist/schematic-components.esm.js +355 -204
- package/package.json +11 -11
|
@@ -350,6 +350,48 @@ declare interface BillingCreditResponseData_2 {
|
|
|
350
350
|
* @interface BillingPlanCreditGrantResponseData
|
|
351
351
|
*/
|
|
352
352
|
declare interface BillingPlanCreditGrantResponseData {
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @type {number}
|
|
356
|
+
* @memberof BillingPlanCreditGrantResponseData
|
|
357
|
+
*/
|
|
358
|
+
autoTopupAmount?: number | null;
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @type {string}
|
|
362
|
+
* @memberof BillingPlanCreditGrantResponseData
|
|
363
|
+
*/
|
|
364
|
+
autoTopupAmountType?: string | null;
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @type {boolean}
|
|
368
|
+
* @memberof BillingPlanCreditGrantResponseData
|
|
369
|
+
*/
|
|
370
|
+
autoTopupEnabled: boolean;
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @type {string}
|
|
374
|
+
* @memberof BillingPlanCreditGrantResponseData
|
|
375
|
+
*/
|
|
376
|
+
autoTopupExpiryType?: string | null;
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @type {string}
|
|
380
|
+
* @memberof BillingPlanCreditGrantResponseData
|
|
381
|
+
*/
|
|
382
|
+
autoTopupExpiryUnit?: string | null;
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @type {number}
|
|
386
|
+
* @memberof BillingPlanCreditGrantResponseData
|
|
387
|
+
*/
|
|
388
|
+
autoTopupExpiryUnitCount?: number | null;
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @type {number}
|
|
392
|
+
* @memberof BillingPlanCreditGrantResponseData
|
|
393
|
+
*/
|
|
394
|
+
autoTopupThresholdPercent?: number | null;
|
|
353
395
|
/**
|
|
354
396
|
*
|
|
355
397
|
* @type {Date}
|
|
@@ -1646,6 +1688,12 @@ declare interface BillingSubscriptionDiscountView {
|
|
|
1646
1688
|
* @interface BillingSubscriptionView
|
|
1647
1689
|
*/
|
|
1648
1690
|
declare interface BillingSubscriptionView {
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @type {string}
|
|
1694
|
+
* @memberof BillingSubscriptionView
|
|
1695
|
+
*/
|
|
1696
|
+
applicationId?: string | null;
|
|
1649
1697
|
/**
|
|
1650
1698
|
*
|
|
1651
1699
|
* @type {number}
|
|
@@ -1935,6 +1983,12 @@ declare interface CheckoutResponse {
|
|
|
1935
1983
|
* @interface CheckoutResponseData
|
|
1936
1984
|
*/
|
|
1937
1985
|
declare interface CheckoutResponseData {
|
|
1986
|
+
/**
|
|
1987
|
+
*
|
|
1988
|
+
* @type {string}
|
|
1989
|
+
* @memberof CheckoutResponseData
|
|
1990
|
+
*/
|
|
1991
|
+
applicationId?: string | null;
|
|
1938
1992
|
/**
|
|
1939
1993
|
*
|
|
1940
1994
|
* @type {number}
|
|
@@ -2071,6 +2125,7 @@ export declare type CheckoutState = {
|
|
|
2071
2125
|
usage?: boolean;
|
|
2072
2126
|
addOnUsage?: boolean;
|
|
2073
2127
|
credits?: boolean;
|
|
2128
|
+
bypassPlanSelection?: boolean;
|
|
2074
2129
|
};
|
|
2075
2130
|
|
|
2076
2131
|
/**
|
|
@@ -2707,17 +2762,6 @@ declare interface CompanyPlanDetailResponseData {
|
|
|
2707
2762
|
yearlyPrice?: BillingPriceResponseData;
|
|
2708
2763
|
}
|
|
2709
2764
|
|
|
2710
|
-
/**
|
|
2711
|
-
* Schematic API
|
|
2712
|
-
* Schematic API
|
|
2713
|
-
*
|
|
2714
|
-
* The version of the OpenAPI document: 0.1
|
|
2715
|
-
*
|
|
2716
|
-
*
|
|
2717
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2718
|
-
* https://openapi-generator.tech
|
|
2719
|
-
* Do not edit the class manually.
|
|
2720
|
-
*/
|
|
2721
2765
|
/**
|
|
2722
2766
|
*
|
|
2723
2767
|
* @export
|
|
@@ -2760,6 +2804,12 @@ declare interface CompanyPlanWithBillingSubView {
|
|
|
2760
2804
|
* @memberof CompanyPlanWithBillingSubView
|
|
2761
2805
|
*/
|
|
2762
2806
|
imageUrl?: string | null;
|
|
2807
|
+
/**
|
|
2808
|
+
*
|
|
2809
|
+
* @type {Array<PlanCreditGrantView>}
|
|
2810
|
+
* @memberof CompanyPlanWithBillingSubView
|
|
2811
|
+
*/
|
|
2812
|
+
includedCreditGrants: Array<PlanCreditGrantView>;
|
|
2763
2813
|
/**
|
|
2764
2814
|
*
|
|
2765
2815
|
* @type {string}
|
|
@@ -4050,6 +4100,7 @@ export declare interface EmbedContextProps extends EmbedState {
|
|
|
4050
4100
|
setError: (error: Error) => void;
|
|
4051
4101
|
setLayout: (layout: EmbedLayout) => void;
|
|
4052
4102
|
setCheckoutState: (state: CheckoutState) => void;
|
|
4103
|
+
initializeWithPlan: (planId: string) => void;
|
|
4053
4104
|
setData: (data: HydrateDataWithCompanyContext) => void;
|
|
4054
4105
|
updateSettings: (settings: DeepPartial<EmbedSettings>, options?: {
|
|
4055
4106
|
update?: boolean;
|
|
@@ -5515,6 +5566,7 @@ export declare const initialContext: {
|
|
|
5515
5566
|
setAccessToken: () => never;
|
|
5516
5567
|
setLayout: () => never;
|
|
5517
5568
|
setCheckoutState: () => never;
|
|
5569
|
+
initializeWithPlan: () => never;
|
|
5518
5570
|
setData: () => never;
|
|
5519
5571
|
updateSettings: () => never;
|
|
5520
5572
|
debug: () => never;
|
|
@@ -5753,7 +5805,7 @@ declare interface ModalHeaderProps {
|
|
|
5753
5805
|
onClose?: () => void;
|
|
5754
5806
|
}
|
|
5755
5807
|
|
|
5756
|
-
declare interface ModalProps extends React.HTMLAttributes<HTMLElement> {
|
|
5808
|
+
export declare interface ModalProps extends React.HTMLAttributes<HTMLElement> {
|
|
5757
5809
|
children: React.ReactNode;
|
|
5758
5810
|
size?: ModalSize;
|
|
5759
5811
|
top?: number;
|
|
@@ -5938,6 +5990,48 @@ declare type Plan = CompanyPlanDetailResponseData;
|
|
|
5938
5990
|
* @interface PlanCreditGrantView
|
|
5939
5991
|
*/
|
|
5940
5992
|
declare interface PlanCreditGrantView {
|
|
5993
|
+
/**
|
|
5994
|
+
*
|
|
5995
|
+
* @type {number}
|
|
5996
|
+
* @memberof PlanCreditGrantView
|
|
5997
|
+
*/
|
|
5998
|
+
billingCreditAutoTopupAmount?: number | null;
|
|
5999
|
+
/**
|
|
6000
|
+
*
|
|
6001
|
+
* @type {string}
|
|
6002
|
+
* @memberof PlanCreditGrantView
|
|
6003
|
+
*/
|
|
6004
|
+
billingCreditAutoTopupAmountType?: string | null;
|
|
6005
|
+
/**
|
|
6006
|
+
*
|
|
6007
|
+
* @type {boolean}
|
|
6008
|
+
* @memberof PlanCreditGrantView
|
|
6009
|
+
*/
|
|
6010
|
+
billingCreditAutoTopupEnabled: boolean;
|
|
6011
|
+
/**
|
|
6012
|
+
*
|
|
6013
|
+
* @type {string}
|
|
6014
|
+
* @memberof PlanCreditGrantView
|
|
6015
|
+
*/
|
|
6016
|
+
billingCreditAutoTopupExpiryType?: string | null;
|
|
6017
|
+
/**
|
|
6018
|
+
*
|
|
6019
|
+
* @type {string}
|
|
6020
|
+
* @memberof PlanCreditGrantView
|
|
6021
|
+
*/
|
|
6022
|
+
billingCreditAutoTopupExpiryUnit?: string | null;
|
|
6023
|
+
/**
|
|
6024
|
+
*
|
|
6025
|
+
* @type {number}
|
|
6026
|
+
* @memberof PlanCreditGrantView
|
|
6027
|
+
*/
|
|
6028
|
+
billingCreditAutoTopupExpiryUnitCount?: number | null;
|
|
6029
|
+
/**
|
|
6030
|
+
*
|
|
6031
|
+
* @type {number}
|
|
6032
|
+
* @memberof PlanCreditGrantView
|
|
6033
|
+
*/
|
|
6034
|
+
billingCreditAutoTopupThresholdPercent?: number | null;
|
|
5941
6035
|
/**
|
|
5942
6036
|
*
|
|
5943
6037
|
* @type {Date}
|
|
@@ -6065,6 +6159,48 @@ declare interface PlanCreditGrantView {
|
|
|
6065
6159
|
* @interface PlanCreditGrantView
|
|
6066
6160
|
*/
|
|
6067
6161
|
declare interface PlanCreditGrantView_2 {
|
|
6162
|
+
/**
|
|
6163
|
+
*
|
|
6164
|
+
* @type {number}
|
|
6165
|
+
* @memberof PlanCreditGrantView
|
|
6166
|
+
*/
|
|
6167
|
+
billingCreditAutoTopupAmount?: number | null;
|
|
6168
|
+
/**
|
|
6169
|
+
*
|
|
6170
|
+
* @type {string}
|
|
6171
|
+
* @memberof PlanCreditGrantView
|
|
6172
|
+
*/
|
|
6173
|
+
billingCreditAutoTopupAmountType?: string | null;
|
|
6174
|
+
/**
|
|
6175
|
+
*
|
|
6176
|
+
* @type {boolean}
|
|
6177
|
+
* @memberof PlanCreditGrantView
|
|
6178
|
+
*/
|
|
6179
|
+
billingCreditAutoTopupEnabled: boolean;
|
|
6180
|
+
/**
|
|
6181
|
+
*
|
|
6182
|
+
* @type {string}
|
|
6183
|
+
* @memberof PlanCreditGrantView
|
|
6184
|
+
*/
|
|
6185
|
+
billingCreditAutoTopupExpiryType?: string | null;
|
|
6186
|
+
/**
|
|
6187
|
+
*
|
|
6188
|
+
* @type {string}
|
|
6189
|
+
* @memberof PlanCreditGrantView
|
|
6190
|
+
*/
|
|
6191
|
+
billingCreditAutoTopupExpiryUnit?: string | null;
|
|
6192
|
+
/**
|
|
6193
|
+
*
|
|
6194
|
+
* @type {number}
|
|
6195
|
+
* @memberof PlanCreditGrantView
|
|
6196
|
+
*/
|
|
6197
|
+
billingCreditAutoTopupExpiryUnitCount?: number | null;
|
|
6198
|
+
/**
|
|
6199
|
+
*
|
|
6200
|
+
* @type {number}
|
|
6201
|
+
* @memberof PlanCreditGrantView
|
|
6202
|
+
*/
|
|
6203
|
+
billingCreditAutoTopupThresholdPercent?: number | null;
|
|
6068
6204
|
/**
|
|
6069
6205
|
*
|
|
6070
6206
|
* @type {Date}
|