base.d.ts 672 B

123456789101112
  1. import { Options } from "got";
  2. import { Keyable } from "../interfaces/keyable";
  3. import { ClientData } from "../interfaces/client_data";
  4. export declare class ApiRequest {
  5. private readonly urlRoot;
  6. promise: Promise<any>;
  7. params: Keyable;
  8. constructor(uri: string, method: Options["method"], body: object | object[] | null, params: Keyable, clientData: ClientData);
  9. createPromise(uri: string, method: Options["method"], body: object | object[] | null, clientData: ClientData): Promise<any>;
  10. protected composeURI(rawUri: string): string;
  11. protected mapUriParams(params: Keyable): (_entity: any, isMandaratory: string, paramName: string) => string;
  12. }