softdinlibreriajs 1.0.0 → 1.0.1

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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "softdinlibreriajs",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Libreria Softdin",
5
5
  "main": "src/",
6
6
  "scripts": {
@@ -0,0 +1,25 @@
1
+ class EnumAplicacionConceptoNovedadEmpresal {
2
+ static INDIVIDUAL = 1;
3
+ static TODOS = 2;
4
+ static AGRUPAR = 3;
5
+
6
+ static descriptions = [
7
+ { id: EnumAplicacionConceptoNovedadEmpresal.INDIVIDUAL, code: 'INDIVIDUAL', description: 'Individual' },
8
+ { id: EnumAplicacionConceptoNovedadEmpresal.TODOS, code: 'TODOS', description: 'Todos' },
9
+ { id: EnumAplicacionConceptoNovedadEmpresal.AGRUPAR, code: 'AGRUPAR', description: 'Agrupar' },
10
+ ];
11
+
12
+ static getById(id) {
13
+ return EnumAplicacionConceptoNovedadEmpresal.descriptions.find(item => item.id === id) || null;
14
+ }
15
+
16
+ static getAll() {
17
+ return EnumAplicacionConceptoNovedadEmpresal.descriptions;
18
+ }
19
+
20
+ static getByDescription(description) {
21
+ return EnumAplicacionConceptoNovedadEmpresal.descriptions.find(item => item.description === description) || null;
22
+ }
23
+ }
24
+
25
+ module.exports = EnumAplicacionConceptoNovedadEmpresal;
@@ -0,0 +1,29 @@
1
+ class EnumArchivoPlano {
2
+ static BANCO_BOGOTA = 1;
3
+ static BANCOLOMBIA = 2;
4
+ static BANCO_GRANAHORRAR = 3;
5
+ static BANCO_BBVA = 4;
6
+ static JURISCOL = 5;
7
+
8
+ static descriptions = [
9
+ { id: EnumArchivoPlano.BANCO_BOGOTA, code: 'BANCO_BOGOTA', description: 'BANCO DE BOGOTA' },
10
+ { id: EnumArchivoPlano.BANCOLOMBIA, code: 'BANCOLOMBIA', description: 'BANCOLOMBIA' },
11
+ { id: EnumArchivoPlano.BANCO_GRANAHORRAR, code: 'BANCO_GRANAHORRAR', description: 'BANCO DE GRANAHORRAR' },
12
+ { id: EnumArchivoPlano.BANCO_BBVA, code: 'BANCO_BBVA', description: 'BANCO BBVA' },
13
+ { id: EnumArchivoPlano.JURISCOL, code: 'JURISCOL', description: 'JURISCOL' },
14
+ ];
15
+
16
+ static getById(id) {
17
+ return EnumArchivoPlano.descriptions.find(item => item.id === id) || null;
18
+ }
19
+
20
+ static getAll() {
21
+ return EnumArchivoPlano.descriptions;
22
+ }
23
+
24
+ static getByDescription(description) {
25
+ return EnumArchivoPlano.descriptions.find(item => item.description === description) || null;
26
+ }
27
+ }
28
+
29
+ module.exports = EnumArchivoPlano;
@@ -7,10 +7,6 @@ class EnumAreaTrabajo {
7
7
  { id: EnumAreaTrabajo.OPERATIVO, code: 'OPERATIVO', description: 'Operativo' },
8
8
  ];
9
9
 
10
- static getCollection() {
11
- return EnumAreaTrabajo.descriptions;
12
- }
13
-
14
10
  static getById(id) {
15
11
  return EnumAreaTrabajo.descriptions.find(item => item.id === id) || null;
16
12
  }
@@ -0,0 +1,59 @@
1
+ class EnumCertificadoIngresosAportesListado {
2
+ static No36 = 1;
3
+ static No37 = 2;
4
+ static No38 = 3;
5
+ static No39 = 4;
6
+ static No40 = 5;
7
+ static No41 = 6;
8
+ static No42 = 7;
9
+ static No43 = 8;
10
+ static No44 = 9;
11
+ static No45 = 10;
12
+ static No46 = 11;
13
+ static No47 = 12;
14
+ static No48 = 13;
15
+ static No49 = 14;
16
+ static No50 = 15;
17
+ static No51 = 16;
18
+ static No52 = 17;
19
+ static No53 = 18;
20
+ static No54 = 19;
21
+ static No55 = 20;
22
+
23
+ static descriptions = [
24
+ { id: EnumCertificadoIngresosAportesListado.No36, code: 'No36', description: '36 Pagos por salario o emolumentos eclesiásticos' },
25
+ { id: EnumCertificadoIngresosAportesListado.No37, code: 'No37', description: '37 Pagos realizados en bonos electrónicos o de papel de servicios, cheques, tarjetas, vales, etc.' },
26
+ { id: EnumCertificadoIngresosAportesListado.No38, code: 'No38', description: '38 Pagos por honorarios' },
27
+ { id: EnumCertificadoIngresosAportesListado.No39, code: 'No39', description: '39 Pagos por servicios' },
28
+ { id: EnumCertificadoIngresosAportesListado.No40, code: 'No40', description: '40 Pagos por comisiones' },
29
+ { id: EnumCertificadoIngresosAportesListado.No41, code: 'No41', description: '41 Pagos por prestaciones sociales' },
30
+ { id: EnumCertificadoIngresosAportesListado.No42, code: 'No42', description: '42 Pagos por viáticos' },
31
+ { id: EnumCertificadoIngresosAportesListado.No43, code: 'No43', description: '43 Pagos por gastos de representación' },
32
+ { id: EnumCertificadoIngresosAportesListado.No44, code: 'No44', description: '44 Pagos por compensaciones por el trabajo asociado cooperativo' },
33
+ { id: EnumCertificadoIngresosAportesListado.No45, code: 'No45', description: '45 Otros pagos' },
34
+ { id: EnumCertificadoIngresosAportesListado.No46, code: 'No46', description: '46 Cesantías e intereses de cesantías efectivamente pagadas al empleado' },
35
+ { id: EnumCertificadoIngresosAportesListado.No47, code: 'No47', description: '47 Cesantías consignadas al fondo de cesantías' },
36
+ { id: EnumCertificadoIngresosAportesListado.No48, code: 'No48', description: '48 Pensiones de jubilación, vejez o invalidez' },
37
+ { id: EnumCertificadoIngresosAportesListado.No49, code: 'No49', description: '49 Total de Ingresos brutas (suma 36 a 48)' },
38
+ { id: EnumCertificadoIngresosAportesListado.No50, code: 'No50', description: '50 Aportes obligatorios por salud a cargo del trabajador' },
39
+ { id: EnumCertificadoIngresosAportesListado.No51, code: 'No51', description: '51 Aportes obligatorios a fondos de pensiones y solidaridas pensional a cargo del trabajador' },
40
+ { id: EnumCertificadoIngresosAportesListado.No52, code: 'No52', description: '52 Cotizaciones voluntarias al régimen de ahorro individual con solidaridad - RAIS' },
41
+ { id: EnumCertificadoIngresosAportesListado.No53, code: 'No53', description: '53 Aportes voluntarios a fondos de pensiones' },
42
+ { id: EnumCertificadoIngresosAportesListado.No54, code: 'No54', description: '54 Aportes a cuentas AFC' },
43
+ { id: EnumCertificadoIngresosAportesListado.No55, code: 'No55', description: '55 Valor de la retención en la fuente por ingresos laborales y de pensiones' },
44
+ ];
45
+
46
+ static getById(id) {
47
+ return EnumCertificadoIngresosAportesListado.descriptions.find(item => item.id === id) || null;
48
+ }
49
+
50
+ static getAll() {
51
+ return EnumCertificadoIngresosAportesListado.descriptions;
52
+ }
53
+
54
+ static getByDescription(description) {
55
+ return EnumCertificadoIngresosAportesListado.descriptions.find(item => item.description === description) || null;
56
+ }
57
+ }
58
+
59
+ module.exports = EnumCertificadoIngresosAportesListado;
@@ -11,10 +11,6 @@ class EnumClaseEmpresa {
11
11
  { id: EnumClaseEmpresa.PILA, code: 'PIL', description: 'PILA' },
12
12
  ];
13
13
 
14
- static getCollection() {
15
- return EnumClaseEmpresa.descriptions;
16
- }
17
-
18
14
  static getById(id) {
19
15
  return EnumClaseEmpresa.descriptions.find(item => item.id === id) || null;
20
16
  }
@@ -0,0 +1,123 @@
1
+ class EnumConceptosCertificacion {
2
+ static NIT = 1;
3
+ static RAZON_SOCIAL = 2;
4
+ static SIGLA = 3;
5
+ static REPRESENTANTE_LEGAL = 4;
6
+ static TIPO_IDENTIFICACION = 5;
7
+ static IDENTIFICACION = 6;
8
+ static LUGAR_EXPEDICION = 7;
9
+ static APELLIDOS_NOMBRES = 8;
10
+ static CARGO = 9;
11
+ static SALARIO = 10;
12
+ static FECHA_PERIODO_INICIO_LARGO = 11;
13
+ static FECHA_PERIODO_INICIO_CORTO = 12;
14
+ static FECHA_PERIODO_FINAL_LARGO = 13;
15
+ static FECHA_PERIODO_FINAL_CORTO = 14;
16
+ static SUCURSAL = 15;
17
+ static SEDE = 16;
18
+ static DIVISION = 17;
19
+ static TIPO_CONTRATO = 18;
20
+ static AREA_TRABAJO = 19;
21
+ static BANCO = 20;
22
+ static TIPO_CUENTA_BANCARIA = 21;
23
+ static CUENTA_BANCARIA = 22;
24
+ static EPS = 23;
25
+ static AFP = 24;
26
+ static CESANTIAS = 25;
27
+ static MOTIVO_RETIRO = 26;
28
+ static FECHA_ACTUAL_LARGO = 27;
29
+ static FECHA_ACTUAL_CORTO = 27;
30
+ static DESCRIPCION_CARGO = 29;
31
+ static SALARIO_LETRAS = 30;
32
+ static DESCRIPCION_CONTRATO = 31;
33
+ static PRESTACION_SERVICIO = 32;
34
+ static MODALIDAD_CONTRATACION = 33;
35
+ static PORCENTAJE_ARP = 34;
36
+ static CEDULA_REPRESENTANTE_LEGAL = 35;
37
+ static CCF = 36;
38
+ static FECHA_NACIMIENTO_LARGO = 37;
39
+ static FECHA_NACIMIENTO_CORTO = 38;
40
+ static BARRIO = 39;
41
+ static DIRECCION_RESIDENCIAL = 40;
42
+ static LUGAR_NACIMIENTO = 41;
43
+ static OBJETIVO_CONTRATO = 42;
44
+ static RETEFUENTE_PROCEDIMIENTO = 43;
45
+ static BONIFICACION_HS = 44;
46
+ static CONSECUTIVO_CONTRATO = 45;
47
+ static PERIODO_PRUEBA = 46;
48
+ static SALARIO_DIA = 47;
49
+ static DURACION_CONTRATO = 48;
50
+ static TELEFONO = 49;
51
+ static CELULAR = 50;
52
+ static EMAIL = 51;
53
+ static TEL_EMERGENCIA = 52;
54
+
55
+ static descriptions = [
56
+ { id: EnumConceptosCertificacion.NIT, code: "NIT", description: '<<01>>' },
57
+ { id: EnumConceptosCertificacion.RAZON_SOCIAL, code: "RAZON SOCIAL", description: '<<02>>' },
58
+ { id: EnumConceptosCertificacion.SIGLA, code: "SIGLA", description: '<<03>>' },
59
+ { id: EnumConceptosCertificacion.REPRESENTANTE_LEGAL, code: "REPRESENTANTE LEGAL", description: '<<04>>' },
60
+ { id: EnumConceptosCertificacion.TIPO_IDENTIFICACION, code: "TIPO IDENTIFICACION", description: '<<05>>' },
61
+ { id: EnumConceptosCertificacion.IDENTIFICACION, code: "IDENTIFICACION", description: '<<06>>' },
62
+ { id: EnumConceptosCertificacion.LUGAR_EXPEDICION, code: "LUGAR EXPEDICION", description: '<<07>>' },
63
+ { id: EnumConceptosCertificacion.APELLIDOS_NOMBRES, code: "APELLIDOS NOMBRES", description: '<<08>>' },
64
+ { id: EnumConceptosCertificacion.CARGO, code: "CARGO", description: '<<09>>' },
65
+ { id: EnumConceptosCertificacion.SALARIO, code: "SALARIO", description: '<<10>>' },
66
+ { id: EnumConceptosCertificacion.FECHA_PERIODO_INICIO_LARGO, code: "FECHA PERIODO INICIO LARGO", description: '<<11>>' },
67
+ { id: EnumConceptosCertificacion.FECHA_PERIODO_INICIO_CORTO, code: "FECHA PERIODO INICIO CORTO", description: '<<12>>' },
68
+ { id: EnumConceptosCertificacion.FECHA_PERIODO_FINAL_LARGO, code: "FECHA PERIODO FINAL LARGO", description: '<<13>>' },
69
+ { id: EnumConceptosCertificacion.FECHA_PERIODO_FINAL_CORTO, code: "FECHA PERIODO FINAL CORTO", description: '<<14>>' },
70
+ { id: EnumConceptosCertificacion.SUCURSAL, code: "SUCURSAL", description: '<<15>>' },
71
+ { id: EnumConceptosCertificacion.SEDE, code: "SEDE", description: '<<16>>' },
72
+ { id: EnumConceptosCertificacion.DIVISION, code: "DIVISION", description: '<<17>>' },
73
+ { id: EnumConceptosCertificacion.TIPO_CONTRATO, code: "TIPO CONTRATO", description: '<<18>>' },
74
+ { id: EnumConceptosCertificacion.AREA_TRABAJO, code: "AREA TRABAJO", description: '<<19>>' },
75
+ { id: EnumConceptosCertificacion.BANCO, code: "BANCO", description: '<<20>>' },
76
+ { id: EnumConceptosCertificacion.TIPO_CUENTA_BANCARIA, code: "TIPO CUENTA BANCARIA", description: '<<21>>' },
77
+ { id: EnumConceptosCertificacion.CUENTA_BANCARIA, code: "CUENTA BANCARIA", description: '<<22>>' },
78
+ { id: EnumConceptosCertificacion.EPS, code: "EPS", description: '<<23>>' },
79
+ { id: EnumConceptosCertificacion.AFP, code: "AFP", description: '<<24>>' },
80
+ { id: EnumConceptosCertificacion.CESANTIAS, code: "CESANTIAS", description: '<<25>>' },
81
+ { id: EnumConceptosCertificacion.MOTIVO_RETIRO, code: "MOTIVO RETIRO", description: '<<26>>' },
82
+ { id: EnumConceptosCertificacion.FECHA_ACTUAL_LARGO, code: "FECHA ACTUAL LARGO", description: '<<27>>' },
83
+ { id: EnumConceptosCertificacion.FECHA_ACTUAL_CORTO, code: "FECHA ACTUAL CORTO", description: '<<27>>' },
84
+ { id: EnumConceptosCertificacion.DESCRIPCION_CARGO, code: "DESCRIPCION CARGO", description: '<<29>>' },
85
+ { id: EnumConceptosCertificacion.SALARIO_LETRAS, code: "SALARIO LETRAS", description: '<<30>>' },
86
+ { id: EnumConceptosCertificacion.DESCRIPCION_CONTRATO, code: "DESCRIPCION CONTRATO", description: '<<31>>' },
87
+ { id: EnumConceptosCertificacion.PRESTACION_SERVICIO, code: "PRESTACION SERVICIO", description: '<<32>>' },
88
+ { id: EnumConceptosCertificacion.MODALIDAD_CONTRATACION, code: "MODALIDAD CONTRATACION", description: '<<33>>' },
89
+ { id: EnumConceptosCertificacion.PORCENTAJE_ARP, code: "PORCENTAJE ARP", description: '<<34>>' },
90
+ { id: EnumConceptosCertificacion.CEDULA_REPRESENTANTE_LEGAL, code: "CEDULA REPRESENTANTE LEGAL", description: '<<35>>' },
91
+ { id: EnumConceptosCertificacion.CCF, code: "CCF", description: '<<36>>' },
92
+ { id: EnumConceptosCertificacion.FECHA_NACIMIENTO_LARGO, code: "FECHA NACIMIENTO LARGO", description: '<<37>>' },
93
+ { id: EnumConceptosCertificacion.FECHA_NACIMIENTO_CORTO, code: "FECHA NACIMIENTO CORTO", description: '<<38>>' },
94
+ { id: EnumConceptosCertificacion.BARRIO, code: "BARRIO", description: '<<39>>' },
95
+ { id: EnumConceptosCertificacion.DIRECCION_RESIDENCIAL, code: "DIRECCION RESIDENCIAL", description: '<<40>>' },
96
+ { id: EnumConceptosCertificacion.LUGAR_NACIMIENTO, code: "LUGAR NACIMIENTO", description: '<<41>>' },
97
+ { id: EnumConceptosCertificacion.OBJETIVO_CONTRATO, code: "OBJETIVO CONTRATO", description: '<<42>>' },
98
+ { id: EnumConceptosCertificacion.RETEFUENTE_PROCEDIMIENTO, code: "RETEFUENTE PROCEDIMIENTO", description: '<<43>>' },
99
+ { id: EnumConceptosCertificacion.BONIFICACION_HS, code: "BONIFICACION HS", description: '<<44>>' },
100
+ { id: EnumConceptosCertificacion.CONSECUTIVO_CONTRATO, code: "CONSECUTIVO CONTRATO", description: '<<45>>' },
101
+ { id: EnumConceptosCertificacion.PERIODO_PRUEBA, code: "PERIODO PRUEBA", description: '<<46>>' },
102
+ { id: EnumConceptosCertificacion.SALARIO_DIA, code: "SALARIO DIA", description: '<<47>>' },
103
+ { id: EnumConceptosCertificacion.DURACION_CONTRATO, code: "DURACION CONTRATO", description: '<<48>>' },
104
+ { id: EnumConceptosCertificacion.TELEFONO, code: "TELEFONO", description: '<<49>>' },
105
+ { id: EnumConceptosCertificacion.CELULAR, code: "CELULAR", description: '<<50>>' },
106
+ { id: EnumConceptosCertificacion.EMAIL, code: "EMAIL", description: '<<51>>' },
107
+ { id: EnumConceptosCertificacion.TEL_EMERGENCIA, code: "TEL EMERGENCIA", description: '<<52>>' },
108
+ ];
109
+
110
+ static getById(id) {
111
+ return EnumConceptosCertificacion.descriptions.find(item => item.id === id) || null;
112
+ }
113
+
114
+ static getAll() {
115
+ return EnumConceptosCertificacion.descriptions;
116
+ }
117
+
118
+ static getByDescription(description) {
119
+ return EnumConceptosCertificacion.descriptions.find(item => item.description === description) || null;
120
+ }
121
+ }
122
+
123
+ module.exports = EnumConceptosCertificacion;
@@ -0,0 +1,35 @@
1
+ class EnumConceptosContrato {
2
+ static AREATRABAJO = 1;
3
+ static CARGO = 2;
4
+ static DIVISION = 3;
5
+ static MODALIDADSERVICIO = 4;
6
+ static SEDE = 5;
7
+ static SUCURSAL = 6;
8
+ static SUCURSALPILA = 7;
9
+ static TIPOCONTRATO = 8;
10
+
11
+ static descriptions = [
12
+ { id: EnumConceptosContrato.AREATRABAJO, code: 'AREATRABAJO', description: "Area de Trabajo" },
13
+ { id: EnumConceptosContrato.CARGO, codigo: 'CARGO', description: "Cargo" },
14
+ { id: EnumConceptosContrato.DIVISION, codigo: 'DIVISION', description: "División" },
15
+ { id: EnumConceptosContrato.MODALIDADSERVICIO, codigo: 'MODALIDADSERVICIO', description: "Modalidad de Servicio" },
16
+ { id: EnumConceptosContrato.SEDE, codigo: 'SEDE', description: "Sede" },
17
+ { id: EnumConceptosContrato.SUCURSAL, codigo: 'SUCURSAL', description: "Sucursal" },
18
+ { id: EnumConceptosContrato.SUCURSALPILA, codigo: 'SUCURSALPILA', description: "Sucursal PILA" },
19
+ { id: EnumConceptosContrato.TIPOCONTRATO, codigo: 'TIPOCONTRATO', description: "Tipo de Contrato" },
20
+ ];
21
+
22
+ static getById(id) {
23
+ return EnumConceptosContrato.descriptions.find(item => item.id === id) || null;
24
+ }
25
+
26
+ static getAll() {
27
+ return EnumConceptosContrato.descriptions;
28
+ }
29
+
30
+ static getByDescription(description) {
31
+ return EnumConceptosContrato.descriptions.find(item => item.description === description) || null;
32
+ }
33
+ }
34
+
35
+ module.exports = EnumConceptosContrato;
@@ -0,0 +1,34 @@
1
+ class EnumDiasSemana {
2
+ static LUNES = 1;
3
+ static MARTES = 2;
4
+ static MIERCOLES = 3;
5
+ static JUEVES = 4;
6
+ static VIERNES = 5;
7
+ static SABADO = 6;
8
+ static DOMINGO = 7;
9
+
10
+ static descriptions = [
11
+ { id: EnumDiasSemana.LUNES, code: 'LUNES', description: 'Lunes' },
12
+ { id: EnumDiasSemana.MARTES, code: 'MARTES', description: 'Martes' },
13
+ { id: EnumDiasSemana.MIERCOLES, code: 'MIERCOLES', description: 'Miercoles' },
14
+ { id: EnumDiasSemana.JUEVES, code: 'JUEVES', description: 'Jueves' },
15
+ { id: EnumDiasSemana.VIERNES, code: 'VIERNES', description: 'Viernes' },
16
+ { id: EnumDiasSemana.SABADO, code: 'SABADO', description: 'Sabado' },
17
+ { id: EnumDiasSemana.DOMINGO, code: 'DOMINGO', description: 'Domingo' },
18
+ ];
19
+
20
+ static getById(id) {
21
+ return EnumDiasSemana.descriptions.find(item => item.id === id) || null;
22
+ }
23
+
24
+ static getAll() {
25
+ return EnumDiasSemana.descriptions;
26
+ }
27
+
28
+ static getByDescription(description) {
29
+ return EnumDiasSemana.descriptions.find(item => item.description === description) || null;
30
+ }
31
+ }
32
+
33
+
34
+ module.exports = EnumDiasSemana;
@@ -0,0 +1,23 @@
1
+ class EnumEstadoCalendario {
2
+ static NORMAL = 1;
3
+ static FERIADO = 2;
4
+
5
+ static descriptions = [
6
+ { id: EnumEstadoCalendario.NORMAL, code: 'NORMAL', description: 'Normal' },
7
+ { id: EnumEstadoCalendario.FERIADO, code: 'FERIADO', description: 'Feriado' },
8
+ ];
9
+
10
+ static getById(id) {
11
+ return EnumEstadoCalendario.descriptions.find(item => item.id === id) || null;
12
+ }
13
+
14
+ static getAll() {
15
+ return EnumEstadoCalendario.descriptions;
16
+ }
17
+
18
+ static getByDescription(description) {
19
+ return EnumEstadoCalendario.descriptions.find(item => item.description === description) || null;
20
+ }
21
+ }
22
+
23
+ module.exports = EnumEstadoCalendario;
@@ -0,0 +1,33 @@
1
+ class EnumEstadoCivil {
2
+ static SOLTERO = 1;
3
+ static CASADO = 2;
4
+ static DIVORCIADO = 3;
5
+ static SEPARADO = 4;
6
+ static VIUDO = 5;
7
+ static UNION_LIBRE = 6;
8
+ static NO_DEFINIDO = 0;
9
+
10
+ static descriptions = [
11
+ { id: EnumEstadoCivil.SOLTERO, code: 'SOLTERO', description: 'Soltero(A)' },
12
+ { id: EnumEstadoCivil.CASADO, code: 'CASADO', description: 'Casado(A)' },
13
+ { id: EnumEstadoCivil.DIVORCIADO, code: 'DIVORCIADO', description: 'Divorciado(A)' },
14
+ { id: EnumEstadoCivil.SEPARADO, code: 'SEPARADO', description: 'Separado(A)' },
15
+ { id: EnumEstadoCivil.VIUDO, code: 'VIUDO', description: 'Viudo(A)' },
16
+ { id: EnumEstadoCivil.UNION_LIBRE, code: 'UNION_LIBRE', description: 'Union Libre' },
17
+ { id: EnumEstadoCivil.NO_DEFINIDO, code: 'NO_DEFINIDO', description: 'NO Definido' }
18
+ ];
19
+
20
+ static getById(id) {
21
+ return EnumEstadoCivil.descriptions.find(item => item.id === id) || null;
22
+ }
23
+
24
+ static getAll() {
25
+ return EnumEstadoCivil.descriptions;
26
+ }
27
+
28
+ static getByDescription(description) {
29
+ return EnumEstadoCivil.descriptions.find(item => item.description === description) || null;
30
+ }
31
+ }
32
+
33
+ module.exports = EnumEstadoCivil;
@@ -0,0 +1,27 @@
1
+ class EnumFormaPresentacion {
2
+ static UNICO = 1;
3
+ static CONSOLIDADO = 2;
4
+ static SUCURSAL = 3;
5
+ static DEPENDENCIA = 4;
6
+
7
+ static descriptions = [
8
+ { id: EnumFormaPresentacion.UNICO, code: 'UNICO', description: 'Único' },
9
+ { id: EnumFormaPresentacion.CONSOLIDADO, code: 'CONSOLIDADO', description: 'Consolidado' },
10
+ { id: EnumFormaPresentacion.SUCURSAL, code: 'SUCURSAL', description: 'Sucursal' },
11
+ { id: EnumFormaPresentacion.DEPENDENCIA, code: 'DEPENDENCIA', description: 'Dependencia' },
12
+ ];
13
+
14
+ static getById(id) {
15
+ return EnumFormaPresentacion.descriptions.find(item => item.id === id) || null;
16
+ }
17
+
18
+ static getAll() {
19
+ return EnumFormaPresentacion.descriptions;
20
+ }
21
+
22
+ static getByDescription(description) {
23
+ return EnumFormaPresentacion.descriptions.find(item => item.description === description) || null;
24
+ }
25
+ }
26
+
27
+ module.exports = EnumFormaPresentacion;
@@ -0,0 +1,37 @@
1
+ class EnumGrupoSanguineo {
2
+ static Amas = 1;
3
+ static Amenos = 2;
4
+ static ABmas = 3;
5
+ static ABmenos = 4;
6
+ static Bmas = 5;
7
+ static Bmenos = 6;
8
+ static Omas = 7;
9
+ static Omenos = 8;
10
+ static noDefinido = 0;
11
+
12
+ static descriptions = [
13
+ { id: EnumGrupoSanguineo.Amas, code: 'Amas', description: 'A+' },
14
+ { id: EnumGrupoSanguineo.Amenos, code: 'Amenos', description: 'A-' },
15
+ { id: EnumGrupoSanguineo.ABmas, code: 'ABmas', description: 'AB+' },
16
+ { id: EnumGrupoSanguineo.ABmenos, code: 'ABmenos', description: 'AB-' },
17
+ { id: EnumGrupoSanguineo.Bmas, code: 'Bmas', description: 'B+' },
18
+ { id: EnumGrupoSanguineo.Bmenos, code: 'Bmenos', description: 'B-' },
19
+ { id: EnumGrupoSanguineo.Omas, code: 'Omas', description: 'O+' },
20
+ { id: EnumGrupoSanguineo.Omenos, code: 'Omenos', description: 'O-' },
21
+ { id: EnumGrupoSanguineo.noDefinido, code: 'noDefinido', description: 'NO DEFINIDO' },
22
+ ];
23
+
24
+ static getById(id) {
25
+ return EnumGrupoSanguineo.descriptions.find(item => item.id === id) || null;
26
+ }
27
+
28
+ static getAll() {
29
+ return EnumGrupoSanguineo.descriptions;
30
+ }
31
+
32
+ static getByDescription(description) {
33
+ return EnumGrupoSanguineo.descriptions.find(item => item.description === description) || null;
34
+ }
35
+ }
36
+
37
+ module.exports = EnumGrupoSanguineo;
@@ -0,0 +1,42 @@
1
+ const EnumVariablesSistema = require('./EnumVariablesSistema');
2
+
3
+ class EnumIncapacidades {
4
+ static IGE_IncapacidadGeneral = EnumVariablesSistema.IGE_IncapacidadGeneral;
5
+ static IRP_IncapacidadAccidenteTrabajo = EnumVariablesSistema.IRP_IncapacidadAccidenteTrabajo;
6
+ static LMA_LicenciaMaternidad = EnumVariablesSistema.LMA_LicenciaMaternidad;
7
+
8
+ static descriptions = [
9
+ { id: EnumIncapacidades.IGE_IncapacidadGeneral, code: 'IGE_IncapacidadGeneral', description: EnumVariablesSistema.getById(EnumVariablesSistema.IGE_IncapacidadGeneral).description },
10
+ { id: EnumIncapacidades.IRP_IncapacidadAccidenteTrabajo, code: 'IRP_IncapacidadAccidenteTrabajo', description: EnumVariablesSistema.getById(EnumVariablesSistema.IRP_IncapacidadAccidenteTrabajo).description },
11
+ { id: EnumIncapacidades.LMA_LicenciaMaternidad, code: 'LMA_LicenciaMaternidad', description: EnumVariablesSistema.getById(EnumVariablesSistema.LMA_LicenciaMaternidad).description },
12
+ ];
13
+
14
+ static getById(id) {
15
+ return EnumIncapacidades.descriptions.find(item => item.id === id) || null;
16
+ }
17
+
18
+ static getAll() {
19
+ return EnumIncapacidades.descriptions;
20
+ }
21
+
22
+ static getByDescription(description) {
23
+ return EnumIncapacidades.descriptions.find(item => item.description === description) || null;
24
+ }
25
+
26
+ static getDescription(value) {
27
+ const keys = Object.keys(EnumIncapacidades);
28
+ for (const key of keys) {
29
+ if (EnumIncapacidades[key] === value) {
30
+ return EnumIncapacidades.getDescriptionByName(key);
31
+ }
32
+ }
33
+ return null;
34
+ }
35
+
36
+ static getDescriptionByName(name) {
37
+ const description = EnumIncapacidades[name].description;
38
+ return description ? description : null;
39
+ }
40
+ }
41
+
42
+ module.exports = EnumIncapacidades;
@@ -0,0 +1,45 @@
1
+ class EnumLocalizacion {
2
+ static TELEFONO = 1;
3
+ static CELULAR = 2;
4
+ static BIPER = 3;
5
+ static EMAIL = 4;
6
+ static EMERGENCIAS = 5;
7
+ static CELULAR_TRABAJO = 6;
8
+ static SITIO_WEB = 7;
9
+ static FACEBOOK = 8;
10
+ static INSTAGRAM = 9;
11
+ static TWITTER = 10;
12
+ static LINKEDIN = 11;
13
+ static YOUTUBE = 12;
14
+ static GEOLOCALIZACION = 13;
15
+
16
+ static descriptions = [
17
+ { id: EnumLocalizacion.TELEFONO, code: 'TELEFONO', description: 'Teléfono' },
18
+ { id: EnumLocalizacion.CELULAR, code: 'CELULAR', description: 'Celular' },
19
+ { id: EnumLocalizacion.BIPER, code: 'BIPER', description: 'Biper' },
20
+ { id: EnumLocalizacion.EMAIL, code: 'EMAIL', description: 'Email' },
21
+ { id: EnumLocalizacion.EMERGENCIAS, code: 'EMERGENCIAS', description: 'Emergencias' },
22
+ { id: EnumLocalizacion.CELULAR_TRABAJO, code: 'CELULAR_TRABAJO', description: 'Celular de Trabajo' },
23
+ { id: EnumLocalizacion.SITIO_WEB, code: 'SITIO_WEB', description: 'Sitio Web' },
24
+ { id: EnumLocalizacion.FACEBOOK, code: 'FACEBOOK', description: 'Facebook' },
25
+ { id: EnumLocalizacion.INSTAGRAM, code: 'INSTAGRAM', description: 'Instagram' },
26
+ { id: EnumLocalizacion.TWITTER, code: 'TWITTER', description: 'Twitter' },
27
+ { id: EnumLocalizacion.LINKEDIN, code: 'LINKEDIN', description: 'LinkedIn' },
28
+ { id: EnumLocalizacion.YOUTUBE, code: 'YOUTUBE', description: 'YouTube' },
29
+ { id: EnumLocalizacion.GEOLOCALIZACION, code: 'GEOLOCALIZACION', description: 'Geolocalización' }
30
+ ];
31
+
32
+ static getById(id) {
33
+ return EnumLocalizacion.descriptions.find(item => item.id === id) || null;
34
+ }
35
+
36
+ static getAll() {
37
+ return EnumLocalizacion.descriptions;
38
+ }
39
+
40
+ static getByDescription(description) {
41
+ return EnumLocalizacion.descriptions.find(item => item.description === description) || null;
42
+ }
43
+ }
44
+
45
+ module.exports = EnumLocalizacion;
@@ -0,0 +1,31 @@
1
+ class EnumMensajes {
2
+ static Ingresos = 1;
3
+ static Terminos = 2;
4
+ static Vacaciones = 3;
5
+ static PeriodoPrueba = 4;
6
+ static FinalizacionContrato = 5;
7
+ static VencimientoEstudios = 6;
8
+
9
+ static descriptions = [
10
+ { id: EnumMensajes.Ingresos, code: 'Ingresos', description: 'Ingresos' },
11
+ { id: EnumMensajes.Terminos, code: 'Terminos', description: 'Terminos' },
12
+ { id: EnumMensajes.Vacaciones, code: 'Vacaciones', description: 'Vacaciones' },
13
+ { id: EnumMensajes.PeriodoPrueba, code: 'PeriodoPrueba', description: 'Periodo de Prueba' },
14
+ { id: EnumMensajes.FinalizacionContrato, code: 'FinalizacionContrato', description: 'Finalizacion de Contrato' },
15
+ { id: EnumMensajes.VencimientoEstudios, code: 'VencimientoEstudios', description: 'Vencimiento de Estudios' },
16
+ ];
17
+
18
+ static getById(id) {
19
+ return EnumMensajes.descriptions.find(item => item.id === id) || null;
20
+ }
21
+
22
+ static getAll() {
23
+ return EnumMensajes.descriptions;
24
+ }
25
+
26
+ static getByDescription(description) {
27
+ return EnumMensajes.descriptions.find(item => item.description === description) || null;
28
+ }
29
+ }
30
+
31
+ module.exports = EnumMensajes;
@@ -0,0 +1,33 @@
1
+ class EnumModalidadEjecucionNomina {
2
+ static INGRESO = 1;
3
+ static DEDUCCION = 2;
4
+ static PROV_SEG = 3;
5
+ static PROV_PRF = 4;
6
+ static PROV_ARP = 5;
7
+ static PROV_PRS = 6;
8
+ static VACACIONES = 7;
9
+
10
+ static descriptions = [
11
+ { id: EnumModalidadEjecucionNomina.INGRESO, code: 'INGRESO', description: 'Ingreso' },
12
+ { id: EnumModalidadEjecucionNomina.DEDUCCION, code: 'DEDUCCION', description: 'Deducción' },
13
+ { id: EnumModalidadEjecucionNomina.PROV_SEG, code: 'PROV_SEG', description: 'Provisión Seguridad Social' },
14
+ { id: EnumModalidadEjecucionNomina.PROV_PRF, code: 'PROV_PRF', description: 'Provisión Parafiscales' },
15
+ { id: EnumModalidadEjecucionNomina.PROV_ARP, code: 'PROV_ARP', description: 'Provisión Riesgos Laborales' },
16
+ { id: EnumModalidadEjecucionNomina.PROV_PRS, code: 'PROV_PRS', description: 'Provisión Prestaciones Sociales' },
17
+ { id: EnumModalidadEjecucionNomina.VACACIONES, code: 'VACACIONES', description: 'Vacaciones' },
18
+ ];
19
+
20
+ static getById(id) {
21
+ return EnumModalidadEjecucionNomina.descriptions.find(item => item.id === id) || null;
22
+ }
23
+
24
+ static getAll() {
25
+ return EnumModalidadEjecucionNomina.descriptions;
26
+ }
27
+
28
+ static getByDescription(description) {
29
+ return EnumModalidadEjecucionNomina.descriptions.find(item => item.description === description) || null;
30
+ }
31
+ }
32
+
33
+ module.exports = EnumModalidadEjecucionNomina;
@@ -0,0 +1,25 @@
1
+ class EnumModalidadServicio {
2
+ static NORMAL = 1;
3
+ static PPD = 2;
4
+ static LABOR = 3;
5
+
6
+ static descriptions = [
7
+ { id: EnumModalidadServicio.NORMAL, code: 'NORMAL', description: 'Normal' },
8
+ { id: EnumModalidadServicio.PPD, code: 'PPD', description: 'PPD' },
9
+ { id: EnumModalidadServicio.LABOR, code: 'LABOR', description: 'Labor' },
10
+ ];
11
+
12
+ static getById(id) {
13
+ return EnumModalidadServicio.descriptions.find(item => item.id === id) || null;
14
+ }
15
+
16
+ static getAll() {
17
+ return EnumModalidadServicio.descriptions;
18
+ }
19
+
20
+ static getByDescription(description) {
21
+ return EnumModalidadServicio.descriptions.find(item => item.description === description) || null;
22
+ }
23
+ }
24
+
25
+ module.exports = EnumModalidadServicio;