UNPKG

hat-javascript-sdk

Version:

HAT JavaScript SDK

11 lines (10 loc) 634 B
import { HatHttpParameters, IHttpResponse } from '../services/HttpService'; import { ClientState } from '../index'; import { DataDebit, DataDebitValues } from '../interfaces/data-debit.interface'; export interface DataDebits { getAllDefault: () => Promise<IHttpResponse<DataDebit[]>>; getAll: (options: HatHttpParameters) => Promise<IHttpResponse<DataDebit[]>>; getById: (debitId: string) => Promise<IHttpResponse<DataDebit>>; getDataDebitValues: <T>(debitId: string) => Promise<IHttpResponse<DataDebitValues<T>>>; } export declare const dataDebits: (config: ClientState, headers: string[][]) => DataDebits;