@schematichq/schematic-react 0.2.0-rc.0 → 0.2.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,178 @@ declare type BaseSchematicProviderProps = Omit<SchematicJS.SchematicOptions, "cl
30
30
  children: ReactNode;
31
31
  };
32
32
 
33
+ /**
34
+ * Schematic API
35
+ * Schematic API
36
+ *
37
+ * The version of the OpenAPI document: 0.1
38
+ *
39
+ *
40
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
41
+ * https://openapi-generator.tech
42
+ * Do not edit the class manually.
43
+ */
44
+ /**
45
+ *
46
+ * @export
47
+ * @interface BillingPlan
48
+ */
49
+ declare interface BillingPlan {
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof BillingPlan
54
+ */
55
+ description?: string | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof BillingPlan
60
+ */
61
+ id: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof BillingPlan
66
+ */
67
+ imageUrl?: string | null;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof BillingPlan
72
+ */
73
+ name: string;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof BillingPlan
78
+ */
79
+ planPeriod?: string | null;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof BillingPlan
84
+ */
85
+ planPrice?: number | null;
86
+ }
87
+
88
+ /**
89
+ * Schematic API
90
+ * Schematic API
91
+ *
92
+ * The version of the OpenAPI document: 0.1
93
+ *
94
+ *
95
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
96
+ * https://openapi-generator.tech
97
+ * Do not edit the class manually.
98
+ */
99
+ /**
100
+ *
101
+ * @export
102
+ * @interface BillingPriceResponseData
103
+ */
104
+ declare interface BillingPriceResponseData {
105
+ /**
106
+ *
107
+ * @type {string}
108
+ * @memberof BillingPriceResponseData
109
+ */
110
+ externalPriceId: string;
111
+ /**
112
+ *
113
+ * @type {string}
114
+ * @memberof BillingPriceResponseData
115
+ */
116
+ id: string;
117
+ /**
118
+ *
119
+ * @type {string}
120
+ * @memberof BillingPriceResponseData
121
+ */
122
+ interval: string;
123
+ /**
124
+ *
125
+ * @type {number}
126
+ * @memberof BillingPriceResponseData
127
+ */
128
+ price: number;
129
+ }
130
+
131
+ /**
132
+ *
133
+ * @export
134
+ * @interface BillingProductDetailResponseData
135
+ */
136
+ declare interface BillingProductDetailResponseData {
137
+ /**
138
+ *
139
+ * @type {Array<BillingPriceResponseData>}
140
+ * @memberof BillingProductDetailResponseData
141
+ */
142
+ prices: Array<BillingPriceResponseData>;
143
+ /**
144
+ *
145
+ * @type {string}
146
+ * @memberof BillingProductDetailResponseData
147
+ */
148
+ accountId: string;
149
+ /**
150
+ *
151
+ * @type {Date}
152
+ * @memberof BillingProductDetailResponseData
153
+ */
154
+ createdAt: Date;
155
+ /**
156
+ *
157
+ * @type {string}
158
+ * @memberof BillingProductDetailResponseData
159
+ */
160
+ currency: string;
161
+ /**
162
+ *
163
+ * @type {string}
164
+ * @memberof BillingProductDetailResponseData
165
+ */
166
+ environmentId: string;
167
+ /**
168
+ *
169
+ * @type {string}
170
+ * @memberof BillingProductDetailResponseData
171
+ */
172
+ externalId: string;
173
+ /**
174
+ *
175
+ * @type {string}
176
+ * @memberof BillingProductDetailResponseData
177
+ */
178
+ name: string;
179
+ /**
180
+ *
181
+ * @type {number}
182
+ * @memberof BillingProductDetailResponseData
183
+ */
184
+ price: number;
185
+ /**
186
+ *
187
+ * @type {string}
188
+ * @memberof BillingProductDetailResponseData
189
+ */
190
+ productId: string;
191
+ /**
192
+ *
193
+ * @type {number}
194
+ * @memberof BillingProductDetailResponseData
195
+ */
196
+ quantity: number;
197
+ /**
198
+ *
199
+ * @type {Date}
200
+ * @memberof BillingProductDetailResponseData
201
+ */
202
+ updatedAt: Date;
203
+ }
204
+
33
205
  export declare const Box: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ComponentProps>> & string;
34
206
 
35
207
  export declare type BoxProps = ComponentProps;
