@schematichq/schematic-react 0.2.0-rc.8 → 1.0.0-rc.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.
@@ -1,1470 +1,22 @@
1
- import { Context } from 'react';
2
- import * as Craft from '@craftjs/core';
3
- import { DetailedHTMLProps } from 'react';
4
- import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES } from 'react';
5
1
  import { Event as Event_2 } from '@schematichq/schematic-js';
6
2
  import { EventBody } from '@schematichq/schematic-js';
7
3
  import { EventBodyIdentify } from '@schematichq/schematic-js';
8
4
  import { EventBodyTrack } from '@schematichq/schematic-js';
9
5
  import { EventType } from '@schematichq/schematic-js';
10
- import { FastOmit } from 'styled-components';
11
6
  import { FlagCheckResponseBody } from '@schematichq/schematic-js';
12
7
  import { FlagCheckWithKeyResponseBody } from '@schematichq/schematic-js';
13
- import { ForwardRefExoticComponent } from 'react';
14
- import { HTMLAttributes } from 'react';
15
- import { IStyledComponentBase } from 'styled-components/dist/types';
16
- import { JSX as JSX_2 } from 'react/jsx-runtime';
17
8
  import { Keys } from '@schematichq/schematic-js';
18
9
  import { default as React_2 } from 'react';
19
- import { RefAttributes } from 'react';
20
- import { RefObject } from 'react';
21
10
  import { Schematic } from '@schematichq/schematic-js';
22
11
  import { SchematicContext } from '@schematichq/schematic-js';
23
12
  import * as SchematicJS from '@schematichq/schematic-js';
24
13
  import { SchematicOptions } from '@schematichq/schematic-js';
25
- import { Stripe } from '@stripe/stripe-js';
26
- import { Substitute } from 'styled-components/dist/types';
27
14
  import { Traits } from '@schematichq/schematic-js';
28
15
 
29
- declare interface ApiResponse<T> {
30
- raw: Response;
31
- value(): Promise<T>;
32
- }
33
-
34
- /**
35
- * Schematic API
36
- * Schematic API
37
- *
38
- * The version of the OpenAPI document: 0.1
39
- *
40
- *
41
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
42
- * https://openapi-generator.tech
43
- * Do not edit the class manually.
44
- */
45
- declare const BASE_PATH: string;
46
-
47
- /**
48
- * This is the base class for all generated API classes.
49
- */
50
- declare class BaseAPI {
51
- protected configuration: Configuration;
52
- private static readonly jsonRegex;
53
- private middleware;
54
- constructor(configuration?: Configuration);
55
- withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
56
- withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware["pre"]>): T;
57
- withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware["post"]>): T;
58
- /**
59
- * Check if the given MIME is a JSON MIME.
60
- * JSON MIME examples:
61
- * application/json
62
- * application/json; charset=UTF8
63
- * APPLICATION/JSON
64
- * application/vnd.company+json
65
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
66
- * @return True if the given MIME is JSON, false otherwise.
67
- */
68
- protected isJsonMime(mime: string | null | undefined): boolean;
69
- protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
70
- private createFetchParams;
71
- private fetchApi;
72
- /**
73
- * Create a shallow clone of `this` by constructing a new instance
74
- * and then shallow cloning data members.
75
- */
76
- private clone;
77
- }
78
-
79
16
  declare type BaseSchematicProviderProps = Omit<SchematicJS.SchematicOptions, "client" | "publishableKey"> & {
80
17
  children: React_2.ReactNode;
81
18
  };
82
19
 
