@sigmatech/pergamo 0.1.87 → 0.1.88
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/entities/cases/case-asset.entity.d.ts +24 -0
- package/dist/entities/cases/case-asset.entity.d.ts.map +1 -0
- package/dist/entities/cases/case-asset.entity.js +109 -0
- package/dist/entities/cases/case-asset.entity.js.map +1 -0
- package/dist/entities/cases/case-event.entity.d.ts +13 -0
- package/dist/entities/cases/case-event.entity.d.ts.map +1 -0
- package/dist/entities/cases/case-event.entity.js +53 -0
- package/dist/entities/cases/case-event.entity.js.map +1 -0
- package/dist/entities/cases/case-note.entity.d.ts +13 -0
- package/dist/entities/cases/case-note.entity.d.ts.map +1 -0
- package/dist/entities/cases/case-note.entity.js +58 -0
- package/dist/entities/cases/case-note.entity.js.map +1 -0
- package/dist/entities/cases/case-role.entity.d.ts +21 -0
- package/dist/entities/cases/case-role.entity.d.ts.map +1 -0
- package/dist/entities/cases/case-role.entity.js +120 -0
- package/dist/entities/cases/case-role.entity.js.map +1 -0
- package/dist/entities/cases/case-search.entity.d.ts +21 -0
- package/dist/entities/cases/case-search.entity.d.ts.map +1 -0
- package/dist/entities/cases/case-search.entity.js +96 -0
- package/dist/entities/cases/case-search.entity.js.map +1 -0
- package/dist/entities/cases/enums.d.ts +136 -0
- package/dist/entities/cases/enums.d.ts.map +1 -0
- package/dist/entities/cases/enums.js +154 -0
- package/dist/entities/cases/enums.js.map +1 -0
- package/dist/entities/cases/index.d.ts +8 -0
- package/dist/entities/cases/index.d.ts.map +1 -0
- package/dist/entities/cases/index.js +24 -0
- package/dist/entities/cases/index.js.map +1 -0
- package/dist/entities/cases/intel-case.entity.d.ts +34 -0
- package/dist/entities/cases/intel-case.entity.d.ts.map +1 -0
- package/dist/entities/cases/intel-case.entity.js +162 -0
- package/dist/entities/cases/intel-case.entity.js.map +1 -0
- package/dist/entities/index.d.ts +1 -4
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +7 -5
- package/dist/entities/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { IntelCase } from './intel-case.entity';
|
|
3
|
+
import { AssetType, AssetRole, AssetStatus } from './enums';
|
|
4
|
+
export declare class CaseAsset extends EntityBase {
|
|
5
|
+
case: IntelCase;
|
|
6
|
+
assetType: AssetType;
|
|
7
|
+
assetReference: string;
|
|
8
|
+
assetRole: AssetRole;
|
|
9
|
+
status: AssetStatus;
|
|
10
|
+
displayName?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
notes?: string;
|
|
13
|
+
personId?: string;
|
|
14
|
+
personPioId?: string;
|
|
15
|
+
snapshot?: Record<string, any>;
|
|
16
|
+
linkedDate?: Date;
|
|
17
|
+
linkedBy?: string;
|
|
18
|
+
sourceSearchId?: string;
|
|
19
|
+
isPrimary: boolean;
|
|
20
|
+
relevanceScore: number;
|
|
21
|
+
metadata?: Record<string, any>;
|
|
22
|
+
setDefaults(): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=case-asset.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-asset.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/cases/case-asset.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5D,qBAKa,SAAU,SAAQ,UAAU;IAGvC,IAAI,EAAG,SAAS,CAAC;IAGjB,SAAS,EAAG,SAAS,CAAC;IAGtB,cAAc,EAAG,MAAM,CAAC;IAGxB,SAAS,EAAG,SAAS,CAAC;IAGtB,MAAM,EAAG,WAAW,CAAC;IAGrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG/B,UAAU,CAAC,EAAE,IAAI,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,SAAS,EAAG,OAAO,CAAC;IAGpB,cAAc,EAAG,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAI/B,WAAW;CAIZ"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CaseAsset = void 0;
|
|
13
|
+
const _base_1 = require("../base/_base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const intel_case_entity_1 = require("./intel-case.entity");
|
|
16
|
+
const enums_1 = require("./enums");
|
|
17
|
+
let CaseAsset = class CaseAsset extends _base_1.EntityBase {
|
|
18
|
+
setDefaults() {
|
|
19
|
+
if (!this.linkedDate)
|
|
20
|
+
this.linkedDate = new Date();
|
|
21
|
+
if (!this.displayName)
|
|
22
|
+
this.displayName = `${this.assetType}: ${this.assetReference}`;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.CaseAsset = CaseAsset;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => intel_case_entity_1.IntelCase, (c) => c.assets, { onDelete: 'CASCADE' }),
|
|
28
|
+
(0, typeorm_1.JoinColumn)({ name: 'case_id' }),
|
|
29
|
+
__metadata("design:type", intel_case_entity_1.IntelCase)
|
|
30
|
+
], CaseAsset.prototype, "case", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.AssetType, name: 'asset_type' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CaseAsset.prototype, "assetType", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, name: 'asset_reference' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CaseAsset.prototype, "assetReference", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.AssetRole, name: 'asset_role' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CaseAsset.prototype, "assetRole", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.AssetStatus, default: enums_1.AssetStatus.ACTIVE }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CaseAsset.prototype, "status", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true, name: 'display_name' }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], CaseAsset.prototype, "displayName", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], CaseAsset.prototype, "description", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CaseAsset.prototype, "notes", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true, name: 'person_id' }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CaseAsset.prototype, "personId", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true, name: 'person_pio_id' }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], CaseAsset.prototype, "personPioId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], CaseAsset.prototype, "snapshot", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, name: 'linked_date' }),
|
|
73
|
+
__metadata("design:type", Date)
|
|
74
|
+
], CaseAsset.prototype, "linkedDate", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true, name: 'linked_by' }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], CaseAsset.prototype, "linkedBy", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true, name: 'source_search_id' }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], CaseAsset.prototype, "sourceSearchId", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, name: 'is_primary' }),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], CaseAsset.prototype, "isPrimary", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'relevance_score' }),
|
|
89
|
+
__metadata("design:type", Number)
|
|
90
|
+
], CaseAsset.prototype, "relevanceScore", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], CaseAsset.prototype, "metadata", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
97
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
98
|
+
__metadata("design:type", Function),
|
|
99
|
+
__metadata("design:paramtypes", []),
|
|
100
|
+
__metadata("design:returntype", void 0)
|
|
101
|
+
], CaseAsset.prototype, "setDefaults", null);
|
|
102
|
+
exports.CaseAsset = CaseAsset = __decorate([
|
|
103
|
+
(0, typeorm_1.Entity)({ name: 'case_asset', schema: 'cases' }),
|
|
104
|
+
(0, typeorm_1.Index)('case_asset_case_idx', ['case']),
|
|
105
|
+
(0, typeorm_1.Index)('case_asset_type_idx', ['assetType']),
|
|
106
|
+
(0, typeorm_1.Index)('case_asset_reference_idx', ['assetType', 'assetReference']),
|
|
107
|
+
(0, typeorm_1.Index)('case_asset_tenant_idx', ['tenantId'])
|
|
108
|
+
], CaseAsset);
|
|
109
|
+
//# sourceMappingURL=case-asset.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-asset.entity.js","sourceRoot":"","sources":["../../../src/entities/cases/case-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qCAAmG;AACnG,2DAAgD;AAChD,mCAA4D;AAOrD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,kBAAU;IAuDvC,WAAW;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,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACX;AAI/B;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;4CAId;oBA1DU,SAAS;IALrB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAC/C,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC,CAAC;IACtC,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,WAAW,CAAC,CAAC;IAC3C,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;IAClE,IAAA,eAAK,EAAC,uBAAuB,EAAE,CAAC,UAAU,CAAC,CAAC;GAChC,SAAS,CA2DrB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { IntelCase } from './intel-case.entity';
|
|
3
|
+
import { User } from '../user.entity';
|
|
4
|
+
import { CaseEventType } from './enums';
|
|
5
|
+
export declare class CaseEvent extends EntityBase {
|
|
6
|
+
case: IntelCase;
|
|
7
|
+
eventType: CaseEventType;
|
|
8
|
+
description: string;
|
|
9
|
+
metadata?: Record<string, any>;
|
|
10
|
+
occurredAt: Date;
|
|
11
|
+
performedBy?: User;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=case-event.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-event.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/cases/case-event.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,qBAIa,SAAU,SAAQ,UAAU;IAGvC,IAAI,EAAG,SAAS,CAAC;IAGjB,SAAS,EAAG,aAAa,CAAC;IAG1B,WAAW,EAAG,MAAM,CAAC;IAGrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG/B,UAAU,EAAG,IAAI,CAAC;IAIlB,WAAW,CAAC,EAAE,IAAI,CAAC;CACpB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CaseEvent = void 0;
|
|
13
|
+
const _base_1 = require("../base/_base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const intel_case_entity_1 = require("./intel-case.entity");
|
|
16
|
+
const user_entity_1 = require("../user.entity");
|
|
17
|
+
const enums_1 = require("./enums");
|
|
18
|
+
let CaseEvent = class CaseEvent extends _base_1.EntityBase {
|
|
19
|
+
};
|
|
20
|
+
exports.CaseEvent = CaseEvent;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ManyToOne)(() => intel_case_entity_1.IntelCase, (c) => c.events, { onDelete: 'CASCADE' }),
|
|
23
|
+
(0, typeorm_1.JoinColumn)({ name: 'case_id' }),
|
|
24
|
+
__metadata("design:type", intel_case_entity_1.IntelCase)
|
|
25
|
+
], CaseEvent.prototype, "case", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.CaseEventType, name: 'event_type' }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CaseEvent.prototype, "eventType", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CaseEvent.prototype, "description", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], CaseEvent.prototype, "metadata", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP', name: 'occurred_at' }),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], CaseEvent.prototype, "occurredAt", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, eager: false }),
|
|
44
|
+
(0, typeorm_1.JoinColumn)({ name: 'performed_by_id' }),
|
|
45
|
+
__metadata("design:type", user_entity_1.User)
|
|
46
|
+
], CaseEvent.prototype, "performedBy", void 0);
|
|
47
|
+
exports.CaseEvent = CaseEvent = __decorate([
|
|
48
|
+
(0, typeorm_1.Entity)({ name: 'case_event', schema: 'cases' }),
|
|
49
|
+
(0, typeorm_1.Index)('case_event_case_idx', ['case']),
|
|
50
|
+
(0, typeorm_1.Index)('case_event_type_idx', ['eventType']),
|
|
51
|
+
(0, typeorm_1.Index)('case_event_occurred_idx', ['occurredAt'])
|
|
52
|
+
], CaseEvent);
|
|
53
|
+
//# sourceMappingURL=case-event.entity.js.map
|
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,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAC/C,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC,CAAC;IACtC,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,WAAW,CAAC,CAAC;IAC3C,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,YAAY,CAAC,CAAC;GACpC,SAAS,CAoBrB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { IntelCase } from './intel-case.entity';
|
|
3
|
+
import { NoteType, ClassificationLevel } from './enums';
|
|
4
|
+
export declare class CaseNote extends EntityBase {
|
|
5
|
+
case: IntelCase;
|
|
6
|
+
content: string;
|
|
7
|
+
noteType: NoteType;
|
|
8
|
+
classificationLevel: ClassificationLevel;
|
|
9
|
+
attachments?: Record<string, any>[];
|
|
10
|
+
isRedacted: boolean;
|
|
11
|
+
metadata?: Record<string, any>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=case-note.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-note.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/cases/case-note.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAExD,qBAIa,QAAS,SAAQ,UAAU;IAGtC,IAAI,EAAG,SAAS,CAAC;IAGjB,OAAO,EAAG,MAAM,CAAC;IAGjB,QAAQ,EAAG,QAAQ,CAAC;IAMpB,mBAAmB,EAAG,mBAAmB,CAAC;IAG1C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAGpC,UAAU,EAAG,OAAO,CAAC;IAGrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CaseNote = void 0;
|
|
13
|
+
const _base_1 = require("../base/_base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const intel_case_entity_1 = require("./intel-case.entity");
|
|
16
|
+
const enums_1 = require("./enums");
|
|
17
|
+
let CaseNote = class CaseNote extends _base_1.EntityBase {
|
|
18
|
+
};
|
|
19
|
+
exports.CaseNote = CaseNote;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.ManyToOne)(() => intel_case_entity_1.IntelCase, (c) => c.notes, { onDelete: 'CASCADE' }),
|
|
22
|
+
(0, typeorm_1.JoinColumn)({ name: 'case_id' }),
|
|
23
|
+
__metadata("design:type", intel_case_entity_1.IntelCase)
|
|
24
|
+
], CaseNote.prototype, "case", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CaseNote.prototype, "content", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.NoteType, name: 'note_type', default: enums_1.NoteType.OPERACIONAL }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CaseNote.prototype, "noteType", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({
|
|
35
|
+
type: 'enum', enum: enums_1.ClassificationLevel,
|
|
36
|
+
name: 'classification_level', default: enums_1.ClassificationLevel.CONFIDENCIAL,
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CaseNote.prototype, "classificationLevel", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], CaseNote.prototype, "attachments", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, name: 'is_redacted' }),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], CaseNote.prototype, "isRedacted", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], CaseNote.prototype, "metadata", void 0);
|
|
52
|
+
exports.CaseNote = CaseNote = __decorate([
|
|
53
|
+
(0, typeorm_1.Entity)({ name: 'case_note', schema: 'cases' }),
|
|
54
|
+
(0, typeorm_1.Index)('case_note_case_idx', ['case']),
|
|
55
|
+
(0, typeorm_1.Index)('case_note_type_idx', ['noteType']),
|
|
56
|
+
(0, typeorm_1.Index)('case_note_tenant_idx', ['tenantId'])
|
|
57
|
+
], CaseNote);
|
|
58
|
+
//# sourceMappingURL=case-note.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-note.entity.js","sourceRoot":"","sources":["../../../src/entities/cases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EAAE,OAAO,EAAE,CAAC;IAC9C,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,MAAM,CAAC,CAAC;IACrC,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,UAAU,CAAC,CAAC;IACzC,IAAA,eAAK,EAAC,sBAAsB,EAAE,CAAC,UAAU,CAAC,CAAC;GAC/B,QAAQ,CAyBpB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { IntelCase } from './intel-case.entity';
|
|
3
|
+
import { User } from '../user.entity';
|
|
4
|
+
import { CaseUserRole, CasePermission } from './enums';
|
|
5
|
+
export declare class CaseRole extends EntityBase {
|
|
6
|
+
case: IntelCase;
|
|
7
|
+
user: User;
|
|
8
|
+
role: CaseUserRole;
|
|
9
|
+
permissions: CasePermission[];
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
assignedDate?: Date;
|
|
12
|
+
expiresDate?: Date;
|
|
13
|
+
assignedBy?: string;
|
|
14
|
+
notes?: string;
|
|
15
|
+
receiveNotifications: boolean;
|
|
16
|
+
metadata?: Record<string, any>;
|
|
17
|
+
setDefaults(): void;
|
|
18
|
+
private getDefaultPermissions;
|
|
19
|
+
hasPermission(permission: CasePermission): boolean;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=case-role.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-role.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/cases/case-role.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEvD,qBAIa,QAAS,SAAQ,UAAU;IAGtC,IAAI,EAAG,SAAS,CAAC;IAIjB,IAAI,EAAG,IAAI,CAAC;IAGZ,IAAI,EAAG,YAAY,CAAC;IAGpB,WAAW,EAAG,cAAc,EAAE,CAAC;IAG/B,QAAQ,EAAG,OAAO,CAAC;IAGnB,YAAY,CAAC,EAAE,IAAI,CAAC;IAGpB,WAAW,CAAC,EAAE,IAAI,CAAC;IAGnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,oBAAoB,EAAG,OAAO,CAAC;IAG/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAI/B,WAAW;IAMX,OAAO,CAAC,qBAAqB;IA2B7B,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,OAAO;CAKnD"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CaseRole = void 0;
|
|
13
|
+
const _base_1 = require("../base/_base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const intel_case_entity_1 = require("./intel-case.entity");
|
|
16
|
+
const user_entity_1 = require("../user.entity");
|
|
17
|
+
const enums_1 = require("./enums");
|
|
18
|
+
let CaseRole = class CaseRole extends _base_1.EntityBase {
|
|
19
|
+
setDefaults() {
|
|
20
|
+
if (!this.assignedDate)
|
|
21
|
+
this.assignedDate = new Date();
|
|
22
|
+
this.permissions = this.getDefaultPermissions();
|
|
23
|
+
if (this.expiresDate && new Date() > this.expiresDate)
|
|
24
|
+
this.isActive = false;
|
|
25
|
+
}
|
|
26
|
+
getDefaultPermissions() {
|
|
27
|
+
const map = {
|
|
28
|
+
[enums_1.CaseUserRole.DIRECTOR]: [
|
|
29
|
+
enums_1.CasePermission.VIEW, enums_1.CasePermission.EDIT, enums_1.CasePermission.DELETE,
|
|
30
|
+
enums_1.CasePermission.MANAGE_ASSETS, enums_1.CasePermission.MANAGE_SEARCHES,
|
|
31
|
+
enums_1.CasePermission.MANAGE_ROLES, enums_1.CasePermission.MANAGE_NOTES,
|
|
32
|
+
enums_1.CasePermission.EXPORT, enums_1.CasePermission.ADMIN,
|
|
33
|
+
],
|
|
34
|
+
[enums_1.CaseUserRole.OPERADOR]: [
|
|
35
|
+
enums_1.CasePermission.VIEW, enums_1.CasePermission.EDIT,
|
|
36
|
+
enums_1.CasePermission.MANAGE_ASSETS, enums_1.CasePermission.MANAGE_SEARCHES,
|
|
37
|
+
enums_1.CasePermission.MANAGE_NOTES, enums_1.CasePermission.EXPORT,
|
|
38
|
+
],
|
|
39
|
+
[enums_1.CaseUserRole.ANALISTA]: [
|
|
40
|
+
enums_1.CasePermission.VIEW, enums_1.CasePermission.MANAGE_SEARCHES,
|
|
41
|
+
enums_1.CasePermission.MANAGE_NOTES, enums_1.CasePermission.EXPORT,
|
|
42
|
+
],
|
|
43
|
+
[enums_1.CaseUserRole.ENLACE]: [
|
|
44
|
+
enums_1.CasePermission.VIEW, enums_1.CasePermission.EDIT, enums_1.CasePermission.MANAGE_NOTES,
|
|
45
|
+
],
|
|
46
|
+
[enums_1.CaseUserRole.AUDITOR]: [
|
|
47
|
+
enums_1.CasePermission.VIEW, enums_1.CasePermission.EXPORT,
|
|
48
|
+
],
|
|
49
|
+
};
|
|
50
|
+
return map[this.role] || [];
|
|
51
|
+
}
|
|
52
|
+
hasPermission(permission) {
|
|
53
|
+
if (!this.isActive)
|
|
54
|
+
return false;
|
|
55
|
+
if (this.expiresDate && new Date() > this.expiresDate)
|
|
56
|
+
return false;
|
|
57
|
+
return this.permissions.includes(permission) || this.permissions.includes(enums_1.CasePermission.ADMIN);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.CaseRole = CaseRole;
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ManyToOne)(() => intel_case_entity_1.IntelCase, (c) => c.roles, { onDelete: 'CASCADE' }),
|
|
63
|
+
(0, typeorm_1.JoinColumn)({ name: 'case_id' }),
|
|
64
|
+
__metadata("design:type", intel_case_entity_1.IntelCase)
|
|
65
|
+
], CaseRole.prototype, "case", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'CASCADE', eager: false }),
|
|
68
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
69
|
+
__metadata("design:type", user_entity_1.User)
|
|
70
|
+
], CaseRole.prototype, "user", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.CaseUserRole }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CaseRole.prototype, "role", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.CasePermission, array: true, default: [] }),
|
|
77
|
+
__metadata("design:type", Array)
|
|
78
|
+
], CaseRole.prototype, "permissions", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, name: 'is_active' }),
|
|
81
|
+
__metadata("design:type", Boolean)
|
|
82
|
+
], CaseRole.prototype, "isActive", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, name: 'assigned_date' }),
|
|
85
|
+
__metadata("design:type", Date)
|
|
86
|
+
], CaseRole.prototype, "assignedDate", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, name: 'expires_date' }),
|
|
89
|
+
__metadata("design:type", Date)
|
|
90
|
+
], CaseRole.prototype, "expiresDate", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true, name: 'assigned_by' }),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], CaseRole.prototype, "assignedBy", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], CaseRole.prototype, "notes", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, name: 'receive_notifications' }),
|
|
101
|
+
__metadata("design:type", Boolean)
|
|
102
|
+
], CaseRole.prototype, "receiveNotifications", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], CaseRole.prototype, "metadata", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
109
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
110
|
+
__metadata("design:type", Function),
|
|
111
|
+
__metadata("design:paramtypes", []),
|
|
112
|
+
__metadata("design:returntype", void 0)
|
|
113
|
+
], CaseRole.prototype, "setDefaults", null);
|
|
114
|
+
exports.CaseRole = CaseRole = __decorate([
|
|
115
|
+
(0, typeorm_1.Entity)({ name: 'case_role', schema: 'cases' }),
|
|
116
|
+
(0, typeorm_1.Index)('case_role_case_user_idx', ['case', 'user'], { unique: true }),
|
|
117
|
+
(0, typeorm_1.Index)('case_role_case_idx', ['case']),
|
|
118
|
+
(0, typeorm_1.Index)('case_role_user_idx', ['user'])
|
|
119
|
+
], CaseRole);
|
|
120
|
+
//# sourceMappingURL=case-role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-role.entity.js","sourceRoot":"","sources":["../../../src/entities/cases/case-role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qCAAmG;AACnG,2DAAgD;AAChD,gDAAsC;AACtC,mCAAuD;AAMhD,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,kBAAU;IAsCtC,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,YAAY;YAAE,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,EAAE,CAAC;QACvD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAChD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,IAAI,EAAE,GAAG,IAAI,CAAC,WAAW;YAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IAC/E,CAAC;IAEO,qBAAqB;QAC3B,MAAM,GAAG,GAA2C;YAClD,CAAC,oBAAY,CAAC,QAAQ,CAAC,EAAE;gBACvB,sBAAc,CAAC,IAAI,EAAE,sBAAc,CAAC,IAAI,EAAE,sBAAc,CAAC,MAAM;gBAC/D,sBAAc,CAAC,aAAa,EAAE,sBAAc,CAAC,eAAe;gBAC5D,sBAAc,CAAC,YAAY,EAAE,sBAAc,CAAC,YAAY;gBACxD,sBAAc,CAAC,MAAM,EAAE,sBAAc,CAAC,KAAK;aAC5C;YACD,CAAC,oBAAY,CAAC,QAAQ,CAAC,EAAE;gBACvB,sBAAc,CAAC,IAAI,EAAE,sBAAc,CAAC,IAAI;gBACxC,sBAAc,CAAC,aAAa,EAAE,sBAAc,CAAC,eAAe;gBAC5D,sBAAc,CAAC,YAAY,EAAE,sBAAc,CAAC,MA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AY,GAAE;;;;2CAKd;mBA1CU,QAAQ;IAJpB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAC9C,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpE,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,MAAM,CAAC,CAAC;IACrC,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,MAAM,CAAC,CAAC;GACzB,QAAQ,CA4EpB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { IntelCase } from './intel-case.entity';
|
|
3
|
+
import { CaseSearchType, CaseSearchStatus } from './enums';
|
|
4
|
+
export declare class CaseSearch extends EntityBase {
|
|
5
|
+
case: IntelCase;
|
|
6
|
+
searchType: CaseSearchType;
|
|
7
|
+
status: CaseSearchStatus;
|
|
8
|
+
query: string;
|
|
9
|
+
searchParams?: Record<string, any>;
|
|
10
|
+
results?: Record<string, any>[];
|
|
11
|
+
resultsCount: number;
|
|
12
|
+
linkedAssetsCount: number;
|
|
13
|
+
searchDate: Date;
|
|
14
|
+
executionTimeMs?: number;
|
|
15
|
+
performedBy?: string;
|
|
16
|
+
errorMessage?: string;
|
|
17
|
+
notes?: string;
|
|
18
|
+
metadata?: Record<string, any>;
|
|
19
|
+
setDefaults(): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=case-search.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-search.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/cases/case-search.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3D,qBAKa,UAAW,SAAQ,UAAU;IAGxC,IAAI,EAAG,SAAS,CAAC;IAGjB,UAAU,EAAG,cAAc,CAAC;IAG5B,MAAM,EAAG,gBAAgB,CAAC;IAG1B,KAAK,EAAG,MAAM,CAAC;IAGf,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAGhC,YAAY,EAAG,MAAM,CAAC;IAGtB,iBAAiB,EAAG,MAAM,CAAC;IAG3B,UAAU,EAAG,IAAI,CAAC;IAGlB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG/B,WAAW;CAIZ"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CaseSearch = void 0;
|
|
13
|
+
const _base_1 = require("../base/_base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const intel_case_entity_1 = require("./intel-case.entity");
|
|
16
|
+
const enums_1 = require("./enums");
|
|
17
|
+
let CaseSearch = class CaseSearch extends _base_1.EntityBase {
|
|
18
|
+
setDefaults() {
|
|
19
|
+
if (!this.searchDate)
|
|
20
|
+
this.searchDate = new Date();
|
|
21
|
+
if (!this.performedBy && this.createdBy?.id)
|
|
22
|
+
this.performedBy = this.createdBy.id;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.CaseSearch = CaseSearch;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => intel_case_entity_1.IntelCase, (c) => c.searches, { onDelete: 'CASCADE' }),
|
|
28
|
+
(0, typeorm_1.JoinColumn)({ name: 'case_id' }),
|
|
29
|
+
__metadata("design:type", intel_case_entity_1.IntelCase)
|
|
30
|
+
], CaseSearch.prototype, "case", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.CaseSearchType, name: 'search_type' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CaseSearch.prototype, "searchType", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.CaseSearchStatus, default: enums_1.CaseSearchStatus.COMPLETED }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CaseSearch.prototype, "status", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CaseSearch.prototype, "query", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'search_params' }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], CaseSearch.prototype, "searchParams", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], CaseSearch.prototype, "results", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'results_count' }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], CaseSearch.prototype, "resultsCount", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'linked_assets_count' }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], CaseSearch.prototype, "linkedAssetsCount", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP', name: 'search_date' }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], CaseSearch.prototype, "searchDate", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true, name: 'execution_time_ms' }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], CaseSearch.prototype, "executionTimeMs", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true, name: 'performed_by' }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CaseSearch.prototype, "performedBy", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true, name: 'error_message' }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CaseSearch.prototype, "errorMessage", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], CaseSearch.prototype, "notes", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], CaseSearch.prototype, "metadata", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
85
|
+
__metadata("design:type", Function),
|
|
86
|
+
__metadata("design:paramtypes", []),
|
|
87
|
+
__metadata("design:returntype", void 0)
|
|
88
|
+
], CaseSearch.prototype, "setDefaults", null);
|
|
89
|
+
exports.CaseSearch = CaseSearch = __decorate([
|
|
90
|
+
(0, typeorm_1.Entity)({ name: 'case_search', schema: 'cases' }),
|
|
91
|
+
(0, typeorm_1.Index)('case_search_case_idx', ['case']),
|
|
92
|
+
(0, typeorm_1.Index)('case_search_type_idx', ['searchType']),
|
|
93
|
+
(0, typeorm_1.Index)('case_search_tenant_idx', ['tenantId']),
|
|
94
|
+
(0, typeorm_1.Index)('case_search_date_idx', ['searchDate'])
|
|
95
|
+
], CaseSearch);
|
|
96
|
+
//# sourceMappingURL=case-search.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-search.entity.js","sourceRoot":"","sources":["../../../src/entities/cases/case-search.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qCAAqF;AACrF,2DAAgD;AAChD,mCAA2D;AAOpD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kBAAU;IA6CxC,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,UAAU;YAAE,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC;QACnD,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE;YAAE,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;IACpF,CAAC;CACF,CAAA;AAjDY,gCAAU;AAGrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC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7
|
+
NARCOTRAFICO = "NARCOTRAFICO",
|
|
8
|
+
TRATA_PERSONAS = "TRATA_PERSONAS",
|
|
9
|
+
CRIMEN_ORGANIZADO = "CRIMEN_ORGANIZADO",
|
|
10
|
+
CIBERATAQUE = "CIBERATAQUE",
|
|
11
|
+
MAGNICIDIO = "MAGNICIDIO",
|
|
12
|
+
CORRUPCION_ESTRATEGICA = "CORRUPCION_ESTRATEGICA",
|
|
13
|
+
BOICOT_ECONOMICO = "BOICOT_ECONOMICO",
|
|
14
|
+
CONTRARREVOLUCION = "CONTRARREVOLUCION"
|
|
15
|
+
}
|
|
16
|
+
export declare enum ThreatOrigin {
|
|
17
|
+
INTERNO = "INTERNO",
|
|
18
|
+
EXTERNO = "EXTERNO",
|
|
19
|
+
TRANSNACIONAL = "TRANSNACIONAL",
|
|
20
|
+
HIBRIDO = "HIBRIDO"
|
|
21
|
+
}
|
|
22
|
+
export declare enum InvestigatingAgency {
|
|
23
|
+
SEBIN = "SEBIN",
|
|
24
|
+
DGCIM = "DGCIM",
|
|
25
|
+
CICPC = "CICPC",
|
|
26
|
+
FANB = "FANB",
|
|
27
|
+
PNB = "PNB",
|
|
28
|
+
CPNB = "CPNB",
|
|
29
|
+
INTERPOL_VE = "INTERPOL_VE",
|
|
30
|
+
MULTI_AGENCIA = "MULTI_AGENCIA"
|
|
31
|
+
}
|
|
32
|
+
export declare enum ClassificationLevel {
|
|
33
|
+
RESERVADO = "RESERVADO",
|
|
34
|
+
CONFIDENCIAL = "CONFIDENCIAL",
|
|
35
|
+
SECRETO = "SECRETO",
|
|
36
|
+
ALTO_SECRETO = "ALTO_SECRETO"
|
|
37
|
+
}
|
|
38
|
+
export declare enum CaseStatus {
|
|
39
|
+
DRAFT = "DRAFT",
|
|
40
|
+
ACTIVE = "ACTIVE",
|
|
41
|
+
UNDER_INVESTIGATION = "UNDER_INVESTIGATION",
|
|
42
|
+
ON_HOLD = "ON_HOLD",
|
|
43
|
+
CLOSED = "CLOSED",
|
|
44
|
+
ARCHIVED = "ARCHIVED"
|
|
45
|
+
}
|
|
46
|
+
export declare enum CasePriority {
|
|
47
|
+
LOW = "LOW",
|
|
48
|
+
MEDIUM = "MEDIUM",
|
|
49
|
+
HIGH = "HIGH",
|
|
50
|
+
CRITICAL = "CRITICAL"
|
|
51
|
+
}
|
|
52
|
+
export declare enum CaseUserRole {
|
|
53
|
+
DIRECTOR = "DIRECTOR",
|
|
54
|
+
OPERADOR = "OPERADOR",
|
|
55
|
+
ANALISTA = "ANALISTA",
|
|
56
|
+
ENLACE = "ENLACE",
|
|
57
|
+
AUDITOR = "AUDITOR"
|
|
58
|
+
}
|
|
59
|
+
export declare enum CasePermission {
|
|
60
|
+
VIEW = "VIEW",
|
|
61
|
+
EDIT = "EDIT",
|
|
62
|
+
DELETE = "DELETE",
|
|
63
|
+
MANAGE_ASSETS = "MANAGE_ASSETS",
|
|
64
|
+
MANAGE_SEARCHES = "MANAGE_SEARCHES",
|
|
65
|
+
MANAGE_ROLES = "MANAGE_ROLES",
|
|
66
|
+
MANAGE_NOTES = "MANAGE_NOTES",
|
|
67
|
+
EXPORT = "EXPORT",
|
|
68
|
+
ADMIN = "ADMIN"
|
|
69
|
+
}
|
|
70
|
+
export declare enum AssetType {
|
|
71
|
+
PERSON = "PERSON",
|
|
72
|
+
PHONE = "PHONE",
|
|
73
|
+
VEHICLE = "VEHICLE",
|
|
74
|
+
COMPANY = "COMPANY",
|
|
75
|
+
AIRCRAFT = "AIRCRAFT",
|
|
76
|
+
DOCUMENT = "DOCUMENT",
|
|
77
|
+
LOCATION = "LOCATION",
|
|
78
|
+
BANK_ACCOUNT = "BANK_ACCOUNT",
|
|
79
|
+
OTHER = "OTHER"
|
|
80
|
+
}
|
|
81
|
+
export declare enum AssetRole {
|
|
82
|
+
SOSPECHOSO = "SOSPECHOSO",
|
|
83
|
+
VICTIMA = "VICTIMA",
|
|
84
|
+
TESTIGO = "TESTIGO",
|
|
85
|
+
INVESTIGADOR = "INVESTIGADOR",
|
|
86
|
+
EVIDENCIA = "EVIDENCIA",
|
|
87
|
+
RELACIONADO = "RELACIONADO",
|
|
88
|
+
PROPIETARIO = "PROPIETARIO",
|
|
89
|
+
OPERADOR = "OPERADOR",
|
|
90
|
+
CONTACTO = "CONTACTO"
|
|
91
|
+
}
|
|
92
|
+
export declare enum AssetStatus {
|
|
93
|
+
ACTIVE = "ACTIVE",
|
|
94
|
+
INACTIVE = "INACTIVE",
|
|
95
|
+
VERIFIED = "VERIFIED",
|
|
96
|
+
UNVERIFIED = "UNVERIFIED",
|
|
97
|
+
REMOVED = "REMOVED"
|
|
98
|
+
}
|
|
99
|
+
export declare enum CaseSearchType {
|
|
100
|
+
PERSON = "PERSON",
|
|
101
|
+
PHONE = "PHONE",
|
|
102
|
+
VEHICLE = "VEHICLE",
|
|
103
|
+
COMPANY = "COMPANY",
|
|
104
|
+
AIRCRAFT = "AIRCRAFT",
|
|
105
|
+
BATCH = "BATCH",
|
|
106
|
+
FACE = "FACE",
|
|
107
|
+
GRAPH = "GRAPH"
|
|
108
|
+
}
|
|
109
|
+
export declare enum CaseSearchStatus {
|
|
110
|
+
COMPLETED = "COMPLETED",
|
|
111
|
+
FAILED = "FAILED",
|
|
112
|
+
PENDING = "PENDING",
|
|
113
|
+
CANCELLED = "CANCELLED"
|
|
114
|
+
}
|
|
115
|
+
export declare enum NoteType {
|
|
116
|
+
OPERACIONAL = "OPERACIONAL",
|
|
117
|
+
ANALISIS = "ANALISIS",
|
|
118
|
+
EVIDENCIA = "EVIDENCIA",
|
|
119
|
+
ALERTA = "ALERTA",
|
|
120
|
+
RESOLUCION = "RESOLUCION"
|
|
121
|
+
}
|
|
122
|
+
export declare enum CaseEventType {
|
|
123
|
+
CASE_CREATED = "CASE_CREATED",
|
|
124
|
+
CASE_UPDATED = "CASE_UPDATED",
|
|
125
|
+
STATUS_CHANGED = "STATUS_CHANGED",
|
|
126
|
+
ASSET_LINKED = "ASSET_LINKED",
|
|
127
|
+
ASSET_UNLINKED = "ASSET_UNLINKED",
|
|
128
|
+
SEARCH_PERFORMED = "SEARCH_PERFORMED",
|
|
129
|
+
NOTE_ADDED = "NOTE_ADDED",
|
|
130
|
+
NOTE_DELETED = "NOTE_DELETED",
|
|
131
|
+
ROLE_ASSIGNED = "ROLE_ASSIGNED",
|
|
132
|
+
ROLE_REVOKED = "ROLE_REVOKED",
|
|
133
|
+
DOCUMENT_UPLOADED = "DOCUMENT_UPLOADED",
|
|
134
|
+
EXPORT_GENERATED = "EXPORT_GENERATED"
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/entities/cases/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,mBAAmB,wBAA2B;IAC9C,SAAS,cAA2B;IACpC,QAAQ,aAA2B;IACnC,UAAU,eAA2B;IACrC,eAAe,oBAA2B;IAC1C,YAAY,iBAA2B;IACvC,cAAc,mBAA2B;IACzC,iBAAiB,sBAA2B;IAC5C,WAAW,gBAA2B;IACtC,UAAU,eAA2B;IACrC,sBAAsB,2BAA2B;IACjD,gBAAgB,qBAA2B;IAC3C,iBAAiB,sBAA2B;CAC7C;AAED,oBAAY,YAAY;IACtB,OAAO,YAAkB;IACzB,OAAO,YAAkB;IACzB,aAAa,kBAAkB;IAC/B,OAAO,YAAkB;CAC1B;AAED,oBAAY,mBAAmB;IAC7B,KAAK,UAAkB;IACvB,KAAK,UAAkB;IACvB,KAAK,UAAkB;IACvB,IAAI,SAAkB;IACtB,GAAG,QAAkB;IACrB,IAAI,SAAkB;IACtB,WAAW,gBAAkB;IAC7B,aAAa,kBAAkB;CAChC;AAED,oBAAY,mBAAmB;IAC7B,SAAS,cAAiB;IAC1B,YAAY,iBAAiB;IAC7B,OAAO,YAAiB;IACxB,YAAY,iBAAiB;CAC9B;AAED,oBAAY,UAAU;IACpB,KAAK,UAAwB;IAC7B,MA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AAY,gBAAgB;IAC1B,SAAS,cAAc;IACvB,MAAM,WAAc;IACpB,OAAO,YAAc;IACrB,SAAS,cAAc;CACxB;AAED,oBAAY,QAAQ;IAClB,WAAW,gBAAgB;IAC3B,QAAQ,aAAgB;IACxB,SAAS,cAAgB;IACzB,MAAM,WAAgB;IACtB,UAAU,eAAgB;CAC3B;AAED,oBAAY,aAAa;IACvB,YAAY,iBAAsB;IAClC,YAAY,iBAAsB;IAClC,cAAc,mBAAsB;IACpC,YAAY,iBAAsB;IAClC,cAAc,mBAAsB;IACpC,gBAAgB,qBAAsB;IACtC,UAAU,eAAsB;IAChC,YAAY,iBAAsB;IAClC,aAAa,kBAAsB;IACnC,YAAY,iBAAsB;IAClC,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAsB;CACvC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CaseEventType = exports.NoteType = exports.CaseSearchStatus = exports.CaseSearchType = exports.AssetStatus = exports.AssetRole = exports.AssetType = exports.CasePermission = exports.CaseUserRole = exports.CasePriority = exports.CaseStatus = exports.ClassificationLevel = exports.InvestigatingAgency = exports.ThreatOrigin = exports.ThreatType = void 0;
|
|
4
|
+
var ThreatType;
|
|
5
|
+
(function (ThreatType) {
|
|
6
|
+
ThreatType["SUBVERSION_POLITICA"] = "SUBVERSION_POLITICA";
|
|
7
|
+
ThreatType["ESPIONAJE"] = "ESPIONAJE";
|
|
8
|
+
ThreatType["SABOTAJE"] = "SABOTAJE";
|
|
9
|
+
ThreatType["TERRORISMO"] = "TERRORISMO";
|
|
10
|
+
ThreatType["PARAMILITARISMO"] = "PARAMILITARISMO";
|
|
11
|
+
ThreatType["NARCOTRAFICO"] = "NARCOTRAFICO";
|
|
12
|
+
ThreatType["TRATA_PERSONAS"] = "TRATA_PERSONAS";
|
|
13
|
+
ThreatType["CRIMEN_ORGANIZADO"] = "CRIMEN_ORGANIZADO";
|
|
14
|
+
ThreatType["CIBERATAQUE"] = "CIBERATAQUE";
|
|
15
|
+
ThreatType["MAGNICIDIO"] = "MAGNICIDIO";
|
|
16
|
+
ThreatType["CORRUPCION_ESTRATEGICA"] = "CORRUPCION_ESTRATEGICA";
|
|
17
|
+
ThreatType["BOICOT_ECONOMICO"] = "BOICOT_ECONOMICO";
|
|
18
|
+
ThreatType["CONTRARREVOLUCION"] = "CONTRARREVOLUCION";
|
|
19
|
+
})(ThreatType || (exports.ThreatType = ThreatType = {}));
|
|
20
|
+
var ThreatOrigin;
|
|
21
|
+
(function (ThreatOrigin) {
|
|
22
|
+
ThreatOrigin["INTERNO"] = "INTERNO";
|
|
23
|
+
ThreatOrigin["EXTERNO"] = "EXTERNO";
|
|
24
|
+
ThreatOrigin["TRANSNACIONAL"] = "TRANSNACIONAL";
|
|
25
|
+
ThreatOrigin["HIBRIDO"] = "HIBRIDO";
|
|
26
|
+
})(ThreatOrigin || (exports.ThreatOrigin = ThreatOrigin = {}));
|
|
27
|
+
var InvestigatingAgency;
|
|
28
|
+
(function (InvestigatingAgency) {
|
|
29
|
+
InvestigatingAgency["SEBIN"] = "SEBIN";
|
|
30
|
+
InvestigatingAgency["DGCIM"] = "DGCIM";
|
|
31
|
+
InvestigatingAgency["CICPC"] = "CICPC";
|
|
32
|
+
InvestigatingAgency["FANB"] = "FANB";
|
|
33
|
+
InvestigatingAgency["PNB"] = "PNB";
|
|
34
|
+
InvestigatingAgency["CPNB"] = "CPNB";
|
|
35
|
+
InvestigatingAgency["INTERPOL_VE"] = "INTERPOL_VE";
|
|
36
|
+
InvestigatingAgency["MULTI_AGENCIA"] = "MULTI_AGENCIA";
|
|
37
|
+
})(InvestigatingAgency || (exports.InvestigatingAgency = InvestigatingAgency = {}));
|
|
38
|
+
var ClassificationLevel;
|
|
39
|
+
(function (ClassificationLevel) {
|
|
40
|
+
ClassificationLevel["RESERVADO"] = "RESERVADO";
|
|
41
|
+
ClassificationLevel["CONFIDENCIAL"] = "CONFIDENCIAL";
|
|
42
|
+
ClassificationLevel["SECRETO"] = "SECRETO";
|
|
43
|
+
ClassificationLevel["ALTO_SECRETO"] = "ALTO_SECRETO";
|
|
44
|
+
})(ClassificationLevel || (exports.ClassificationLevel = ClassificationLevel = {}));
|
|
45
|
+
var CaseStatus;
|
|
46
|
+
(function (CaseStatus) {
|
|
47
|
+
CaseStatus["DRAFT"] = "DRAFT";
|
|
48
|
+
CaseStatus["ACTIVE"] = "ACTIVE";
|
|
49
|
+
CaseStatus["UNDER_INVESTIGATION"] = "UNDER_INVESTIGATION";
|
|
50
|
+
CaseStatus["ON_HOLD"] = "ON_HOLD";
|
|
51
|
+
CaseStatus["CLOSED"] = "CLOSED";
|
|
52
|
+
CaseStatus["ARCHIVED"] = "ARCHIVED";
|
|
53
|
+
})(CaseStatus || (exports.CaseStatus = CaseStatus = {}));
|
|
54
|
+
var CasePriority;
|
|
55
|
+
(function (CasePriority) {
|
|
56
|
+
CasePriority["LOW"] = "LOW";
|
|
57
|
+
CasePriority["MEDIUM"] = "MEDIUM";
|
|
58
|
+
CasePriority["HIGH"] = "HIGH";
|
|
59
|
+
CasePriority["CRITICAL"] = "CRITICAL";
|
|
60
|
+
})(CasePriority || (exports.CasePriority = CasePriority = {}));
|
|
61
|
+
var CaseUserRole;
|
|
62
|
+
(function (CaseUserRole) {
|
|
63
|
+
CaseUserRole["DIRECTOR"] = "DIRECTOR";
|
|
64
|
+
CaseUserRole["OPERADOR"] = "OPERADOR";
|
|
65
|
+
CaseUserRole["ANALISTA"] = "ANALISTA";
|
|
66
|
+
CaseUserRole["ENLACE"] = "ENLACE";
|
|
67
|
+
CaseUserRole["AUDITOR"] = "AUDITOR";
|
|
68
|
+
})(CaseUserRole || (exports.CaseUserRole = CaseUserRole = {}));
|
|
69
|
+
var CasePermission;
|
|
70
|
+
(function (CasePermission) {
|
|
71
|
+
CasePermission["VIEW"] = "VIEW";
|
|
72
|
+
CasePermission["EDIT"] = "EDIT";
|
|
73
|
+
CasePermission["DELETE"] = "DELETE";
|
|
74
|
+
CasePermission["MANAGE_ASSETS"] = "MANAGE_ASSETS";
|
|
75
|
+
CasePermission["MANAGE_SEARCHES"] = "MANAGE_SEARCHES";
|
|
76
|
+
CasePermission["MANAGE_ROLES"] = "MANAGE_ROLES";
|
|
77
|
+
CasePermission["MANAGE_NOTES"] = "MANAGE_NOTES";
|
|
78
|
+
CasePermission["EXPORT"] = "EXPORT";
|
|
79
|
+
CasePermission["ADMIN"] = "ADMIN";
|
|
80
|
+
})(CasePermission || (exports.CasePermission = CasePermission = {}));
|
|
81
|
+
var AssetType;
|
|
82
|
+
(function (AssetType) {
|
|
83
|
+
AssetType["PERSON"] = "PERSON";
|
|
84
|
+
AssetType["PHONE"] = "PHONE";
|
|
85
|
+
AssetType["VEHICLE"] = "VEHICLE";
|
|
86
|
+
AssetType["COMPANY"] = "COMPANY";
|
|
87
|
+
AssetType["AIRCRAFT"] = "AIRCRAFT";
|
|
88
|
+
AssetType["DOCUMENT"] = "DOCUMENT";
|
|
89
|
+
AssetType["LOCATION"] = "LOCATION";
|
|
90
|
+
AssetType["BANK_ACCOUNT"] = "BANK_ACCOUNT";
|
|
91
|
+
AssetType["OTHER"] = "OTHER";
|
|
92
|
+
})(AssetType || (exports.AssetType = AssetType = {}));
|
|
93
|
+
var AssetRole;
|
|
94
|
+
(function (AssetRole) {
|
|
95
|
+
AssetRole["SOSPECHOSO"] = "SOSPECHOSO";
|
|
96
|
+
AssetRole["VICTIMA"] = "VICTIMA";
|
|
97
|
+
AssetRole["TESTIGO"] = "TESTIGO";
|
|
98
|
+
AssetRole["INVESTIGADOR"] = "INVESTIGADOR";
|
|
99
|
+
AssetRole["EVIDENCIA"] = "EVIDENCIA";
|
|
100
|
+
AssetRole["RELACIONADO"] = "RELACIONADO";
|
|
101
|
+
AssetRole["PROPIETARIO"] = "PROPIETARIO";
|
|
102
|
+
AssetRole["OPERADOR"] = "OPERADOR";
|
|
103
|
+
AssetRole["CONTACTO"] = "CONTACTO";
|
|
104
|
+
})(AssetRole || (exports.AssetRole = AssetRole = {}));
|
|
105
|
+
var AssetStatus;
|
|
106
|
+
(function (AssetStatus) {
|
|
107
|
+
AssetStatus["ACTIVE"] = "ACTIVE";
|
|
108
|
+
AssetStatus["INACTIVE"] = "INACTIVE";
|
|
109
|
+
AssetStatus["VERIFIED"] = "VERIFIED";
|
|
110
|
+
AssetStatus["UNVERIFIED"] = "UNVERIFIED";
|
|
111
|
+
AssetStatus["REMOVED"] = "REMOVED";
|
|
112
|
+
})(AssetStatus || (exports.AssetStatus = AssetStatus = {}));
|
|
113
|
+
var CaseSearchType;
|
|
114
|
+
(function (CaseSearchType) {
|
|
115
|
+
CaseSearchType["PERSON"] = "PERSON";
|
|
116
|
+
CaseSearchType["PHONE"] = "PHONE";
|
|
117
|
+
CaseSearchType["VEHICLE"] = "VEHICLE";
|
|
118
|
+
CaseSearchType["COMPANY"] = "COMPANY";
|
|
119
|
+
CaseSearchType["AIRCRAFT"] = "AIRCRAFT";
|
|
120
|
+
CaseSearchType["BATCH"] = "BATCH";
|
|
121
|
+
CaseSearchType["FACE"] = "FACE";
|
|
122
|
+
CaseSearchType["GRAPH"] = "GRAPH";
|
|
123
|
+
})(CaseSearchType || (exports.CaseSearchType = CaseSearchType = {}));
|
|
124
|
+
var CaseSearchStatus;
|
|
125
|
+
(function (CaseSearchStatus) {
|
|
126
|
+
CaseSearchStatus["COMPLETED"] = "COMPLETED";
|
|
127
|
+
CaseSearchStatus["FAILED"] = "FAILED";
|
|
128
|
+
CaseSearchStatus["PENDING"] = "PENDING";
|
|
129
|
+
CaseSearchStatus["CANCELLED"] = "CANCELLED";
|
|
130
|
+
})(CaseSearchStatus || (exports.CaseSearchStatus = CaseSearchStatus = {}));
|
|
131
|
+
var NoteType;
|
|
132
|
+
(function (NoteType) {
|
|
133
|
+
NoteType["OPERACIONAL"] = "OPERACIONAL";
|
|
134
|
+
NoteType["ANALISIS"] = "ANALISIS";
|
|
135
|
+
NoteType["EVIDENCIA"] = "EVIDENCIA";
|
|
136
|
+
NoteType["ALERTA"] = "ALERTA";
|
|
137
|
+
NoteType["RESOLUCION"] = "RESOLUCION";
|
|
138
|
+
})(NoteType || (exports.NoteType = NoteType = {}));
|
|
139
|
+
var CaseEventType;
|
|
140
|
+
(function (CaseEventType) {
|
|
141
|
+
CaseEventType["CASE_CREATED"] = "CASE_CREATED";
|
|
142
|
+
CaseEventType["CASE_UPDATED"] = "CASE_UPDATED";
|
|
143
|
+
CaseEventType["STATUS_CHANGED"] = "STATUS_CHANGED";
|
|
144
|
+
CaseEventType["ASSET_LINKED"] = "ASSET_LINKED";
|
|
145
|
+
CaseEventType["ASSET_UNLINKED"] = "ASSET_UNLINKED";
|
|
146
|
+
CaseEventType["SEARCH_PERFORMED"] = "SEARCH_PERFORMED";
|
|
147
|
+
CaseEventType["NOTE_ADDED"] = "NOTE_ADDED";
|
|
148
|
+
CaseEventType["NOTE_DELETED"] = "NOTE_DELETED";
|
|
149
|
+
CaseEventType["ROLE_ASSIGNED"] = "ROLE_ASSIGNED";
|
|
150
|
+
CaseEventType["ROLE_REVOKED"] = "ROLE_REVOKED";
|
|
151
|
+
CaseEventType["DOCUMENT_UPLOADED"] = "DOCUMENT_UPLOADED";
|
|
152
|
+
CaseEventType["EXPORT_GENERATED"] = "EXPORT_GENERATED";
|
|
153
|
+
})(CaseEventType || (exports.CaseEventType = CaseEventType = {}));
|
|
154
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/entities/cases/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAcX;AAdD,WAAY,UAAU;IACpB,yDAA8C,CAAA;IAC9C,qCAAoC,CAAA;IACpC,mCAAmC,CAAA;IACnC,uCAAqC,CAAA;IACrC,iDAA0C,CAAA;IAC1C,2CAAuC,CAAA;IACvC,+CAAyC,CAAA;IACzC,qDAA4C,CAAA;IA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pB,CAAC,EATW,cAAc,8BAAd,cAAc,QASzB;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,qCAAoB,CAAA;IACpB,uCAAqB,CAAA;IACrB,2CAAuB,CAAA;AACzB,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,iCAAwB,CAAA;IACxB,mCAAyB,CAAA;IACzB,6BAAsB,CAAA;IACtB,qCAA0B,CAAA;AAC5B,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB;AAED,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB,8CAAkC,CAAA;IAClC,8CAAkC,CAAA;IAClC,kDAAoC,CAAA;IACpC,8CAAkC,CAAA;IAClC,kDAAoC,CAAA;IACpC,sDAAsC,CAAA;IACtC,0CAAgC,CAAA;IAChC,8CAAkC,CAAA;IAClC,gDAAmC,CAAA;IACnC,8CAAkC,CAAA;IAClC,wDAAuC,CAAA;IACvC,sDAAsC,CAAA;AACxC,CAAC,EAbW,aAAa,6BAAb,aAAa,QAaxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './enums';
|
|
2
|
+
export * from './intel-case.entity';
|
|
3
|
+
export * from './case-asset.entity';
|
|
4
|
+
export * from './case-role.entity';
|
|
5
|
+
export * from './case-search.entity';
|
|
6
|
+
export * from './case-note.entity';
|
|
7
|
+
export * from './case-event.entity';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/cases/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
18
|
+
__exportStar(require("./intel-case.entity"), exports);
|
|
19
|
+
__exportStar(require("./case-asset.entity"), exports);
|
|
20
|
+
__exportStar(require("./case-role.entity"), exports);
|
|
21
|
+
__exportStar(require("./case-search.entity"), exports);
|
|
22
|
+
__exportStar(require("./case-note.entity"), exports);
|
|
23
|
+
__exportStar(require("./case-event.entity"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/cases/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { ThreatType, ThreatOrigin, InvestigatingAgency, ClassificationLevel, CaseStatus, CasePriority } from './enums';
|
|
3
|
+
export declare class IntelCase extends EntityBase {
|
|
4
|
+
caseCode?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
status: CaseStatus;
|
|
8
|
+
priority: CasePriority;
|
|
9
|
+
threatType: ThreatType;
|
|
10
|
+
threatOrigin: ThreatOrigin;
|
|
11
|
+
investigatingAgency: InvestigatingAgency;
|
|
12
|
+
classificationLevel: ClassificationLevel;
|
|
13
|
+
operationName?: string;
|
|
14
|
+
geographicScope?: string[];
|
|
15
|
+
startDate?: Date;
|
|
16
|
+
endDate?: Date;
|
|
17
|
+
deadline?: Date;
|
|
18
|
+
tags?: string[];
|
|
19
|
+
metadata?: Record<string, any>;
|
|
20
|
+
assetsCount: number;
|
|
21
|
+
searchesCount: number;
|
|
22
|
+
notesCount: number;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
assets?: any[];
|
|
25
|
+
searches?: any[];
|
|
26
|
+
roles?: any[];
|
|
27
|
+
notes?: any[];
|
|
28
|
+
events?: any[];
|
|
29
|
+
setDefaults(): void;
|
|
30
|
+
canBeModified(): boolean;
|
|
31
|
+
getDaysActive(): number;
|
|
32
|
+
getFormattedCode(): string;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=intel-case.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intel-case.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/cases/intel-case.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,OAAO,EACL,UAAU,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAClE,UAAU,EAAE,YAAY,EACzB,MAAM,SAAS,CAAC;AAEjB,qBAMa,SAAU,SAAQ,UAAU;IAEvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,EAAG,MAAM,CAAC;IAGf,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAG,UAAU,CAAC;IAGpB,QAAQ,EAAG,YAAY,CAAC;IAGxB,UAAU,EAAG,UAAU,CAAC;IAGxB,YAAY,EAAG,YAAY,CAAC;IAG5B,mBAAmB,EAAG,mBAAmB,CAAC;IAM1C,mBAAmB,EAAG,mBAAmB,CAAC;IAG1C,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAG3B,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,OAAO,CAAC,EAAE,IAAI,CAAC;IAGf,QAAQ,CAAC,EAAE,IAAI,CAAC;IAGhB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAGhB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG/B,WAAW,EAAG,MAAM,CAAC;IAGrB,aAAa,EAAG,MAAM,CAAC;IAGvB,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,OAAO,CAAC;IAInB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IAGf,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IAGjB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IAGd,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IAGd,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IAIf,WAAW;IAYX,aAAa,IAAI,OAAO;IAIxB,aAAa,IAAI,MAAM;IAMvB,gBAAgB,IAAI,MAAM;CAG3B"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IntelCase = void 0;
|
|
13
|
+
const _base_1 = require("../base/_base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const enums_1 = require("./enums");
|
|
16
|
+
let IntelCase = class IntelCase extends _base_1.EntityBase {
|
|
17
|
+
setDefaults() {
|
|
18
|
+
if (this.status === enums_1.CaseStatus.CLOSED || this.status === enums_1.CaseStatus.ARCHIVED) {
|
|
19
|
+
this.isActive = false;
|
|
20
|
+
if (!this.endDate)
|
|
21
|
+
this.endDate = new Date();
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
this.isActive = true;
|
|
25
|
+
}
|
|
26
|
+
if (this.status !== enums_1.CaseStatus.DRAFT && !this.startDate) {
|
|
27
|
+
this.startDate = new Date();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
canBeModified() {
|
|
31
|
+
return this.status !== enums_1.CaseStatus.CLOSED && this.status !== enums_1.CaseStatus.ARCHIVED;
|
|
32
|
+
}
|
|
33
|
+
getDaysActive() {
|
|
34
|
+
if (!this.startDate)
|
|
35
|
+
return 0;
|
|
36
|
+
const end = this.endDate || new Date();
|
|
37
|
+
return Math.ceil((end.getTime() - new Date(this.startDate).getTime()) / 86400000);
|
|
38
|
+
}
|
|
39
|
+
getFormattedCode() {
|
|
40
|
+
return this.caseCode || 'N/A';
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.IntelCase = IntelCase;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 60, unique: true, name: 'case_code', nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], IntelCase.prototype, "caseCode", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], IntelCase.prototype, "title", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], IntelCase.prototype, "description", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.CaseStatus, default: enums_1.CaseStatus.DRAFT }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], IntelCase.prototype, "status", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.CasePriority, default: enums_1.CasePriority.MEDIUM }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], IntelCase.prototype, "priority", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.ThreatType, name: 'threat_type' }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], IntelCase.prototype, "threatType", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.ThreatOrigin, name: 'threat_origin', default: enums_1.ThreatOrigin.INTERNO }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], IntelCase.prototype, "threatOrigin", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: enums_1.InvestigatingAgency, name: 'investigating_agency' }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], IntelCase.prototype, "investigatingAgency", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({
|
|
78
|
+
type: 'enum', enum: enums_1.ClassificationLevel,
|
|
79
|
+
name: 'classification_level', default: enums_1.ClassificationLevel.CONFIDENCIAL,
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], IntelCase.prototype, "classificationLevel", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true, name: 'operation_name' }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], IntelCase.prototype, "operationName", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, nullable: true, name: 'geographic_scope' }),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], IntelCase.prototype, "geographicScope", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, name: 'start_date' }),
|
|
93
|
+
__metadata("design:type", Date)
|
|
94
|
+
], IntelCase.prototype, "startDate", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, name: 'end_date' }),
|
|
97
|
+
__metadata("design:type", Date)
|
|
98
|
+
], IntelCase.prototype, "endDate", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
101
|
+
__metadata("design:type", Date)
|
|
102
|
+
], IntelCase.prototype, "deadline", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, nullable: true }),
|
|
105
|
+
__metadata("design:type", Array)
|
|
106
|
+
], IntelCase.prototype, "tags", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
109
|
+
__metadata("design:type", Object)
|
|
110
|
+
], IntelCase.prototype, "metadata", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'assets_count' }),
|
|
113
|
+
__metadata("design:type", Number)
|
|
114
|
+
], IntelCase.prototype, "assetsCount", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'searches_count' }),
|
|
117
|
+
__metadata("design:type", Number)
|
|
118
|
+
], IntelCase.prototype, "searchesCount", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'notes_count' }),
|
|
121
|
+
__metadata("design:type", Number)
|
|
122
|
+
], IntelCase.prototype, "notesCount", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, name: 'is_active' }),
|
|
125
|
+
__metadata("design:type", Boolean)
|
|
126
|
+
], IntelCase.prototype, "isActive", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typeorm_1.OneToMany)(() => require('./case-asset.entity').CaseAsset, (a) => a.case, { cascade: true }),
|
|
129
|
+
__metadata("design:type", Array)
|
|
130
|
+
], IntelCase.prototype, "assets", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.OneToMany)(() => require('./case-search.entity').CaseSearch, (s) => s.case, { cascade: true }),
|
|
133
|
+
__metadata("design:type", Array)
|
|
134
|
+
], IntelCase.prototype, "searches", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.OneToMany)(() => require('./case-role.entity').CaseRole, (r) => r.case, { cascade: true }),
|
|
137
|
+
__metadata("design:type", Array)
|
|
138
|
+
], IntelCase.prototype, "roles", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, typeorm_1.OneToMany)(() => require('./case-note.entity').CaseNote, (n) => n.case, { cascade: true }),
|
|
141
|
+
__metadata("design:type", Array)
|
|
142
|
+
], IntelCase.prototype, "notes", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.OneToMany)(() => require('./case-event.entity').CaseEvent, (e) => e.case, { cascade: true }),
|
|
145
|
+
__metadata("design:type", Array)
|
|
146
|
+
], IntelCase.prototype, "events", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
149
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
150
|
+
__metadata("design:type", Function),
|
|
151
|
+
__metadata("design:paramtypes", []),
|
|
152
|
+
__metadata("design:returntype", void 0)
|
|
153
|
+
], IntelCase.prototype, "setDefaults", null);
|
|
154
|
+
exports.IntelCase = IntelCase = __decorate([
|
|
155
|
+
(0, typeorm_1.Entity)({ name: 'intel_case', schema: 'cases' }),
|
|
156
|
+
(0, typeorm_1.Index)('intel_case_code_idx', ['caseCode'], { unique: true }),
|
|
157
|
+
(0, typeorm_1.Index)('intel_case_tenant_status_idx', ['tenantId', 'status']),
|
|
158
|
+
(0, typeorm_1.Index)('intel_case_tenant_threat_idx', ['tenantId', 'threatType']),
|
|
159
|
+
(0, typeorm_1.Index)('intel_case_tenant_agency_idx', ['tenantId', 'investigatingAgency']),
|
|
160
|
+
(0, typeorm_1.Index)('intel_case_tenant_priority_idx', ['tenantId', 'priority'])
|
|
161
|
+
], IntelCase);
|
|
162
|
+
//# sourceMappingURL=intel-case.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intel-case.entity.js","sourceRoot":"","sources":["../../../src/entities/cases/intel-case.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qCAEiB;AACjB,mCAGiB;AAQV,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,kBAAU;IAkFvC,WAAW;QACT,IAAI,IAAI,CAAC,MAAM,KAAK,kBAAU,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,KAAK,kBAAU,CAAC,QAAQ,EAAE,CAAC;YAC7E,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;YACtB,IAA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eAAK,EAAC,8BAA8B,EAAE,CAAC,UAAU,EAAE,qBAAqB,CAAC,CAAC;IAC1E,IAAA,eAAK,EAAC,gCAAgC,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;GACrD,SAAS,CA2GrB"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -42,10 +42,7 @@ export * from "./telefonia/m_movilnet_api_latest.entity";
|
|
|
42
42
|
export * from "./document/document.entity";
|
|
43
43
|
export * from "./document/document-entity-link.entity";
|
|
44
44
|
export * from "./document-fingerprint.entity";
|
|
45
|
-
export * from "./
|
|
46
|
-
export * from "./case/case-asset.entity";
|
|
47
|
-
export * from "./case/case-role.entity";
|
|
48
|
-
export * from "./case/case-search.entity";
|
|
45
|
+
export * from "./cases";
|
|
49
46
|
export * from "./ipsfa/ipsfa.entity";
|
|
50
47
|
export * from "./inac/detentor.entity";
|
|
51
48
|
export * from "./inac/aeronave.entity";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kDAAkD,CAAC;AAGjE,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAA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qBAAqB,CAAC;AAGpC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,mDAAmD,CAAC;AAClE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AAGvC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC;AAGxB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,SAAS,CAAC;AAGxB,cAAc,OAAO,CAAC;AAGtB,cAAc,UAAU,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -67,11 +67,13 @@ __exportStar(require("./telefonia/m_movilnet_api_latest.entity"), exports);
|
|
|
67
67
|
__exportStar(require("./document/document.entity"), exports);
|
|
68
68
|
__exportStar(require("./document/document-entity-link.entity"), exports);
|
|
69
69
|
__exportStar(require("./document-fingerprint.entity"), exports);
|
|
70
|
-
// Case module
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
// Case module (DEPRECATED — use cases/ schema)
|
|
71
|
+
// export * from "./case/case.entity"; // reemplazado por IntelCase
|
|
72
|
+
// export * from "./case/case-asset.entity"; // reemplazado
|
|
73
|
+
// export * from "./case/case-role.entity"; // reemplazado
|
|
74
|
+
// export * from "./case/case-search.entity"; // reemplazado
|
|
75
|
+
// Cases Intel module (schema: cases)
|
|
76
|
+
__exportStar(require("./cases"), exports);
|
|
75
77
|
// IPSFA module
|
|
76
78
|
__exportStar(require("./ipsfa/ipsfa.entity"), exports);
|
|
77
79
|
// INAC module
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gBAAgB;AAChB,+CAA6B;AAC7B,sDAAoC;AAEpC,sBAAsB;AACtB,8EAA4D;AAC5D,mFAAiE;AAEjE,gBAAgB;AAChB,yDAAuC;AACvC,wEAAsD;AACtD,mEAAiD;AACjD,qEAAmD;AACnD,6DAA2C;AAC3C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AACnD,sEAAoD;AACpD,0EAAwD;AACxD,yEAAuD;AACvD,0EAAwD;AACxD,2EAAyD;AACzD,4DAA0C;AAC1C,6DAA2C;AAE3C,iBAAiB;AACjB,4CAA0B;AAE1B,uBAAuB;AACvB,kDAAgC;AAEhC,wDAAwD;AACxD,6DAA2C;AAC3C,mEAAiD;AACjD,mEAAiD;AAEjD,6CAA6C;AAC7C,wCAAsB;AAEtB,mBAAmB;AACnB,+DAA6C;AAC7C,yEAAuD;AACvD,yDAAuC;AACvC,sEAAoD;AACpD,uEAAqD;AACrD,oEAAkD;AAClD,oEAAkD;AAClD,2EAAyD;AAEzD,kBAAkB;AAClB,6DAA2C;AAC3C,yEAAuD;AACvD,gEAA8C;AAE9C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gBAAgB;AAChB,+CAA6B;AAC7B,sDAAoC;AAEpC,sBAAsB;AACtB,8EAA4D;AAC5D,mFAAiE;AAEjE,gBAAgB;AAChB,yDAAuC;AACvC,wEAAsD;AACtD,mEAAiD;AACjD,qEAAmD;AACnD,6DAA2C;AAC3C,wEAAsD;AACtD,+DAA6C;AAC7C,wDAAsC;AACtC,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AACnD,sEAAoD;AACpD,0EAAwD;AACxD,yEAAuD;AACvD,0EAAwD;AACxD,2EAAyD;AACzD,4DAA0C;AAC1C,6DAA2C;AAE3C,iBAAiB;AACjB,4CAA0B;AAE1B,uBAAuB;AACvB,kDAAgC;A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AwB;AAExB,+DAA+D;AAC/D,iDAA+B;AAE/B,eAAe;AACf,0CAAwB;AAExB,aAAa;AACb,wCAAsB;AAEtB,6CAA6C;AAC7C,2CAAyB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigmatech/pergamo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.88",
|
|
4
4
|
"description": "Shared TypeORM entities and utilities for Dataven intelligence system - Named after the ancient library of Pergamon",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|