@sigmatech/pergamo 0.1.44 → 0.1.47
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/index.d.ts +4 -0
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +4 -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 +94 -0
- package/dist/entities/person/person-characterization.entity.d.ts.map +1 -0
- package/dist/entities/person/person-characterization.entity.js +120 -0
- package/dist/entities/person/person-characterization.entity.js.map +1 -0
- package/dist/entities/person/person.entity.d.ts +59 -0
- package/dist/entities/person/person.entity.d.ts.map +1 -1
- package/dist/entities/person/person.entity.js +32 -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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +39 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +7 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export * from "./person/person-repatriado.entity";
|
|
|
19
19
|
export * from "./person/person-police-data.entity";
|
|
20
20
|
export * from "./person/person-prohibition.entity";
|
|
21
21
|
export * from "./person/person-data-telecom.entity";
|
|
22
|
+
export * from "./person/person-characterization.entity";
|
|
23
|
+
export * from "./person/characterization-annex.entity";
|
|
24
|
+
export * from "./person/characterization-family.entity";
|
|
25
|
+
export * from "./person/characterization-linkage.entity";
|
|
22
26
|
export * from "./vehicle";
|
|
23
27
|
export * from "./telefonia/telefonia.entity";
|
|
24
28
|
export * from "./telefonia/historial-ubicacion.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;
|
|
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,6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cAAc,4BAA4B,CAAC;AAG3C,cAAc,qCAAqC,CAAC;AAGpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,yCAAyC,CAAC;AAGxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+CAA+C,CAAC;AAG9D,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAG1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AAGvD,cAAc,eAAe,CAAC;AAG9B,cAAc,QAAQ,CAAC;AAGvB,cAAc,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"}
|
package/dist/entities/index.js
CHANGED
|
@@ -38,6 +38,10 @@ __exportStar(require("./person/person-repatriado.entity"), exports);
|
|
|
38
38
|
__exportStar(require("./person/person-police-data.entity"), exports);
|
|
39
39
|
__exportStar(require("./person/person-prohibition.entity"), exports);
|
|
40
40
|
__exportStar(require("./person/person-data-telecom.entity"), exports);
|
|
41
|
+
__exportStar(require("./person/person-characterization.entity"), exports);
|
|
42
|
+
__exportStar(require("./person/characterization-annex.entity"), exports);
|
|
43
|
+
__exportStar(require("./person/characterization-family.entity"), exports);
|
|
44
|
+
__exportStar(require("./person/characterization-linkage.entity"), exports);
|
|
41
45
|
// Vehicle module
|
|
42
46
|
__exportStar(require("./vehicle"), exports);
|
|
43
47
|
// Telefonia 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;
|
|
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;AAEzD,iBAAiB;AACjB,4CAA0B;AAE1B,mBAAmB;AACnB,+DAA6C;AAC7C,yEAAuD;AACvD,yDAAuC;AACvC,sEAAoD;AACpD,uEAAqD;AACrD,oEAAkD;AAClD,oEAAkD;AAClD,2EAAyD;AAEzD,kBAAkB;AAClB,6DAA2C;AAC3C,yEAAuD;AAEvD,cAAc;AACd,qDAAmC;AACnC,2DAAyC;AACzC,0DAAwC;AACxC,4DAA0C;AAE1C,eAAe;AACf,uDAAqC;AAErC,cAAc;AACd,yDAAuC;AACvC,yDAAuC;AAEvC,cAAc;AACd,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,oEAAkD;AAClD,4DAA0C;AAE1C,sBAAsB;AACtB,8EAA4D;AAC5D,gFAA8D;AAC9D,8DAA4C;AAE5C,uBAAuB;AACvB,yDAAuC;AACvC,6DAA2C;AAE3C,kBAAkB;AAClB,sEAAoD;AAEpD,sBAAsB;AACtB,iEAA+C;AAC/C,wEAAsD;AACtD,oEAAkD;AAElD,qBAAqB;AACrB,0EAAwD;AAExD,uBAAuB;AACvB,6EAA2D;AAC3D,gFAA8D;AAE9D,mBAAmB;AACnB,qEAAmD;AACnD,4EAA0D;AAE1D,sBAAsB;AACtB,2EAAyD;AACzD,wEAAsD;AACtD,yEAAuD;AAEvD,cAAc;AACd,gDAA8B;AAE9B,cAAc;AACd,yCAAuB;AAEvB,aAAa;AACb,sDAAoC;AAEpC,YAAY;AACZ,qDAAmC;AAEnC,yBAAyB;AACzB,oFAAkE;AAClE,gEAA8C;AAC9C,yDAAuC;AAEvC,aAAa;AACb,6DAA2C;AAE3C,aAAa;AACb,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,oEAAkD;AAElD,kBAAkB;AAClB,6CAA2B;AAE3B,eAAe;AACf,0CAAwB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { PersonCharacterization } from './person-characterization.entity';
|
|
3
|
+
import { SourceQuality } from '../../enums/characterization.enum';
|
|
4
|
+
/**
|
|
5
|
+
* CharacterizationAnnex Entity
|
|
6
|
+
*
|
|
7
|
+
* Stores annexes (images with descriptions) for a person's characterization.
|
|
8
|
+
* Each annex includes:
|
|
9
|
+
* - Image reference
|
|
10
|
+
* - Description of what/who is shown
|
|
11
|
+
* - GFH (Geographic-Temporal reference)
|
|
12
|
+
* - Source attribution
|
|
13
|
+
* - Quality rating
|
|
14
|
+
*/
|
|
15
|
+
export declare class CharacterizationAnnex extends EntityBase {
|
|
16
|
+
/**
|
|
17
|
+
* URL or path to the image
|
|
18
|
+
*/
|
|
19
|
+
imageUrl: string;
|
|
20
|
+
/**
|
|
21
|
+
* Thumbnail URL for faster loading
|
|
22
|
+
*/
|
|
23
|
+
thumbnailUrl?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Title or brief identifier for the annex
|
|
26
|
+
*/
|
|
27
|
+
title?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Detailed description of the image content.
|
|
30
|
+
* Should include: persons/objects shown, context, and any relevant details
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
* GFH - Geographic-Historical-Feature reference
|
|
35
|
+
* Format: "Location, Date/Time" or other geotemporal reference
|
|
36
|
+
*/
|
|
37
|
+
gfh?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Source of the information/image
|
|
40
|
+
* E.g., "Instagram", "Operativa", "CICPC", etc.
|
|
41
|
+
*/
|
|
42
|
+
source?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Source quality rating (A-F scale)
|
|
45
|
+
*/
|
|
46
|
+
sourceQuality?: SourceQuality;
|
|
47
|
+
/**
|
|
48
|
+
* Display order for the annex
|
|
49
|
+
*/
|
|
50
|
+
order: number;
|
|
51
|
+
/**
|
|
52
|
+
* File size in bytes
|
|
53
|
+
*/
|
|
54
|
+
fileSize?: number;
|
|
55
|
+
/**
|
|
56
|
+
* MIME type of the file
|
|
57
|
+
*/
|
|
58
|
+
mimeType?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Original filename
|
|
61
|
+
*/
|
|
62
|
+
originalFilename?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Image dimensions
|
|
65
|
+
*/
|
|
66
|
+
dimensions?: {
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Additional metadata
|
|
72
|
+
*/
|
|
73
|
+
metadata?: Record<string, any>;
|
|
74
|
+
/**
|
|
75
|
+
* Many-to-one relationship with PersonCharacterization
|
|
76
|
+
*/
|
|
77
|
+
characterization: PersonCharacterization;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=characterization-annex.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterization-annex.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/characterization-annex.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE;;;;;;;;;;GAUG;AACH,qBAGa,qBAAsB,SAAQ,UAAU;IAEnD;;OAEG;IAEH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAMH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IAEH,UAAU,CAAC,EAAE;QACX,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAI/B;;OAEG;IAOH,gBAAgB,EAAE,sBAAsB,CAAC;CAC1C"}
|
|
@@ -0,0 +1,97 @@
|
|
|
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.CharacterizationAnnex = 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
|
+
* CharacterizationAnnex Entity
|
|
19
|
+
*
|
|
20
|
+
* Stores annexes (images with descriptions) for a person's characterization.
|
|
21
|
+
* Each annex includes:
|
|
22
|
+
* - Image reference
|
|
23
|
+
* - Description of what/who is shown
|
|
24
|
+
* - GFH (Geographic-Temporal reference)
|
|
25
|
+
* - Source attribution
|
|
26
|
+
* - Quality rating
|
|
27
|
+
*/
|
|
28
|
+
let CharacterizationAnnex = class CharacterizationAnnex extends _base_1.EntityBase {
|
|
29
|
+
};
|
|
30
|
+
exports.CharacterizationAnnex = CharacterizationAnnex;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 1000 }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CharacterizationAnnex.prototype, "imageUrl", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 1000, nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CharacterizationAnnex.prototype, "thumbnailUrl", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 300, nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CharacterizationAnnex.prototype, "title", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CharacterizationAnnex.prototype, "description", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], CharacterizationAnnex.prototype, "gfh", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 300, nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], CharacterizationAnnex.prototype, "source", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({
|
|
57
|
+
type: 'enum',
|
|
58
|
+
enum: characterization_enum_1.SourceQuality,
|
|
59
|
+
nullable: true,
|
|
60
|
+
}),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CharacterizationAnnex.prototype, "sourceQuality", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], CharacterizationAnnex.prototype, "order", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], CharacterizationAnnex.prototype, "fileSize", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], CharacterizationAnnex.prototype, "mimeType", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], CharacterizationAnnex.prototype, "originalFilename", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], CharacterizationAnnex.prototype, "dimensions", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
85
|
+
__metadata("design:type", Object)
|
|
86
|
+
], CharacterizationAnnex.prototype, "metadata", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.ManyToOne)(() => person_characterization_entity_1.PersonCharacterization, (characterization) => characterization.annexes, { onDelete: 'CASCADE' }),
|
|
89
|
+
(0, typeorm_1.JoinColumn)(),
|
|
90
|
+
__metadata("design:type", person_characterization_entity_1.PersonCharacterization)
|
|
91
|
+
], CharacterizationAnnex.prototype, "characterization", void 0);
|
|
92
|
+
exports.CharacterizationAnnex = CharacterizationAnnex = __decorate([
|
|
93
|
+
(0, typeorm_1.Entity)('characterization_annex'),
|
|
94
|
+
(0, typeorm_1.Index)('idx_annex_characterization', ['characterization']),
|
|
95
|
+
(0, typeorm_1.Index)('idx_annex_order', ['order'])
|
|
96
|
+
], CharacterizationAnnex);
|
|
97
|
+
//# sourceMappingURL=characterization-annex.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterization-annex.entity.js","sourceRoot":"","sources":["../../../src/entities/person/characterization-annex.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,yCAA2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AM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACvC;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DAC/B;AAM1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAIxC;AAMF;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACX;AAa/B;IANC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,uDAAsB,EAC5B,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAC9C,EAAE,QAAQ,EAAE,SAAS,EAAE,CACxB;IACA,IAAA,oBAAU,GAAE;8BACK,uDAAsB;+DAAC;gCArG9B,qBAAqB;IAHjC,IAAA,gBAAM,EAAC,wBAAwB,CAAC;IAChC,IAAA,eAAK,EAAC,4BAA4B,EAAE,CAAC,kBAAkB,CAAC,CAAC;IACzD,IAAA,eAAK,EAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC,CAAC;GACvB,qBAAqB,CAsGjC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { PersonCharacterization } from './person-characterization.entity';
|
|
3
|
+
import { FamilyRelationship } from '../../enums/characterization.enum';
|
|
4
|
+
/**
|
|
5
|
+
* CharacterizationFamily Entity
|
|
6
|
+
*
|
|
7
|
+
* Stores extended family member information for a person's characterization.
|
|
8
|
+
* This includes detailed information about each family member that goes beyond
|
|
9
|
+
* what is typically stored in the Person entity relationships.
|
|
10
|
+
*
|
|
11
|
+
* Fields include: identification, contact, political tendency, profession,
|
|
12
|
+
* workplace, residence, and social status.
|
|
13
|
+
*/
|
|
14
|
+
export declare class CharacterizationFamily extends EntityBase {
|
|
15
|
+
/**
|
|
16
|
+
* Full name of the family member
|
|
17
|
+
*/
|
|
18
|
+
fullName: string;
|
|
19
|
+
/**
|
|
20
|
+
* Cedula letter (V, E, etc.)
|
|
21
|
+
*/
|
|
22
|
+
cedulaLetter?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Cedula number
|
|
25
|
+
*/
|
|
26
|
+
cedula?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Birth date
|
|
29
|
+
*/
|
|
30
|
+
birthDate?: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Phone number(s)
|
|
33
|
+
*/
|
|
34
|
+
phone?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Additional phone numbers
|
|
37
|
+
*/
|
|
38
|
+
additionalPhones?: string[];
|
|
39
|
+
/**
|
|
40
|
+
* Type of family relationship
|
|
41
|
+
*/
|
|
42
|
+
relationship: FamilyRelationship;
|
|
43
|
+
/**
|
|
44
|
+
* Custom relationship description (when relationship is OTRO)
|
|
45
|
+
*/
|
|
46
|
+
relationshipCustom?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Political tendency/affiliation
|
|
49
|
+
*/
|
|
50
|
+
politicalTendency?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Profession/occupation
|
|
53
|
+
*/
|
|
54
|
+
profession?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Workplace name and details
|
|
57
|
+
*/
|
|
58
|
+
workplace?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Residence address
|
|
61
|
+
*/
|
|
62
|
+
residence?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Social status description
|
|
65
|
+
*/
|
|
66
|
+
socialStatus?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Companies owned by this family member
|
|
69
|
+
*/
|
|
70
|
+
companies?: Array<{
|
|
71
|
+
name: string;
|
|
72
|
+
rif?: string;
|
|
73
|
+
activity?: string;
|
|
74
|
+
}>;
|
|
75
|
+
/**
|
|
76
|
+
* Brief characterization of this family member
|
|
77
|
+
*/
|
|
78
|
+
briefCharacterization?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Link to existing Person entity if this family member exists in the system
|
|
81
|
+
*/
|
|
82
|
+
linkedPersonId?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Is this family member deceased?
|
|
85
|
+
*/
|
|
86
|
+
isDeceased: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Additional notes
|
|
89
|
+
*/
|
|
90
|
+
notes?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Display order
|
|
93
|
+
*/
|
|
94
|
+
order: number;
|
|
95
|
+
/**
|
|
96
|
+
* Many-to-one relationship with PersonCharacterization
|
|
97
|
+
*/
|
|
98
|
+
characterization: PersonCharacterization;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=characterization-family.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"characterization-family.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/characterization-family.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE;;;;;;;;;GASG;AACH,qBAIa,sBAAuB,SAAQ,UAAU;IAEpD;;OAEG;IAEH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;OAEG;IAMH,YAAY,EAAE,kBAAkB,CAAC;IAEjC;;OAEG;IAEH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IAEH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IAEH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IAEH,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IAEH;;OAEG;IAEH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IAEH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IAEH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAId;;OAEG;IAOH,gBAAgB,EAAE,sBAAsB,CAAC;CAC1C"}
|
|
@@ -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;CAwIrD,CAAA;AAxIY,wDAAsB;AAMjC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wDACxB;AAMjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACjC;AAMtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACxC;AAMhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC7B,IAAI;yDAAC;AAMjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC1C;AAMf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,E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AAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACjB;AAMxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0DACxB;AAMpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAC1B;AAMf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACtB;AAad;IANC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,uDAAsB,EAC5B,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,aAAa,EACpD,EAAE,QAAQ,EAAE,SAAS,EAAE,CACxB;IACA,IAAA,oBAAU,GAAE;8BACK,uDAAsB;gEAAC;iCAvI9B,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,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,MAAM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