@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.
Files changed (261) hide show
  1. package/dist/entities/app-config.entity.d.ts +7 -0
  2. package/dist/entities/app-config.entity.d.ts.map +1 -0
  3. package/dist/entities/app-config.entity.js +32 -0
  4. package/dist/entities/app-config.entity.js.map +1 -0
  5. package/dist/entities/audit-log.entity.d.ts +10 -0
  6. package/dist/entities/audit-log.entity.d.ts.map +1 -0
  7. package/dist/entities/audit-log.entity.js +50 -0
  8. package/dist/entities/audit-log.entity.js.map +1 -0
  9. package/dist/entities/base/_base.d.ts +25 -0
  10. package/dist/entities/base/_base.d.ts.map +1 -0
  11. package/dist/entities/base/_base.js +68 -0
  12. package/dist/entities/base/_base.js.map +1 -0
  13. package/dist/entities/base/_global-base.d.ts +31 -0
  14. package/dist/entities/base/_global-base.d.ts.map +1 -0
  15. package/dist/entities/base/_global-base.js +68 -0
  16. package/dist/entities/base/_global-base.js.map +1 -0
  17. package/dist/entities/base/index.d.ts +9 -0
  18. package/dist/entities/base/index.d.ts.map +1 -0
  19. package/dist/entities/base/index.js +14 -0
  20. package/dist/entities/base/index.js.map +1 -0
  21. package/dist/entities/case/case-asset.entity.d.ts +56 -0
  22. package/dist/entities/case/case-asset.entity.d.ts.map +1 -0
  23. package/dist/entities/case/case-asset.entity.js +175 -0
  24. package/dist/entities/case/case-asset.entity.js.map +1 -0
  25. package/dist/entities/case/case-role.entity.d.ts +55 -0
  26. package/dist/entities/case/case-role.entity.d.ts.map +1 -0
  27. package/dist/entities/case/case-role.entity.js +245 -0
  28. package/dist/entities/case/case-role.entity.js.map +1 -0
  29. package/dist/entities/case/case-search.entity.d.ts +49 -0
  30. package/dist/entities/case/case-search.entity.d.ts.map +1 -0
  31. package/dist/entities/case/case-search.entity.js +188 -0
  32. package/dist/entities/case/case-search.entity.js.map +1 -0
  33. package/dist/entities/case/case.entity.d.ts +53 -0
  34. package/dist/entities/case/case.entity.d.ts.map +1 -0
  35. package/dist/entities/case/case.entity.js +176 -0
  36. package/dist/entities/case/case.entity.js.map +1 -0
  37. package/dist/entities/comprobacion/dbrovp_2018.entity.d.ts +22 -0
  38. package/dist/entities/comprobacion/dbrovp_2018.entity.d.ts.map +1 -0
  39. package/dist/entities/comprobacion/dbrovp_2018.entity.js +60 -0
  40. package/dist/entities/comprobacion/dbrovp_2018.entity.js.map +1 -0
  41. package/dist/entities/comprobacion/index.d.ts +4 -0
  42. package/dist/entities/comprobacion/index.d.ts.map +1 -0
  43. package/dist/entities/comprobacion/index.js +20 -0
  44. package/dist/entities/comprobacion/index.js.map +1 -0
  45. package/dist/entities/comprobacion/maisanta.entity.d.ts +14 -0
  46. package/dist/entities/comprobacion/maisanta.entity.d.ts.map +1 -0
  47. package/dist/entities/comprobacion/maisanta.entity.js +59 -0
  48. package/dist/entities/comprobacion/maisanta.entity.js.map +1 -0
  49. package/dist/entities/comprobacion/revocatorio2016.entity.d.ts +8 -0
  50. package/dist/entities/comprobacion/revocatorio2016.entity.d.ts.map +1 -0
  51. package/dist/entities/comprobacion/revocatorio2016.entity.js +35 -0
  52. package/dist/entities/comprobacion/revocatorio2016.entity.js.map +1 -0
  53. package/dist/entities/contribuyente.entity.d.ts +67 -0
  54. package/dist/entities/contribuyente.entity.d.ts.map +1 -0
  55. package/dist/entities/contribuyente.entity.js +95 -0
  56. package/dist/entities/contribuyente.entity.js.map +1 -0
  57. package/dist/entities/cpnb/cpnb_general.entity.d.ts +28 -0
  58. package/dist/entities/cpnb/cpnb_general.entity.d.ts.map +1 -0
  59. package/dist/entities/cpnb/cpnb_general.entity.js +121 -0
  60. package/dist/entities/cpnb/cpnb_general.entity.js.map +1 -0
  61. package/dist/entities/cpnb/sipolnab.entity.d.ts +14 -0
  62. package/dist/entities/cpnb/sipolnab.entity.d.ts.map +1 -0
  63. package/dist/entities/cpnb/sipolnab.entity.js +66 -0
  64. package/dist/entities/cpnb/sipolnab.entity.js.map +1 -0
  65. package/dist/entities/criminal/cicpc-solicitados.entity.d.ts +10 -0
  66. package/dist/entities/criminal/cicpc-solicitados.entity.d.ts.map +1 -0
  67. package/dist/entities/criminal/cicpc-solicitados.entity.js +43 -0
  68. package/dist/entities/criminal/cicpc-solicitados.entity.js.map +1 -0
  69. package/dist/entities/data-telecom/person-relation-phone.entity.d.ts +10 -0
  70. package/dist/entities/data-telecom/person-relation-phone.entity.d.ts.map +1 -0
  71. package/dist/entities/data-telecom/person-relation-phone.entity.js +60 -0
  72. package/dist/entities/data-telecom/person-relation-phone.entity.js.map +1 -0
  73. package/dist/entities/data-telecom/person-suscriptor-phone.entity.d.ts +19 -0
  74. package/dist/entities/data-telecom/person-suscriptor-phone.entity.d.ts.map +1 -0
  75. package/dist/entities/data-telecom/person-suscriptor-phone.entity.js +116 -0
  76. package/dist/entities/data-telecom/person-suscriptor-phone.entity.js.map +1 -0
  77. package/dist/entities/data-telecom/phone.entity.d.ts +19 -0
  78. package/dist/entities/data-telecom/phone.entity.d.ts.map +1 -0
  79. package/dist/entities/data-telecom/phone.entity.js +67 -0
  80. package/dist/entities/data-telecom/phone.entity.js.map +1 -0
  81. package/dist/entities/document/document-entity-link.entity.d.ts +40 -0
  82. package/dist/entities/document/document-entity-link.entity.d.ts.map +1 -0
  83. package/dist/entities/document/document-entity-link.entity.js +72 -0
  84. package/dist/entities/document/document-entity-link.entity.js.map +1 -0
  85. package/dist/entities/document/document.entity.d.ts +70 -0
  86. package/dist/entities/document/document.entity.d.ts.map +1 -0
  87. package/dist/entities/document/document.entity.js +92 -0
  88. package/dist/entities/document/document.entity.js.map +1 -0
  89. package/dist/entities/inac/aeronave.entity.d.ts +106 -0
  90. package/dist/entities/inac/aeronave.entity.d.ts.map +1 -0
  91. package/dist/entities/inac/aeronave.entity.js +130 -0
  92. package/dist/entities/inac/aeronave.entity.js.map +1 -0
  93. package/dist/entities/inac/detentor.entity.d.ts +30 -0
  94. package/dist/entities/inac/detentor.entity.d.ts.map +1 -0
  95. package/dist/entities/inac/detentor.entity.js +61 -0
  96. package/dist/entities/inac/detentor.entity.js.map +1 -0
  97. package/dist/entities/index.d.ts +46 -0
  98. package/dist/entities/index.d.ts.map +1 -0
  99. package/dist/entities/index.js +81 -0
  100. package/dist/entities/index.js.map +1 -0
  101. package/dist/entities/ipsfa/ipsfa.entity.d.ts +53 -0
  102. package/dist/entities/ipsfa/ipsfa.entity.d.ts.map +1 -0
  103. package/dist/entities/ipsfa/ipsfa.entity.js +178 -0
  104. package/dist/entities/ipsfa/ipsfa.entity.js.map +1 -0
  105. package/dist/entities/ivss/ivss-affiliation.entity.d.ts +14 -0
  106. package/dist/entities/ivss/ivss-affiliation.entity.d.ts.map +1 -0
  107. package/dist/entities/ivss/ivss-affiliation.entity.js +61 -0
  108. package/dist/entities/ivss/ivss-affiliation.entity.js.map +1 -0
  109. package/dist/entities/ivss/ivss-annual-history.entity.d.ts +12 -0
  110. package/dist/entities/ivss/ivss-annual-history.entity.d.ts.map +1 -0
  111. package/dist/entities/ivss/ivss-annual-history.entity.js +52 -0
  112. package/dist/entities/ivss/ivss-annual-history.entity.js.map +1 -0
  113. package/dist/entities/ivss/ivss-insured.entity.d.ts +40 -0
  114. package/dist/entities/ivss/ivss-insured.entity.d.ts.map +1 -0
  115. package/dist/entities/ivss/ivss-insured.entity.js +115 -0
  116. package/dist/entities/ivss/ivss-insured.entity.js.map +1 -0
  117. package/dist/entities/ivss/person-ivss.entity.d.ts +11 -0
  118. package/dist/entities/ivss/person-ivss.entity.d.ts.map +1 -0
  119. package/dist/entities/ivss/person-ivss.entity.js +47 -0
  120. package/dist/entities/ivss/person-ivss.entity.js.map +1 -0
  121. package/dist/entities/notifications/system-notification.entity.d.ts +30 -0
  122. package/dist/entities/notifications/system-notification.entity.d.ts.map +1 -0
  123. package/dist/entities/notifications/system-notification.entity.js +105 -0
  124. package/dist/entities/notifications/system-notification.entity.js.map +1 -0
  125. package/dist/entities/notifications/user-notification-read.entity.d.ts +12 -0
  126. package/dist/entities/notifications/user-notification-read.entity.d.ts.map +1 -0
  127. package/dist/entities/notifications/user-notification-read.entity.js +56 -0
  128. package/dist/entities/notifications/user-notification-read.entity.js.map +1 -0
  129. package/dist/entities/person/person-criminal-data.entity.d.ts +9 -0
  130. package/dist/entities/person/person-criminal-data.entity.d.ts.map +1 -0
  131. package/dist/entities/person/person-criminal-data.entity.js +42 -0
  132. package/dist/entities/person/person-criminal-data.entity.js.map +1 -0
  133. package/dist/entities/person/person-data-telecom.entity.d.ts +11 -0
  134. package/dist/entities/person/person-data-telecom.entity.d.ts.map +1 -0
  135. package/dist/entities/person/person-data-telecom.entity.js +52 -0
  136. package/dist/entities/person/person-data-telecom.entity.js.map +1 -0
  137. package/dist/entities/person/person-fiscal-data.entity.d.ts +35 -0
  138. package/dist/entities/person/person-fiscal-data.entity.d.ts.map +1 -0
  139. package/dist/entities/person/person-fiscal-data.entity.js +138 -0
  140. package/dist/entities/person/person-fiscal-data.entity.js.map +1 -0
  141. package/dist/entities/person/person-identification.entity.d.ts +24 -0
  142. package/dist/entities/person/person-identification.entity.d.ts.map +1 -0
  143. package/dist/entities/person/person-identification.entity.js +102 -0
  144. package/dist/entities/person/person-identification.entity.js.map +1 -0
  145. package/dist/entities/person/person-iio.entity.d.ts +12 -0
  146. package/dist/entities/person/person-iio.entity.d.ts.map +1 -0
  147. package/dist/entities/person/person-iio.entity.js +56 -0
  148. package/dist/entities/person/person-iio.entity.js.map +1 -0
  149. package/dist/entities/person/person-migration.entity.d.ts +22 -0
  150. package/dist/entities/person/person-migration.entity.d.ts.map +1 -0
  151. package/dist/entities/person/person-migration.entity.js +93 -0
  152. package/dist/entities/person/person-migration.entity.js.map +1 -0
  153. package/dist/entities/person/person-police-data.entity.d.ts +9 -0
  154. package/dist/entities/person/person-police-data.entity.d.ts.map +1 -0
  155. package/dist/entities/person/person-police-data.entity.js +48 -0
  156. package/dist/entities/person/person-police-data.entity.js.map +1 -0
  157. package/dist/entities/person/person-political-data.entity.d.ts +12 -0
  158. package/dist/entities/person/person-political-data.entity.d.ts.map +1 -0
  159. package/dist/entities/person/person-political-data.entity.js +54 -0
  160. package/dist/entities/person/person-political-data.entity.js.map +1 -0
  161. package/dist/entities/person/person-prohibition.entity.d.ts +41 -0
  162. package/dist/entities/person/person-prohibition.entity.d.ts.map +1 -0
  163. package/dist/entities/person/person-prohibition.entity.js +176 -0
  164. package/dist/entities/person/person-prohibition.entity.js.map +1 -0
  165. package/dist/entities/person/person-repatriado.entity.d.ts +15 -0
  166. package/dist/entities/person/person-repatriado.entity.d.ts.map +1 -0
  167. package/dist/entities/person/person-repatriado.entity.js +67 -0
  168. package/dist/entities/person/person-repatriado.entity.js.map +1 -0
  169. package/dist/entities/person/person.entity.d.ts +64 -0
  170. package/dist/entities/person/person.entity.d.ts.map +1 -0
  171. package/dist/entities/person/person.entity.js +303 -0
  172. package/dist/entities/person/person.entity.js.map +1 -0
  173. package/dist/entities/person/photo-person.entity.d.ts +10 -0
  174. package/dist/entities/person/photo-person.entity.d.ts.map +1 -0
  175. package/dist/entities/person/photo-person.entity.js +41 -0
  176. package/dist/entities/person/photo-person.entity.js.map +1 -0
  177. package/dist/entities/person/photo.entity.d.ts +11 -0
  178. package/dist/entities/person/photo.entity.d.ts.map +1 -0
  179. package/dist/entities/person/photo.entity.js +46 -0
  180. package/dist/entities/person/photo.entity.js.map +1 -0
  181. package/dist/entities/political/person-political-party.entity.d.ts +13 -0
  182. package/dist/entities/political/person-political-party.entity.d.ts.map +1 -0
  183. package/dist/entities/political/person-political-party.entity.js +55 -0
  184. package/dist/entities/political/person-political-party.entity.js.map +1 -0
  185. package/dist/entities/political/political-party.entity.d.ts +14 -0
  186. package/dist/entities/political/political-party.entity.d.ts.map +1 -0
  187. package/dist/entities/political/political-party.entity.js +57 -0
  188. package/dist/entities/political/political-party.entity.js.map +1 -0
  189. package/dist/entities/repatriados/vuelta-a-la-patria.entity.d.ts +13 -0
  190. package/dist/entities/repatriados/vuelta-a-la-patria.entity.d.ts.map +1 -0
  191. package/dist/entities/repatriados/vuelta-a-la-patria.entity.js +54 -0
  192. package/dist/entities/repatriados/vuelta-a-la-patria.entity.js.map +1 -0
  193. package/dist/entities/seniat.entity.d.ts +67 -0
  194. package/dist/entities/seniat.entity.d.ts.map +1 -0
  195. package/dist/entities/seniat.entity.js +93 -0
  196. package/dist/entities/seniat.entity.js.map +1 -0
  197. package/dist/entities/telefonia/bts.entity.d.ts +20 -0
  198. package/dist/entities/telefonia/bts.entity.d.ts.map +1 -0
  199. package/dist/entities/telefonia/bts.entity.js +68 -0
  200. package/dist/entities/telefonia/bts.entity.js.map +1 -0
  201. package/dist/entities/telefonia/historial-ubicacion.entity.d.ts +39 -0
  202. package/dist/entities/telefonia/historial-ubicacion.entity.d.ts.map +1 -0
  203. package/dist/entities/telefonia/historial-ubicacion.entity.js +61 -0
  204. package/dist/entities/telefonia/historial-ubicacion.entity.js.map +1 -0
  205. package/dist/entities/telefonia/index.d.ts +5 -0
  206. package/dist/entities/telefonia/index.d.ts.map +1 -0
  207. package/dist/entities/telefonia/index.js +21 -0
  208. package/dist/entities/telefonia/index.js.map +1 -0
  209. package/dist/entities/telefonia/m_digitel_2024.entity.d.ts +14 -0
  210. package/dist/entities/telefonia/m_digitel_2024.entity.d.ts.map +1 -0
  211. package/dist/entities/telefonia/m_digitel_2024.entity.js +64 -0
  212. package/dist/entities/telefonia/m_digitel_2024.entity.js.map +1 -0
  213. package/dist/entities/telefonia/m_digitel_2025.entity.d.ts +16 -0
  214. package/dist/entities/telefonia/m_digitel_2025.entity.d.ts.map +1 -0
  215. package/dist/entities/telefonia/m_digitel_2025.entity.js +74 -0
  216. package/dist/entities/telefonia/m_digitel_2025.entity.js.map +1 -0
  217. package/dist/entities/telefonia/m_movilnet_api_latest.entity.d.ts +121 -0
  218. package/dist/entities/telefonia/m_movilnet_api_latest.entity.d.ts.map +1 -0
  219. package/dist/entities/telefonia/m_movilnet_api_latest.entity.js +92 -0
  220. package/dist/entities/telefonia/m_movilnet_api_latest.entity.js.map +1 -0
  221. package/dist/entities/telefonia/telefonia.entity.d.ts +58 -0
  222. package/dist/entities/telefonia/telefonia.entity.d.ts.map +1 -0
  223. package/dist/entities/telefonia/telefonia.entity.js +77 -0
  224. package/dist/entities/telefonia/telefonia.entity.js.map +1 -0
  225. package/dist/entities/user-profile/index.d.ts +4 -0
  226. package/dist/entities/user-profile/index.d.ts.map +1 -0
  227. package/dist/entities/user-profile/index.js +10 -0
  228. package/dist/entities/user-profile/index.js.map +1 -0
  229. package/dist/entities/user-profile/user-profile-visit.entity.d.ts +16 -0
  230. package/dist/entities/user-profile/user-profile-visit.entity.d.ts.map +1 -0
  231. package/dist/entities/user-profile/user-profile-visit.entity.js +75 -0
  232. package/dist/entities/user-profile/user-profile-visit.entity.js.map +1 -0
  233. package/dist/entities/user-profile/user-search-log.entity.d.ts +15 -0
  234. package/dist/entities/user-profile/user-search-log.entity.d.ts.map +1 -0
  235. package/dist/entities/user-profile/user-search-log.entity.js +71 -0
  236. package/dist/entities/user-profile/user-search-log.entity.js.map +1 -0
  237. package/dist/entities/user-profile/user-session-log.entity.d.ts +19 -0
  238. package/dist/entities/user-profile/user-session-log.entity.d.ts.map +1 -0
  239. package/dist/entities/user-profile/user-session-log.entity.js +87 -0
  240. package/dist/entities/user-profile/user-session-log.entity.js.map +1 -0
  241. package/dist/entities/user.entity.d.ts +21 -0
  242. package/dist/entities/user.entity.d.ts.map +1 -0
  243. package/dist/entities/user.entity.js +94 -0
  244. package/dist/entities/user.entity.js.map +1 -0
  245. package/dist/entities/vehicle/vehicle.entity.d.ts +38 -0
  246. package/dist/entities/vehicle/vehicle.entity.d.ts.map +1 -0
  247. package/dist/entities/vehicle/vehicle.entity.js +78 -0
  248. package/dist/entities/vehicle/vehicle.entity.js.map +1 -0
  249. package/dist/enums/index.d.ts +2 -0
  250. package/dist/enums/index.d.ts.map +1 -0
  251. package/dist/enums/index.js +18 -0
  252. package/dist/enums/index.js.map +1 -0
  253. package/dist/enums/photo.enum.d.ts +6 -0
  254. package/dist/enums/photo.enum.d.ts.map +1 -0
  255. package/dist/enums/photo.enum.js +10 -0
  256. package/dist/enums/photo.enum.js.map +1 -0
  257. package/dist/index.d.ts +14 -0
  258. package/dist/index.d.ts.map +1 -0
  259. package/dist/index.js +32 -0
  260. package/dist/index.js.map +1 -0
  261. package/package.json +43 -0
