@sigmatech/pergamo 0.1.85 → 0.1.87
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EntityBase } from
|
|
2
|
-
import { Person } from
|
|
3
|
-
import { Gremio } from
|
|
1
|
+
import { EntityBase } from "../base/_base";
|
|
2
|
+
import { Person } from "../person/person.entity";
|
|
3
|
+
import { Gremio } from "./gremio.entity";
|
|
4
4
|
export declare enum LineaActividadEnemiga {
|
|
5
5
|
ESPIONAJE = "ESPIONAJE",
|
|
6
6
|
SABOTAJE = "SABOTAJE",
|
|
@@ -38,7 +38,7 @@ export declare class PersonPio extends EntityBase {
|
|
|
38
38
|
*/
|
|
39
39
|
nivelAmenaza: NivelAmenaza;
|
|
40
40
|
/** Índice de Interés Operativo — valoración del analista */
|
|
41
|
-
iio
|
|
41
|
+
iio?: string;
|
|
42
42
|
/** Dirección de residencia u operación */
|
|
43
43
|
direccion?: string;
|
|
44
44
|
/** Estado de influencia principal */
|
|
@@ -62,7 +62,7 @@ export declare class PersonPio extends EntityBase {
|
|
|
62
62
|
* Estructura: { type: "Point", coordinates: [lng, lat] }
|
|
63
63
|
*/
|
|
64
64
|
ubicacion?: {
|
|
65
|
-
type:
|
|
65
|
+
type: "Point";
|
|
66
66
|
coordinates: [number, number];
|
|
67
67
|
};
|
|
68
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-pio.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/pio/person-pio.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"person-pio.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/pio/person-pio.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,i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,CAAC,CAAA;KAAE,CAAC;CAC9D"}
|
|
@@ -42,80 +42,112 @@ let PersonPio = class PersonPio extends _base_1.EntityBase {
|
|
|
42
42
|
exports.PersonPio = PersonPio;
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, typeorm_1.OneToOne)(() => person_entity_1.Person, { eager: true, nullable: false }),
|
|
45
|
-
(0, typeorm_1.JoinColumn)({ name:
|
|
45
|
+
(0, typeorm_1.JoinColumn)({ name: "person_id" }),
|
|
46
46
|
__metadata("design:type", person_entity_1.Person)
|
|
47
47
|
], PersonPio.prototype, "person", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, typeorm_1.ManyToMany)(() => gremio_entity_1.Gremio, { eager: true }),
|
|
50
50
|
(0, typeorm_1.JoinTable)({
|
|
51
|
-
name:
|
|
52
|
-
schema:
|
|
53
|
-
joinColumn: { name:
|
|
54
|
-
inverseJoinColumn: { name:
|
|
51
|
+
name: "person_pio_gremios",
|
|
52
|
+
schema: "intel",
|
|
53
|
+
joinColumn: { name: "person_pio_id", referencedColumnName: "id" },
|
|
54
|
+
inverseJoinColumn: { name: "gremio_id", referencedColumnName: "id" },
|
|
55
55
|
}),
|
|
56
56
|
__metadata("design:type", Array)
|
|
57
57
|
], PersonPio.prototype, "gremios", void 0);
|
|
58
58
|
__decorate([
|
|
59
59
|
(0, typeorm_1.Column)({
|
|
60
|
-
name:
|
|
61
|
-
type:
|
|
60
|
+
name: "linea_actividad",
|
|
61
|
+
type: "simple-array",
|
|
62
62
|
}),
|
|
63
63
|
__metadata("design:type", Array)
|
|
64
64
|
], PersonPio.prototype, "lineasActividad", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, typeorm_1.Column)({
|
|
67
|
-
name:
|
|
68
|
-
type:
|
|
67
|
+
name: "nivel_amenaza",
|
|
68
|
+
type: "enum",
|
|
69
69
|
enum: NivelAmenaza,
|
|
70
70
|
}),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
72
|
], PersonPio.prototype, "nivelAmenaza", void 0);
|
|
73
73
|
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ name:
|
|
74
|
+
(0, typeorm_1.Column)({ name: "iio", type: "text", nullable: true }),
|
|
75
75
|
__metadata("design:type", String)
|
|
76
76
|
], PersonPio.prototype, "iio", void 0);
|
|
77
77
|
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ name:
|
|
78
|
+
(0, typeorm_1.Column)({ name: "direccion", type: "varchar", length: 1000, nullable: true }),
|
|
79
79
|
__metadata("design:type", String)
|
|
80
80
|
], PersonPio.prototype, "direccion", void 0);
|
|
81
81
|
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({
|
|
82
|
+
(0, typeorm_1.Column)({
|
|
83
|
+
name: "estado_influencia",
|
|
84
|
+
type: "varchar",
|
|
85
|
+
length: 100,
|
|
86
|
+
nullable: true,
|
|
87
|
+
}),
|
|
83
88
|
__metadata("design:type", String)
|
|
84
89
|
], PersonPio.prototype, "estadoInfluencia", void 0);
|
|
85
90
|
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({
|
|
91
|
+
(0, typeorm_1.Column)({
|
|
92
|
+
name: "municipio_influencia",
|
|
93
|
+
type: "varchar",
|
|
94
|
+
length: 255,
|
|
95
|
+
nullable: true,
|
|
96
|
+
}),
|
|
87
97
|
__metadata("design:type", String)
|
|
88
98
|
], PersonPio.prototype, "municipioInfluencia", void 0);
|
|
89
99
|
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({
|
|
100
|
+
(0, typeorm_1.Column)({
|
|
101
|
+
name: "sector_partido_politico",
|
|
102
|
+
type: "varchar",
|
|
103
|
+
length: 255,
|
|
104
|
+
nullable: true,
|
|
105
|
+
}),
|
|
91
106
|
__metadata("design:type", String)
|
|
92
107
|
], PersonPio.prototype, "sectorPartidoPolitico", void 0);
|
|
93
108
|
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ name:
|
|
109
|
+
(0, typeorm_1.Column)({ name: "cargo", type: "varchar", length: 300, nullable: true }),
|
|
95
110
|
__metadata("design:type", String)
|
|
96
111
|
], PersonPio.prototype, "cargo", void 0);
|
|
97
112
|
__decorate([
|
|
98
|
-
(0, typeorm_1.Column)({
|
|
113
|
+
(0, typeorm_1.Column)({
|
|
114
|
+
name: "condicion_legal",
|
|
115
|
+
type: "varchar",
|
|
116
|
+
length: 300,
|
|
117
|
+
nullable: true,
|
|
118
|
+
}),
|
|
99
119
|
__metadata("design:type", String)
|
|
100
120
|
], PersonPio.prototype, "condicionLegal", void 0);
|
|
101
121
|
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({
|
|
122
|
+
(0, typeorm_1.Column)({
|
|
123
|
+
name: "esta_en_exterior",
|
|
124
|
+
type: "boolean",
|
|
125
|
+
nullable: true,
|
|
126
|
+
default: false,
|
|
127
|
+
}),
|
|
103
128
|
__metadata("design:type", Boolean)
|
|
104
129
|
], PersonPio.prototype, "estaEnExterior", void 0);
|
|
105
130
|
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({
|
|
131
|
+
(0, typeorm_1.Column)({
|
|
132
|
+
name: "eventos_involucrados",
|
|
133
|
+
type: "jsonb",
|
|
134
|
+
array: true,
|
|
135
|
+
nullable: true,
|
|
136
|
+
default: () => "'{}'::jsonb[]",
|
|
137
|
+
}),
|
|
107
138
|
__metadata("design:type", Array)
|
|
108
139
|
], PersonPio.prototype, "eventosInvolucrados", void 0);
|
|
109
140
|
__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ name:
|
|
141
|
+
(0, typeorm_1.Column)({ name: "metadata", type: "jsonb", nullable: true }),
|
|
111
142
|
__metadata("design:type", Object)
|
|
112
143
|
], PersonPio.prototype, "metadata", void 0);
|
|
113
144
|
__decorate([
|
|
114
|
-
(0, typeorm_1.Column)({ name:
|
|
145
|
+
(0, typeorm_1.Column)({ name: "ubicacion", type: "jsonb", nullable: true }),
|
|
115
146
|
__metadata("design:type", Object)
|
|
116
147
|
], PersonPio.prototype, "ubicacion", void 0);
|
|
117
148
|
exports.PersonPio = PersonPio = __decorate([
|
|
118
|
-
(0, typeorm_1.Entity)({ name:
|
|
119
|
-
(0, typeorm_1.Index)(
|
|
149
|
+
(0, typeorm_1.Entity)({ name: "person_pio", schema: "intel" }),
|
|
150
|
+
(0, typeorm_1.Index)("person_pio_person_idx", ["person"], { unique: true }),
|
|
151
|
+
(0, typeorm_1.Index)("person_nivel_amenaza_idx", ["nivelAmenaza"])
|
|
120
152
|
], PersonPio);
|
|
121
153
|
//# sourceMappingURL=person-pio.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person-pio.entity.js","sourceRoot":"","sources":["../../../src/entities/pio/person-pio.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"person-pio.entity.js","sourceRoot":"","sources":["../../../src/entities/pio/person-pio.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,yCAA2C;AAC3C,2DAAiD;AACjD,mDAAyC;AAEzC,IAAY,qBAQX;AARD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;IACrB,kDAAyB,CAAA;IACzB,0FAAiE,CAAA;IACjE,4DAAmC,CAAA;IACnC,0CAAiB,CAAA;IACjB,kDAAyB,CAAA;AAC3B,CAAC,EARW,qBAAqB,qCAArB,qBAAqB,QAQhC;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,6BAAa,CAAA;AACf,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED;;;;;GAKG;AAII,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,kBAAU;CAkHxC,CAAA;AAlHY,8BAAS;AAIpB;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAA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C5D,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,cAAc,CAAC,CAAC;GACvC,SAAS,CAkHrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigmatech/pergamo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.87",
|
|
4
4
|
"description": "Shared TypeORM entities and utilities for Dataven intelligence system - Named after the ancient library of Pergamon",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|