UNPKG

@seven.io/client

Version:
16 lines (15 loc) 573 B
export type ClientOptions = { apiKey: string; debug?: boolean; sentWith?: string; signingSecret?: string; }; export declare class Client { protected options: ClientOptions; static readonly BASE_URL = "https://gateway.seven.io/api"; static readonly CONTENT_TYPE_URLENCODED = "application/x-www-form-urlencoded"; constructor(options: ClientOptions); request: <R extends any, P extends { [p: string]: any; } = {}>(method: "delete" | "get" | "post" | "patch", endpoint: string, payload: P, contentType?: string) => Promise<R>; }