@cargolift-cdi/types 0.1.25 → 0.1.27

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,10 +1,11 @@
1
1
  /**
2
2
  * Entidade de diagnóstico de latência.
3
- * Armazena o número de hits (requisições / eventos), histórico de log em JSON
4
- * e timestamps de início e último registro.
3
+ * Armazena informações sobre a latência de operações, incluindo timestamps de início e fim,
4
+ * além do ID de correlação para rastreamento.
5
5
  */
6
6
  export declare class DiagnosticLatency {
7
- id: string;
7
+ id: number;
8
+ testId: string;
8
9
  correlationId: string;
9
10
  timestamp_start: Date;
10
11
  timestamp_end: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostic-latency.entity.d.ts","sourceRoot":"","sources":["../../../src/db/entities/diagnostic-latency.entity.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBACa,iBAAiB;IAE5B,EAAE,EAAG,MAAM,CAAC;IAGZ,aAAa,EAAG,MAAM,CAAC;IAGvB,eAAe,EAAG,IAAI,CAAC;IAGvB,aAAa,EAAG,IAAI,CAAC;IAGrB,SAAS,EAAG,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"diagnostic-latency.entity.d.ts","sourceRoot":"","sources":["../../../src/db/entities/diagnostic-latency.entity.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBACa,iBAAiB;IAE5B,EAAE,EAAG,MAAM,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,aAAa,EAAG,MAAM,CAAC;IAGvB,eAAe,EAAG,IAAI,CAAC;IAGvB,aAAa,EAAG,IAAI,CAAC;IAGrB,SAAS,EAAG,MAAM,CAAC;CACpB"}
@@ -4,22 +4,26 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { Column, Entity, PrimaryColumn } from 'typeorm';
7
+ import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
8
8
  /**
9
9
  * Entidade de diagnóstico de latência.
10
- * Armazena o número de hits (requisições / eventos), histórico de log em JSON
11
- * e timestamps de início e último registro.
10
+ * Armazena informações sobre a latência de operações, incluindo timestamps de início e fim,
11
+ * além do ID de correlação para rastreamento.
12
12
  */
13
13
  let DiagnosticLatency = class DiagnosticLatency {
14
14
  id;
15
+ testId;
15
16
  correlationId;
16
17
  timestamp_start;
17
18
  timestamp_end;
18
19
  latencyMs;
19
20
  };
20
21
  __decorate([
21
- PrimaryColumn({ type: 'varchar', length: 36 })
22
+ PrimaryGeneratedColumn({ type: 'int' })
22
23
  ], DiagnosticLatency.prototype, "id", void 0);
24
+ __decorate([
25
+ Column({ type: 'varchar', length: 36 })
26
+ ], DiagnosticLatency.prototype, "testId", void 0);
23
27
  __decorate([
24
28
  Column({ type: 'varchar', default: 36 })
25
29
  ], DiagnosticLatency.prototype, "correlationId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostic-latency-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/diagnostic-latency-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E;;;GAGG;AACH,qBACa,kCAAkC;IAG3C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAGtD;;;;;;OAMG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAiBpG"}
1
+ {"version":3,"file":"diagnostic-latency-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/diagnostic-latency-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E;;;GAGG;AACH,qBACa,kCAAkC;IAG3C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAGtD;;;;;;OAMG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,EACV,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,IAAI,GACpB,OAAO,CAAC,iBAAiB,CAAC;CAe9B"}
@@ -29,7 +29,7 @@ let DiagnosticLatencyRepositoryService = class DiagnosticLatencyRepositoryServic
29
29
  async create(id, correlation_id, timestamp_start) {
30
30
  const now = new Date();
31
31
  const entity = this.repo.create({
32
- id,
32
+ testId: id,
33
33
  correlationId: correlation_id,
34
34
  timestamp_start,
35
35
  timestamp_end: now,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cargolift-cdi/types",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "description": "TypeScript types e interfaces comuns para projetos Cargolift CDI",
5
5
  "keywords": [
6
6
  "typescript",