@sigmatech/pergamo 0.1.0
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/app-config.entity.d.ts +7 -0
- package/dist/entities/app-config.entity.d.ts.map +1 -0
- package/dist/entities/app-config.entity.js +32 -0
- package/dist/entities/app-config.entity.js.map +1 -0
- package/dist/entities/audit-log.entity.d.ts +10 -0
- package/dist/entities/audit-log.entity.d.ts.map +1 -0
- package/dist/entities/audit-log.entity.js +50 -0
- package/dist/entities/audit-log.entity.js.map +1 -0
- package/dist/entities/base/_base.d.ts +25 -0
- package/dist/entities/base/_base.d.ts.map +1 -0
- package/dist/entities/base/_base.js +68 -0
- package/dist/entities/base/_base.js.map +1 -0
- package/dist/entities/base/_global-base.d.ts +31 -0
- package/dist/entities/base/_global-base.d.ts.map +1 -0
- package/dist/entities/base/_global-base.js +68 -0
- package/dist/entities/base/_global-base.js.map +1 -0
- package/dist/entities/base/index.d.ts +9 -0
- package/dist/entities/base/index.d.ts.map +1 -0
- package/dist/entities/base/index.js +14 -0
- package/dist/entities/base/index.js.map +1 -0
- package/dist/entities/case/case-asset.entity.d.ts +56 -0
- package/dist/entities/case/case-asset.entity.d.ts.map +1 -0
- package/dist/entities/case/case-asset.entity.js +175 -0
- package/dist/entities/case/case-asset.entity.js.map +1 -0
- package/dist/entities/case/case-role.entity.d.ts +55 -0
- package/dist/entities/case/case-role.entity.d.ts.map +1 -0
- package/dist/entities/case/case-role.entity.js +245 -0
- package/dist/entities/case/case-role.entity.js.map +1 -0
- package/dist/entities/case/case-search.entity.d.ts +49 -0
- package/dist/entities/case/case-search.entity.d.ts.map +1 -0
- package/dist/entities/case/case-search.entity.js +188 -0
- package/dist/entities/case/case-search.entity.js.map +1 -0
- package/dist/entities/case/case.entity.d.ts +53 -0
- package/dist/entities/case/case.entity.d.ts.map +1 -0
- package/dist/entities/case/case.entity.js +176 -0
- package/dist/entities/case/case.entity.js.map +1 -0
- package/dist/entities/comprobacion/dbrovp_2018.entity.d.ts +22 -0
- package/dist/entities/comprobacion/dbrovp_2018.entity.d.ts.map +1 -0
- package/dist/entities/comprobacion/dbrovp_2018.entity.js +60 -0
- package/dist/entities/comprobacion/dbrovp_2018.entity.js.map +1 -0
- package/dist/entities/comprobacion/index.d.ts +4 -0
- package/dist/entities/comprobacion/index.d.ts.map +1 -0
- package/dist/entities/comprobacion/index.js +20 -0
- package/dist/entities/comprobacion/index.js.map +1 -0
- package/dist/entities/comprobacion/maisanta.entity.d.ts +14 -0
- package/dist/entities/comprobacion/maisanta.entity.d.ts.map +1 -0
- package/dist/entities/comprobacion/maisanta.entity.js +59 -0
- package/dist/entities/comprobacion/maisanta.entity.js.map +1 -0
- package/dist/entities/comprobacion/revocatorio2016.entity.d.ts +8 -0
- package/dist/entities/comprobacion/revocatorio2016.entity.d.ts.map +1 -0
- package/dist/entities/comprobacion/revocatorio2016.entity.js +35 -0
- package/dist/entities/comprobacion/revocatorio2016.entity.js.map +1 -0
- package/dist/entities/contribuyente.entity.d.ts +67 -0
- package/dist/entities/contribuyente.entity.d.ts.map +1 -0
- package/dist/entities/contribuyente.entity.js +95 -0
- package/dist/entities/contribuyente.entity.js.map +1 -0
- package/dist/entities/cpnb/cpnb_general.entity.d.ts +28 -0
- package/dist/entities/cpnb/cpnb_general.entity.d.ts.map +1 -0
- package/dist/entities/cpnb/cpnb_general.entity.js +121 -0
- package/dist/entities/cpnb/cpnb_general.entity.js.map +1 -0
- package/dist/entities/cpnb/sipolnab.entity.d.ts +14 -0
- package/dist/entities/cpnb/sipolnab.entity.d.ts.map +1 -0
- package/dist/entities/cpnb/sipolnab.entity.js +66 -0
- package/dist/entities/cpnb/sipolnab.entity.js.map +1 -0
- package/dist/entities/criminal/cicpc-solicitados.entity.d.ts +10 -0
- package/dist/entities/criminal/cicpc-solicitados.entity.d.ts.map +1 -0
- package/dist/entities/criminal/cicpc-solicitados.entity.js +43 -0
- package/dist/entities/criminal/cicpc-solicitados.entity.js.map +1 -0
- package/dist/entities/data-telecom/person-relation-phone.entity.d.ts +10 -0
- package/dist/entities/data-telecom/person-relation-phone.entity.d.ts.map +1 -0
- package/dist/entities/data-telecom/person-relation-phone.entity.js +60 -0
- package/dist/entities/data-telecom/person-relation-phone.entity.js.map +1 -0
- package/dist/entities/data-telecom/person-suscriptor-phone.entity.d.ts +19 -0
- package/dist/entities/data-telecom/person-suscriptor-phone.entity.d.ts.map +1 -0
- package/dist/entities/data-telecom/person-suscriptor-phone.entity.js +116 -0
- package/dist/entities/data-telecom/person-suscriptor-phone.entity.js.map +1 -0
- package/dist/entities/data-telecom/phone.entity.d.ts +19 -0
- package/dist/entities/data-telecom/phone.entity.d.ts.map +1 -0
- package/dist/entities/data-telecom/phone.entity.js +67 -0
- package/dist/entities/data-telecom/phone.entity.js.map +1 -0
- package/dist/entities/document/document-entity-link.entity.d.ts +40 -0
- package/dist/entities/document/document-entity-link.entity.d.ts.map +1 -0
- package/dist/entities/document/document-entity-link.entity.js +72 -0
- package/dist/entities/document/document-entity-link.entity.js.map +1 -0
- package/dist/entities/document/document.entity.d.ts +70 -0
- package/dist/entities/document/document.entity.d.ts.map +1 -0
- package/dist/entities/document/document.entity.js +92 -0
- package/dist/entities/document/document.entity.js.map +1 -0
- package/dist/entities/inac/aeronave.entity.d.ts +106 -0
- package/dist/entities/inac/aeronave.entity.d.ts.map +1 -0
- package/dist/entities/inac/aeronave.entity.js +130 -0
- package/dist/entities/inac/aeronave.entity.js.map +1 -0
- package/dist/entities/inac/detentor.entity.d.ts +30 -0
- package/dist/entities/inac/detentor.entity.d.ts.map +1 -0
- package/dist/entities/inac/detentor.entity.js +61 -0
- package/dist/entities/inac/detentor.entity.js.map +1 -0
- package/dist/entities/index.d.ts +46 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +81 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/ipsfa/ipsfa.entity.d.ts +53 -0
- package/dist/entities/ipsfa/ipsfa.entity.d.ts.map +1 -0
- package/dist/entities/ipsfa/ipsfa.entity.js +178 -0
- package/dist/entities/ipsfa/ipsfa.entity.js.map +1 -0
- package/dist/entities/ivss/ivss-affiliation.entity.d.ts +14 -0
- package/dist/entities/ivss/ivss-affiliation.entity.d.ts.map +1 -0
- package/dist/entities/ivss/ivss-affiliation.entity.js +61 -0
- package/dist/entities/ivss/ivss-affiliation.entity.js.map +1 -0
- package/dist/entities/ivss/ivss-annual-history.entity.d.ts +12 -0
- package/dist/entities/ivss/ivss-annual-history.entity.d.ts.map +1 -0
- package/dist/entities/ivss/ivss-annual-history.entity.js +52 -0
- package/dist/entities/ivss/ivss-annual-history.entity.js.map +1 -0
- package/dist/entities/ivss/ivss-insured.entity.d.ts +40 -0
- package/dist/entities/ivss/ivss-insured.entity.d.ts.map +1 -0
- package/dist/entities/ivss/ivss-insured.entity.js +115 -0
- package/dist/entities/ivss/ivss-insured.entity.js.map +1 -0
- package/dist/entities/ivss/person-ivss.entity.d.ts +11 -0
- package/dist/entities/ivss/person-ivss.entity.d.ts.map +1 -0
- package/dist/entities/ivss/person-ivss.entity.js +47 -0
- package/dist/entities/ivss/person-ivss.entity.js.map +1 -0
- package/dist/entities/notifications/system-notification.entity.d.ts +30 -0
- package/dist/entities/notifications/system-notification.entity.d.ts.map +1 -0
- package/dist/entities/notifications/system-notification.entity.js +105 -0
- package/dist/entities/notifications/system-notification.entity.js.map +1 -0
- package/dist/entities/notifications/user-notification-read.entity.d.ts +12 -0
- package/dist/entities/notifications/user-notification-read.entity.d.ts.map +1 -0
- package/dist/entities/notifications/user-notification-read.entity.js +56 -0
- package/dist/entities/notifications/user-notification-read.entity.js.map +1 -0
- package/dist/entities/person/person-criminal-data.entity.d.ts +9 -0
- package/dist/entities/person/person-criminal-data.entity.d.ts.map +1 -0
- package/dist/entities/person/person-criminal-data.entity.js +42 -0
- package/dist/entities/person/person-criminal-data.entity.js.map +1 -0
- package/dist/entities/person/person-data-telecom.entity.d.ts +11 -0
- package/dist/entities/person/person-data-telecom.entity.d.ts.map +1 -0
- package/dist/entities/person/person-data-telecom.entity.js +52 -0
- package/dist/entities/person/person-data-telecom.entity.js.map +1 -0
- package/dist/entities/person/person-fiscal-data.entity.d.ts +35 -0
- package/dist/entities/person/person-fiscal-data.entity.d.ts.map +1 -0
- package/dist/entities/person/person-fiscal-data.entity.js +138 -0
- package/dist/entities/person/person-fiscal-data.entity.js.map +1 -0
- package/dist/entities/person/person-identification.entity.d.ts +24 -0
- package/dist/entities/person/person-identification.entity.d.ts.map +1 -0
- package/dist/entities/person/person-identification.entity.js +102 -0
- package/dist/entities/person/person-identification.entity.js.map +1 -0
- package/dist/entities/person/person-iio.entity.d.ts +12 -0
- package/dist/entities/person/person-iio.entity.d.ts.map +1 -0
- package/dist/entities/person/person-iio.entity.js +56 -0
- package/dist/entities/person/person-iio.entity.js.map +1 -0
- package/dist/entities/person/person-migration.entity.d.ts +22 -0
- package/dist/entities/person/person-migration.entity.d.ts.map +1 -0
- package/dist/entities/person/person-migration.entity.js +93 -0
- package/dist/entities/person/person-migration.entity.js.map +1 -0
- package/dist/entities/person/person-police-data.entity.d.ts +9 -0
- package/dist/entities/person/person-police-data.entity.d.ts.map +1 -0
- package/dist/entities/person/person-police-data.entity.js +48 -0
- package/dist/entities/person/person-police-data.entity.js.map +1 -0
- package/dist/entities/person/person-political-data.entity.d.ts +12 -0
- package/dist/entities/person/person-political-data.entity.d.ts.map +1 -0
- package/dist/entities/person/person-political-data.entity.js +54 -0
- package/dist/entities/person/person-political-data.entity.js.map +1 -0
- package/dist/entities/person/person-prohibition.entity.d.ts +41 -0
- package/dist/entities/person/person-prohibition.entity.d.ts.map +1 -0
- package/dist/entities/person/person-prohibition.entity.js +176 -0
- package/dist/entities/person/person-prohibition.entity.js.map +1 -0
- package/dist/entities/person/person-repatriado.entity.d.ts +15 -0
- package/dist/entities/person/person-repatriado.entity.d.ts.map +1 -0
- package/dist/entities/person/person-repatriado.entity.js +67 -0
- package/dist/entities/person/person-repatriado.entity.js.map +1 -0
- package/dist/entities/person/person.entity.d.ts +64 -0
- package/dist/entities/person/person.entity.d.ts.map +1 -0
- package/dist/entities/person/person.entity.js +303 -0
- package/dist/entities/person/person.entity.js.map +1 -0
- package/dist/entities/person/photo-person.entity.d.ts +10 -0
- package/dist/entities/person/photo-person.entity.d.ts.map +1 -0
- package/dist/entities/person/photo-person.entity.js +41 -0
- package/dist/entities/person/photo-person.entity.js.map +1 -0
- package/dist/entities/person/photo.entity.d.ts +11 -0
- package/dist/entities/person/photo.entity.d.ts.map +1 -0
- package/dist/entities/person/photo.entity.js +46 -0
- package/dist/entities/person/photo.entity.js.map +1 -0
- package/dist/entities/political/person-political-party.entity.d.ts +13 -0
- package/dist/entities/political/person-political-party.entity.d.ts.map +1 -0
- package/dist/entities/political/person-political-party.entity.js +55 -0
- package/dist/entities/political/person-political-party.entity.js.map +1 -0
- package/dist/entities/political/political-party.entity.d.ts +14 -0
- package/dist/entities/political/political-party.entity.d.ts.map +1 -0
- package/dist/entities/political/political-party.entity.js +57 -0
- package/dist/entities/political/political-party.entity.js.map +1 -0
- package/dist/entities/repatriados/vuelta-a-la-patria.entity.d.ts +13 -0
- package/dist/entities/repatriados/vuelta-a-la-patria.entity.d.ts.map +1 -0
- package/dist/entities/repatriados/vuelta-a-la-patria.entity.js +54 -0
- package/dist/entities/repatriados/vuelta-a-la-patria.entity.js.map +1 -0
- package/dist/entities/seniat.entity.d.ts +67 -0
- package/dist/entities/seniat.entity.d.ts.map +1 -0
- package/dist/entities/seniat.entity.js +93 -0
- package/dist/entities/seniat.entity.js.map +1 -0
- package/dist/entities/telefonia/bts.entity.d.ts +20 -0
- package/dist/entities/telefonia/bts.entity.d.ts.map +1 -0
- package/dist/entities/telefonia/bts.entity.js +68 -0
- package/dist/entities/telefonia/bts.entity.js.map +1 -0
- package/dist/entities/telefonia/historial-ubicacion.entity.d.ts +39 -0
- package/dist/entities/telefonia/historial-ubicacion.entity.d.ts.map +1 -0
- package/dist/entities/telefonia/historial-ubicacion.entity.js +61 -0
- package/dist/entities/telefonia/historial-ubicacion.entity.js.map +1 -0
- package/dist/entities/telefonia/index.d.ts +5 -0
- package/dist/entities/telefonia/index.d.ts.map +1 -0
- package/dist/entities/telefonia/index.js +21 -0
- package/dist/entities/telefonia/index.js.map +1 -0
- package/dist/entities/telefonia/m_digitel_2024.entity.d.ts +14 -0
- package/dist/entities/telefonia/m_digitel_2024.entity.d.ts.map +1 -0
- package/dist/entities/telefonia/m_digitel_2024.entity.js +64 -0
- package/dist/entities/telefonia/m_digitel_2024.entity.js.map +1 -0
- package/dist/entities/telefonia/m_digitel_2025.entity.d.ts +16 -0
- package/dist/entities/telefonia/m_digitel_2025.entity.d.ts.map +1 -0
- package/dist/entities/telefonia/m_digitel_2025.entity.js +74 -0
- package/dist/entities/telefonia/m_digitel_2025.entity.js.map +1 -0
- package/dist/entities/telefonia/m_movilnet_api_latest.entity.d.ts +121 -0
- package/dist/entities/telefonia/m_movilnet_api_latest.entity.d.ts.map +1 -0
- package/dist/entities/telefonia/m_movilnet_api_latest.entity.js +92 -0
- package/dist/entities/telefonia/m_movilnet_api_latest.entity.js.map +1 -0
- package/dist/entities/telefonia/telefonia.entity.d.ts +58 -0
- package/dist/entities/telefonia/telefonia.entity.d.ts.map +1 -0
- package/dist/entities/telefonia/telefonia.entity.js +77 -0
- package/dist/entities/telefonia/telefonia.entity.js.map +1 -0
- package/dist/entities/user-profile/index.d.ts +4 -0
- package/dist/entities/user-profile/index.d.ts.map +1 -0
- package/dist/entities/user-profile/index.js +10 -0
- package/dist/entities/user-profile/index.js.map +1 -0
- package/dist/entities/user-profile/user-profile-visit.entity.d.ts +16 -0
- package/dist/entities/user-profile/user-profile-visit.entity.d.ts.map +1 -0
- package/dist/entities/user-profile/user-profile-visit.entity.js +75 -0
- package/dist/entities/user-profile/user-profile-visit.entity.js.map +1 -0
- package/dist/entities/user-profile/user-search-log.entity.d.ts +15 -0
- package/dist/entities/user-profile/user-search-log.entity.d.ts.map +1 -0
- package/dist/entities/user-profile/user-search-log.entity.js +71 -0
- package/dist/entities/user-profile/user-search-log.entity.js.map +1 -0
- package/dist/entities/user-profile/user-session-log.entity.d.ts +19 -0
- package/dist/entities/user-profile/user-session-log.entity.d.ts.map +1 -0
- package/dist/entities/user-profile/user-session-log.entity.js +87 -0
- package/dist/entities/user-profile/user-session-log.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +21 -0
- package/dist/entities/user.entity.d.ts.map +1 -0
- package/dist/entities/user.entity.js +94 -0
- package/dist/entities/user.entity.js.map +1 -0
- package/dist/entities/vehicle/vehicle.entity.d.ts +38 -0
- package/dist/entities/vehicle/vehicle.entity.d.ts.map +1 -0
- package/dist/entities/vehicle/vehicle.entity.js +78 -0
- package/dist/entities/vehicle/vehicle.entity.js.map +1 -0
- package/dist/enums/index.d.ts +2 -0
- package/dist/enums/index.d.ts.map +1 -0
- package/dist/enums/index.js +18 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/enums/photo.enum.d.ts +6 -0
- package/dist/enums/photo.enum.d.ts.map +1 -0
- package/dist/enums/photo.enum.js +10 -0
- package/dist/enums/photo.enum.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-config.entity.d.ts","sourceRoot":"","sources":["../../src/entities/app-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA0C,MAAM,SAAS,CAAC;AAE7E,qBACa,SAAU,SAAQ,UAAU;IAErC,EAAE,EAAG,MAAM,CAAC;IAGZ,GAAG,EAAG,MAAM,CAAC;IAGb,KAAK,EAAG,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.AppConfig = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let AppConfig = class AppConfig extends typeorm_1.BaseEntity {
|
|
15
|
+
};
|
|
16
|
+
exports.AppConfig = AppConfig;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], AppConfig.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: false }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AppConfig.prototype, "key", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: false }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AppConfig.prototype, "value", void 0);
|
|
29
|
+
exports.AppConfig = AppConfig = __decorate([
|
|
30
|
+
(0, typeorm_1.Entity)('app_config')
|
|
31
|
+
], AppConfig);
|
|
32
|
+
//# sourceMappingURL=app-config.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-config.entity.js","sourceRoot":"","sources":["../../src/entities/app-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,oBAAU;CASxC,CAAA;AATY,8BAAS;AAElB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;qCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sCAC7C;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wCAC3C;oBARN,SAAS;IADrB,IAAA,gBAAM,EAAC,YAAY,CAAC;GACR,SAAS,CASrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-log.entity.d.ts","sourceRoot":"","sources":["../../src/entities/audit-log.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,qBAEa,QAAQ;IAEnB,EAAE,EAAG,MAAM,CAAC;IAGZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,IAAI,EAAG,IAAI,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG9B,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.AuditLog = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const user_entity_1 = require("./user.entity");
|
|
15
|
+
let AuditLog = class AuditLog {
|
|
16
|
+
};
|
|
17
|
+
exports.AuditLog = AuditLog;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid') // Identificador único del log
|
|
20
|
+
,
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], AuditLog.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ name: 'tenant_id', length: 50, default: 'sp3', nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], AuditLog.prototype, "tenantId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, eager: true }) // Relación Many-to-One con la entidad User
|
|
29
|
+
,
|
|
30
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }) // Define la columna de relación
|
|
31
|
+
,
|
|
32
|
+
__metadata("design:type", user_entity_1.User)
|
|
33
|
+
], AuditLog.prototype, "user", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ length: 255 }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AuditLog.prototype, "action", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], AuditLog.prototype, "details", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], AuditLog.prototype, "createdAt", void 0);
|
|
46
|
+
exports.AuditLog = AuditLog = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({ name: 'audit_logs' }),
|
|
48
|
+
(0, typeorm_1.Index)('IDX_audit_logs_tenant_id', ['tenantId'])
|
|
49
|
+
], AuditLog);
|
|
50
|
+
//# sourceMappingURL=audit-log.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-log.entity.js","sourceRoot":"","sources":["../../src/entities/audit-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,+CAAqC;AAI9B,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAmBpB,CAAA;AAnBY,4BAAQ;AAEnB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC,CAAC,8BAA8B;;;oCAClD;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACxD;AAIlB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,2CAA2C;;IACnG,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,gCAAgC;;8BAC1D,kBAAI;sCAAC;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wCACR;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAG9B;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;2CAAC;mBAlBN,QAAQ;IAFpB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;IAC9B,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,UAAU,CAAC,CAAC;GACnC,QAAQ,CAmBpB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { User } from '../user.entity';
|
|
2
|
+
import { BaseEntity } from 'typeorm';
|
|
3
|
+
/**
|
|
4
|
+
* EntityBase - Base entity with multi-tenancy support
|
|
5
|
+
*
|
|
6
|
+
* All entities extending this class automatically have:
|
|
7
|
+
* - UUID primary key
|
|
8
|
+
* - tenantId column (default: 'sp3')
|
|
9
|
+
* - Audit fields (createdBy, updatedBy, deletedBy)
|
|
10
|
+
* - Timestamps (createdAt, updatedAt, deletedAt)
|
|
11
|
+
*
|
|
12
|
+
* Note: TenantId filtering must be handled explicitly in queries
|
|
13
|
+
* to avoid the infinite recursion issue caused by monkey-patching.
|
|
14
|
+
*/
|
|
15
|
+
export declare class EntityBase extends BaseEntity {
|
|
16
|
+
id: string;
|
|
17
|
+
tenantId?: string;
|
|
18
|
+
createdBy?: User;
|
|
19
|
+
updatedBy?: User;
|
|
20
|
+
deletedBy?: User;
|
|
21
|
+
createdAt?: Date;
|
|
22
|
+
updatedAt?: Date;
|
|
23
|
+
deletedAt?: Date;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=_base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_base.d.ts","sourceRoot":"","sources":["../../../src/entities/base/_base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAML,UAAU,EAIX,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;GAWG;AACH,qBACa,UAAW,SAAQ,UAAU;IAExC,EAAE,EAAG,MAAM,CAAC;IAGZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,SAAS,CAAC,EAAE,IAAI,CAAC;IAIjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAIjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.EntityBase = void 0;
|
|
13
|
+
const user_entity_1 = require("../user.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
/**
|
|
16
|
+
* EntityBase - Base entity with multi-tenancy support
|
|
17
|
+
*
|
|
18
|
+
* All entities extending this class automatically have:
|
|
19
|
+
* - UUID primary key
|
|
20
|
+
* - tenantId column (default: 'sp3')
|
|
21
|
+
* - Audit fields (createdBy, updatedBy, deletedBy)
|
|
22
|
+
* - Timestamps (createdAt, updatedAt, deletedAt)
|
|
23
|
+
*
|
|
24
|
+
* Note: TenantId filtering must be handled explicitly in queries
|
|
25
|
+
* to avoid the infinite recursion issue caused by monkey-patching.
|
|
26
|
+
*/
|
|
27
|
+
let EntityBase = class EntityBase extends typeorm_1.BaseEntity {
|
|
28
|
+
};
|
|
29
|
+
exports.EntityBase = EntityBase;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], EntityBase.prototype, "id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'tenant_id', length: 50, default: 'sp3', nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], EntityBase.prototype, "tenantId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, eager: true }),
|
|
40
|
+
(0, typeorm_1.JoinColumn)({ name: 'created_by' }),
|
|
41
|
+
__metadata("design:type", user_entity_1.User)
|
|
42
|
+
], EntityBase.prototype, "createdBy", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, eager: true }),
|
|
45
|
+
(0, typeorm_1.JoinColumn)({ name: 'updated_by' }),
|
|
46
|
+
__metadata("design:type", user_entity_1.User)
|
|
47
|
+
], EntityBase.prototype, "updatedBy", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, eager: true }),
|
|
50
|
+
(0, typeorm_1.JoinColumn)({ name: 'deleted_by' }),
|
|
51
|
+
__metadata("design:type", user_entity_1.User)
|
|
52
|
+
], EntityBase.prototype, "deletedBy", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: true }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], EntityBase.prototype, "createdAt", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', nullable: true }),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], EntityBase.prototype, "updatedAt", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.DeleteDateColumn)({ name: 'deleted_at', nullable: true }),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], EntityBase.prototype, "deletedAt", void 0);
|
|
65
|
+
exports.EntityBase = EntityBase = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)({ name: 'base' })
|
|
67
|
+
], EntityBase);
|
|
68
|
+
//# sourceMappingURL=_base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_base.js","sourceRoot":"","sources":["../../../src/entities/base/_base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAsC;AACtC,qCAUiB;AAEjB;;;;;;;;;;;GAWG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;CA4BzC,CAAA;AA5BY,gCAAU;AAErB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACxD;AAKlB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACtD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACvB,kBAAI;6CAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACtD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACvB,kBAAI;6CAAC;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACtD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BACvB,kBAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC7C,IAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC7C,IAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC7C,IAAI;6CAAC;qBA3BN,UAAU;IADtB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;GACZ,UAAU,CA4BtB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { User } from '../user.entity';
|
|
2
|
+
import { BaseEntity } from 'typeorm';
|
|
3
|
+
/**
|
|
4
|
+
* GlobalBase - Base entity for GLOBAL shared data (without tenantId)
|
|
5
|
+
*
|
|
6
|
+
* Use this for entities that represent objective facts shared across all tenants:
|
|
7
|
+
* - Person (citizens are unique regardless of who queries them)
|
|
8
|
+
* - External data (SAIME, SENIAT, CPNB, IVSS, etc.)
|
|
9
|
+
* - Multimedia (photos, documents)
|
|
10
|
+
* - Vehicles, Phone numbers, etc.
|
|
11
|
+
*
|
|
12
|
+
* These entities should NOT be filtered by tenantId.
|
|
13
|
+
*
|
|
14
|
+
* All entities extending this class have:
|
|
15
|
+
* - UUID primary key
|
|
16
|
+
* - Audit fields (createdBy, updatedBy, deletedBy)
|
|
17
|
+
* - Timestamps (createdAt, updatedAt, deletedAt)
|
|
18
|
+
* - NO tenantId column
|
|
19
|
+
*
|
|
20
|
+
* For tenant-specific data (operational/investigative work), use EntityBase instead.
|
|
21
|
+
*/
|
|
22
|
+
export declare class GlobalBase extends BaseEntity {
|
|
23
|
+
id: string;
|
|
24
|
+
createdBy?: User;
|
|
25
|
+
updatedBy?: User;
|
|
26
|
+
deletedBy?: User;
|
|
27
|
+
createdAt?: Date;
|
|
28
|
+
updatedAt?: Date;
|
|
29
|
+
deletedAt?: Date;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=_global-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_global-base.d.ts","sourceRoot":"","sources":["../../../src/entities/base/_global-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAKL,UAAU,EAGX,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,UAAW,SAAQ,UAAU;IAExC,EAAE,EAAG,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,IAAI,CAAC;IAIjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAIjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAIjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.GlobalBase = void 0;
|
|
13
|
+
const user_entity_1 = require("../user.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
/**
|
|
16
|
+
* GlobalBase - Base entity for GLOBAL shared data (without tenantId)
|
|
17
|
+
*
|
|
18
|
+
* Use this for entities that represent objective facts shared across all tenants:
|
|
19
|
+
* - Person (citizens are unique regardless of who queries them)
|
|
20
|
+
* - External data (SAIME, SENIAT, CPNB, IVSS, etc.)
|
|
21
|
+
* - Multimedia (photos, documents)
|
|
22
|
+
* - Vehicles, Phone numbers, etc.
|
|
23
|
+
*
|
|
24
|
+
* These entities should NOT be filtered by tenantId.
|
|
25
|
+
*
|
|
26
|
+
* All entities extending this class have:
|
|
27
|
+
* - UUID primary key
|
|
28
|
+
* - Audit fields (createdBy, updatedBy, deletedBy)
|
|
29
|
+
* - Timestamps (createdAt, updatedAt, deletedAt)
|
|
30
|
+
* - NO tenantId column
|
|
31
|
+
*
|
|
32
|
+
* For tenant-specific data (operational/investigative work), use EntityBase instead.
|
|
33
|
+
*/
|
|
34
|
+
class GlobalBase extends typeorm_1.BaseEntity {
|
|
35
|
+
}
|
|
36
|
+
exports.GlobalBase = GlobalBase;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GlobalBase.prototype, "id", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, eager: true }),
|
|
43
|
+
(0, typeorm_1.JoinColumn)({ name: 'created_by' }),
|
|
44
|
+
__metadata("design:type", user_entity_1.User)
|
|
45
|
+
], GlobalBase.prototype, "createdBy", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, eager: true }),
|
|
48
|
+
(0, typeorm_1.JoinColumn)({ name: 'updated_by' }),
|
|
49
|
+
__metadata("design:type", user_entity_1.User)
|
|
50
|
+
], GlobalBase.prototype, "updatedBy", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, eager: true }),
|
|
53
|
+
(0, typeorm_1.JoinColumn)({ name: 'deleted_by' }),
|
|
54
|
+
__metadata("design:type", user_entity_1.User)
|
|
55
|
+
], GlobalBase.prototype, "deletedBy", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: true }),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], GlobalBase.prototype, "createdAt", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', nullable: true }),
|
|
62
|
+
__metadata("design:type", Date)
|
|
63
|
+
], GlobalBase.prototype, "updatedAt", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.DeleteDateColumn)({ name: 'deleted_at', nullable: true }),
|
|
66
|
+
__metadata("design:type", Date)
|
|
67
|
+
], GlobalBase.prototype, "deletedAt", void 0);
|
|
68
|
+
//# sourceMappingURL=_global-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_global-base.js","sourceRoot":"","sources":["../../../src/entities/base/_global-base.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAsC;AACtC,qCAQiB;AAEjB;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,UAAW,SAAQ,oBAAU;CA0BzC;AA1B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} from './_base';
|
|
8
|
+
export { GlobalBase } from './_global-base';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/base/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Base Entities Export
|
|
4
|
+
*
|
|
5
|
+
* - EntityBase: For tenant-specific data (has tenantId)
|
|
6
|
+
* - GlobalBase: For global shared data (no tenantId)
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GlobalBase = exports.EntityBase = void 0;
|
|
10
|
+
var _base_1 = require("./_base");
|
|
11
|
+
Object.defineProperty(exports, "EntityBase", { enumerable: true, get: function () { return _base_1.EntityBase; } });
|
|
12
|
+
var _global_base_1 = require("./_global-base");
|
|
13
|
+
Object.defineProperty(exports, "GlobalBase", { enumerable: true, get: function () { return _global_base_1.GlobalBase; } });
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/base/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iCAAqC;AAA5B,mGAAA,UAAU,OAAA;AACnB,+CAA4C;AAAnC,0GAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EntityBase } from '../base/_base';
|
|
2
|
+
import { Case } from './case.entity';
|
|
3
|
+
export declare enum AssetType {
|
|
4
|
+
PERSON = "PERSON",
|
|
5
|
+
PHONE = "PHONE",
|
|
6
|
+
VEHICLE = "VEHICLE",
|
|
7
|
+
COMPANY = "COMPANY",
|
|
8
|
+
AIRCRAFT = "AIRCRAFT",
|
|
9
|
+
DOCUMENT = "DOCUMENT",
|
|
10
|
+
LOCATION = "LOCATION",
|
|
11
|
+
BANK_ACCOUNT = "BANK_ACCOUNT",
|
|
12
|
+
OTHER = "OTHER"
|
|
13
|
+
}
|
|
14
|
+
export declare enum AssetRole {
|
|
15
|
+
SUSPECT = "SUSPECT",
|
|
16
|
+
VICTIM = "VICTIM",
|
|
17
|
+
WITNESS = "WITNESS",
|
|
18
|
+
INVESTIGATOR = "INVESTIGATOR",
|
|
19
|
+
EVIDENCE = "EVIDENCE",
|
|
20
|
+
RELATED = "RELATED",
|
|
21
|
+
OWNER = "OWNER",
|
|
22
|
+
OPERATOR = "OPERATOR",
|
|
23
|
+
CONTACT = "CONTACT"
|
|
24
|
+
}
|
|
25
|
+
export declare enum AssetStatus {
|
|
26
|
+
ACTIVE = "ACTIVE",
|
|
27
|
+
INACTIVE = "INACTIVE",
|
|
28
|
+
VERIFIED = "VERIFIED",
|
|
29
|
+
UNVERIFIED = "UNVERIFIED",
|
|
30
|
+
REMOVED = "REMOVED"
|
|
31
|
+
}
|
|
32
|
+
export declare class CaseAsset extends EntityBase {
|
|
33
|
+
case: Case;
|
|
34
|
+
assetType: AssetType;
|
|
35
|
+
assetReference: string;
|
|
36
|
+
assetRole: AssetRole;
|
|
37
|
+
status: AssetStatus;
|
|
38
|
+
notes?: string;
|
|
39
|
+
metadata?: Record<string, any>;
|
|
40
|
+
displayName?: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
tags?: string[];
|
|
43
|
+
linkedDate?: Date;
|
|
44
|
+
linkedBy?: string;
|
|
45
|
+
sourceSearchId?: string;
|
|
46
|
+
isPrimary: boolean;
|
|
47
|
+
relevanceScore: number;
|
|
48
|
+
setDefaults(): void;
|
|
49
|
+
private generateDisplayName;
|
|
50
|
+
isActive(): boolean;
|
|
51
|
+
canBeModified(): boolean;
|
|
52
|
+
getAssetIdentifier(): string;
|
|
53
|
+
updateRelevanceScore(score: number): void;
|
|
54
|
+
markAsPrimary(): void;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=case-asset.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-asset.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/case/case-asset.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,KAAK,UAAU;CAChB;AAED,oBAAY,SAAS;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,qBAKa,SAAU,SAAQ,UAAU;IAMvC,IAAI,EAAG,IAAI,CAAC;IAGZ,SAAS,EAAG,SAAS,CAAC;IAGtB,cAAc,EAAG,MAAM,CAAC;IAGxB,SAAS,EAAG,SAAS,CAAC;IAGtB,MAAM,EAAG,WAAW,CAAC;IAGrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG/B,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAGhB,UAAU,CAAC,EAAE,IAAI,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,SAAS,EAAG,OAAO,CAAC;IAGpB,cAAc,EAAG,MAAM,CAAC;IAKxB,WAAW;IAgBX,OAAO,CAAC,mBAAmB;IAiB3B,QAAQ,IAAI,OAAO;IAInB,aAAa,IAAI,OAAO;IAIxB,kBAAkB,IAAI,MAAM;IAI5B,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIzC,aAAa,IAAI,IAAI;CAItB"}
|
|
@@ -0,0 +1,175 @@
|
|
|
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.CaseAsset = exports.AssetStatus = exports.AssetRole = exports.AssetType = void 0;
|
|
13
|
+
const _base_1 = require("../base/_base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const case_entity_1 = require("./case.entity");
|
|
16
|
+
var AssetType;
|
|
17
|
+
(function (AssetType) {
|
|
18
|
+
AssetType["PERSON"] = "PERSON";
|
|
19
|
+
AssetType["PHONE"] = "PHONE";
|
|
20
|
+
AssetType["VEHICLE"] = "VEHICLE";
|
|
21
|
+
AssetType["COMPANY"] = "COMPANY";
|
|
22
|
+
AssetType["AIRCRAFT"] = "AIRCRAFT";
|
|
23
|
+
AssetType["DOCUMENT"] = "DOCUMENT";
|
|
24
|
+
AssetType["LOCATION"] = "LOCATION";
|
|
25
|
+
AssetType["BANK_ACCOUNT"] = "BANK_ACCOUNT";
|
|
26
|
+
AssetType["OTHER"] = "OTHER";
|
|
27
|
+
})(AssetType || (exports.AssetType = AssetType = {}));
|
|
28
|
+
var AssetRole;
|
|
29
|
+
(function (AssetRole) {
|
|
30
|
+
AssetRole["SUSPECT"] = "SUSPECT";
|
|
31
|
+
AssetRole["VICTIM"] = "VICTIM";
|
|
32
|
+
AssetRole["WITNESS"] = "WITNESS";
|
|
33
|
+
AssetRole["INVESTIGATOR"] = "INVESTIGATOR";
|
|
34
|
+
AssetRole["EVIDENCE"] = "EVIDENCE";
|
|
35
|
+
AssetRole["RELATED"] = "RELATED";
|
|
36
|
+
AssetRole["OWNER"] = "OWNER";
|
|
37
|
+
AssetRole["OPERATOR"] = "OPERATOR";
|
|
38
|
+
AssetRole["CONTACT"] = "CONTACT";
|
|
39
|
+
})(AssetRole || (exports.AssetRole = AssetRole = {}));
|
|
40
|
+
var AssetStatus;
|
|
41
|
+
(function (AssetStatus) {
|
|
42
|
+
AssetStatus["ACTIVE"] = "ACTIVE";
|
|
43
|
+
AssetStatus["INACTIVE"] = "INACTIVE";
|
|
44
|
+
AssetStatus["VERIFIED"] = "VERIFIED";
|
|
45
|
+
AssetStatus["UNVERIFIED"] = "UNVERIFIED";
|
|
46
|
+
AssetStatus["REMOVED"] = "REMOVED";
|
|
47
|
+
})(AssetStatus || (exports.AssetStatus = AssetStatus = {}));
|
|
48
|
+
let CaseAsset = class CaseAsset extends _base_1.EntityBase {
|
|
49
|
+
// Hooks
|
|
50
|
+
setDefaults() {
|
|
51
|
+
if (!this.linkedDate) {
|
|
52
|
+
this.linkedDate = new Date();
|
|
53
|
+
}
|
|
54
|
+
if (this.status === AssetStatus.REMOVED) {
|
|
55
|
+
this.relevanceScore = 0;
|
|
56
|
+
}
|
|
57
|
+
// Auto-generar displayName si no se proporciona
|
|
58
|
+
if (!this.displayName) {
|
|
59
|
+
this.displayName = this.generateDisplayName();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// Métodos de utilidad
|
|
63
|
+
generateDisplayName() {
|
|
64
|
+
switch (this.assetType) {
|
|
65
|
+
case AssetType.PERSON:
|
|
66
|
+
return `Persona: ${this.assetReference}`;
|
|
67
|
+
case AssetType.PHONE:
|
|
68
|
+
return `Teléfono: ${this.assetReference}`;
|
|
69
|
+
case AssetType.VEHICLE:
|
|
70
|
+
return `Vehículo: ${this.assetReference}`;
|
|
71
|
+
case AssetType.COMPANY:
|
|
72
|
+
return `Empresa: ${this.assetReference}`;
|
|
73
|
+
case AssetType.AIRCRAFT:
|
|
74
|
+
return `Aeronave: ${this.assetReference}`;
|
|
75
|
+
default:
|
|
76
|
+
return `${this.assetType}: ${this.assetReference}`;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
isActive() {
|
|
80
|
+
return this.status === AssetStatus.ACTIVE || this.status === AssetStatus.VERIFIED;
|
|
81
|
+
}
|
|
82
|
+
canBeModified() {
|
|
83
|
+
return this.status !== AssetStatus.REMOVED;
|
|
84
|
+
}
|
|
85
|
+
getAssetIdentifier() {
|
|
86
|
+
return `${this.assetType}:${this.assetReference}`;
|
|
87
|
+
}
|
|
88
|
+
updateRelevanceScore(score) {
|
|
89
|
+
this.relevanceScore = Math.max(0, Math.min(100, score));
|
|
90
|
+
}
|
|
91
|
+
markAsPrimary() {
|
|
92
|
+
this.isPrimary = true;
|
|
93
|
+
this.relevanceScore = Math.max(this.relevanceScore, 90);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
exports.CaseAsset = CaseAsset;
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.ManyToOne)(() => case_entity_1.Case, (caseEntity) => caseEntity.assets, {
|
|
99
|
+
onDelete: 'CASCADE',
|
|
100
|
+
onUpdate: 'CASCADE',
|
|
101
|
+
}),
|
|
102
|
+
(0, typeorm_1.JoinColumn)({ name: 'case_id' }),
|
|
103
|
+
__metadata("design:type", case_entity_1.Case)
|
|
104
|
+
], CaseAsset.prototype, "case", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AssetType, name: 'asset_type' }),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], CaseAsset.prototype, "assetType", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, name: 'asset_reference' }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], CaseAsset.prototype, "assetReference", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AssetRole, name: 'asset_role' }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], CaseAsset.prototype, "assetRole", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: AssetStatus, default: AssetStatus.ACTIVE }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], CaseAsset.prototype, "status", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], CaseAsset.prototype, "notes", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
127
|
+
__metadata("design:type", Object)
|
|
128
|
+
], CaseAsset.prototype, "metadata", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], CaseAsset.prototype, "displayName", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 500, nullable: true }),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], CaseAsset.prototype, "description", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, nullable: true }),
|
|
139
|
+
__metadata("design:type", Array)
|
|
140
|
+
], CaseAsset.prototype, "tags", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, name: 'linked_date' }),
|
|
143
|
+
__metadata("design:type", Date)
|
|
144
|
+
], CaseAsset.prototype, "linkedDate", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true, name: 'linked_by' }),
|
|
147
|
+
__metadata("design:type", String)
|
|
148
|
+
], CaseAsset.prototype, "linkedBy", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true, name: 'source_search_id' }),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], CaseAsset.prototype, "sourceSearchId", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, name: 'is_primary' }),
|
|
155
|
+
__metadata("design:type", Boolean)
|
|
156
|
+
], CaseAsset.prototype, "isPrimary", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
159
|
+
__metadata("design:type", Number)
|
|
160
|
+
], CaseAsset.prototype, "relevanceScore", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
163
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
164
|
+
__metadata("design:type", Function),
|
|
165
|
+
__metadata("design:paramtypes", []),
|
|
166
|
+
__metadata("design:returntype", void 0)
|
|
167
|
+
], CaseAsset.prototype, "setDefaults", null);
|
|
168
|
+
exports.CaseAsset = CaseAsset = __decorate([
|
|
169
|
+
(0, typeorm_1.Entity)('case_asset'),
|
|
170
|
+
(0, typeorm_1.Index)('case_asset_case_idx', ['case']),
|
|
171
|
+
(0, typeorm_1.Index)('case_asset_type_idx', ['assetType']),
|
|
172
|
+
(0, typeorm_1.Index)('case_asset_reference_idx', ['assetType', 'assetReference']),
|
|
173
|
+
(0, typeorm_1.Index)('case_asset_tenant_idx', ['tenantId', 'case'])
|
|
174
|
+
], CaseAsset);
|
|
175
|
+
//# sourceMappingURL=case-asset.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case-asset.entity.js","sourceRoot":"","sources":["../../../src/entities/case/case-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qCAQiB;AACjB,+CAAqC;AAErC,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,0CAA6B,CAAA;IAC7B,4BAAe,CAAA;AACjB,CAAC,EAVW,SAAS,yBAAT,SAAS,QAUpB;AAED,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,0CAA6B,CAAA;IAC7B,kCAAqB,CAAA;IACrB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,gCAAmB,CAAA;AACrB,CAAC,EAVW,SAAS,yBAAT,SAAS,QAUpB;AAED,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,wCAAyB,CAAA;IACzB,kCAAmB,CAAA;AACrB,CAAC,EANW,WAAW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