@indicafix/types
Version:
useful package for type sharing in different services.
27 lines (26 loc) • 525 B
TypeScript
export declare type MessageLog = {
id: string;
userAgent: string;
method: string;
path: string;
userId: string;
request: string;
host: string;
statusCode: HttpStatusCode;
response: string;
queryParams: string;
pathParams: string;
createdAt: Date;
updatedAt: Date;
};
declare enum HttpStatusCode {
ok = 200,
created = 201,
noContent = 204,
badRequest = 400,
unauthorized = 401,
forbidden = 403,
notFound = 404,
serverError = 500
}
export {};