UNPKG

@infosel-sdk/core

Version:

Core SDK for Infosel financial services platform. Provides essential infrastructure for authentication, HTTP/GraphQL communication, storage management, and error handling.

15 lines (14 loc) 948 B
import { AxiosRequestConfig } from 'axios'; import HttpClient from '../../domain/data_access/http_client'; import InfoselSdkManager from '../../sdk_manager'; export default class InfoselHttpClient implements HttpClient<AxiosRequestConfig> { private readonly axiosInstance; private constructor(); static newInstance(baseURL: string, sdkManager: InfoselSdkManager): InfoselHttpClient; request<Response>(config: AxiosRequestConfig): Promise<Response>; get<Response>(url: string, config?: AxiosRequestConfig): Promise<Response>; post<Request, Response>(url: string, data?: Request, config?: AxiosRequestConfig): Promise<Response>; put<Request, Response>(url: string, data?: Request, config?: AxiosRequestConfig): Promise<Response>; patch<Request, Response>(url: string, data?: Request, config?: AxiosRequestConfig): Promise<Response>; delete<Response>(url: string, config?: AxiosRequestConfig): Promise<Response>; }