@autofleet/shtinker 3.4.4 → 3.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,10 @@
1
+ import { LoggerInstanceManager } from "@autofleet/logger";
1
2
  import { FastifyInstance } from "fastify";
2
3
  import { Model, ModelStatic } from "sequelize";
3
4
  import { Sequelize } from "sequelize-typescript";
4
5
  import RabbitMq from "@autofleet/rabbit";
5
- import Pino from "pino";
6
6
  import { IRouter } from "express";
7
7
 
8
- //#region ../logger/src/index.d.ts
9
- declare enum LogLevel {
10
- trace = "trace",
11
- debug = "debug",
12
- info = "info",
13
- warn = "warn",
14
- error = "error",
15
- fatal = "fatal",
16
- }
17
- type MiddlewareFunction = () => Record<string, unknown>;
18
- declare class LoggerInstanceManager {
19
- #private;
20
- constructor(logLevel?: LogLevel);
21
- private winstonLikeLoggerCall;
22
- private addMetadata;
23
- addContextMiddleware: (middleware: MiddlewareFunction) => number;
24
- trace: (message: string, meta?: unknown) => void;
25
- debug: (message: string, meta?: unknown) => void;
26
- info: (message: string, meta?: unknown) => void;
27
- warn: (message: string, meta?: unknown) => void;
28
- error: (message: string, meta?: unknown) => void;
29
- fatal: (message: string, meta?: unknown) => void;
30
- child: (metadata: Record<string, unknown>) => Pino.Logger;
31
- get level(): Pino.LevelWithSilentOrString;
32
- }
33
- //#endregion
34
8
  //#region src/types.d.ts
35
9
  interface AuditLoggerOptions {
36
10
  rabbit: RabbitMq;
@@ -125,4 +99,4 @@ declare const AUDIT_LOG_CONTEXT_KEY = "auditLogContext";
125
99
  declare const AUTOMATION_ID_HEADER = "x-af-automation-id";
126
100
  //#endregion
127
101
  export { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext };
128
- //# sourceMappingURL=const-7JnGX8PR.d.ts.map
102
+ //# sourceMappingURL=const-Cu9hC4zo.d.ts.map
@@ -2,35 +2,9 @@ import { FastifyInstance } from "fastify";
2
2
  import { Model, ModelStatic } from "sequelize";
3
3
  import { Sequelize } from "sequelize-typescript";
4
4
  import RabbitMq from "@autofleet/rabbit";
5
- import Pino from "pino";
5
+ import { LoggerInstanceManager } from "@autofleet/logger";
6
6
  import { IRouter } from "express";
7
7
 
8
- //#region ../logger/src/index.d.ts
9
- declare enum LogLevel {
10
- trace = "trace",
11
- debug = "debug",
12
- info = "info",
13
- warn = "warn",
14
- error = "error",
15
- fatal = "fatal",
16
- }
17
- type MiddlewareFunction = () => Record<string, unknown>;
18
- declare class LoggerInstanceManager {
19
- #private;
20
- constructor(logLevel?: LogLevel);
21
- private winstonLikeLoggerCall;
22
- private addMetadata;
23
- addContextMiddleware: (middleware: MiddlewareFunction) => number;
24
- trace: (message: string, meta?: unknown) => void;
25
- debug: (message: string, meta?: unknown) => void;
26
- info: (message: string, meta?: unknown) => void;
27
- warn: (message: string, meta?: unknown) => void;
28
- error: (message: string, meta?: unknown) => void;
29
- fatal: (message: string, meta?: unknown) => void;
30
- child: (metadata: Record<string, unknown>) => Pino.Logger;
31
- get level(): Pino.LevelWithSilentOrString;
32
- }
33
- //#endregion
34
8
  //#region src/types.d.ts
35
9
  interface AuditLoggerOptions {
36
10
  rabbit: RabbitMq;
@@ -125,4 +99,4 @@ declare const AUDIT_LOG_CONTEXT_KEY = "auditLogContext";
125
99
  declare const AUTOMATION_ID_HEADER = "x-af-automation-id";
126
100
  //#endregion
127
101
  export { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext };
128
- //# sourceMappingURL=const-CV9ZZyuX.d.cts.map
102
+ //# sourceMappingURL=const-UuDReAlY.d.cts.map
@@ -1,4 +1,4 @@
1
- import { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext } from "./const-CV9ZZyuX.cjs";
1
+ import { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext } from "./const-UuDReAlY.cjs";
2
2
  import { onRequestAsyncHookHandler } from "fastify";
3
3
 
4
4
  //#region src/audit-api/fastify.d.ts
package/dist/fastify.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext } from "./const-7JnGX8PR.js";
1
+ import { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext } from "./const-Cu9hC4zo.js";
2
2
  import { onRequestAsyncHookHandler } from "fastify";
3
3
 
4
4
  //#region src/audit-api/fastify.d.ts
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext } from "./const-CV9ZZyuX.cjs";
1
+ import { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext } from "./const-UuDReAlY.cjs";
2
2
  import { NextFunction, Request, Response } from "express";
3
3
 
4
4
  //#region src/index.d.ts
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext } from "./const-7JnGX8PR.js";
1
+ import { AUDIT_LOG_CONTEXT_KEY, AUDIT_LOG_CONTEXT_QUEUE, AUDIT_LOG_ROWS_QUEUE, AUTOMATION_ID_HEADER, Action, ActionOrigin, AuditLogContext, AuditLogPayload, AuditLogRow, AuditLogger, AuditLoggerOptions, EntityType, setRabbitAuditContext } from "./const-Cu9hC4zo.js";
2
2
  import { NextFunction, Request, Response } from "express";
3
3
 
4
4
  //#region src/index.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/shtinker",
3
- "version": "3.4.4",
3
+ "version": "3.4.6",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",