@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,176 @@
|
|
|
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.Case = exports.CasePriority = exports.CaseCategory = exports.CaseStatus = void 0;
|
|
13
|
+
const _base_1 = require("../base/_base");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const case_asset_entity_1 = require("./case-asset.entity");
|
|
16
|
+
const case_search_entity_1 = require("./case-search.entity");
|
|
17
|
+
const case_role_entity_1 = require("./case-role.entity");
|
|
18
|
+
var CaseStatus;
|
|
19
|
+
(function (CaseStatus) {
|
|
20
|
+
CaseStatus["DRAFT"] = "DRAFT";
|
|
21
|
+
CaseStatus["ACTIVE"] = "ACTIVE";
|
|
22
|
+
CaseStatus["UNDER_INVESTIGATION"] = "UNDER_INVESTIGATION";
|
|
23
|
+
CaseStatus["ON_HOLD"] = "ON_HOLD";
|
|
24
|
+
CaseStatus["CLOSED"] = "CLOSED";
|
|
25
|
+
CaseStatus["ARCHIVED"] = "ARCHIVED";
|
|
26
|
+
})(CaseStatus || (exports.CaseStatus = CaseStatus = {}));
|
|
27
|
+
var CaseCategory;
|
|
28
|
+
(function (CaseCategory) {
|
|
29
|
+
CaseCategory["NARCO"] = "NARCO";
|
|
30
|
+
CaseCategory["CORRUP"] = "CORRUP";
|
|
31
|
+
CaseCategory["TERROR"] = "TERROR";
|
|
32
|
+
CaseCategory["CYBER"] = "CYBER";
|
|
33
|
+
CaseCategory["FRAUD"] = "FRAUD";
|
|
34
|
+
CaseCategory["GENERAL"] = "GENERAL";
|
|
35
|
+
})(CaseCategory || (exports.CaseCategory = CaseCategory = {}));
|
|
36
|
+
var CasePriority;
|
|
37
|
+
(function (CasePriority) {
|
|
38
|
+
CasePriority["LOW"] = "LOW";
|
|
39
|
+
CasePriority["MEDIUM"] = "MEDIUM";
|
|
40
|
+
CasePriority["HIGH"] = "HIGH";
|
|
41
|
+
CasePriority["CRITICAL"] = "CRITICAL";
|
|
42
|
+
})(CasePriority || (exports.CasePriority = CasePriority = {}));
|
|
43
|
+
let Case = class Case extends _base_1.EntityBase {
|
|
44
|
+
// Hooks para actualizar contadores
|
|
45
|
+
setDefaults() {
|
|
46
|
+
if (this.status === CaseStatus.CLOSED || this.status === CaseStatus.ARCHIVED) {
|
|
47
|
+
this.isActive = false;
|
|
48
|
+
if (!this.endDate) {
|
|
49
|
+
this.endDate = new Date();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
this.isActive = true;
|
|
54
|
+
}
|
|
55
|
+
if (this.status !== CaseStatus.DRAFT && !this.startDate) {
|
|
56
|
+
this.startDate = new Date();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// Métodos de utilidad
|
|
60
|
+
isOwner(userId) {
|
|
61
|
+
return this.createdBy?.id === userId;
|
|
62
|
+
}
|
|
63
|
+
canBeModified() {
|
|
64
|
+
return this.status !== CaseStatus.CLOSED && this.status !== CaseStatus.ARCHIVED;
|
|
65
|
+
}
|
|
66
|
+
getFormattedCode() {
|
|
67
|
+
return this.caseCode || 'N/A';
|
|
68
|
+
}
|
|
69
|
+
getDaysActive() {
|
|
70
|
+
if (!this.startDate)
|
|
71
|
+
return 0;
|
|
72
|
+
const endDate = this.endDate || new Date();
|
|
73
|
+
return Math.ceil((endDate.getTime() - this.startDate.getTime()) / (1000 * 60 * 60 * 24));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
exports.Case = Case;
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 50, unique: true, name: 'case_code', nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], Case.prototype, "caseCode", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], Case.prototype, "title", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], Case.prototype, "description", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: CaseStatus, default: CaseStatus.DRAFT }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], Case.prototype, "status", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: CaseCategory, default: CaseCategory.GENERAL }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], Case.prototype, "category", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: CasePriority, default: CasePriority.MEDIUM }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], Case.prototype, "priority", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, name: 'start_date' }),
|
|
103
|
+
__metadata("design:type", Date)
|
|
104
|
+
], Case.prototype, "startDate", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, name: 'end_date' }),
|
|
107
|
+
__metadata("design:type", Date)
|
|
108
|
+
], Case.prototype, "endDate", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true, name: 'deadline' }),
|
|
111
|
+
__metadata("design:type", Date)
|
|
112
|
+
], Case.prototype, "deadline", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], Case.prototype, "metadata", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], Case.prototype, "location", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true, name: 'lead_investigator' }),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], Case.prototype, "leadInvestigator", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ type: 'text', array: true, nullable: true }),
|
|
127
|
+
__metadata("design:type", Array)
|
|
128
|
+
], Case.prototype, "tags", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.OneToMany)(() => case_asset_entity_1.CaseAsset, (caseAsset) => caseAsset.case, {
|
|
131
|
+
onDelete: 'CASCADE',
|
|
132
|
+
onUpdate: 'CASCADE',
|
|
133
|
+
}),
|
|
134
|
+
__metadata("design:type", Array)
|
|
135
|
+
], Case.prototype, "assets", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.OneToMany)(() => case_search_entity_1.CaseSearch, (caseSearch) => caseSearch.case, {
|
|
138
|
+
onDelete: 'CASCADE',
|
|
139
|
+
onUpdate: 'CASCADE',
|
|
140
|
+
}),
|
|
141
|
+
__metadata("design:type", Array)
|
|
142
|
+
], Case.prototype, "searches", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, typeorm_1.OneToMany)(() => case_role_entity_1.CaseRole, (caseRole) => caseRole.case, {
|
|
145
|
+
onDelete: 'CASCADE',
|
|
146
|
+
onUpdate: 'CASCADE',
|
|
147
|
+
}),
|
|
148
|
+
__metadata("design:type", Array)
|
|
149
|
+
], Case.prototype, "roles", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'assets_count' }),
|
|
152
|
+
__metadata("design:type", Number)
|
|
153
|
+
], Case.prototype, "assetsCount", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, typeorm_1.Column)({ type: 'int', default: 0, name: 'searches_count' }),
|
|
156
|
+
__metadata("design:type", Number)
|
|
157
|
+
], Case.prototype, "searchesCount", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, name: 'is_active' }),
|
|
160
|
+
__metadata("design:type", Boolean)
|
|
161
|
+
], Case.prototype, "isActive", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
164
|
+
(0, typeorm_1.BeforeUpdate)(),
|
|
165
|
+
__metadata("design:type", Function),
|
|
166
|
+
__metadata("design:paramtypes", []),
|
|
167
|
+
__metadata("design:returntype", void 0)
|
|
168
|
+
], Case.prototype, "setDefaults", null);
|
|
169
|
+
exports.Case = Case = __decorate([
|
|
170
|
+
(0, typeorm_1.Entity)('case'),
|
|
171
|
+
(0, typeorm_1.Index)('case_code_idx', ['caseCode'], { unique: true }),
|
|
172
|
+
(0, typeorm_1.Index)('case_tenant_status_idx', ['tenantId', 'status']),
|
|
173
|
+
(0, typeorm_1.Index)('case_tenant_category_idx', ['tenantId', 'category']),
|
|
174
|
+
(0, typeorm_1.Index)('case_tenant_priority_idx', ['tenantId', 'priority'])
|
|
175
|
+
], Case);
|
|
176
|
+
//# sourceMappingURL=case.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"case.entity.js","sourceRoot":"","sources":["../../../src/entities/case/case.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,qCAOiB;AACjB,2DAAgD;AAChD,6DAAkD;AAClD,yDAA8C;AAE9C,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,yDAA2C,CAAA;IAC3C,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;AACvB,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAED,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,+BAAe,CAAA;I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E,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE;QACtD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;;mCACiB;AAInB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;yCACrC;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;2CACrC;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;sCAC3C;AAKnB;IAFC,IAAA,sBAAY,GAAE;IACd,IAAA,sBAAY,GAAE;;;;uCAcd;eArFU,IAAI;IALhB,IAAA,gBAAM,EAAC,MAAM,CAAC;IACd,IAAA,eAAK,EAAC,eAAe,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACtD,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACvD,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC3D,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;GAC/C,IAAI,CAyGhB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
export declare class DBROVP2018 extends BaseEntity {
|
|
3
|
+
/**
|
|
4
|
+
* Metadatos de la fuente de datos
|
|
5
|
+
* Esta tabla representa militantes del partido Voluntad Popular según el DBROVP 2018
|
|
6
|
+
*/
|
|
7
|
+
static readonly METADATA: {
|
|
8
|
+
readonly political_party: "Voluntad Popular";
|
|
9
|
+
readonly political_party_abbreviation: "VP";
|
|
10
|
+
readonly data_source: "DBROVP 2018";
|
|
11
|
+
readonly category: "militantes";
|
|
12
|
+
readonly year: 2018;
|
|
13
|
+
};
|
|
14
|
+
id: string;
|
|
15
|
+
letra: string;
|
|
16
|
+
cedula: string;
|
|
17
|
+
nombre?: string;
|
|
18
|
+
correo: string;
|
|
19
|
+
telefono1?: string;
|
|
20
|
+
telefono2?: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=dbrovp_2018.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dbrovp_2018.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/comprobacion/dbrovp_2018.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAKX,MAAM,SAAS,CAAC;AAEjB,qBAEa,UAAW,SAAQ,UAAU;IACxC;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,QAAQ;;;;;;MAMb;IAGX,EAAE,EAAG,MAAM,CAAC;IAGZ,KAAK,EAAG,MAAM,CAAC;IAGf,MAAM,EAAG,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,EAAG,MAAM,CAAC;IAGhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.DBROVP2018 = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let DBROVP2018 = class DBROVP2018 extends typeorm_1.BaseEntity {
|
|
15
|
+
};
|
|
16
|
+
exports.DBROVP2018 = DBROVP2018;
|
|
17
|
+
/**
|
|
18
|
+
* Metadatos de la fuente de datos
|
|
19
|
+
* Esta tabla representa militantes del partido Voluntad Popular según el DBROVP 2018
|
|
20
|
+
*/
|
|
21
|
+
DBROVP2018.METADATA = {
|
|
22
|
+
political_party: 'Voluntad Popular',
|
|
23
|
+
political_party_abbreviation: 'VP',
|
|
24
|
+
data_source: 'DBROVP 2018',
|
|
25
|
+
category: 'militantes',
|
|
26
|
+
year: 2018,
|
|
27
|
+
};
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], DBROVP2018.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 1, nullable: false }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], DBROVP2018.prototype, "letra", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 12, nullable: false }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], DBROVP2018.prototype, "cedula", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], DBROVP2018.prototype, "nombre", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 150, nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], DBROVP2018.prototype, "correo", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], DBROVP2018.prototype, "telefono1", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], DBROVP2018.prototype, "telefono2", void 0);
|
|
56
|
+
exports.DBROVP2018 = DBROVP2018 = __decorate([
|
|
57
|
+
(0, typeorm_1.Entity)('dbrovp_2018'),
|
|
58
|
+
(0, typeorm_1.Index)('dbrovp_2018_cedula_letra_idx', ['cedula', 'letra'], { unique: true })
|
|
59
|
+
], DBROVP2018);
|
|
60
|
+
//# sourceMappingURL=dbrovp_2018.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dbrovp_2018.entity.js","sourceRoot":"","sources":["../../../src/entities/comprobacion/dbrovp_2018.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AAIV,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;;AAA7B,gCAAU;AACrB;;;GAGG;AACa,mBAAQ,GAAG;IACzB,eAAe,EAAE,kBAAkB;IACnC,4BAA4B,EAAE,IAAI;IAClC,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,IAAI;CACF,AANc,CAMb;AAGX;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yCACzC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CACzC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACzC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACzC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACtC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACtC;qBAhCR,UAAU;IAFtB,IAAA,gBAAM,EAAC,aAAa,CAAC;IACrB,IAAA,eAAK,EAAC,8BAA8B,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAChE,UAAU,CAiCtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entities/comprobacion/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./revocatorio2016.entity"), exports);
|
|
18
|
+
__exportStar(require("./maisanta.entity"), exports);
|
|
19
|
+
__exportStar(require("./dbrovp_2018.entity"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/comprobacion/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,oDAAkC;AAClC,uDAAqC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { PersonPoliticalData } from '../person/person-political-data.entity';
|
|
3
|
+
export declare class ComprobacionMaisanta extends BaseEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
cedula: string;
|
|
6
|
+
consultivo?: string;
|
|
7
|
+
diputados?: string;
|
|
8
|
+
preparos?: string;
|
|
9
|
+
rechazos?: string;
|
|
10
|
+
validas?: string;
|
|
11
|
+
postreparo?: string;
|
|
12
|
+
personData?: PersonPoliticalData;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=maisanta.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maisanta.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/comprobacion/maisanta.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,UAAU,EAGX,MAAM,SAAS,CAAC;AACnB,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE3E,qBAEa,oBAAqB,SAAQ,UAAU;IAElD,EAAE,EAAG,MAAM,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.ComprobacionMaisanta = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const person_political_data_entity_1 = require("../person/person-political-data.entity");
|
|
15
|
+
let ComprobacionMaisanta = class ComprobacionMaisanta extends typeorm_1.BaseEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.ComprobacionMaisanta = ComprobacionMaisanta;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ComprobacionMaisanta.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 12, nullable: false }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], ComprobacionMaisanta.prototype, "cedula", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 1, nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ComprobacionMaisanta.prototype, "consultivo", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 1, nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ComprobacionMaisanta.prototype, "diputados", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 1, nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ComprobacionMaisanta.prototype, "preparos", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 1, nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ComprobacionMaisanta.prototype, "rechazos", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 1, nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ComprobacionMaisanta.prototype, "validas", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 1, nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], ComprobacionMaisanta.prototype, "postreparo", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.OneToOne)(() => person_political_data_entity_1.PersonPoliticalData, (personPoliticalData) => personPoliticalData.comprobacionMaisanta) // Relación 1:1
|
|
52
|
+
,
|
|
53
|
+
__metadata("design:type", person_political_data_entity_1.PersonPoliticalData)
|
|
54
|
+
], ComprobacionMaisanta.prototype, "personData", void 0);
|
|
55
|
+
exports.ComprobacionMaisanta = ComprobacionMaisanta = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)('comprobacion_maisanta'),
|
|
57
|
+
(0, typeorm_1.Index)('comprobacion_maisanta_cedula_idx', ['cedula'], { unique: true })
|
|
58
|
+
], ComprobacionMaisanta);
|
|
59
|
+
//# sourceMappingURL=maisanta.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maisanta.entity.js","sourceRoot":"","sources":["../../../src/entities/comprobacion/maisanta.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOmB;AACnB,yFAA6E;AAIpE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;CA2BnD,CAAA;AA3BY,oDAAoB;AAE/B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oDACzC;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACnC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACpC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACrC;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACrC;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACtC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACnC;AAGpB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kDAAmB,EAAE,CAAC,mBAAmB,EAAE,EAAE,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,eAAe;;8BAC1G,kDAAmB;wDAAC;+BA1BtB,oBAAoB;IAFhC,IAAA,gBAAM,EAAC,uBAAuB,CAAC;IAC/B,IAAA,eAAK,EAAC,kCAAkC,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC3D,oBAAoB,CA2BhC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { PersonPoliticalData } from '../person/person-political-data.entity';
|
|
3
|
+
export declare class ComprobacionRevocatorio2016 extends BaseEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
cedula: string;
|
|
6
|
+
personData?: PersonPoliticalData;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=revocatorio2016.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revocatorio2016.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/comprobacion/revocatorio2016.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,UAAU,EAGX,MAAM,SAAS,CAAC;AACnB,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE3E,qBAEa,2BAA4B,SAAQ,UAAU;IAEzD,EAAE,EAAG,MAAM,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.ComprobacionRevocatorio2016 = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const person_political_data_entity_1 = require("../person/person-political-data.entity");
|
|
15
|
+
let ComprobacionRevocatorio2016 = class ComprobacionRevocatorio2016 extends typeorm_1.BaseEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.ComprobacionRevocatorio2016 = ComprobacionRevocatorio2016;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ComprobacionRevocatorio2016.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 12, nullable: false }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], ComprobacionRevocatorio2016.prototype, "cedula", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.OneToOne)(() => person_political_data_entity_1.PersonPoliticalData, (personPoliticalData) => personPoliticalData.comprobacionRevocatorio2016) // Relación 1:1
|
|
28
|
+
,
|
|
29
|
+
__metadata("design:type", person_political_data_entity_1.PersonPoliticalData)
|
|
30
|
+
], ComprobacionRevocatorio2016.prototype, "personData", void 0);
|
|
31
|
+
exports.ComprobacionRevocatorio2016 = ComprobacionRevocatorio2016 = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)('comprobacion_revocatorio_2016'),
|
|
33
|
+
(0, typeorm_1.Index)('comprobacion_revocatorio_2016_cedula_idx', ['cedula'], { unique: true })
|
|
34
|
+
], ComprobacionRevocatorio2016);
|
|
35
|
+
//# sourceMappingURL=revocatorio2016.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revocatorio2016.entity.js","sourceRoot":"","sources":["../../../src/entities/comprobacion/revocatorio2016.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOmB;AACnB,yFAA6E;AAIpE,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,oBAAU;CAS1D,CAAA;AATY,kEAA2B;AAEtC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;uDACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2DACzC;AAGhB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kDAAmB,EAAE,CAAC,mBAAmB,EAAE,EAAE,CAAC,mBAAmB,CAAC,2BAA2B,CAAC,CAAC,eAAe;;8BACjH,kDAAmB;+DAAC;sCARtB,2BAA2B;IAFvC,IAAA,gBAAM,EAAC,+BAA+B,CAAC;IACvC,IAAA,eAAK,EAAC,0CAA0C,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACnE,2BAA2B,CASvC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
export declare class Contribuyente extends BaseEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
rif?: string;
|
|
5
|
+
letra?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Cédula guardada como string (sin ceros a la izquierda).
|
|
8
|
+
*/
|
|
9
|
+
cedula?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Razón social completa.
|
|
12
|
+
*/
|
|
13
|
+
razonSocial?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Apellidos extraídos de la razón social.
|
|
16
|
+
*/
|
|
17
|
+
apellidos?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Nombres extraídos de la razón social.
|
|
20
|
+
*/
|
|
21
|
+
nombres?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Correo electrónico del contribuyente.
|
|
24
|
+
*/
|
|
25
|
+
correo?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Tipo de persona (e.g., PERSONA NATURAL VENEZOLANO, PERSONA NATURAL EXTRANJERA).
|
|
28
|
+
*/
|
|
29
|
+
tipoPersona?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Fecha de nacimiento del contribuyente.
|
|
32
|
+
*/
|
|
33
|
+
fechaNacimiento?: Date;
|
|
34
|
+
/**
|
|
35
|
+
* Estado civil del contribuyente.
|
|
36
|
+
*/
|
|
37
|
+
estadoCivil?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Fecha de constitución de la entidad (si aplica).
|
|
40
|
+
*/
|
|
41
|
+
fechaConstitucion?: Date;
|
|
42
|
+
/**
|
|
43
|
+
* Teléfonos de contacto.
|
|
44
|
+
*/
|
|
45
|
+
telefonos?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Estado donde se encuentra la dirección.
|
|
48
|
+
*/
|
|
49
|
+
estado?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Municipio donde se encuentra la dirección.
|
|
52
|
+
*/
|
|
53
|
+
municipio?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Parroquia donde se encuentra la dirección.
|
|
56
|
+
*/
|
|
57
|
+
parroquia?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Dirección física del contribuyente.
|
|
60
|
+
*/
|
|
61
|
+
direccion?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Dependencia o departamento relacionado.
|
|
64
|
+
*/
|
|
65
|
+
dependencia?: string;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=contribuyente.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contribuyente.entity.d.ts","sourceRoot":"","sources":["../../src/entities/contribuyente.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,UAAU,EAAE,MAAM,SAAS,CAAC;AAEpF,qBAIa,aAAc,SAAQ,UAAU;IAE3C,EAAE,EAAG,MAAM,CAAC;IAGZ,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,eAAe,CAAC,EAAE,IAAI,CAAC;IAEvB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,iBAAiB,CAAC,EAAE,IAAI,CAAC;IAEzB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;CAEtB"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.Contribuyente = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let Contribuyente = class Contribuyente extends typeorm_1.BaseEntity {
|
|
15
|
+
};
|
|
16
|
+
exports.Contribuyente = Contribuyente;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], Contribuyente.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ length: 20, nullable: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Contribuyente.prototype, "rif", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ length: 3, nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Contribuyente.prototype, "letra", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ length: 20, nullable: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Contribuyente.prototype, "cedula", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'razon_social', length: 255, nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Contribuyente.prototype, "razonSocial", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ length: 150, nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Contribuyente.prototype, "apellidos", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ length: 150, nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Contribuyente.prototype, "nombres", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Contribuyente.prototype, "correo", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ name: 'tipo_persona', length: 100, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Contribuyente.prototype, "tipoPersona", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ name: 'fecha_nacimiento', type: 'timestamp', nullable: true }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], Contribuyente.prototype, "fechaNacimiento", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ name: 'estado_civil', length: 50, nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Contribuyente.prototype, "estadoCivil", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ name: 'fecha_constitucion', type: 'timestamp', nullable: true }),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], Contribuyente.prototype, "fechaConstitucion", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Contribuyente.prototype, "telefonos", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ length: 100, nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], Contribuyente.prototype, "estado", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ length: 100, nullable: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Contribuyente.prototype, "municipio", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ length: 100, nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], Contribuyente.prototype, "parroquia", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], Contribuyente.prototype, "direccion", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], Contribuyente.prototype, "dependencia", void 0);
|
|
89
|
+
exports.Contribuyente = Contribuyente = __decorate([
|
|
90
|
+
(0, typeorm_1.Entity)({ name: 'contribuyente' }),
|
|
91
|
+
(0, typeorm_1.Index)('contribuyente_letra_cedula_idx', ['letra', 'cedula'], { unique: true }),
|
|
92
|
+
(0, typeorm_1.Index)('contribuyente_rif_idx', ['rif', 'tipoPersona'], { unique: true }),
|
|
93
|
+
(0, typeorm_1.Index)('contribuyente_razon_social_idx', ['razonSocial'], { unique: false })
|
|
94
|
+
], Contribuyente);
|
|
95
|
+
//# sourceMappingURL=contribuyente.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contribuyente.entity.js","sourceRoot":"","sources":["../../src/entities/contribuyente.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoF;AAM7E,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,oBAAU;CAoG5C,CAAA;AApGY,sCAAa;AAExB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC1B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACvB;AAMf;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACvB;AAMhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACzC;AAMrB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACrB;AAMnB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACvB;AAMjB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACxB;AAMhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,E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