@forestadmin/forestadmin-client
Version:
This package contains the logic to use the ForestAdmin API inside an agent.
9 lines • 527 B
TypeScript
import { ForestAdminClientOptionsWithDefaults } from '../types';
type HttpOptions = Pick<ForestAdminClientOptionsWithDefaults, 'envSecret' | 'forestServerUrl'>;
export default class ServerUtils {
/** Query Forest-Admin server */
static query<T = unknown>(options: HttpOptions, method: 'get' | 'post' | 'put' | 'delete', path: string, headers?: Record<string, string>, body?: string | object, maxTimeAllowed?: number): Promise<T>;
private static handleResponseError;
}
export {};
//# sourceMappingURL=server.d.ts.map