softdinlibreriajs 1.0.0 → 1.0.2

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 (60) hide show
  1. package/package.json +1 -1
  2. package/src/EnumAplicacionConceptoNovedadEmpresal.js +25 -0
  3. package/src/EnumArchivoPlano.js +29 -0
  4. package/src/EnumAreaTrabajo.js +0 -4
  5. package/src/EnumCertificadoIngresosAportesListado.js +59 -0
  6. package/src/EnumClaseEmpresa.js +0 -4
  7. package/src/EnumConceptosCertificacion.js +123 -0
  8. package/src/EnumConceptosContrato.js +35 -0
  9. package/src/EnumDiasSemana.js +34 -0
  10. package/src/EnumEstadoCalendario.js +23 -0
  11. package/src/EnumEstadoCivil.js +33 -0
  12. package/src/EnumFormaPresentacion.js +27 -0
  13. package/src/EnumGrupoSanguineo.js +37 -0
  14. package/src/EnumIncapacidades.js +42 -0
  15. package/src/EnumLocalizacion.js +45 -0
  16. package/src/EnumMensajes.js +31 -0
  17. package/src/EnumModalidadEjecucionNomina.js +33 -0
  18. package/src/EnumModalidadServicio.js +25 -0
  19. package/src/EnumNovedadReteFuente.js +35 -0
  20. package/src/EnumParentesco.js +33 -0
  21. package/src/EnumRegimenExcepcionSSS.js +23 -0
  22. package/src/EnumReporteComprobantesPAGO.js +30 -0
  23. package/src/EnumReporteComprobantesPAGOFiltros.js +29 -0
  24. package/src/EnumRespuestaSINO.js +23 -0
  25. package/src/EnumReteFuenteProcedimiento.js +24 -0
  26. package/src/EnumRutas.js +30 -0
  27. package/src/EnumSemana.js +26 -0
  28. package/src/EnumSexo.js +24 -0
  29. package/src/EnumTiempo.js +26 -0
  30. package/src/EnumTiempoNovedades.js +25 -0
  31. package/src/EnumTipoActividad.js +26 -0
  32. package/src/EnumTipoCentroCosto.js +26 -0
  33. package/src/EnumTipoConceptoMO.js +23 -0
  34. package/src/EnumTipoContrato.js +32 -0
  35. package/src/EnumTipoCuenta.js +24 -0
  36. package/src/EnumTipoCuota.js +24 -0
  37. package/src/EnumTipoHora.js +39 -0
  38. package/src/EnumTipoIdentificacion.js +38 -0
  39. package/src/EnumTipoIdentificacionEmbargo.js +32 -0
  40. package/src/EnumTipoInformeSegSoc.js +23 -0
  41. package/src/EnumTipoLibretaMilitar.js +28 -0
  42. package/src/EnumTipoLiquidacion.js +24 -0
  43. package/src/EnumTipoMovimiento.js +25 -0
  44. package/src/EnumTipoNovedad.js +42 -0
  45. package/src/EnumTipoNovedadSeguridadSocial.js +40 -0
  46. package/src/EnumTipoNumeroPILA.js +23 -0
  47. package/src/EnumTipoPago.js +23 -0
  48. package/src/EnumTipoPagoLiquidacion.js +27 -0
  49. package/src/EnumTipoPersona.js +23 -0
  50. package/src/EnumTipoPlanilla.js +47 -0
  51. package/src/EnumTipoReferencia.js +23 -0
  52. package/src/EnumTipoRegimen.js +25 -0
  53. package/src/EnumTipoRegistro.js +26 -0
  54. package/src/EnumTipoRegistroConceptoNovedadEmpresa.js +24 -0
  55. package/src/EnumTipoRegistroHistorial.js +28 -0
  56. package/src/EnumTipoRegistroLiquidacion.js +26 -0
  57. package/src/EnumTipoServicioSeguridadSocial.js +37 -0
  58. package/src/EnumTipoTransferencia.js +24 -0
  59. package/src/EnumTipoTurno.js +26 -0
  60. package/src/EnumVariablesSistema.js +292 -0
