@schematichq/schematic-components 2.37.0 → 2.38.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.
@@ -8001,6 +8001,7 @@ export declare interface EmbedContextProps extends Omit<EmbedState, SettingsLaye
8001
8001
  getUpcomingInvoice: (id: string) => DebouncedApiPromise<HydrateUpcomingInvoiceResponse>;
8002
8002
  getCustomerBalance: () => DebouncedApiPromise<FetchCustomerBalanceResponse>;
8003
8003
  listInvoices: () => DebouncedApiPromise<ListInvoicesResponse>;
8004
+ getInvoiceLink: (billingInvoiceId: string) => Promise<GetInvoiceLinkResponse | undefined>;
8004
8005
  getCreditUsageByUser: (billingCreditId: string, limit?: number) => DebouncedApiPromise<GetCreditUsageByUserResponse>;
8005
8006
  getFeatureUsageByUser: (featureId: string, limit?: number) => DebouncedApiPromise<GetFeatureUsageByUserResponse>;
8006
8007
  createSetupIntent: () => DebouncedApiPromise<GetSetupIntentResponse>;
@@ -10226,6 +10227,7 @@ declare interface FormatInvoiceOptions {
10226
10227
  }
10227
10228
 
10228
10229
  export declare function formatInvoices(invoices: InvoiceResponseData[] | undefined, locale: string, options?: FormatInvoiceOptions): {
10230
+ id: string;
10229
10231
  amount: string;
10230
10232
  amountDue: number;
10231
10233
  date: string;
@@ -10458,6 +10460,26 @@ declare interface GetFeatureUsageByUserResponse {
10458
10460
  params: GetFeatureUsageByUserParams;
10459
10461
  }
10460
10462
 
10463
+ /**
10464
+ *
10465
+ * @export
10466
+ * @interface GetInvoiceLinkResponse
10467
+ */
10468
+ declare interface GetInvoiceLinkResponse {
10469
+ /**
10470
+ *
10471
+ * @type {InvoiceLink}
10472
+ * @memberof GetInvoiceLinkResponse
10473
+ */
10474
+ data: InvoiceLink;
10475
+ /**
10476
+ * Input parameters
10477
+ * @type {object}
10478
+ * @memberof GetInvoiceLinkResponse
10479
+ */
10480
+ params: object;
10481
+ }
10482
+
10461
10483
  /**
10462
10484
  *
10463
10485
  * @export
@@ -10536,6 +10558,7 @@ export declare const initialContext: {
10536
10558
  getUpcomingInvoice: () => never;
10537
10559
  getCustomerBalance: () => never;
10538
10560
  listInvoices: () => never;
10561
+ getInvoiceLink: () => never;
10539
10562
  getCreditUsageByUser: () => never;
10540
10563
  getFeatureUsageByUser: () => never;
10541
10564
  createSetupIntent: () => never;
@@ -10585,6 +10608,37 @@ $color?: "primary" | "secondary" | "danger";
10585
10608
  $variant?: "filled" | "outline" | "ghost" | "text";
10586
10609
  }>> & string;
10587
10610
 
10611
+ /**
10612
+ * Components API
10613
+ * The browser-facing billing API behind the drop-in components and the schematic-react hooks. A temporary access token scopes every call to one company.
10614
+ *
10615
+ * The version of the OpenAPI document: 0.1
10616
+ *
10617
+ *
10618
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10619
+ * https://openapi-generator.tech
10620
+ * Do not edit the class manually.
10621
+ */
10622
+ /**
10623
+ *
10624
+ * @export
10625
+ * @interface InvoiceLink
10626
+ */
10627
+ declare interface InvoiceLink {
10628
+ /**
10629
+ *
10630
+ * @type {string}
10631
+ * @memberof InvoiceLink
10632
+ */
10633
+ id: string;
10634
+ /**
10635
+ *
10636
+ * @type {string}
10637
+ * @memberof InvoiceLink
10638
+ */
10639
+ url: string;
10640
+ }
10641
+
10588
10642
  /**
10589
10643
  *
10590
10644
  * @export
@@ -14978,7 +15032,7 @@ export declare const SchematicEmbed: ({ id, accessToken }: EmbedProps) => JSX.El
14978
15032
  export declare interface SchematicI18nInstance {
14979
15033
  language: string;
14980
15034
  resolvedLanguage?: string;
14981
- t(key: string, options?: Record<string, unknown>): string;
15035
+ t(key: string, options: Record<string, unknown>): string;
14982
15036
  exists(key: string, options?: Record<string, unknown>): boolean;
14983
15037
  on(event: string, listener: Listener): void;
14984
15038
  off(event: string, listener: Listener): void;