@3kles/3kles-corebe
Version:
3KLES Core BackEnd
14 lines (13 loc) • 577 B
TypeScript
import { IGenericAPI } from './IGenericAPI';
import { IParserResponse } from '../utils/index.utils';
export declare abstract class AbstractGenericAPI implements IGenericAPI {
protected responseParser: IParserResponse;
protected errorParser: IParserResponse;
abstract buildRequest(params: any, dataParams?: any, dataBody?: string): any;
abstract execute(options: any): Promise<any>;
executeRequest(options: any): Promise<any>;
processResponse(response: any): any;
processError(error: any): any;
beforeExecute(): void;
afterExecute(): void;
}