@@ -0,0 +1,35 @@
1
+ class EnumNovedadReteFuente {
2
+ static Intereses_Vivienda = 1;
3
+ static SaludVoluntaria = 2;
4
+ static Salud_Obligatoria = 3;
5
+ static Ahorro_AFC = 4;
6
+ static Dependiente = 5;
7
+ static DeclaranteRF = 6;
8
+ static Procedimiento_Dos = 7;
9
+ static Alimentacion = 8;
10
+
11
+ static descriptions = [
12
+ { id: EnumNovedadReteFuente.Intereses_Vivienda, code: 'Intereses_Vivienda', description: 'Intereses de Vivienda' },
13
+ { id: EnumNovedadReteFuente.SaludVoluntaria, code: 'SaludVoluntaria', description: 'Salud Voluntaria' },
14
+ { id: EnumNovedadReteFuente.Salud_Obligatoria, code: 'Salud_Obligatoria', description: 'Salud Obligatoria' },
15
+ { id: EnumNovedadReteFuente.Ahorro_AFC, code: 'Ahorro_AFC', description: 'Ahorro AFC' },
16
+ { id: EnumNovedadReteFuente.Dependiente, code: 'Dependiente', description: 'Dependiente' },
17
+ { id: EnumNovedadReteFuente.DeclaranteRF, code: 'DeclaranteRF', description: 'Declarante RF' },
18
+ { id: EnumNovedadReteFuente.Procedimiento_Dos, code: 'Procedimiento_Dos', description: 'Procedimiento Dos' },
19
+ { id: EnumNovedadReteFuente.Alimentacion, code: 'Alimentacion', description: 'Alimentación' },
20
+ ];
21
+
22
+ static getById(id) {
23
+ return EnumNovedadReteFuente.descriptions.find(item => item.id === id) || null;
24
+ }
25
+
26
+ static getAll() {
27
+ return EnumNovedadReteFuente.descriptions;
28
+ }
29
+
30
+ static getByDescription(description) {
31
+ return EnumNovedadReteFuente.descriptions.find(item => item.description === description) || null;
32
+ }
33
+ }
34
+
35
+ module.exports = EnumNovedadReteFuente;
@@ -0,0 +1,33 @@
1
+ class EnumParentesco {
2
+ static PADRE = 1;
3
+ static MADRE = 2;
4
+ static ESPOSO = 3;
5
+ static HIJO = 4;
6
+ static HERMANO = 5;
7
+ static TIO = 6;
8
+ static OTROS = 7;
9
+
10
+ static descriptions = [
11
+ { id: EnumParentesco.PADRE, code: 'PADRE', description: 'Padre' },
12
+ { id: EnumParentesco.MADRE, code: 'MADRE', description: 'Madre' },
13
+ { id: EnumParentesco.ESPOSO, code: 'ESPOSO', description: 'Esposo(a)' },
14
+ { id: EnumParentesco.HIJO, code: 'HIJO', description: 'Hijo(a)' },
15
+ { id: EnumParentesco.HERMANO, code: 'HERMANO', description: 'Hermano(a)' },
16
+ { id: EnumParentesco.TIO, code: 'TIO', description: 'Tio(a)' },
17
+ { id: EnumParentesco.OTROS, code: 'OTROS', description: 'Otros' },
18
+ ];
19
+
20
+ static getById(id) {
21
+ return EnumParentesco.descriptions.find(item => item.id === id) || null;
22
+ }
23
+
24
+ static getAll() {
25
+ return EnumParentesco.descriptions;
26
+ }
27
+
28
+ static getByDescription(description) {
29
+ return EnumParentesco.descriptions.find(item => item.description === description) || null;
30
+ }
31
+ }
32
+
33
+ module.exports = EnumParentesco;
@@ -0,0 +1,23 @@
1
+ class EnumRegimenExcepcionSSS {
2
+ static No_Aplica = 0;
3
+ static Decreto_1828_Artc_7 = 1;
4
+
5
+ static descriptions = [
6
+ { id: EnumRegimenExcepcionSSS.No_Aplica, code: 'No_Aplica', description: 'No Aplica' },
7
+ { id: EnumRegimenExcepcionSSS.Decreto_1828_Artc_7, code: 'Decreto_1828_Artc_7', description: 'Decreto 1828 Artículo 7' },
8
+ ];
9
+
10
+ static getById(id) {
11
+ return EnumRegimenExcepcionSSS.descriptions.find(item => item.id === id) || null;
12
+ }
13
+
14
+ static getAll() {
15
+ return EnumRegimenExcepcionSSS.descriptions;
16
+ }
17
+
18
+ static getByDescription(description) {
19
+ return EnumRegimenExcepcionSSS.descriptions.find(item => item.description === description) || null;
20
+ }
21
+ }
22
+
23
+ module.exports = EnumRegimenExcepcionSSS;
@@ -0,0 +1,30 @@
1
+ class EnumReporteComprobantesPAGO {
2
+ static GENERAL = 1;
3
+ static DETALLADO_INGRESOS = 2;
4
+ static DETALLADO_MODALIDAD = 3;
5
+ static DETALLADO_PRESTAMOS = 4;
6
+ static RESUMEN = 5;
7
+
8
+ static descriptions = [
9
+ { id: EnumReporteComprobantesPAGO.GENERAL, code: 'GENERAL', description: 'General' },
10
+ { id: EnumReporteComprobantesPAGO.DETALLADO_INGRESOS, code: 'DETALLADO_INGRESOS', description: 'Detallado de Ingresos' },
11
+ { id: EnumReporteComprobantesPAGO.DETALLADO_MODALIDAD, code: 'DETALLADO_MODALIDAD', description: 'Detallado Modalidad' },
12
+ { id: EnumReporteComprobantesPAGO.DETALLADO_PRESTAMOS, code: 'DETALLADO_PRESTAMOS', description: 'Detallado Prestamos' },
13
+ { id: EnumReporteComprobantesPAGO.RESUMEN, code: 'RESUMEN', description: 'Resumen' },
14
+ ];
15
+
16
+ static getById(id) {
17
+ return EnumReporteComprobantesPAGO.descriptions.find(item => item.id === id) || null;
18
+ }
19
+
20
+ static getAll() {
21
+ return EnumReporteComprobantesPAGO.descriptions;
22
+ }
23
+
24
+ static getByDescription(description) {
25
+ return EnumReporteComprobantesPAGO.descriptions.find(item => item.description === description) || null;
26
+ }
27
+ }
28
+
29
+ module.exports = EnumReporteComprobantesPAGO;
30
+
@@ -0,0 +1,29 @@
1
+ class EnumReporteComprobantesPAGOFiltros {
2
+ static CLIENTE = 1;
3
+ static MODALIDAD_CONTRATACION = 2;
4
+ static CONTRATACION = 3;
5
+ static CODIGO = 4;
6
+ static EMAIL = 5;
7
+
8
+ static descriptions = [
9
+ { id: EnumReporteComprobantesPAGOFiltros.CLIENTE, code: 'CLIENTE', description: 'Cliente' },
10
+ { id: EnumReporteComprobantesPAGOFiltros.MODALIDAD_CONTRATACION, code: 'MODALIDAD_CONTRATACION', description: 'Modalidad de Contratación' },
11
+ { id: EnumReporteComprobantesPAGOFiltros.CONTRATACION, code: 'CONTRATACION', description: 'Contratación' },
12
+ { id: EnumReporteComprobantesPAGOFiltros.CODIGO, code: 'CODIGO', description: 'Código' },
13
+ { id: EnumReporteComprobantesPAGOFiltros.EMAIL, code: 'EMAIL', description: 'Email' },
14
+ ];
15
+
16
+ static getById(id) {
17
+ return EnumReporteComprobantesPAGOFiltros.descriptions.find(item => item.id === id) || null;
18
+ }
19
+
20
+ static getAll() {
21
+ return EnumReporteComprobantesPAGOFiltros.descriptions;
22
+ }
23
+
24
+ static getByDescription(description) {
25
+ return EnumReporteComprobantesPAGOFiltros.descriptions.find(item => item.description === description) || null;
26
+ }
27
+ }
28
+
29
+ module.exports = EnumReporteComprobantesPAGOFiltros;
@@ -0,0 +1,23 @@
1
+ class EnumRespuestaSINO {
2
+ static SI = 1;
3
+ static NO = 0;
4
+
5
+ static descriptions = [
6
+ { id: EnumRespuestaSINO.SI, code: 'SI', description: 'Sí' },
7
+ { id: EnumRespuestaSINO.NO, code: 'NO', description: 'No' },
8
+ ];
9
+
10
+ static getById(id) {
11
+ return EnumRespuestaSINO.descriptions.find(item => item.id === id) || null;
12
+ }
13
+
14
+ static getAll() {
15
+ return EnumRespuestaSINO.descriptions;
16
+ }
17
+
18
+ static getByDescription(description) {
19
+ return EnumRespuestaSINO.descriptions.find(item => item.description === description) || null;
20
+ }
21
+ }
22
+
23
+ module.exports = EnumRespuestaSINO;
@@ -0,0 +1,24 @@
1
+ class EnumReteFuenteProcedimiento {
2
+ static PROCED_UNO = 1;
3
+ static PROCED_DOS = 2;
4
+
5
+ static descriptions = [
6
+ { id: EnumReteFuenteProcedimiento.PROCED_UNO, code: 'PROCED1', description: 'Procedimiento UNO' },
7
+ { id: EnumReteFuenteProcedimiento.PROCED_DOS, code: 'PROCED2', description: 'Procedimiento DOS' },
8
+ ];
9
+
10
+ static getById(id) {
11
+ return EnumReteFuenteProcedimiento.descriptions.find(item => item.id === id) || null;
12
+ }
13
+
14
+ static getAll() {
15
+ return EnumReteFuenteProcedimiento.descriptions;
16
+ }
17
+
18
+ static getByDescription(description) {
19
+ return EnumReteFuenteProcedimiento.descriptions.find(item => item.description === description) || null;
20
+ }
21
+ }
22
+
23
+ module.exports = EnumReteFuenteProcedimiento;
24
+
@@ -0,0 +1,30 @@
1
+ class EnumRutas {
2
+ static ARCHIVOPLANOPILA = 1;
3
+ static ARCHIVOPLANOTB = 2;
4
+ static EXPORTACION_EXCELL = 3;
5
+ static BACKUP = 4;
6
+ static NOMINAELECTRONICA = 5;
7
+
8
+ static descriptions = [
9
+ { id: EnumRutas.ARCHIVOPLANOPILA, code: 'ARCHIVOPLANOPILA', description: 'Archivo Plano PILA' },
10
+ { id: EnumRutas.ARCHIVOPLANOTB, code: 'ARCHIVOPLANOTB', description: 'Archivo Plano TB' },
11
+ { id: EnumRutas.EXPORTACION_EXCELL, code: 'EXPORTACION_EXCELL', description: 'Exportación Excel' },
12
+ { id: EnumRutas.BACKUP, code: 'BACKUP', description: 'Backup' },
13
+ { id: EnumRutas.NOMINAELECTRONICA, code: 'NOMINAELECTRONICA', description: 'Nomina Electrónica' },
14
+ ];
15
+
16
+ static getById(id) {
17
+ return EnumRutas.descriptions.find(item => item.id === id) || null;
18
+ }
19
+
20
+ static getAll() {
21
+ return EnumRutas.descriptions;
22
+ }
23
+
24
+ static getByDescription(description) {
25
+ return EnumRutas.descriptions.find(item => item.description === description) || null;
26
+ }
27
+ }
28
+
29
+ module.exports = EnumRutas;
30
+
@@ -0,0 +1,26 @@
1
+ class EnumSemana {
2
+ static LV = 1;
3
+ static LS = 2;
4
+ static D = 3;
5
+
6
+ static descriptions = [
7
+ { id: EnumSemana.LV, code: 'LV', description: 'Lunes a Viernes' },
8
+ { id: EnumSemana.LS, code: 'LS', description: 'Lunes a Sábado' },
9
+ { id: EnumSemana.D, code: 'D', description: 'Domingo' },
10
+ ];
11
+
12
+ static getById(id) {
13
+ return EnumSemana.descriptions.find(item => item.id === id) || null;
14
+ }
15
+
16
+ static getAll() {
17
+ return EnumSemana.descriptions;
18
+ }
19
+
20
+ static getByDescription(description) {
21
+ return EnumSemana.descriptions.find(item => item.description === description) || null;
22
+ }
23
+ }
24
+
25
+ module.exports = EnumSemana;
26
+
@@ -0,0 +1,24 @@
1
+ class EnumSexo {
2
+ static M = 1;
3
+ static F = 2;
4
+
5
+ static descriptions = [
6
+ { id: EnumSexo.M, code: 'M', description: 'Masculino' },
7
+ { id: EnumSexo.F, code: 'F', description: 'Femenino' },
8
+ ];
9
+
10
+ static getById(id) {
11
+ return EnumSexo.descriptions.find(item => item.id === id) || null;
12
+ }
13
+
14
+ static getAll() {
15
+ return EnumSexo.descriptions;
16
+ }
17
+
18
+ static getByDescription(description) {
19
+ return EnumSexo.descriptions.find(item => item.description === description) || null;
20
+ }
21
+ }
22
+
23
+ module.exports = EnumSexo;
24
+
@@ -0,0 +1,26 @@
1
+ class EnumTiempo {
2
+ static hh = 1;
3
+ static mm = 2;
4
+ static ss = 3;
5
+
6
+ static descriptions = [
7
+ { id: EnumTiempo.hh, code: 'hh', description: 'Hora' },
8
+ { id: EnumTiempo.mm, code: 'mm', description: 'Minuto' },
9
+ { id: EnumTiempo.ss, code: 'ss', description: 'Segundo' },
10
+ ];
11
+
12
+ static getById(id) {
13
+ return EnumTiempo.descriptions.find(item => item.id === id) || null;
14
+ }
15
+
16
+ static getAll() {
17
+ return EnumTiempo.descriptions;
18
+ }
19
+
20
+ static getByDescription(description) {
21
+ return EnumTiempo.descriptions.find(item => item.description === description) || null;
22
+ }
23
+ }
24
+
25
+ module.exports = EnumTiempo;
26
+
@@ -0,0 +1,25 @@
1
+ class EnumTiempoNovedades {
2
+ static Fecha = 1;
3
+ static Fecha_Hora = 2;
4
+
5
+ static descriptions = [
6
+ { id: EnumTiempoNovedades.Fecha, code: 'Fecha', description: 'Fecha' },
7
+ { id: EnumTiempoNovedades.Fecha_Hora, code: 'Fecha_Hora', description: 'Fecha y Hora' },
8
+ ];
9
+
10
+
11
+ static getById(id) {
12
+ return EnumTiempoNovedades.descriptions.find(item => item.id === id) || null;
13
+ }
14
+
15
+ static getAll() {
16
+ return EnumTiempoNovedades.descriptions;
17
+ }
18
+
19
+ static getByDescription(description) {
20
+ return EnumTiempoNovedades.descriptions.find(item => item.description === description) || null;
21
+ }
22
+ }
23
+
24
+ module.exports = EnumTiempoNovedades;
25
+
@@ -0,0 +1,26 @@
1
+ class EnumTipoActividad {
2
+ static COMERCIAL = 1;
3
+ static SERVICIO = 2;
4
+ static INDUSTRIAL = 3;
5
+
6
+ static descriptions = [
7
+ { id: EnumTipoActividad.COMERCIAL, code: 'COM', description: 'Comercial' },
8
+ { id: EnumTipoActividad.SERVICIO, code: 'SER', description: 'Servicio' },
9
+ { id: EnumTipoActividad.INDUSTRIAL, code: 'IND', description: 'Industrial' },
10
+ ];
11
+
12
+ static getById(id) {
13
+ return EnumTipoActividad.descriptions.find(item => item.id === id) || null;
14
+ }
15
+
16
+ static getAll() {
17
+ return EnumTipoActividad.descriptions;
18
+ }
19
+
20
+ static getByDescription(description) {
21
+ return EnumTipoActividad.descriptions.find(item => item.description === description) || null;
22
+ }
23
+ }
24
+
25
+ module.exports = EnumTipoActividad;
26
+
@@ -0,0 +1,26 @@
1
+ class EnumTipoCentroCosto {
2
+ static UNICO = 1;
3
+ static TIEMPO = 2;
4
+ static PORCENTAJE = 3;
5
+
6
+ static descriptions = [
7
+ { id: EnumTipoCentroCosto.UNICO, code: 'UNICO', description: 'Unico' },
8
+ { id: EnumTipoCentroCosto.TIEMPO, code: 'TIEMPO', description: 'Tiempo' },
9
+ { id: EnumTipoCentroCosto.PORCENTAJE, code: 'PORCENTAJE', description: 'Porcentaje' },
10
+ ];
11
+
12
+ static getById(id) {
13
+ return EnumTipoCentroCosto.descriptions.find(item => item.id === id) || null;
14
+ }
15
+
16
+ static getAll() {
17
+ return EnumTipoCentroCosto.descriptions;
18
+ }
19
+
20
+ static getByDescription(description) {
21
+ return EnumTipoCentroCosto.descriptions.find(item => item.description === description) || null;
22
+ }
23
+ }
24
+
25
+ module.exports = EnumTipoCentroCosto;
26
+
@@ -0,0 +1,23 @@
1
+ class EnumTipoConceptoMO {
2
+ static DEFAULT = 1;
3
+ static ADICIONAL = 2;
4
+
5
+ static descriptions = [
6
+ { id: EnumTipoConceptoMO.DEFAULT, code: 'DEFAULT', description: 'Default' },
7
+ { id: EnumTipoConceptoMO.ADICIONAL, code: 'ADICIONAL', description: 'Adicional' },
8
+ ];
9
+
10
+ static getById(id) {
11
+ return EnumTipoConceptoMO.descriptions.find(item => item.id === id) || null;
12
+ }
13
+
14
+ static getAll() {
15
+ return EnumTipoConceptoMO.descriptions;
16
+ }
17
+
18
+ static getByDescription(description) {
19
+ return EnumTipoConceptoMO.descriptions.find(item => item.description === description) || null;
20
+ }
21
+ }
22
+
23
+ module.exports = EnumTipoConceptoMO;
@@ -0,0 +1,32 @@
1
+ class EnumTipoContrato {
2
+ static FIJO = 1;
3
+ static INDEFINIDO = 2;
4
+ static APRENDIZAJE = 3;
5
+ static OBRA_LABOR = 4;
6
+ static PRACTICAS_PASANTIAS = 5;
7
+ static ASOCIACION = 6;
8
+
9
+ static descriptions = [
10
+ { id: EnumTipoContrato.FIJO, code: 'FIJO', description: 'Fijo' },
11
+ { id: EnumTipoContrato.INDEFINIDO, code: 'INDEFINIDO', description: 'Indefinido' },
12
+ { id: EnumTipoContrato.APRENDIZAJE, code: 'APRENDIZAJE', description: 'Aprendizaje' },
13
+ { id: EnumTipoContrato.OBRA_LABOR, code: 'OBRA_LABOR', description: 'Obra o Labor' },
14
+ { id: EnumTipoContrato.PRACTICAS_PASANTIAS, code: 'PRACTICAS_PASANTIAS', description: 'Prácticas o Pasantías' },
15
+ { id: EnumTipoContrato.ASOCIACION, code: 'ASOCIACION', description: 'Asociación' }
16
+ ];
17
+
18
+ static getById(id) {
19
+ return EnumTipoContrato.descriptions.find(item => item.id === id) || null;
20
+ }
21
+
22
+ static getAll() {
23
+ return EnumTipoContrato.descriptions;
24
+ }
25
+
26
+ static getByDescription(description) {
27
+ return EnumTipoContrato.descriptions.find(item => item.description === description) || null;
28
+ }
29
+ }
30
+
31
+ module.exports = EnumTipoContrato;
32
+
@@ -0,0 +1,24 @@
1
+ class EnumTipoCuenta {
2
+ static AHORRO = 1;
3
+ static CORRIENTE = 2;
4
+
5
+ static descriptions = [
6
+ { id: EnumTipoCuenta.AHORRO, code: 'AHORRO', description: 'Ahorro' },
7
+ { id: EnumTipoCuenta.CORRIENTE, code: 'CORRIENTE', description: 'Corriente' },
8
+ ];
9
+
10
+ static getById(id) {
11
+ return EnumTipoCuenta.descriptions.find(item => item.id === id) || null;
12
+ }
13
+
14
+ static getAll() {
15
+ return EnumTipoCuenta.descriptions;
16
+ }
17
+
18
+ static getByDescription(description) {
19
+ return EnumTipoCuenta.descriptions.find(item => item.description === description) || null;
20
+ }
21
+ }
22
+
23
+ module.exports = EnumTipoCuenta;
24
+
@@ -0,0 +1,24 @@
1
+ class EnumTipoCuota {
2
+ static QUINCENAL = 1;
3
+ static MENSUAL = 2;
4
+
5
+ static descriptions = [
6
+ { id: EnumTipoCuota.QUINCENAL, code: 'QUINCENAL', description: 'Quincenal' },
7
+ { id: EnumTipoCuota.MENSUAL, code: 'MENSUAL', description: 'Mensual' },
8
+ ];
9
+
10
+ static getById(id) {
11
+ return EnumTipoCuota.descriptions.find(item => item.id === id) || null;
12
+ }
13
+
14
+ static getAll() {
15
+ return EnumTipoCuota.descriptions;
16
+ }
17
+
18
+ static getByDescription(description) {
19
+ return EnumTipoCuota.descriptions.find(item => item.description === description) || null;
20
+ }
21
+ }
22
+
23
+ module.exports = EnumTipoCuota;
24
+
@@ -0,0 +1,39 @@
1
+ const EnumVariablesSistema = require('./EnumVariablesSistema');
2
+
3
+ class EnumTipoHora {
4
+ static ORD = EnumVariablesSistema.Salario;
5
+ static RN = EnumVariablesSistema.RecargoNocturno;
6
+ static RNE = EnumVariablesSistema.RecargoNocturnoEspecial;
7
+ static HED = EnumVariablesSistema.HoraExtraDiurna;
8
+ static HEN = EnumVariablesSistema.HoraExtraNocturna;
9
+ static DF = EnumVariablesSistema.HoraDominical;
10
+ static RNDF = EnumVariablesSistema.RecargoNocturnoDominical;
11
+ static HEDDF = EnumVariablesSistema.HoraExtraDominicalDiurna;
12
+ static HENDF = EnumVariablesSistema.HoraExtraDominicalNocturna;
13
+
14
+ static descriptions = [
15
+ { id: EnumTipoHora.ORD, code: 'ORD', description: EnumVariablesSistema.getById(EnumTipoHora.ORD).description },
16
+ { id: EnumTipoHora.RN, code: 'RN', description: EnumVariablesSistema.getById(EnumTipoHora.RN).description },
17
+ { id: EnumTipoHora.RNE, code: 'RNE', description: EnumVariablesSistema.getById(EnumTipoHora.RNE).description },
18
+ { id: EnumTipoHora.HED, code: 'HED', description: EnumVariablesSistema.getById(EnumTipoHora.HED).description },
19
+ { id: EnumTipoHora.HEN, code: 'HEN', description: EnumVariablesSistema.getById(EnumTipoHora.HEN).description },
20
+ { id: EnumTipoHora.DF, code: 'DF', description: EnumVariablesSistema.getById(EnumTipoHora.DF).description },
21
+ { id: EnumTipoHora.RNDF, code: 'RNDF', description: EnumVariablesSistema.getById(EnumTipoHora.RNDF).description },
22
+ { id: EnumTipoHora.HEDDF, code: 'HEDDF', description: EnumVariablesSistema.getById(EnumTipoHora.HEDDF).description },
23
+ { id: EnumTipoHora.HENDF, code: 'HENDF', description: EnumVariablesSistema.getById(EnumTipoHora.HENDF).description },
24
+ ];
25
+
26
+ static getById(id) {
27
+ return EnumTipoHora.descriptions.find(item => item.id === id) || null;
28
+ }
29
+
30
+ static getAll() {
31
+ return EnumTipoHora.descriptions;
32
+ }
33
+
34
+ static getByDescription(description) {
35
+ return EnumTipoHora.descriptions.find(item => item.description === description) || null;
36
+ }
37
+ }
38
+
39
+ module.exports = EnumTipoHora;
@@ -0,0 +1,38 @@
1
+ class EnumTipoIdentificacion {
2
+ static CC = 1;
3
+ static TI = 2;
4
+ static RC = 3;
5
+ static CE = 4;
6
+ static PA = 5;
7
+ static NI = 6;
8
+ static CD = 7;
9
+ static SC = 8;
10
+ static NIO = 6;
11
+
12
+ static descriptions = [
13
+ { id: EnumTipoIdentificacion.CC, code: 'CC', description: "Cedula de Ciudadania" },
14
+ { id: EnumTipoIdentificacion.TI, code: 'TI', description: "Tarjeta de Identidad" },
15
+ { id: EnumTipoIdentificacion.RC, code: 'RC', description: "Registro Civil" },
16
+ { id: EnumTipoIdentificacion.CE, code: 'CE', description: "Cedula de Extranjería" },
17
+ { id: EnumTipoIdentificacion.PA, code: 'PA', description: "Pasaporte" },
18
+ { id: EnumTipoIdentificacion.NI, code: 'NI', description: "Numero de Identificación Tributaria NIT" },
19
+ { id: EnumTipoIdentificacion.CD, code: 'CD', description: "Carne Diplomático" },
20
+ { id: EnumTipoIdentificacion.SC, code: 'SC', description: "Salvoconducto de permanencia" },
21
+ { id: EnumTipoIdentificacion.NIO, code: 'NIO', description: "Numero de Identificación Tributaria NIT Entidad Oficial" }
22
+ ];
23
+
24
+ static getById(id) {
25
+ return EnumTipoIdentificacion.descriptions.find(item => item.id === id) || null;
26
+ }
27
+
28
+ static getAll() {
29
+ return EnumTipoIdentificacion.descriptions;
30
+ }
31
+
32
+ static getByDescription(description) {
33
+ return EnumTipoIdentificacion.descriptions.find(item => item.description === description) || null;
34
+ }
35
+ }
36
+
37
+
38
+ module.exports = EnumTipoIdentificacion;
@@ -0,0 +1,32 @@
1
+ class EnumTipoIdentificacionEmbargo {
2
+ static CC = EnumTipoIdentificacion.CC;
3
+ static CE = EnumTipoIdentificacion.CE;
4
+ static NIT_P = EnumTipoIdentificacion.NIT;
5
+ static PA = EnumTipoIdentificacion.PA;
6
+ static TI = EnumTipoIdentificacion.TI;
7
+ static NIT_O = EnumTipoIdentificacion.NIO;
8
+
9
+ static descriptions = [
10
+ { id: EnumTipoIdentificacionEmbargo.CC, code: 'CC', description: "Cedula de Ciudadanía" },
11
+ { id: EnumTipoIdentificacionEmbargo.CE, code: 'CE', description: "Cedula de Extranjería" },
12
+ { id: EnumTipoIdentificacionEmbargo.NIT_P, code: 'NIT_P', description: "NIT Entidad Privada" },
13
+ { id: EnumTipoIdentificacionEmbargo.PA, code: 'PA', description: "Pasaporte" },
14
+ { id: EnumTipoIdentificacionEmbargo.TI, code: 'TI', description: "Tarjeta de Identificación" },
15
+ { id: EnumTipoIdentificacionEmbargo.NIT_O, code: 'NIT_O', description: "NIT Entidad Oficial" }
16
+ ];
17
+
18
+ static getById(id) {
19
+ return EnumTipoIdentificacionEmbargo.descriptions.find(item => item.id === id) || null;
20
+ }
21
+
22
+ static getAll() {
23
+ return EnumTipoIdentificacionEmbargo.descriptions;
24
+ }
25
+
26
+ static getByDescription(description) {
27
+ return EnumTipoIdentificacionEmbargo.descriptions.find(item => item.description === description) || null;
28
+ }
29
+ }
30
+
31
+ module.exports = EnumTipoIdentificacionEmbargo;
32
+
@@ -0,0 +1,23 @@
1
+ class EnumTipoInformeSegSoc {
2
+ static PILA = 1;
3
+ static PROVISION = 2;
4
+
5
+ static descriptions = [
6
+ { id: EnumTipoInformeSegSoc.PILA, code: 'PILA', description: "PILA" },
7
+ { id: EnumTipoInformeSegSoc.PROVISION, code: 'PROVISION', description: "Provisión" }
8
+ ];
9
+
10
+ static getById(id) {
11
+ return EnumTipoInformeSegSoc.descriptions.find(item => item.id === id) || null;
12
+ }
13
+
14
+ static getAll() {
15
+ return EnumTipoInformeSegSoc.descriptions;
16
+ }
17
+
18
+ static getByDescription(description) {
19
+ return EnumTipoInformeSegSoc.descriptions.find(item => item.description === description) || null;
20
+ }
21
+ }
22
+
23
+ module.exports = EnumTipoInformeSegSoc;
@@ -0,0 +1,28 @@
1
+ class EnumTipoLibretaMilitar {
2
+ static PRIMERA = 1;
3
+ static SEGUNDA = 2;
4
+ static NO_APLICA = 3;
5
+ static NO_DEFINIDO = 0;
6
+
7
+ static descriptions = [
8
+ { id: EnumTipoLibretaMilitar.PRIMERA, code: 'PRIMERA', description: "Primera" },
9
+ { id: EnumTipoLibretaMilitar.SEGUNDA, code: 'SEGUNDA', description: "Segunda" },
10
+ { id: EnumTipoLibretaMilitar.NO_APLICA, code: 'NO_APLICA', description: "No Aplica" },
11
+ { id: EnumTipoLibretaMilitar.NO_DEFINIDO, code: 'NO_DEFINIDO', description: "No Definido" }
12
+ ];
13
+
14
+ static getById(id) {
15
+ return EnumTipoLibretaMilitar.descriptions.find(item => item.id === id) || null;
16
+ }
17
+
18
+ static getAll() {
19
+ return EnumTipoLibretaMilitar.descriptions;
20
+ }
21
+
22
+ static getByDescription(description) {
23
+ return EnumTipoLibretaMilitar.descriptions.find(item => item.description === description) || null;
24
+ }
25
+ }
26
+
27
+ module.exports = EnumTipoLibretaMilitar;
28
+