83
- /**
84
- * Schematic API
85
- * Schematic API
86
- *
87
- * The version of the OpenAPI document: 0.1
88
- *
89
- *
90
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
91
- * https://openapi-generator.tech
92
- * Do not edit the class manually.
93
- */
94
- /**
95
- *
96
- * @export
97
- * @interface BillingPlan
98
- */
99
- declare interface BillingPlan {
100
- /**
101
- *
102
- * @type {string}
103
- * @memberof BillingPlan
104
- */
105
- description?: string | null;
106
- /**
107
- *
108
- * @type {string}
109
- * @memberof BillingPlan
110
- */
111
- id: string;
112
- /**
113
- *
114
- * @type {string}
115
- * @memberof BillingPlan
116
- */
117
- imageUrl?: string | null;
118
- /**
119
- *
120
- * @type {string}
121
- * @memberof BillingPlan
122
- */
123
- name: string;
124
- /**
125
- *
126
- * @type {string}
127
- * @memberof BillingPlan
128
- */
129
- planPeriod?: string | null;
130
- /**
131
- *
132
- * @type {number}
133
- * @memberof BillingPlan
134
- */
135
- planPrice?: number | null;
136
- }
137
-
138
- /**
139
- * Schematic API
140
- * Schematic API
141
- *
142
- * The version of the OpenAPI document: 0.1
143
- *
144
- *
145
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
146
- * https://openapi-generator.tech
147
- * Do not edit the class manually.
148
- */
149
- /**
150
- *
151
- * @export
152
- * @interface BillingPriceResponseData
153
- */
154
- declare interface BillingPriceResponseData {
155
- /**
156
- *
157
- * @type {string}
158
- * @memberof BillingPriceResponseData
159
- */
160
- externalPriceId: string;
161
- /**
162
- *
163
- * @type {string}
164
- * @memberof BillingPriceResponseData
165
- */
166
- id: string;
167
- /**
168
- *
169
- * @type {string}
170
- * @memberof BillingPriceResponseData
171
- */
172
- interval: string;
173
- /**
174
- *
175
- * @type {number}
176
- * @memberof BillingPriceResponseData
177
- */
178
- price: number;
179
- }
180
-
181
- /**
182
- *
183
- * @export
184
- * @interface BillingProductDetailResponseData
185
- */
186
- declare interface BillingProductDetailResponseData {
187
- /**
188
- *
189
- * @type {Array<BillingPriceResponseData>}
190
- * @memberof BillingProductDetailResponseData
191
- */
192
- prices: Array<BillingPriceResponseData>;
193
- /**
194
- *
195
- * @type {string}
196
- * @memberof BillingProductDetailResponseData
197
- */
198
- accountId: string;
199
- /**
200
- *
201
- * @type {Date}
202
- * @memberof BillingProductDetailResponseData
203
- */
204
- createdAt: Date;
205
- /**
206
- *
207
- * @type {string}
208
- * @memberof BillingProductDetailResponseData
209
- */
210
- currency: string;
211
- /**
212
- *
213
- * @type {string}
214
- * @memberof BillingProductDetailResponseData
215
- */
216
- environmentId: string;
217
- /**
218
- *
219
- * @type {string}
220
- * @memberof BillingProductDetailResponseData
221
- */
222
- externalId: string;
223
- /**
224
- *
225
- * @type {string}
226
- * @memberof BillingProductDetailResponseData
227
- */
228
- name: string;
229
- /**
230
- *
231
- * @type {number}
232
- * @memberof BillingProductDetailResponseData
233
- */
234
- price: number;
235
- /**
236
- *
237
- * @type {string}
238
- * @memberof BillingProductDetailResponseData
239
- */
240
- productId: string;
241
- /**
242
- *
243
- * @type {number}
244
- * @memberof BillingProductDetailResponseData
245
- */
246
- quantity: number;
247
- /**
248
- *
249
- * @type {Date}
250
- * @memberof BillingProductDetailResponseData
251
- */
252
- updatedAt: Date;
253
- }
254
-
255
- /**
256
- * Schematic API
257
- * Schematic API
258
- *
259
- * The version of the OpenAPI document: 0.1
260
- *
261
- *
262
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
263
- * https://openapi-generator.tech
264
- * Do not edit the class manually.
265
- */
266
- /**
267
- *
268
- * @export
269
- * @interface BillingProductForSubscriptionResponseData
270
- */
271
- declare interface BillingProductForSubscriptionResponseData {
272
- /**
273
- *
274
- * @type {string}
275
- * @memberof BillingProductForSubscriptionResponseData
276
- */
277
- accountId: string;
278
- /**
279
- *
280
- * @type {Date}
281
- * @memberof BillingProductForSubscriptionResponseData
282
- */
283
- createdAt: Date;
284
- /**
285
- *
286
- * @type {string}
287
- * @memberof BillingProductForSubscriptionResponseData
288
- */
289
- currency: string;
290
- /**
291
- *
292
- * @type {string}
293
- * @memberof BillingProductForSubscriptionResponseData
294
- */
295
- environmentId: string;
296
- /**
297
- *
298
- * @type {string}
299
- * @memberof BillingProductForSubscriptionResponseData
300
- */
301
- externalId: string;
302
- /**
303
- *
304
- * @type {string}
305
- * @memberof BillingProductForSubscriptionResponseData
306
- */
307
- id: string;
308
- /**
309
- *
310
- * @type {string}
311
- * @memberof BillingProductForSubscriptionResponseData
312
- */
313
- interval?: string | null;
314
- /**
315
- *
316
- * @type {string}
317
- * @memberof BillingProductForSubscriptionResponseData
318
- */
319
- name: string;
320
- /**
321
- *
322
- * @type {number}
323
- * @memberof BillingProductForSubscriptionResponseData
324
- */
325
- price: number;
326
- /**
327
- *
328
- * @type {string}
329
- * @memberof BillingProductForSubscriptionResponseData
330
- */
331
- priceExternalId?: string | null;
332
- /**
333
- *
334
- * @type {number}
335
- * @memberof BillingProductForSubscriptionResponseData
336
- */
337
- quantity: number;
338
- /**
339
- *
340
- * @type {string}
341
- * @memberof BillingProductForSubscriptionResponseData
342
- */
343
- subscriptionId: string;
344
- /**
345
- *
346
- * @type {Date}
347
- * @memberof BillingProductForSubscriptionResponseData
348
- */
349
- updatedAt: Date;
350
- }
351
-
352
- /**
353
- * Schematic API
354
- * Schematic API
355
- *
356
- * The version of the OpenAPI document: 0.1
357
- *
358
- *
359
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
360
- * https://openapi-generator.tech
361
- * Do not edit the class manually.
362
- */
363
- /**
364
- * The created resource
365
- * @export
366
- * @interface BillingSubscriptionResponseData
367
- */
368
- declare interface BillingSubscriptionResponseData {
369
- /**
370
- *
371
- * @type {Date}
372
- * @memberof BillingSubscriptionResponseData
373
- */
374
- expiredAt?: Date | null;
375
- /**
376
- *
377
- * @type {string}
378
- * @memberof BillingSubscriptionResponseData
379
- */
380
- externalId: string;
381
- /**
382
- *
383
- * @type {number}
384
- * @memberof BillingSubscriptionResponseData
385
- */
386
- id: number;
387
- /**
388
- *
389
- * @type {Date}
390
- * @memberof BillingSubscriptionResponseData
391
- */
392
- updatedAt: Date;
393
- }
394
-
395
- declare class BlobApiResponse {
396
- raw: Response;
397
- constructor(raw: Response);
398
- value(): Promise<Blob>;
399
- }
400
-
401
- export declare const Box: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ComponentProps>> & string;
402
-
403
- export declare type BoxProps = ComponentProps;
404
-
405
- export declare const Button: ({ color, size, variant, disabled, children, ...props }: ButtonProps) => JSX_2.Element;
406
-
407
- export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
408
- color?: ButtonStyleTypes;
409
- size?: ButtonSizeTypes;
410
- variant?: ButtonVariantTypes;
411
- }
412
-
413
- export declare type ButtonSizeTypes = "sm" | "md" | "lg";
414
-
415
- export declare type ButtonStyleTypes = "blue" | "white" | "red" | "black";
416
-
417
- export declare type ButtonVariantTypes = "solid" | "outline" | "ghost" | "link";
418
-
419
- declare function canConsumeForm(consumes: Consume[]): boolean;
420
-
421
- export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLDivElement | null>>;
422
-
423
- export declare interface CardProps {
424
- children?: React.ReactNode;
425
- className?: string;
426
- }
427
-
428
- /**
429
- * Schematic API
430
- * Schematic API
431
- *
432
- * The version of the OpenAPI document: 0.1
433
- *
434
- *
435
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
436
- * https://openapi-generator.tech
437
- * Do not edit the class manually.
438
- */
439
- /**
440
- *
441
- * @export
442
- * @interface ChangeSubscriptionRequestBody
443
- */
444
- declare interface ChangeSubscriptionRequestBody {
445
- /**
446
- *
447
- * @type {string}
448
- * @memberof ChangeSubscriptionRequestBody
449
- */
450
- newPlanId: string;
451
- /**
452
- *
453
- * @type {string}
454
- * @memberof ChangeSubscriptionRequestBody
455
- */
456
- newPriceId: string;
457
- /**
458
- *
459
- * @type {string}
460
- * @memberof ChangeSubscriptionRequestBody
461
- */
462
- paymentMethodId?: string | null;
463
- }
464
-
465
- /**
466
- *
467
- */
468
- declare class CheckoutApi extends runtime.BaseAPI {
469
- /**
470
- * Checkout
471
- */
472
- checkoutRaw(requestParameters: CheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckoutResponse>>;
473
- /**
474
- * Checkout
475
- */
476
- checkout(requestParameters: CheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckoutResponse>;
477
- /**
478
- * Hydrate component
479
- */
480
- hydrateComponentRaw(requestParameters: HydrateComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HydrateComponentResponse>>;
481
- /**
482
- * Hydrate component
483
- */
484
- hydrateComponent(requestParameters: HydrateComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HydrateComponentResponse>;
485
- }
486
-
487
- declare interface CheckoutRequest {
488
- changeSubscriptionRequestBody: ChangeSubscriptionRequestBody;
489
- }
490
-
491
- /**
492
- *
493
- * @export
494
- * @interface CheckoutResponse
495
- */
496
- declare interface CheckoutResponse {
497
- /**
498
- *
499
- * @type {BillingSubscriptionResponseData}
500
- * @memberof CheckoutResponse
501
- */
502
- data: BillingSubscriptionResponseData;
503
- /**
504
- * Input parameters
505
- * @type {object}
506
- * @memberof CheckoutResponse
507
- */
508
- params: object;
509
- }
510
-
511
- declare const COLLECTION_FORMATS: {
512
- csv: string;
513
- ssv: string;
514
- tsv: string;
515
- pipes: string;
516
- };
517
-
518
- export declare const Column: ForwardRefExoticComponent<Omit<ColumnProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
519
-
520
- export declare interface ColumnProps extends React.HTMLProps<HTMLDivElement> {
521
- basis?: string;
522
- }
523
-
524
- /**
525
- *
526
- * @export
527
- * @interface CompanyDetailResponseData
528
- */
529
- declare interface CompanyDetailResponseData {
530
- /**
531
- *
532
- * @type {Array<BillingPlan>}
533
- * @memberof CompanyDetailResponseData
534
- */
535
- addOns: Array<BillingPlan>;
536
- /**
537
- *
538
- * @type {Date}
539
- * @memberof CompanyDetailResponseData
540
- */
541
- createdAt: Date;
542
- /**
543
- *
544
- * @type {Array<EntityTraitDetailResponseData>}
545
- * @memberof CompanyDetailResponseData
546
- */
547
- entityTraits: Array<EntityTraitDetailResponseData>;
548
- /**
549
- *
550
- * @type {string}
551
- * @memberof CompanyDetailResponseData
552
- */
553
- environmentId: string;
554
- /**
555
- *
556
- * @type {string}
557
- * @memberof CompanyDetailResponseData
558
- */
559
- id: string;
560
- /**
561
- *
562
- * @type {Array<EntityKeyDetailResponseData>}
563
- * @memberof CompanyDetailResponseData
564
- */
565
- keys: Array<EntityKeyDetailResponseData>;
566
- /**
567
- *
568
- * @type {Date}
569
- * @memberof CompanyDetailResponseData
570
- */
571
- lastSeenAt?: Date | null;
572
- /**
573
- *
574
- * @type {string}
575
- * @memberof CompanyDetailResponseData
576
- */
577
- logoUrl?: string | null;
578
- /**
579
- *
580
- * @type {string}
581
- * @memberof CompanyDetailResponseData
582
- */
583
- name: string;
584
- /**
585
- *
586
- * @type {BillingPlan}
587
- * @memberof CompanyDetailResponseData
588
- */
589
- plan?: BillingPlan;
590
- /**
591
- *
592
- * @type {Array<PreviewObject>}
593
- * @memberof CompanyDetailResponseData
594
- */
595
- plans: Array<PreviewObject>;
596
- /**
597
- * A map of trait names to trait values
598
- * @type {object}
599
- * @memberof CompanyDetailResponseData
600
- */
601
- traits?: object;
602
- /**
603
- *
604
- * @type {Date}
605
- * @memberof CompanyDetailResponseData
606
- */
607
- updatedAt: Date;
608
- /**
609
- *
610
- * @type {number}
611
- * @memberof CompanyDetailResponseData
612
- */
613
- userCount: number;
614
- }
615
-
616
- /**
617
- *
618
- * @export
619
- * @interface CompanyPlanDetailResponseData
620
- */
621
- declare interface CompanyPlanDetailResponseData {
622
- /**
623
- *
624
- * @type {string}
625
- * @memberof CompanyPlanDetailResponseData
626
- */
627
- audienceType?: string | null;
628
- /**
629
- *
630
- * @type {BillingProductDetailResponseData}
631
- * @memberof CompanyPlanDetailResponseData
632
- */
633
- billingProduct?: BillingProductDetailResponseData;
634
- /**
635
- *
636
- * @type {number}
637
- * @memberof CompanyPlanDetailResponseData
638
- */
639
- companyCount: number;
640
- /**
641
- *
642
- * @type {Date}
643
- * @memberof CompanyPlanDetailResponseData
644
- */
645
- createdAt: Date;
646
- /**
647
- *
648
- * @type {boolean}
649
- * @memberof CompanyPlanDetailResponseData
650
- */
651
- current: boolean;
652
- /**
653
- *
654
- * @type {string}
655
- * @memberof CompanyPlanDetailResponseData
656
- */
657
- description: string;
658
- /**
659
- *
660
- * @type {Array<PlanEntitlementResponseData>}
661
- * @memberof CompanyPlanDetailResponseData
662
- */
663
- entitlements: Array<PlanEntitlementResponseData>;
664
- /**
665
- *
666
- * @type {Array<FeatureDetailResponseData>}
667
- * @memberof CompanyPlanDetailResponseData
668
- */
669
- features: Array<FeatureDetailResponseData>;
670
- /**
671
- *
672
- * @type {string}
673
- * @memberof CompanyPlanDetailResponseData
674
- */
675
- icon: string;
676
- /**
677
- *
678
- * @type {string}
679
- * @memberof CompanyPlanDetailResponseData
680
- */
681
- id: string;
682
- /**
683
- *
684
- * @type {boolean}
685
- * @memberof CompanyPlanDetailResponseData
686
- */
687
- isDefault: boolean;
688
- /**
689
- *
690
- * @type {BillingPriceResponseData}
691
- * @memberof CompanyPlanDetailResponseData
692
- */
693
- monthlyPrice?: BillingPriceResponseData;
694
- /**
695
- *
696
- * @type {string}
697
- * @memberof CompanyPlanDetailResponseData
698
- */
699
- name: string;
700
- /**
701
- *
702
- * @type {string}
703
- * @memberof CompanyPlanDetailResponseData
704
- */
705
- planType: string;
706
- /**
707
- *
708
- * @type {Date}
709
- * @memberof CompanyPlanDetailResponseData
710
- */
711
- updatedAt: Date;
712
- /**
713
- *
714
- * @type {boolean}
715
- * @memberof CompanyPlanDetailResponseData
716
- */
717
- valid: boolean;
718
- /**
719
- *
720
- * @type {BillingPriceResponseData}
721
- * @memberof CompanyPlanDetailResponseData
722
- */
723
- yearlyPrice?: BillingPriceResponseData;
724
- }
725
-
726
- /**
727
- *
728
- * @export
729
- * @interface CompanySubscriptionResponseData
730
- */
731
- declare interface CompanySubscriptionResponseData {
732
- /**
733
- *
734
- * @type {string}
735
- * @memberof CompanySubscriptionResponseData
736
- */
737
- customerExternalId: string;
738
- /**
739
- *
740
- * @type {Date}
741
- * @memberof CompanySubscriptionResponseData
742
- */
743
- expiredAt?: Date | null;
744
- /**
745
- *
746
- * @type {string}
747
- * @memberof CompanySubscriptionResponseData
748
- */
749
- interval: string;
750
- /**
751
- *
752
- * @type {InvoiceResponseData}
753
- * @memberof CompanySubscriptionResponseData
754
- */
755
- latestInvoice?: InvoiceResponseData;
756
- /**
757
- *
758
- * @type {PaymentMethodResponseData}
759
- * @memberof CompanySubscriptionResponseData
760
- */
761
- paymentMethod?: PaymentMethodResponseData;
762
- /**
763
- *
764
- * @type {Array<BillingProductForSubscriptionResponseData>}
765
- * @memberof CompanySubscriptionResponseData
766
- */
767
- products: Array<BillingProductForSubscriptionResponseData>;
768
- /**
769
- *
770
- * @type {string}
771
- * @memberof CompanySubscriptionResponseData
772
- */
773
- subscriptionExternalId: string;
774
- /**
775
- *
776
- * @type {number}
777
- * @memberof CompanySubscriptionResponseData
778
- */
779
- totalPrice: number;
780
- }
781
-
782
- /**
783
- * The returned resource
784
- * @export
785
- * @interface ComponentHydrateResponseData
786
- */
787
- declare interface ComponentHydrateResponseData {
788
- /**
789
- *
790
- * @type {Array<CompanyPlanDetailResponseData>}
791
- * @memberof ComponentHydrateResponseData
792
- */
793
- activePlans: Array<CompanyPlanDetailResponseData>;
794
- /**
795
- *
796
- * @type {CompanyDetailResponseData}
797
- * @memberof ComponentHydrateResponseData
798
- */
799
- company?: CompanyDetailResponseData;
800
- /**
801
- *
802
- * @type {ComponentResponseData}
803
- * @memberof ComponentHydrateResponseData
804
- */
805
- component?: ComponentResponseData;
806
- /**
807
- *
808
- * @type {FeatureUsageDetailResponseData}
809
- * @memberof ComponentHydrateResponseData
810
- */
811
- featureUsage?: FeatureUsageDetailResponseData;
812
- /**
813
- *
814
- * @type {StripeEmbedInfo}
815
- * @memberof ComponentHydrateResponseData
816
- */
817
- stripeEmbed?: StripeEmbedInfo;
818
- /**
819
- *
820
- * @type {CompanySubscriptionResponseData}
821
- * @memberof ComponentHydrateResponseData
822
- */
823
- subscription?: CompanySubscriptionResponseData;
824
- /**
825
- *
826
- * @type {InvoiceResponseData}
827
- * @memberof ComponentHydrateResponseData
828
- */
829
- upcomingInvoice?: InvoiceResponseData;
830
- }
831
-
832
- declare interface ComponentProps extends TransientCSSProperties {
833
- children?: React.ReactNode;
834
- }
835
-
836
- /**
837
- * Schematic API
838
- * Schematic API
839
- *
840
- * The version of the OpenAPI document: 0.1
841
- *
842
- *
843
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
844
- * https://openapi-generator.tech
845
- * Do not edit the class manually.
846
- */
847
- /**
848
- *
849
- * @export
850
- * @interface ComponentResponseData
851
- */
852
- declare interface ComponentResponseData {
853
- /**
854
- *
855
- * @type {{ [key: string]: number; }}
856
- * @memberof ComponentResponseData
857
- */
858
- ast?: {
859
- [key: string]: number;
860
- };
861
- /**
862
- *
863
- * @type {Date}
864
- * @memberof ComponentResponseData
865
- */
866
- createdAt: Date;
867
- /**
868
- *
869
- * @type {string}
870
- * @memberof ComponentResponseData
871
- */
872
- id: string;
873
- /**
874
- *
875
- * @type {string}
876
- * @memberof ComponentResponseData
877
- */
878
- name: string;
879
- /**
880
- *
881
- * @type {string}
882
- * @memberof ComponentResponseData
883
- */
884
- state: string;
885
- /**
886
- *
887
- * @type {string}
888
- * @memberof ComponentResponseData
889
- */
890
- type: string;
891
- /**
892
- *
893
- * @type {Date}
894
- * @memberof ComponentResponseData
895
- */
896
- updatedAt: Date;
897
- }
898
-
899
- declare class Configuration {
900
- private configuration;
901
- constructor(configuration?: ConfigurationParameters);
902
- set config(configuration: Configuration);
903
- get basePath(): string;
904
- get fetchApi(): FetchAPI | undefined;
905
- get middleware(): Middleware[];
906
- get queryParamsStringify(): (params: HTTPQuery) => string;
907
- get username(): string | undefined;
908
- get password(): string | undefined;
909
- get apiKey(): ((name: string) => string | Promise<string>) | undefined;
910
- get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
911
- get headers(): HTTPHeaders | undefined;
912
- get credentials(): RequestCredentials | undefined;
913
- }
914
-
915
- declare interface ConfigurationParameters {
916
- basePath?: string;
917
- fetchApi?: FetchAPI;
918
- middleware?: Middleware[];
919
- queryParamsStringify?: (params: HTTPQuery) => string;
920
- username?: string;
921
- password?: string;
922
- apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
923
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
924
- headers?: HTTPHeaders;
925
- credentials?: RequestCredentials;
926
- }
927
-
928
- declare interface Consume {
929
- contentType: string;
930
- }
931
-
932
- declare const _default: {
933
- alarm: number;
934
- "arrow-curved": number;
935
- "arrow-down": number;
936
- "arrow-left": number;
937
- "arrow-right": number;
938
- "arrow-up": number;
939
- "arrow-upward": number;
940
- backspace: number;
941
- bell: number;
942
- board: number;
943
- bookmark: number;
944
- "boolean-on": number;
945
- boolean: number;
946
- bulb: number;
947
- burger: number;
948
- "check-rounded": number;
949
- check: number;
950
- "chevron-down": number;
951
- "chevron-left": number;
952
- "chevron-right": number;
953
- "chevron-up": number;
954
- chip: number;
955
- chips: number;
956
- "close-rounded-filled": number;
957
- close: number;
958
- "cloud-up": number;
959
- club: number;
960
- cmd: number;
961
- code: number;
962
- coffee: number;
963
- cog: number;
964
- "collapse-empty": number;
965
- collapse: number;
966
- compass: number;
967
- connection: number;
968
- copy: number;
969
- cylnder: number;
970
- diamond: number;
971
- "dollar-rounded": number;
972
- "dots-horizontal": number;
973
- "dots-vertical": number;
974
- entitlements: number;
975
- equalizer: number;
976
- "exclamation-rounded-filled": number;
977
- eye: number;
978
- filter: number;
979
- "folder-minus": number;
980
- "folder-plus": number;
981
- folder: number;
982
- glasses: number;
983
- globe: number;
984
- hammer: number;
985
- hash: number;
986
- heart: number;
987
- hubspot: number;
988
- image: number;
989
- "info-rounded": number;
990
- juice: number;
991
- key: number;
992
- music: number;
993
- "node-minus": number;
994
- "node-plus": number;
995
- package: number;
996
- "paper-plane": number;
997
- pencil: number;
998
- picker: number;
999
- plan: number;
1000
- plug: number;
1001
- "plus-minus": number;
1002
- "plus-rounded-outline": number;
1003
- present: number;
1004
- schematic: number;
1005
- search: number;
1006
- segment: number;
1007
- "server-search": number;
1008
- sidebar: number;
1009
- signal: number;
1010
- silence: number;
1011
- spade: number;
1012
- speaker: number;
1013
- stacks: number;
1014
- stripe: number;
1015
- text: number;
1016
- thunder: number;
1017
- tornado: number;
1018
- truck: number;
1019
- tube: number;
1020
- unprotected: number;
1021
- verified: number;
1022
- "video-camera": number;
1023
- wallet: number;
1024
- "watch-hand": number;
1025
- "watch-pocket": number;
1026
- "water-drop": number;
1027
- waves: number;
1028
- webhook: number;
1029
- wind: number;
1030
- };
1031
-
1032
- declare const DefaultConfig: Configuration;
1033
-
1034
- export declare const defaultSettings: EmbedSettings;
1035
-
1036
- export declare const defaultTheme: EmbedThemeSettings;
1037
-
1038
- declare interface DesignProps {
1039
- header: {
1040
- isVisible: boolean;
1041
- title: {
1042
- fontStyle: FontStyle;
1043
- };
1044
- description: {
1045
- isVisible: boolean;
1046
- fontStyle: FontStyle;
1047
- };
1048
- price: {
1049
- isVisible: boolean;
1050
- fontStyle: FontStyle;
1051
- };
1052
- };
1053
- addOns: {
1054
- isVisible: boolean;
1055
- fontStyle: FontStyle;
1056
- showLabel: boolean;
1057
- };
1058
- callToAction: {
1059
- isVisible: boolean;
1060
- buttonSize: "sm" | "md" | "lg";
1061
- buttonStyle: "primary" | "secondary" | "tertiary";
1062
- };
1063
- }
1064
-
1065
- declare interface DesignProps_2 {
1066
- header: {
1067
- isVisible: boolean;
1068
- fontStyle: FontStyle;
1069
- text: string;
1070
- };
1071
- icons: {
1072
- isVisible: boolean;
1073
- fontStyle: FontStyle;
1074
- style: "light" | "dark";
1075
- };
1076
- entitlement: {
1077
- isVisible: boolean;
1078
- fontStyle: FontStyle;
1079
- };
1080
- usage: {
1081
- isVisible: boolean;
1082
- fontStyle: FontStyle;
1083
- };
1084
- }
1085
-
1086
- declare interface DesignProps_3 {
1087
- isVisible: boolean;
1088
- header: {
1089
- fontStyle: FontStyle;
1090
- };
1091
- description: {
1092
- isVisible: boolean;
1093
- fontStyle: FontStyle;
1094
- };
1095
- icon: {
1096
- isVisible: boolean;
1097
- };
1098
- allocation: {
1099
- isVisible: boolean;
1100
- fontStyle: FontStyle;
1101
- };
1102
- usage: {
1103
- isVisible: boolean;
1104
- fontStyle: FontStyle;
1105
- };
1106
- callToAction: {
1107
- isVisible: boolean;
1108
- buttonSize: "sm" | "md" | "lg";
1109
- buttonStyle: "primary" | "secondary" | "tertiary";
1110
- };
1111
- }
1112
-
1113
- declare interface DesignProps_4 {
1114
- header: {
1115
- isVisible: boolean;
1116
- fontStyle: FontStyle;
1117
- prefix: string;
1118
- };
1119
- price: {
1120
- isVisible: boolean;
1121
- fontStyle: FontStyle;
1122
- };
1123
- contractEndDate: {
1124
- isVisible: boolean;
1125
- fontStyle: FontStyle;
1126
- prefix: string;
1127
- };
1128
- }
1129
-
1130
- declare interface DesignProps_5 {
1131
- header: {
1132
- isVisible: boolean;
1133
- fontStyle: FontStyle;
1134
- };
1135
- functions: {
1136
- allowEdit: boolean;
1137
- };
1138
- }
1139
-
1140
- declare interface DesignProps_6 {
1141
- header: {
1142
- isVisible: boolean;
1143
- fontStyle: FontStyle;
1144
- };
1145
- date: {
1146
- isVisible: boolean;
1147
- fontStyle: FontStyle;
1148
- };
1149
- amount: {
1150
- isVisible: boolean;
1151
- fontStyle: FontStyle;
1152
- };
1153
- limit: {
1154
- isVisible: boolean;
1155
- number: number;
1156
- };
1157
- collapse: {
1158
- isVisible: boolean;
1159
- fontStyle: FontStyle;
1160
- };
1161
- }
1162
-
1163
- declare interface ElementProps {
1164
- children?: React.ReactNode;
1165
- className?: string;
1166
- style?: React.CSSProperties;
1167
- }
1168
-
1169
- export declare const EmbedContext: Context<EmbedContextProps>;
1170
-
1171
- export declare interface EmbedContextProps {
1172
- api: CheckoutApi | null;
1173
- data: ComponentHydrateResponseData;
1174
- nodes: SerializedNodeWithChildren[];
1175
- settings: EmbedSettings;
1176
- stripe: Promise<Stripe | null> | null;
1177
- layout: EmbedLayout;
1178
- error?: Error;
1179
- isPending: boolean;
1180
- hydrate: () => void;
1181
- setData: (data: RecursivePartial<ComponentHydrateResponseData>) => void;
1182
- updateSettings: (settings: RecursivePartial<EmbedSettings>) => void;
1183
- setStripe: (stripe: Promise<Stripe | null> | null) => void;
1184
- setLayout: (layout: EmbedLayout) => void;
1185
- }
1186
-
1187
- declare type EmbedLayout = "portal" | "checkout" | "payment" | "success" | "disabled";
1188
-
1189
- export declare interface EmbedProps {
1190
- accessToken?: string;
1191
- id?: string;
1192
- apiConfig?: ConfigurationParameters;
1193
- }
1194
-
1195
- export declare const EmbedProvider: ({ id, accessToken, apiConfig, children, }: EmbedProviderProps) => JSX_2.Element;
1196
-
1197
- export declare interface EmbedProviderProps {
1198
- id?: string;
1199
- accessToken?: string;
1200
- apiConfig?: ConfigurationParameters;
1201
- children?: React.ReactNode;
1202
- }
1203
-
1204
- declare type EmbedSettings = {
1205
- theme: EmbedThemeSettings;
1206
- };
1207
-
1208
- declare interface EmbedThemeSettings {
1209
- numberOfColumns: 1 | 2 | 3;
1210
- sectionLayout: "merged" | "separate";
1211
- colorMode: "light" | "dark";
1212
- primary: string;
1213
- secondary: string;
1214
- card: {
1215
- background: string;
1216
- borderRadius: number;
1217
- hasShadow: boolean;
1218
- padding: number;
1219
- };
1220
- typography: {
1221
- heading1: TypographySettings;
1222
- heading2: TypographySettings;
1223
- heading3: TypographySettings;
1224
- heading4: TypographySettings;
1225
- heading5: TypographySettings;
1226
- heading6: TypographySettings;
1227
- text: TypographySettings;
1228
- link: TypographySettings;
1229
- };
1230
- }
1231
-
1232
- /**
1233
- * Schematic API
1234
- * Schematic API
1235
- *
1236
- * The version of the OpenAPI document: 0.1
1237
- *
1238
- *
1239
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1240
- * https://openapi-generator.tech
1241
- * Do not edit the class manually.
1242
- */
1243
- /**
1244
- *
1245
- * @export
1246
- * @interface EntityKeyDefinitionResponseData
1247
- */
1248
- declare interface EntityKeyDefinitionResponseData {
1249
- /**
1250
- *
1251
- * @type {Date}
1252
- * @memberof EntityKeyDefinitionResponseData
1253
- */
1254
- createdAt: Date;
1255
- /**
1256
- *
1257
- * @type {string}
1258
- * @memberof EntityKeyDefinitionResponseData
1259
- */
1260
- entityType: string;
1261
- /**
1262
- *
1263
- * @type {string}
1264
- * @memberof EntityKeyDefinitionResponseData
1265
- */
1266
- id: string;
1267
- /**
1268
- *
1269
- * @type {string}
1270
- * @memberof EntityKeyDefinitionResponseData
1271
- */
1272
- key: string;
1273
- /**
1274
- *
1275
- * @type {Date}
1276
- * @memberof EntityKeyDefinitionResponseData
1277
- */
1278
- updatedAt: Date;
1279
- }
1280
-
1281
- /**
1282
- *
1283
- * @export
1284
- * @interface EntityKeyDetailResponseData
1285
- */
1286
- declare interface EntityKeyDetailResponseData {
1287
- /**
1288
- *
1289
- * @type {Date}
1290
- * @memberof EntityKeyDetailResponseData
1291
- */
1292
- createdAt: Date;
1293
- /**
1294
- *
1295
- * @type {EntityKeyDefinitionResponseData}
1296
- * @memberof EntityKeyDetailResponseData
1297
- */
1298
- definition?: EntityKeyDefinitionResponseData;
1299
- /**
1300
- *
1301
- * @type {string}
1302
- * @memberof EntityKeyDetailResponseData
1303
- */
1304
- definitionId: string;
1305
- /**
1306
- *
1307
- * @type {string}
1308
- * @memberof EntityKeyDetailResponseData
1309
- */
1310
- entityId: string;
1311
- /**
1312
- *
1313
- * @type {string}
1314
- * @memberof EntityKeyDetailResponseData
1315
- */
1316
- entityType: string;
1317
- /**
1318
- *
1319
- * @type {string}
1320
- * @memberof EntityKeyDetailResponseData
1321
- */
1322
- environmentId: string;
1323
- /**
1324
- *
1325
- * @type {string}
1326
- * @memberof EntityKeyDetailResponseData
1327
- */
1328
- id: string;
1329
- /**
1330
- *
1331
- * @type {string}
1332
- * @memberof EntityKeyDetailResponseData
1333
- */
1334
- key: string;
1335
- /**
1336
- *
1337
- * @type {Date}
1338
- * @memberof EntityKeyDetailResponseData
1339
- */
1340
- updatedAt: Date;
1341
- /**
1342
- *
1343
- * @type {string}
1344
- * @memberof EntityKeyDetailResponseData
1345
- */
1346
- value: string;
1347
- }
1348
-
1349
- /**
1350
- * Schematic API
1351
- * Schematic API
1352
- *
1353
- * The version of the OpenAPI document: 0.1
1354
- *
1355
- *
1356
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1357
- * https://openapi-generator.tech
1358
- * Do not edit the class manually.
1359
- */
1360
- /**
1361
- *
1362
- * @export
1363
- * @interface EntityTraitDefinitionResponseData
1364
- */
1365
- declare interface EntityTraitDefinitionResponseData {
1366
- /**
1367
- *
1368
- * @type {Date}
1369
- * @memberof EntityTraitDefinitionResponseData
1370
- */
1371
- createdAt: Date;
1372
- /**
1373
- *
1374
- * @type {string}
1375
- * @memberof EntityTraitDefinitionResponseData
1376
- */
1377
- displayName: string;
1378
- /**
1379
- *
1380
- * @type {string}
1381
- * @memberof EntityTraitDefinitionResponseData
1382
- */
1383
- entityType: string;
1384
- /**
1385
- *
1386
- * @type {Array<string>}
1387
- * @memberof EntityTraitDefinitionResponseData
1388
- */
1389
- hierarchy: Array<string>;
1390
- /**
1391
- *
1392
- * @type {string}
1393
- * @memberof EntityTraitDefinitionResponseData
1394
- */
1395
- id: string;
1396
- /**
1397
- *
1398
- * @type {string}
1399
- * @memberof EntityTraitDefinitionResponseData
1400
- */
1401
- traitType: string;
1402
- /**
1403
- *
1404
- * @type {Date}
1405
- * @memberof EntityTraitDefinitionResponseData
1406
- */
1407
- updatedAt: Date;
1408
- }
1409
-
1410
- /**
1411
- *
1412
- * @export
1413
- * @interface EntityTraitDetailResponseData
1414
- */
1415
- declare interface EntityTraitDetailResponseData {
1416
- /**
1417
- *
1418
- * @type {Date}
1419
- * @memberof EntityTraitDetailResponseData
1420
- */
1421
- createdAt: Date;
1422
- /**
1423
- *
1424
- * @type {EntityTraitDefinitionResponseData}
1425
- * @memberof EntityTraitDetailResponseData
1426
- */
1427
- definition?: EntityTraitDefinitionResponseData;
1428
- /**
1429
- *
1430
- * @type {string}
1431
- * @memberof EntityTraitDetailResponseData
1432
- */
1433
- definitionId: string;
1434
- /**
1435
- *
1436
- * @type {string}
1437
- * @memberof EntityTraitDetailResponseData
1438
- */
1439
- environmentId: string;
1440
- /**
1441
- *
1442
- * @type {string}
1443
- * @memberof EntityTraitDetailResponseData
1444
- */
1445
- id: string;
1446
- /**
1447
- *
1448
- * @type {Date}
1449
- * @memberof EntityTraitDetailResponseData
1450
- */
1451
- updatedAt: Date;
1452
- /**
1453
- *
1454
- * @type {string}
1455
- * @memberof EntityTraitDetailResponseData
1456
- */
1457
- value: string;
1458
- }
1459
-
1460
- declare interface ErrorContext {
1461
- fetch: FetchAPI;
1462
- url: string;
1463
- init: RequestInit;
1464
- error: unknown;
1465
- response?: Response;
1466
- }
1467
-
1468
20
  export { Event_2 as Event }
1469
21
 
1470
22
  export { EventBody }
@@ -1473,1391 +25,14 @@ export { EventBodyIdentify }
1473
25
 
1474
26
  export { EventBodyTrack }
1475
27
 
1476
- /**
1477
- * Schematic API
1478
- * Schematic API
1479
- *
1480
- * The version of the OpenAPI document: 0.1
1481
- *
1482
- *
1483
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1484
- * https://openapi-generator.tech
1485
- * Do not edit the class manually.
1486
- */
1487
- /**
1488
- *
1489
- * @export
1490
- * @interface EventSummaryResponseData
1491
- */
1492
- declare interface EventSummaryResponseData {
1493
- /**
1494
- *
1495
- * @type {number}
1496
- * @memberof EventSummaryResponseData
1497
- */
1498
- companyCount: number;
1499
- /**
1500
- *
1501
- * @type {string}
1502
- * @memberof EventSummaryResponseData
1503
- */
1504
- environmentId: string;
1505
- /**
1506
- *
1507
- * @type {number}
1508
- * @memberof EventSummaryResponseData
1509
- */
1510
- eventCount: number;
1511
- /**
1512
- *
1513
- * @type {string}
1514
- * @memberof EventSummaryResponseData
1515
- */
1516
- eventSubtype: string;
1517
- /**
1518
- *
1519
- * @type {Date}
1520
- * @memberof EventSummaryResponseData
1521
- */
1522
- lastSeenAt?: Date | null;
1523
- /**
1524
- *
1525
- * @type {number}
1526
- * @memberof EventSummaryResponseData
1527
- */
1528
- userCount: number;
1529
- }
1530
-
1531
28
  export { EventType }
1532
29
 
1533
- /**
1534
- *
1535
- * @export
1536
- * @interface FeatureDetailResponseData
1537
- */
1538
- declare interface FeatureDetailResponseData {
1539
- /**
1540
- *
1541
- * @type {Date}
1542
- * @memberof FeatureDetailResponseData
1543
- */
1544
- createdAt: Date;
1545
- /**
1546
- *
1547
- * @type {string}
1548
- * @memberof FeatureDetailResponseData
1549
- */
1550
- description: string;
1551
- /**
1552
- *
1553
- * @type {string}
1554
- * @memberof FeatureDetailResponseData
1555
- */
1556
- eventSubtype?: string | null;
1557
- /**
1558
- *
1559
- * @type {EventSummaryResponseData}
1560
- * @memberof FeatureDetailResponseData
1561
- */
1562
- eventSummary?: EventSummaryResponseData;
1563
- /**
1564
- *
1565
- * @type {string}
1566
- * @memberof FeatureDetailResponseData
1567
- */
1568
- featureType: string;
1569
- /**
1570
- *
1571
- * @type {Array<FlagDetailResponseData>}
1572
- * @memberof FeatureDetailResponseData
1573
- */
1574
- flags: Array<FlagDetailResponseData>;
1575
- /**
1576
- *
1577
- * @type {string}
1578
- * @memberof FeatureDetailResponseData
1579
- */
1580
- icon: string;
1581
- /**
1582
- *
1583
- * @type {string}
1584
- * @memberof FeatureDetailResponseData
1585
- */
1586
- id: string;
1587
- /**
1588
- *
1589
- * @type {string}
1590
- * @memberof FeatureDetailResponseData
1591
- */
1592
- lifecyclePhase?: string | null;
1593
- /**
1594
- *
1595
- * @type {string}
1596
- * @memberof FeatureDetailResponseData
1597
- */
1598
- maintainerId?: string | null;
1599
- /**
1600
- *
1601
- * @type {string}
1602
- * @memberof FeatureDetailResponseData
1603
- */
1604
- name: string;
1605
- /**
1606
- *
1607
- * @type {Array<PreviewObject>}
1608
- * @memberof FeatureDetailResponseData
1609
- */
1610
- plans: Array<PreviewObject>;
1611
- /**
1612
- *
1613
- * @type {EntityTraitDefinitionResponseData}
1614
- * @memberof FeatureDetailResponseData
1615
- */
1616
- trait?: EntityTraitDefinitionResponseData;
1617
- /**
1618
- *
1619
- * @type {string}
1620
- * @memberof FeatureDetailResponseData
1621
- */
1622
- traitId?: string | null;
1623
- /**
1624
- *
1625
- * @type {Date}
1626
- * @memberof FeatureDetailResponseData
1627
- */
1628
- updatedAt: Date;
1629
- }
1630
-
1631
- /**
1632
- * Schematic API
1633
- * Schematic API
1634
- *
1635
- * The version of the OpenAPI document: 0.1
1636
- *
1637
- *
1638
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1639
- * https://openapi-generator.tech
1640
- * Do not edit the class manually.
1641
- */
1642
- /**
1643
- *
1644
- * @export
1645
- * @interface FeatureResponseData
1646
- */
1647
- declare interface FeatureResponseData {
1648
- /**
1649
- *
1650
- * @type {Date}
1651
- * @memberof FeatureResponseData
1652
- */
1653
- createdAt: Date;
1654
- /**
1655
- *
1656
- * @type {string}
1657
- * @memberof FeatureResponseData
1658
- */
1659
- description: string;
1660
- /**
1661
- *
1662
- * @type {string}
1663
- * @memberof FeatureResponseData
1664
- */
1665
- eventSubtype?: string | null;
1666
- /**
1667
- *
1668
- * @type {string}
1669
- * @memberof FeatureResponseData
1670
- */
1671
- featureType: string;
1672
- /**
1673
- *
1674
- * @type {string}
1675
- * @memberof FeatureResponseData
1676
- */
1677
- icon: string;
1678
- /**
1679
- *
1680
- * @type {string}
1681
- * @memberof FeatureResponseData
1682
- */
1683
- id: string;
1684
- /**
1685
- *
1686
- * @type {string}
1687
- * @memberof FeatureResponseData
1688
- */
1689
- lifecyclePhase?: string | null;
1690
- /**
1691
- *
1692
- * @type {string}
1693
- * @memberof FeatureResponseData
1694
- */
1695
- maintainerId?: string | null;
1696
- /**
1697
- *
1698
- * @type {string}
1699
- * @memberof FeatureResponseData
1700
- */
1701
- name: string;
1702
- /**
1703
- *
1704
- * @type {string}
1705
- * @memberof FeatureResponseData
1706
- */
1707
- traitId?: string | null;
1708
- /**
1709
- *
1710
- * @type {Date}
1711
- * @memberof FeatureResponseData
1712
- */
1713
- updatedAt: Date;
1714
- }
1715
-
1716
- /**
1717
- *
1718
- * @export
1719
- * @interface FeatureUsageDetailResponseData
1720
- */
1721
- declare interface FeatureUsageDetailResponseData {
1722
- /**
1723
- *
1724
- * @type {Array<FeatureUsageResponseData>}
1725
- * @memberof FeatureUsageDetailResponseData
1726
- */
1727
- features: Array<FeatureUsageResponseData>;
1728
- }
1729
-
1730
- /**
1731
- *
1732
- * @export
1733
- * @interface FeatureUsageResponseData
1734
- */
1735
- declare interface FeatureUsageResponseData {
1736
- /**
1737
- * Whether further usage is permitted.
1738
- * @type {boolean}
1739
- * @memberof FeatureUsageResponseData
1740
- */
1741
- access: boolean;
1742
- /**
1743
- * The maximum amount of usage that is permitted; a null value indicates that unlimited usage is permitted.
1744
- * @type {number}
1745
- * @memberof FeatureUsageResponseData
1746
- */
1747
- allocation?: number | null;
1748
- /**
1749
- * The type of allocation that is being used.
1750
- * @type {string}
1751
- * @memberof FeatureUsageResponseData
1752
- */
1753
- allocationType: FeatureUsageResponseDataAllocationTypeEnum;
1754
- /**
1755
- *
1756
- * @type {string}
1757
- * @memberof FeatureUsageResponseData
1758
- */
1759
- entitlementId: string;
1760
- /**
1761
- *
1762
- * @type {string}
1763
- * @memberof FeatureUsageResponseData
1764
- */
1765
- entitlementType: string;
1766
- /**
1767
- *
1768
- * @type {FeatureDetailResponseData}
1769
- * @memberof FeatureUsageResponseData
1770
- */
1771
- feature?: FeatureDetailResponseData;
1772
- /**
1773
- * The period over which usage is measured.
1774
- * @type {string}
1775
- * @memberof FeatureUsageResponseData
1776
- */
1777
- period?: string | null;
1778
- /**
1779
- *
1780
- * @type {PlanResponseData}
1781
- * @memberof FeatureUsageResponseData
1782
- */
1783
- plan?: PlanResponseData;
1784
- /**
1785
- * The amount of usage that has been consumed; a null value indicates that usage is not being measured.
1786
- * @type {number}
1787
- * @memberof FeatureUsageResponseData
1788
- */
1789
- usage?: number | null;
1790
- }
1791
-
1792
- /**
1793
- * @export
1794
- */
1795
- declare const FeatureUsageResponseDataAllocationTypeEnum: {
1796
- readonly Boolean: "boolean";
1797
- readonly Numeric: "numeric";
1798
- readonly Trait: "trait";
1799
- readonly Unlimited: "unlimited";
1800
- };
1801
-
1802
- declare type FeatureUsageResponseDataAllocationTypeEnum = (typeof FeatureUsageResponseDataAllocationTypeEnum)[keyof typeof FeatureUsageResponseDataAllocationTypeEnum];
1803
-
1804
- declare type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
1805
-
1806
- declare class FetchError extends Error {
1807
- cause: Error;
1808
- name: "FetchError";
1809
- constructor(cause: Error, msg?: string);
1810
- }
1811
-
1812
- declare interface FetchParams {
1813
- url: string;
1814
- init: RequestInit;
1815
- }
1816
-
1817
30
  export { FlagCheckResponseBody }
1818
31
 
1819
32
  export { FlagCheckWithKeyResponseBody }
1820
33
 
1821
- /**
1822
- *
1823
- * @export
1824
- * @interface FlagDetailResponseData
1825
- */
1826
- declare interface FlagDetailResponseData {
1827
- /**
1828
- *
1829
- * @type {Date}
1830
- * @memberof FlagDetailResponseData
1831
- */
1832
- createdAt: Date;
1833
- /**
1834
- *
1835
- * @type {boolean}
1836
- * @memberof FlagDetailResponseData
1837
- */
1838
- defaultValue: boolean;
1839
- /**
1840
- *
1841
- * @type {string}
1842
- * @memberof FlagDetailResponseData
1843
- */
1844
- description: string;
1845
- /**
1846
- *
1847
- * @type {FeatureResponseData}
1848
- * @memberof FlagDetailResponseData
1849
- */
1850
- feature?: FeatureResponseData;
1851
- /**
1852
- *
1853
- * @type {string}
1854
- * @memberof FlagDetailResponseData
1855
- */
1856
- featureId?: string | null;
1857
- /**
1858
- *
1859
- * @type {string}
1860
- * @memberof FlagDetailResponseData
1861
- */
1862
- flagType: string;
1863
- /**
1864
- *
1865
- * @type {string}
1866
- * @memberof FlagDetailResponseData
1867
- */
1868
- id: string;
1869
- /**
1870
- *
1871
- * @type {string}
1872
- * @memberof FlagDetailResponseData
1873
- */
1874
- key: string;
1875
- /**
1876
- *
1877
- * @type {Date}
1878
- * @memberof FlagDetailResponseData
1879
- */
1880
- lastCheckedAt?: Date | null;
1881
- /**
1882
- *
1883
- * @type {string}
1884
- * @memberof FlagDetailResponseData
1885
- */
1886
- maintainerId?: string | null;
1887
- /**
1888
- *
1889
- * @type {string}
1890
- * @memberof FlagDetailResponseData
1891
- */
1892
- name: string;
1893
- /**
1894
- *
1895
- * @type {Array<RuleDetailResponseData>}
1896
- * @memberof FlagDetailResponseData
1897
- */
1898
- rules: Array<RuleDetailResponseData>;
1899
- /**
1900
- *
1901
- * @type {Date}
1902
- * @memberof FlagDetailResponseData
1903
- */
1904
- updatedAt: Date;
1905
- }
1906
-
1907
- export declare const Flex: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
1908
- 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;
1909
- }, never>> & string;
1910
-
1911
- declare type FontStyle = keyof EmbedThemeSettings["typography"];
1912
-
1913
- declare type HTTPBody = Json | FormData | URLSearchParams;
1914
-
1915
- declare type HTTPHeaders = {
1916
- [key: string]: string;
1917
- };
1918
-
1919
- declare type HTTPMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
1920
-
1921
- declare type HTTPQuery = {
1922
- [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
1923
- };
1924
-
1925
- declare type HTTPRequestInit = {
1926
- headers?: HTTPHeaders;
1927
- method: HTTPMethod;
1928
- credentials?: RequestCredentials;
1929
- body?: HTTPBody;
1930
- };
1931
-
1932
- declare interface HydrateComponentRequest {
1933
- componentId: string;
1934
- }
1935
-
1936
- /**
1937
- *
1938
- * @export
1939
- * @interface HydrateComponentResponse
1940
- */
1941
- declare interface HydrateComponentResponse {
1942
- /**
1943
- *
1944
- * @type {ComponentHydrateResponseData}
1945
- * @memberof HydrateComponentResponse
1946
- */
1947
- data: ComponentHydrateResponseData;
1948
- /**
1949
- * Input parameters
1950
- * @type {object}
1951
- * @memberof HydrateComponentResponse
1952
- */
1953
- params: object;
1954
- }
1955
-
1956
- export declare const Icon: ({ name, className, ...props }: IconProps) => JSX_2.Element;
1957
-
1958
- export declare type IconNameTypes = keyof typeof _default;
1959
-
1960
- export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
1961
- name: IconNameTypes;
1962
- }
1963
-
1964
- export declare const IconRound: ({ name, variant, size, colors, ...props }: IconRoundProps) => JSX_2.Element;
1965
-
1966
- export declare interface IconRoundProps extends React.HTMLAttributes<HTMLElement> {
1967
- name: IconNameTypes;
1968
- variant?: "outline" | "filled";
1969
- size?: "tn" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
1970
- colors?: [string, string];
1971
- }
1972
-
1973
- export declare const IncludedFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_2> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
1974
-
1975
- export declare type IncludedFeaturesProps = DesignProps_2;
1976
-
1977
- declare type InitOverrideFunction = (requestContext: {
1978
- init: HTTPRequestInit;
1979
- context: RequestOpts;
1980
- }) => Promise<RequestInit>;
1981
-
1982
- /**
1983
- * Schematic API
1984
- * Schematic API
1985
- *
1986
- * The version of the OpenAPI document: 0.1
1987
- *
1988
- *
1989
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1990
- * https://openapi-generator.tech
1991
- * Do not edit the class manually.
1992
- */
1993
- /**
1994
- *
1995
- * @export
1996
- * @interface InvoiceResponseData
1997
- */
1998
- declare interface InvoiceResponseData {
1999
- /**
2000
- *
2001
- * @type {number}
2002
- * @memberof InvoiceResponseData
2003
- */
2004
- amountDue: number;
2005
- /**
2006
- *
2007
- * @type {number}
2008
- * @memberof InvoiceResponseData
2009
- */
2010
- amountPaid: number;
2011
- /**
2012
- *
2013
- * @type {number}
2014
- * @memberof InvoiceResponseData
2015
- */
2016
- amountRemaining: number;
2017
- /**
2018
- *
2019
- * @type {string}
2020
- * @memberof InvoiceResponseData
2021
- */
2022
- collectionMethod: string;
2023
- /**
2024
- *
2025
- * @type {string}
2026
- * @memberof InvoiceResponseData
2027
- */
2028
- companyId?: string | null;
2029
- /**
2030
- *
2031
- * @type {Date}
2032
- * @memberof InvoiceResponseData
2033
- */
2034
- createdAt: Date;
2035
- /**
2036
- *
2037
- * @type {string}
2038
- * @memberof InvoiceResponseData
2039
- */
2040
- currency: string;
2041
- /**
2042
- *
2043
- * @type {string}
2044
- * @memberof InvoiceResponseData
2045
- */
2046
- customerExternalId: string;
2047
- /**
2048
- *
2049
- * @type {Date}
2050
- * @memberof InvoiceResponseData
2051
- */
2052
- dueDate?: Date | null;
2053
- /**
2054
- *
2055
- * @type {string}
2056
- * @memberof InvoiceResponseData
2057
- */
2058
- environmentId: string;
2059
- /**
2060
- *
2061
- * @type {string}
2062
- * @memberof InvoiceResponseData
2063
- */
2064
- externalId?: string | null;
2065
- /**
2066
- *
2067
- * @type {string}
2068
- * @memberof InvoiceResponseData
2069
- */
2070
- id: string;
2071
- /**
2072
- *
2073
- * @type {string}
2074
- * @memberof InvoiceResponseData
2075
- */
2076
- paymentMethodExternalId?: string | null;
2077
- /**
2078
- *
2079
- * @type {string}
2080
- * @memberof InvoiceResponseData
2081
- */
2082
- subscriptionExternalId?: string | null;
2083
- /**
2084
- *
2085
- * @type {number}
2086
- * @memberof InvoiceResponseData
2087
- */
2088
- subtotal: number;
2089
- /**
2090
- *
2091
- * @type {Date}
2092
- * @memberof InvoiceResponseData
2093
- */
2094
- updatedAt: Date;
2095
- }
2096
-
2097
- export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2098
-
2099
- export declare type InvoicesProps = DesignProps_6;
2100
-
2101
- declare type Json = any;
2102
-
2103
- declare class JSONApiResponse<T> {
2104
- raw: Response;
2105
- private transformer;
2106
- constructor(raw: Response, transformer?: ResponseTransformer<T>);
2107
- value(): Promise<T>;
2108
- }
2109
-
2110
34
  export { Keys }
2111
35
 
2112
- export declare const Loader: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2113
-
2114
- declare function mapValues(data: any, fn: (item: any) => any): {};
2115
-
2116
- export declare const MeteredFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_3> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2117
-
2118
- export declare type MeteredFeaturesProps = DesignProps_3;
2119
-
2120
- declare interface Middleware {
2121
- pre?(context: RequestContext): Promise<FetchParams | void>;
2122
- post?(context: ResponseContext): Promise<Response | void>;
2123
- onError?(context: ErrorContext): Promise<Response | void>;
2124
- }
2125
-
2126
- export declare const Modal: ({ children, size, onClose }: ModalProps) => JSX_2.Element;
2127
-
2128
- export declare const ModalHeader: ({ children, bordered, onClose, }: ModalHeaderProps) => JSX_2.Element;
2129
-
2130
- declare interface ModalHeaderProps {
2131
- children?: React.ReactNode;
2132
- bordered?: boolean;
2133
- onClose?: () => void;
2134
- }
2135
-
2136
- declare interface ModalProps {
2137
- children: React.ReactNode;
2138
- size?: "sm" | "md" | "lg" | "auto";
2139
- onClose?: () => void;
2140
- }
2141
-
2142
- declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
2143
-
2144
- export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
2145
- portal?: HTMLElement | null;
2146
- } & RefAttributes<HTMLDivElement | null>>;
2147
-
2148
- export declare type PaymentMethodProps = DesignProps_5;
2149
-
2150
- /**
2151
- * Schematic API
2152
- * Schematic API
2153
- *
2154
- * The version of the OpenAPI document: 0.1
2155
- *
2156
- *
2157
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2158
- * https://openapi-generator.tech
2159
- * Do not edit the class manually.
2160
- */
2161
- /**
2162
- *
2163
- * @export
2164
- * @interface PaymentMethodResponseData
2165
- */
2166
- declare interface PaymentMethodResponseData {
2167
- /**
2168
- *
2169
- * @type {string}
2170
- * @memberof PaymentMethodResponseData
2171
- */
2172
- cardBrand?: string | null;
2173
- /**
2174
- *
2175
- * @type {number}
2176
- * @memberof PaymentMethodResponseData
2177
- */
2178
- cardExpMonth?: number | null;
2179
- /**
2180
- *
2181
- * @type {number}
2182
- * @memberof PaymentMethodResponseData
2183
- */
2184
- cardExpYear?: number | null;
2185
- /**
2186
- *
2187
- * @type {string}
2188
- * @memberof PaymentMethodResponseData
2189
- */
2190
- cardLast4?: string | null;
2191
- /**
2192
- *
2193
- * @type {string}
2194
- * @memberof PaymentMethodResponseData
2195
- */
2196
- companyId?: string | null;
2197
- /**
2198
- *
2199
- * @type {Date}
2200
- * @memberof PaymentMethodResponseData
2201
- */
2202
- createdAt: Date;
2203
- /**
2204
- *
2205
- * @type {string}
2206
- * @memberof PaymentMethodResponseData
2207
- */
2208
- customerExternalId: string;
2209
- /**
2210
- *
2211
- * @type {string}
2212
- * @memberof PaymentMethodResponseData
2213
- */
2214
- environmentId: string;
2215
- /**
2216
- *
2217
- * @type {string}
2218
- * @memberof PaymentMethodResponseData
2219
- */
2220
- externalId: string;
2221
- /**
2222
- *
2223
- * @type {string}
2224
- * @memberof PaymentMethodResponseData
2225
- */
2226
- id: string;
2227
- /**
2228
- *
2229
- * @type {string}
2230
- * @memberof PaymentMethodResponseData
2231
- */
2232
- paymentMethodType: string;
2233
- /**
2234
- *
2235
- * @type {string}
2236
- * @memberof PaymentMethodResponseData
2237
- */
2238
- subscriptionExternalId?: string | null;
2239
- /**
2240
- *
2241
- * @type {Date}
2242
- * @memberof PaymentMethodResponseData
2243
- */
2244
- updatedAt: Date;
2245
- }
2246
-
2247
- /**
2248
- *
2249
- * @export
2250
- * @interface PlanEntitlementResponseData
2251
- */
2252
- declare interface PlanEntitlementResponseData {
2253
- /**
2254
- *
2255
- * @type {Date}
2256
- * @memberof PlanEntitlementResponseData
2257
- */
2258
- createdAt: Date;
2259
- /**
2260
- *
2261
- * @type {string}
2262
- * @memberof PlanEntitlementResponseData
2263
- */
2264
- environmentId: string;
2265
- /**
2266
- *
2267
- * @type {FeatureResponseData}
2268
- * @memberof PlanEntitlementResponseData
2269
- */
2270
- feature?: FeatureResponseData;
2271
- /**
2272
- *
2273
- * @type {string}
2274
- * @memberof PlanEntitlementResponseData
2275
- */
2276
- featureId: string;
2277
- /**
2278
- *
2279
- * @type {string}
2280
- * @memberof PlanEntitlementResponseData
2281
- */
2282
- id: string;
2283
- /**
2284
- *
2285
- * @type {string}
2286
- * @memberof PlanEntitlementResponseData
2287
- */
2288
- metricPeriod?: string | null;
2289
- /**
2290
- *
2291
- * @type {PlanResponseData}
2292
- * @memberof PlanEntitlementResponseData
2293
- */
2294
- plan?: PlanResponseData;
2295
- /**
2296
- *
2297
- * @type {string}
2298
- * @memberof PlanEntitlementResponseData
2299
- */
2300
- planId: string;
2301
- /**
2302
- *
2303
- * @type {string}
2304
- * @memberof PlanEntitlementResponseData
2305
- */
2306
- ruleId: string;
2307
- /**
2308
- *
2309
- * @type {Date}
2310
- * @memberof PlanEntitlementResponseData
2311
- */
2312
- updatedAt: Date;
2313
- /**
2314
- *
2315
- * @type {boolean}
2316
- * @memberof PlanEntitlementResponseData
2317
- */
2318
- valueBool?: boolean | null;
2319
- /**
2320
- *
2321
- * @type {number}
2322
- * @memberof PlanEntitlementResponseData
2323
- */
2324
- valueNumeric?: number | null;
2325
- /**
2326
- *
2327
- * @type {EntityTraitDefinitionResponseData}
2328
- * @memberof PlanEntitlementResponseData
2329
- */
2330
- valueTrait?: EntityTraitDefinitionResponseData;
2331
- /**
2332
- *
2333
- * @type {string}
2334
- * @memberof PlanEntitlementResponseData
2335
- */
2336
- valueTraitId?: string | null;
2337
- /**
2338
- *
2339
- * @type {string}
2340
- * @memberof PlanEntitlementResponseData
2341
- */
2342
- valueType: string;
2343
- }
2344
-
2345
- export declare const PlanManager: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps> & HTMLAttributes<HTMLDivElement> & {
2346
- portal?: HTMLElement | null;
2347
- } & RefAttributes<HTMLDivElement | null>>;
2348
-
2349
- export declare type PlanManagerProps = DesignProps;
2350
-
2351
- /**
2352
- * Schematic API
2353
- * Schematic API
2354
- *
2355
- * The version of the OpenAPI document: 0.1
2356
- *
2357
- *
2358
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2359
- * https://openapi-generator.tech
2360
- * Do not edit the class manually.
2361
- */
2362
- /**
2363
- *
2364
- * @export
2365
- * @interface PlanResponseData
2366
- */
2367
- declare interface PlanResponseData {
2368
- /**
2369
- *
2370
- * @type {string}
2371
- * @memberof PlanResponseData
2372
- */
2373
- audienceType?: string | null;
2374
- /**
2375
- *
2376
- * @type {Date}
2377
- * @memberof PlanResponseData
2378
- */
2379
- createdAt: Date;
2380
- /**
2381
- *
2382
- * @type {string}
2383
- * @memberof PlanResponseData
2384
- */
2385
- description: string;
2386
- /**
2387
- *
2388
- * @type {string}
2389
- * @memberof PlanResponseData
2390
- */
2391
- icon: string;
2392
- /**
2393
- *
2394
- * @type {string}
2395
- * @memberof PlanResponseData
2396
- */
2397
- id: string;
2398
- /**
2399
- *
2400
- * @type {string}
2401
- * @memberof PlanResponseData
2402
- */
2403
- name: string;
2404
- /**
2405
- *
2406
- * @type {string}
2407
- * @memberof PlanResponseData
2408
- */
2409
- planType: string;
2410
- /**
2411
- *
2412
- * @type {Date}
2413
- * @memberof PlanResponseData
2414
- */
2415
- updatedAt: Date;
2416
- }
2417
-
2418
- /**
2419
- * Schematic API
2420
- * Schematic API
2421
- *
2422
- * The version of the OpenAPI document: 0.1
2423
- *
2424
- *
2425
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2426
- * https://openapi-generator.tech
2427
- * Do not edit the class manually.
2428
- */
2429
- /**
2430
- *
2431
- * @export
2432
- * @interface PreviewObject
2433
- */
2434
- declare interface PreviewObject {
2435
- /**
2436
- *
2437
- * @type {string}
2438
- * @memberof PreviewObject
2439
- */
2440
- description?: string | null;
2441
- /**
2442
- *
2443
- * @type {string}
2444
- * @memberof PreviewObject
2445
- */
2446
- id: string;
2447
- /**
2448
- *
2449
- * @type {string}
2450
- * @memberof PreviewObject
2451
- */
2452
- imageUrl?: string | null;
2453
- /**
2454
- *
2455
- * @type {string}
2456
- * @memberof PreviewObject
2457
- */
2458
- name: string;
2459
- }
2460
-
2461
- export declare const ProgressBar: ({ progress, value, total, color, barWidth, ...props }: ProgressBarProps) => JSX_2.Element;
2462
-
2463
- export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef<typeof Flex> {
2464
- progress: number;
2465
- value: number;
2466
- total?: number | string;
2467
- color?: "gray" | "orange" | "blue" | "red";
2468
- barWidth?: string | number;
2469
- }
2470
-
2471
- declare function querystring(params: HTTPQuery, prefix?: string): string;
2472
-
2473
- declare type RecursivePartial<T> = {
2474
- [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
2475
- };
2476
-
2477
- declare interface RequestContext {
2478
- fetch: FetchAPI;
2479
- url: string;
2480
- init: RequestInit;
2481
- }
2482
-
2483
- declare interface RequestOpts {
2484
- path: string;
2485
- method: HTTPMethod;
2486
- headers: HTTPHeaders;
2487
- query?: HTTPQuery;
2488
- body?: HTTPBody;
2489
- }
2490
-
2491
- declare class RequiredError extends Error {
2492
- field: string;
2493
- name: "RequiredError";
2494
- constructor(field: string, msg?: string);
2495
- }
2496
-
2497
- declare interface ResponseContext {
2498
- fetch: FetchAPI;
2499
- url: string;
2500
- init: RequestInit;
2501
- response: Response;
2502
- }
2503
-
2504
- declare class ResponseError extends Error {
2505
- response: Response;
2506
- name: "ResponseError";
2507
- constructor(response: Response, msg?: string);
2508
- }
2509
-
2510
- declare interface ResponseTransformer<T> {
2511
- (json: any): T;
2512
- }
2513
-
2514
- export declare const Root: ForwardRefExoticComponent<Omit<RootProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
2515
-
2516
- export declare interface RootProps extends Omit<React.HTMLProps<HTMLDivElement>, "data"> {
2517
- data?: ComponentHydrateResponseData;
2518
- settings?: EmbedSettings;
2519
- }
2520
-
2521
- /**
2522
- *
2523
- * @export
2524
- * @interface RuleConditionDetailResponseData
2525
- */
2526
- declare interface RuleConditionDetailResponseData {
2527
- /**
2528
- *
2529
- * @type {EntityTraitDefinitionResponseData}
2530
- * @memberof RuleConditionDetailResponseData
2531
- */
2532
- comparisonTrait?: EntityTraitDefinitionResponseData;
2533
- /**
2534
- *
2535
- * @type {string}
2536
- * @memberof RuleConditionDetailResponseData
2537
- */
2538
- comparisonTraitId?: string | null;
2539
- /**
2540
- *
2541
- * @type {string}
2542
- * @memberof RuleConditionDetailResponseData
2543
- */
2544
- conditionGroupId?: string | null;
2545
- /**
2546
- *
2547
- * @type {string}
2548
- * @memberof RuleConditionDetailResponseData
2549
- */
2550
- conditionType: string;
2551
- /**
2552
- *
2553
- * @type {Date}
2554
- * @memberof RuleConditionDetailResponseData
2555
- */
2556
- createdAt: Date;
2557
- /**
2558
- *
2559
- * @type {string}
2560
- * @memberof RuleConditionDetailResponseData
2561
- */
2562
- environmentId: string;
2563
- /**
2564
- *
2565
- * @type {string}
2566
- * @memberof RuleConditionDetailResponseData
2567
- */
2568
- eventSubtype?: string | null;
2569
- /**
2570
- *
2571
- * @type {string}
2572
- * @memberof RuleConditionDetailResponseData
2573
- */
2574
- flagId?: string | null;
2575
- /**
2576
- *
2577
- * @type {string}
2578
- * @memberof RuleConditionDetailResponseData
2579
- */
2580
- id: string;
2581
- /**
2582
- *
2583
- * @type {string}
2584
- * @memberof RuleConditionDetailResponseData
2585
- */
2586
- metricPeriod?: string | null;
2587
- /**
2588
- *
2589
- * @type {number}
2590
- * @memberof RuleConditionDetailResponseData
2591
- */
2592
- metricValue?: number | null;
2593
- /**
2594
- *
2595
- * @type {string}
2596
- * @memberof RuleConditionDetailResponseData
2597
- */
2598
- operator: string;
2599
- /**
2600
- *
2601
- * @type {string}
2602
- * @memberof RuleConditionDetailResponseData
2603
- */
2604
- planId?: string | null;
2605
- /**
2606
- *
2607
- * @type {Array<string>}
2608
- * @memberof RuleConditionDetailResponseData
2609
- */
2610
- resourceIds: Array<string>;
2611
- /**
2612
- *
2613
- * @type {Array<RuleConditionResourceResponseData>}
2614
- * @memberof RuleConditionDetailResponseData
2615
- */
2616
- resources: Array<RuleConditionResourceResponseData>;
2617
- /**
2618
- *
2619
- * @type {string}
2620
- * @memberof RuleConditionDetailResponseData
2621
- */
2622
- ruleId: string;
2623
- /**
2624
- *
2625
- * @type {EntityTraitDefinitionResponseData}
2626
- * @memberof RuleConditionDetailResponseData
2627
- */
2628
- trait?: EntityTraitDefinitionResponseData;
2629
- /**
2630
- *
2631
- * @type {string}
2632
- * @memberof RuleConditionDetailResponseData
2633
- */
2634
- traitEntityType?: string | null;
2635
- /**
2636
- *
2637
- * @type {string}
2638
- * @memberof RuleConditionDetailResponseData
2639
- */
2640
- traitId?: string | null;
2641
- /**
2642
- *
2643
- * @type {string}
2644
- * @memberof RuleConditionDetailResponseData
2645
- */
2646
- traitValue: string;
2647
- /**
2648
- *
2649
- * @type {Date}
2650
- * @memberof RuleConditionDetailResponseData
2651
- */
2652
- updatedAt: Date;
2653
- }
2654
-
2655
- /**
2656
- *
2657
- * @export
2658
- * @interface RuleConditionGroupDetailResponseData
2659
- */
2660
- declare interface RuleConditionGroupDetailResponseData {
2661
- /**
2662
- *
2663
- * @type {Array<RuleConditionDetailResponseData>}
2664
- * @memberof RuleConditionGroupDetailResponseData
2665
- */
2666
- conditions: Array<RuleConditionDetailResponseData>;
2667
- /**
2668
- *
2669
- * @type {Date}
2670
- * @memberof RuleConditionGroupDetailResponseData
2671
- */
2672
- createdAt: Date;
2673
- /**
2674
- *
2675
- * @type {string}
2676
- * @memberof RuleConditionGroupDetailResponseData
2677
- */
2678
- environmentId: string;
2679
- /**
2680
- *
2681
- * @type {string}
2682
- * @memberof RuleConditionGroupDetailResponseData
2683
- */
2684
- flagId?: string | null;
2685
- /**
2686
- *
2687
- * @type {string}
2688
- * @memberof RuleConditionGroupDetailResponseData
2689
- */
2690
- id: string;
2691
- /**
2692
- *
2693
- * @type {string}
2694
- * @memberof RuleConditionGroupDetailResponseData
2695
- */
2696
- planId?: string | null;
2697
- /**
2698
- *
2699
- * @type {string}
2700
- * @memberof RuleConditionGroupDetailResponseData
2701
- */
2702
- ruleId: string;
2703
- /**
2704
- *
2705
- * @type {Date}
2706
- * @memberof RuleConditionGroupDetailResponseData
2707
- */
2708
- updatedAt: Date;
2709
- }
2710
-
2711
- /**
2712
- * Schematic API
2713
- * Schematic API
2714
- *
2715
- * The version of the OpenAPI document: 0.1
2716
- *
2717
- *
2718
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2719
- * https://openapi-generator.tech
2720
- * Do not edit the class manually.
2721
- */
2722
- /**
2723
- *
2724
- * @export
2725
- * @interface RuleConditionResourceResponseData
2726
- */
2727
- declare interface RuleConditionResourceResponseData {
2728
- /**
2729
- *
2730
- * @type {string}
2731
- * @memberof RuleConditionResourceResponseData
2732
- */
2733
- id: string;
2734
- /**
2735
- *
2736
- * @type {string}
2737
- * @memberof RuleConditionResourceResponseData
2738
- */
2739
- name: string;
2740
- }
2741
-
2742
- /**
2743
- *
2744
- * @export
2745
- * @interface RuleDetailResponseData
2746
- */
2747
- declare interface RuleDetailResponseData {
2748
- /**
2749
- *
2750
- * @type {Array<RuleConditionGroupDetailResponseData>}
2751
- * @memberof RuleDetailResponseData
2752
- */
2753
- conditionGroups: Array<RuleConditionGroupDetailResponseData>;
2754
- /**
2755
- *
2756
- * @type {Array<RuleConditionDetailResponseData>}
2757
- * @memberof RuleDetailResponseData
2758
- */
2759
- conditions: Array<RuleConditionDetailResponseData>;
2760
- /**
2761
- *
2762
- * @type {Date}
2763
- * @memberof RuleDetailResponseData
2764
- */
2765
- createdAt: Date;
2766
- /**
2767
- *
2768
- * @type {string}
2769
- * @memberof RuleDetailResponseData
2770
- */
2771
- environmentId: string;
2772
- /**
2773
- *
2774
- * @type {string}
2775
- * @memberof RuleDetailResponseData
2776
- */
2777
- flagId?: string | null;
2778
- /**
2779
- *
2780
- * @type {string}
2781
- * @memberof RuleDetailResponseData
2782
- */
2783
- id: string;
2784
- /**
2785
- *
2786
- * @type {string}
2787
- * @memberof RuleDetailResponseData
2788
- */
2789
- name: string;
2790
- /**
2791
- *
2792
- * @type {string}
2793
- * @memberof RuleDetailResponseData
2794
- */
2795
- planId?: string | null;
2796
- /**
2797
- *
2798
- * @type {number}
2799
- * @memberof RuleDetailResponseData
2800
- */
2801
- priority: number;
2802
- /**
2803
- *
2804
- * @type {string}
2805
- * @memberof RuleDetailResponseData
2806
- */
2807
- ruleType: string;
2808
- /**
2809
- *
2810
- * @type {Date}
2811
- * @memberof RuleDetailResponseData
2812
- */
2813
- updatedAt: Date;
2814
- /**
2815
- *
2816
- * @type {boolean}
2817
- * @memberof RuleDetailResponseData
2818
- */
2819
- value: boolean;
2820
- }
2821
-
2822
- declare namespace runtime {
2823
- export {
2824
- querystring,
2825
- mapValues,
2826
- canConsumeForm,
2827
- BASE_PATH,
2828
- ConfigurationParameters,
2829
- Configuration,
2830
- DefaultConfig,
2831
- BaseAPI,
2832
- ResponseError,
2833
- FetchError,
2834
- RequiredError,
2835
- COLLECTION_FORMATS,
2836
- FetchAPI,
2837
- Json,
2838
- HTTPMethod,
2839
- HTTPHeaders,
2840
- HTTPQuery,
2841
- HTTPBody,
2842
- HTTPRequestInit,
2843
- ModelPropertyNaming,
2844
- InitOverrideFunction,
2845
- FetchParams,
2846
- RequestOpts,
2847
- Consume,
2848
- RequestContext,
2849
- ResponseContext,
2850
- ErrorContext,
2851
- Middleware,
2852
- ApiResponse,
2853
- ResponseTransformer,
2854
- JSONApiResponse,
2855
- VoidApiResponse,
2856
- BlobApiResponse,
2857
- TextApiResponse
2858
- }
2859
- }
2860
-
2861
36
  export { Schematic }
2862
37
 
2863
38
  export { SchematicContext }
@@ -2866,8 +41,6 @@ declare interface SchematicContextProps {
2866
41
  client: SchematicJS.Schematic;
2867
42
  }
2868
43
 
2869
- export declare const SchematicEmbed: ({ id, accessToken, apiConfig }: EmbedProps) => JSX_2.Element;
2870
-
2871
44
  export declare interface SchematicHookOpts {
2872
45
  client?: SchematicJS.Schematic;
2873
46
  }
@@ -2888,89 +61,8 @@ declare type SchematicProviderPropsWithPublishableKey = BaseSchematicProviderPro
2888
61
  publishableKey: string;
2889
62
  };
2890
63
 
2891
- declare type SerializedNode = Omit<Craft.SerializedNode, "parent"> & {
2892
- id: string;
2893
- parent?: string | null;
2894
- };
2895
-
2896
- declare type SerializedNodeWithChildren = SerializedNode & {
2897
- children: SerializedNodeWithChildren[];
2898
- };
2899
-
2900
- /**
2901
- * Schematic API
2902
- * Schematic API
2903
- *
2904
- * The version of the OpenAPI document: 0.1
2905
- *
2906
- *
2907
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2908
- * https://openapi-generator.tech
2909
- * Do not edit the class manually.
2910
- */
2911
- /**
2912
- *
2913
- * @export
2914
- * @interface StripeEmbedInfo
2915
- */
2916
- declare interface StripeEmbedInfo {
2917
- /**
2918
- *
2919
- * @type {string}
2920
- * @memberof StripeEmbedInfo
2921
- */
2922
- customerEkey?: string | null;
2923
- /**
2924
- *
2925
- * @type {string}
2926
- * @memberof StripeEmbedInfo
2927
- */
2928
- publishableKey: string;
2929
- /**
2930
- *
2931
- * @type {string}
2932
- * @memberof StripeEmbedInfo
2933
- */
2934
- setupIntentClientSecret?: string | null;
2935
- }
2936
-
2937
- declare const Text_2: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>> & string;
2938
- export { Text_2 as Text }
2939
-
2940
- declare class TextApiResponse {
2941
- raw: Response;
2942
- constructor(raw: Response);
2943
- value(): Promise<string>;
2944
- }
2945
-
2946
- export declare interface TextProps extends ComponentProps {
2947
- $align?: ComponentProps["$textAlign"];
2948
- $font?: ComponentProps["$fontFamily"];
2949
- $size?: ComponentProps["$fontSize"];
2950
- $weight?: ComponentProps["$fontWeight"];
2951
- $color?: ComponentProps["$color"];
2952
- $lineHeight?: ComponentProps["$lineHeight"];
2953
- }
2954
-
2955
64
  export { Traits }
2956
65
 
2957
- declare type TransientCSSProperties = {
2958
- [Property in keyof React.CSSProperties as `$${string & Property}`]: React.CSSProperties[Property];
2959
- };
2960
-
2961
- declare interface TypographySettings {
2962
- fontFamily: string;
2963
- fontSize: number;
2964
- fontWeight: number;
2965
- color: string;
2966
- }
2967
-
2968
- export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2969
-
2970
- export declare type UpcomingBillProps = DesignProps_4;
2971
-
2972
- export declare const useEmbed: () => EmbedContextProps;
2973
-
2974
66
  export declare const useSchematic: () => SchematicContextProps;
2975
67
 
2976
68
  export declare const useSchematicContext: (opts?: SchematicHookOpts) => {
@@ -2990,15 +82,4 @@ export declare type UseSchematicFlagOpts = SchematicHookOpts & {
2990
82
 
2991
83
  export declare const useSchematicIsPending: (opts?: SchematicHookOpts) => boolean;
2992
84
 
2993
- export declare const Viewport: ForwardRefExoticComponent<Omit<ViewportProps, "ref"> & RefAttributes<HTMLDivElement | null>>;
2994
-
2995
- export declare interface ViewportProps extends React.HTMLProps<HTMLDivElement> {
2996
- }
2997
-
2998
- declare class VoidApiResponse {
2999
- raw: Response;
3000
- constructor(raw: Response);
3001
- value(): Promise<void>;
3002
- }
3003
-
3004
85
  export { }