@sigmatech/pergamo 0.1.42 → 0.1.46
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/graph/graph-canvas.entity.d.ts +114 -0
- package/dist/entities/graph/graph-canvas.entity.d.ts.map +1 -0
- package/dist/entities/graph/graph-canvas.entity.js +79 -0
- package/dist/entities/graph/graph-canvas.entity.js.map +1 -0
- package/dist/entities/graph/index.d.ts +2 -0
- package/dist/entities/graph/index.d.ts.map +1 -0
- package/dist/entities/graph/index.js +18 -0
- package/dist/entities/graph/index.js.map +1 -0
- package/dist/entities/index.d.ts +5 -0
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +6 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/person/characterization-annex.entity.d.ts +79 -0
- package/dist/entities/person/characterization-annex.entity.d.ts.map +1 -0
- package/dist/entities/person/characterization-annex.entity.js +97 -0
- package/dist/entities/person/characterization-annex.entity.js.map +1 -0
- package/dist/entities/person/characterization-family.entity.d.ts +100 -0
- package/dist/entities/person/characterization-family.entity.d.ts.map +1 -0
- package/dist/entities/person/characterization-family.entity.js +121 -0
- package/dist/entities/person/characterization-family.entity.js.map +1 -0
- package/dist/entities/person/characterization-linkage.entity.d.ts +135 -0
- package/dist/entities/person/characterization-linkage.entity.d.ts.map +1 -0
- package/dist/entities/person/characterization-linkage.entity.js +109 -0
- package/dist/entities/person/characterization-linkage.entity.js.map +1 -0
- package/dist/entities/person/person-characterization.entity.d.ts +191 -0
- package/dist/entities/person/person-characterization.entity.d.ts.map +1 -0
- package/dist/entities/person/person-characterization.entity.js +166 -0
- package/dist/entities/person/person-characterization.entity.js.map +1 -0
- package/dist/entities/person/person.entity.d.ts +6 -0
- package/dist/entities/person/person.entity.d.ts.map +1 -1
- package/dist/entities/person/person.entity.js +8 -0
- package/dist/entities/person/person.entity.js.map +1 -1
- package/dist/enums/characterization.enum.d.ts +65 -0
- package/dist/enums/characterization.enum.d.ts.map +1 -0
- package/dist/enums/characterization.enum.js +72 -0
- package/dist/enums/characterization.enum.js.map +1 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.d.ts.map +1 -1
- package/dist/enums/index.js +1 -0
- package/dist/enums/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
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.CharacterizationFamily = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_1 = require("../base/_base");
|
|
15
|
+
const person_characterization_entity_1 = require("./person-characterization.entity");
|
|
16
|
+
const characterization_enum_1 = require("../../enums/characterization.enum");
|
|
17
|
+
/**
|
|
18
|
+
* CharacterizationFamily Entity
|
|
19
|
+
*
|
|
20
|
+
* Stores extended family member information for a person's characterization.
|
|
21
|
+
* This includes detailed information about each family member that goes beyond
|
|
22
|
+
* what is typically stored in the Person entity relationships.
|
|
23
|
+
*
|
|
24
|
+
* Fields include: identification, contact, political tendency, profession,
|
|
25
|
+
* workplace, residence, and social status.
|
|
26
|
+
*/
|
|
27
|
+
let CharacterizationFamily = class CharacterizationFamily extends _base_1.EntityBase {
|
|
28
|
+
};
|
|
29
|
+
exports.CharacterizationFamily = CharacterizationFamily;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 300 }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CharacterizationFamily.prototype, "fullName", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 3, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CharacterizationFamily.prototype, "cedulaLetter", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 15, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CharacterizationFamily.prototype, "cedula", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], CharacterizationFamily.prototype, "birthDate", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CharacterizationFamily.prototype, "phone", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], CharacterizationFamily.prototype, "additionalPhones", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({
|
|
56
|
+
type: 'enum',
|
|
57
|
+
enum: characterization_enum_1.FamilyRelationship,
|
|
58
|
+
default: characterization_enum_1.FamilyRelationship.OTRO,
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CharacterizationFamily.prototype, "relationship", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CharacterizationFamily.prototype, "relationshipCustom", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], CharacterizationFamily.prototype, "politicalTendency", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], CharacterizationFamily.prototype, "profession", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CharacterizationFamily.prototype, "workplace", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], CharacterizationFamily.prototype, "residence", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], CharacterizationFamily.prototype, "socialStatus", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
|
|
88
|
+
__metadata("design:type", Array)
|
|
89
|
+
], CharacterizationFamily.prototype, "companies", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], CharacterizationFamily.prototype, "briefCharacterization", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], CharacterizationFamily.prototype, "linkedPersonId", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
100
|
+
__metadata("design:type", Boolean)
|
|
101
|
+
], CharacterizationFamily.prototype, "isDeceased", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], CharacterizationFamily.prototype, "notes", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], CharacterizationFamily.prototype, "order", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.ManyToOne)(() => person_characterization_entity_1.PersonCharacterization, (characterization) => characterization.familyMembers, { onDelete: 'CASCADE' }),
|
|
112
|
+
(0, typeorm_1.JoinColumn)(),
|
|
113
|
+
__metadata("design:type", person_characterization_entity_1.PersonCharacterization)
|
|
114
|
+
], CharacterizationFamily.prototype, "characterization", void 0);
|
|
115
|
+
exports.CharacterizationFamily = CharacterizationFamily = __decorate([
|
|
116
|
+
(0, typeorm_1.Entity)('characterization_family'),
|
|
117
|
+
(0, typeorm_1.Index)('idx_family_characterization', ['characterization']),
|
|
118
|
+
(0, typeorm_1.Index)('idx_family_relationship', ['relationship']),
|
|
119
|
+
(0, typeorm_1.Index)('idx_family_cedula', ['cedulaLetter', 'cedula'])
|
|
120
|
+
], CharacterizationFamily);
|
|
121
|
+
//# sourceMappingURL=characterization-family.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterization-family.entity.js","sourceRoot":"","sources":["../../../src/entities/person/characterization-family.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,yCAA2C;AAC3C,qFAA0E;AAC1E,6EAAuE;AAEvE;;;;;;;;;GASG;AAKI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,kBAAU;C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,sBAAsB;IAJlC,IAAA,gBAAM,EAAC,yBAAyB,CAAC;IACjC,IAAA,eAAK,EAAC,6BAA6B,EAAE,CAAC,kBAAkB,CAAC,CAAC;IAC1D,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,cAAc,CAAC,CAAC;IAClD,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;GAC1C,sBAAsB,CAwIlC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { PersonCharacterization } from './person-characterization.entity';
|
|
3
|
+
import { LinkageType, SourceQuality } from '../../enums/characterization.enum';
|
|
4
|
+
/**
|
|
5
|
+
* Metadata interfaces for different linkage types
|
|
6
|
+
*/
|
|
7
|
+
export interface FamilyLinkageMetadata {
|
|
8
|
+
relationship?: string;
|
|
9
|
+
profession?: string;
|
|
10
|
+
socialStatus?: string;
|
|
11
|
+
workplace?: string;
|
|
12
|
+
residence?: string;
|
|
13
|
+
companies?: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface CompanyLinkageMetadata {
|
|
16
|
+
rif?: string;
|
|
17
|
+
activity?: string;
|
|
18
|
+
location?: string;
|
|
19
|
+
foundationDate?: string;
|
|
20
|
+
role?: string;
|
|
21
|
+
partners?: Array<{
|
|
22
|
+
name: string;
|
|
23
|
+
cedula?: string;
|
|
24
|
+
role?: string;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
export interface SocialMediaLinkageMetadata {
|
|
28
|
+
platform?: string;
|
|
29
|
+
url?: string;
|
|
30
|
+
username?: string;
|
|
31
|
+
relationship?: string;
|
|
32
|
+
suspiciousActivity?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface LaborLinkageMetadata {
|
|
35
|
+
company?: string;
|
|
36
|
+
position?: string;
|
|
37
|
+
period?: string;
|
|
38
|
+
relationship?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface SocialCircleLinkageMetadata {
|
|
41
|
+
context?: string;
|
|
42
|
+
frequency?: string;
|
|
43
|
+
locations?: string[];
|
|
44
|
+
}
|
|
45
|
+
export interface PoliticalLinkageMetadata {
|
|
46
|
+
party?: string;
|
|
47
|
+
position?: string;
|
|
48
|
+
affiliation?: string;
|
|
49
|
+
activities?: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface CriminalLinkageMetadata {
|
|
52
|
+
activity?: string;
|
|
53
|
+
organization?: string;
|
|
54
|
+
role?: string;
|
|
55
|
+
caseNumbers?: string[];
|
|
56
|
+
}
|
|
57
|
+
export type LinkageMetadata = FamilyLinkageMetadata | CompanyLinkageMetadata | SocialMediaLinkageMetadata | LaborLinkageMetadata | SocialCircleLinkageMetadata | PoliticalLinkageMetadata | CriminalLinkageMetadata | Record<string, any>;
|
|
58
|
+
/**
|
|
59
|
+
* CharacterizationLinkage Entity
|
|
60
|
+
*
|
|
61
|
+
* Stores linkages/associations between the characterized person and
|
|
62
|
+
* other persons, companies, or entities of interest.
|
|
63
|
+
*
|
|
64
|
+
* Types of linkages:
|
|
65
|
+
* - FAMILY: Family relationships (brief characterization)
|
|
66
|
+
* - COMPANY: Company associations and partnerships
|
|
67
|
+
* - SOCIAL_MEDIA: Social media connections with suspicious individuals
|
|
68
|
+
* - LABOR: Professional/work relationships
|
|
69
|
+
* - SOCIAL_CIRCLE: Friends and close persons
|
|
70
|
+
* - POLITICAL: Political associations
|
|
71
|
+
* - CRIMINAL: Criminal associations
|
|
72
|
+
*/
|
|
73
|
+
export declare class CharacterizationLinkage extends EntityBase {
|
|
74
|
+
/**
|
|
75
|
+
* Type of linkage
|
|
76
|
+
*/
|
|
77
|
+
linkageType: LinkageType;
|
|
78
|
+
/**
|
|
79
|
+
* Name of the linked entity (person, company, etc.)
|
|
80
|
+
*/
|
|
81
|
+
targetName: string;
|
|
82
|
+
/**
|
|
83
|
+
* Cedula of the linked person (if applicable)
|
|
84
|
+
*/
|
|
85
|
+
targetCedula?: string;
|
|
86
|
+
/**
|
|
87
|
+
* RIF of the linked company (if applicable)
|
|
88
|
+
*/
|
|
89
|
+
targetRif?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Link to existing Person entity if the target exists in the system
|
|
92
|
+
*/
|
|
93
|
+
linkedPersonId?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Brief characterization of the linkage
|
|
96
|
+
*/
|
|
97
|
+
briefCharacterization?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Nature or description of the relationship
|
|
100
|
+
*/
|
|
101
|
+
relationshipNature?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Source of the information
|
|
104
|
+
*/
|
|
105
|
+
source?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Source quality rating (A-F scale)
|
|
108
|
+
*/
|
|
109
|
+
sourceQuality?: SourceQuality;
|
|
110
|
+
/**
|
|
111
|
+
* Is this a suspicious/concerning linkage?
|
|
112
|
+
*/
|
|
113
|
+
isSuspicious: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Level of concern (1-5, where 5 is highest)
|
|
116
|
+
*/
|
|
117
|
+
concernLevel?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Type-specific metadata
|
|
120
|
+
*/
|
|
121
|
+
metadata?: LinkageMetadata;
|
|
122
|
+
/**
|
|
123
|
+
* Additional notes
|
|
124
|
+
*/
|
|
125
|
+
notes?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Display order
|
|
128
|
+
*/
|
|
129
|
+
order: number;
|
|
130
|
+
/**
|
|
131
|
+
* Many-to-one relationship with PersonCharacterization
|
|
132
|
+
*/
|
|
133
|
+
personCharacterization: PersonCharacterization;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=characterization-linkage.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterization-linkage.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/characterization-linkage.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe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,CAAC,EAAE,eAAe,CAAC;IAE3B;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAId;;OAEG;IAOH,sBAAsB,EAAE,sBAAsB,CAAC;CAChD"}
|
|
@@ -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.CharacterizationLinkage = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_1 = require("../base/_base");
|
|
15
|
+
const person_characterization_entity_1 = require("./person-characterization.entity");
|
|
16
|
+
const characterization_enum_1 = require("../../enums/characterization.enum");
|
|
17
|
+
/**
|
|
18
|
+
* CharacterizationLinkage Entity
|
|
19
|
+
*
|
|
20
|
+
* Stores linkages/associations between the characterized person and
|
|
21
|
+
* other persons, companies, or entities of interest.
|
|
22
|
+
*
|
|
23
|
+
* Types of linkages:
|
|
24
|
+
* - FAMILY: Family relationships (brief characterization)
|
|
25
|
+
* - COMPANY: Company associations and partnerships
|
|
26
|
+
* - SOCIAL_MEDIA: Social media connections with suspicious individuals
|
|
27
|
+
* - LABOR: Professional/work relationships
|
|
28
|
+
* - SOCIAL_CIRCLE: Friends and close persons
|
|
29
|
+
* - POLITICAL: Political associations
|
|
30
|
+
* - CRIMINAL: Criminal associations
|
|
31
|
+
*/
|
|
32
|
+
let CharacterizationLinkage = class CharacterizationLinkage extends _base_1.EntityBase {
|
|
33
|
+
};
|
|
34
|
+
exports.CharacterizationLinkage = CharacterizationLinkage;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({
|
|
37
|
+
type: 'enum',
|
|
38
|
+
enum: characterization_enum_1.LinkageType,
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CharacterizationLinkage.prototype, "linkageType", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CharacterizationLinkage.prototype, "targetName", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CharacterizationLinkage.prototype, "targetCedula", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CharacterizationLinkage.prototype, "targetRif", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], CharacterizationLinkage.prototype, "linkedPersonId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CharacterizationLinkage.prototype, "briefCharacterization", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 300, nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CharacterizationLinkage.prototype, "relationshipNature", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 300, nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], CharacterizationLinkage.prototype, "source", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({
|
|
72
|
+
type: 'enum',
|
|
73
|
+
enum: characterization_enum_1.SourceQuality,
|
|
74
|
+
nullable: true,
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CharacterizationLinkage.prototype, "sourceQuality", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], CharacterizationLinkage.prototype, "isSuspicious", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], CharacterizationLinkage.prototype, "concernLevel", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
88
|
+
__metadata("design:type", Object)
|
|
89
|
+
], CharacterizationLinkage.prototype, "metadata", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], CharacterizationLinkage.prototype, "notes", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], CharacterizationLinkage.prototype, "order", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.ManyToOne)(() => person_characterization_entity_1.PersonCharacterization, (personCharacterization) => personCharacterization.linkages, { onDelete: 'CASCADE' }),
|
|
100
|
+
(0, typeorm_1.JoinColumn)(),
|
|
101
|
+
__metadata("design:type", person_characterization_entity_1.PersonCharacterization)
|
|
102
|
+
], CharacterizationLinkage.prototype, "personCharacterization", void 0);
|
|
103
|
+
exports.CharacterizationLinkage = CharacterizationLinkage = __decorate([
|
|
104
|
+
(0, typeorm_1.Entity)('characterization_linkage'),
|
|
105
|
+
(0, typeorm_1.Index)('idx_linkage_person_char', ['personCharacterization']),
|
|
106
|
+
(0, typeorm_1.Index)('idx_linkage_type', ['linkageType']),
|
|
107
|
+
(0, typeorm_1.Index)('idx_linkage_target', ['targetName'])
|
|
108
|
+
], CharacterizationLinkage);
|
|
109
|
+
//# sourceMappingURL=characterization-linkage.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterization-linkage.entity.js","sourceRoot":"","sources":["../../../src/entities/person/characterization-linkage.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,yCAA2C;AAC3C,qFAA0E;AAC1E,6EAA+E;AAwE/E;;;;;;;;;;;;;;GAcG;AAKI,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,kBAAU;CAyGtD,CAAA;AAzGY,0DAAuB;AASlC;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mCAAW;KAClB,CAAC;;4DACuB;AAMzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;2DACtB;AAMnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DAClC;AAMtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACrC;AAM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xB;IACA,IAAA,oBAAU,GAAE;8BACW,uDAAsB;uEAAC;kCAxGpC,uBAAuB;IAJnC,IAAA,gBAAM,EAAC,0BAA0B,CAAC;IAClC,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,wBAAwB,CAAC,CAAC;IAC5D,IAAA,eAAK,EAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,CAAC;IAC1C,IAAA,eAAK,EAAC,oBAAoB,EAAE,CAAC,YAAY,CAAC,CAAC;GAC/B,uBAAuB,CAyGnC"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { Person } from './person.entity';
|
|
3
|
+
import { CharacterizationType } from '../../enums/characterization.enum';
|
|
4
|
+
/**
|
|
5
|
+
* JSONB Types for Characterization
|
|
6
|
+
*/
|
|
7
|
+
export interface SocialMediaAccount {
|
|
8
|
+
url?: string;
|
|
9
|
+
username?: string;
|
|
10
|
+
verified?: boolean;
|
|
11
|
+
lastChecked?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SocialMediaData {
|
|
14
|
+
facebook?: SocialMediaAccount;
|
|
15
|
+
instagram?: SocialMediaAccount;
|
|
16
|
+
twitter?: SocialMediaAccount;
|
|
17
|
+
linkedin?: SocialMediaAccount;
|
|
18
|
+
tiktok?: SocialMediaAccount;
|
|
19
|
+
telegram?: SocialMediaAccount;
|
|
20
|
+
whatsapp?: {
|
|
21
|
+
phone?: string;
|
|
22
|
+
verified?: boolean;
|
|
23
|
+
};
|
|
24
|
+
others?: Array<{
|
|
25
|
+
platform: string;
|
|
26
|
+
} & SocialMediaAccount>;
|
|
27
|
+
}
|
|
28
|
+
export interface CNEData {
|
|
29
|
+
estado?: string;
|
|
30
|
+
municipio?: string;
|
|
31
|
+
parroquia?: string;
|
|
32
|
+
centroVotacion?: string;
|
|
33
|
+
mesa?: string;
|
|
34
|
+
codigoCentro?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IVSSEmploymentData {
|
|
37
|
+
empresa?: string;
|
|
38
|
+
periodoDesde?: string;
|
|
39
|
+
periodoHasta?: string;
|
|
40
|
+
cargo?: string;
|
|
41
|
+
salario?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface SARENCatastroData {
|
|
44
|
+
tipo: 'INMUEBLE' | 'FINCA' | 'EDIFICIO' | 'TERRENO' | 'LOCAL' | 'OTRO';
|
|
45
|
+
ubicacion?: string;
|
|
46
|
+
registro?: string;
|
|
47
|
+
fechaRegistro?: string;
|
|
48
|
+
superficie?: string;
|
|
49
|
+
valorCatastral?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* PersonCharacterization Entity
|
|
53
|
+
*
|
|
54
|
+
* Stores the complete characterization/profile of a person for intelligence purposes.
|
|
55
|
+
* This entity aggregates manual input data that complements the automated data
|
|
56
|
+
* from other sources (SAIME, IPSFA, SENIAT, etc.).
|
|
57
|
+
*
|
|
58
|
+
* The characterization can be exported to DOCX/PDF format for distribution.
|
|
59
|
+
*/
|
|
60
|
+
export declare class PersonCharacterization extends EntityBase {
|
|
61
|
+
/**
|
|
62
|
+
* Type of characterization: INVESTIGACION (full investigation) or COMPROBACION (verification)
|
|
63
|
+
*/
|
|
64
|
+
profileType: CharacterizationType;
|
|
65
|
+
/**
|
|
66
|
+
* Current position/job of the person
|
|
67
|
+
*/
|
|
68
|
+
cargoActual?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Last known position/job
|
|
71
|
+
*/
|
|
72
|
+
ultimoCargoConocido?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Profession/occupation
|
|
75
|
+
*/
|
|
76
|
+
profesion?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Social media accounts and profiles
|
|
79
|
+
*/
|
|
80
|
+
socialMedia?: SocialMediaData;
|
|
81
|
+
/**
|
|
82
|
+
* Email addresses
|
|
83
|
+
*/
|
|
84
|
+
emails?: string[];
|
|
85
|
+
/**
|
|
86
|
+
* CNE (Electoral) data - Estado, Municipio, Parroquia, Centro de votacion
|
|
87
|
+
*/
|
|
88
|
+
cneData?: CNEData;
|
|
89
|
+
/**
|
|
90
|
+
* IVSS last employment record
|
|
91
|
+
*/
|
|
92
|
+
ivssLastEmployment?: IVSSEmploymentData;
|
|
93
|
+
/**
|
|
94
|
+
* SAREN properties (cadastral data)
|
|
95
|
+
*/
|
|
96
|
+
sarenProperties?: SARENCatastroData[];
|
|
97
|
+
/**
|
|
98
|
+
* Political ideology description
|
|
99
|
+
*/
|
|
100
|
+
ideologiaPolitica?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Political party affiliation
|
|
103
|
+
*/
|
|
104
|
+
filiacionPolitica?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Religion
|
|
107
|
+
*/
|
|
108
|
+
religion?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Known aliases/nicknames
|
|
111
|
+
*/
|
|
112
|
+
alias?: string[];
|
|
113
|
+
/**
|
|
114
|
+
* Home addresses (additional to SENIAT/IPSFA)
|
|
115
|
+
*/
|
|
116
|
+
direccionesDomiciliarias?: Array<{
|
|
117
|
+
direccion: string;
|
|
118
|
+
tipo?: string;
|
|
119
|
+
fuente?: string;
|
|
120
|
+
}>;
|
|
121
|
+
/**
|
|
122
|
+
* General assessment of enemy activities involvement
|
|
123
|
+
*/
|
|
124
|
+
valoracionGeneral?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Detected personal traits, characteristics, and behaviors
|
|
127
|
+
*/
|
|
128
|
+
rasgosPersonales?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Probable courses of action or scenarios
|
|
131
|
+
*/
|
|
132
|
+
cursosProbables?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Operational possibilities of the target
|
|
135
|
+
*/
|
|
136
|
+
posibilidadesOperativas?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Information origin - where is the family from?
|
|
139
|
+
*/
|
|
140
|
+
informacionOrigen?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Academic history - where did they study?
|
|
143
|
+
*/
|
|
144
|
+
historialAcademico?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Labor history - where have they worked?
|
|
147
|
+
*/
|
|
148
|
+
historialLaboral?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Judicial history - accusations, trials in TSJ
|
|
151
|
+
*/
|
|
152
|
+
historialJudicial?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Information from open sources - detected trends in social media
|
|
155
|
+
*/
|
|
156
|
+
informacionFuentesAbiertas?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Closed operational information - received from sources
|
|
159
|
+
*/
|
|
160
|
+
informacionOperativaCerrada?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Profile completion percentage (0-100)
|
|
163
|
+
*/
|
|
164
|
+
completionPercentage: number;
|
|
165
|
+
/**
|
|
166
|
+
* Last time the characterization was exported
|
|
167
|
+
*/
|
|
168
|
+
lastExportedAt?: Date;
|
|
169
|
+
/**
|
|
170
|
+
* Export count
|
|
171
|
+
*/
|
|
172
|
+
exportCount: number;
|
|
173
|
+
/**
|
|
174
|
+
* One-to-one relationship with Person
|
|
175
|
+
*/
|
|
176
|
+
person?: Person;
|
|
177
|
+
/**
|
|
178
|
+
* One-to-many relationship with CharacterizationAnnex
|
|
179
|
+
* Import dynamically to avoid circular dependency
|
|
180
|
+
*/
|
|
181
|
+
annexes?: any[];
|
|
182
|
+
/**
|
|
183
|
+
* One-to-many relationship with CharacterizationFamily
|
|
184
|
+
*/
|
|
185
|
+
familyMembers?: any[];
|
|
186
|
+
/**
|
|
187
|
+
* One-to-many relationship with CharacterizationLinkage
|
|
188
|
+
*/
|
|
189
|
+
linkages?: any[];
|
|
190
|
+
}
|
|
191
|
+
//# sourceMappingURL=person-characterization.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-characterization.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person-characterization.entity.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU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