import { FileArray } from "express-fileupload"; import { Readable } from "stream"; export interface TransferPacketVO { data?: T | null; error?: IError | null; responseTime?: number; version?: string; core?: string; endpoint?: string; httpStatus?: number; redirect?: string; rawResponse?: boolean; headers?: { [key: string]: string; }; file?: string; blockResponse?: boolean; project?: string; ignoreHttpLogging?: boolean; } export interface HTTPRequestVO { raw: any; response: any; method: string; data: T; params: { [key: string]: string; }; headers: Record; endpoint: string; interceptorResult?: any; preproducerResult?: any; precheck?: TransferPacketVO | null; files: FileArray | null | undefined; referer?: string; ip?: string; unlocked?: boolean; internalCall?: boolean; stream?: Readable; endStream?: (force?: boolean) => void; internalCallParams?: any; } export interface IError { code: number; message: string; details?: string; httpStatus?: number; stack?: IError[]; }