@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,115 @@
|
|
|
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.IvssInsured = void 0;
|
|
13
|
+
const _global_base_1 = require("../base/_global-base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const person_entity_1 = require("../person/person.entity");
|
|
16
|
+
const ivss_affiliation_entity_1 = require("./ivss-affiliation.entity");
|
|
17
|
+
const ivss_annual_history_entity_1 = require("./ivss-annual-history.entity");
|
|
18
|
+
let IvssInsured = class IvssInsured extends _global_base_1.GlobalBase {
|
|
19
|
+
};
|
|
20
|
+
exports.IvssInsured = IvssInsured;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.ManyToOne)(() => person_entity_1.Person, { nullable: false, onDelete: 'CASCADE' }),
|
|
23
|
+
(0, typeorm_1.JoinColumn)(),
|
|
24
|
+
__metadata("design:type", person_entity_1.Person)
|
|
25
|
+
], IvssInsured.prototype, "person", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, name: 'cedula_identidad' }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], IvssInsured.prototype, "cedulaIdentidad", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, name: 'nombre_completo' }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], IvssInsured.prototype, "nombreCompleto", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 20, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], IvssInsured.prototype, "sexo", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'date', name: 'fecha_nacimiento', nullable: true }),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], IvssInsured.prototype, "fechaNacimiento", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, name: 'numero_patronal', nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], IvssInsured.prototype, "numeroPatronal", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, name: 'nombre_empresa', nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], IvssInsured.prototype, "nombreEmpresa", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'date', name: 'fecha_ingreso', nullable: true }),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], IvssInsured.prototype, "fechaIngreso", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, name: 'ultimo_salario', nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], IvssInsured.prototype, "ultimoSalario", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, name: 'estatus_asegurado', nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], IvssInsured.prototype, "estatusAsegurado", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'date', name: 'fecha_primera_afiliacion', nullable: true }),
|
|
64
|
+
__metadata("design:type", Date)
|
|
65
|
+
], IvssInsured.prototype, "fechaPrimeraAfiliacion", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'date', name: 'fecha_contingencia', nullable: true }),
|
|
68
|
+
__metadata("design:type", Date)
|
|
69
|
+
], IvssInsured.prototype, "fechaContingencia", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'int', name: 'semanas_acumuladas', default: 0 }),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], IvssInsured.prototype, "semanasAcumuladas", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 15, scale: 2, name: 'salarios_acumulados', default: 0 }),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], IvssInsured.prototype, "salariosAcumulados", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'jsonb', name: 'semanas_cotizadas', nullable: true }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], IvssInsured.prototype, "semanasCotizadas", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'jsonb', name: 'salarios_promedio', nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], IvssInsured.prototype, "salariosPromedio", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, name: 'fecha_actualizacion', nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], IvssInsured.prototype, "fechaActualizacion", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: 'timestamp', name: 'fecha_consulta' }),
|
|
92
|
+
__metadata("design:type", Date)
|
|
93
|
+
], IvssInsured.prototype, "fechaConsulta", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
96
|
+
__metadata("design:type", Boolean)
|
|
97
|
+
], IvssInsured.prototype, "activo", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.OneToMany)(() => ivss_affiliation_entity_1.IvssAffiliation, (affiliation) => affiliation.insured, {
|
|
100
|
+
cascade: true,
|
|
101
|
+
}),
|
|
102
|
+
__metadata("design:type", Array)
|
|
103
|
+
], IvssInsured.prototype, "affiliations", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.OneToMany)(() => ivss_annual_history_entity_1.IvssAnnualHistory, (history) => history.insured, {
|
|
106
|
+
cascade: true,
|
|
107
|
+
}),
|
|
108
|
+
__metadata("design:type", Array)
|
|
109
|
+
], IvssInsured.prototype, "annualHistory", void 0);
|
|
110
|
+
exports.IvssInsured = IvssInsured = __decorate([
|
|
111
|
+
(0, typeorm_1.Entity)('ivss_insured'),
|
|
112
|
+
(0, typeorm_1.Index)('ivss_insured_person_idx', ['person']),
|
|
113
|
+
(0, typeorm_1.Index)('ivss_insured_cedula_idx', ['cedulaIdentidad'])
|
|
114
|
+
], IvssInsured);
|
|
115
|
+
//# sourceMappingURL=ivss-insured.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ivss-insured.entity.js","sourceRoot":"","sources":["../../../src/entities/ivss/ivss-insured.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,qCAAkF;AAClF,2DAAiD;AACjD,uEAA4D;AAC5D,6EAAiE;AAK1D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,yBAAU;CAgF1C,CAAA;AAhFY,kCAAW;AAGtB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,IAAA,oBAAU,GAAE;8BACJ,sBAAM;2CAAC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;;oDACzC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;;mDAC1C;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC1C;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjD,IAAI;oDAAC;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACzD;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC1D;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjD,IAAI;iDAAC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACtE;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACzD;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClD,IAAI;2DAAC;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjD,IAAI;sDAAC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACrC;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDAClE;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDASnE;AAGF;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAKnE;AAGF;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC1D;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BACtC,IAAI;kDAAC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CAC1B;AAKjB;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yCAAe,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE;QACtE,OAAO,EAAE,IAAI;KACd,CAAC;;iDAC+B;AAKjC;IAHC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;QAChE,OAAO,EAAE,IAAI;KACd,CAAC;;kDACkC;sBA/EzB,WAAW;IAHvB,IAAA,gBAAM,EAAC,cAAc,CAAC;IACtB,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC5C,IAAA,eAAK,EAAC,yBAAyB,EAAE,CAAC,iBAAiB,CAAC,CAAC;GACzC,WAAW,CAgFvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GlobalBase } from '../base/_global-base';
|
|
2
|
+
import { Person } from '../person/person.entity';
|
|
3
|
+
import { IvssInsured } from './ivss-insured.entity';
|
|
4
|
+
export declare class PersonIvss extends GlobalBase {
|
|
5
|
+
person: Person;
|
|
6
|
+
insured: IvssInsured;
|
|
7
|
+
activo?: boolean;
|
|
8
|
+
fechaVinculacion: Date;
|
|
9
|
+
metadata?: Record<string, any>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=person-ivss.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-ivss.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/ivss/person-ivss.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,qBAGa,UAAW,SAAQ,UAAU;IAGxC,MAAM,EAAG,MAAM,CAAC;IAIhB,OAAO,EAAG,WAAW,CAAC;IAGtB,MAAM,CAAC,EAAE,OAAO,CAAC;IAGjB,gBAAgB,EAAG,IAAI,CAAC;IAGxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.PersonIvss = void 0;
|
|
13
|
+
const _global_base_1 = require("../base/_global-base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const person_entity_1 = require("../person/person.entity");
|
|
16
|
+
const ivss_insured_entity_1 = require("./ivss-insured.entity");
|
|
17
|
+
let PersonIvss = class PersonIvss extends _global_base_1.GlobalBase {
|
|
18
|
+
};
|
|
19
|
+
exports.PersonIvss = PersonIvss;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.ManyToOne)(() => person_entity_1.Person, { nullable: false, onDelete: 'CASCADE' }),
|
|
22
|
+
(0, typeorm_1.JoinColumn)(),
|
|
23
|
+
__metadata("design:type", person_entity_1.Person)
|
|
24
|
+
], PersonIvss.prototype, "person", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ManyToOne)(() => ivss_insured_entity_1.IvssInsured, { nullable: false, onDelete: 'CASCADE' }),
|
|
27
|
+
(0, typeorm_1.JoinColumn)(),
|
|
28
|
+
__metadata("design:type", ivss_insured_entity_1.IvssInsured)
|
|
29
|
+
], PersonIvss.prototype, "insured", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], PersonIvss.prototype, "activo", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'timestamp', name: 'fecha_vinculacion' }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], PersonIvss.prototype, "fechaVinculacion", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], PersonIvss.prototype, "metadata", void 0);
|
|
42
|
+
exports.PersonIvss = PersonIvss = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)('person_ivss'),
|
|
44
|
+
(0, typeorm_1.Index)('person_ivss_person_idx', ['person']),
|
|
45
|
+
(0, typeorm_1.Index)('person_ivss_unique_idx', ['person', 'insured'], { unique: true })
|
|
46
|
+
], PersonIvss);
|
|
47
|
+
//# sourceMappingURL=person-ivss.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-ivss.entity.js","sourceRoot":"","sources":["../../../src/entities/ivss/person-ivss.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,qCAAuE;AACvE,2DAAiD;AACjD,+DAAoD;AAK7C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,yBAAU;CAiBzC,CAAA;AAjBY,gCAAU;AAGrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,IAAA,oBAAU,GAAE;8BACJ,sBAAM;0CAAC;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtE,IAAA,oBAAU,GAAE;8BACH,iCAAW;2CAAC;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;0CAC1B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;8BACtC,IAAI;oDAAC;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACX;qBAhBpB,UAAU;IAHtB,IAAA,gBAAM,EAAC,aAAa,CAAC;IACrB,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC3C,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC5D,UAAU,CAiBtB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UserNotificationRead } from './user-notification-read.entity';
|
|
2
|
+
import { User } from '../user.entity';
|
|
3
|
+
export declare enum NotificationTarget {
|
|
4
|
+
ALL = "all",
|
|
5
|
+
ROLES = "roles",
|
|
6
|
+
USERS = "users"
|
|
7
|
+
}
|
|
8
|
+
export declare enum NotificationDevice {
|
|
9
|
+
ALL = "all",
|
|
10
|
+
MOBILE = "mobile",
|
|
11
|
+
DESKTOP = "desktop"
|
|
12
|
+
}
|
|
13
|
+
export declare class SystemNotification {
|
|
14
|
+
id: string;
|
|
15
|
+
tenantId?: string;
|
|
16
|
+
title: string;
|
|
17
|
+
content: string;
|
|
18
|
+
target: NotificationTarget;
|
|
19
|
+
targetRoles?: string[];
|
|
20
|
+
targetUsers?: string[];
|
|
21
|
+
device: NotificationDevice;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
expiresAt?: Date;
|
|
24
|
+
createdById: string;
|
|
25
|
+
createdBy: User;
|
|
26
|
+
createdAt: Date;
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
reads: UserNotificationRead[];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=system-notification.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-notification.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/notifications/system-notification.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,oBAAY,kBAAkB;IAC5B,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,kBAAkB;IAC5B,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,qBAGa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAGZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,EAAG,MAAM,CAAC;IAGf,OAAO,EAAG,MAAM,CAAC;IAOjB,MAAM,EAAG,kBAAkB,CAAC;IAG5B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAOvB,MAAM,EAAG,kBAAkB,CAAC;IAG5B,QAAQ,EAAG,OAAO,CAAC;IAGnB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,WAAW,EAAG,MAAM,CAAC;IAIrB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;IAGjB,KAAK,EAAG,oBAAoB,EAAE,CAAC;CAChC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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.SystemNotification = exports.NotificationDevice = exports.NotificationTarget = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const user_notification_read_entity_1 = require("./user-notification-read.entity");
|
|
15
|
+
const user_entity_1 = require("../user.entity");
|
|
16
|
+
var NotificationTarget;
|
|
17
|
+
(function (NotificationTarget) {
|
|
18
|
+
NotificationTarget["ALL"] = "all";
|
|
19
|
+
NotificationTarget["ROLES"] = "roles";
|
|
20
|
+
NotificationTarget["USERS"] = "users";
|
|
21
|
+
})(NotificationTarget || (exports.NotificationTarget = NotificationTarget = {}));
|
|
22
|
+
var NotificationDevice;
|
|
23
|
+
(function (NotificationDevice) {
|
|
24
|
+
NotificationDevice["ALL"] = "all";
|
|
25
|
+
NotificationDevice["MOBILE"] = "mobile";
|
|
26
|
+
NotificationDevice["DESKTOP"] = "desktop";
|
|
27
|
+
})(NotificationDevice || (exports.NotificationDevice = NotificationDevice = {}));
|
|
28
|
+
let SystemNotification = class SystemNotification {
|
|
29
|
+
};
|
|
30
|
+
exports.SystemNotification = SystemNotification;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], SystemNotification.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'tenant_id', length: 50, default: 'sp3', nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SystemNotification.prototype, "tenantId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], SystemNotification.prototype, "title", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text' }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], SystemNotification.prototype, "content", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({
|
|
49
|
+
type: 'enum',
|
|
50
|
+
enum: NotificationTarget,
|
|
51
|
+
default: NotificationTarget.ALL,
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], SystemNotification.prototype, "target", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ name: 'targetRoles', type: 'text', array: true, nullable: true }),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], SystemNotification.prototype, "targetRoles", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ name: 'targetUsers', type: 'text', array: true, nullable: true }),
|
|
61
|
+
__metadata("design:type", Array)
|
|
62
|
+
], SystemNotification.prototype, "targetUsers", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({
|
|
65
|
+
type: 'enum',
|
|
66
|
+
enum: NotificationDevice,
|
|
67
|
+
default: NotificationDevice.ALL,
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], SystemNotification.prototype, "device", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
73
|
+
__metadata("design:type", Boolean)
|
|
74
|
+
], SystemNotification.prototype, "isActive", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], SystemNotification.prototype, "expiresAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], SystemNotification.prototype, "createdById", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'CASCADE' }),
|
|
85
|
+
(0, typeorm_1.JoinColumn)({ name: 'createdById' }),
|
|
86
|
+
__metadata("design:type", user_entity_1.User)
|
|
87
|
+
], SystemNotification.prototype, "createdBy", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
90
|
+
__metadata("design:type", Date)
|
|
91
|
+
], SystemNotification.prototype, "createdAt", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
94
|
+
__metadata("design:type", Date)
|
|
95
|
+
], SystemNotification.prototype, "updatedAt", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.OneToMany)(() => user_notification_read_entity_1.UserNotificationRead, (read) => read.notification),
|
|
98
|
+
__metadata("design:type", Array)
|
|
99
|
+
], SystemNotification.prototype, "reads", void 0);
|
|
100
|
+
exports.SystemNotification = SystemNotification = __decorate([
|
|
101
|
+
(0, typeorm_1.Entity)('system_notifications'),
|
|
102
|
+
(0, typeorm_1.Index)('system_notifications_tenant_idx', ['tenantId', 'isActive']),
|
|
103
|
+
(0, typeorm_1.Index)('system_notifications_tenant_device_idx', ['tenantId', 'device'])
|
|
104
|
+
], SystemNotification);
|
|
105
|
+
//# sourceMappingURL=system-notification.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-notification.entity.js","sourceRoot":"","sources":["../../../src/entities/notifications/system-notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAUiB;AACjB,mFAAuE;AACvE,gDAAsC;AAEtC,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,qCAAe,CAAA;IACf,qCAAe,CAAA;AACjB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACrB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAKM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAsD9B,CAAA;AAtDY,gDAAkB;AAE7B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;8CACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxD;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;iDAC1B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACR;AAOjB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,kBAAkB,CAAC,GAAG;KAChC,CAAC;;kDAC0B;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACpD;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACpD;AAOvB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,kBAAkB,CAAC,GAAG;KAChC,CAAC;;kDAC0B;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDACxB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClC,IAAI;qDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACJ;AAIrB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACxB,kBAAI;qDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;qDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;qDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oDAAoB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;;iDACpC;6BArDpB,kBAAkB;IAH9B,IAAA,gBAAM,EAAC,sBAAsB,CAAC;IAC9B,IAAA,eAAK,EAAC,iCAAiC,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAClE,IAAA,eAAK,EAAC,wCAAwC,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;GAC3D,kBAAkB,CAsD9B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SystemNotification } from './system-notification.entity';
|
|
2
|
+
import { User } from '../user.entity';
|
|
3
|
+
export declare class UserNotificationRead {
|
|
4
|
+
id: string;
|
|
5
|
+
tenantId?: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
notificationId: string;
|
|
8
|
+
readAt: Date;
|
|
9
|
+
user: User;
|
|
10
|
+
notification: SystemNotification;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=user-notification-read.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-notification-read.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/notifications/user-notification-read.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,qBAGa,oBAAoB;IAE/B,EAAE,EAAG,MAAM,CAAC;IAGZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,MAAM,EAAG,MAAM,CAAC;IAGhB,cAAc,EAAG,MAAM,CAAC;IAGxB,MAAM,EAAG,IAAI,CAAC;IAId,IAAI,EAAG,IAAI,CAAC;IAMZ,YAAY,EAAG,kBAAkB,CAAC;CACnC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.UserNotificationRead = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const system_notification_entity_1 = require("./system-notification.entity");
|
|
15
|
+
const user_entity_1 = require("../user.entity");
|
|
16
|
+
let UserNotificationRead = class UserNotificationRead {
|
|
17
|
+
};
|
|
18
|
+
exports.UserNotificationRead = UserNotificationRead;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UserNotificationRead.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
|
+
], UserNotificationRead.prototype, "tenantId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], UserNotificationRead.prototype, "userId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], UserNotificationRead.prototype, "notificationId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], UserNotificationRead.prototype, "readAt", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { onDelete: 'CASCADE' }),
|
|
41
|
+
(0, typeorm_1.JoinColumn)({ name: 'userId' }),
|
|
42
|
+
__metadata("design:type", user_entity_1.User)
|
|
43
|
+
], UserNotificationRead.prototype, "user", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.ManyToOne)(() => system_notification_entity_1.SystemNotification, (notification) => notification.reads, {
|
|
46
|
+
onDelete: 'CASCADE',
|
|
47
|
+
}),
|
|
48
|
+
(0, typeorm_1.JoinColumn)({ name: 'notificationId' }),
|
|
49
|
+
__metadata("design:type", system_notification_entity_1.SystemNotification)
|
|
50
|
+
], UserNotificationRead.prototype, "notification", void 0);
|
|
51
|
+
exports.UserNotificationRead = UserNotificationRead = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)('user_notification_reads'),
|
|
53
|
+
(0, typeorm_1.Index)(['userId', 'notificationId'], { unique: true }),
|
|
54
|
+
(0, typeorm_1.Index)(['tenantId', 'userId'])
|
|
55
|
+
], UserNotificationRead);
|
|
56
|
+
//# sourceMappingURL=user-notification-read.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-notification-read.entity.js","sourceRoot":"","sources":["../../../src/entities/notifications/user-notification-read.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,6EAAkE;AAClE,gDAAsC;AAK/B,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAyBhC,CAAA;AAzBY,oDAAoB;AAE/B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACxD;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACD;AAGxB;IADC,IAAA,0BAAgB,GAAE;8BACV,IAAI;oDAAC;AAId;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;8BACxB,kBAAI;kDAAC;AAMZ;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+CAAkB,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE;QACzE,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BACxB,+CAAkB;0DAAC;+BAxBvB,oBAAoB;IAHhC,IAAA,gBAAM,EAAC,yBAAyB,CAAC;IACjC,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACrD,IAAA,eAAK,EAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;GACjB,oBAAoB,CAyBhC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { Person } from '../person/person.entity';
|
|
3
|
+
import { CicpcSolicitados } from '../criminal/cicpc-solicitados.entity';
|
|
4
|
+
export declare class PersonCriminalData extends BaseEntity {
|
|
5
|
+
id: string;
|
|
6
|
+
cicpcSolicitados?: CicpcSolicitados;
|
|
7
|
+
person?: Person;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=person-criminal-data.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-criminal-data.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person-criminal-data.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,UAAU,EAGX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAEtE,qBACa,kBAAmB,SAAQ,UAAU;IAEhD,EAAE,EAAG,MAAM,CAAC;IAOZ,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAMpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.PersonCriminalData = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const person_entity_1 = require("../person/person.entity");
|
|
15
|
+
const cicpc_solicitados_entity_1 = require("../criminal/cicpc-solicitados.entity");
|
|
16
|
+
let PersonCriminalData = class PersonCriminalData extends typeorm_1.BaseEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.PersonCriminalData = PersonCriminalData;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], PersonCriminalData.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.OneToOne)(() => cicpc_solicitados_entity_1.CicpcSolicitados, (cicpcSolicitados) => cicpcSolicitados.personData, {
|
|
25
|
+
onDelete: "SET NULL",
|
|
26
|
+
onUpdate: "CASCADE"
|
|
27
|
+
}),
|
|
28
|
+
(0, typeorm_1.JoinColumn)(),
|
|
29
|
+
__metadata("design:type", cicpc_solicitados_entity_1.CicpcSolicitados)
|
|
30
|
+
], PersonCriminalData.prototype, "cicpcSolicitados", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.OneToOne)(() => person_entity_1.Person, (person) => person.criminalData, {
|
|
33
|
+
onDelete: "SET NULL",
|
|
34
|
+
onUpdate: "CASCADE"
|
|
35
|
+
}) // Relación 1:1
|
|
36
|
+
,
|
|
37
|
+
__metadata("design:type", person_entity_1.Person)
|
|
38
|
+
], PersonCriminalData.prototype, "person", void 0);
|
|
39
|
+
exports.PersonCriminalData = PersonCriminalData = __decorate([
|
|
40
|
+
(0, typeorm_1.Entity)('person_criminal_data')
|
|
41
|
+
], PersonCriminalData);
|
|
42
|
+
//# sourceMappingURL=person-criminal-data.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-criminal-data.entity.js","sourceRoot":"","sources":["../../../src/entities/person/person-criminal-data.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMmB;AACjB,2DAAiD;AACnD,mFAAwE;AAG/D,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oBAAU;CAgBjD,CAAA;AAhBY,gDAAkB;AAE7B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;8CACnB;AAOZ;IALC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,UAAU,EAAE;QACnF,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACM,2CAAgB;4DAAC;AAMpC;IAJC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,EAAE;QACvD,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC,CAAC,eAAe;;8BACT,sBAAM;kDAAC;6BAfL,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,sBAAsB,CAAC;GAClB,kBAAkB,CAgB9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { Person } from './person.entity';
|
|
3
|
+
import { PersonSuscriptorPhone } from '../data-telecom/person-suscriptor-phone.entity';
|
|
4
|
+
import { PersonRelationPhone } from '../data-telecom/person-relation-phone.entity';
|
|
5
|
+
export declare class PersonDataTelecom extends BaseEntity {
|
|
6
|
+
id: string;
|
|
7
|
+
suscriptorPhones?: PersonSuscriptorPhone[];
|
|
8
|
+
relationPhones?: PersonRelationPhone[];
|
|
9
|
+
person?: Person;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=person-data-telecom.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-data-telecom.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person-data-telecom.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAKX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAEnF,qBAEa,iBAAkB,SAAQ,UAAU;IAE/C,EAAE,EAAG,MAAM,CAAC;IAUZ,gBAAgB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAU3C,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAQvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.PersonDataTelecom = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const person_entity_1 = require("./person.entity");
|
|
15
|
+
const person_suscriptor_phone_entity_1 = require("../data-telecom/person-suscriptor-phone.entity");
|
|
16
|
+
const person_relation_phone_entity_1 = require("../data-telecom/person-relation-phone.entity");
|
|
17
|
+
let PersonDataTelecom = class PersonDataTelecom extends typeorm_1.BaseEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.PersonDataTelecom = PersonDataTelecom;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], PersonDataTelecom.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.OneToMany)(() => person_suscriptor_phone_entity_1.PersonSuscriptorPhone, (personSuscriptorPhone) => personSuscriptorPhone.personDataTelecom, {
|
|
26
|
+
onDelete: 'SET NULL',
|
|
27
|
+
onUpdate: 'CASCADE',
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], PersonDataTelecom.prototype, "suscriptorPhones", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.OneToMany)(() => person_relation_phone_entity_1.PersonRelationPhone, (personRelationPhone) => personRelationPhone.personDataTelecom, {
|
|
33
|
+
onDelete: 'SET NULL',
|
|
34
|
+
onUpdate: 'CASCADE',
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], PersonDataTelecom.prototype, "relationPhones", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.OneToOne)(() => person_entity_1.Person, (person) => person.dataTelecom, {
|
|
40
|
+
onDelete: 'CASCADE', // Si se elimina Person, eliminar PersonDataTelecom
|
|
41
|
+
onUpdate: 'CASCADE',
|
|
42
|
+
nullable: true, // Permitir person_id NULL temporalmente durante creación
|
|
43
|
+
}) // Relación 1:1
|
|
44
|
+
,
|
|
45
|
+
(0, typeorm_1.JoinColumn)({ name: 'person_id' }),
|
|
46
|
+
__metadata("design:type", person_entity_1.Person)
|
|
47
|
+
], PersonDataTelecom.prototype, "person", void 0);
|
|
48
|
+
exports.PersonDataTelecom = PersonDataTelecom = __decorate([
|
|
49
|
+
(0, typeorm_1.Entity)('person_data_telecom'),
|
|
50
|
+
(0, typeorm_1.Index)('person_data_telecom_person_idx', ['person'])
|
|
51
|
+
], PersonDataTelecom);
|
|
52
|
+
//# sourceMappingURL=person-data-telecom.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-data-telecom.entity.js","sourceRoot":"","sources":["../../../src/entities/person/person-data-telecom.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,mDAAyC;AACzC,mGAAuF;AACvF,+FAAmF;AAI5E,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oBAAU;CA+BhD,CAAA;AA/BY,8CAAiB;AAE5B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;6CACnB;AAUZ;IARC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,sDAAqB,EAC3B,CAAC,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CAAC,iBAAiB,EAClE;QACE,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CACF;;2DAC0C;AAU3C;IARC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,kDAAmB,EACzB,CAAC,mBAAmB,EAAE,EAAE,CAAC,mBAAmB,CAAC,iBAAiB,EAC9D;QACE,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CACF;;yDACsC;AAQvC;IANC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE;QACtD,QAAQ,EAAE,SAAS,EAAE,mDAAmD;QACxE,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI,EAAE,yDAAyD;KAC1E,CAAC,CAAC,eAAe;;IACjB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACzB,sBAAM;iDAAC;4BA9BL,iBAAiB;IAF7B,IAAA,gBAAM,EAAC,qBAAqB,CAAC;IAC7B,IAAA,eAAK,EAAC,gCAAgC,EAAE,CAAC,QAAQ,CAAC,CAAC;GACvC,iBAAiB,CA+B7B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { GlobalBase } from '../base/_global-base';
|
|
2
|
+
import { Person } from './person.entity';
|
|
3
|
+
export declare enum PersonFiscalDataSource {
|
|
4
|
+
SENIAT = "SENIAT",
|
|
5
|
+
CONTRIBUYENTE = "CONTRIBUYENTE",
|
|
6
|
+
MANUAL = "MANUAL",
|
|
7
|
+
OTHER = "OTHER"
|
|
8
|
+
}
|
|
9
|
+
export declare class PersonFiscalData extends GlobalBase {
|
|
10
|
+
person: Person;
|
|
11
|
+
rif?: string;
|
|
12
|
+
rifLetter?: string;
|
|
13
|
+
cedula?: string;
|
|
14
|
+
razonSocial?: string;
|
|
15
|
+
apellidos?: string;
|
|
16
|
+
nombres?: string;
|
|
17
|
+
correo?: string;
|
|
18
|
+
tipoPersona?: string;
|
|
19
|
+
fechaNacimiento?: Date;
|
|
20
|
+
estadoCivil?: string;
|
|
21
|
+
fechaConstitucion?: Date;
|
|
22
|
+
telefonos?: string;
|
|
23
|
+
estado?: string;
|
|
24
|
+
municipio?: string;
|
|
25
|
+
parroquia?: string;
|
|
26
|
+
direccion?: string;
|
|
27
|
+
dependencia?: string;
|
|
28
|
+
source?: PersonFiscalDataSource;
|
|
29
|
+
sourceRecordId?: string;
|
|
30
|
+
validFrom?: Date;
|
|
31
|
+
validTo?: Date;
|
|
32
|
+
isCurrent?: boolean;
|
|
33
|
+
rawPayload?: Record<string, any>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=person-fiscal-data.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-fiscal-data.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person-fiscal-data.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQlD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,qBAKa,gBAAiB,SAAQ,UAAU;IAO9C,MAAM,EAAG,MAAM,CAAC;IAGhB,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,eAAe,CAAC,EAAE,IAAI,CAAC;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,iBAAiB,CAAC,EAAE,IAAI,CAAC;IAGzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAOrB,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAGhC,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,OAAO,CAAC,EAAE,IAAI,CAAC;IAGf,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC"}
|