@schematichq/schematic-components 0.7.1 → 0.7.3

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.
@@ -114,25 +114,26 @@ declare interface BillingPriceResponseData {
114
114
  * @memberof BillingPriceResponseData
115
115
  */
116
116
  priceDecimal?: string | null;
117
+ /**
118
+ *
119
+ * @type {string}
120
+ * @memberof BillingPriceResponseData
121
+ */
122
+ scheme: string;
117
123
  }
118
124
 
119
- /**
120
- * Schematic API
121
- * Schematic API
122
- *
123
- * The version of the OpenAPI document: 0.1
124
- *
125
- *
126
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
127
- * https://openapi-generator.tech
128
- * Do not edit the class manually.
129
- */
130
125
  /**
131
126
  *
132
127
  * @export
133
128
  * @interface BillingPriceView
134
129
  */
135
130
  declare interface BillingPriceView {
131
+ /**
132
+ *
133
+ * @type {string}
134
+ * @memberof BillingPriceView
135
+ */
136
+ billingScheme: string;
136
137
  /**
137
138
  *
138
139
  * @type {Date}
@@ -193,6 +194,12 @@ declare interface BillingPriceView {
193
194
  * @memberof BillingPriceView
194
195
  */
195
196
  priceId: string;
197
+ /**
198
+ *
199
+ * @type {Array<BillingProductPriceTierResponseData>}
200
+ * @memberof BillingPriceView
201
+ */
202
+ priceTier: Array<BillingProductPriceTierResponseData>;
196
203
  /**
197
204
  *
198
205
  * @type {string}
@@ -311,23 +318,18 @@ declare interface BillingProductDetailResponseData {
311
318
  updatedAt: Date;
312
319
  }
313
320
 
314
- /**
315
- * Schematic API
316
- * Schematic API
317
- *
318
- * The version of the OpenAPI document: 0.1
319
- *
320
- *
321
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
322
- * https://openapi-generator.tech
323
- * Do not edit the class manually.
324
- */
325
321
  /**
326
322
  *
327
323
  * @export
328
324
  * @interface BillingProductForSubscriptionResponseData
329
325
  */
330
326
  declare interface BillingProductForSubscriptionResponseData {
327
+ /**
328
+ *
329
+ * @type {string}
330
+ * @memberof BillingProductForSubscriptionResponseData
331
+ */
332
+ billingScheme: string;
331
333
  /**
332
334
  *
333
335
  * @type {Date}
@@ -400,6 +402,12 @@ declare interface BillingProductForSubscriptionResponseData {
400
402
  * @memberof BillingProductForSubscriptionResponseData
401
403
  */
402
404
  priceId: string;
405
+ /**
406
+ *
407
+ * @type {Array<BillingProductPriceTierResponseData>}
408
+ * @memberof BillingProductForSubscriptionResponseData
409
+ */
410
+ priceTier: Array<BillingProductPriceTierResponseData>;
403
411
  /**
404
412
  *
405
413
  * @type {number}
@@ -426,6 +434,128 @@ declare interface BillingProductForSubscriptionResponseData {
426
434
  usageType: string;
427
435
  }
428
436
 
437
+ /**
438
+ * Schematic API
439
+ * Schematic API
440
+ *
441
+ * The version of the OpenAPI document: 0.1
442
+ *
443
+ *
444
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
445
+ * https://openapi-generator.tech
446
+ * Do not edit the class manually.
447
+ */
448
+ /**
449
+ *
450
+ * @export
451
+ * @interface BillingProductPriceTierResponseData
452
+ */
453
+ declare interface BillingProductPriceTierResponseData {
454
+ /**
455
+ *
456
+ * @type {number}
457
+ * @memberof BillingProductPriceTierResponseData
458
+ */
459
+ flatAmount?: number | null;
460
+ /**
461
+ *
462
+ * @type {number}
463
+ * @memberof BillingProductPriceTierResponseData
464
+ */
465
+ perUnitPrice: number;
466
+ /**
467
+ *
468
+ * @type {number}
469
+ * @memberof BillingProductPriceTierResponseData
470
+ */
471
+ upTo?: number | null;
472
+ }
473
+
474
+ /**
475
+ * Schematic API
476
+ * Schematic API
477
+ *
478
+ * The version of the OpenAPI document: 0.1
479
+ *
480
+ *
481
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
482
+ * https://openapi-generator.tech
483
+ * Do not edit the class manually.
484
+ */
485
+ /**
486
+ *
487
+ * @export
488
+ * @interface BillingProductResponseData
489
+ */
490
+ declare interface BillingProductResponseData {
491
+ /**
492
+ *
493
+ * @type {string}
494
+ * @memberof BillingProductResponseData
495
+ */
496
+ accountId: string;
497
+ /**
498
+ *
499
+ * @type {Date}
500
+ * @memberof BillingProductResponseData
501
+ */
502
+ createdAt: Date;
503
+ /**
504
+ *
505
+ * @type {string}
506
+ * @memberof BillingProductResponseData
507
+ */
508
+ currency: string;
509
+ /**
510
+ *
511
+ * @type {string}
512
+ * @memberof BillingProductResponseData
513
+ */
514
+ environmentId: string;
515
+ /**
516
+ *
517
+ * @type {string}
518
+ * @memberof BillingProductResponseData
519
+ */
520
+ externalId: string;
521
+ /**
522
+ *
523
+ * @type {string}
524
+ * @memberof BillingProductResponseData
525
+ */
526
+ name: string;
527
+ /**
528
+ *
529
+ * @type {number}
530
+ * @memberof BillingProductResponseData
531
+ */
532
+ price: number;
533
+ /**
534
+ *
535
+ * @type {string}
536
+ * @memberof BillingProductResponseData
537
+ */
538
+ priceDecimal?: string | null;
539
+ /**
540
+ *
541
+ * @type {string}
542
+ * @memberof BillingProductResponseData
543
+ */
544
+ productId: string;
545
+ /**
546
+ *
547
+ * @type {number}
548
+ * @memberof BillingProductResponseData
549
+ */
550
+ quantity: number;
551
+ /**
552
+ *
553
+ * @type {Date}
554
+ * @memberof BillingProductResponseData
555
+ */
556
+ updatedAt: Date;
557
+ }
558
+
429
559
  /**
430
560
  * Schematic API
431
561
  * Schematic API
@@ -817,6 +947,12 @@ export declare type BoxProps = ComponentProps & {
817
947
 
818
948
  export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
819
949
 
950
+ export declare const ButtonElement: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_2> & HTMLAttributes<HTMLDivElement> & {
951
+ portal?: HTMLElement | null;
952
+ } & RefAttributes<HTMLDivElement | null>>;
953
+
954
+ export declare type ButtonElementProps = DesignProps_2;
955
+
820
956
  export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
821
957
  color?: ButtonStyleTypes;
822
958
  size?: ButtonSizeTypes;
@@ -1977,7 +2113,37 @@ export declare interface DesignProps {
1977
2113
  visibleFeatures?: string[];
1978
2114
  }
1979
2115
 
2116
+ declare interface DesignProps_10 {
2117
+ header: {
2118
+ isVisible: boolean;
2119
+ fontStyle: FontStyle;
2120
+ prefix: string;
2121
+ };
2122
+ price: {
2123
+ isVisible: boolean;
2124
+ fontStyle: FontStyle;
2125
+ };
2126
+ contractEndDate: {
2127
+ isVisible: boolean;
2128
+ fontStyle: FontStyle;
2129
+ prefix: string;
2130
+ };
2131
+ }
2132
+
1980
2133
  declare interface DesignProps_2 {
2134
+ button: {
2135
+ link: string;
2136
+ openInNewTab: boolean;
2137
+ text: string;
2138
+ style: ComponentStyle;
2139
+ size: ButtonSizeTypes;
2140
+ fullWidth: boolean;
2141
+ alignment: EmbedButtonAlignment;
2142
+ selfAlignment: EmbedButtonSelfAlignment;
2143
+ };
2144
+ }
2145
+
2146
+ declare interface DesignProps_3 {
1981
2147
  header: {
1982
2148
  isVisible: boolean;
1983
2149
  fontStyle: FontStyle;
@@ -2000,7 +2166,7 @@ declare interface DesignProps_2 {
2000
2166
  };
2001
2167
  }
2002
2168
 
2003
- declare interface DesignProps_3 {
2169
+ declare interface DesignProps_4 {
2004
2170
  isVisible: boolean;
2005
2171
  header: {
2006
2172
  fontStyle: FontStyle;
@@ -2023,7 +2189,7 @@ declare interface DesignProps_3 {
2023
2189
  visibleFeatures?: string[];
2024
2190
  }
2025
2191
 
2026
- declare interface DesignProps_4 {
2192
+ declare interface DesignProps_5 {
2027
2193
  header: {
2028
2194
  isVisible: boolean;
2029
2195
  fontStyle: FontStyle;
@@ -2034,7 +2200,7 @@ declare interface DesignProps_4 {
2034
2200
  };
2035
2201
  }
2036
2202
 
2037
- declare interface DesignProps_5 {
2203
+ declare interface DesignProps_6 {
2038
2204
  header: {
2039
2205
  isVisible: boolean;
2040
2206
  title: {
@@ -2061,7 +2227,7 @@ declare interface DesignProps_5 {
2061
2227
  };
2062
2228
  }
2063
2229
 
2064
- declare interface DesignProps_6 {
2230
+ declare interface DesignProps_7 {
2065
2231
  showPeriodToggle: boolean;
2066
2232
  showDiscount: boolean;
2067
2233
  header: {
@@ -2099,7 +2265,15 @@ declare interface DesignProps_6 {
2099
2265
  };
2100
2266
  }
2101
2267
 
2102
- declare interface DesignProps_7 {
2268
+ declare interface DesignProps_8 {
2269
+ text: {
2270
+ fontStyle: FontStyle;
2271
+ alignment: ComponentProps["$textAlign"];
2272
+ textContent: string;
2273
+ };
2274
+ }
2275
+
2276
+ declare interface DesignProps_9 {
2103
2277
  button: {
2104
2278
  text: string;
2105
2279
  style: ComponentStyle;
@@ -2109,23 +2283,6 @@ declare interface DesignProps_7 {
2109
2283
  };
2110
2284
  }
2111
2285
 
2112
- declare interface DesignProps_8 {
2113
- header: {
2114
- isVisible: boolean;
2115
- fontStyle: FontStyle;
2116
- prefix: string;
2117
- };
2118
- price: {
2119
- isVisible: boolean;
2120
- fontStyle: FontStyle;
2121
- };
2122
- contractEndDate: {
2123
- isVisible: boolean;
2124
- fontStyle: FontStyle;
2125
- prefix: string;
2126
- };
2127
- }
2128
-
2129
2286
  declare const Element_2: IStyledComponentBase<"web", FastOmit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps | "$viewport"> & ComponentProps & {
2130
2287
  $viewport?: {
2131
2288
  sm?: TransientCSSProperties;
@@ -2149,6 +2306,7 @@ $size?: ButtonSizeTypes;
2149
2306
  $color?: EmbedButtonColor;
2150
2307
  $variant?: EmbedButtonVariant;
2151
2308
  $alignment?: EmbedButtonAlignment;
2309
+ $selfAlignment?: EmbedButtonSelfAlignment;
2152
2310
  $fullWidth?: boolean;
2153
2311
  }>> & string & Omit<ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>, keyof Component<any, {}, any>>;
2154
2312
 
@@ -2156,6 +2314,8 @@ export declare type EmbedButtonAlignment = "start" | "center" | "end";
2156
2314
 
2157
2315
  export declare type EmbedButtonColor = "primary" | "secondary" | "danger";
2158
2316
 
2317
+ export declare type EmbedButtonSelfAlignment = "start" | "center" | "end";
2318
+
2159
2319
  export declare type EmbedButtonVariant = "filled" | "outline" | "ghost" | "text";
2160
2320
 
2161
2321
  export declare const EmbedContext: Context<EmbedContextProps>;
@@ -3254,11 +3414,11 @@ declare interface InvoiceResponseData {
3254
3414
  url?: string | null;
3255
3415
  }
3256
3416
 
3257
- export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_2> & {
3417
+ export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_3> & {
3258
3418
  data?: InvoiceResponseData[];
3259
3419
  } & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
3260
3420
 
3261
- export declare type InvoicesProps = DesignProps_2 & {
3421
+ export declare type InvoicesProps = DesignProps_3 & {
3262
3422
  data?: InvoiceResponseData[];
3263
3423
  };
3264
3424
 
@@ -3335,9 +3495,9 @@ $isLoading?: boolean;
3335
3495
 
3336
3496
  declare function mapValues(data: any, fn: (item: any) => any): {};
3337
3497
 
3338
- export declare const MeteredFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_3> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
3498
+ export declare const MeteredFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
3339
3499
 
3340
- export declare type MeteredFeaturesProps = DesignProps_3;
3500
+ export declare type MeteredFeaturesProps = DesignProps_4;
3341
3501
 
3342
3502
  declare interface Middleware {
3343
3503
  pre?(context: RequestContext): Promise<FetchParams | void>;
@@ -3376,7 +3536,7 @@ xl?: TransientCSSProperties;
3376
3536
  };
3377
3537
  }, never>> & string;
3378
3538
 
3379
- export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & {
3539
+ export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
3380
3540
  portal?: HTMLElement | null;
3381
3541
  allowEdit?: boolean;
3382
3542
  } & RefAttributes<HTMLDivElement | null>>;
@@ -3387,7 +3547,7 @@ declare interface PaymentMethodDetailsProps {
3387
3547
  setPaymentMethodId?: (id: string) => void;
3388
3548
  }
3389
3549
 
3390
- export declare type PaymentMethodProps = DesignProps_4;
3550
+ export declare type PaymentMethodProps = DesignProps_5;
3391
3551
 
3392
3552
  /**
3393
3553
  * Schematic API
@@ -3722,6 +3882,12 @@ declare interface PlanEntitlementResponseData {
3722
3882
  * @memberof PlanEntitlementResponseData
3723
3883
  */
3724
3884
  updatedAt: Date;
3885
+ /**
3886
+ *
3887
+ * @type {BillingProductResponseData}
3888
+ * @memberof PlanEntitlementResponseData
3889
+ */
3890
+ usageBasedProduct?: BillingProductResponseData;
3725
3891
  /**
3726
3892
  *
3727
3893
  * @type {boolean}
@@ -3754,11 +3920,11 @@ declare interface PlanEntitlementResponseData {
3754
3920
  valueType: string;
3755
3921
  }
3756
3922
 
3757
- export declare const PlanManager: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
3923
+ export declare const PlanManager: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & {
3758
3924
  portal?: HTMLElement | null;
3759
3925
  } & RefAttributes<HTMLDivElement | null>>;
3760
3926
 
3761
- export declare type PlanManagerProps = DesignProps_5;
3927
+ export declare type PlanManagerProps = DesignProps_6;
3762
3928
 
3763
3929
  /**
3764
3930
  * Schematic API
@@ -3939,17 +4105,6 @@ declare interface PreviewObjectResponseData {
3939
4105
  name: string;
3940
4106
  }
3941
4107
 
3942
- /**
3943
- * Schematic API
3944
- * Schematic API
3945
- *
3946
- * The version of the OpenAPI document: 0.1
3947
- *
3948
- *
3949
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3950
- * https://openapi-generator.tech
3951
- * Do not edit the class manually.
3952
- */
3953
4108
  /**
3954
4109
  * The created resource
3955
4110
  * @export
@@ -3968,6 +4123,12 @@ declare interface PreviewSubscriptionChangeResponseData {
3968
4123
  * @memberof PreviewSubscriptionChangeResponseData
3969
4124
  */
3970
4125
  dueNow: number;
4126
+ /**
4127
+ *
4128
+ * @type {PreviewSubscriptionFinanceResponseData}
4129
+ * @memberof PreviewSubscriptionChangeResponseData
4130
+ */
4131
+ finance?: PreviewSubscriptionFinanceResponseData;
3971
4132
  /**
3972
4133
  *
3973
4134
  * @type {number}
@@ -4004,11 +4165,84 @@ declare interface PreviewSubscriptionChangeResponseData {
4004
4165
  * @memberof PreviewSubscriptionChangeResponseData
4005
4166
  */
4006
4167
  trialEnd?: Date | null;
4168
+ /**
4169
+ *
4170
+ * @type {Array<FeatureUsageResponseData>}
4171
+ * @memberof PreviewSubscriptionChangeResponseData
4172
+ */
4173
+ usageViolations: Array<FeatureUsageResponseData>;
4007
4174
  }
4008
4175
 
4009
- export declare const PricingTable: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4176
+ /**
4177
+ * Schematic API
4178
+ * Schematic API
4179
+ *
4180
+ * The version of the OpenAPI document: 0.1
4181
+ *
4182
+ *
4183
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4184
+ * https://openapi-generator.tech
4185
+ * Do not edit the class manually.
4186
+ */
4187
+ /**
4188
+ *
4189
+ * @export
4190
+ * @interface PreviewSubscriptionFinanceResponseData
4191
+ */
4192
+ declare interface PreviewSubscriptionFinanceResponseData {
4193
+ /**
4194
+ *
4195
+ * @type {number}
4196
+ * @memberof PreviewSubscriptionFinanceResponseData
4197
+ */
4198
+ amountOff: number;
4199
+ /**
4200
+ *
4201
+ * @type {number}
4202
+ * @memberof PreviewSubscriptionFinanceResponseData
4203
+ */
4204
+ dueNow: number;
4205
+ /**
4206
+ *
4207
+ * @type {number}
4208
+ * @memberof PreviewSubscriptionFinanceResponseData
4209
+ */
4210
+ newCharges: number;
4211
+ /**
4212
+ *
4213
+ * @type {number}
4214
+ * @memberof PreviewSubscriptionFinanceResponseData
4215
+ */
4216
+ percentOff: number;
4217
+ /**
4218
+ *
4219
+ * @type {Date}
4220
+ * @memberof PreviewSubscriptionFinanceResponseData
4221
+ */
4222
+ periodStart: Date;
4223
+ /**
4224
+ *
4225
+ * @type {boolean}
4226
+ * @memberof PreviewSubscriptionFinanceResponseData
4227
+ */
4228
+ promoCodeApplied: boolean;
4229
+ /**
4230
+ *
4231
+ * @type {number}
4232
+ * @memberof PreviewSubscriptionFinanceResponseData
4233
+ */
4234
+ proration: number;
4235
+ /**
4236
+ *
4237
+ * @type {Date}
4238
+ * @memberof PreviewSubscriptionFinanceResponseData
4239
+ */
4240
+ trialEnd?: Date | null;
4241
+ }
4242
+
4243
+ export declare const PricingTable: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_7> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4010
4244
 
4011
- export declare type PricingTableProps = DesignProps_6;
4245
+ export declare type PricingTableProps = DesignProps_7;
4012
4246
 
4013
4247
  export declare const ProgressBar: ({ progress, value, total, color, bgColor, barWidth, ...props }: ProgressBarProps) => JSX.Element;
4014
4248
 
@@ -4476,6 +4710,12 @@ declare class TextApiResponse {
4476
4710
  value(): Promise<string>;
4477
4711
  }
4478
4712
 
4713
+ export declare const TextElement: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_8> & HTMLAttributes<HTMLDivElement> & {
4714
+ portal?: HTMLElement | null;
4715
+ } & RefAttributes<HTMLDivElement | null>>;
4716
+
4717
+ export declare type TextElementProps = DesignProps_8;
4718
+
4479
4719
  export declare enum TextPropNames {
4480
4720
  Align = "$align",
4481
4721
  Font = "$font",
@@ -4516,15 +4756,15 @@ export declare interface TypographySettings {
4516
4756
  color: string;
4517
4757
  }
4518
4758
 
4519
- export declare const UnsubscribeButton: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_7> & HTMLAttributes<HTMLDivElement> & {
4759
+ export declare const UnsubscribeButton: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_9> & HTMLAttributes<HTMLDivElement> & {
4520
4760
  portal?: HTMLElement | null;
4521
4761
  } & RefAttributes<HTMLDivElement | null>>;
4522
4762
 
4523
- export declare type UnsubscribeButtonProps = DesignProps_7;
4763
+ export declare type UnsubscribeButtonProps = DesignProps_9;
4524
4764
 
4525
- export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_8> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4765
+ export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_10> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4526
4766
 
4527
- export declare type UpcomingBillProps = DesignProps_8;
4767
+ export declare type UpcomingBillProps = DesignProps_10;
4528
4768
 
4529
4769
  /**
4530
4770
  * Schematic API