@schematichq/schematic-components 0.2.0 → 0.3.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.
@@ -133,6 +133,12 @@ declare interface BillingPlan {
133
133
  * @interface BillingPriceResponseData
134
134
  */
135
135
  declare interface BillingPriceResponseData {
136
+ /**
137
+ *
138
+ * @type {string}
139
+ * @memberof BillingPriceResponseData
140
+ */
141
+ currency: string;
136
142
  /**
137
143
  *
138
144
  * @type {string}
@@ -472,6 +478,14 @@ declare class CheckoutApi extends runtime.BaseAPI {
472
478
  * Hydrate component
473
479
  */
474
480
  hydrateComponent(requestParameters: HydrateComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HydrateComponentResponse>;
481
+ /**
482
+ * List invoices
483
+ */
484
+ listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListInvoicesResponse>>;
485
+ /**
486
+ * List invoices
487
+ */
488
+ listInvoices(requestParameters?: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListInvoicesResponse>;
475
489
  /**
476
490
  * Preview checkout
477
491
  */
@@ -480,6 +494,14 @@ declare class CheckoutApi extends runtime.BaseAPI {
480
494
  * Preview checkout
481
495
  */
482
496
  previewCheckout(requestParameters: PreviewCheckoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PreviewCheckoutResponse>;
497
+ /**
498
+ * Update payment method
499
+ */
500
+ updatePaymentMethodRaw(requestParameters: UpdatePaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdatePaymentMethodResponse>>;
501
+ /**
502
+ * Update payment method
503
+ */
504
+ updatePaymentMethod(requestParameters: UpdatePaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdatePaymentMethodResponse>;
483
505
  }
484
506
 
485
507
  declare interface CheckoutRequest {
@@ -531,6 +553,12 @@ declare interface CompanyDetailResponseData {
531
553
  * @memberof CompanyDetailResponseData
532
554
  */
533
555
  addOns: Array<BillingPlan>;
556
+ /**
557
+ *
558
+ * @type {Array<BillingSubscriptionResponseData>}
559
+ * @memberof CompanyDetailResponseData
560
+ */
561
+ billingSubscriptions: Array<BillingSubscriptionResponseData>;
534
562
  /**
535
563
  *
536
564
  * @type {Date}
@@ -727,6 +755,12 @@ declare interface CompanyPlanDetailResponseData {
727
755
  * @interface CompanySubscriptionResponseData
728
756
  */
729
757
  declare interface CompanySubscriptionResponseData {
758
+ /**
759
+ *
760
+ * @type {string}
761
+ * @memberof CompanySubscriptionResponseData
762
+ */
763
+ currency: string;
730
764
  /**
731
765
  *
732
766
  * @type {string}
@@ -1107,11 +1141,6 @@ declare interface DesignProps_3 {
1107
1141
  isVisible: boolean;
1108
1142
  fontStyle: FontStyle;
1109
1143
  };
1110
- callToAction: {
1111
- isVisible: boolean;
1112
- buttonSize: "sm" | "md" | "lg";
1113
- buttonStyle: "primary" | "secondary" | "tertiary";
1114
- };
1115
1144
  }
1116
1145
 
1117
1146
  declare interface DesignProps_4 {
@@ -1138,6 +1167,7 @@ declare interface DesignProps_5 {
1138
1167
  };
1139
1168
  functions: {
1140
1169
  allowEdit: boolean;
1170
+ showExpiration: boolean;
1141
1171
  };
1142
1172
  }
1143
1173
 
@@ -1164,6 +1194,11 @@ declare interface DesignProps_6 {
1164
1194
  };
1165
1195
  }
1166
1196
 
1197
+ declare const Element_2: IStyledComponentBase<"web", FastOmit<Omit<FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof ComponentProps> & ComponentProps, "ref"> & {
1198
+ 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;
1199
+ }, never>> & string;
1200
+ export { Element_2 as Element }
1201
+
1167
1202
  declare interface ElementProps {
1168
1203
  children?: React.ReactNode;
1169
1204
  className?: string;
@@ -2106,9 +2141,13 @@ declare interface InvoiceResponseData {
2106
2141
  updatedAt: Date;
2107
2142
  }
2108
2143
 
2109
- export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2144
+ export declare const Invoices: ForwardRefExoticComponent<ElementProps & DesignProps_6 & {
2145
+ data?: ListInvoicesResponse["data"];
2146
+ } & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
2110
2147
 
2111
- export declare type InvoicesProps = DesignProps_6;
2148
+ export declare type InvoicesProps = DesignProps_6 & {
2149
+ data?: ListInvoicesResponse["data"];
2150
+ };
2112
2151
 
2113
2152
  declare type Json = any;
2114
2153
 
@@ -2119,6 +2158,62 @@ declare class JSONApiResponse<T> {
2119
2158
  value(): Promise<T>;
2120
2159
  }
2121
2160
 
2161
+ /**
2162
+ * Schematic API
2163
+ * Schematic API
2164
+ *
2165
+ * The version of the OpenAPI document: 0.1
2166
+ *
2167
+ *
2168
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2169
+ * https://openapi-generator.tech
2170
+ * Do not edit the class manually.
2171
+ */
2172
+ /**
2173
+ * Input parameters
2174
+ * @export
2175
+ * @interface ListInvoicesParams
2176
+ */
2177
+ declare interface ListInvoicesParams {
2178
+ /**
2179
+ * Page limit (default 100)
2180
+ * @type {number}
2181
+ * @memberof ListInvoicesParams
2182
+ */
2183
+ limit?: number;
2184
+ /**
2185
+ * Page offset (default 0)
2186
+ * @type {number}
2187
+ * @memberof ListInvoicesParams
2188
+ */
2189
+ offset?: number;
2190
+ }
2191
+
2192
+ declare interface ListInvoicesRequest {
2193
+ limit?: number;
2194
+ offset?: number;
2195
+ }
2196
+
2197
+ /**
2198
+ *
2199
+ * @export
2200
+ * @interface ListInvoicesResponse
2201
+ */
2202
+ declare interface ListInvoicesResponse {
2203
+ /**
2204
+ * The returned resources
2205
+ * @type {Array<InvoiceResponseData>}
2206
+ * @memberof ListInvoicesResponse
2207
+ */
2208
+ data: Array<InvoiceResponseData>;
2209
+ /**
2210
+ *
2211
+ * @type {ListInvoicesParams}
2212
+ * @memberof ListInvoicesResponse
2213
+ */
2214
+ params: ListInvoicesParams;
2215
+ }
2216
+
2122
2217
  export declare const Loader: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2123
2218
  $size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
2124
2219
  $color?: string;
@@ -2155,6 +2250,14 @@ declare interface ModalProps {
2155
2250
 
2156
2251
  declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
2157
2252
 
2253
+ export declare const PaymentForm: ({ onConfirm }: PaymentFormProps) => JSX_2.Element;
2254
+
2255
+ declare interface PaymentFormProps {
2256
+ plan?: CompanyPlanDetailResponseData;
2257
+ period?: string;
2258
+ onConfirm?: (paymentMethodId: string) => void;
2259
+ }
2260
+
2158
2261
  export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
2159
2262
  portal?: HTMLElement | null;
2160
2263
  } & RefAttributes<HTMLDivElement | null>>;
@@ -2173,7 +2276,7 @@ export declare type PaymentMethodProps = DesignProps_5;
2173
2276
  * Do not edit the class manually.
2174
2277
  */
2175
2278
  /**
2176
- *
2279
+ * The created resource
2177
2280
  * @export
2178
2281
  * @interface PaymentMethodResponseData
2179
2282
  */
@@ -2545,7 +2648,7 @@ export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef
2545
2648
  progress: number;
2546
2649
  value: number;
2547
2650
  total?: number | string;
2548
- color?: "gray" | "orange" | "blue" | "red";
2651
+ color?: "gray" | "blue" | "yellow" | "orange" | "red";
2549
2652
  barWidth?: string | number;
2550
2653
  }
2551
2654
 
@@ -3012,7 +3115,9 @@ declare interface StripeEmbedInfo {
3012
3115
  setupIntentClientSecret?: string | null;
3013
3116
  }
3014
3117
 
3015
- declare const Text_2: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>> & string;
3118
+ declare const Text_2: IStyledComponentBase<"web", Substitute<FastOmit<Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3119
+ ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
3120
+ }>, never>, TextProps>> & string;
3016
3121
  export { Text_2 as Text }
3017
3122
 
3018
3123
  declare class TextApiResponse {
@@ -3045,6 +3150,55 @@ export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & Recu
3045
3150
 
3046
3151
  export declare type UpcomingBillProps = DesignProps_4;
3047
3152
 
3153
+ declare interface UpdatePaymentMethodRequest {
3154
+ updatePaymentMethodRequestBody: UpdatePaymentMethodRequestBody;
3155
+ }
3156
+
3157
+ /**
3158
+ * Schematic API
3159
+ * Schematic API
3160
+ *
3161
+ * The version of the OpenAPI document: 0.1
3162
+ *
3163
+ *
3164
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3165
+ * https://openapi-generator.tech
3166
+ * Do not edit the class manually.
3167
+ */
3168
+ /**
3169
+ *
3170
+ * @export
3171
+ * @interface UpdatePaymentMethodRequestBody
3172
+ */
3173
+ declare interface UpdatePaymentMethodRequestBody {
3174
+ /**
3175
+ *
3176
+ * @type {string}
3177
+ * @memberof UpdatePaymentMethodRequestBody
3178
+ */
3179
+ paymentMethodId: string;
3180
+ }
3181
+
3182
+ /**
3183
+ *
3184
+ * @export
3185
+ * @interface UpdatePaymentMethodResponse
3186
+ */
3187
+ declare interface UpdatePaymentMethodResponse {
3188
+ /**
3189
+ *
3190
+ * @type {PaymentMethodResponseData}
3191
+ * @memberof UpdatePaymentMethodResponse
3192
+ */
3193
+ data: PaymentMethodResponseData;
3194
+ /**
3195
+ * Input parameters
3196
+ * @type {object}
3197
+ * @memberof UpdatePaymentMethodResponse
3198
+ */
3199
+ params: object;
3200
+ }
3201
+
3048
3202
  export declare const useEmbed: () => EmbedContextProps;
3049
3203
 
3050
3204
  export declare const Viewport: ForwardRefExoticComponent<Omit<ViewportProps, "ref"> & RefAttributes<HTMLDivElement | null>>;