@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,114 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { Case } from '../case/case.entity';
|
|
3
|
+
/**
|
|
4
|
+
* Estructura de un nodo del gráfico
|
|
5
|
+
*/
|
|
6
|
+
export interface GraphNodeData {
|
|
7
|
+
id: string;
|
|
8
|
+
type: 'person' | 'phone' | 'vehicle' | 'company' | 'address' | 'email' | 'control-point';
|
|
9
|
+
data: Record<string, any>;
|
|
10
|
+
position: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
};
|
|
14
|
+
isControlPoint?: boolean;
|
|
15
|
+
parentEdgeId?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Estructura de una arista del gráfico
|
|
19
|
+
*/
|
|
20
|
+
export interface GraphEdgeData {
|
|
21
|
+
id: string;
|
|
22
|
+
source: string;
|
|
23
|
+
target: string;
|
|
24
|
+
type?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
controlPoints?: Array<{
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
}>;
|
|
30
|
+
properties?: {
|
|
31
|
+
source?: string;
|
|
32
|
+
relationshipType?: string;
|
|
33
|
+
relationshipLabel?: string;
|
|
34
|
+
timestamp?: string;
|
|
35
|
+
dataSource?: string;
|
|
36
|
+
confidence?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Estructura completa del gráfico almacenado
|
|
41
|
+
*/
|
|
42
|
+
export interface GraphData {
|
|
43
|
+
nodes: GraphNodeData[];
|
|
44
|
+
edges: GraphEdgeData[];
|
|
45
|
+
viewport?: {
|
|
46
|
+
zoom: number;
|
|
47
|
+
pan: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Configuración de layout del gráfico
|
|
55
|
+
*/
|
|
56
|
+
export interface GraphLayoutConfig {
|
|
57
|
+
layout?: string;
|
|
58
|
+
showSource?: boolean;
|
|
59
|
+
theme?: 'light' | 'dark';
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* GraphCanvas Entity
|
|
63
|
+
*
|
|
64
|
+
* Almacena gráficos de análisis de relaciones completos.
|
|
65
|
+
* Cada canvas representa una pestaña/workspace de gráfico.
|
|
66
|
+
*
|
|
67
|
+
* El campo graphData almacena toda la estructura del gráfico como JSON:
|
|
68
|
+
* - nodes: Lista de nodos con sus posiciones y datos
|
|
69
|
+
* - edges: Lista de aristas con sus propiedades
|
|
70
|
+
* - viewport: Estado de zoom y pan del canvas
|
|
71
|
+
*/
|
|
72
|
+
export declare class GraphCanvas extends EntityBase {
|
|
73
|
+
/**
|
|
74
|
+
* Nombre del gráfico
|
|
75
|
+
*/
|
|
76
|
+
name: string;
|
|
77
|
+
/**
|
|
78
|
+
* Descripción opcional del gráfico
|
|
79
|
+
*/
|
|
80
|
+
description?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Datos completos del gráfico (nodos, aristas, viewport)
|
|
83
|
+
*/
|
|
84
|
+
graphData: GraphData;
|
|
85
|
+
/**
|
|
86
|
+
* Configuración de visualización del gráfico
|
|
87
|
+
*/
|
|
88
|
+
layoutConfig?: GraphLayoutConfig;
|
|
89
|
+
/**
|
|
90
|
+
* Caso vinculado (opcional)
|
|
91
|
+
*/
|
|
92
|
+
case?: Case;
|
|
93
|
+
/**
|
|
94
|
+
* Si es el gráfico por defecto del usuario
|
|
95
|
+
*/
|
|
96
|
+
isDefault: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Orden de la pestaña para el usuario
|
|
99
|
+
*/
|
|
100
|
+
sortOrder: number;
|
|
101
|
+
/**
|
|
102
|
+
* Última vez que se abrió el gráfico
|
|
103
|
+
*/
|
|
104
|
+
lastOpenedAt?: Date;
|
|
105
|
+
/**
|
|
106
|
+
* Número de nodos en el gráfico (para estadísticas rápidas)
|
|
107
|
+
*/
|
|
108
|
+
nodeCount: number;
|
|
109
|
+
/**
|
|
110
|
+
* Número de aristas en el gráfico (para estadísticas rápidas)
|
|
111
|
+
*/
|
|
112
|
+
edgeCount: number;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=graph-canvas.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-canvas.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/graph/graph-canvas.entity.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,eAAe,CAAC;IACzF,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,CAAC,E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CAAC;IAEnB;;OAEG;IAEH,SAAS,EAAG,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.GraphCanvas = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _base_1 = require("../base/_base");
|
|
15
|
+
const case_entity_1 = require("../case/case.entity");
|
|
16
|
+
/**
|
|
17
|
+
* GraphCanvas Entity
|
|
18
|
+
*
|
|
19
|
+
* Almacena gráficos de análisis de relaciones completos.
|
|
20
|
+
* Cada canvas representa una pestaña/workspace de gráfico.
|
|
21
|
+
*
|
|
22
|
+
* El campo graphData almacena toda la estructura del gráfico como JSON:
|
|
23
|
+
* - nodes: Lista de nodos con sus posiciones y datos
|
|
24
|
+
* - edges: Lista de aristas con sus propiedades
|
|
25
|
+
* - viewport: Estado de zoom y pan del canvas
|
|
26
|
+
*/
|
|
27
|
+
let GraphCanvas = class GraphCanvas extends _base_1.EntityBase {
|
|
28
|
+
};
|
|
29
|
+
exports.GraphCanvas = GraphCanvas;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], GraphCanvas.prototype, "name", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], GraphCanvas.prototype, "description", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'jsonb', name: 'graph_data', default: '{"nodes":[],"edges":[]}' }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], GraphCanvas.prototype, "graphData", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'jsonb', name: 'layout_config', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], GraphCanvas.prototype, "layoutConfig", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.ManyToOne)(() => case_entity_1.Case, { nullable: true, onDelete: 'SET NULL' }),
|
|
48
|
+
(0, typeorm_1.JoinColumn)({ name: 'case_id' }),
|
|
49
|
+
__metadata("design:type", case_entity_1.Case)
|
|
50
|
+
], GraphCanvas.prototype, "case", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'boolean', name: 'is_default', default: false }),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], GraphCanvas.prototype, "isDefault", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'int', name: 'sort_order', default: 0 }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], GraphCanvas.prototype, "sortOrder", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'timestamp', name: 'last_opened_at', nullable: true }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], GraphCanvas.prototype, "lastOpenedAt", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'int', name: 'node_count', default: 0 }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], GraphCanvas.prototype, "nodeCount", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ type: 'int', name: 'edge_count', default: 0 }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], GraphCanvas.prototype, "edgeCount", void 0);
|
|
71
|
+
exports.GraphCanvas = GraphCanvas = __decorate([
|
|
72
|
+
(0, typeorm_1.Entity)('graph_canvas'),
|
|
73
|
+
(0, typeorm_1.Index)('graph_canvas_tenant_idx', ['tenantId']),
|
|
74
|
+
(0, typeorm_1.Index)('graph_canvas_created_by_idx', ['createdBy']),
|
|
75
|
+
(0, typeorm_1.Index)('graph_canvas_case_idx', ['case']),
|
|
76
|
+
(0, typeorm_1.Index)('graph_canvas_is_default_idx', ['isDefault']),
|
|
77
|
+
(0, typeorm_1.Index)('graph_canvas_last_opened_idx', ['lastOpenedAt'])
|
|
78
|
+
], GraphCanvas);
|
|
79
|
+
//# sourceMappingURL=graph-canvas.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-canvas.entity.js","sourceRoot":"","sources":["../../../src/entities/graph/graph-canvas.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,yCAA2C;AAC3C,qDAA2C;AAuD3C;;;;;;;;;;GAUG;AAOI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kBAAU;CA6D1C,CAAA;AA7DY,kCAAW;AAKtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;yCAC3B;AAMd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACpB;AAMrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAA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ACnD,IAAA,eAAK,EAAC,uBAAuB,EAAE,CAAC,MAAM,CAAC,CAAC;IACxC,IAAA,eAAK,EAAC,6BAA6B,EAAE,CAAC,WAAW,CAAC,CAAC;IACnD,IAAA,eAAK,EAAC,8BAA8B,EAAE,CAAC,cAAc,CAAC,CAAC;GAC3C,WAAW,CA6DvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/graph/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./graph-canvas.entity"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/graph/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
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";
|
|
@@ -72,4 +76,5 @@ export * from "./bot/bot-command-log.entity";
|
|
|
72
76
|
export * from "./bot/bot-search-request.entity";
|
|
73
77
|
export * from "./bot/bot-location-request.entity";
|
|
74
78
|
export * from "./telegram";
|
|
79
|
+
export * from "./graph";
|
|
75
80
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,CAA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A6B,CAAC;AAG5C,cAAc,wBAAwB,CAAC;AACvC,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
|
|
@@ -114,4 +118,6 @@ __exportStar(require("./bot/bot-search-request.entity"), exports);
|
|
|
114
118
|
__exportStar(require("./bot/bot-location-request.entity"), exports);
|
|
115
119
|
// Telegram module
|
|
116
120
|
__exportStar(require("./telegram"), exports);
|
|
121
|
+
// Graph module
|
|
122
|
+
__exportStar(require("./graph"), exports);
|
|
117
123
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,yCAA2C;AAC3C,qFAA0E;AAC1E,6EAAkE;AAElE;;;;;;;;;;GAUG;AAII,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,kBAAU;CAsGpD,CAAA;AAtGY,sDAAqB;AAMhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;uDACzB;AAMjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACpC;AAMtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAC1C;AAOf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACpB;AAOrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC5C;AAOb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACzC;AAUhB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,qCAAa;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;;4DAC4B;AAM9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACtB;AAMd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACtB;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,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;IA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