UNPKG

naga-audit-service

Version:

A comprehensive audit service library for NestJS applications with MongoDB support

29 lines 1.04 kB
import { HttpService } from '@nestjs/axios'; import { ConfigService } from '@nestjs/config'; import { Request } from 'express'; export declare class HttpClientService { private readonly httpService; private readonly req; private readonly configService; constructor(httpService: HttpService, req: Request, configService: ConfigService); private getHeaders; private handleError; private resolveUrl; private buildUrl; get<T>(serviceKey: string, endpoint?: string, query?: any, skipError?: boolean): Promise<{ result: T; }>; post<T>(serviceKey: string, endpoint?: string, body?: any, query?: any): Promise<{ result: T; }>; put<T>(serviceKey: string, endpoint?: string, body?: any): Promise<{ result: T; }>; patch<T>(serviceKey: string, endpoint?: string, body?: any): Promise<{ result: T; }>; delete<T>(serviceKey: string, endpoint?: string, query?: any): Promise<{ result: T; }>; } //# sourceMappingURL=http-client.service.d.ts.map