@cargolift-cdi/types 0.1.27 → 0.1.28
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.
- package/dist/db/entities/diagnostic-latency.entity.d.ts +1 -0
- package/dist/db/entities/diagnostic-latency.entity.d.ts.map +1 -1
- package/dist/db/entities/diagnostic-latency.entity.js +4 -0
- package/dist/db/repository/diagnostic-latency-repository.service.d.ts +1 -1
- package/dist/db/repository/diagnostic-latency-repository.service.d.ts.map +1 -1
- package/dist/db/repository/diagnostic-latency-repository.service.js +3 -2
- package/package.json +1 -1
|
@@ -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,MAAM,EAAG,MAAM,CAAC;IAGhB,aAAa,EAAG,MAAM,CAAC;IAGvB,eAAe,EAAG,IAAI,CAAC;IAGvB,aAAa,EAAG,IAAI,CAAC;IAGrB,SAAS,EAAG,MAAM,CAAC;
|
|
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;IAGnB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B"}
|
|
@@ -17,6 +17,7 @@ let DiagnosticLatency = class DiagnosticLatency {
|
|
|
17
17
|
timestamp_start;
|
|
18
18
|
timestamp_end;
|
|
19
19
|
latencyMs;
|
|
20
|
+
data;
|
|
20
21
|
};
|
|
21
22
|
__decorate([
|
|
22
23
|
PrimaryGeneratedColumn({ type: 'int' })
|
|
@@ -36,6 +37,9 @@ __decorate([
|
|
|
36
37
|
__decorate([
|
|
37
38
|
Column({ type: 'int', default: 0 })
|
|
38
39
|
], DiagnosticLatency.prototype, "latencyMs", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column({ type: 'jsonb', nullable: true, default: () => "'{}'::jsonb" })
|
|
42
|
+
], DiagnosticLatency.prototype, "data", void 0);
|
|
39
43
|
DiagnosticLatency = __decorate([
|
|
40
44
|
Entity({ name: 'diagnostic_latency' })
|
|
41
45
|
], DiagnosticLatency);
|
|
@@ -14,6 +14,6 @@ export declare class DiagnosticLatencyRepositoryService {
|
|
|
14
14
|
* @param timestamp_start
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
create(
|
|
17
|
+
create(testId: string, correlation_id: string, timestamp_start: Date, data?: Record<string, any>): Promise<DiagnosticLatency>;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=diagnostic-latency-repository.service.d.ts.map
|
|
@@ -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,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,
|
|
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,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,IAAI,EACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACzB,OAAO,CAAC,iBAAiB,CAAC;CAgB9B"}
|
|
@@ -26,14 +26,15 @@ let DiagnosticLatencyRepositoryService = class DiagnosticLatencyRepositoryServic
|
|
|
26
26
|
* @param timestamp_start
|
|
27
27
|
* @returns
|
|
28
28
|
*/
|
|
29
|
-
async create(
|
|
29
|
+
async create(testId, correlation_id, timestamp_start, data) {
|
|
30
30
|
const now = new Date();
|
|
31
31
|
const entity = this.repo.create({
|
|
32
|
-
testId
|
|
32
|
+
testId,
|
|
33
33
|
correlationId: correlation_id,
|
|
34
34
|
timestamp_start,
|
|
35
35
|
timestamp_end: now,
|
|
36
36
|
latencyMs: now.getTime() - timestamp_start.getTime(),
|
|
37
|
+
data
|
|
37
38
|
});
|
|
38
39
|
return this.repo.save(entity);
|
|
39
40
|
}
|