@sigmatech/pergamo 0.1.41 → 0.1.44
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/data-sources/tsj/tsj-sentencia-decision.entity.d.ts +41 -0
- package/dist/entities/data-sources/tsj/tsj-sentencia-decision.entity.d.ts.map +1 -0
- package/dist/entities/data-sources/tsj/tsj-sentencia-decision.entity.js +317 -0
- package/dist/entities/data-sources/tsj/tsj-sentencia-decision.entity.js.map +1 -0
- 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 +2 -0
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +3 -0
- package/dist/entities/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { TsjSentenciaRaw } from "./tsj-sentencia-raw.entity";
|
|
3
|
+
export declare class TsjSentenciaDecision extends BaseEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
/**
|
|
6
|
+
* Relación 1-1 con el registro crudo de la sentencia
|
|
7
|
+
*/
|
|
8
|
+
raw: TsjSentenciaRaw;
|
|
9
|
+
courtName?: string;
|
|
10
|
+
courtSection?: string;
|
|
11
|
+
courtSpecialty?: string;
|
|
12
|
+
judicialDistrict?: string;
|
|
13
|
+
seatCity?: string;
|
|
14
|
+
decisionCity?: string;
|
|
15
|
+
decisionDate?: Date;
|
|
16
|
+
independenceYearRef?: number;
|
|
17
|
+
federationYearRef?: number;
|
|
18
|
+
publicationTime?: string;
|
|
19
|
+
asuntoCode?: string;
|
|
20
|
+
caseMotive?: string;
|
|
21
|
+
caseCategory?: string;
|
|
22
|
+
procedureType?: string;
|
|
23
|
+
sentenceTypeRaw?: string;
|
|
24
|
+
sentenceType?: string;
|
|
25
|
+
decisionLabel?: string;
|
|
26
|
+
decisionSummary?: string;
|
|
27
|
+
legalGroundDescription?: string;
|
|
28
|
+
parties?: any;
|
|
29
|
+
lawyers?: any;
|
|
30
|
+
agreements?: any;
|
|
31
|
+
legalBasis?: any;
|
|
32
|
+
judgeName?: string;
|
|
33
|
+
judgeRole?: string;
|
|
34
|
+
secretaryName?: string;
|
|
35
|
+
metadata?: any;
|
|
36
|
+
processingStatus?: string;
|
|
37
|
+
processingError?: string;
|
|
38
|
+
createdAt: Date;
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=tsj-sentencia-decision.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsj-sentencia-decision.entity.d.ts","sourceRoot":"","sources":["../../../../src/entities/data-sources/tsj/tsj-sentencia-decision.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EASX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,qBAEa,oBAAqB,SAAQ,UAAU;IAElD,EAAE,EAAG,MAAM,CAAC;IAEZ;;OAEG;IAGH,GAAG,EAAG,eAAe,CAAC;IAatB,SAAS,CAAC,EAAE,MAAM,CAAC;IAUnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAUtB,cAAc,CAAC,EAAE,MAAM,CAAC;IAUxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAU1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAalB,YAAY,CAAC,EAAE,MAAM,CAAC;IAStB,YAAY,CAAC,EAAE,IAAI,CAAC;IAQpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAQ7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAQ3B,eAAe,CAAC,EAAE,MAAM,CAAC;IAczB,UAAU,CAAC,EAAE,MAAM,CAAC;IAWpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAWpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAUtB,aAAa,CAAC,EAAE,MAAM,CAAC;IAcvB,eAAe,CAAC,EAAE,MAAM,CAAC;IAUzB,YAAY,CAAC,EAAE,MAAM,CAAC;IAWtB,aAAa,CAAC,EAAE,MAAM,CAAC;IASvB,eAAe,CAAC,EAAE,MAAM,CAAC;IAUzB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAoDhC,OAAO,CAAC,EAAE,GAAG,CAAC;IAOd,OAAO,CAAC,EAAE,GAAG,CAAC;IAsCd,UAAU,CAAC,EAAE,GAAG,CAAC;IAkBjB,UAAU,CAAC,EAAE,GAAG,CAAC;IAajB,SAAS,CAAC,EAAE,MAAM,CAAC;IAUnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAUnB,aAAa,CAAC,EAAE,MAAM,CAAC;IAcvB,QAAQ,CAAC,EAAE,GAAG,CAAC;IAaf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAQ1B,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,317 @@
|
|
|
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.TsjSentenciaDecision = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const tsj_sentencia_raw_entity_1 = require("./tsj-sentencia-raw.entity");
|
|
15
|
+
let TsjSentenciaDecision = class TsjSentenciaDecision extends typeorm_1.BaseEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.TsjSentenciaDecision = TsjSentenciaDecision;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TsjSentenciaDecision.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.OneToOne)(() => tsj_sentencia_raw_entity_1.TsjSentenciaRaw, { onDelete: "CASCADE" }),
|
|
24
|
+
(0, typeorm_1.JoinColumn)({ name: "raw_id" }),
|
|
25
|
+
__metadata("design:type", tsj_sentencia_raw_entity_1.TsjSentenciaRaw)
|
|
26
|
+
], TsjSentenciaDecision.prototype, "raw", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({
|
|
29
|
+
type: "varchar",
|
|
30
|
+
length: 500,
|
|
31
|
+
name: "court_name",
|
|
32
|
+
nullable: true,
|
|
33
|
+
comment: "Nombre completo del tribunal tal como aparece en la decisión",
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TsjSentenciaDecision.prototype, "courtName", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({
|
|
39
|
+
type: "varchar",
|
|
40
|
+
length: 255,
|
|
41
|
+
name: "court_section",
|
|
42
|
+
nullable: true,
|
|
43
|
+
comment: "Sección o número de juzgado/sala. Ej: Juzgado Octavo, Sala de Juicio N° 02",
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], TsjSentenciaDecision.prototype, "courtSection", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({
|
|
49
|
+
type: "varchar",
|
|
50
|
+
length: 255,
|
|
51
|
+
name: "court_specialty",
|
|
52
|
+
nullable: true,
|
|
53
|
+
comment: "Especialidad: Laboral, Civil, Mercantil, Tránsito, Bancario, Niños y Adolescentes, etc.",
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TsjSentenciaDecision.prototype, "courtSpecialty", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({
|
|
59
|
+
type: "varchar",
|
|
60
|
+
length: 500,
|
|
61
|
+
name: "judicial_district",
|
|
62
|
+
nullable: true,
|
|
63
|
+
comment: "Circunscripción judicial. Ej.: Circunscripción Judicial del Estado Amazonas",
|
|
64
|
+
}),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], TsjSentenciaDecision.prototype, "judicialDistrict", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({
|
|
69
|
+
type: "varchar",
|
|
70
|
+
length: 255,
|
|
71
|
+
name: "seat_city",
|
|
72
|
+
nullable: true,
|
|
73
|
+
comment: "Ciudad / sede del tribunal. Ej.: Guarenas, Caracas, Puerto Ayacucho",
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], TsjSentenciaDecision.prototype, "seatCity", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({
|
|
79
|
+
type: "varchar",
|
|
80
|
+
length: 255,
|
|
81
|
+
name: "decision_city",
|
|
82
|
+
nullable: true,
|
|
83
|
+
comment: "Ciudad que aparece en la línea de fecha de la sentencia",
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], TsjSentenciaDecision.prototype, "decisionCity", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({
|
|
89
|
+
type: "date",
|
|
90
|
+
name: "decision_date",
|
|
91
|
+
nullable: true,
|
|
92
|
+
comment: "Fecha de la decisión procesada por IA (puede coincidir o corregir `fechaSentencia` del raw)",
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", Date)
|
|
95
|
+
], TsjSentenciaDecision.prototype, "decisionDate", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({
|
|
98
|
+
type: "int",
|
|
99
|
+
name: "independence_year_ref",
|
|
100
|
+
nullable: true,
|
|
101
|
+
comment: "Referencia de año de Independencia. Ej.: 214",
|
|
102
|
+
}),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], TsjSentenciaDecision.prototype, "independenceYearRef", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({
|
|
107
|
+
type: "int",
|
|
108
|
+
name: "federation_year_ref",
|
|
109
|
+
nullable: true,
|
|
110
|
+
comment: "Referencia de año de la Federación. Ej.: 165",
|
|
111
|
+
}),
|
|
112
|
+
__metadata("design:type", Number)
|
|
113
|
+
], TsjSentenciaDecision.prototype, "federationYearRef", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({
|
|
116
|
+
type: "time without time zone",
|
|
117
|
+
name: "publication_time",
|
|
118
|
+
nullable: true,
|
|
119
|
+
comment: "Hora de publicación/registro si aparece en la sentencia",
|
|
120
|
+
}),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], TsjSentenciaDecision.prototype, "publicationTime", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, typeorm_1.Index)(),
|
|
125
|
+
(0, typeorm_1.Column)({
|
|
126
|
+
type: "varchar",
|
|
127
|
+
length: 150,
|
|
128
|
+
name: "asunto_code",
|
|
129
|
+
nullable: true,
|
|
130
|
+
comment: "Código de Asunto si existe. Ej.: AP11-V-FALLAS-2023-000485",
|
|
131
|
+
}),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], TsjSentenciaDecision.prototype, "asuntoCode", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Index)(),
|
|
136
|
+
(0, typeorm_1.Column)({
|
|
137
|
+
type: "varchar",
|
|
138
|
+
length: 255,
|
|
139
|
+
name: "case_motive",
|
|
140
|
+
nullable: true,
|
|
141
|
+
comment: "Motivo textual del juicio. Ej.: COBRO DE PRESTACIONES SOCIALES, RESOLUCIÓN DE CONTRATO",
|
|
142
|
+
}),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], TsjSentenciaDecision.prototype, "caseMotive", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.Index)(),
|
|
147
|
+
(0, typeorm_1.Column)({
|
|
148
|
+
type: "varchar",
|
|
149
|
+
length: 255,
|
|
150
|
+
name: "case_category",
|
|
151
|
+
nullable: true,
|
|
152
|
+
comment: "Categoría/materia normalizada: laboral, civil, mercantil, familia, niños_y_adolescentes, etc.",
|
|
153
|
+
}),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], TsjSentenciaDecision.prototype, "caseCategory", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, typeorm_1.Column)({
|
|
158
|
+
type: "varchar",
|
|
159
|
+
length: 255,
|
|
160
|
+
name: "procedure_type",
|
|
161
|
+
nullable: true,
|
|
162
|
+
comment: "Tipo de procedimiento normalizado (ordinario, laboral, protección, etc.) si lo defines",
|
|
163
|
+
}),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], TsjSentenciaDecision.prototype, "procedureType", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, typeorm_1.Column)({
|
|
168
|
+
type: "varchar",
|
|
169
|
+
length: 255,
|
|
170
|
+
name: "sentence_type_raw",
|
|
171
|
+
nullable: true,
|
|
172
|
+
comment: "Texto tal cual del encabezado SENTENCIA. Ej.: INTERLOCUTORIA CON FUERZA DEFINITIVA",
|
|
173
|
+
}),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], TsjSentenciaDecision.prototype, "sentenceTypeRaw", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, typeorm_1.Column)({
|
|
178
|
+
type: "varchar",
|
|
179
|
+
length: 255,
|
|
180
|
+
name: "sentence_type",
|
|
181
|
+
nullable: true,
|
|
182
|
+
comment: "Tipo de sentencia normalizado: definitiva, interlocutoria_definitiva, interlocutoria, etc.",
|
|
183
|
+
}),
|
|
184
|
+
__metadata("design:type", String)
|
|
185
|
+
], TsjSentenciaDecision.prototype, "sentenceType", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, typeorm_1.Index)(),
|
|
188
|
+
(0, typeorm_1.Column)({
|
|
189
|
+
type: "varchar",
|
|
190
|
+
length: 255,
|
|
191
|
+
name: "decision_label",
|
|
192
|
+
nullable: true,
|
|
193
|
+
comment: "Etiqueta corta del resultado: perencion_instancia, homologacion_desistimiento, conversion_divorcio, etc.",
|
|
194
|
+
}),
|
|
195
|
+
__metadata("design:type", String)
|
|
196
|
+
], TsjSentenciaDecision.prototype, "decisionLabel", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, typeorm_1.Column)({
|
|
199
|
+
type: "text",
|
|
200
|
+
name: "decision_summary",
|
|
201
|
+
nullable: true,
|
|
202
|
+
comment: "Resumen narrativo generado por IA sobre qué decidió el tribunal (útil para búsqueda rápida).",
|
|
203
|
+
}),
|
|
204
|
+
__metadata("design:type", String)
|
|
205
|
+
], TsjSentenciaDecision.prototype, "decisionSummary", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, typeorm_1.Column)({
|
|
208
|
+
type: "varchar",
|
|
209
|
+
length: 500,
|
|
210
|
+
name: "legal_ground_description",
|
|
211
|
+
nullable: true,
|
|
212
|
+
comment: "Descripción breve del fundamento legal principal. Ej.: 'conforme al artículo 189 del Código Civil y 762 del CPC'.",
|
|
213
|
+
}),
|
|
214
|
+
__metadata("design:type", String)
|
|
215
|
+
], TsjSentenciaDecision.prototype, "legalGroundDescription", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, typeorm_1.Column)({
|
|
218
|
+
type: "jsonb",
|
|
219
|
+
name: "parties",
|
|
220
|
+
nullable: true,
|
|
221
|
+
}),
|
|
222
|
+
__metadata("design:type", Object)
|
|
223
|
+
], TsjSentenciaDecision.prototype, "parties", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, typeorm_1.Column)({
|
|
226
|
+
type: "jsonb",
|
|
227
|
+
name: "lawyers",
|
|
228
|
+
nullable: true,
|
|
229
|
+
}),
|
|
230
|
+
__metadata("design:type", Object)
|
|
231
|
+
], TsjSentenciaDecision.prototype, "lawyers", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, typeorm_1.Column)({
|
|
234
|
+
type: "jsonb",
|
|
235
|
+
name: "agreements",
|
|
236
|
+
nullable: true,
|
|
237
|
+
}),
|
|
238
|
+
__metadata("design:type", Object)
|
|
239
|
+
], TsjSentenciaDecision.prototype, "agreements", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, typeorm_1.Column)({
|
|
242
|
+
type: "jsonb",
|
|
243
|
+
name: "legal_basis",
|
|
244
|
+
nullable: true,
|
|
245
|
+
}),
|
|
246
|
+
__metadata("design:type", Object)
|
|
247
|
+
], TsjSentenciaDecision.prototype, "legalBasis", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, typeorm_1.Column)({
|
|
250
|
+
type: "varchar",
|
|
251
|
+
length: 255,
|
|
252
|
+
name: "judge_name",
|
|
253
|
+
nullable: true,
|
|
254
|
+
comment: "Nombre del juez que firma la decisión",
|
|
255
|
+
}),
|
|
256
|
+
__metadata("design:type", String)
|
|
257
|
+
], TsjSentenciaDecision.prototype, "judgeName", void 0);
|
|
258
|
+
__decorate([
|
|
259
|
+
(0, typeorm_1.Column)({
|
|
260
|
+
type: "varchar",
|
|
261
|
+
length: 255,
|
|
262
|
+
name: "judge_role",
|
|
263
|
+
nullable: true,
|
|
264
|
+
comment: "Condición del juez: Provisorio, Temporal, Unipersonal N° 02, etc.",
|
|
265
|
+
}),
|
|
266
|
+
__metadata("design:type", String)
|
|
267
|
+
], TsjSentenciaDecision.prototype, "judgeRole", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, typeorm_1.Column)({
|
|
270
|
+
type: "varchar",
|
|
271
|
+
length: 255,
|
|
272
|
+
name: "secretary_name",
|
|
273
|
+
nullable: true,
|
|
274
|
+
comment: "Nombre del secretario o secretaria que registra/publica la sentencia",
|
|
275
|
+
}),
|
|
276
|
+
__metadata("design:type", String)
|
|
277
|
+
], TsjSentenciaDecision.prototype, "secretaryName", void 0);
|
|
278
|
+
__decorate([
|
|
279
|
+
(0, typeorm_1.Column)({
|
|
280
|
+
type: "jsonb",
|
|
281
|
+
name: "metadata",
|
|
282
|
+
nullable: true,
|
|
283
|
+
}),
|
|
284
|
+
__metadata("design:type", Object)
|
|
285
|
+
], TsjSentenciaDecision.prototype, "metadata", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, typeorm_1.Column)({
|
|
288
|
+
type: "varchar",
|
|
289
|
+
length: 50,
|
|
290
|
+
name: "processing_status",
|
|
291
|
+
nullable: true,
|
|
292
|
+
comment: "Estado del procesamiento IA: pending, processed, error, etc.",
|
|
293
|
+
}),
|
|
294
|
+
__metadata("design:type", String)
|
|
295
|
+
], TsjSentenciaDecision.prototype, "processingStatus", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
(0, typeorm_1.Column)({
|
|
298
|
+
type: "text",
|
|
299
|
+
name: "processing_error",
|
|
300
|
+
nullable: true,
|
|
301
|
+
comment: "Detalle de error si falló el procesamiento IA",
|
|
302
|
+
}),
|
|
303
|
+
__metadata("design:type", String)
|
|
304
|
+
], TsjSentenciaDecision.prototype, "processingError", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
(0, typeorm_1.CreateDateColumn)({ type: "timestamp", name: "created_at" }),
|
|
307
|
+
__metadata("design:type", Date)
|
|
308
|
+
], TsjSentenciaDecision.prototype, "createdAt", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
(0, typeorm_1.UpdateDateColumn)({ type: "timestamp", name: "updated_at" }),
|
|
311
|
+
__metadata("design:type", Date)
|
|
312
|
+
], TsjSentenciaDecision.prototype, "updatedAt", void 0);
|
|
313
|
+
exports.TsjSentenciaDecision = TsjSentenciaDecision = __decorate([
|
|
314
|
+
(0, typeorm_1.Entity)("tsj_sentencia_decision"),
|
|
315
|
+
(0, typeorm_1.Index)("tsj_sentencia_decision_raw_id_unique_idx", ["raw"], { unique: true })
|
|
316
|
+
], TsjSentenciaDecision);
|
|
317
|
+
//# sourceMappingURL=tsj-sentencia-decision.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsj-sentencia-decision.entity.js","sourceRoot":"","sources":["../../../../src/entities/data-sources/tsj/tsj-sentencia-decision.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AACjB,yEAA6D;AAItD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;CA8YnD,CAAA;AA9YY,oDAAoB;AAE/B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACnB;AAOZ;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,0CAAe,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACxD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;8BACzB,0CAAe;iDAAC;AAatB;IAPC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,GAAG;QACX,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,8DAA8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E,CAAC;GAChE,oBAAoB,CA8YhC"}
|
|
@@ -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,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,gBAAgB,CAAC,EAAE,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c) {
|
|
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,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;;8CAC5D;AAMtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EA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AA8B,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
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export * from "./base/_base";
|
|
6
6
|
export * from "./base/_global-base";
|
|
7
7
|
export * from "./data-sources/tsj/tsj-sentencia-raw.entity";
|
|
8
|
+
export * from "./data-sources/tsj/tsj-sentencia-decision.entity";
|
|
8
9
|
export * from "./person/person.entity";
|
|
9
10
|
export * from "./person/person-identification.entity";
|
|
10
11
|
export * from "./person/person-migration.entity";
|
|
@@ -71,4 +72,5 @@ export * from "./bot/bot-command-log.entity";
|
|
|
71
72
|
export * from "./bot/bot-search-request.entity";
|
|
72
73
|
export * from "./bot/bot-location-request.entity";
|
|
73
74
|
export * from "./telegram";
|
|
75
|
+
export * from "./graph";
|
|
74
76
|
//# 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;
|
|
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;AAGpD,cAAc,WAAW,CAAC;AAG1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CA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,cAAc,SAAS,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./base/_base"), exports);
|
|
|
23
23
|
__exportStar(require("./base/_global-base"), exports);
|
|
24
24
|
// Data Sources module
|
|
25
25
|
__exportStar(require("./data-sources/tsj/tsj-sentencia-raw.entity"), exports);
|
|
26
|
+
__exportStar(require("./data-sources/tsj/tsj-sentencia-decision.entity"), exports);
|
|
26
27
|
// Person module
|
|
27
28
|
__exportStar(require("./person/person.entity"), exports);
|
|
28
29
|
__exportStar(require("./person/person-identification.entity"), exports);
|
|
@@ -113,4 +114,6 @@ __exportStar(require("./bot/bot-search-request.entity"), exports);
|
|
|
113
114
|
__exportStar(require("./bot/bot-location-request.entity"), exports);
|
|
114
115
|
// Telegram module
|
|
115
116
|
__exportStar(require("./telegram"), exports);
|
|
117
|
+
// Graph module
|
|
118
|
+
__exportStar(require("./graph"), exports);
|
|
116
119
|
//# 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;
|
|
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;AAEpD,iBAAiB;AACjB,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"0.1.44",
|
|
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",
|