khatavani-client
Version:
The Backend-Api-Integration package simplifies interaction with the backend API by providing a set of CRUD methods for common endpoints. It abstracts away the complexity of making HTTP requests and handling responses, allowing developers to focus on appli
14 lines (13 loc) • 743 B
TypeScript
import { anyKeyAndValue } from "./CollectionTypes";
/**
* @public
* @return {responseJson} it return promise
* @remark that method is responsible for sending the request to the backend
*/
export declare function fetchHelper(endpoint: string, method: string, accessToken: string | null | undefined, khID: string | null | undefined, body: anyKeyAndValue | null | undefined, options: anyKeyAndValue | null | undefined, SERVER_URL: string | undefined): Promise<any>;
/**
* @public
* @return {responseJson} it return promise
* @remark that method is responsible for sending the request with the file to the backend
*/
export declare function UploadFile(method: string, body: any, headers: anyKeyAndValue, SERVER_URL: string): Promise<any>;