| 1234567891011121314 |
- import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
- import { Reflector } from '@nestjs/core';
- import { Observable } from 'rxjs';
- import { ApiResponse } from '../interfaces/api-response.interface';
- import { IOperationLogger } from '../interfaces/operation-logger.interface';
- import { ExceptionService } from '../services/exception.service';
- export declare class OperationLogInterceptor implements NestInterceptor {
- private readonly reflector;
- private readonly operationLogger;
- private readonly exceptionService;
- constructor(reflector: Reflector, operationLogger: IOperationLogger | null, exceptionService: ExceptionService);
- intercept(context: ExecutionContext, next: CallHandler): Observable<any>;
- log(context: ExecutionContext, data: ApiResponse<unknown>, status: boolean): Promise<void>;
- }
|