@schematichq/schematic-react 0.2.0-rc.0 → 0.2.0-rc.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-react.cjs.js +3115 -621
- package/dist/schematic-react.d.ts +1433 -435
- package/dist/schematic-react.esm.js +3123 -630
- package/package.json +13 -7
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Context } from 'react';
|
2
2
|
import * as Craft from '@craftjs/core';
|
3
3
|
import { DetailedHTMLProps } from 'react';
|
4
|
+
import { Dispatch } from 'react';
|
4
5
|
import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES } from 'react';
|
5
6
|
import { Event as Event_2 } from '@schematichq/schematic-js';
|
6
7
|
import { EventBody } from '@schematichq/schematic-js';
|
@@ -15,7 +16,6 @@ import { HTMLAttributes } from 'react';
|
|
15
16
|
import { IStyledComponentBase } from 'styled-components/dist/types';
|
16
17
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
17
18
|
import { Keys } from '@schematichq/schematic-js';
|
18
|
-
import { default as React_2 } from 'react';
|
19
19
|
import { ReactNode } from 'react';
|
20
20
|
import { RefAttributes } from 'react';
|
21
21
|
import { RefObject } from 'react';
|
@@ -23,13 +23,278 @@ import { Schematic } from '@schematichq/schematic-js';
|
|
23
23
|
import { SchematicContext } from '@schematichq/schematic-js';
|
24
24
|
import * as SchematicJS from '@schematichq/schematic-js';
|
25
25
|
import { SchematicOptions } from '@schematichq/schematic-js';
|
26
|
+
import { SetStateAction } from 'react';
|
27
|
+
import { Stripe } from '@stripe/stripe-js';
|
26
28
|
import { Substitute } from 'styled-components/dist/types';
|
27
29
|
import { Traits } from '@schematichq/schematic-js';
|
28
30
|
|
29
31
|
declare type BaseSchematicProviderProps = Omit<SchematicJS.SchematicOptions, "client" | "publishableKey"> & {
|
30
|
-
children: ReactNode;
|
32
|
+
children: React.ReactNode;
|
31
33
|
};
|
32
34
|
|
35
|
+
/**
|
36
|
+
* Schematic API
|
37
|
+
* Schematic API
|
38
|
+
*
|
39
|
+
* The version of the OpenAPI document: 0.1
|
40
|
+
*
|
41
|
+
*
|
42
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
43
|
+
* https://openapi-generator.tech
|
44
|
+
* Do not edit the class manually.
|
45
|
+
*/
|
46
|
+
/**
|
47
|
+
*
|
48
|
+
* @export
|
49
|
+
* @interface BillingPlan
|
50
|
+
*/
|
51
|
+
declare interface BillingPlan {
|
52
|
+
/**
|
53
|
+
*
|
54
|
+
* @type {string}
|
55
|
+
* @memberof BillingPlan
|
56
|
+
*/
|
57
|
+
description?: string | null;
|
58
|
+
/**
|
59
|
+
*
|
60
|
+
* @type {string}
|
61
|
+
* @memberof BillingPlan
|
62
|
+
*/
|
63
|
+
id: string;
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* @type {string}
|
67
|
+
* @memberof BillingPlan
|
68
|
+
*/
|
69
|
+
imageUrl?: string | null;
|
70
|
+
/**
|
71
|
+
*
|
72
|
+
* @type {string}
|
73
|
+
* @memberof BillingPlan
|
74
|
+
*/
|
75
|
+
name: string;
|
76
|
+
/**
|
77
|
+
*
|
78
|
+
* @type {string}
|
79
|
+
* @memberof BillingPlan
|
80
|
+
*/
|
81
|
+
planPeriod?: string | null;
|
82
|
+
/**
|
83
|
+
*
|
84
|
+
* @type {number}
|
85
|
+
* @memberof BillingPlan
|
86
|
+
*/
|
87
|
+
planPrice?: number | null;
|
88
|
+
}
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Schematic API
|
92
|
+
* Schematic API
|
93
|
+
*
|
94
|
+
* The version of the OpenAPI document: 0.1
|
95
|
+
*
|
96
|
+
*
|
97
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
98
|
+
* https://openapi-generator.tech
|
99
|
+
* Do not edit the class manually.
|
100
|
+
*/
|
101
|
+
/**
|
102
|
+
*
|
103
|
+
* @export
|
104
|
+
* @interface BillingPriceResponseData
|
105
|
+
*/
|
106
|
+
declare interface BillingPriceResponseData {
|
107
|
+
/**
|
108
|
+
*
|
109
|
+
* @type {string}
|
110
|
+
* @memberof BillingPriceResponseData
|
111
|
+
*/
|
112
|
+
externalPriceId: string;
|
113
|
+
/**
|
114
|
+
*
|
115
|
+
* @type {string}
|
116
|
+
* @memberof BillingPriceResponseData
|
117
|
+
*/
|
118
|
+
id: string;
|
119
|
+
/**
|
120
|
+
*
|
121
|
+
* @type {string}
|
122
|
+
* @memberof BillingPriceResponseData
|
123
|
+
*/
|
124
|
+
interval: string;
|
125
|
+
/**
|
126
|
+
*
|
127
|
+
* @type {number}
|
128
|
+
* @memberof BillingPriceResponseData
|
129
|
+
*/
|
130
|
+
price: number;
|
131
|
+
}
|
132
|
+
|
133
|
+
/**
|
134
|
+
*
|
135
|
+
* @export
|
136
|
+
* @interface BillingProductDetailResponseData
|
137
|
+
*/
|
138
|
+
declare interface BillingProductDetailResponseData {
|
139
|
+
/**
|
140
|
+
*
|
141
|
+
* @type {Array<BillingPriceResponseData>}
|
142
|
+
* @memberof BillingProductDetailResponseData
|
143
|
+
*/
|
144
|
+
prices: Array<BillingPriceResponseData>;
|
145
|
+
/**
|
146
|
+
*
|
147
|
+
* @type {string}
|
148
|
+
* @memberof BillingProductDetailResponseData
|
149
|
+
*/
|
150
|
+
accountId: string;
|
151
|
+
/**
|
152
|
+
*
|
153
|
+
* @type {Date}
|
154
|
+
* @memberof BillingProductDetailResponseData
|
155
|
+
*/
|
156
|
+
createdAt: Date;
|
157
|
+
/**
|
158
|
+
*
|
159
|
+
* @type {string}
|
160
|
+
* @memberof BillingProductDetailResponseData
|
161
|
+
*/
|
162
|
+
currency: string;
|
163
|
+
/**
|
164
|
+
*
|
165
|
+
* @type {string}
|
166
|
+
* @memberof BillingProductDetailResponseData
|
167
|
+
*/
|
168
|
+
environmentId: string;
|
169
|
+
/**
|
170
|
+
*
|
171
|
+
* @type {string}
|
172
|
+
* @memberof BillingProductDetailResponseData
|
173
|
+
*/
|
174
|
+
externalId: string;
|
175
|
+
/**
|
176
|
+
*
|
177
|
+
* @type {string}
|
178
|
+
* @memberof BillingProductDetailResponseData
|
179
|
+
*/
|
180
|
+
name: string;
|
181
|
+
/**
|
182
|
+
*
|
183
|
+
* @type {number}
|
184
|
+
* @memberof BillingProductDetailResponseData
|
185
|
+
*/
|
186
|
+
price: number;
|
187
|
+
/**
|
188
|
+
*
|
189
|
+
* @type {string}
|
190
|
+
* @memberof BillingProductDetailResponseData
|
191
|
+
*/
|
192
|
+
productId: string;
|
193
|
+
/**
|
194
|
+
*
|
195
|
+
* @type {number}
|
196
|
+
* @memberof BillingProductDetailResponseData
|
197
|
+
*/
|
198
|
+
quantity: number;
|
199
|
+
/**
|
200
|
+
*
|
201
|
+
* @type {Date}
|
202
|
+
* @memberof BillingProductDetailResponseData
|
203
|
+
*/
|
204
|
+
updatedAt: Date;
|
205
|
+
}
|
206
|
+
|
207
|
+
/**
|
208
|
+
* Schematic API
|
209
|
+
* Schematic API
|
210
|
+
*
|
211
|
+
* The version of the OpenAPI document: 0.1
|
212
|
+
*
|
213
|
+
*
|
214
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
215
|
+
* https://openapi-generator.tech
|
216
|
+
* Do not edit the class manually.
|
217
|
+
*/
|
218
|
+
/**
|
219
|
+
*
|
220
|
+
* @export
|
221
|
+
* @interface BillingProductForSubscriptionResponseData
|
222
|
+
*/
|
223
|
+
declare interface BillingProductForSubscriptionResponseData {
|
224
|
+
/**
|
225
|
+
*
|
226
|
+
* @type {string}
|
227
|
+
* @memberof BillingProductForSubscriptionResponseData
|
228
|
+
*/
|
229
|
+
accountId: string;
|
230
|
+
/**
|
231
|
+
*
|
232
|
+
* @type {Date}
|
233
|
+
* @memberof BillingProductForSubscriptionResponseData
|
234
|
+
*/
|
235
|
+
createdAt: Date;
|
236
|
+
/**
|
237
|
+
*
|
238
|
+
* @type {string}
|
239
|
+
* @memberof BillingProductForSubscriptionResponseData
|
240
|
+
*/
|
241
|
+
currency: string;
|
242
|
+
/**
|
243
|
+
*
|
244
|
+
* @type {string}
|
245
|
+
* @memberof BillingProductForSubscriptionResponseData
|
246
|
+
*/
|
247
|
+
environmentId: string;
|
248
|
+
/**
|
249
|
+
*
|
250
|
+
* @type {string}
|
251
|
+
* @memberof BillingProductForSubscriptionResponseData
|
252
|
+
*/
|
253
|
+
externalId: string;
|
254
|
+
/**
|
255
|
+
*
|
256
|
+
* @type {string}
|
257
|
+
* @memberof BillingProductForSubscriptionResponseData
|
258
|
+
*/
|
259
|
+
id: string;
|
260
|
+
/**
|
261
|
+
*
|
262
|
+
* @type {string}
|
263
|
+
* @memberof BillingProductForSubscriptionResponseData
|
264
|
+
*/
|
265
|
+
interval?: string | null;
|
266
|
+
/**
|
267
|
+
*
|
268
|
+
* @type {string}
|
269
|
+
* @memberof BillingProductForSubscriptionResponseData
|
270
|
+
*/
|
271
|
+
name: string;
|
272
|
+
/**
|
273
|
+
*
|
274
|
+
* @type {number}
|
275
|
+
* @memberof BillingProductForSubscriptionResponseData
|
276
|
+
*/
|
277
|
+
price: number;
|
278
|
+
/**
|
279
|
+
*
|
280
|
+
* @type {number}
|
281
|
+
* @memberof BillingProductForSubscriptionResponseData
|
282
|
+
*/
|
283
|
+
quantity: number;
|
284
|
+
/**
|
285
|
+
*
|
286
|
+
* @type {string}
|
287
|
+
* @memberof BillingProductForSubscriptionResponseData
|
288
|
+
*/
|
289
|
+
subscriptionId: string;
|
290
|
+
/**
|
291
|
+
*
|
292
|
+
* @type {Date}
|
293
|
+
* @memberof BillingProductForSubscriptionResponseData
|
294
|
+
*/
|
295
|
+
updatedAt: Date;
|
296
|
+
}
|
297
|
+
|
33
298
|
export declare const Box: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ComponentProps>> & string;
|
34
299
|
|
35
300
|
export declare type BoxProps = ComponentProps;
|
@@ -55,6 +320,11 @@ export declare interface CardProps {
|
|
55
320
|
className?: string;
|
56
321
|
}
|
57
322
|
|
323
|
+
export declare const Column: ForwardRefExoticComponent<Omit<ColumnProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
|
324
|
+
|
325
|
+
export declare interface ColumnProps extends React.HTMLProps<HTMLDivElement> {
|
326
|
+
}
|
327
|
+
|
58
328
|
/**
|
59
329
|
*
|
60
330
|
* @export
|
@@ -63,10 +333,10 @@ export declare interface CardProps {
|
|
63
333
|
declare interface CompanyDetailResponseData {
|
64
334
|
/**
|
65
335
|
*
|
66
|
-
* @type {Array<
|
336
|
+
* @type {Array<BillingPlan>}
|
67
337
|
* @memberof CompanyDetailResponseData
|
68
338
|
*/
|
69
|
-
addOns: Array<
|
339
|
+
addOns: Array<BillingPlan>;
|
70
340
|
/**
|
71
341
|
*
|
72
342
|
* @type {Date}
|
@@ -117,10 +387,10 @@ declare interface CompanyDetailResponseData {
|
|
117
387
|
name: string;
|
118
388
|
/**
|
119
389
|
*
|
120
|
-
* @type {
|
390
|
+
* @type {BillingPlan}
|
121
391
|
* @memberof CompanyDetailResponseData
|
122
392
|
*/
|
123
|
-
plan?:
|
393
|
+
plan?: BillingPlan;
|
124
394
|
/**
|
125
395
|
*
|
126
396
|
* @type {Array<PreviewObject>}
|
@@ -148,74 +418,254 @@ declare interface CompanyDetailResponseData {
|
|
148
418
|
}
|
149
419
|
|
150
420
|
/**
|
151
|
-
*
|
421
|
+
*
|
152
422
|
* @export
|
153
|
-
* @interface
|
423
|
+
* @interface CompanyPlanDetailResponseData
|
154
424
|
*/
|
155
|
-
declare interface
|
156
|
-
/**
|
157
|
-
*
|
158
|
-
* @type {CompanyDetailResponseData}
|
159
|
-
* @memberof ComponentHydrateResponseData
|
160
|
-
*/
|
161
|
-
company?: CompanyDetailResponseData;
|
425
|
+
declare interface CompanyPlanDetailResponseData {
|
162
426
|
/**
|
163
427
|
*
|
164
|
-
* @type {
|
165
|
-
* @memberof
|
428
|
+
* @type {string}
|
429
|
+
* @memberof CompanyPlanDetailResponseData
|
166
430
|
*/
|
167
|
-
|
431
|
+
audienceType?: string | null;
|
168
432
|
/**
|
169
433
|
*
|
170
|
-
* @type {
|
171
|
-
* @memberof
|
434
|
+
* @type {BillingProductDetailResponseData}
|
435
|
+
* @memberof CompanyPlanDetailResponseData
|
172
436
|
*/
|
173
|
-
|
174
|
-
}
|
175
|
-
|
176
|
-
declare interface ComponentProps extends TransientCSSProperties {
|
177
|
-
children?: React.ReactNode;
|
178
|
-
}
|
179
|
-
|
180
|
-
/**
|
181
|
-
* Schematic API
|
182
|
-
* Schematic API
|
183
|
-
*
|
184
|
-
* The version of the OpenAPI document: 0.1
|
185
|
-
*
|
186
|
-
*
|
187
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
188
|
-
* https://openapi-generator.tech
|
189
|
-
* Do not edit the class manually.
|
190
|
-
*/
|
191
|
-
/**
|
192
|
-
*
|
193
|
-
* @export
|
194
|
-
* @interface ComponentResponseData
|
195
|
-
*/
|
196
|
-
declare interface ComponentResponseData {
|
437
|
+
billingProduct?: BillingProductDetailResponseData;
|
197
438
|
/**
|
198
439
|
*
|
199
|
-
* @type {
|
200
|
-
* @memberof
|
440
|
+
* @type {number}
|
441
|
+
* @memberof CompanyPlanDetailResponseData
|
201
442
|
*/
|
202
|
-
|
443
|
+
companyCount: number;
|
203
444
|
/**
|
204
445
|
*
|
205
446
|
* @type {Date}
|
206
|
-
* @memberof
|
447
|
+
* @memberof CompanyPlanDetailResponseData
|
207
448
|
*/
|
208
449
|
createdAt: Date;
|
209
450
|
/**
|
210
451
|
*
|
211
|
-
* @type {
|
212
|
-
* @memberof
|
452
|
+
* @type {boolean}
|
453
|
+
* @memberof CompanyPlanDetailResponseData
|
213
454
|
*/
|
214
|
-
|
455
|
+
current: boolean;
|
215
456
|
/**
|
216
457
|
*
|
217
458
|
* @type {string}
|
218
|
-
* @memberof
|
459
|
+
* @memberof CompanyPlanDetailResponseData
|
460
|
+
*/
|
461
|
+
description: string;
|
462
|
+
/**
|
463
|
+
*
|
464
|
+
* @type {Array<PlanEntitlementResponseData>}
|
465
|
+
* @memberof CompanyPlanDetailResponseData
|
466
|
+
*/
|
467
|
+
entitlements: Array<PlanEntitlementResponseData>;
|
468
|
+
/**
|
469
|
+
*
|
470
|
+
* @type {Array<FeatureDetailResponseData>}
|
471
|
+
* @memberof CompanyPlanDetailResponseData
|
472
|
+
*/
|
473
|
+
features: Array<FeatureDetailResponseData>;
|
474
|
+
/**
|
475
|
+
*
|
476
|
+
* @type {string}
|
477
|
+
* @memberof CompanyPlanDetailResponseData
|
478
|
+
*/
|
479
|
+
icon: string;
|
480
|
+
/**
|
481
|
+
*
|
482
|
+
* @type {string}
|
483
|
+
* @memberof CompanyPlanDetailResponseData
|
484
|
+
*/
|
485
|
+
id: string;
|
486
|
+
/**
|
487
|
+
*
|
488
|
+
* @type {BillingPriceResponseData}
|
489
|
+
* @memberof CompanyPlanDetailResponseData
|
490
|
+
*/
|
491
|
+
monthlyPrice?: BillingPriceResponseData;
|
492
|
+
/**
|
493
|
+
*
|
494
|
+
* @type {string}
|
495
|
+
* @memberof CompanyPlanDetailResponseData
|
496
|
+
*/
|
497
|
+
name: string;
|
498
|
+
/**
|
499
|
+
*
|
500
|
+
* @type {string}
|
501
|
+
* @memberof CompanyPlanDetailResponseData
|
502
|
+
*/
|
503
|
+
planType: string;
|
504
|
+
/**
|
505
|
+
*
|
506
|
+
* @type {Date}
|
507
|
+
* @memberof CompanyPlanDetailResponseData
|
508
|
+
*/
|
509
|
+
updatedAt: Date;
|
510
|
+
/**
|
511
|
+
*
|
512
|
+
* @type {boolean}
|
513
|
+
* @memberof CompanyPlanDetailResponseData
|
514
|
+
*/
|
515
|
+
valid: boolean;
|
516
|
+
/**
|
517
|
+
*
|
518
|
+
* @type {BillingPriceResponseData}
|
519
|
+
* @memberof CompanyPlanDetailResponseData
|
520
|
+
*/
|
521
|
+
yearlyPrice?: BillingPriceResponseData;
|
522
|
+
}
|
523
|
+
|
524
|
+
/**
|
525
|
+
*
|
526
|
+
* @export
|
527
|
+
* @interface CompanySubscriptionResponseData
|
528
|
+
*/
|
529
|
+
declare interface CompanySubscriptionResponseData {
|
530
|
+
/**
|
531
|
+
*
|
532
|
+
* @type {string}
|
533
|
+
* @memberof CompanySubscriptionResponseData
|
534
|
+
*/
|
535
|
+
customerExternalId: string;
|
536
|
+
/**
|
537
|
+
*
|
538
|
+
* @type {Date}
|
539
|
+
* @memberof CompanySubscriptionResponseData
|
540
|
+
*/
|
541
|
+
expiredAt?: Date | null;
|
542
|
+
/**
|
543
|
+
*
|
544
|
+
* @type {string}
|
545
|
+
* @memberof CompanySubscriptionResponseData
|
546
|
+
*/
|
547
|
+
interval: string;
|
548
|
+
/**
|
549
|
+
*
|
550
|
+
* @type {InvoiceResponseData}
|
551
|
+
* @memberof CompanySubscriptionResponseData
|
552
|
+
*/
|
553
|
+
latestInvoice?: InvoiceResponseData;
|
554
|
+
/**
|
555
|
+
*
|
556
|
+
* @type {PaymentMethodResponseData}
|
557
|
+
* @memberof CompanySubscriptionResponseData
|
558
|
+
*/
|
559
|
+
paymentMethod?: PaymentMethodResponseData;
|
560
|
+
/**
|
561
|
+
*
|
562
|
+
* @type {Array<BillingProductForSubscriptionResponseData>}
|
563
|
+
* @memberof CompanySubscriptionResponseData
|
564
|
+
*/
|
565
|
+
products: Array<BillingProductForSubscriptionResponseData>;
|
566
|
+
/**
|
567
|
+
*
|
568
|
+
* @type {string}
|
569
|
+
* @memberof CompanySubscriptionResponseData
|
570
|
+
*/
|
571
|
+
subscriptionExternalId: string;
|
572
|
+
/**
|
573
|
+
*
|
574
|
+
* @type {number}
|
575
|
+
* @memberof CompanySubscriptionResponseData
|
576
|
+
*/
|
577
|
+
totalPrice: number;
|
578
|
+
}
|
579
|
+
|
580
|
+
/**
|
581
|
+
* The returned resource
|
582
|
+
* @export
|
583
|
+
* @interface ComponentHydrateResponseData
|
584
|
+
*/
|
585
|
+
declare interface ComponentHydrateResponseData {
|
586
|
+
/**
|
587
|
+
*
|
588
|
+
* @type {Array<CompanyPlanDetailResponseData>}
|
589
|
+
* @memberof ComponentHydrateResponseData
|
590
|
+
*/
|
591
|
+
activePlans: Array<CompanyPlanDetailResponseData>;
|
592
|
+
/**
|
593
|
+
*
|
594
|
+
* @type {CompanyDetailResponseData}
|
595
|
+
* @memberof ComponentHydrateResponseData
|
596
|
+
*/
|
597
|
+
company?: CompanyDetailResponseData;
|
598
|
+
/**
|
599
|
+
*
|
600
|
+
* @type {ComponentResponseData}
|
601
|
+
* @memberof ComponentHydrateResponseData
|
602
|
+
*/
|
603
|
+
component?: ComponentResponseData;
|
604
|
+
/**
|
605
|
+
*
|
606
|
+
* @type {FeatureUsageDetailResponseData}
|
607
|
+
* @memberof ComponentHydrateResponseData
|
608
|
+
*/
|
609
|
+
featureUsage?: FeatureUsageDetailResponseData;
|
610
|
+
/**
|
611
|
+
*
|
612
|
+
* @type {StripeEmbedInfo}
|
613
|
+
* @memberof ComponentHydrateResponseData
|
614
|
+
*/
|
615
|
+
stripeEmbed?: StripeEmbedInfo;
|
616
|
+
/**
|
617
|
+
*
|
618
|
+
* @type {CompanySubscriptionResponseData}
|
619
|
+
* @memberof ComponentHydrateResponseData
|
620
|
+
*/
|
621
|
+
subscription?: CompanySubscriptionResponseData;
|
622
|
+
}
|
623
|
+
|
624
|
+
declare interface ComponentProps extends TransientCSSProperties {
|
625
|
+
children?: React.ReactNode;
|
626
|
+
}
|
627
|
+
|
628
|
+
/**
|
629
|
+
* Schematic API
|
630
|
+
* Schematic API
|
631
|
+
*
|
632
|
+
* The version of the OpenAPI document: 0.1
|
633
|
+
*
|
634
|
+
*
|
635
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
636
|
+
* https://openapi-generator.tech
|
637
|
+
* Do not edit the class manually.
|
638
|
+
*/
|
639
|
+
/**
|
640
|
+
*
|
641
|
+
* @export
|
642
|
+
* @interface ComponentResponseData
|
643
|
+
*/
|
644
|
+
declare interface ComponentResponseData {
|
645
|
+
/**
|
646
|
+
*
|
647
|
+
* @type {{ [key: string]: number; }}
|
648
|
+
* @memberof ComponentResponseData
|
649
|
+
*/
|
650
|
+
ast?: {
|
651
|
+
[key: string]: number;
|
652
|
+
};
|
653
|
+
/**
|
654
|
+
*
|
655
|
+
* @type {Date}
|
656
|
+
* @memberof ComponentResponseData
|
657
|
+
*/
|
658
|
+
createdAt: Date;
|
659
|
+
/**
|
660
|
+
*
|
661
|
+
* @type {string}
|
662
|
+
* @memberof ComponentResponseData
|
663
|
+
*/
|
664
|
+
id: string;
|
665
|
+
/**
|
666
|
+
*
|
667
|
+
* @type {string}
|
668
|
+
* @memberof ComponentResponseData
|
219
669
|
*/
|
220
670
|
name: string;
|
221
671
|
/**
|
@@ -238,6 +688,19 @@ declare interface ComponentResponseData {
|
|
238
688
|
updatedAt: Date;
|
239
689
|
}
|
240
690
|
|
691
|
+
declare interface ConfigurationParameters {
|
692
|
+
basePath?: string;
|
693
|
+
fetchApi?: FetchAPI;
|
694
|
+
middleware?: Middleware[];
|
695
|
+
queryParamsStringify?: (params: HTTPQuery) => string;
|
696
|
+
username?: string;
|
697
|
+
password?: string;
|
698
|
+
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
699
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
700
|
+
headers?: HTTPHeaders;
|
701
|
+
credentials?: RequestCredentials;
|
702
|
+
}
|
703
|
+
|
241
704
|
declare const _default: {
|
242
705
|
alarm: number;
|
243
706
|
"arrow-curved": number;
|
@@ -338,43 +801,132 @@ declare const _default: {
|
|
338
801
|
wind: number;
|
339
802
|
};
|
340
803
|
|
804
|
+
export declare const defaultSettings: EmbedSettings;
|
805
|
+
|
806
|
+
export declare const defaultTheme: EmbedThemeSettings;
|
807
|
+
|
341
808
|
declare interface DesignProps {
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
809
|
+
header: {
|
810
|
+
isVisible: boolean;
|
811
|
+
title: {
|
812
|
+
fontStyle: FontStyle;
|
813
|
+
};
|
814
|
+
description: {
|
815
|
+
isVisible: boolean;
|
816
|
+
fontStyle: FontStyle;
|
817
|
+
};
|
818
|
+
price: {
|
819
|
+
isVisible: boolean;
|
820
|
+
fontStyle: FontStyle;
|
349
821
|
};
|
350
822
|
};
|
351
|
-
|
823
|
+
addOns: {
|
352
824
|
isVisible: boolean;
|
825
|
+
fontStyle: FontStyle;
|
826
|
+
showLabel: boolean;
|
353
827
|
};
|
354
|
-
|
828
|
+
callToAction: {
|
355
829
|
isVisible: boolean;
|
830
|
+
buttonSize: "sm" | "md" | "lg";
|
831
|
+
buttonStyle: "primary" | "secondary" | "tertiary";
|
356
832
|
};
|
357
|
-
count?: number;
|
358
833
|
}
|
359
834
|
|
360
835
|
declare interface DesignProps_2 {
|
361
|
-
header
|
836
|
+
header: {
|
837
|
+
isVisible: boolean;
|
838
|
+
fontStyle: FontStyle;
|
839
|
+
text: string;
|
840
|
+
};
|
841
|
+
icons: {
|
842
|
+
isVisible: boolean;
|
843
|
+
fontStyle: FontStyle;
|
844
|
+
style: "light" | "dark";
|
845
|
+
};
|
846
|
+
entitlement: {
|
847
|
+
isVisible: boolean;
|
848
|
+
fontStyle: FontStyle;
|
849
|
+
};
|
850
|
+
usage: {
|
851
|
+
isVisible: boolean;
|
852
|
+
fontStyle: FontStyle;
|
853
|
+
};
|
854
|
+
}
|
855
|
+
|
856
|
+
declare interface DesignProps_3 {
|
857
|
+
isVisible: boolean;
|
858
|
+
header: {
|
859
|
+
fontStyle: FontStyle;
|
860
|
+
};
|
861
|
+
description: {
|
862
|
+
isVisible: boolean;
|
863
|
+
fontStyle: FontStyle;
|
864
|
+
};
|
865
|
+
icon: {
|
866
|
+
isVisible: boolean;
|
867
|
+
};
|
868
|
+
allocation: {
|
869
|
+
isVisible: boolean;
|
870
|
+
fontStyle: FontStyle;
|
871
|
+
};
|
872
|
+
usage: {
|
873
|
+
isVisible: boolean;
|
874
|
+
fontStyle: FontStyle;
|
875
|
+
};
|
876
|
+
callToAction: {
|
877
|
+
isVisible: boolean;
|
878
|
+
buttonSize: "sm" | "md" | "lg";
|
879
|
+
buttonStyle: "primary" | "secondary" | "tertiary";
|
880
|
+
};
|
881
|
+
}
|
882
|
+
|
883
|
+
declare interface DesignProps_4 {
|
884
|
+
header: {
|
362
885
|
isVisible: boolean;
|
363
|
-
|
364
|
-
|
365
|
-
price: TextDesignProps;
|
886
|
+
fontStyle: FontStyle;
|
887
|
+
prefix: string;
|
366
888
|
};
|
367
|
-
|
889
|
+
price: {
|
368
890
|
isVisible: boolean;
|
891
|
+
fontStyle: FontStyle;
|
369
892
|
};
|
370
|
-
|
893
|
+
contractEndDate: {
|
371
894
|
isVisible: boolean;
|
895
|
+
fontStyle: FontStyle;
|
896
|
+
prefix: string;
|
372
897
|
};
|
373
|
-
|
898
|
+
}
|
899
|
+
|
900
|
+
declare interface DesignProps_5 {
|
901
|
+
header: {
|
902
|
+
isVisible: boolean;
|
903
|
+
fontStyle: FontStyle;
|
904
|
+
};
|
905
|
+
functions: {
|
906
|
+
allowEdit: boolean;
|
907
|
+
};
|
908
|
+
}
|
909
|
+
|
910
|
+
declare interface DesignProps_6 {
|
911
|
+
header: {
|
912
|
+
isVisible: boolean;
|
913
|
+
fontStyle: FontStyle;
|
914
|
+
};
|
915
|
+
date: {
|
916
|
+
isVisible: boolean;
|
917
|
+
fontStyle: FontStyle;
|
918
|
+
};
|
919
|
+
amount: {
|
920
|
+
isVisible: boolean;
|
921
|
+
fontStyle: FontStyle;
|
922
|
+
};
|
923
|
+
limit: {
|
924
|
+
isVisible: boolean;
|
925
|
+
number: number;
|
926
|
+
};
|
927
|
+
collapse: {
|
374
928
|
isVisible: boolean;
|
375
|
-
|
376
|
-
color: string;
|
377
|
-
backgroundColor: string;
|
929
|
+
fontStyle: FontStyle;
|
378
930
|
};
|
379
931
|
}
|
380
932
|
|
@@ -389,26 +941,61 @@ export declare const EmbedContext: Context<EmbedContextProps>;
|
|
389
941
|
export declare interface EmbedContextProps {
|
390
942
|
data: RecursivePartial<ComponentHydrateResponseData>;
|
391
943
|
nodes: SerializedNodeWithChildren[];
|
392
|
-
settings:
|
944
|
+
settings: EmbedSettings;
|
945
|
+
stripe: Promise<Stripe | null> | null;
|
946
|
+
layout: EmbedLayout;
|
393
947
|
error?: Error;
|
394
|
-
setData:
|
395
|
-
|
396
|
-
|
948
|
+
setData: (data: RecursivePartial<ComponentHydrateResponseData>) => void;
|
949
|
+
updateSettings: (settings: RecursivePartial<EmbedSettings>) => void;
|
950
|
+
setStripe: (stripe: Promise<Stripe | null> | null) => void;
|
951
|
+
setLayout: (layout: EmbedLayout) => void;
|
397
952
|
}
|
398
953
|
|
954
|
+
declare type EmbedLayout = "portal" | "checkout" | "payment" | "disabled";
|
955
|
+
|
399
956
|
export declare interface EmbedProps {
|
400
957
|
accessToken?: string;
|
401
958
|
id?: string;
|
959
|
+
apiConfig?: ConfigurationParameters;
|
402
960
|
}
|
403
961
|
|
404
|
-
export declare const EmbedProvider: ({ id, accessToken, children, }: EmbedProviderProps) => JSX_2.Element;
|
962
|
+
export declare const EmbedProvider: ({ id, accessToken, apiConfig, children, }: EmbedProviderProps) => JSX_2.Element;
|
405
963
|
|
406
964
|
export declare interface EmbedProviderProps {
|
407
965
|
id?: string;
|
408
966
|
accessToken?: string;
|
967
|
+
apiConfig?: ConfigurationParameters;
|
409
968
|
children?: React.ReactNode;
|
410
969
|
}
|
411
970
|
|
971
|
+
declare type EmbedSettings = {
|
972
|
+
theme: EmbedThemeSettings;
|
973
|
+
};
|
974
|
+
|
975
|
+
declare interface EmbedThemeSettings {
|
976
|
+
numberOfColumns: 1 | 2 | 3;
|
977
|
+
sectionLayout: "merged" | "separate";
|
978
|
+
colorMode: "light" | "dark";
|
979
|
+
primary: string;
|
980
|
+
secondary: string;
|
981
|
+
card: {
|
982
|
+
background: string;
|
983
|
+
borderRadius: number;
|
984
|
+
hasShadow: boolean;
|
985
|
+
padding: number;
|
986
|
+
};
|
987
|
+
typography: {
|
988
|
+
heading1: TypographySettings;
|
989
|
+
heading2: TypographySettings;
|
990
|
+
heading3: TypographySettings;
|
991
|
+
heading4: TypographySettings;
|
992
|
+
heading5: TypographySettings;
|
993
|
+
heading6: TypographySettings;
|
994
|
+
text: TypographySettings;
|
995
|
+
link: TypographySettings;
|
996
|
+
};
|
997
|
+
}
|
998
|
+
|
412
999
|
/**
|
413
1000
|
* Schematic API
|
414
1001
|
* Schematic API
|
@@ -481,169 +1068,637 @@ declare interface EntityKeyDetailResponseData {
|
|
481
1068
|
* @type {string}
|
482
1069
|
* @memberof EntityKeyDetailResponseData
|
483
1070
|
*/
|
484
|
-
definitionId: string;
|
1071
|
+
definitionId: string;
|
1072
|
+
/**
|
1073
|
+
*
|
1074
|
+
* @type {string}
|
1075
|
+
* @memberof EntityKeyDetailResponseData
|
1076
|
+
*/
|
1077
|
+
entityId: string;
|
1078
|
+
/**
|
1079
|
+
*
|
1080
|
+
* @type {string}
|
1081
|
+
* @memberof EntityKeyDetailResponseData
|
1082
|
+
*/
|
1083
|
+
entityType: string;
|
1084
|
+
/**
|
1085
|
+
*
|
1086
|
+
* @type {string}
|
1087
|
+
* @memberof EntityKeyDetailResponseData
|
1088
|
+
*/
|
1089
|
+
environmentId: string;
|
1090
|
+
/**
|
1091
|
+
*
|
1092
|
+
* @type {string}
|
1093
|
+
* @memberof EntityKeyDetailResponseData
|
1094
|
+
*/
|
1095
|
+
id: string;
|
1096
|
+
/**
|
1097
|
+
*
|
1098
|
+
* @type {string}
|
1099
|
+
* @memberof EntityKeyDetailResponseData
|
1100
|
+
*/
|
1101
|
+
key: string;
|
1102
|
+
/**
|
1103
|
+
*
|
1104
|
+
* @type {Date}
|
1105
|
+
* @memberof EntityKeyDetailResponseData
|
1106
|
+
*/
|
1107
|
+
updatedAt: Date;
|
1108
|
+
/**
|
1109
|
+
*
|
1110
|
+
* @type {string}
|
1111
|
+
* @memberof EntityKeyDetailResponseData
|
1112
|
+
*/
|
1113
|
+
value: string;
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
/**
|
1117
|
+
* Schematic API
|
1118
|
+
* Schematic API
|
1119
|
+
*
|
1120
|
+
* The version of the OpenAPI document: 0.1
|
1121
|
+
*
|
1122
|
+
*
|
1123
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
1124
|
+
* https://openapi-generator.tech
|
1125
|
+
* Do not edit the class manually.
|
1126
|
+
*/
|
1127
|
+
/**
|
1128
|
+
*
|
1129
|
+
* @export
|
1130
|
+
* @interface EntityTraitDefinitionResponseData
|
1131
|
+
*/
|
1132
|
+
declare interface EntityTraitDefinitionResponseData {
|
1133
|
+
/**
|
1134
|
+
*
|
1135
|
+
* @type {Date}
|
1136
|
+
* @memberof EntityTraitDefinitionResponseData
|
1137
|
+
*/
|
1138
|
+
createdAt: Date;
|
1139
|
+
/**
|
1140
|
+
*
|
1141
|
+
* @type {string}
|
1142
|
+
* @memberof EntityTraitDefinitionResponseData
|
1143
|
+
*/
|
1144
|
+
displayName: string;
|
1145
|
+
/**
|
1146
|
+
*
|
1147
|
+
* @type {string}
|
1148
|
+
* @memberof EntityTraitDefinitionResponseData
|
1149
|
+
*/
|
1150
|
+
entityType: string;
|
1151
|
+
/**
|
1152
|
+
*
|
1153
|
+
* @type {Array<string>}
|
1154
|
+
* @memberof EntityTraitDefinitionResponseData
|
1155
|
+
*/
|
1156
|
+
hierarchy: Array<string>;
|
1157
|
+
/**
|
1158
|
+
*
|
1159
|
+
* @type {string}
|
1160
|
+
* @memberof EntityTraitDefinitionResponseData
|
1161
|
+
*/
|
1162
|
+
id: string;
|
1163
|
+
/**
|
1164
|
+
*
|
1165
|
+
* @type {string}
|
1166
|
+
* @memberof EntityTraitDefinitionResponseData
|
1167
|
+
*/
|
1168
|
+
traitType: string;
|
1169
|
+
/**
|
1170
|
+
*
|
1171
|
+
* @type {Date}
|
1172
|
+
* @memberof EntityTraitDefinitionResponseData
|
1173
|
+
*/
|
1174
|
+
updatedAt: Date;
|
1175
|
+
}
|
1176
|
+
|
1177
|
+
/**
|
1178
|
+
*
|
1179
|
+
* @export
|
1180
|
+
* @interface EntityTraitDetailResponseData
|
1181
|
+
*/
|
1182
|
+
declare interface EntityTraitDetailResponseData {
|
1183
|
+
/**
|
1184
|
+
*
|
1185
|
+
* @type {Date}
|
1186
|
+
* @memberof EntityTraitDetailResponseData
|
1187
|
+
*/
|
1188
|
+
createdAt: Date;
|
1189
|
+
/**
|
1190
|
+
*
|
1191
|
+
* @type {EntityTraitDefinitionResponseData}
|
1192
|
+
* @memberof EntityTraitDetailResponseData
|
1193
|
+
*/
|
1194
|
+
definition?: EntityTraitDefinitionResponseData;
|
1195
|
+
/**
|
1196
|
+
*
|
1197
|
+
* @type {string}
|
1198
|
+
* @memberof EntityTraitDetailResponseData
|
1199
|
+
*/
|
1200
|
+
definitionId: string;
|
1201
|
+
/**
|
1202
|
+
*
|
1203
|
+
* @type {string}
|
1204
|
+
* @memberof EntityTraitDetailResponseData
|
1205
|
+
*/
|
1206
|
+
environmentId: string;
|
1207
|
+
/**
|
1208
|
+
*
|
1209
|
+
* @type {string}
|
1210
|
+
* @memberof EntityTraitDetailResponseData
|
1211
|
+
*/
|
1212
|
+
id: string;
|
1213
|
+
/**
|
1214
|
+
*
|
1215
|
+
* @type {Date}
|
1216
|
+
* @memberof EntityTraitDetailResponseData
|
1217
|
+
*/
|
1218
|
+
updatedAt: Date;
|
1219
|
+
/**
|
1220
|
+
*
|
1221
|
+
* @type {string}
|
1222
|
+
* @memberof EntityTraitDetailResponseData
|
1223
|
+
*/
|
1224
|
+
value: string;
|
1225
|
+
}
|
1226
|
+
|
1227
|
+
declare interface ErrorContext {
|
1228
|
+
fetch: FetchAPI;
|
1229
|
+
url: string;
|
1230
|
+
init: RequestInit;
|
1231
|
+
error: unknown;
|
1232
|
+
response?: Response;
|
1233
|
+
}
|
1234
|
+
|
1235
|
+
export { Event_2 as Event }
|
1236
|
+
|
1237
|
+
export { EventBody }
|
1238
|
+
|
1239
|
+
export { EventBodyIdentify }
|
1240
|
+
|
1241
|
+
export { EventBodyTrack }
|
1242
|
+
|
1243
|
+
/**
|
1244
|
+
* Schematic API
|
1245
|
+
* Schematic API
|
1246
|
+
*
|
1247
|
+
* The version of the OpenAPI document: 0.1
|
1248
|
+
*
|
1249
|
+
*
|
1250
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
1251
|
+
* https://openapi-generator.tech
|
1252
|
+
* Do not edit the class manually.
|
1253
|
+
*/
|
1254
|
+
/**
|
1255
|
+
*
|
1256
|
+
* @export
|
1257
|
+
* @interface EventSummaryResponseData
|
1258
|
+
*/
|
1259
|
+
declare interface EventSummaryResponseData {
|
1260
|
+
/**
|
1261
|
+
*
|
1262
|
+
* @type {number}
|
1263
|
+
* @memberof EventSummaryResponseData
|
1264
|
+
*/
|
1265
|
+
companyCount: number;
|
1266
|
+
/**
|
1267
|
+
*
|
1268
|
+
* @type {string}
|
1269
|
+
* @memberof EventSummaryResponseData
|
1270
|
+
*/
|
1271
|
+
environmentId: string;
|
1272
|
+
/**
|
1273
|
+
*
|
1274
|
+
* @type {number}
|
1275
|
+
* @memberof EventSummaryResponseData
|
1276
|
+
*/
|
1277
|
+
eventCount: number;
|
1278
|
+
/**
|
1279
|
+
*
|
1280
|
+
* @type {string}
|
1281
|
+
* @memberof EventSummaryResponseData
|
1282
|
+
*/
|
1283
|
+
eventSubtype: string;
|
1284
|
+
/**
|
1285
|
+
*
|
1286
|
+
* @type {Date}
|
1287
|
+
* @memberof EventSummaryResponseData
|
1288
|
+
*/
|
1289
|
+
lastSeenAt?: Date | null;
|
1290
|
+
/**
|
1291
|
+
*
|
1292
|
+
* @type {number}
|
1293
|
+
* @memberof EventSummaryResponseData
|
1294
|
+
*/
|
1295
|
+
userCount: number;
|
1296
|
+
}
|
1297
|
+
|
1298
|
+
export { EventType }
|
1299
|
+
|
1300
|
+
/**
|
1301
|
+
*
|
1302
|
+
* @export
|
1303
|
+
* @interface FeatureDetailResponseData
|
1304
|
+
*/
|
1305
|
+
declare interface FeatureDetailResponseData {
|
1306
|
+
/**
|
1307
|
+
*
|
1308
|
+
* @type {Date}
|
1309
|
+
* @memberof FeatureDetailResponseData
|
1310
|
+
*/
|
1311
|
+
createdAt: Date;
|
1312
|
+
/**
|
1313
|
+
*
|
1314
|
+
* @type {string}
|
1315
|
+
* @memberof FeatureDetailResponseData
|
1316
|
+
*/
|
1317
|
+
description: string;
|
1318
|
+
/**
|
1319
|
+
*
|
1320
|
+
* @type {string}
|
1321
|
+
* @memberof FeatureDetailResponseData
|
1322
|
+
*/
|
1323
|
+
eventSubtype?: string | null;
|
1324
|
+
/**
|
1325
|
+
*
|
1326
|
+
* @type {EventSummaryResponseData}
|
1327
|
+
* @memberof FeatureDetailResponseData
|
1328
|
+
*/
|
1329
|
+
eventSummary?: EventSummaryResponseData;
|
1330
|
+
/**
|
1331
|
+
*
|
1332
|
+
* @type {string}
|
1333
|
+
* @memberof FeatureDetailResponseData
|
1334
|
+
*/
|
1335
|
+
featureType: string;
|
1336
|
+
/**
|
1337
|
+
*
|
1338
|
+
* @type {Array<FlagDetailResponseData>}
|
1339
|
+
* @memberof FeatureDetailResponseData
|
1340
|
+
*/
|
1341
|
+
flags: Array<FlagDetailResponseData>;
|
1342
|
+
/**
|
1343
|
+
*
|
1344
|
+
* @type {string}
|
1345
|
+
* @memberof FeatureDetailResponseData
|
1346
|
+
*/
|
1347
|
+
icon: string;
|
1348
|
+
/**
|
1349
|
+
*
|
1350
|
+
* @type {string}
|
1351
|
+
* @memberof FeatureDetailResponseData
|
1352
|
+
*/
|
1353
|
+
id: string;
|
1354
|
+
/**
|
1355
|
+
*
|
1356
|
+
* @type {string}
|
1357
|
+
* @memberof FeatureDetailResponseData
|
1358
|
+
*/
|
1359
|
+
lifecyclePhase?: string | null;
|
1360
|
+
/**
|
1361
|
+
*
|
1362
|
+
* @type {string}
|
1363
|
+
* @memberof FeatureDetailResponseData
|
1364
|
+
*/
|
1365
|
+
maintainerId?: string | null;
|
1366
|
+
/**
|
1367
|
+
*
|
1368
|
+
* @type {string}
|
1369
|
+
* @memberof FeatureDetailResponseData
|
1370
|
+
*/
|
1371
|
+
name: string;
|
1372
|
+
/**
|
1373
|
+
*
|
1374
|
+
* @type {Array<PreviewObject>}
|
1375
|
+
* @memberof FeatureDetailResponseData
|
1376
|
+
*/
|
1377
|
+
plans: Array<PreviewObject>;
|
1378
|
+
/**
|
1379
|
+
*
|
1380
|
+
* @type {EntityTraitDefinitionResponseData}
|
1381
|
+
* @memberof FeatureDetailResponseData
|
1382
|
+
*/
|
1383
|
+
trait?: EntityTraitDefinitionResponseData;
|
1384
|
+
/**
|
1385
|
+
*
|
1386
|
+
* @type {string}
|
1387
|
+
* @memberof FeatureDetailResponseData
|
1388
|
+
*/
|
1389
|
+
traitId?: string | null;
|
1390
|
+
/**
|
1391
|
+
*
|
1392
|
+
* @type {Date}
|
1393
|
+
* @memberof FeatureDetailResponseData
|
1394
|
+
*/
|
1395
|
+
updatedAt: Date;
|
1396
|
+
}
|
1397
|
+
|
1398
|
+
/**
|
1399
|
+
* Schematic API
|
1400
|
+
* Schematic API
|
1401
|
+
*
|
1402
|
+
* The version of the OpenAPI document: 0.1
|
1403
|
+
*
|
1404
|
+
*
|
1405
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
1406
|
+
* https://openapi-generator.tech
|
1407
|
+
* Do not edit the class manually.
|
1408
|
+
*/
|
1409
|
+
/**
|
1410
|
+
*
|
1411
|
+
* @export
|
1412
|
+
* @interface FeatureResponseData
|
1413
|
+
*/
|
1414
|
+
declare interface FeatureResponseData {
|
1415
|
+
/**
|
1416
|
+
*
|
1417
|
+
* @type {Date}
|
1418
|
+
* @memberof FeatureResponseData
|
1419
|
+
*/
|
1420
|
+
createdAt: Date;
|
1421
|
+
/**
|
1422
|
+
*
|
1423
|
+
* @type {string}
|
1424
|
+
* @memberof FeatureResponseData
|
1425
|
+
*/
|
1426
|
+
description: string;
|
1427
|
+
/**
|
1428
|
+
*
|
1429
|
+
* @type {string}
|
1430
|
+
* @memberof FeatureResponseData
|
1431
|
+
*/
|
1432
|
+
eventSubtype?: string | null;
|
1433
|
+
/**
|
1434
|
+
*
|
1435
|
+
* @type {string}
|
1436
|
+
* @memberof FeatureResponseData
|
1437
|
+
*/
|
1438
|
+
featureType: string;
|
1439
|
+
/**
|
1440
|
+
*
|
1441
|
+
* @type {string}
|
1442
|
+
* @memberof FeatureResponseData
|
1443
|
+
*/
|
1444
|
+
icon: string;
|
1445
|
+
/**
|
1446
|
+
*
|
1447
|
+
* @type {string}
|
1448
|
+
* @memberof FeatureResponseData
|
1449
|
+
*/
|
1450
|
+
id: string;
|
1451
|
+
/**
|
1452
|
+
*
|
1453
|
+
* @type {string}
|
1454
|
+
* @memberof FeatureResponseData
|
1455
|
+
*/
|
1456
|
+
lifecyclePhase?: string | null;
|
1457
|
+
/**
|
1458
|
+
*
|
1459
|
+
* @type {string}
|
1460
|
+
* @memberof FeatureResponseData
|
1461
|
+
*/
|
1462
|
+
maintainerId?: string | null;
|
1463
|
+
/**
|
1464
|
+
*
|
1465
|
+
* @type {string}
|
1466
|
+
* @memberof FeatureResponseData
|
1467
|
+
*/
|
1468
|
+
name: string;
|
1469
|
+
/**
|
1470
|
+
*
|
1471
|
+
* @type {string}
|
1472
|
+
* @memberof FeatureResponseData
|
1473
|
+
*/
|
1474
|
+
traitId?: string | null;
|
1475
|
+
/**
|
1476
|
+
*
|
1477
|
+
* @type {Date}
|
1478
|
+
* @memberof FeatureResponseData
|
1479
|
+
*/
|
1480
|
+
updatedAt: Date;
|
1481
|
+
}
|
1482
|
+
|
1483
|
+
/**
|
1484
|
+
*
|
1485
|
+
* @export
|
1486
|
+
* @interface FeatureUsageDetailResponseData
|
1487
|
+
*/
|
1488
|
+
declare interface FeatureUsageDetailResponseData {
|
1489
|
+
/**
|
1490
|
+
*
|
1491
|
+
* @type {Array<FeatureUsageResponseData>}
|
1492
|
+
* @memberof FeatureUsageDetailResponseData
|
1493
|
+
*/
|
1494
|
+
features: Array<FeatureUsageResponseData>;
|
1495
|
+
}
|
1496
|
+
|
1497
|
+
/**
|
1498
|
+
*
|
1499
|
+
* @export
|
1500
|
+
* @interface FeatureUsageResponseData
|
1501
|
+
*/
|
1502
|
+
declare interface FeatureUsageResponseData {
|
1503
|
+
/**
|
1504
|
+
* Whether further usage is permitted.
|
1505
|
+
* @type {boolean}
|
1506
|
+
* @memberof FeatureUsageResponseData
|
1507
|
+
*/
|
1508
|
+
access: boolean;
|
1509
|
+
/**
|
1510
|
+
* The maximum amount of usage that is permitted; a null value indicates that unlimited usage is permitted.
|
1511
|
+
* @type {number}
|
1512
|
+
* @memberof FeatureUsageResponseData
|
1513
|
+
*/
|
1514
|
+
allocation?: number | null;
|
485
1515
|
/**
|
486
|
-
*
|
1516
|
+
* The type of allocation that is being used.
|
487
1517
|
* @type {string}
|
488
|
-
* @memberof
|
1518
|
+
* @memberof FeatureUsageResponseData
|
489
1519
|
*/
|
490
|
-
|
1520
|
+
allocationType: FeatureUsageResponseDataAllocationTypeEnum;
|
491
1521
|
/**
|
492
1522
|
*
|
493
1523
|
* @type {string}
|
494
|
-
* @memberof
|
1524
|
+
* @memberof FeatureUsageResponseData
|
495
1525
|
*/
|
496
|
-
|
1526
|
+
entitlementId: string;
|
497
1527
|
/**
|
498
1528
|
*
|
499
1529
|
* @type {string}
|
500
|
-
* @memberof
|
1530
|
+
* @memberof FeatureUsageResponseData
|
501
1531
|
*/
|
502
|
-
|
1532
|
+
entitlementType: string;
|
503
1533
|
/**
|
504
1534
|
*
|
505
|
-
* @type {
|
506
|
-
* @memberof
|
1535
|
+
* @type {FeatureDetailResponseData}
|
1536
|
+
* @memberof FeatureUsageResponseData
|
507
1537
|
*/
|
508
|
-
|
1538
|
+
feature?: FeatureDetailResponseData;
|
509
1539
|
/**
|
510
|
-
*
|
1540
|
+
* The period over which usage is measured.
|
511
1541
|
* @type {string}
|
512
|
-
* @memberof
|
1542
|
+
* @memberof FeatureUsageResponseData
|
513
1543
|
*/
|
514
|
-
|
1544
|
+
period?: string | null;
|
515
1545
|
/**
|
516
1546
|
*
|
517
|
-
* @type {
|
518
|
-
* @memberof
|
1547
|
+
* @type {PlanResponseData}
|
1548
|
+
* @memberof FeatureUsageResponseData
|
519
1549
|
*/
|
520
|
-
|
1550
|
+
plan?: PlanResponseData;
|
521
1551
|
/**
|
522
|
-
*
|
523
|
-
* @type {
|
524
|
-
* @memberof
|
1552
|
+
* The amount of usage that has been consumed; a null value indicates that usage is not being measured.
|
1553
|
+
* @type {number}
|
1554
|
+
* @memberof FeatureUsageResponseData
|
525
1555
|
*/
|
526
|
-
|
1556
|
+
usage?: number | null;
|
527
1557
|
}
|
528
1558
|
|
529
1559
|
/**
|
530
|
-
*
|
531
|
-
* Schematic API
|
532
|
-
*
|
533
|
-
* The version of the OpenAPI document: 0.1
|
534
|
-
*
|
535
|
-
*
|
536
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
537
|
-
* https://openapi-generator.tech
|
538
|
-
* Do not edit the class manually.
|
1560
|
+
* @export
|
539
1561
|
*/
|
1562
|
+
declare const FeatureUsageResponseDataAllocationTypeEnum: {
|
1563
|
+
readonly Boolean: "boolean";
|
1564
|
+
readonly Numeric: "numeric";
|
1565
|
+
readonly Trait: "trait";
|
1566
|
+
readonly Unlimited: "unlimited";
|
1567
|
+
};
|
1568
|
+
|
1569
|
+
declare type FeatureUsageResponseDataAllocationTypeEnum = (typeof FeatureUsageResponseDataAllocationTypeEnum)[keyof typeof FeatureUsageResponseDataAllocationTypeEnum];
|
1570
|
+
|
1571
|
+
declare type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
|
1572
|
+
|
1573
|
+
declare interface FetchParams {
|
1574
|
+
url: string;
|
1575
|
+
init: RequestInit;
|
1576
|
+
}
|
1577
|
+
|
1578
|
+
export { FlagCheckResponseBody }
|
1579
|
+
|
1580
|
+
export { FlagCheckWithKeyResponseBody }
|
1581
|
+
|
540
1582
|
/**
|
541
1583
|
*
|
542
1584
|
* @export
|
543
|
-
* @interface
|
1585
|
+
* @interface FlagDetailResponseData
|
544
1586
|
*/
|
545
|
-
declare interface
|
1587
|
+
declare interface FlagDetailResponseData {
|
546
1588
|
/**
|
547
1589
|
*
|
548
1590
|
* @type {Date}
|
549
|
-
* @memberof
|
1591
|
+
* @memberof FlagDetailResponseData
|
550
1592
|
*/
|
551
1593
|
createdAt: Date;
|
552
1594
|
/**
|
553
1595
|
*
|
554
|
-
* @type {
|
555
|
-
* @memberof
|
1596
|
+
* @type {boolean}
|
1597
|
+
* @memberof FlagDetailResponseData
|
556
1598
|
*/
|
557
|
-
|
1599
|
+
defaultValue: boolean;
|
558
1600
|
/**
|
559
1601
|
*
|
560
1602
|
* @type {string}
|
561
|
-
* @memberof
|
1603
|
+
* @memberof FlagDetailResponseData
|
562
1604
|
*/
|
563
|
-
|
1605
|
+
description: string;
|
564
1606
|
/**
|
565
1607
|
*
|
566
|
-
* @type {
|
567
|
-
* @memberof
|
1608
|
+
* @type {FeatureResponseData}
|
1609
|
+
* @memberof FlagDetailResponseData
|
568
1610
|
*/
|
569
|
-
|
1611
|
+
feature?: FeatureResponseData;
|
570
1612
|
/**
|
571
1613
|
*
|
572
1614
|
* @type {string}
|
573
|
-
* @memberof
|
1615
|
+
* @memberof FlagDetailResponseData
|
574
1616
|
*/
|
575
|
-
|
1617
|
+
featureId?: string | null;
|
576
1618
|
/**
|
577
1619
|
*
|
578
1620
|
* @type {string}
|
579
|
-
* @memberof
|
1621
|
+
* @memberof FlagDetailResponseData
|
580
1622
|
*/
|
581
|
-
|
1623
|
+
flagType: string;
|
582
1624
|
/**
|
583
1625
|
*
|
584
|
-
* @type {
|
585
|
-
* @memberof
|
1626
|
+
* @type {string}
|
1627
|
+
* @memberof FlagDetailResponseData
|
586
1628
|
*/
|
587
|
-
|
588
|
-
}
|
589
|
-
|
590
|
-
/**
|
591
|
-
*
|
592
|
-
* @export
|
593
|
-
* @interface EntityTraitDetailResponseData
|
594
|
-
*/
|
595
|
-
declare interface EntityTraitDetailResponseData {
|
1629
|
+
id: string;
|
596
1630
|
/**
|
597
1631
|
*
|
598
|
-
* @type {
|
599
|
-
* @memberof
|
1632
|
+
* @type {string}
|
1633
|
+
* @memberof FlagDetailResponseData
|
600
1634
|
*/
|
601
|
-
|
1635
|
+
key: string;
|
602
1636
|
/**
|
603
1637
|
*
|
604
|
-
* @type {
|
605
|
-
* @memberof
|
1638
|
+
* @type {Date}
|
1639
|
+
* @memberof FlagDetailResponseData
|
606
1640
|
*/
|
607
|
-
|
1641
|
+
lastCheckedAt?: Date | null;
|
608
1642
|
/**
|
609
1643
|
*
|
610
1644
|
* @type {string}
|
611
|
-
* @memberof
|
1645
|
+
* @memberof FlagDetailResponseData
|
612
1646
|
*/
|
613
|
-
|
1647
|
+
maintainerId?: string | null;
|
614
1648
|
/**
|
615
1649
|
*
|
616
1650
|
* @type {string}
|
617
|
-
* @memberof
|
1651
|
+
* @memberof FlagDetailResponseData
|
618
1652
|
*/
|
619
|
-
|
1653
|
+
name: string;
|
620
1654
|
/**
|
621
1655
|
*
|
622
|
-
* @type {
|
623
|
-
* @memberof
|
1656
|
+
* @type {Array<RuleDetailResponseData>}
|
1657
|
+
* @memberof FlagDetailResponseData
|
624
1658
|
*/
|
625
|
-
|
1659
|
+
rules: Array<RuleDetailResponseData>;
|
626
1660
|
/**
|
627
1661
|
*
|
628
1662
|
* @type {Date}
|
629
|
-
* @memberof
|
1663
|
+
* @memberof FlagDetailResponseData
|
630
1664
|
*/
|
631
1665
|
updatedAt: Date;
|
632
|
-
/**
|
633
|
-
*
|
634
|
-
* @type {string}
|
635
|
-
* @memberof EntityTraitDetailResponseData
|
636
|
-
*/
|
637
|
-
value: string;
|
638
1666
|
}
|
639
1667
|
|
640
|
-
export
|
1668
|
+
export declare const Flex: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
|
1669
|
+
ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
|
1670
|
+
}, never>> & string;
|
641
1671
|
|
642
|
-
|
1672
|
+
declare type FontStyle = keyof EmbedThemeSettings["typography"];
|
643
1673
|
|
644
|
-
|
1674
|
+
declare type HTTPHeaders = {
|
1675
|
+
[key: string]: string;
|
1676
|
+
};
|
645
1677
|
|
646
|
-
|
1678
|
+
declare type HTTPQuery = {
|
1679
|
+
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
1680
|
+
};
|
1681
|
+
|
1682
|
+
export declare const Icon: ({ name, className, ...props }: IconProps) => JSX_2.Element;
|
1683
|
+
|
1684
|
+
export declare type IconNameTypes = keyof typeof _default;
|
1685
|
+
|
1686
|
+
export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
|
1687
|
+
name: IconNameTypes;
|
1688
|
+
}
|
1689
|
+
|
1690
|
+
export declare const IconRound: ({ name, variant, size, colors, ...props }: IconRoundProps) => JSX_2.Element;
|
1691
|
+
|
1692
|
+
export declare interface IconRoundProps extends React.HTMLAttributes<HTMLElement> {
|
1693
|
+
name: IconNameTypes;
|
1694
|
+
variant?: "outline" | "filled";
|
1695
|
+
size?: "tn" | "sm" | "md" | "lg";
|
1696
|
+
colors?: [string, string];
|
1697
|
+
}
|
1698
|
+
|
1699
|
+
export declare const IncludedFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_2> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
|
1700
|
+
|
1701
|
+
export declare type IncludedFeaturesProps = DesignProps_2;
|
647
1702
|
|
648
1703
|
/**
|
649
1704
|
* Schematic API
|
@@ -659,147 +1714,138 @@ export { EventBodyTrack }
|
|
659
1714
|
/**
|
660
1715
|
*
|
661
1716
|
* @export
|
662
|
-
* @interface
|
1717
|
+
* @interface InvoiceResponseData
|
663
1718
|
*/
|
664
|
-
declare interface
|
1719
|
+
declare interface InvoiceResponseData {
|
665
1720
|
/**
|
666
1721
|
*
|
667
1722
|
* @type {number}
|
668
|
-
* @memberof
|
1723
|
+
* @memberof InvoiceResponseData
|
669
1724
|
*/
|
670
|
-
|
1725
|
+
amountDue: number;
|
671
1726
|
/**
|
672
1727
|
*
|
673
|
-
* @type {
|
674
|
-
* @memberof
|
1728
|
+
* @type {number}
|
1729
|
+
* @memberof InvoiceResponseData
|
675
1730
|
*/
|
676
|
-
|
1731
|
+
amountPaid: number;
|
677
1732
|
/**
|
678
1733
|
*
|
679
1734
|
* @type {number}
|
680
|
-
* @memberof
|
1735
|
+
* @memberof InvoiceResponseData
|
681
1736
|
*/
|
682
|
-
|
1737
|
+
amountRemaining: number;
|
683
1738
|
/**
|
684
1739
|
*
|
685
1740
|
* @type {string}
|
686
|
-
* @memberof
|
687
|
-
*/
|
688
|
-
eventSubtype: string;
|
689
|
-
/**
|
690
|
-
*
|
691
|
-
* @type {Date}
|
692
|
-
* @memberof EventSummaryResponseData
|
1741
|
+
* @memberof InvoiceResponseData
|
693
1742
|
*/
|
694
|
-
|
1743
|
+
collectionMethod: string;
|
695
1744
|
/**
|
696
1745
|
*
|
697
|
-
* @type {
|
698
|
-
* @memberof
|
1746
|
+
* @type {string}
|
1747
|
+
* @memberof InvoiceResponseData
|
699
1748
|
*/
|
700
|
-
|
701
|
-
}
|
702
|
-
|
703
|
-
export { EventType }
|
704
|
-
|
705
|
-
/**
|
706
|
-
*
|
707
|
-
* @export
|
708
|
-
* @interface FeatureDetailResponseData
|
709
|
-
*/
|
710
|
-
declare interface FeatureDetailResponseData {
|
1749
|
+
companyId?: string | null;
|
711
1750
|
/**
|
712
1751
|
*
|
713
1752
|
* @type {Date}
|
714
|
-
* @memberof
|
1753
|
+
* @memberof InvoiceResponseData
|
715
1754
|
*/
|
716
1755
|
createdAt: Date;
|
717
1756
|
/**
|
718
1757
|
*
|
719
1758
|
* @type {string}
|
720
|
-
* @memberof
|
1759
|
+
* @memberof InvoiceResponseData
|
721
1760
|
*/
|
722
|
-
|
1761
|
+
currency: string;
|
723
1762
|
/**
|
724
1763
|
*
|
725
1764
|
* @type {string}
|
726
|
-
* @memberof
|
1765
|
+
* @memberof InvoiceResponseData
|
727
1766
|
*/
|
728
|
-
|
1767
|
+
customerExternalId: string;
|
729
1768
|
/**
|
730
1769
|
*
|
731
|
-
* @type {
|
732
|
-
* @memberof
|
1770
|
+
* @type {Date}
|
1771
|
+
* @memberof InvoiceResponseData
|
733
1772
|
*/
|
734
|
-
|
1773
|
+
dueDate?: Date | null;
|
735
1774
|
/**
|
736
1775
|
*
|
737
1776
|
* @type {string}
|
738
|
-
* @memberof
|
1777
|
+
* @memberof InvoiceResponseData
|
739
1778
|
*/
|
740
|
-
|
741
|
-
/**
|
742
|
-
*
|
743
|
-
* @type {Array<FlagDetailResponseData>}
|
744
|
-
* @memberof FeatureDetailResponseData
|
745
|
-
*/
|
746
|
-
flags: Array<FlagDetailResponseData>;
|
1779
|
+
environmentId: string;
|
747
1780
|
/**
|
748
1781
|
*
|
749
1782
|
* @type {string}
|
750
|
-
* @memberof
|
1783
|
+
* @memberof InvoiceResponseData
|
751
1784
|
*/
|
752
|
-
|
1785
|
+
externalId: string;
|
753
1786
|
/**
|
754
1787
|
*
|
755
1788
|
* @type {string}
|
756
|
-
* @memberof
|
1789
|
+
* @memberof InvoiceResponseData
|
757
1790
|
*/
|
758
1791
|
id: string;
|
759
1792
|
/**
|
760
1793
|
*
|
761
1794
|
* @type {string}
|
762
|
-
* @memberof
|
763
|
-
*/
|
764
|
-
lifecyclePhase?: string | null;
|
765
|
-
/**
|
766
|
-
*
|
767
|
-
* @type {string}
|
768
|
-
* @memberof FeatureDetailResponseData
|
769
|
-
*/
|
770
|
-
maintainerId?: string | null;
|
771
|
-
/**
|
772
|
-
*
|
773
|
-
* @type {string}
|
774
|
-
* @memberof FeatureDetailResponseData
|
1795
|
+
* @memberof InvoiceResponseData
|
775
1796
|
*/
|
776
|
-
|
777
|
-
/**
|
778
|
-
*
|
779
|
-
* @type {Array<PreviewObject>}
|
780
|
-
* @memberof FeatureDetailResponseData
|
781
|
-
*/
|
782
|
-
plans: Array<PreviewObject>;
|
783
|
-
/**
|
784
|
-
*
|
785
|
-
* @type {EntityTraitDefinitionResponseData}
|
786
|
-
* @memberof FeatureDetailResponseData
|
787
|
-
*/
|
788
|
-
trait?: EntityTraitDefinitionResponseData;
|
1797
|
+
subscriptionExternalId?: string | null;
|
789
1798
|
/**
|
790
1799
|
*
|
791
|
-
* @type {
|
792
|
-
* @memberof
|
1800
|
+
* @type {number}
|
1801
|
+
* @memberof InvoiceResponseData
|
793
1802
|
*/
|
794
|
-
|
1803
|
+
subtotal: number;
|
795
1804
|
/**
|
796
1805
|
*
|
797
1806
|
* @type {Date}
|
798
|
-
* @memberof
|
1807
|
+
* @memberof InvoiceResponseData
|
799
1808
|
*/
|
800
1809
|
updatedAt: Date;
|
801
1810
|
}
|
802
1811
|
|
1812
|
+
export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
|
1813
|
+
|
1814
|
+
export declare type InvoicesProps = DesignProps_6;
|
1815
|
+
|
1816
|
+
export { Keys }
|
1817
|
+
|
1818
|
+
export declare const MeteredFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_3> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
|
1819
|
+
|
1820
|
+
export declare type MeteredFeaturesProps = DesignProps_3;
|
1821
|
+
|
1822
|
+
declare interface Middleware {
|
1823
|
+
pre?(context: RequestContext): Promise<FetchParams | void>;
|
1824
|
+
post?(context: ResponseContext): Promise<Response | void>;
|
1825
|
+
onError?(context: ErrorContext): Promise<Response | void>;
|
1826
|
+
}
|
1827
|
+
|
1828
|
+
export declare const OverlayHeader: ({ children }: {
|
1829
|
+
children: ReactNode;
|
1830
|
+
}) => JSX_2.Element;
|
1831
|
+
|
1832
|
+
export declare const OverlaySideBar: ({ pricePeriod, setPricePeriod, setCheckoutStage, }: {
|
1833
|
+
pricePeriod: "month" | "year";
|
1834
|
+
setPricePeriod: Dispatch<SetStateAction<"month" | "year">>;
|
1835
|
+
setCheckoutStage: Dispatch<SetStateAction<"plan" | "checkout">>;
|
1836
|
+
}) => JSX_2.Element;
|
1837
|
+
|
1838
|
+
export declare const OverlayWrapper: ({ children, size, }: {
|
1839
|
+
children: ReactNode;
|
1840
|
+
size?: "md" | "lg";
|
1841
|
+
}) => JSX_2.Element;
|
1842
|
+
|
1843
|
+
export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
|
1844
|
+
portal?: HTMLElement | null;
|
1845
|
+
} & RefAttributes<HTMLDivElement | null>>;
|
1846
|
+
|
1847
|
+
export declare type PaymentMethodProps = DesignProps_5;
|
1848
|
+
|
803
1849
|
/**
|
804
1850
|
* Schematic API
|
805
1851
|
* Schematic API
|
@@ -814,290 +1860,198 @@ declare interface FeatureDetailResponseData {
|
|
814
1860
|
/**
|
815
1861
|
*
|
816
1862
|
* @export
|
817
|
-
* @interface
|
1863
|
+
* @interface PaymentMethodResponseData
|
818
1864
|
*/
|
819
|
-
declare interface
|
820
|
-
/**
|
821
|
-
*
|
822
|
-
* @type {Date}
|
823
|
-
* @memberof FeatureResponseData
|
824
|
-
*/
|
825
|
-
createdAt: Date;
|
1865
|
+
declare interface PaymentMethodResponseData {
|
826
1866
|
/**
|
827
1867
|
*
|
828
1868
|
* @type {string}
|
829
|
-
* @memberof
|
1869
|
+
* @memberof PaymentMethodResponseData
|
830
1870
|
*/
|
831
|
-
|
1871
|
+
cardBrand?: string | null;
|
832
1872
|
/**
|
833
1873
|
*
|
834
|
-
* @type {
|
835
|
-
* @memberof
|
1874
|
+
* @type {number}
|
1875
|
+
* @memberof PaymentMethodResponseData
|
836
1876
|
*/
|
837
|
-
|
1877
|
+
cardExpMonth?: number | null;
|
838
1878
|
/**
|
839
1879
|
*
|
840
|
-
* @type {
|
841
|
-
* @memberof
|
1880
|
+
* @type {number}
|
1881
|
+
* @memberof PaymentMethodResponseData
|
842
1882
|
*/
|
843
|
-
|
1883
|
+
cardExpYear?: number | null;
|
844
1884
|
/**
|
845
1885
|
*
|
846
1886
|
* @type {string}
|
847
|
-
* @memberof
|
1887
|
+
* @memberof PaymentMethodResponseData
|
848
1888
|
*/
|
849
|
-
|
1889
|
+
cardLast4?: string | null;
|
850
1890
|
/**
|
851
1891
|
*
|
852
1892
|
* @type {string}
|
853
|
-
* @memberof
|
1893
|
+
* @memberof PaymentMethodResponseData
|
854
1894
|
*/
|
855
|
-
|
1895
|
+
companyId?: string | null;
|
856
1896
|
/**
|
857
1897
|
*
|
858
|
-
* @type {
|
859
|
-
* @memberof
|
1898
|
+
* @type {Date}
|
1899
|
+
* @memberof PaymentMethodResponseData
|
860
1900
|
*/
|
861
|
-
|
1901
|
+
createdAt: Date;
|
862
1902
|
/**
|
863
1903
|
*
|
864
1904
|
* @type {string}
|
865
|
-
* @memberof
|
1905
|
+
* @memberof PaymentMethodResponseData
|
866
1906
|
*/
|
867
|
-
|
1907
|
+
customerExternalId: string;
|
868
1908
|
/**
|
869
1909
|
*
|
870
1910
|
* @type {string}
|
871
|
-
* @memberof
|
1911
|
+
* @memberof PaymentMethodResponseData
|
872
1912
|
*/
|
873
|
-
|
1913
|
+
environmentId: string;
|
874
1914
|
/**
|
875
1915
|
*
|
876
1916
|
* @type {string}
|
877
|
-
* @memberof
|
878
|
-
*/
|
879
|
-
traitId?: string | null;
|
880
|
-
/**
|
881
|
-
*
|
882
|
-
* @type {Date}
|
883
|
-
* @memberof FeatureResponseData
|
1917
|
+
* @memberof PaymentMethodResponseData
|
884
1918
|
*/
|
885
|
-
|
886
|
-
}
|
887
|
-
|
888
|
-
/**
|
889
|
-
*
|
890
|
-
* @export
|
891
|
-
* @interface FeatureUsageDetailResponseData
|
892
|
-
*/
|
893
|
-
declare interface FeatureUsageDetailResponseData {
|
1919
|
+
externalId: string;
|
894
1920
|
/**
|
895
1921
|
*
|
896
|
-
* @type {Array<FeatureUsageResponseData>}
|
897
|
-
* @memberof FeatureUsageDetailResponseData
|
898
|
-
*/
|
899
|
-
features: Array<FeatureUsageResponseData>;
|
900
|
-
}
|
901
|
-
|
902
|
-
/**
|
903
|
-
*
|
904
|
-
* @export
|
905
|
-
* @interface FeatureUsageResponseData
|
906
|
-
*/
|
907
|
-
declare interface FeatureUsageResponseData {
|
908
|
-
/**
|
909
|
-
* Whether further usage is permitted.
|
910
|
-
* @type {boolean}
|
911
|
-
* @memberof FeatureUsageResponseData
|
912
|
-
*/
|
913
|
-
access: boolean;
|
914
|
-
/**
|
915
|
-
* The maximum amount of usage that is permitted; a null value indicates that unlimited usage is permitted.
|
916
|
-
* @type {number}
|
917
|
-
* @memberof FeatureUsageResponseData
|
918
|
-
*/
|
919
|
-
allocation?: number | null;
|
920
|
-
/**
|
921
|
-
* The type of allocation that is being used.
|
922
1922
|
* @type {string}
|
923
|
-
* @memberof
|
1923
|
+
* @memberof PaymentMethodResponseData
|
924
1924
|
*/
|
925
|
-
|
1925
|
+
id: string;
|
926
1926
|
/**
|
927
1927
|
*
|
928
1928
|
* @type {string}
|
929
|
-
* @memberof
|
1929
|
+
* @memberof PaymentMethodResponseData
|
930
1930
|
*/
|
931
|
-
|
1931
|
+
invoiceExternalId?: string | null;
|
932
1932
|
/**
|
933
1933
|
*
|
934
1934
|
* @type {string}
|
935
|
-
* @memberof
|
1935
|
+
* @memberof PaymentMethodResponseData
|
936
1936
|
*/
|
937
|
-
|
1937
|
+
paymentMethodType: string;
|
938
1938
|
/**
|
939
1939
|
*
|
940
|
-
* @type {FeatureDetailResponseData}
|
941
|
-
* @memberof FeatureUsageResponseData
|
942
|
-
*/
|
943
|
-
feature?: FeatureDetailResponseData;
|
944
|
-
/**
|
945
|
-
* The period over which usage is measured.
|
946
1940
|
* @type {string}
|
947
|
-
* @memberof
|
1941
|
+
* @memberof PaymentMethodResponseData
|
948
1942
|
*/
|
949
|
-
|
1943
|
+
subscriptionExternalId?: string | null;
|
950
1944
|
/**
|
951
1945
|
*
|
952
|
-
* @type {
|
953
|
-
* @memberof
|
954
|
-
*/
|
955
|
-
plan?: PlanResponseData;
|
956
|
-
/**
|
957
|
-
* The amount of usage that has been consumed; a null value indicates that usage is not being measured.
|
958
|
-
* @type {number}
|
959
|
-
* @memberof FeatureUsageResponseData
|
1946
|
+
* @type {Date}
|
1947
|
+
* @memberof PaymentMethodResponseData
|
960
1948
|
*/
|
961
|
-
|
1949
|
+
updatedAt: Date;
|
962
1950
|
}
|
963
1951
|
|
964
|
-
/**
|
965
|
-
* @export
|
966
|
-
*/
|
967
|
-
declare const FeatureUsageResponseDataAllocationTypeEnum: {
|
968
|
-
readonly Boolean: "boolean";
|
969
|
-
readonly Numeric: "numeric";
|
970
|
-
readonly Trait: "trait";
|
971
|
-
readonly Unlimited: "unlimited";
|
972
|
-
};
|
973
|
-
|
974
|
-
declare type FeatureUsageResponseDataAllocationTypeEnum = (typeof FeatureUsageResponseDataAllocationTypeEnum)[keyof typeof FeatureUsageResponseDataAllocationTypeEnum];
|
975
|
-
|
976
|
-
export { FlagCheckResponseBody }
|
977
|
-
|
978
|
-
export { FlagCheckWithKeyResponseBody }
|
979
|
-
|
980
1952
|
/**
|
981
1953
|
*
|
982
1954
|
* @export
|
983
|
-
* @interface
|
1955
|
+
* @interface PlanEntitlementResponseData
|
984
1956
|
*/
|
985
|
-
declare interface
|
1957
|
+
declare interface PlanEntitlementResponseData {
|
986
1958
|
/**
|
987
1959
|
*
|
988
1960
|
* @type {Date}
|
989
|
-
* @memberof
|
1961
|
+
* @memberof PlanEntitlementResponseData
|
990
1962
|
*/
|
991
1963
|
createdAt: Date;
|
992
|
-
/**
|
993
|
-
*
|
994
|
-
* @type {boolean}
|
995
|
-
* @memberof FlagDetailResponseData
|
996
|
-
*/
|
997
|
-
defaultValue: boolean;
|
998
1964
|
/**
|
999
1965
|
*
|
1000
1966
|
* @type {string}
|
1001
|
-
* @memberof
|
1967
|
+
* @memberof PlanEntitlementResponseData
|
1002
1968
|
*/
|
1003
|
-
|
1969
|
+
environmentId: string;
|
1004
1970
|
/**
|
1005
1971
|
*
|
1006
1972
|
* @type {FeatureResponseData}
|
1007
|
-
* @memberof
|
1973
|
+
* @memberof PlanEntitlementResponseData
|
1008
1974
|
*/
|
1009
1975
|
feature?: FeatureResponseData;
|
1010
1976
|
/**
|
1011
1977
|
*
|
1012
1978
|
* @type {string}
|
1013
|
-
* @memberof
|
1979
|
+
* @memberof PlanEntitlementResponseData
|
1014
1980
|
*/
|
1015
|
-
featureId
|
1981
|
+
featureId: string;
|
1016
1982
|
/**
|
1017
1983
|
*
|
1018
1984
|
* @type {string}
|
1019
|
-
* @memberof
|
1985
|
+
* @memberof PlanEntitlementResponseData
|
1020
1986
|
*/
|
1021
|
-
|
1987
|
+
id: string;
|
1022
1988
|
/**
|
1023
1989
|
*
|
1024
1990
|
* @type {string}
|
1025
|
-
* @memberof
|
1991
|
+
* @memberof PlanEntitlementResponseData
|
1026
1992
|
*/
|
1027
|
-
|
1993
|
+
metricPeriod?: string | null;
|
1994
|
+
/**
|
1995
|
+
*
|
1996
|
+
* @type {PlanResponseData}
|
1997
|
+
* @memberof PlanEntitlementResponseData
|
1998
|
+
*/
|
1999
|
+
plan?: PlanResponseData;
|
1028
2000
|
/**
|
1029
2001
|
*
|
1030
2002
|
* @type {string}
|
1031
|
-
* @memberof
|
2003
|
+
* @memberof PlanEntitlementResponseData
|
1032
2004
|
*/
|
1033
|
-
|
2005
|
+
planId: string;
|
2006
|
+
/**
|
2007
|
+
*
|
2008
|
+
* @type {string}
|
2009
|
+
* @memberof PlanEntitlementResponseData
|
2010
|
+
*/
|
2011
|
+
ruleId: string;
|
1034
2012
|
/**
|
1035
2013
|
*
|
1036
2014
|
* @type {Date}
|
1037
|
-
* @memberof
|
2015
|
+
* @memberof PlanEntitlementResponseData
|
1038
2016
|
*/
|
1039
|
-
|
2017
|
+
updatedAt: Date;
|
1040
2018
|
/**
|
1041
2019
|
*
|
1042
|
-
* @type {
|
1043
|
-
* @memberof
|
2020
|
+
* @type {boolean}
|
2021
|
+
* @memberof PlanEntitlementResponseData
|
1044
2022
|
*/
|
1045
|
-
|
2023
|
+
valueBool?: boolean | null;
|
1046
2024
|
/**
|
1047
2025
|
*
|
1048
|
-
* @type {
|
1049
|
-
* @memberof
|
2026
|
+
* @type {number}
|
2027
|
+
* @memberof PlanEntitlementResponseData
|
1050
2028
|
*/
|
1051
|
-
|
2029
|
+
valueNumeric?: number | null;
|
1052
2030
|
/**
|
1053
2031
|
*
|
1054
|
-
* @type {
|
1055
|
-
* @memberof
|
2032
|
+
* @type {EntityTraitDefinitionResponseData}
|
2033
|
+
* @memberof PlanEntitlementResponseData
|
1056
2034
|
*/
|
1057
|
-
|
2035
|
+
valueTrait?: EntityTraitDefinitionResponseData;
|
1058
2036
|
/**
|
1059
2037
|
*
|
1060
|
-
* @type {
|
1061
|
-
* @memberof
|
2038
|
+
* @type {string}
|
2039
|
+
* @memberof PlanEntitlementResponseData
|
1062
2040
|
*/
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
export declare const Icon: ({ name, className, ...props }: IconProps) => JSX_2.Element;
|
1071
|
-
|
1072
|
-
export declare type IconNameTypes = keyof typeof _default;
|
1073
|
-
|
1074
|
-
export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
|
1075
|
-
name: IconNameTypes;
|
1076
|
-
}
|
1077
|
-
|
1078
|
-
export declare const IconRound: ({ name, style, size, }: IconRoundProps) => JSX_2.Element;
|
1079
|
-
|
1080
|
-
export declare interface IconRoundProps {
|
1081
|
-
name: IconNameTypes;
|
1082
|
-
style?: "outline" | "filled";
|
1083
|
-
size?: "tn" | "sm" | "md" | "lg";
|
2041
|
+
valueTraitId?: string | null;
|
2042
|
+
/**
|
2043
|
+
*
|
2044
|
+
* @type {string}
|
2045
|
+
* @memberof PlanEntitlementResponseData
|
2046
|
+
*/
|
2047
|
+
valueType: string;
|
1084
2048
|
}
|
1085
2049
|
|
1086
|
-
export declare const
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
export declare const Invoices: () => JSX_2.Element;
|
2050
|
+
export declare const PlanManager: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps> & HTMLAttributes<HTMLDivElement> & {
|
2051
|
+
portal?: HTMLElement | null;
|
2052
|
+
} & RefAttributes<HTMLDivElement | null>>;
|
1091
2053
|
|
1092
|
-
export
|
1093
|
-
|
1094
|
-
export declare const NextBillDue: () => JSX_2.Element;
|
1095
|
-
|
1096
|
-
export declare const PaymentMethod: () => JSX_2.Element;
|
1097
|
-
|
1098
|
-
export declare const PlanManager: ({ className, ...props }: PlanManagerProps) => JSX_2.Element;
|
1099
|
-
|
1100
|
-
export declare type PlanManagerProps = ElementProps & RecursivePartial<DesignProps_2> & React.HTMLAttributes<HTMLDivElement>;
|
2054
|
+
export declare type PlanManagerProps = DesignProps;
|
1101
2055
|
|
1102
2056
|
/**
|
1103
2057
|
* Schematic API
|
@@ -1121,7 +2075,7 @@ declare interface PlanResponseData {
|
|
1121
2075
|
* @type {string}
|
1122
2076
|
* @memberof PlanResponseData
|
1123
2077
|
*/
|
1124
|
-
audienceType
|
2078
|
+
audienceType?: string | null;
|
1125
2079
|
/**
|
1126
2080
|
*
|
1127
2081
|
* @type {Date}
|
@@ -1223,6 +2177,24 @@ declare type RecursivePartial<T> = {
|
|
1223
2177
|
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
|
1224
2178
|
};
|
1225
2179
|
|
2180
|
+
declare interface RequestContext {
|
2181
|
+
fetch: FetchAPI;
|
2182
|
+
url: string;
|
2183
|
+
init: RequestInit;
|
2184
|
+
}
|
2185
|
+
|
2186
|
+
declare interface ResponseContext {
|
2187
|
+
fetch: FetchAPI;
|
2188
|
+
url: string;
|
2189
|
+
init: RequestInit;
|
2190
|
+
response: Response;
|
2191
|
+
}
|
2192
|
+
|
2193
|
+
export declare const Root: ForwardRefExoticComponent<Omit<RootProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
|
2194
|
+
|
2195
|
+
export declare interface RootProps extends React.HTMLProps<HTMLDivElement> {
|
2196
|
+
}
|
2197
|
+
|
1226
2198
|
/**
|
1227
2199
|
*
|
1228
2200
|
* @export
|
@@ -1533,7 +2505,7 @@ declare interface SchematicContextProps {
|
|
1533
2505
|
flagValues: Record<string, boolean>;
|
1534
2506
|
}
|
1535
2507
|
|
1536
|
-
export declare const SchematicEmbed: ({ id, accessToken }: EmbedProps) => JSX_2.Element;
|
2508
|
+
export declare const SchematicEmbed: ({ id, accessToken, apiConfig }: EmbedProps) => JSX_2.Element;
|
1537
2509
|
|
1538
2510
|
export declare interface SchematicHookOpts {
|
1539
2511
|
client?: SchematicJS.Schematic;
|
@@ -1541,7 +2513,7 @@ export declare interface SchematicHookOpts {
|
|
1541
2513
|
|
1542
2514
|
export { SchematicOptions }
|
1543
2515
|
|
1544
|
-
export declare const SchematicProvider:
|
2516
|
+
export declare const SchematicProvider: React.FC<SchematicProviderProps>;
|
1545
2517
|
|
1546
2518
|
export declare type SchematicProviderProps = SchematicProviderPropsWithClient | SchematicProviderPropsWithPublishableKey;
|
1547
2519
|
|
@@ -1564,37 +2536,47 @@ declare type SerializedNodeWithChildren = SerializedNode & {
|
|
1564
2536
|
children: SerializedNodeWithChildren[];
|
1565
2537
|
};
|
1566
2538
|
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
2539
|
+
/**
|
2540
|
+
* Schematic API
|
2541
|
+
* Schematic API
|
2542
|
+
*
|
2543
|
+
* The version of the OpenAPI document: 0.1
|
2544
|
+
*
|
2545
|
+
*
|
2546
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
2547
|
+
* https://openapi-generator.tech
|
2548
|
+
* Do not edit the class manually.
|
2549
|
+
*/
|
2550
|
+
/**
|
2551
|
+
*
|
2552
|
+
* @export
|
2553
|
+
* @interface StripeEmbedInfo
|
2554
|
+
*/
|
2555
|
+
declare interface StripeEmbedInfo {
|
2556
|
+
/**
|
2557
|
+
*
|
2558
|
+
* @type {string}
|
2559
|
+
* @memberof StripeEmbedInfo
|
2560
|
+
*/
|
2561
|
+
customerEkey?: string | null;
|
2562
|
+
/**
|
2563
|
+
*
|
2564
|
+
* @type {string}
|
2565
|
+
* @memberof StripeEmbedInfo
|
2566
|
+
*/
|
2567
|
+
publishableKey: string;
|
1579
2568
|
}
|
1580
2569
|
|
1581
2570
|
declare const Text_2: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>> & string;
|
1582
2571
|
export { Text_2 as Text }
|
1583
2572
|
|
1584
|
-
declare interface TextDesignProps {
|
1585
|
-
isVisible?: boolean;
|
1586
|
-
fontFamily?: string;
|
1587
|
-
fontSize?: number;
|
1588
|
-
fontWeight?: number;
|
1589
|
-
color?: string;
|
1590
|
-
}
|
1591
|
-
|
1592
2573
|
export declare interface TextProps extends ComponentProps {
|
1593
2574
|
$align?: ComponentProps["$textAlign"];
|
1594
2575
|
$font?: ComponentProps["$fontFamily"];
|
1595
2576
|
$size?: ComponentProps["$fontSize"];
|
1596
2577
|
$weight?: ComponentProps["$fontWeight"];
|
1597
2578
|
$color?: ComponentProps["$color"];
|
2579
|
+
$lineHeight?: ComponentProps["$lineHeight"];
|
1598
2580
|
}
|
1599
2581
|
|
1600
2582
|
export { Traits }
|
@@ -1603,6 +2585,17 @@ declare type TransientCSSProperties = {
|
|
1603
2585
|
[Property in keyof React.CSSProperties as `$${string & Property}`]: React.CSSProperties[Property];
|
1604
2586
|
};
|
1605
2587
|
|
2588
|
+
declare interface TypographySettings {
|
2589
|
+
fontFamily: string;
|
2590
|
+
fontSize: number;
|
2591
|
+
fontWeight: number;
|
2592
|
+
color: string;
|
2593
|
+
}
|
2594
|
+
|
2595
|
+
export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
|
2596
|
+
|
2597
|
+
export declare type UpcomingBillProps = DesignProps_4;
|
2598
|
+
|
1606
2599
|
export declare const useEmbed: () => EmbedContextProps;
|
1607
2600
|
|
1608
2601
|
export declare const useSchematic: () => SchematicContextProps;
|
@@ -1622,4 +2615,9 @@ export declare type UseSchematicFlagOpts = SchematicHookOpts & {
|
|
1622
2615
|
fallback?: boolean;
|
1623
2616
|
};
|
1624
2617
|
|
2618
|
+
export declare const Viewport: ForwardRefExoticComponent<Omit<ViewportProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
|
2619
|
+
|
2620
|
+
export declare interface ViewportProps extends React.HTMLProps<HTMLDivElement> {
|
2621
|
+
}
|
2622
|
+
|
1625
2623
|
export { }
|