@schematichq/schematic-components 1.4.2 → 1.4.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.
@@ -1966,6 +1966,20 @@ export declare interface ColumnProps extends React.HTMLProps<HTMLDivElement> {
1966
1966
  basis?: string;
1967
1967
  }
1968
1968
 
1969
+ /**
1970
+ * The returned resource
1971
+ * @export
1972
+ * @interface CompanyCustomerBalance
1973
+ */
1974
+ declare interface CompanyCustomerBalance {
1975
+ /**
1976
+ *
1977
+ * @type {Array<CurrencyBalance>}
1978
+ * @memberof CompanyCustomerBalance
1979
+ */
1980
+ balances: Array<CurrencyBalance>;
1981
+ }
1982
+
1969
1983
  /**
1970
1984
  *
1971
1985
  * @export
@@ -3177,6 +3191,37 @@ declare interface CreditCompanyGrantView {
3177
3191
  zeroedOutReason?: string | null;
3178
3192
  }
3179
3193
 
3194
+ /**
3195
+ * Schematic API
3196
+ * Schematic API
3197
+ *
3198
+ * The version of the OpenAPI document: 0.1
3199
+ *
3200
+ *
3201
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3202
+ * https://openapi-generator.tech
3203
+ * Do not edit the class manually.
3204
+ */
3205
+ /**
3206
+ *
3207
+ * @export
3208
+ * @interface CurrencyBalance
3209
+ */
3210
+ declare interface CurrencyBalance {
3211
+ /**
3212
+ *
3213
+ * @type {number}
3214
+ * @memberof CurrencyBalance
3215
+ */
3216
+ balance: number;
3217
+ /**
3218
+ *
3219
+ * @type {string}
3220
+ * @memberof CurrencyBalance
3221
+ */
3222
+ currency: string;
3223
+ }
3224
+
3180
3225
  /**
3181
3226
  * Schematic API
3182
3227
  * Schematic API
@@ -3530,6 +3575,7 @@ export declare interface EmbedContextProps extends EmbedState {
3530
3575
  hydrateComponent: (id: string) => DebouncedApiPromise<ComponentHydrateResponseData>;
3531
3576
  hydrateExternal: (fn: () => Promise<ComponentHydrateResponseData>) => DebouncedApiPromise<ComponentHydrateResponseData>;
3532
3577
  getUpcomingInvoice: (id: string) => DebouncedApiPromise<HydrateUpcomingInvoiceResponse>;
3578
+ getCustomerBalance: () => DebouncedApiPromise<FetchCustomerBalanceResponse>;
3533
3579
  listInvoices: () => DebouncedApiPromise<ListInvoicesResponse>;
3534
3580
  createSetupIntent: () => DebouncedApiPromise<GetSetupIntentResponse>;
3535
3581
  updatePaymentMethod: (paymentMethodId: string) => DebouncedApiPromise<UpdatePaymentMethodResponse>;
@@ -3545,6 +3591,7 @@ export declare interface EmbedContextProps extends EmbedState {
3545
3591
  updateSettings: (settings: DeepPartial<EmbedSettings>, options?: {
3546
3592
  update?: boolean;
3547
3593
  }) => void;
3594
+ debug: (message: string, ...args: unknown[]) => void;
3548
3595
  }
3549
3596
 
3550
3597
  export declare type EmbedLayout = "portal" | "checkout" | "payment" | "unsubscribe" | "disabled";
@@ -4551,6 +4598,26 @@ declare type FeatureUsageResponseDataAllocationTypeEnum = (typeof FeatureUsageRe
4551
4598
 
4552
4599
  declare type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
4553
4600
 
4601
+ /**
4602
+ *
4603
+ * @export
4604
+ * @interface FetchCustomerBalanceResponse
4605
+ */
4606
+ declare interface FetchCustomerBalanceResponse {
4607
+ /**
4608
+ *
4609
+ * @type {CompanyCustomerBalance}
4610
+ * @memberof FetchCustomerBalanceResponse
4611
+ */
4612
+ data: CompanyCustomerBalance;
4613
+ /**
4614
+ * Input parameters
4615
+ * @type {object}
4616
+ * @memberof FetchCustomerBalanceResponse
4617
+ */
4618
+ params: object;
4619
+ }
4620
+
4554
4621
  declare interface FetchParams {
4555
4622
  url: string;
4556
4623
  init: RequestInit;
@@ -4870,6 +4937,7 @@ export declare const initialContext: {
4870
4937
  hydrateComponent: () => never;
4871
4938
  hydrateExternal: () => never;
4872
4939
  getUpcomingInvoice: () => never;
4940
+ getCustomerBalance: () => never;
4873
4941
  listInvoices: () => never;
4874
4942
  createSetupIntent: () => never;
4875
4943
  updatePaymentMethod: () => never;
@@ -4883,6 +4951,7 @@ export declare const initialContext: {
4883
4951
  setCheckoutState: () => never;
4884
4952
  setData: () => never;
4885
4953
  updateSettings: () => never;
4954
+ debug: () => never;
4886
4955
  isPending: boolean;
4887
4956
  stale: boolean;
4888
4957
  accessToken?: string;