@sigmatech/pergamo 0.1.16 → 0.1.18
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 +1 -1
- package/dist/entities/index.d.ts.map +1 -1
- package/dist/entities/index.js +1 -1
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/person/person.entity.d.ts +12 -0
- package/dist/entities/person/person.entity.d.ts.map +1 -1
- package/dist/entities/person/person.entity.js +30 -0
- package/dist/entities/person/person.entity.js.map +1 -1
- package/dist/entities/vehicle/index.d.ts +11 -0
- package/dist/entities/vehicle/index.d.ts.map +1 -0
- package/dist/entities/vehicle/index.js +27 -0
- package/dist/entities/vehicle/index.js.map +1 -0
- package/dist/entities/vehicle/vehicle-identifier-history.entity.d.ts +50 -0
- package/dist/entities/vehicle/vehicle-identifier-history.entity.d.ts.map +1 -0
- package/dist/entities/vehicle/vehicle-identifier-history.entity.js +72 -0
- package/dist/entities/vehicle/vehicle-identifier-history.entity.js.map +1 -0
- package/dist/entities/vehicle/vehicle-ownership.entity.d.ts +47 -0
- package/dist/entities/vehicle/vehicle-ownership.entity.d.ts.map +1 -0
- package/dist/entities/vehicle/vehicle-ownership.entity.js +70 -0
- package/dist/entities/vehicle/vehicle-ownership.entity.js.map +1 -0
- package/dist/entities/vehicle/vehicle-procedure.entity.d.ts +134 -0
- package/dist/entities/vehicle/vehicle-procedure.entity.d.ts.map +1 -0
- package/dist/entities/vehicle/vehicle-procedure.entity.js +158 -0
- package/dist/entities/vehicle/vehicle-procedure.entity.js.map +1 -0
- package/dist/entities/vehicle/vehicle.entity.d.ts +70 -19
- package/dist/entities/vehicle/vehicle.entity.d.ts.map +1 -1
- package/dist/entities/vehicle/vehicle.entity.js +62 -32
- package/dist/entities/vehicle/vehicle.entity.js.map +1 -1
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export * from "./person/person-repatriado.entity";
|
|
|
17
17
|
export * from "./person/person-police-data.entity";
|
|
18
18
|
export * from "./person/person-prohibition.entity";
|
|
19
19
|
export * from "./person/person-data-telecom.entity";
|
|
20
|
-
export * from "./vehicle
|
|
20
|
+
export * from "./vehicle";
|
|
21
21
|
export * from "./telefonia/telefonia.entity";
|
|
22
22
|
export * from "./telefonia/historial-ubicacion.entity";
|
|
23
23
|
export * from "./telefonia/bts.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,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,
|
|
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,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,CAA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Ac,wBAAwB,CAAC;AAGvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,YAAY,CAAC"}
|
package/dist/entities/index.js
CHANGED
|
@@ -36,7 +36,7 @@ __exportStar(require("./person/person-police-data.entity"), exports);
|
|
|
36
36
|
__exportStar(require("./person/person-prohibition.entity"), exports);
|
|
37
37
|
__exportStar(require("./person/person-data-telecom.entity"), exports);
|
|
38
38
|
// Vehicle module
|
|
39
|
-
__exportStar(require("./vehicle
|
|
39
|
+
__exportStar(require("./vehicle"), exports);
|
|
40
40
|
// Telefonia module
|
|
41
41
|
__exportStar(require("./telefonia/telefonia.entity"), exports);
|
|
42
42
|
__exportStar(require("./telefonia/historial-ubicacion.entity"), exports);
|
|
@@ -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,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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,gBAAgB;AAChB,+CAA6B;AAC7B,sDAAoC;AAEpC,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,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;AAElD,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,gEAA8C;AAC9C,yDAAuC;AAEvC,aAAa;AACb,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,oEAAkD;AAElD,kBAAkB;AAClB,6CAA2B"}
|
|
@@ -13,6 +13,8 @@ import { PersonPoliceData } from './person-police-data.entity';
|
|
|
13
13
|
import { PersonIvss } from '../ivss/person-ivss.entity';
|
|
14
14
|
import { PersonProhibition } from './person-prohibition.entity';
|
|
15
15
|
import { PersonDataTelecom } from './person-data-telecom.entity';
|
|
16
|
+
import { VehicleOwnership } from '../vehicle/vehicle-ownership.entity';
|
|
17
|
+
import { VehicleProcedure } from '../vehicle/vehicle-procedure.entity';
|
|
16
18
|
export declare enum PersonType {
|
|
17
19
|
NATURAL = "NATURAL",
|
|
18
20
|
JURIDICA = "JURIDICA"
|
|
@@ -60,5 +62,15 @@ export declare class Person extends GlobalBase {
|
|
|
60
62
|
fiscalDataChecked?: boolean;
|
|
61
63
|
fiscalDataLastCheck?: Date;
|
|
62
64
|
sb2?: Record<string, any>;
|
|
65
|
+
/**
|
|
66
|
+
* Relación: Períodos de propiedad de vehículos
|
|
67
|
+
*/
|
|
68
|
+
vehicleOwnerships?: VehicleOwnership[];
|
|
69
|
+
/**
|
|
70
|
+
* Relación: Trámites de vehículos donde aparece como propietario
|
|
71
|
+
*/
|
|
72
|
+
vehicleProcedures?: VehicleProcedure[];
|
|
73
|
+
vehicleDataChecked?: boolean;
|
|
74
|
+
vehicleDataLastCheck?: Date;
|
|
63
75
|
}
|
|
64
76
|
//# sourceMappingURL=person.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AASlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,O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AAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAMjC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAM9B,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;IAMxB,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAOnC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAO9B,qBAAqB,CAAC,EAAE,IAAI,CAAC;IAQ7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAO7B,oBAAoB,CAAC,EAAE,IAAI,CAAC;IAQ5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAO/B,sBAAsB,CAAC,EAAE,IAAI,CAAC;IAQ9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAO5B,mBAAmB,CAAC,EAAE,IAAI,CAAC;IAQ3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAO1B,iBAAiB,CAAC,EAAE,IAAI,CAAC;IAQzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAO5B,mBAAmB,CAAC,EAAE,IAAI,CAAC;IAG3B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAI1B;;OAEG;IAIH,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEvC;;OAEG;IAIH,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAQvC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAO7B,oBAAoB,CAAC,EAAE,IAAI,CAAC;CAC7B"}
|
|
@@ -26,6 +26,8 @@ const person_police_data_entity_1 = require("./person-police-data.entity");
|
|
|
26
26
|
const person_ivss_entity_1 = require("../ivss/person-ivss.entity");
|
|
27
27
|
const person_prohibition_entity_1 = require("./person-prohibition.entity");
|
|
28
28
|
const person_data_telecom_entity_1 = require("./person-data-telecom.entity");
|
|
29
|
+
const vehicle_ownership_entity_1 = require("../vehicle/vehicle-ownership.entity");
|
|
30
|
+
const vehicle_procedure_entity_1 = require("../vehicle/vehicle-procedure.entity");
|
|
29
31
|
var PersonType;
|
|
30
32
|
(function (PersonType) {
|
|
31
33
|
PersonType["NATURAL"] = "NATURAL";
|
|
@@ -293,6 +295,34 @@ __decorate([
|
|
|
293
295
|
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
294
296
|
__metadata("design:type", Object)
|
|
295
297
|
], Person.prototype, "sb2", void 0);
|
|
298
|
+
__decorate([
|
|
299
|
+
(0, typeorm_1.OneToMany)(() => vehicle_ownership_entity_1.VehicleOwnership, (ownership) => ownership.person, {
|
|
300
|
+
onDelete: 'CASCADE',
|
|
301
|
+
}),
|
|
302
|
+
__metadata("design:type", Array)
|
|
303
|
+
], Person.prototype, "vehicleOwnerships", void 0);
|
|
304
|
+
__decorate([
|
|
305
|
+
(0, typeorm_1.OneToMany)(() => vehicle_procedure_entity_1.VehicleProcedure, (procedure) => procedure.currentOwnerPerson, {
|
|
306
|
+
onDelete: 'SET NULL',
|
|
307
|
+
}),
|
|
308
|
+
__metadata("design:type", Array)
|
|
309
|
+
], Person.prototype, "vehicleProcedures", void 0);
|
|
310
|
+
__decorate([
|
|
311
|
+
(0, typeorm_1.Column)({
|
|
312
|
+
type: 'boolean',
|
|
313
|
+
default: false,
|
|
314
|
+
name: 'vehicle_data_checked',
|
|
315
|
+
}),
|
|
316
|
+
__metadata("design:type", Boolean)
|
|
317
|
+
], Person.prototype, "vehicleDataChecked", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
(0, typeorm_1.Column)({
|
|
320
|
+
type: 'timestamp',
|
|
321
|
+
nullable: true,
|
|
322
|
+
name: 'vehicle_data_last_check',
|
|
323
|
+
}),
|
|
324
|
+
__metadata("design:type", Date)
|
|
325
|
+
], Person.prototype, "vehicleDataLastCheck", void 0);
|
|
296
326
|
exports.Person = Person = __decorate([
|
|
297
327
|
(0, typeorm_1.Entity)('person'),
|
|
298
328
|
(0, typeorm_1.Index)('person_cedula_idx', ['cedula', 'cedulaLetter'], { unique: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.entity.js","sourceRoot":"","sources":["../../../src/entities/person/person.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,qCAOiB;AACjB,iFAAsE;AACtE,uEAA4D;AAC5D,wDAA8C;AAC9C,6DAAmD;AACnD,2EAA+D;AAC/D,2DAAiE;AACjE,iFAAqE;AACrE,+DAAoD;AACpD,+EAAmE;AACnE,yEAA8D;AAC9D,2EAA+D;AAC/D,mEAAwD;AACxD,2EAAgE;AAChE,6EAAiE;
|
|
1
|
+
{"version":3,"file":"person.entity.js","sourceRoot":"","sources":["../../../src/entities/person/person.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,qCAOiB;AACjB,iFAAsE;AACtE,uEAA4D;AAC5D,wDAA8C;AAC9C,6DAAmD;AACnD,2EAA+D;AAC/D,2DAAiE;AACjE,iFAAqE;AACrE,+DAAoD;AACpD,+EAAmE;AACnE,yEAA8D;AAC9D,2EAA+D;AAC/D,mEAAwD;AACxD,2EAAgE;AAChE,6EAAiE;AACjE,kFAAuE;AACvE,kFAAuE;AAEvE,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,mCAAqB,CAAA;AACvB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAOM,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,yBAAU;CAqRrC,CAAA;AArRY,wBAAM;AAEjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC;;oCACxC;AAIlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;;4CACxD;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,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IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,IAAI,EAAE,sBAAsB;KAC7B,CAAC;;kDAC2B;AAO7B;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,yBAAyB;KAChC,CAAC;8BACqB,IAAI;oDAAC;iBApRjB,MAAM;IALlB,IAAA,gBAAM,EAAC,QAAQ,CAAC;IAChB,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACxE,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC/D,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAClE,IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;GAChD,MAAM,CAqRlB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vehicle Module Entities
|
|
3
|
+
*
|
|
4
|
+
* Entities for tracking vehicles, procedures (trámites),
|
|
5
|
+
* ownership periods, and identifier changes.
|
|
6
|
+
*/
|
|
7
|
+
export * from './vehicle.entity';
|
|
8
|
+
export * from './vehicle-procedure.entity';
|
|
9
|
+
export * from './vehicle-ownership.entity';
|
|
10
|
+
export * from './vehicle-identifier-history.entity';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/vehicle/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Vehicle Module Entities
|
|
4
|
+
*
|
|
5
|
+
* Entities for tracking vehicles, procedures (trámites),
|
|
6
|
+
* ownership periods, and identifier changes.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
__exportStar(require("./vehicle.entity"), exports);
|
|
24
|
+
__exportStar(require("./vehicle-procedure.entity"), exports);
|
|
25
|
+
__exportStar(require("./vehicle-ownership.entity"), exports);
|
|
26
|
+
__exportStar(require("./vehicle-identifier-history.entity"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/vehicle/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,mDAAiC;AACjC,6DAA2C;AAC3C,6DAA2C;AAC3C,sEAAoD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { GlobalBase } from '../base/_global-base';
|
|
2
|
+
import { Vehicle } from './vehicle.entity';
|
|
3
|
+
import { VehicleProcedure } from './vehicle-procedure.entity';
|
|
4
|
+
/**
|
|
5
|
+
* Identifier Change Kind Enum
|
|
6
|
+
*/
|
|
7
|
+
export declare enum IdentifierChangeKind {
|
|
8
|
+
PLACA = "PLACA",
|
|
9
|
+
MOTOR = "MOTOR",
|
|
10
|
+
CARROCERIA = "CARROCERIA",
|
|
11
|
+
OTRO = "OTRO"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* VehicleIdentifierHistory Entity
|
|
15
|
+
*
|
|
16
|
+
* Normalizes changes in vehicle identifiers detected from VehicleProcedure.
|
|
17
|
+
* Tracks when placa, motor, or carrocería serial changed.
|
|
18
|
+
*
|
|
19
|
+
* Design principles:
|
|
20
|
+
* - Derived from procedures with placaAnterior/serialAnterior
|
|
21
|
+
* - Normalizes different types of changes
|
|
22
|
+
* - Enables quick lookup of identifier change history
|
|
23
|
+
*/
|
|
24
|
+
export declare class VehicleIdentifierHistory extends GlobalBase {
|
|
25
|
+
/**
|
|
26
|
+
* Relación: Vehículo
|
|
27
|
+
*/
|
|
28
|
+
vehicle: Vehicle;
|
|
29
|
+
/**
|
|
30
|
+
* Relación: Trámite que registró el cambio
|
|
31
|
+
*/
|
|
32
|
+
tramite?: VehicleProcedure;
|
|
33
|
+
/**
|
|
34
|
+
* Tipo de cambio
|
|
35
|
+
*/
|
|
36
|
+
kind: IdentifierChangeKind;
|
|
37
|
+
/**
|
|
38
|
+
* Valor anterior
|
|
39
|
+
*/
|
|
40
|
+
oldValue?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Valor nuevo
|
|
43
|
+
*/
|
|
44
|
+
newValue?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Notas adicionales (JSONB)
|
|
47
|
+
*/
|
|
48
|
+
notes?: Record<string, any>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=vehicle-identifier-history.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle-identifier-history.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/vehicle/vehicle-identifier-history.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQlD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,IAAI,SAAS;CACd;AAED;;;;;;;;;;GAUG;AACH,qBAGa,wBAAyB,SAAQ,UAAU;IACtD;;OAEG;IAGH,OAAO,EAAG,OAAO,CAAC;IAElB;;OAEG;IAGH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAE3B;;OAEG;IAEH,IAAI,EAAG,oBAAoB,CAAC;IAE5B;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.VehicleIdentifierHistory = exports.IdentifierChangeKind = void 0;
|
|
13
|
+
const _global_base_1 = require("../base/_global-base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const vehicle_entity_1 = require("./vehicle.entity");
|
|
16
|
+
const vehicle_procedure_entity_1 = require("./vehicle-procedure.entity");
|
|
17
|
+
/**
|
|
18
|
+
* Identifier Change Kind Enum
|
|
19
|
+
*/
|
|
20
|
+
var IdentifierChangeKind;
|
|
21
|
+
(function (IdentifierChangeKind) {
|
|
22
|
+
IdentifierChangeKind["PLACA"] = "PLACA";
|
|
23
|
+
IdentifierChangeKind["MOTOR"] = "MOTOR";
|
|
24
|
+
IdentifierChangeKind["CARROCERIA"] = "CARROCERIA";
|
|
25
|
+
IdentifierChangeKind["OTRO"] = "OTRO";
|
|
26
|
+
})(IdentifierChangeKind || (exports.IdentifierChangeKind = IdentifierChangeKind = {}));
|
|
27
|
+
/**
|
|
28
|
+
* VehicleIdentifierHistory Entity
|
|
29
|
+
*
|
|
30
|
+
* Normalizes changes in vehicle identifiers detected from VehicleProcedure.
|
|
31
|
+
* Tracks when placa, motor, or carrocería serial changed.
|
|
32
|
+
*
|
|
33
|
+
* Design principles:
|
|
34
|
+
* - Derived from procedures with placaAnterior/serialAnterior
|
|
35
|
+
* - Normalizes different types of changes
|
|
36
|
+
* - Enables quick lookup of identifier change history
|
|
37
|
+
*/
|
|
38
|
+
let VehicleIdentifierHistory = class VehicleIdentifierHistory extends _global_base_1.GlobalBase {
|
|
39
|
+
};
|
|
40
|
+
exports.VehicleIdentifierHistory = VehicleIdentifierHistory;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => vehicle_entity_1.Vehicle, (v) => v.idHistory, { onDelete: 'CASCADE' }),
|
|
43
|
+
(0, typeorm_1.JoinColumn)({ name: 'vehicle_id' }),
|
|
44
|
+
__metadata("design:type", vehicle_entity_1.Vehicle)
|
|
45
|
+
], VehicleIdentifierHistory.prototype, "vehicle", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.ManyToOne)(() => vehicle_procedure_entity_1.VehicleProcedure, { onDelete: 'SET NULL', nullable: true }),
|
|
48
|
+
(0, typeorm_1.JoinColumn)({ name: 'tramite_id' }),
|
|
49
|
+
__metadata("design:type", vehicle_procedure_entity_1.VehicleProcedure)
|
|
50
|
+
], VehicleIdentifierHistory.prototype, "tramite", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ name: 'kind', type: 'varchar', length: 15 }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], VehicleIdentifierHistory.prototype, "kind", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ name: 'old_value', type: 'text', nullable: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], VehicleIdentifierHistory.prototype, "oldValue", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ name: 'new_value', type: 'text', nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], VehicleIdentifierHistory.prototype, "newValue", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ name: 'notes', type: 'jsonb', nullable: true }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], VehicleIdentifierHistory.prototype, "notes", void 0);
|
|
67
|
+
exports.VehicleIdentifierHistory = VehicleIdentifierHistory = __decorate([
|
|
68
|
+
(0, typeorm_1.Entity)('vehicle_identifier_history'),
|
|
69
|
+
(0, typeorm_1.Index)('vih_vehicle_kind_idx', ['vehicle', 'kind']),
|
|
70
|
+
(0, typeorm_1.Index)('vih_tramite_idx', ['tramite'])
|
|
71
|
+
], VehicleIdentifierHistory);
|
|
72
|
+
//# sourceMappingURL=vehicle-identifier-history.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle-identifier-history.entity.js","sourceRoot":"","sources":["../../../src/entities/vehicle/vehicle-identifier-history.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,qCAMiB;AACjB,qDAA2C;AAC3C,yEAA8D;AAE9D;;GAEG;AACH,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,iDAAyB,CAAA;IACzB,qCAAa,CAAA;AACf,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAED;;;;;;;;;;GAUG;AAII,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,yBAAU;CAsCvD,CAAA;AAtCY,4DAAwB;AAMnC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACrE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACzB,wBAAO;yDAAC;AAOlB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3E,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACzB,2CAAgB;yDAAC;AAM3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;sDAC1B;AAM5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC1C;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC1C;AAMlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC7B;mCArCjB,wBAAwB;IAHpC,IAAA,gBAAM,EAAC,4BAA4B,CAAC;IACpC,IAAA,eAAK,EAAC,sBAAsB,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAClD,IAAA,eAAK,EAAC,iBAAiB,EAAE,CAAC,SAAS,CAAC,CAAC;GACzB,wBAAwB,CAsCpC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { GlobalBase } from '../base/_global-base';
|
|
2
|
+
import { Vehicle } from './vehicle.entity';
|
|
3
|
+
import { Person } from '../person/person.entity';
|
|
4
|
+
import { VehicleProcedure } from './vehicle-procedure.entity';
|
|
5
|
+
/**
|
|
6
|
+
* VehicleOwnership Entity
|
|
7
|
+
*
|
|
8
|
+
* Represents periods of ownership/titularity for a vehicle.
|
|
9
|
+
* Derived from VehicleProcedure sequence (especially TR1 transfers).
|
|
10
|
+
*
|
|
11
|
+
* Design principles:
|
|
12
|
+
* - Each ownership period has from/to dates
|
|
13
|
+
* - Linked to the procedures that started/ended the period
|
|
14
|
+
* - Current ownership has toDate = null
|
|
15
|
+
* - Reconstructs ownership timeline automatically
|
|
16
|
+
*/
|
|
17
|
+
export declare class VehicleOwnership extends GlobalBase {
|
|
18
|
+
/**
|
|
19
|
+
* Relación: Vehículo
|
|
20
|
+
*/
|
|
21
|
+
vehicle: Vehicle;
|
|
22
|
+
/**
|
|
23
|
+
* Relación: Propietario
|
|
24
|
+
*/
|
|
25
|
+
person: Person;
|
|
26
|
+
/**
|
|
27
|
+
* Relación: Trámite que inició este período
|
|
28
|
+
*/
|
|
29
|
+
fromTramite?: VehicleProcedure;
|
|
30
|
+
/**
|
|
31
|
+
* Relación: Trámite que finalizó este período (null si es actual)
|
|
32
|
+
*/
|
|
33
|
+
toTramite?: VehicleProcedure;
|
|
34
|
+
/**
|
|
35
|
+
* Fecha de inicio del período
|
|
36
|
+
*/
|
|
37
|
+
fromDate?: Date;
|
|
38
|
+
/**
|
|
39
|
+
* Fecha de fin del período (null si es propietario actual)
|
|
40
|
+
*/
|
|
41
|
+
toDate?: Date;
|
|
42
|
+
/**
|
|
43
|
+
* Observaciones adicionales (JSONB)
|
|
44
|
+
*/
|
|
45
|
+
observations?: Record<string, any>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=vehicle-ownership.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle-ownership.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/vehicle/vehicle-ownership.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQlD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,qBAGa,gBAAiB,SAAQ,UAAU;IAC9C;;OAEG;IAGH,OAAO,EAAG,OAAO,CAAC;IAElB;;OAEG;IAGH,MAAM,EAAG,MAAM,CAAC;IAEhB;;OAEG;IAGH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAE/B;;OAEG;IAGH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;OAEG;IAEH,QAAQ,CAAC,EAAE,IAAI,CAAC;IAEhB;;OAEG;IAEH,MAAM,CAAC,EAAE,IAAI,CAAC;IAEd;;OAEG;IAEH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.VehicleOwnership = void 0;
|
|
13
|
+
const _global_base_1 = require("../base/_global-base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const vehicle_entity_1 = require("./vehicle.entity");
|
|
16
|
+
const person_entity_1 = require("../person/person.entity");
|
|
17
|
+
const vehicle_procedure_entity_1 = require("./vehicle-procedure.entity");
|
|
18
|
+
/**
|
|
19
|
+
* VehicleOwnership Entity
|
|
20
|
+
*
|
|
21
|
+
* Represents periods of ownership/titularity for a vehicle.
|
|
22
|
+
* Derived from VehicleProcedure sequence (especially TR1 transfers).
|
|
23
|
+
*
|
|
24
|
+
* Design principles:
|
|
25
|
+
* - Each ownership period has from/to dates
|
|
26
|
+
* - Linked to the procedures that started/ended the period
|
|
27
|
+
* - Current ownership has toDate = null
|
|
28
|
+
* - Reconstructs ownership timeline automatically
|
|
29
|
+
*/
|
|
30
|
+
let VehicleOwnership = class VehicleOwnership extends _global_base_1.GlobalBase {
|
|
31
|
+
};
|
|
32
|
+
exports.VehicleOwnership = VehicleOwnership;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ManyToOne)(() => vehicle_entity_1.Vehicle, (v) => v.ownerships, { onDelete: 'CASCADE' }),
|
|
35
|
+
(0, typeorm_1.JoinColumn)({ name: 'vehicle_id' }),
|
|
36
|
+
__metadata("design:type", vehicle_entity_1.Vehicle)
|
|
37
|
+
], VehicleOwnership.prototype, "vehicle", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.ManyToOne)(() => person_entity_1.Person, { onDelete: 'CASCADE' }),
|
|
40
|
+
(0, typeorm_1.JoinColumn)({ name: 'person_id' }),
|
|
41
|
+
__metadata("design:type", person_entity_1.Person)
|
|
42
|
+
], VehicleOwnership.prototype, "person", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.ManyToOne)(() => vehicle_procedure_entity_1.VehicleProcedure, { onDelete: 'SET NULL', nullable: true }),
|
|
45
|
+
(0, typeorm_1.JoinColumn)({ name: 'from_tramite_id' }),
|
|
46
|
+
__metadata("design:type", vehicle_procedure_entity_1.VehicleProcedure)
|
|
47
|
+
], VehicleOwnership.prototype, "fromTramite", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.ManyToOne)(() => vehicle_procedure_entity_1.VehicleProcedure, { onDelete: 'SET NULL', nullable: true }),
|
|
50
|
+
(0, typeorm_1.JoinColumn)({ name: 'to_tramite_id' }),
|
|
51
|
+
__metadata("design:type", vehicle_procedure_entity_1.VehicleProcedure)
|
|
52
|
+
], VehicleOwnership.prototype, "toTramite", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ name: 'from_date', type: 'date', nullable: true }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], VehicleOwnership.prototype, "fromDate", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ name: 'to_date', type: 'date', nullable: true }),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], VehicleOwnership.prototype, "toDate", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ name: 'observations', type: 'jsonb', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], VehicleOwnership.prototype, "observations", void 0);
|
|
65
|
+
exports.VehicleOwnership = VehicleOwnership = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)('vehicle_ownership'),
|
|
67
|
+
(0, typeorm_1.Index)('vo_vehicle_from_date_idx', ['vehicle', 'fromDate']),
|
|
68
|
+
(0, typeorm_1.Index)('vo_person_idx', ['person'])
|
|
69
|
+
], VehicleOwnership);
|
|
70
|
+
//# sourceMappingURL=vehicle-ownership.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle-ownership.entity.js","sourceRoot":"","sources":["../../../src/entities/vehicle/vehicle-ownership.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,qCAMiB;AACjB,qDAA2C;AAC3C,2DAAiD;AACjD,yEAA8D;AAE9D;;;;;;;;;;;GAWG;AAII,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,yBAAU;CA8C/C,CAAA;AA9CY,4CAAgB;AAM3B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACzB,wBAAO;iDAAC;AAOlB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAChD,IAAA,oBAAU,EAAC,EAAE,I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|
|
4
|
+
/**
|
|
5
|
+
* VehicleProcedure Entity
|
|
6
|
+
*
|
|
7
|
+
* Represents each row from INTT PDF reports (trámite/acto).
|
|
8
|
+
* Captures the complete state of the vehicle at that specific moment.
|
|
9
|
+
*
|
|
10
|
+
* Design principles:
|
|
11
|
+
* - Each procedure is an immutable event
|
|
12
|
+
* - Contains snapshot of vehicle state at time of procedure
|
|
13
|
+
* - Chaining fields (Desde/Hasta) reconstruct temporal flow
|
|
14
|
+
* - Lineage metadata tracks data source (PDF origin)
|
|
15
|
+
*/
|
|
16
|
+
export declare class VehicleProcedure extends GlobalBase {
|
|
17
|
+
/**
|
|
18
|
+
* Número de trámite/expediente
|
|
19
|
+
*/
|
|
20
|
+
numeroTramite: string;
|
|
21
|
+
/**
|
|
22
|
+
* Categoría - VH (vehículo) | MT (motocicleta)
|
|
23
|
+
*/
|
|
24
|
+
ctgCode: string;
|
|
25
|
+
/**
|
|
26
|
+
* Fecha de impresión del acto
|
|
27
|
+
*/
|
|
28
|
+
fechaImpresion?: Date;
|
|
29
|
+
/**
|
|
30
|
+
* Código de estado del trámite
|
|
31
|
+
*/
|
|
32
|
+
statusCode?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Departamento/tipo de trámite - AP1, TR1, CV1, NU1, MP7, etc.
|
|
35
|
+
*/
|
|
36
|
+
dptoCode: string;
|
|
37
|
+
/**
|
|
38
|
+
* Serial de carrocería (redundante para trazabilidad)
|
|
39
|
+
*/
|
|
40
|
+
serialCarroceria: string;
|
|
41
|
+
/**
|
|
42
|
+
* Placa en este trámite
|
|
43
|
+
*/
|
|
44
|
+
placa?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Identificación del propietario (formato: "V-15404035")
|
|
47
|
+
*/
|
|
48
|
+
propietarioFullId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Marca - Código corto
|
|
51
|
+
*/
|
|
52
|
+
marcaCode?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Modelo - Texto descriptivo
|
|
55
|
+
*/
|
|
56
|
+
modelo?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Año del modelo
|
|
59
|
+
*/
|
|
60
|
+
anioModelo?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Serial del motor
|
|
63
|
+
*/
|
|
64
|
+
motor?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Clase - Código
|
|
67
|
+
*/
|
|
68
|
+
claseCode?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Tipo - Código
|
|
71
|
+
*/
|
|
72
|
+
tipoCode?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Uso - Código
|
|
75
|
+
*/
|
|
76
|
+
usoCode?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Servicio - Código
|
|
79
|
+
*/
|
|
80
|
+
servCode?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Código adicional C1
|
|
83
|
+
*/
|
|
84
|
+
c1Code?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Código adicional C2
|
|
87
|
+
*/
|
|
88
|
+
c2Code?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Encadenamiento: Número de trámite previo
|
|
91
|
+
*/
|
|
92
|
+
tramiteDesdeNum?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Encadenamiento: Número de trámite siguiente
|
|
95
|
+
*/
|
|
96
|
+
tramiteHastaNum?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Serial anterior (si hubo cambio)
|
|
99
|
+
*/
|
|
100
|
+
serialAnterior?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Placa anterior (si hubo cambio)
|
|
103
|
+
*/
|
|
104
|
+
placaAnterior?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Entidad que emitió el reporte (ej: INTTT)
|
|
107
|
+
*/
|
|
108
|
+
entidad?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Oficina que emitió el reporte (ej: INTT)
|
|
111
|
+
*/
|
|
112
|
+
oficina?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Fecha de emisión del reporte PDF
|
|
115
|
+
*/
|
|
116
|
+
fechaReporte?: Date;
|
|
117
|
+
/**
|
|
118
|
+
* Analista carnet que generó el reporte
|
|
119
|
+
*/
|
|
120
|
+
analistaCarnet?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Fila cruda parseada del PDF (JSONB)
|
|
123
|
+
*/
|
|
124
|
+
rawRow?: Record<string, any>;
|
|
125
|
+
/**
|
|
126
|
+
* Relación: Vehículo al que pertenece este procedimiento
|
|
127
|
+
*/
|
|
128
|
+
vehicle?: Vehicle;
|
|
129
|
+
/**
|
|
130
|
+
* Relación: Propietario en el momento del trámite
|
|
131
|
+
*/
|
|
132
|
+
currentOwnerPerson?: Person;
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=vehicle-procedure.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle-procedure.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/vehicle/vehicle-procedure.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQlD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD;;;;;;;;;;;GAWG;AACH,qBAMa,gBAAiB,SAAQ,UAAU;IAC9C;;OAEG;IAEH,aAAa,EAAG,MAAM,CAAC;IAEvB;;OAEG;IAEH,OAAO,EAAG,MAAM,CAAC;IAEjB;;OAEG;IAEH,cAAc,CAAC,EAAE,IAAI,CAAC;IAEtB;;OAEG;IAEH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAElB;;OAEG;IAEH,gBAAgB,EAAG,MAAM,CAAC;IAE1B;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IAEH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IAEH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IAEH,aAAa,CAAC,EAAE,MAAM,CAAC;IAIvB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,YAAY,CAAC,EAAE,IAAI,CAAC;IAEpB;;OAEG;IAEH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAI7B;;OAEG;IAGH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IAGH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -0,0 +1,158 @@
|
|
|
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.VehicleProcedure = void 0;
|
|
13
|
+
const _global_base_1 = require("../base/_global-base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const vehicle_entity_1 = require("./vehicle.entity");
|
|
16
|
+
const person_entity_1 = require("../person/person.entity");
|
|
17
|
+
/**
|
|
18
|
+
* VehicleProcedure Entity
|
|
19
|
+
*
|
|
20
|
+
* Represents each row from INTT PDF reports (trámite/acto).
|
|
21
|
+
* Captures the complete state of the vehicle at that specific moment.
|
|
22
|
+
*
|
|
23
|
+
* Design principles:
|
|
24
|
+
* - Each procedure is an immutable event
|
|
25
|
+
* - Contains snapshot of vehicle state at time of procedure
|
|
26
|
+
* - Chaining fields (Desde/Hasta) reconstruct temporal flow
|
|
27
|
+
* - Lineage metadata tracks data source (PDF origin)
|
|
28
|
+
*/
|
|
29
|
+
let VehicleProcedure = class VehicleProcedure extends _global_base_1.GlobalBase {
|
|
30
|
+
};
|
|
31
|
+
exports.VehicleProcedure = VehicleProcedure;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ name: 'numero_tramite', type: 'varchar', length: 30 }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], VehicleProcedure.prototype, "numeroTramite", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ name: 'ctg_code', type: 'varchar', length: 5 }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], VehicleProcedure.prototype, "ctgCode", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'fecha_impresion', type: 'date', nullable: true }),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], VehicleProcedure.prototype, "fechaImpresion", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ name: 'status_code', type: 'varchar', length: 10, nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], VehicleProcedure.prototype, "statusCode", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ name: 'dpto_code', type: 'varchar', length: 10 }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], VehicleProcedure.prototype, "dptoCode", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ name: 'serial_carroceria', type: 'varchar', length: 32 }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], VehicleProcedure.prototype, "serialCarroceria", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ name: 'placa', type: 'varchar', length: 10, nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], VehicleProcedure.prototype, "placa", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ name: 'propietario_full_id', type: 'varchar', length: 20, nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], VehicleProcedure.prototype, "propietarioFullId", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ name: 'marca_code', type: 'varchar', length: 10, nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], VehicleProcedure.prototype, "marcaCode", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ name: 'modelo', type: 'varchar', length: 80, nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], VehicleProcedure.prototype, "modelo", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ name: 'anio_modelo', type: 'int', nullable: true }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], VehicleProcedure.prototype, "anioModelo", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ name: 'motor', type: 'varchar', length: 50, nullable: true }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], VehicleProcedure.prototype, "motor", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ name: 'clase_code', type: 'varchar', length: 10, nullable: true }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], VehicleProcedure.prototype, "claseCode", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ name: 'tipo_code', type: 'varchar', length: 10, nullable: true }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], VehicleProcedure.prototype, "tipoCode", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ name: 'uso_code', type: 'varchar', length: 10, nullable: true }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], VehicleProcedure.prototype, "usoCode", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ name: 'serv_code', type: 'varchar', length: 10, nullable: true }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], VehicleProcedure.prototype, "servCode", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ name: 'c1_code', type: 'varchar', length: 10, nullable: true }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], VehicleProcedure.prototype, "c1Code", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ name: 'c2_code', type: 'varchar', length: 10, nullable: true }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], VehicleProcedure.prototype, "c2Code", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ name: 'tramite_desde_num', type: 'varchar', length: 30, nullable: true }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], VehicleProcedure.prototype, "tramiteDesdeNum", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ name: 'tramite_hasta_num', type: 'varchar', length: 30, nullable: true }),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], VehicleProcedure.prototype, "tramiteHastaNum", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ name: 'serial_anterior', type: 'varchar', length: 50, nullable: true }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], VehicleProcedure.prototype, "serialAnterior", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ name: 'placa_anterior', type: 'varchar', length: 10, nullable: true }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], VehicleProcedure.prototype, "placaAnterior", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ name: 'entidad', type: 'varchar', length: 50, nullable: true }),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], VehicleProcedure.prototype, "entidad", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ name: 'oficina', type: 'varchar', length: 50, nullable: true }),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], VehicleProcedure.prototype, "oficina", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ name: 'fecha_reporte', type: 'timestamp', nullable: true }),
|
|
130
|
+
__metadata("design:type", Date)
|
|
131
|
+
], VehicleProcedure.prototype, "fechaReporte", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ name: 'analista_carnet', type: 'varchar', length: 50, nullable: true }),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], VehicleProcedure.prototype, "analistaCarnet", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ name: 'raw_row', type: 'jsonb', nullable: true }),
|
|
138
|
+
__metadata("design:type", Object)
|
|
139
|
+
], VehicleProcedure.prototype, "rawRow", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, typeorm_1.ManyToOne)(() => vehicle_entity_1.Vehicle, (v) => v.procedures, { onDelete: 'CASCADE' }),
|
|
142
|
+
(0, typeorm_1.JoinColumn)({ name: 'vehicle_id' }),
|
|
143
|
+
__metadata("design:type", vehicle_entity_1.Vehicle)
|
|
144
|
+
], VehicleProcedure.prototype, "vehicle", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.ManyToOne)(() => person_entity_1.Person, { onDelete: 'SET NULL', nullable: true }),
|
|
147
|
+
(0, typeorm_1.JoinColumn)({ name: 'current_owner_person_id' }),
|
|
148
|
+
__metadata("design:type", person_entity_1.Person)
|
|
149
|
+
], VehicleProcedure.prototype, "currentOwnerPerson", void 0);
|
|
150
|
+
exports.VehicleProcedure = VehicleProcedure = __decorate([
|
|
151
|
+
(0, typeorm_1.Entity)('vehicle_procedure'),
|
|
152
|
+
(0, typeorm_1.Index)('vp_numero_tramite_idx', ['numeroTramite']),
|
|
153
|
+
(0, typeorm_1.Index)('vp_serial_idx', ['serialCarroceria']),
|
|
154
|
+
(0, typeorm_1.Index)('vp_placa_idx', ['placa']),
|
|
155
|
+
(0, typeorm_1.Index)('vp_owner_full_id_idx', ['propietarioFullId']),
|
|
156
|
+
(0, typeorm_1.Index)('vp_vehicle_idx', ['vehicle'])
|
|
157
|
+
], VehicleProcedure);
|
|
158
|
+
//# sourceMappingURL=vehicle-procedure.entity.js.map
|
|
@@ -0,0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,CAAC,CAAC;IACpD,IAAA,eAAK,EAAC,gBAAgB,EAAE,CAAC,SAAS,CAAC,CAAC;GACxB,gBAAgB,CAoL5B"}
|
|
@@ -1,38 +1,89 @@
|
|
|
1
1
|
import { GlobalBase } from '../base/_global-base';
|
|
2
|
+
import { VehicleProcedure } from './vehicle-procedure.entity';
|
|
3
|
+
import { VehicleOwnership } from './vehicle-ownership.entity';
|
|
4
|
+
import { VehicleIdentifierHistory } from './vehicle-identifier-history.entity';
|
|
5
|
+
import { Person } from '../person/person.entity';
|
|
2
6
|
/**
|
|
3
|
-
*
|
|
7
|
+
* Vehicle Entity
|
|
8
|
+
*
|
|
9
|
+
* Represents the physical vehicle asset (identified by serial carrocería/VIN).
|
|
10
|
+
* Maintains current state while procedures hold complete history.
|
|
11
|
+
*
|
|
12
|
+
* Design principles:
|
|
13
|
+
* - Serial carrocería is the unique identifier
|
|
14
|
+
* - Current values (placa, motor) are materialized for convenience
|
|
15
|
+
* - Historical truth lives in VehicleProcedure records
|
|
16
|
+
* - All codes stored as text (no FK to catalogs)
|
|
4
17
|
*/
|
|
5
18
|
export declare class Vehicle extends GlobalBase {
|
|
6
19
|
/**
|
|
7
|
-
*
|
|
20
|
+
* Serial de carrocería/VIN - Unique identifier
|
|
8
21
|
*/
|
|
9
|
-
|
|
22
|
+
serialCarroceria: string;
|
|
10
23
|
/**
|
|
11
|
-
*
|
|
24
|
+
* Placa actual - Materialized for convenience
|
|
12
25
|
*/
|
|
13
|
-
|
|
26
|
+
placaActual?: string;
|
|
14
27
|
/**
|
|
15
|
-
*
|
|
28
|
+
* Motor actual - Materialized for convenience
|
|
16
29
|
*/
|
|
17
|
-
|
|
30
|
+
motorActual?: string;
|
|
18
31
|
/**
|
|
19
|
-
* Marca
|
|
32
|
+
* Marca - Código corto (HA, EG, K9, etc.)
|
|
33
|
+
*/
|
|
34
|
+
marcaCode?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Modelo - Texto descriptivo
|
|
20
37
|
*/
|
|
21
38
|
modelo?: string;
|
|
22
39
|
/**
|
|
23
|
-
*
|
|
40
|
+
* Año del modelo
|
|
41
|
+
*/
|
|
42
|
+
anioModelo?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Clase - Código (AL, CT, MT, etc.)
|
|
45
|
+
*/
|
|
46
|
+
claseCode?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Tipo - Código (SN, SW, PS, etc.)
|
|
49
|
+
*/
|
|
50
|
+
tipoCode?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Uso - Código (PR = privado, etc.)
|
|
53
|
+
*/
|
|
54
|
+
usoCode?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Servicio - Código
|
|
57
|
+
*/
|
|
58
|
+
servCode?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Código adicional C1
|
|
61
|
+
*/
|
|
62
|
+
c1Code?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Código adicional C2
|
|
65
|
+
*/
|
|
66
|
+
c2Code?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Metadata adicional (JSONB)
|
|
69
|
+
*/
|
|
70
|
+
metadata?: Record<string, any>;
|
|
71
|
+
/**
|
|
72
|
+
* Relación: Propietario actual del vehículo (materializado)
|
|
73
|
+
* Basado en el trámite más reciente (por fechaImpresion)
|
|
74
|
+
*/
|
|
75
|
+
currentOwnerPerson?: Person;
|
|
76
|
+
/**
|
|
77
|
+
* Relación: Todos los trámites/procedimientos de este vehículo
|
|
78
|
+
*/
|
|
79
|
+
procedures?: VehicleProcedure[];
|
|
80
|
+
/**
|
|
81
|
+
* Relación: Períodos de titularidad
|
|
24
82
|
*/
|
|
25
|
-
|
|
83
|
+
ownerships?: VehicleOwnership[];
|
|
26
84
|
/**
|
|
27
|
-
*
|
|
85
|
+
* Relación: Historial de cambios de identificadores
|
|
28
86
|
*/
|
|
29
|
-
|
|
30
|
-
fechaConsignacion?: Date;
|
|
31
|
-
fechaImpresion?: Date;
|
|
32
|
-
fechaProceseo?: Date;
|
|
33
|
-
numeroTramite?: string;
|
|
34
|
-
tipoTramite?: string;
|
|
35
|
-
estatusVehiculo?: string;
|
|
36
|
-
propietario?: Record<string, any>;
|
|
87
|
+
idHistory?: VehicleIdentifierHistory[];
|
|
37
88
|
}
|
|
38
89
|
//# sourceMappingURL=vehicle.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vehicle.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/vehicle/vehicle.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"vehicle.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/vehicle/vehicle.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AASlD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD;;;;;;;;;;;GAWG;AACH,qBAGa,OAAQ,SAAQ,UAAU;IACrC;;OAEG;IAEH,gBAAgB,EAAG,MAAM,CAAC;IAE1B;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE/B;;;OAGG;IAGH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IAEH,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEhC;;OAEG;IAEH,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEhC;;OAEG;IAEH,SAAS,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACxC"}
|
|
@@ -12,67 +12,97 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Vehicle = void 0;
|
|
13
13
|
const _global_base_1 = require("../base/_global-base");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
|
+
const vehicle_procedure_entity_1 = require("./vehicle-procedure.entity");
|
|
16
|
+
const vehicle_ownership_entity_1 = require("./vehicle-ownership.entity");
|
|
17
|
+
const vehicle_identifier_history_entity_1 = require("./vehicle-identifier-history.entity");
|
|
18
|
+
const person_entity_1 = require("../person/person.entity");
|
|
15
19
|
/**
|
|
16
|
-
*
|
|
20
|
+
* Vehicle Entity
|
|
21
|
+
*
|
|
22
|
+
* Represents the physical vehicle asset (identified by serial carrocería/VIN).
|
|
23
|
+
* Maintains current state while procedures hold complete history.
|
|
24
|
+
*
|
|
25
|
+
* Design principles:
|
|
26
|
+
* - Serial carrocería is the unique identifier
|
|
27
|
+
* - Current values (placa, motor) are materialized for convenience
|
|
28
|
+
* - Historical truth lives in VehicleProcedure records
|
|
29
|
+
* - All codes stored as text (no FK to catalogs)
|
|
17
30
|
*/
|
|
18
31
|
let Vehicle = class Vehicle extends _global_base_1.GlobalBase {
|
|
19
32
|
};
|
|
20
33
|
exports.Vehicle = Vehicle;
|
|
21
34
|
__decorate([
|
|
22
|
-
(0, typeorm_1.Column)({ name: '
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'serial_carroceria', type: 'varchar', length: 32, unique: true }),
|
|
23
36
|
__metadata("design:type", String)
|
|
24
|
-
], Vehicle.prototype, "
|
|
37
|
+
], Vehicle.prototype, "serialCarroceria", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'placa_actual', type: 'varchar', length: 10, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Vehicle.prototype, "placaActual", void 0);
|
|
25
42
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ name: '
|
|
43
|
+
(0, typeorm_1.Column)({ name: 'motor_actual', type: 'varchar', length: 50, nullable: true }),
|
|
27
44
|
__metadata("design:type", String)
|
|
28
|
-
], Vehicle.prototype, "
|
|
45
|
+
], Vehicle.prototype, "motorActual", void 0);
|
|
29
46
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ name: '
|
|
47
|
+
(0, typeorm_1.Column)({ name: 'marca_code', type: 'varchar', length: 10, nullable: true }),
|
|
31
48
|
__metadata("design:type", String)
|
|
32
|
-
], Vehicle.prototype, "
|
|
49
|
+
], Vehicle.prototype, "marcaCode", void 0);
|
|
33
50
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ name: 'modelo', type: 'varchar', length:
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'modelo', type: 'varchar', length: 80, nullable: true }),
|
|
35
52
|
__metadata("design:type", String)
|
|
36
53
|
], Vehicle.prototype, "modelo", void 0);
|
|
37
54
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ name: '
|
|
55
|
+
(0, typeorm_1.Column)({ name: 'anio_modelo', type: 'int', nullable: true }),
|
|
39
56
|
__metadata("design:type", Number)
|
|
40
|
-
], Vehicle.prototype, "
|
|
57
|
+
], Vehicle.prototype, "anioModelo", void 0);
|
|
41
58
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ name: '
|
|
59
|
+
(0, typeorm_1.Column)({ name: 'clase_code', type: 'varchar', length: 10, nullable: true }),
|
|
43
60
|
__metadata("design:type", String)
|
|
44
|
-
], Vehicle.prototype, "
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ name: "fecha_consignacion", nullable: true }),
|
|
47
|
-
__metadata("design:type", Date)
|
|
48
|
-
], Vehicle.prototype, "fechaConsignacion", void 0);
|
|
61
|
+
], Vehicle.prototype, "claseCode", void 0);
|
|
49
62
|
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ name:
|
|
51
|
-
__metadata("design:type",
|
|
52
|
-
], Vehicle.prototype, "
|
|
63
|
+
(0, typeorm_1.Column)({ name: 'tipo_code', type: 'varchar', length: 10, nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], Vehicle.prototype, "tipoCode", void 0);
|
|
53
66
|
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ name:
|
|
55
|
-
__metadata("design:type",
|
|
56
|
-
], Vehicle.prototype, "
|
|
67
|
+
(0, typeorm_1.Column)({ name: 'uso_code', type: 'varchar', length: 10, nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], Vehicle.prototype, "usoCode", void 0);
|
|
57
70
|
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ name: '
|
|
71
|
+
(0, typeorm_1.Column)({ name: 'serv_code', type: 'varchar', length: 10, nullable: true }),
|
|
59
72
|
__metadata("design:type", String)
|
|
60
|
-
], Vehicle.prototype, "
|
|
73
|
+
], Vehicle.prototype, "servCode", void 0);
|
|
61
74
|
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ name: '
|
|
75
|
+
(0, typeorm_1.Column)({ name: 'c1_code', type: 'varchar', length: 10, nullable: true }),
|
|
63
76
|
__metadata("design:type", String)
|
|
64
|
-
], Vehicle.prototype, "
|
|
77
|
+
], Vehicle.prototype, "c1Code", void 0);
|
|
65
78
|
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ name: '
|
|
79
|
+
(0, typeorm_1.Column)({ name: 'c2_code', type: 'varchar', length: 10, nullable: true }),
|
|
67
80
|
__metadata("design:type", String)
|
|
68
|
-
], Vehicle.prototype, "
|
|
81
|
+
], Vehicle.prototype, "c2Code", void 0);
|
|
69
82
|
__decorate([
|
|
70
83
|
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
71
84
|
__metadata("design:type", Object)
|
|
72
|
-
], Vehicle.prototype, "
|
|
85
|
+
], Vehicle.prototype, "metadata", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.ManyToOne)(() => person_entity_1.Person, { nullable: true, onDelete: 'SET NULL' }),
|
|
88
|
+
(0, typeorm_1.JoinColumn)({ name: 'current_owner_person_id' }),
|
|
89
|
+
__metadata("design:type", person_entity_1.Person)
|
|
90
|
+
], Vehicle.prototype, "currentOwnerPerson", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.OneToMany)(() => vehicle_procedure_entity_1.VehicleProcedure, (p) => p.vehicle),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], Vehicle.prototype, "procedures", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.OneToMany)(() => vehicle_ownership_entity_1.VehicleOwnership, (o) => o.vehicle),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], Vehicle.prototype, "ownerships", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.OneToMany)(() => vehicle_identifier_history_entity_1.VehicleIdentifierHistory, (h) => h.vehicle),
|
|
101
|
+
__metadata("design:type", Array)
|
|
102
|
+
], Vehicle.prototype, "idHistory", void 0);
|
|
73
103
|
exports.Vehicle = Vehicle = __decorate([
|
|
74
|
-
(0, typeorm_1.Entity)(
|
|
75
|
-
(0, typeorm_1.Index)('
|
|
76
|
-
(0, typeorm_1.Index)('
|
|
104
|
+
(0, typeorm_1.Entity)('vehicle'),
|
|
105
|
+
(0, typeorm_1.Index)('vehicle_serial_unique', ['serialCarroceria'], { unique: true }),
|
|
106
|
+
(0, typeorm_1.Index)('vehicle_placa_idx', ['placaActual'])
|
|
77
107
|
], Vehicle);
|
|
78
108
|
//# sourceMappingURL=vehicle.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vehicle.entity.js","sourceRoot":"","sources":["../../../src/entities/vehicle/vehicle.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"vehicle.entity.js","sourceRoot":"","sources":["../../../src/entities/vehicle/vehicle.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,qCAOiB;AACjB,yEAA8D;AAC9D,yEAA8D;AAC9D,2FAA+E;AAC/E,2DAAiD;AAEjD;;;;;;;;;;;GAWG;AAII,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,yBAAU;CAwGtC,CAAA;AAxGY,0BAAO;AAKlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;iDACvD;AAM1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACzD;AAMrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACzD;AAMrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EA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CACzD;AAMhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAQ/B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IACjE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC;8BAC3B,sBAAM;mDAAC;AAM5B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;2CACpB;AAMhC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;2CACpB;AAMhC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4DAAwB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;0CACrB;kBAvG5B,OAAO;IAHnB,IAAA,gBAAM,EAAC,SAAS,CAAC;IACjB,IAAA,eAAK,EAAC,uBAAuB,EAAE,CAAC,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACtE,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,aAAa,CAAC,CAAC;GAC/B,OAAO,CAwGnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigmatech/pergamo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
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",
|