UNPKG

@dataswift/hat-js

Version:

HAT JavaScript SDK for web and Node.js

12 lines (11 loc) 718 B
import { HttpService } from '../services/HttpService'; import { ClientState } from '../index'; import { DataDebit, DataDebitValues } from '../interfaces/data-debit.interface'; import { HatHttpParameters, IHttpResponse } from '../interfaces/http.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: Record<string, string>, httpSvc: HttpService) => DataDebits;