@@ -0,0 +1,138 @@
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.PersonFiscalData = exports.PersonFiscalDataSource = void 0;
13
+ const _global_base_1 = require("../base/_global-base");
14
+ const typeorm_1 = require("typeorm");
15
+ const person_entity_1 = require("./person.entity");
16
+ var PersonFiscalDataSource;
17
+ (function (PersonFiscalDataSource) {
18
+ PersonFiscalDataSource["SENIAT"] = "SENIAT";
19
+ PersonFiscalDataSource["CONTRIBUYENTE"] = "CONTRIBUYENTE";
20
+ PersonFiscalDataSource["MANUAL"] = "MANUAL";
21
+ PersonFiscalDataSource["OTHER"] = "OTHER";
22
+ })(PersonFiscalDataSource || (exports.PersonFiscalDataSource = PersonFiscalDataSource = {}));
23
+ let PersonFiscalData = class PersonFiscalData extends _global_base_1.GlobalBase {
24
+ };
25
+ exports.PersonFiscalData = PersonFiscalData;
26
+ __decorate([
27
+ (0, typeorm_1.ManyToOne)(() => person_entity_1.Person, (person) => person.fiscalData, {
28
+ nullable: false,
29
+ onDelete: 'CASCADE',
30
+ onUpdate: 'CASCADE',
31
+ }),
32
+ (0, typeorm_1.JoinColumn)({ name: 'person_id' }),
33
+ __metadata("design:type", person_entity_1.Person)
34
+ ], PersonFiscalData.prototype, "person", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ length: 20, nullable: true }),
37
+ __metadata("design:type", String)
38
+ ], PersonFiscalData.prototype, "rif", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ length: 3, nullable: true, name: 'rif_letter' }),
41
+ __metadata("design:type", String)
42
+ ], PersonFiscalData.prototype, "rifLetter", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ length: 20, nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], PersonFiscalData.prototype, "cedula", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ name: 'razon_social', length: 255, nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], PersonFiscalData.prototype, "razonSocial", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ length: 150, nullable: true }),
53
+ __metadata("design:type", String)
54
+ ], PersonFiscalData.prototype, "apellidos", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ length: 150, nullable: true }),
57
+ __metadata("design:type", String)
58
+ ], PersonFiscalData.prototype, "nombres", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], PersonFiscalData.prototype, "correo", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ name: 'tipo_persona', length: 100, nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], PersonFiscalData.prototype, "tipoPersona", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ name: 'fecha_nacimiento', type: 'timestamp', nullable: true }),
69
+ __metadata("design:type", Date)
70
+ ], PersonFiscalData.prototype, "fechaNacimiento", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({ name: 'estado_civil', length: 50, nullable: true }),
73
+ __metadata("design:type", String)
74
+ ], PersonFiscalData.prototype, "estadoCivil", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.Column)({ name: 'fecha_constitucion', type: 'timestamp', nullable: true }),
77
+ __metadata("design:type", Date)
78
+ ], PersonFiscalData.prototype, "fechaConstitucion", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
81
+ __metadata("design:type", String)
82
+ ], PersonFiscalData.prototype, "telefonos", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({ length: 100, nullable: true }),
85
+ __metadata("design:type", String)
86
+ ], PersonFiscalData.prototype, "estado", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)({ length: 100, nullable: true }),
89
+ __metadata("design:type", String)
90
+ ], PersonFiscalData.prototype, "municipio", void 0);
91
+ __decorate([
92
+ (0, typeorm_1.Column)({ length: 100, nullable: true }),
93
+ __metadata("design:type", String)
94
+ ], PersonFiscalData.prototype, "parroquia", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
97
+ __metadata("design:type", String)
98
+ ], PersonFiscalData.prototype, "direccion", void 0);
99
+ __decorate([
100
+ (0, typeorm_1.Column)({ length: 255, nullable: true }),
101
+ __metadata("design:type", String)
102
+ ], PersonFiscalData.prototype, "dependencia", void 0);
103
+ __decorate([
104
+ (0, typeorm_1.Column)({
105
+ type: 'enum',
106
+ enum: PersonFiscalDataSource,
107
+ default: PersonFiscalDataSource.SENIAT,
108
+ }),
109
+ __metadata("design:type", String)
110
+ ], PersonFiscalData.prototype, "source", void 0);
111
+ __decorate([
112
+ (0, typeorm_1.Column)({ name: 'source_record_id', length: 100, nullable: true }),
113
+ __metadata("design:type", String)
114
+ ], PersonFiscalData.prototype, "sourceRecordId", void 0);
115
+ __decorate([
116
+ (0, typeorm_1.Column)({ type: 'timestamp', name: 'valid_from', nullable: true }),
117
+ __metadata("design:type", Date)
118
+ ], PersonFiscalData.prototype, "validFrom", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.Column)({ type: 'timestamp', name: 'valid_to', nullable: true }),
121
+ __metadata("design:type", Date)
122
+ ], PersonFiscalData.prototype, "validTo", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.Column)({ type: 'boolean', name: 'is_current', default: true }),
125
+ __metadata("design:type", Boolean)
126
+ ], PersonFiscalData.prototype, "isCurrent", void 0);
127
+ __decorate([
128
+ (0, typeorm_1.Column)({ type: 'jsonb', name: 'raw_payload', nullable: true }),
129
+ __metadata("design:type", Object)
130
+ ], PersonFiscalData.prototype, "rawPayload", void 0);
131
+ exports.PersonFiscalData = PersonFiscalData = __decorate([
132
+ (0, typeorm_1.Entity)('person_fiscal_data'),
133
+ (0, typeorm_1.Index)('person_fiscal_data_person_idx', ['person']),
134
+ (0, typeorm_1.Index)('person_fiscal_data_person_current_idx', ['person', 'isCurrent']),
135
+ (0, typeorm_1.Index)('person_fiscal_data_rif_idx', ['rif']),
136
+ (0, typeorm_1.Index)('person_fiscal_data_source_idx', ['source', 'sourceRecordId'])
137
+ ], PersonFiscalData);
138
+ //# sourceMappingURL=person-fiscal-data.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-fiscal-data.entity.js","sourceRoot":"","sources":["../../../src/entities/person/person-fiscal-data.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,qCAMiB;AACjB,mDAAyC;AAEzC,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,2CAAiB,CAAA;IACjB,yDAA+B,CAAA;IAC/B,2CAAiB,CAAA;IACjB,yCAAe,CAAA;AACjB,CAAC,EALW,sBAAsB,sCAAtB,sBAAsB,QAKjC;AAOM,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,yBAAU;CAiF/C,CAAA;AAjFY,4CAAgB;AAO3B;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAA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AI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtD,IAAI;mDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtD,IAAI;iDAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDAC3C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAC9B;2BAhFtB,gBAAgB;IAL5B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;IAC5B,IAAA,eAAK,EAAC,+BAA+B,EAAE,CAAC,QAAQ,CAAC,CAAC;IAClD,IAAA,eAAK,EAAC,uCAAuC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACvE,IAAA,eAAK,EAAC,4BAA4B,EAAE,CAAC,KAAK,CAAC,CAAC;IAC5C,IAAA,eAAK,EAAC,+BAA+B,EAAE,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;GACxD,gBAAgB,CAiF5B"}
@@ -0,0 +1,24 @@
1
+ import { GlobalBase } from '../base/_global-base';
2
+ import { Person } from './person.entity';
3
+ export declare class PersonIdentification extends GlobalBase {
4
+ idx?: number;
5
+ legacyIdentifier?: string;
6
+ synchronized?: boolean;
7
+ isInclusion?: boolean;
8
+ identificationType?: Record<string, any>;
9
+ objection?: Record<string, any>;
10
+ personalFeatures?: Record<string, any>;
11
+ identity?: Record<string, any>[];
12
+ objectionPersons?: Record<string, any>[];
13
+ user?: Record<string, any>;
14
+ identificationClasification?: Record<string, any>;
15
+ identificationDocuments?: Record<string, any>[];
16
+ passportDocuments?: Record<string, any>[];
17
+ extensionDocuments?: Record<string, any>[];
18
+ visaDocuments?: Record<string, any>[];
19
+ photo?: Record<string, any>;
20
+ migrationIdentification?: Record<string, any>;
21
+ savedAt?: Date;
22
+ person?: Person;
23
+ }
24
+ //# sourceMappingURL=person-identification.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-identification.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person-identification.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBACa,oBAAqB,SAAQ,UAAU;IAElD,GAAG,CAAC,EAAE,MAAM,CAAC;IAGb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,YAAY,CAAC,EAAE,OAAO,CAAC;IAGvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGzC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGhC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGvC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAGjC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAGzC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG3B,2BAA2B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGlD,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAGhD,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAG1C,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAG3C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAGtC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG5B,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG9C,OAAO,CAAC,EAAE,IAAI,CAAC;IAOf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,102 @@
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.PersonIdentification = void 0;
13
+ const _global_base_1 = require("../base/_global-base");
14
+ const typeorm_1 = require("typeorm");
15
+ const person_entity_1 = require("./person.entity");
16
+ let PersonIdentification = class PersonIdentification extends _global_base_1.GlobalBase {
17
+ };
18
+ exports.PersonIdentification = PersonIdentification;
19
+ __decorate([
20
+ (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
21
+ __metadata("design:type", Number)
22
+ ], PersonIdentification.prototype, "idx", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
25
+ __metadata("design:type", String)
26
+ ], PersonIdentification.prototype, "legacyIdentifier", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
29
+ __metadata("design:type", Boolean)
30
+ ], PersonIdentification.prototype, "synchronized", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
33
+ __metadata("design:type", Boolean)
34
+ ], PersonIdentification.prototype, "isInclusion", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
37
+ __metadata("design:type", Object)
38
+ ], PersonIdentification.prototype, "identificationType", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], PersonIdentification.prototype, "objection", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
45
+ __metadata("design:type", Object)
46
+ ], PersonIdentification.prototype, "personalFeatures", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
49
+ __metadata("design:type", Array)
50
+ ], PersonIdentification.prototype, "identity", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
53
+ __metadata("design:type", Array)
54
+ ], PersonIdentification.prototype, "objectionPersons", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
57
+ __metadata("design:type", Object)
58
+ ], PersonIdentification.prototype, "user", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
61
+ __metadata("design:type", Object)
62
+ ], PersonIdentification.prototype, "identificationClasification", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
65
+ __metadata("design:type", Array)
66
+ ], PersonIdentification.prototype, "identificationDocuments", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
69
+ __metadata("design:type", Array)
70
+ ], PersonIdentification.prototype, "passportDocuments", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
73
+ __metadata("design:type", Array)
74
+ ], PersonIdentification.prototype, "extensionDocuments", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
77
+ __metadata("design:type", Array)
78
+ ], PersonIdentification.prototype, "visaDocuments", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
81
+ __metadata("design:type", Object)
82
+ ], PersonIdentification.prototype, "photo", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
85
+ __metadata("design:type", Object)
86
+ ], PersonIdentification.prototype, "migrationIdentification", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
89
+ __metadata("design:type", Date)
90
+ ], PersonIdentification.prototype, "savedAt", void 0);
91
+ __decorate([
92
+ (0, typeorm_1.ManyToOne)(() => person_entity_1.Person, (person) => person.identifications, {
93
+ nullable: true,
94
+ onDelete: 'CASCADE',
95
+ onUpdate: 'CASCADE',
96
+ }),
97
+ __metadata("design:type", person_entity_1.Person)
98
+ ], PersonIdentification.prototype, "person", void 0);
99
+ exports.PersonIdentification = PersonIdentification = __decorate([
100
+ (0, typeorm_1.Entity)('person_identification')
101
+ ], PersonIdentification);
102
+ //# sourceMappingURL=person-identification.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-identification.entity.js","sourceRoot":"","sources":["../../../src/entities/person/person-identification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAkD;AAClD,qCAAoD;AACpD,mDAAyC;AAGlC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,yBAAU;CA6DnD,CAAA;AA7DY,oDAAoB;AAE/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC9B;AAGb;IADC,IAAA,gBAAM,EA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E,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACC;AAG3C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACJ;AAGtC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACd;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACI;AAG9C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,IAAI;qDAAC;AAOf;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,EAAE;QAC3D,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACO,sBAAM;oDAAC;+BA5DL,oBAAoB;IADhC,IAAA,gBAAM,EAAC,uBAAuB,CAAC;GACnB,oBAAoB,CA6DhC"}
@@ -0,0 +1,12 @@
1
+ import { EntityBase } from '../base/_base';
2
+ import { Person } from './person.entity';
3
+ export declare class PersonOperationalProfiling extends EntityBase {
4
+ iio?: Record<string, any>[];
5
+ politicalIdeology?: string;
6
+ politicalParty?: string;
7
+ religion?: string;
8
+ alias?: Record<string, any>;
9
+ opinions?: Record<string, any>;
10
+ person?: Person;
11
+ }
12
+ //# sourceMappingURL=person-iio.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-iio.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person-iio.entity.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBACa,0BAA2B,SAAQ,UAAU;IAGxD,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAG5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAO/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -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.PersonOperationalProfiling = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const _base_1 = require("../base/_base");
15
+ const person_entity_1 = require("./person.entity");
16
+ let PersonOperationalProfiling = class PersonOperationalProfiling extends _base_1.EntityBase {
17
+ };
18
+ exports.PersonOperationalProfiling = PersonOperationalProfiling;
19
+ __decorate([
20
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
21
+ __metadata("design:type", Array)
22
+ ], PersonOperationalProfiling.prototype, "iio", void 0);
23
+ __decorate([
24
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
25
+ __metadata("design:type", String)
26
+ ], PersonOperationalProfiling.prototype, "politicalIdeology", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
29
+ __metadata("design:type", String)
30
+ ], PersonOperationalProfiling.prototype, "politicalParty", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
33
+ __metadata("design:type", String)
34
+ ], PersonOperationalProfiling.prototype, "religion", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
37
+ __metadata("design:type", Object)
38
+ ], PersonOperationalProfiling.prototype, "alias", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
41
+ __metadata("design:type", Object)
42
+ ], PersonOperationalProfiling.prototype, "opinions", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.OneToOne)(() => person_entity_1.Person, (person) => person.operationalProfiling, {
45
+ onDelete: "SET NULL",
46
+ onUpdate: "CASCADE"
47
+ }) // Relación 1:1
48
+ ,
49
+ (0, typeorm_1.JoinColumn)() // Indica que esta entidad es la propietaria de la relación
50
+ ,
51
+ __metadata("design:type", person_entity_1.Person)
52
+ ], PersonOperationalProfiling.prototype, "person", void 0);
53
+ exports.PersonOperationalProfiling = PersonOperationalProfiling = __decorate([
54
+ (0, typeorm_1.Entity)('person_operational_profiling')
55
+ ], PersonOperationalProfiling);
56
+ //# sourceMappingURL=person-iio.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-iio.entity.js","sourceRoot":"","sources":["../../../src/entities/person/person-iio.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAKiB;AACjB,yCAA2C;AAC3C,mDAAyC;AAGlC,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,kBAAU;CA0BzD,CAAA;AA1BY,gEAA0B;AAGrC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACd;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACd;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACjB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACvB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACd;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACX;AAO/B;IALC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,oBAAoB,EAAE;QAC/D,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC,CAAC,eAAe;;IACjB,IAAA,oBAAU,GAAE,CAAC,2DAA2D;;8BAChE,sBAAM;0DAAC;qCAzBL,0BAA0B;IADtC,IAAA,gBAAM,EAAC,8BAA8B,CAAC;GAC1B,0BAA0B,CA0BtC"}
@@ -0,0 +1,22 @@
1
+ import { BaseEntity } from 'typeorm';
2
+ import { Person } from './person.entity';
3
+ export declare class PersonMigration extends BaseEntity {
4
+ id: string;
5
+ movementType?: string;
6
+ intinerary_number?: string;
7
+ itinerary?: Record<string, any>;
8
+ supervision?: boolean;
9
+ user?: Record<string, any>;
10
+ description?: string | null;
11
+ sourceCountry?: Record<string, any>;
12
+ sourceCity?: string;
13
+ destinationCountry?: Record<string, any>;
14
+ destinationCity?: string;
15
+ idPerson?: string;
16
+ processType?: Record<string, any>;
17
+ document?: Record<string, any>;
18
+ createdAt?: Date;
19
+ movementDetail?: Record<string, any>;
20
+ person?: Person;
21
+ }
22
+ //# sourceMappingURL=person-migration.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-migration.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person-migration.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EAEX,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBACa,eAAgB,SAAQ,UAAU;IAE7C,EAAE,EAAG,MAAM,CAAC;IAGZ,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAG3B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGhC,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG5B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGpC,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGzC,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAGlC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAG/B,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAOrC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,93 @@
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.PersonMigration = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const person_entity_1 = require("./person.entity");
15
+ let PersonMigration = class PersonMigration extends typeorm_1.BaseEntity {
16
+ };
17
+ exports.PersonMigration = PersonMigration;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
20
+ __metadata("design:type", String)
21
+ ], PersonMigration.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
24
+ __metadata("design:type", String)
25
+ ], PersonMigration.prototype, "movementType", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: 'varchar', length: 25, nullable: true }),
28
+ __metadata("design:type", String)
29
+ ], PersonMigration.prototype, "intinerary_number", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], PersonMigration.prototype, "itinerary", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ nullable: true }),
36
+ __metadata("design:type", Boolean)
37
+ ], PersonMigration.prototype, "supervision", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
40
+ __metadata("design:type", Object)
41
+ ], PersonMigration.prototype, "user", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
44
+ __metadata("design:type", String)
45
+ ], PersonMigration.prototype, "description", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
48
+ __metadata("design:type", Object)
49
+ ], PersonMigration.prototype, "sourceCountry", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
52
+ __metadata("design:type", String)
53
+ ], PersonMigration.prototype, "sourceCity", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
56
+ __metadata("design:type", Object)
57
+ ], PersonMigration.prototype, "destinationCountry", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
60
+ __metadata("design:type", String)
61
+ ], PersonMigration.prototype, "destinationCity", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
64
+ __metadata("design:type", String)
65
+ ], PersonMigration.prototype, "idPerson", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
68
+ __metadata("design:type", Object)
69
+ ], PersonMigration.prototype, "processType", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
72
+ __metadata("design:type", Object)
73
+ ], PersonMigration.prototype, "document", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
76
+ __metadata("design:type", Date)
77
+ ], PersonMigration.prototype, "createdAt", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
80
+ __metadata("design:type", Object)
81
+ ], PersonMigration.prototype, "movementDetail", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.ManyToOne)(() => person_entity_1.Person, (person) => person.migrations, {
84
+ nullable: true,
85
+ onDelete: 'SET NULL',
86
+ onUpdate: 'CASCADE',
87
+ }),
88
+ __metadata("design:type", person_entity_1.Person)
89
+ ], PersonMigration.prototype, "person", void 0);
90
+ exports.PersonMigration = PersonMigration = __decorate([
91
+ (0, typeorm_1.Entity)('person_migration')
92
+ ], PersonMigration);
93
+ //# sourceMappingURL=person-migration.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-migration.entity.js","sourceRoot":"","sources":["../../../src/entities/person/person-migration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AACjB,mDAAyC;AAGlC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,oBAAU;CAuD9C,CAAA;AAvDY,0CAAe;AAE1B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;2CACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDAClC;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC7B;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACV;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACL;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACf;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACb;AAG5B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACN;AAGpC;IAD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import { Person } from './person.entity';
3
+ import { CpnbGeneral } from '../cpnb/cpnb_general.entity';
4
+ export declare class PersonPoliceData extends GlobalBase {
5
+ person: Person;
6
+ cpnbGeneral?: CpnbGeneral;
7
+ additionalPoliceData?: Record<string, any>;
8
+ }
9
+ //# sourceMappingURL=person-police-data.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-police-data.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person-police-data.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,qBAEa,gBAAiB,SAAQ,UAAU;IAQ9C,MAAM,EAAG,MAAM,CAAC;IAQhB,WAAW,CAAC,EAAE,WAAW,CAAC;IAY1B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5C"}
@@ -0,0 +1,48 @@
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.PersonPoliceData = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const _global_base_1 = require("../base/_global-base");
15
+ const person_entity_1 = require("./person.entity");
16
+ const cpnb_general_entity_1 = require("../cpnb/cpnb_general.entity");
17
+ const typeorm_1 = require("typeorm");
18
+ let PersonPoliceData = class PersonPoliceData extends _global_base_1.GlobalBase {
19
+ };
20
+ exports.PersonPoliceData = PersonPoliceData;
21
+ __decorate([
22
+ (0, class_transformer_1.Exclude)({ toPlainOnly: true }),
23
+ (0, typeorm_1.OneToOne)(() => person_entity_1.Person, (person) => person.policeData, {
24
+ nullable: false,
25
+ onDelete: 'CASCADE',
26
+ onUpdate: 'CASCADE',
27
+ }),
28
+ (0, typeorm_1.JoinColumn)(),
29
+ __metadata("design:type", person_entity_1.Person)
30
+ ], PersonPoliceData.prototype, "person", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.OneToOne)(() => cpnb_general_entity_1.CpnbGeneral, (cpnbGeneral) => cpnbGeneral.policeData, {
33
+ nullable: true,
34
+ onDelete: 'SET NULL',
35
+ onUpdate: 'CASCADE',
36
+ }),
37
+ (0, typeorm_1.JoinColumn)(),
38
+ __metadata("design:type", cpnb_general_entity_1.CpnbGeneral)
39
+ ], PersonPoliceData.prototype, "cpnbGeneral", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
42
+ __metadata("design:type", Object)
43
+ ], PersonPoliceData.prototype, "additionalPoliceData", void 0);
44
+ exports.PersonPoliceData = PersonPoliceData = __decorate([
45
+ (0, typeorm_1.Entity)('person_police_data'),
46
+ (0, typeorm_1.Index)('person_police_data_person_idx', ['person'], { unique: true })
47
+ ], PersonPoliceData);
48
+ //# sourceMappingURL=person-police-data.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-police-data.entity.js","sourceRoot":"","sources":["../../../src/entities/person/person-police-data.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4C;AAC5C,uDAAkD;AAClD,mDAAyC;AACzC,qEAA0D;AAC1D,qCAAsE;AAI/D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,yBAAU;CA6B/C,CAAA;AA7BY,4CAAgB;AAQ3B;IAPC,IAAA,2BAAO,EAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE;QACrD,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACJ,sBAAM;gDAAC;AAQhB;IANC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,iCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,UAAU,EAAE;QACpE,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACC,iCAAW;qDAAC;AAY1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACC;2BA5BhC,gBAAgB;IAF5B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;IAC5B,IAAA,eAAK,EAAC,+BAA+B,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACxD,gBAAgB,CA6B5B"}
@@ -0,0 +1,12 @@
1
+ import { GlobalBase } from '../base/_global-base';
2
+ import { Person } from '../person/person.entity';
3
+ import { ComprobacionRevocatorio2016 } from '../comprobacion/revocatorio2016.entity';
4
+ import { ComprobacionMaisanta } from '../comprobacion/maisanta.entity';
5
+ import { PersonPoliticalParty } from '../political/person-political-party.entity';
6
+ export declare class PersonPoliticalData extends GlobalBase {
7
+ comprobacionRevocatorio2016?: ComprobacionRevocatorio2016;
8
+ comprobacionMaisanta?: ComprobacionMaisanta;
9
+ personPoliticalParties: PersonPoliticalParty[];
10
+ person?: Person;
11
+ }
12
+ //# sourceMappingURL=person-political-data.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-political-data.entity.d.ts","sourceRoot":"","sources":["../../../src/entities/person/person-political-data.entity.ts"],"names":[],"mappings":"AAME,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAEhF,qBACa,mBAAoB,SAAQ,UAAU;IAOjD,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;IAI1D,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAU5C,sBAAsB,EAAG,oBAAoB,EAAE,CAAC;IAOhD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,54 @@
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.PersonPoliticalData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const _global_base_1 = require("../base/_global-base");
15
+ const person_entity_1 = require("../person/person.entity");
16
+ const revocatorio2016_entity_1 = require("../comprobacion/revocatorio2016.entity");
17
+ const maisanta_entity_1 = require("../comprobacion/maisanta.entity");
18
+ const person_political_party_entity_1 = require("../political/person-political-party.entity");
19
+ let PersonPoliticalData = class PersonPoliticalData extends _global_base_1.GlobalBase {
20
+ };
21
+ exports.PersonPoliticalData = PersonPoliticalData;
22
+ __decorate([
23
+ (0, typeorm_1.OneToOne)(() => revocatorio2016_entity_1.ComprobacionRevocatorio2016, (comprobacionRevocatorio2016) => comprobacionRevocatorio2016.personData, {
24
+ onDelete: "SET NULL",
25
+ onUpdate: "CASCADE"
26
+ }),
27
+ (0, typeorm_1.JoinColumn)(),
28
+ __metadata("design:type", revocatorio2016_entity_1.ComprobacionRevocatorio2016)
29
+ ], PersonPoliticalData.prototype, "comprobacionRevocatorio2016", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.OneToOne)(() => maisanta_entity_1.ComprobacionMaisanta, (comprobacionMaisanta) => comprobacionMaisanta.personData, { onDelete: "SET NULL", onUpdate: "CASCADE" }),
32
+ (0, typeorm_1.JoinColumn)(),
33
+ __metadata("design:type", maisanta_entity_1.ComprobacionMaisanta)
34
+ ], PersonPoliticalData.prototype, "comprobacionMaisanta", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.OneToMany)(() => person_political_party_entity_1.PersonPoliticalParty, (personPoliticalParty) => personPoliticalParty.personPoliticalData, {
37
+ cascade: ['remove', 'soft-remove'],
38
+ orphanedRowAction: 'delete',
39
+ }),
40
+ __metadata("design:type", Array)
41
+ ], PersonPoliticalData.prototype, "personPoliticalParties", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.OneToOne)(() => person_entity_1.Person, (person) => person.politicalData, {
44
+ onDelete: "CASCADE",
45
+ onUpdate: "CASCADE"
46
+ }),
47
+ (0, typeorm_1.JoinColumn)() // PersonPoliticalData es el owner - FK personId aquí
48
+ ,
49
+ __metadata("design:type", person_entity_1.Person)
50
+ ], PersonPoliticalData.prototype, "person", void 0);
51
+ exports.PersonPoliticalData = PersonPoliticalData = __decorate([
52
+ (0, typeorm_1.Entity)('person_political_data')
53
+ ], PersonPoliticalData);
54
+ //# sourceMappingURL=person-political-data.entity.js.map