@@ -63,10 +235,10 @@ export declare interface CardProps {
63
235
  declare interface CompanyDetailResponseData {
64
236
  /**
65
237
  *
66
- * @type {Array<PreviewObject>}
238
+ * @type {Array<BillingPlan>}
67
239
  * @memberof CompanyDetailResponseData
68
240
  */
69
- addOns: Array<PreviewObject>;
241
+ addOns: Array<BillingPlan>;
70
242
  /**
71
243
  *
72
244
  * @type {Date}
@@ -117,10 +289,10 @@ declare interface CompanyDetailResponseData {
117
289
  name: string;
118
290
  /**
119
291
  *
120
- * @type {PreviewObject}
292
+ * @type {BillingPlan}
121
293
  * @memberof CompanyDetailResponseData
122
294
  */
123
- plan?: PreviewObject;
295
+ plan?: BillingPlan;
124
296
  /**
125
297
  *
126
298
  * @type {Array<PreviewObject>}
@@ -147,12 +319,122 @@ declare interface CompanyDetailResponseData {
147
319
  userCount: number;
148
320
  }
149
321
 
322
+ /**
323
+ *
324
+ * @export
325
+ * @interface CompanyPlanDetailResponseData
326
+ */
327
+ declare interface CompanyPlanDetailResponseData {
328
+ /**
329
+ *
330
+ * @type {string}
331
+ * @memberof CompanyPlanDetailResponseData
332
+ */
333
+ audienceType?: string | null;
334
+ /**
335
+ *
336
+ * @type {BillingProductDetailResponseData}
337
+ * @memberof CompanyPlanDetailResponseData
338
+ */
339
+ billingProduct?: BillingProductDetailResponseData;
340
+ /**
341
+ *
342
+ * @type {number}
343
+ * @memberof CompanyPlanDetailResponseData
344
+ */
345
+ companyCount: number;
346
+ /**
347
+ *
348
+ * @type {Date}
349
+ * @memberof CompanyPlanDetailResponseData
350
+ */
351
+ createdAt: Date;
352
+ /**
353
+ *
354
+ * @type {boolean}
355
+ * @memberof CompanyPlanDetailResponseData
356
+ */
357
+ current: boolean;
358
+ /**
359
+ *
360
+ * @type {string}
361
+ * @memberof CompanyPlanDetailResponseData
362
+ */
363
+ description: string;
364
+ /**
365
+ *
366
+ * @type {Array<PlanEntitlementResponseData>}
367
+ * @memberof CompanyPlanDetailResponseData
368
+ */
369
+ entitlements: Array<PlanEntitlementResponseData>;
370
+ /**
371
+ *
372
+ * @type {Array<FeatureDetailResponseData>}
373
+ * @memberof CompanyPlanDetailResponseData
374
+ */
375
+ features: Array<FeatureDetailResponseData>;
376
+ /**
377
+ *
378
+ * @type {string}
379
+ * @memberof CompanyPlanDetailResponseData
380
+ */
381
+ icon: string;
382
+ /**
383
+ *
384
+ * @type {string}
385
+ * @memberof CompanyPlanDetailResponseData
386
+ */
387
+ id: string;
388
+ /**
389
+ *
390
+ * @type {BillingPriceResponseData}
391
+ * @memberof CompanyPlanDetailResponseData
392
+ */
393
+ monthlyPrice?: BillingPriceResponseData;
394
+ /**
395
+ *
396
+ * @type {string}
397
+ * @memberof CompanyPlanDetailResponseData
398
+ */
399
+ name: string;
400
+ /**
401
+ *
402
+ * @type {string}
403
+ * @memberof CompanyPlanDetailResponseData
404
+ */
405
+ planType: string;
406
+ /**
407
+ *
408
+ * @type {Date}
409
+ * @memberof CompanyPlanDetailResponseData
410
+ */
411
+ updatedAt: Date;
412
+ /**
413
+ *
414
+ * @type {boolean}
415
+ * @memberof CompanyPlanDetailResponseData
416
+ */
417
+ valid: boolean;
418
+ /**
419
+ *
420
+ * @type {BillingPriceResponseData}
421
+ * @memberof CompanyPlanDetailResponseData
422
+ */
423
+ yearlyPrice?: BillingPriceResponseData;
424
+ }
425
+
150
426
  /**
151
427
  * The returned resource
152
428
  * @export
153
429
  * @interface ComponentHydrateResponseData
154
430
  */
155
431
  declare interface ComponentHydrateResponseData {
432
+ /**
433
+ *
434
+ * @type {Array<CompanyPlanDetailResponseData>}
435
+ * @memberof ComponentHydrateResponseData
436
+ */
437
+ activePlans: Array<CompanyPlanDetailResponseData>;
156
438
  /**
157
439
  *
158
440
  * @type {CompanyDetailResponseData}
@@ -171,6 +453,12 @@ declare interface ComponentHydrateResponseData {
171
453
  * @memberof ComponentHydrateResponseData
172
454
  */
173
455
  featureUsage?: FeatureUsageDetailResponseData;
456
+ /**
457
+ *
458
+ * @type {StripeEmbedInfo}
459
+ * @memberof ComponentHydrateResponseData
460
+ */
461
+ stripeEmbed?: StripeEmbedInfo;
174
462
  }
175
463
 
176
464
  declare interface ComponentProps extends TransientCSSProperties {
@@ -196,10 +484,12 @@ declare interface ComponentProps extends TransientCSSProperties {
196
484
  declare interface ComponentResponseData {
197
485
  /**
198
486
  *
199
- * @type {Array<number>}
487
+ * @type {{ [key: string]: number; }}
200
488
  * @memberof ComponentResponseData
201
489
  */
202
- ast: Array<number>;
490
+ ast?: {
491
+ [key: string]: number;
492
+ };
203
493
  /**
204
494
  *
205
495
  * @type {Date}
@@ -238,6 +528,19 @@ declare interface ComponentResponseData {
238
528
  updatedAt: Date;
239
529
  }
240
530
 
531
+ declare interface ConfigurationParameters {
532
+ basePath?: string;
533
+ fetchApi?: FetchAPI;
534
+ middleware?: Middleware[];
535
+ queryParamsStringify?: (params: HTTPQuery) => string;
536
+ username?: string;
537
+ password?: string;
538
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
539
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
540
+ headers?: HTTPHeaders;
541
+ credentials?: RequestCredentials;
542
+ }
543
+
241
544
  declare const _default: {
242
545
  alarm: number;
243
546
  "arrow-curved": number;
@@ -338,43 +641,132 @@ declare const _default: {
338
641
  wind: number;
339
642
  };
340
643
 
644
+ export declare const defaultSettings: EmbedSettings;
645
+
646
+ export declare const defaultTheme: EmbedThemeSettings;
647
+
341
648
  declare interface DesignProps {
342
- name?: {
343
- text: string;
344
- style: {
345
- fontFamily: string;
346
- fontSize: number;
347
- fontWeight: number;
348
- color: string;
649
+ header: {
650
+ isVisible: boolean;
651
+ title: {
652
+ fontStyle: FontStyle;
653
+ };
654
+ description: {
655
+ isVisible: boolean;
656
+ fontStyle: FontStyle;
657
+ };
658
+ price: {
659
+ isVisible: boolean;
660
+ fontStyle: FontStyle;
349
661
  };
350
662
  };
351
- limits?: {
663
+ addOns: {
352
664
  isVisible: boolean;
665
+ fontStyle: FontStyle;
666
+ showLabel: boolean;
353
667
  };
354
- usage?: {
668
+ callToAction: {
355
669
  isVisible: boolean;
670
+ buttonSize: "sm" | "md" | "lg";
671
+ buttonStyle: "primary" | "secondary" | "tertiary";
356
672
  };
357
- count?: number;
358
673
  }
359
674
 
360
675
  declare interface DesignProps_2 {
361
- header?: {
676
+ header: {
362
677
  isVisible: boolean;
363
- title: TextDesignProps;
364
- description: TextDesignProps;
365
- price: TextDesignProps;
678
+ fontStyle: FontStyle;
679
+ text: string;
366
680
  };
367
- addOns?: {
681
+ icons: {
368
682
  isVisible: boolean;
683
+ fontStyle: FontStyle;
684
+ style: "light" | "dark";
369
685
  };
370
- usageBased?: {
686
+ entitlement: {
371
687
  isVisible: boolean;
688
+ fontStyle: FontStyle;
372
689
  };
373
- callToAction?: {
690
+ usage: {
374
691
  isVisible: boolean;
375
- size: "sm" | "md" | "lg";
376
- color: string;
377
- backgroundColor: string;
692
+ fontStyle: FontStyle;
693
+ };
694
+ }
695
+
696
+ declare interface DesignProps_3 {
697
+ isVisible: boolean;
698
+ header: {
699
+ fontStyle: FontStyle;
700
+ };
701
+ description: {
702
+ isVisible: boolean;
703
+ fontStyle: FontStyle;
704
+ };
705
+ icon: {
706
+ isVisible: boolean;
707
+ };
708
+ allocation: {
709
+ isVisible: boolean;
710
+ fontStyle: FontStyle;
711
+ };
712
+ usage: {
713
+ isVisible: boolean;
714
+ fontStyle: FontStyle;
715
+ };
716
+ callToAction: {
717
+ isVisible: boolean;
718
+ buttonSize: "sm" | "md" | "lg";
719
+ buttonStyle: "primary" | "secondary" | "tertiary";
720
+ };
721
+ }
722
+
723
+ declare interface DesignProps_4 {
724
+ header: {
725
+ isVisible: boolean;
726
+ fontStyle: FontStyle;
727
+ prefix: string;
728
+ };
729
+ price: {
730
+ isVisible: boolean;
731
+ fontStyle: FontStyle;
732
+ };
733
+ contractEndDate: {
734
+ isVisible: boolean;
735
+ fontStyle: FontStyle;
736
+ prefix: string;
737
+ };
738
+ }
739
+
740
+ declare interface DesignProps_5 {
741
+ header: {
742
+ isVisible: boolean;
743
+ fontStyle: FontStyle;
744
+ };
745
+ functions: {
746
+ allowEdit: boolean;
747
+ };
748
+ }
749
+
750
+ declare interface DesignProps_6 {
751
+ header: {
752
+ isVisible: boolean;
753
+ fontStyle: FontStyle;
754
+ };
755
+ date: {
756
+ isVisible: boolean;
757
+ fontStyle: FontStyle;
758
+ };
759
+ amount: {
760
+ isVisible: boolean;
761
+ fontStyle: FontStyle;
762
+ };
763
+ limit: {
764
+ isVisible: boolean;
765
+ number: number;
766
+ };
767
+ collapse: {
768
+ isVisible: boolean;
769
+ fontStyle: FontStyle;
378
770
  };
379
771
  }
380
772
 
@@ -389,26 +781,59 @@ export declare const EmbedContext: Context<EmbedContextProps>;
389
781
  export declare interface EmbedContextProps {
390
782
  data: RecursivePartial<ComponentHydrateResponseData>;
391
783
  nodes: SerializedNodeWithChildren[];
392
- settings: RecursivePartial<Settings>;
784
+ settings: EmbedSettings;
785
+ layout: EmbedLayout;
393
786
  error?: Error;
394
- setData: SetData;
395
- setSettings: SetSettings;
396
- updateSettings: SetSettings;
787
+ setData: (data: RecursivePartial<ComponentHydrateResponseData>) => void;
788
+ updateSettings: (settings: RecursivePartial<EmbedSettings>) => void;
789
+ setLayout: (layout: EmbedLayout) => void;
397
790
  }
398
791
 
792
+ declare type EmbedLayout = "portal" | "checkout" | "payment" | "disabled";
793
+
399
794
  export declare interface EmbedProps {
400
795
  accessToken?: string;
401
796
  id?: string;
797
+ apiConfig?: ConfigurationParameters;
402
798
  }
403
799
 
404
- export declare const EmbedProvider: ({ id, accessToken, children, }: EmbedProviderProps) => JSX_2.Element;
800
+ export declare const EmbedProvider: ({ id, accessToken, apiConfig, children, }: EmbedProviderProps) => JSX_2.Element;
405
801
 
406
802
  export declare interface EmbedProviderProps {
407
803
  id?: string;
408
804
  accessToken?: string;
805
+ apiConfig?: ConfigurationParameters;
409
806
  children?: React.ReactNode;
410
807
  }
411
808
 
809
+ declare type EmbedSettings = {
810
+ theme: EmbedThemeSettings;
811
+ };
812
+
813
+ declare interface EmbedThemeSettings {
814
+ numberOfColumns: 1 | 2 | 3;
815
+ sectionLayout: "merged" | "separate";
816
+ colorMode: "light" | "dark";
817
+ primary: string;
818
+ secondary: string;
819
+ card: {
820
+ background: string;
821
+ borderRadius: number;
822
+ hasShadow: boolean;
823
+ padding: number;
824
+ };
825
+ typography: {
826
+ heading1: TypographySettings;
827
+ heading2: TypographySettings;
828
+ heading3: TypographySettings;
829
+ heading4: TypographySettings;
830
+ heading5: TypographySettings;
831
+ heading6: TypographySettings;
832
+ text: TypographySettings;
833
+ link: TypographySettings;
834
+ };
835
+ }
836
+
412
837
  /**
413
838
  * Schematic API
414
839
  * Schematic API
@@ -637,6 +1062,14 @@ declare interface EntityTraitDetailResponseData {
637
1062
  value: string;
638
1063
  }
639
1064
 
1065
+ declare interface ErrorContext {
1066
+ fetch: FetchAPI;
1067
+ url: string;
1068
+ init: RequestInit;
1069
+ error: unknown;
1070
+ response?: Response;
1071
+ }
1072
+
640
1073
  export { Event_2 as Event }
641
1074
 
642
1075
  export { EventBody }
@@ -973,6 +1406,13 @@ declare const FeatureUsageResponseDataAllocationTypeEnum: {
973
1406
 
974
1407
  declare type FeatureUsageResponseDataAllocationTypeEnum = (typeof FeatureUsageResponseDataAllocationTypeEnum)[keyof typeof FeatureUsageResponseDataAllocationTypeEnum];
975
1408
 
1409
+ declare type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
1410
+
1411
+ declare interface FetchParams {
1412
+ url: string;
1413
+ init: RequestInit;
1414
+ }
1415
+
976
1416
  export { FlagCheckResponseBody }
977
1417
 
978
1418
  export { FlagCheckWithKeyResponseBody }
@@ -1067,6 +1507,16 @@ export declare const Flex: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<De
1067
1507
  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;
1068
1508
  }, never>> & string;
1069
1509
 
1510
+ declare type FontStyle = keyof EmbedThemeSettings["typography"];
1511
+
1512
+ declare type HTTPHeaders = {
1513
+ [key: string]: string;
1514
+ };
1515
+
1516
+ declare type HTTPQuery = {
1517
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
1518
+ };
1519
+
1070
1520
  export declare const Icon: ({ name, className, ...props }: IconProps) => JSX_2.Element;
1071
1521
 
1072
1522
  export declare type IconNameTypes = keyof typeof _default;
@@ -1075,29 +1525,144 @@ export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
1075
1525
  name: IconNameTypes;
1076
1526
  }
1077
1527
 
1078
- export declare const IconRound: ({ name, style, size, }: IconRoundProps) => JSX_2.Element;
1528
+ export declare const IconRound: ({ name, variant, size, colors, ...props }: IconRoundProps) => JSX_2.Element;
1079
1529
 
1080
- export declare interface IconRoundProps {
1530
+ export declare interface IconRoundProps extends React.HTMLAttributes<HTMLElement> {
1081
1531
  name: IconNameTypes;
1082
- style?: "outline" | "filled";
1532
+ variant?: "outline" | "filled";
1083
1533
  size?: "tn" | "sm" | "md" | "lg";
1534
+ colors?: [string, string];
1084
1535
  }
1085
1536
 
1086
- export declare const IncludedFeatures: ({ className, ...props }: IncludedFeaturesProps) => JSX_2.Element;
1537
+ export declare const IncludedFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_2> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
1538
+
1539
+ export declare type IncludedFeaturesProps = DesignProps_2;
1087
1540
 
1088
- export declare type IncludedFeaturesProps = ElementProps & RecursivePartial<DesignProps> & React.HTMLAttributes<HTMLDivElement>;
1541
+ export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
1089
1542
 
1090
- export declare const Invoices: () => JSX_2.Element;
1543
+ export declare type InvoicesProps = DesignProps_6;
1091
1544
 
1092
1545
  export { Keys }
1093
1546
 
1094
- export declare const NextBillDue: () => JSX_2.Element;
1547
+ export declare const MeteredFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_3> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
1548
+
1549
+ export declare type MeteredFeaturesProps = DesignProps_3;
1550
+
1551
+ declare interface Middleware {
1552
+ pre?(context: RequestContext): Promise<FetchParams | void>;
1553
+ post?(context: ResponseContext): Promise<Response | void>;
1554
+ onError?(context: ErrorContext): Promise<Response | void>;
1555
+ }
1556
+
1557
+ export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
1558
+ portal?: HTMLElement | null;
1559
+ } & RefAttributes<HTMLDivElement | null>>;
1095
1560
 
1096
- export declare const PaymentMethod: () => JSX_2.Element;
1561
+ export declare type PaymentMethodProps = DesignProps_5;
1562
+
1563
+ /**
1564
+ *
1565
+ * @export
1566
+ * @interface PlanEntitlementResponseData
1567
+ */
1568
+ declare interface PlanEntitlementResponseData {
1569
+ /**
1570
+ *
1571
+ * @type {Date}
1572
+ * @memberof PlanEntitlementResponseData
1573
+ */
1574
+ createdAt: Date;
1575
+ /**
1576
+ *
1577
+ * @type {string}
1578
+ * @memberof PlanEntitlementResponseData
1579
+ */
1580
+ environmentId: string;
1581
+ /**
1582
+ *
1583
+ * @type {FeatureResponseData}
1584
+ * @memberof PlanEntitlementResponseData
1585
+ */
1586
+ feature?: FeatureResponseData;
1587
+ /**
1588
+ *
1589
+ * @type {string}
1590
+ * @memberof PlanEntitlementResponseData
1591
+ */
1592
+ featureId: string;
1593
+ /**
1594
+ *
1595
+ * @type {string}
1596
+ * @memberof PlanEntitlementResponseData
1597
+ */
1598
+ id: string;
1599
+ /**
1600
+ *
1601
+ * @type {string}
1602
+ * @memberof PlanEntitlementResponseData
1603
+ */
1604
+ metricPeriod?: string | null;
1605
+ /**
1606
+ *
1607
+ * @type {PlanResponseData}
1608
+ * @memberof PlanEntitlementResponseData
1609
+ */
1610
+ plan?: PlanResponseData;
1611
+ /**
1612
+ *
1613
+ * @type {string}
1614
+ * @memberof PlanEntitlementResponseData
1615
+ */
1616
+ planId: string;
1617
+ /**
1618
+ *
1619
+ * @type {string}
1620
+ * @memberof PlanEntitlementResponseData
1621
+ */
1622
+ ruleId: string;
1623
+ /**
1624
+ *
1625
+ * @type {Date}
1626
+ * @memberof PlanEntitlementResponseData
1627
+ */
1628
+ updatedAt: Date;
1629
+ /**
1630
+ *
1631
+ * @type {boolean}
1632
+ * @memberof PlanEntitlementResponseData
1633
+ */
1634
+ valueBool?: boolean | null;
1635
+ /**
1636
+ *
1637
+ * @type {number}
1638
+ * @memberof PlanEntitlementResponseData
1639
+ */
1640
+ valueNumeric?: number | null;
1641
+ /**
1642
+ *
1643
+ * @type {EntityTraitDefinitionResponseData}
1644
+ * @memberof PlanEntitlementResponseData
1645
+ */
1646
+ valueTrait?: EntityTraitDefinitionResponseData;
1647
+ /**
1648
+ *
1649
+ * @type {string}
1650
+ * @memberof PlanEntitlementResponseData
1651
+ */
1652
+ valueTraitId?: string | null;
1653
+ /**
1654
+ *
1655
+ * @type {string}
1656
+ * @memberof PlanEntitlementResponseData
1657
+ */
1658
+ valueType: string;
1659
+ }
1097
1660
 
1098
- export declare const PlanManager: ({ className, ...props }: PlanManagerProps) => JSX_2.Element;
1661
+ export declare const PlanManager: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps> & HTMLAttributes<HTMLDivElement> & {
1662
+ portal?: HTMLElement | null;
1663
+ } & RefAttributes<HTMLDivElement | null>>;
1099
1664
 
1100
- export declare type PlanManagerProps = ElementProps & RecursivePartial<DesignProps_2> & React.HTMLAttributes<HTMLDivElement>;
1665
+ export declare type PlanManagerProps = DesignProps;
1101
1666
 
1102
1667
  /**
1103
1668
  * Schematic API
@@ -1121,7 +1686,7 @@ declare interface PlanResponseData {
1121
1686
  * @type {string}
1122
1687
  * @memberof PlanResponseData
1123
1688
  */
1124
- audienceType: string;
1689
+ audienceType?: string | null;
1125
1690
  /**
1126
1691
  *
1127
1692
  * @type {Date}
@@ -1223,6 +1788,19 @@ declare type RecursivePartial<T> = {
1223
1788
  [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
1224
1789
  };
1225
1790
 
1791
+ declare interface RequestContext {
1792
+ fetch: FetchAPI;
1793
+ url: string;
1794
+ init: RequestInit;
1795
+ }
1796
+
1797
+ declare interface ResponseContext {
1798
+ fetch: FetchAPI;
1799
+ url: string;
1800
+ init: RequestInit;
1801
+ response: Response;
1802
+ }
1803
+
1226
1804
  /**
1227
1805
  *
1228
1806
  * @export
@@ -1533,7 +2111,7 @@ declare interface SchematicContextProps {
1533
2111
  flagValues: Record<string, boolean>;
1534
2112
  }
1535
2113
 
1536
- export declare const SchematicEmbed: ({ id, accessToken }: EmbedProps) => JSX_2.Element;
2114
+ export declare const SchematicEmbed: ({ id, accessToken, apiConfig }: EmbedProps) => JSX_2.Element;
1537
2115
 
1538
2116
  export declare interface SchematicHookOpts {
1539
2117
  client?: SchematicJS.Schematic;
@@ -1564,37 +2142,47 @@ declare type SerializedNodeWithChildren = SerializedNode & {
1564
2142
  children: SerializedNodeWithChildren[];
1565
2143
  };
1566
2144
 
1567
- declare type SetData = (data: RecursivePartial<ComponentHydrateResponseData>) => void;
1568
-
1569
- declare type SetSettings = (settings: RecursivePartial<Settings>) => void;
1570
-
1571
- declare interface Settings {
1572
- theme: "light" | "dark";
1573
- sectionLayout: "merged" | "separate";
1574
- borderWidth: number;
1575
- borderColor: string;
1576
- borderRadius: number;
1577
- boxShadow: string;
1578
- boxPadding: number;
2145
+ /**
2146
+ * Schematic API
2147
+ * Schematic API
2148
+ *
2149
+ * The version of the OpenAPI document: 0.1
2150
+ *
2151
+ *
2152
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2153
+ * https://openapi-generator.tech
2154
+ * Do not edit the class manually.
2155
+ */
2156
+ /**
2157
+ *
2158
+ * @export
2159
+ * @interface StripeEmbedInfo
2160
+ */
2161
+ declare interface StripeEmbedInfo {
2162
+ /**
2163
+ *
2164
+ * @type {string}
2165
+ * @memberof StripeEmbedInfo
2166
+ */
2167
+ customerEkey: string;
2168
+ /**
2169
+ *
2170
+ * @type {string}
2171
+ * @memberof StripeEmbedInfo
2172
+ */
2173
+ publishableKey: string;
1579
2174
  }
1580
2175
 
1581
2176
  declare const Text_2: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>> & string;
1582
2177
  export { Text_2 as Text }
1583
2178
 
1584
- declare interface TextDesignProps {
1585
- isVisible?: boolean;
1586
- fontFamily?: string;
1587
- fontSize?: number;
1588
- fontWeight?: number;
1589
- color?: string;
1590
- }
1591
-
1592
2179
  export declare interface TextProps extends ComponentProps {
1593
2180
  $align?: ComponentProps["$textAlign"];
1594
2181
  $font?: ComponentProps["$fontFamily"];
1595
2182
  $size?: ComponentProps["$fontSize"];
1596
2183
  $weight?: ComponentProps["$fontWeight"];
1597
2184
  $color?: ComponentProps["$color"];
2185
+ $lineHeight?: ComponentProps["$lineHeight"];
1598
2186
  }
1599
2187
 
1600
2188
  export { Traits }
@@ -1603,6 +2191,17 @@ declare type TransientCSSProperties = {
1603
2191
  [Property in keyof React.CSSProperties as `$${string & Property}`]: React.CSSProperties[Property];
1604
2192
  };
1605
2193
 
2194
+ declare interface TypographySettings {
2195
+ fontFamily: string;
2196
+ fontSize: number;
2197
+ fontWeight: number;
2198
+ color: string;
2199
+ }
2200
+
2201
+ export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2202
+
2203
+ export declare type UpcomingBillProps = DesignProps_4;
2204
+
1606
2205
  export declare const useEmbed: () => EmbedContextProps;
1607
2206
 
1608
2207
  export declare const useSchematic: () => SchematicContextProps;