@nomalism-com/types 0.34.13 → 0.34.14

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.
@@ -7,6 +7,7 @@ import type { IScheduleType } from '../modules/supply/schedule/interface';
7
7
  import type { IWarningType } from '../modules/supply/documentHeader/interfaces';
8
8
  import type { IProjectInfoType } from '../modules/integration/projectInfo/interfaces';
9
9
  import type { IChat, IEmail, IEncomenda, IMultimedia, IMultimediaSummary, IPostgresBackup, IPrint, IProjectInfo, IProposta, IServiceLogs, IServiceStatus, IStock, ITask } from '../modules/view/adminPanel/interfaces';
10
+ import type * as ErrorLog from '../modules/view/errorLog/interfaces';
10
11
  export { messages };
11
12
  type CreatedAt = 'created_at';
12
13
  type UpdatedAt = 'updated_at';
@@ -319,20 +320,7 @@ export type IBrokerTopicPayload = {
319
320
  output?: unknown;
320
321
  done: boolean;
321
322
  };
322
- [IBrokerTopic.error_log]: {
323
- service: string;
324
- type: 'prisma' | 'unhandled' | 'axios' | 'webapp' | 'moloni';
325
- error: {
326
- name: string;
327
- message: string;
328
- stack?: string;
329
- };
330
- request?: {
331
- body?: unknown;
332
- query?: unknown;
333
- params?: unknown;
334
- };
335
- };
323
+ [IBrokerTopic.error_log]: ErrorLog.ICreateRequest;
336
324
  [IBrokerTopic.express_log]: {
337
325
  id: string;
338
326
  service: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.34.13",
12
+ "version": "0.34.14",
13
13
  "type": "module",
14
14
  "module": "./dist/index.js",
15
15
  "main": "./dist/index.cjs",
@@ -24,6 +24,7 @@ import type {
24
24
  IStock,
25
25
  ITask,
26
26
  } from '../modules/view/adminPanel/interfaces';
27
+ import type * as ErrorLog from '../modules/view/errorLog/interfaces';
27
28
 
28
29
  export { messages };
29
30
 
@@ -467,12 +468,7 @@ export type IBrokerTopicPayload = {
467
468
  output?: unknown;
468
469
  done: boolean;
469
470
  };
470
- [IBrokerTopic.error_log]: {
471
- service: string;
472
- type: 'prisma' | 'unhandled' | 'axios' | 'webapp' | 'moloni';
473
- error: { name: string; message: string; stack?: string };
474
- request?: { body?: unknown; query?: unknown; params?: unknown };
475
- };
471
+ [IBrokerTopic.error_log]: ErrorLog.ICreateRequest;
476
472
  [IBrokerTopic.express_log]: {
477
473
  id: string;
478
474
  service: string;