softdinlibreriajs 12.0.42 → 12.0.44

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 (85) hide show
  1. package/.github/workflows/publish.yml +33 -0
  2. package/package.json +23 -23
  3. package/src/EnumActualizacionWEB.js +17 -0
  4. package/src/EnumAplicacionConceptoNovedadEmpresal.js +19 -0
  5. package/src/EnumArchivoPlano.js +19 -0
  6. package/src/EnumAreaTrabajo.js +19 -0
  7. package/src/EnumCertificadoIngresosAportesListado.js +19 -0
  8. package/src/EnumClaseEmpresa.js +19 -0
  9. package/src/EnumClaseRiesgoActividad.js +99 -0
  10. package/src/EnumConceptosCertificacion.js +21 -2
  11. package/src/EnumConceptosContrato.js +19 -0
  12. package/src/EnumContinente.js +19 -0
  13. package/src/EnumDiasSemana.js +19 -0
  14. package/src/EnumEstadoCalendario.js +33 -0
  15. package/src/EnumEstadoCivil.js +38 -5
  16. package/src/EnumFormaPresentacion.js +19 -0
  17. package/src/EnumGrupoSanguineo.js +19 -0
  18. package/src/EnumIncapacidades.js +33 -0
  19. package/src/EnumLocalizacion.js +19 -0
  20. package/src/EnumMensajes.js +19 -0
  21. package/src/EnumModalidadEjecucionNomina.js +19 -0
  22. package/src/EnumModalidadServicio.js +19 -0
  23. package/src/EnumModulos.js +17 -0
  24. package/src/EnumModulosNovedades.js +19 -4
  25. package/src/EnumNE_Ambiente.js +23 -0
  26. package/src/EnumNE_FormaPago.js +23 -0
  27. package/src/EnumNE_Licencias.js +23 -0
  28. package/src/EnumNE_Operadores.js +23 -0
  29. package/src/EnumNE_PeriodoNomina.js +23 -0
  30. package/src/EnumNE_Status.js +43 -6
  31. package/src/EnumNE_TipoArchivo.js +23 -0
  32. package/src/EnumNE_TipoContrato.js +23 -0
  33. package/src/EnumNE_TipoDocumento.js +23 -0
  34. package/src/EnumNE_TipoHora.js +23 -0
  35. package/src/EnumNE_TipoIncapacidad.js +23 -0
  36. package/src/EnumNE_TipoNota.js +23 -0
  37. package/src/EnumNE_TipoXML.js +23 -0
  38. package/src/EnumNE_Vacaciones.js +23 -0
  39. package/src/EnumNivelRiesgo.js +22 -3
  40. package/src/EnumNovedadReteFuente.js +19 -0
  41. package/src/EnumOperadores.js +17 -0
  42. package/src/EnumParentesco.js +19 -0
  43. package/src/EnumPermisosFormulario.js +29 -0
  44. package/src/EnumRegimenExcepcionSSS.js +19 -0
  45. package/src/EnumReporteComprobantesPAGO.js +19 -0
  46. package/src/EnumReporteComprobantesPAGOFiltros.js +19 -0
  47. package/src/EnumRespuestaSINO.js +33 -0
  48. package/src/EnumReteFuenteProcedimiento.js +19 -0
  49. package/src/EnumRolTenant.js +31 -0
  50. package/src/EnumRutas.js +19 -0
  51. package/src/EnumSemana.js +19 -0
  52. package/src/EnumSexo.js +19 -0
  53. package/src/EnumStatusWeb.js +33 -2
  54. package/src/EnumTiempo.js +19 -0
  55. package/src/EnumTiempoNovedades.js +18 -0
  56. package/src/EnumTipoActividad.js +19 -0
  57. package/src/EnumTipoCentroCosto.js +22 -3
  58. package/src/EnumTipoConceptoMO.js +19 -0
  59. package/src/EnumTipoContrato.js +19 -0
  60. package/src/EnumTipoCuenta.js +19 -0
  61. package/src/EnumTipoCuota.js +19 -0
  62. package/src/EnumTipoHora.js +21 -0
  63. package/src/EnumTipoIdentificacion.js +17 -3
  64. package/src/EnumTipoIdentificacionEmbargo.js +22 -1
  65. package/src/EnumTipoInformeSegSoc.js +19 -0
  66. package/src/EnumTipoLibretaMilitar.js +19 -0
  67. package/src/EnumTipoLiquidacion.js +19 -0
  68. package/src/EnumTipoMovimiento.js +18 -0
  69. package/src/EnumTipoNovedad.js +19 -0
  70. package/src/EnumTipoNovedadSeguridadSocial.js +19 -0
  71. package/src/EnumTipoNumeroPILA.js +19 -0
  72. package/src/EnumTipoPago.js +19 -0
  73. package/src/EnumTipoPagoLiquidacion.js +19 -0
  74. package/src/EnumTipoPersona.js +19 -0
  75. package/src/EnumTipoPlanilla.js +19 -0
  76. package/src/EnumTipoReferencia.js +19 -0
  77. package/src/EnumTipoRegimen.js +19 -0
  78. package/src/EnumTipoRegistro.js +19 -0
  79. package/src/EnumTipoRegistroConceptoNovedadEmpresa.js +19 -0
  80. package/src/EnumTipoRegistroHistorial.js +19 -0
  81. package/src/EnumTipoRegistroLiquidacion.js +19 -0
  82. package/src/EnumTipoServicioSeguridadSocial.js +19 -0
  83. package/src/EnumTipoTransferencia.js +19 -0
  84. package/src/EnumTipoTurno.js +19 -0
  85. package/src/EnumVariablesSistema.js +27 -2
@@ -0,0 +1,33 @@
1
+ name: Publish to npm
2
+
3
+ # Se dispara al crear un tag de versión (ej. v12.0.44) o manualmente desde Actions.
4
+ on:
5
+ push:
6
+ tags:
7
+ - 'v*'
8
+ - 'V*'
9
+ workflow_dispatch:
10
+
11
+ jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: '20'
25
+ registry-url: 'https://registry.npmjs.org'
26
+
27
+ - name: Show package version
28
+ run: node -p "require('./package.json').version"
29
+
30
+ - name: Publish to npm
31
+ run: npm publish --access public
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "name": "softdinlibreriajs",
3
- "version": "12.0.42",
4
- "description": "Libreria Softdin",
5
- "main": "src/",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/SoftdinNomina/libreriaSoftdinJS.git"
12
- },
13
- "keywords": [
14
- "keyword"
15
- ],
16
- "author": "Deivi Ibarra Negrette",
17
- "license": "MIT",
18
- "bugs": {
19
- "url": "https://github.com/SoftdinNomina/libreriaSoftdinJS/issues"
20
- },
21
- "homepage": "https://github.com/SoftdinNomina/libreriaSoftdinJS#readme",
22
- "_comments": "comando para ejecutar las veriosnes despues debe cambiar la VERSION 12.0.24 por la que sigue despues ejecutar este comando npm publish"
23
- }
1
+ {
2
+ "name": "softdinlibreriajs",
3
+ "version": "12.0.44",
4
+ "description": "Libreria Softdin",
5
+ "main": "src/",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/DinSoftdin/libreriaSoftdinJS.git"
12
+ },
13
+ "keywords": [
14
+ "keyword"
15
+ ],
16
+ "author": "Deivi Ibarra Negrette",
17
+ "license": "MIT",
18
+ "bugs": {
19
+ "url": "https://github.com/DinSoftdin/libreriaSoftdinJS/issues"
20
+ },
21
+ "homepage": "https://github.com/DinSoftdin/libreriaSoftdinJS#readme",
22
+ "_comments": "comando para ejecutar las veriosnes despues debe cambiar la VERSION 12.0.24 por la que sigue despues ejecutar este comando npm publish"
23
+ }
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de estados de actualización en la aplicación web.
3
+ */
1
4
  export class EnumActualizacionWEB {
2
5
  static REGISTRADO = 1;
3
6
  static NO_REGISTRADO = 3;
@@ -19,14 +22,28 @@ export class EnumActualizacionWEB {
19
22
  { id: EnumActualizacionWEB.INACTIVO, code: 'INACTIVO', description: "Inactivo" }
20
23
  ];
21
24
 
25
+ /**
26
+ * Obtiene un elemento por su identificador.
27
+ * @param {number} id - Identificador del elemento.
28
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
29
+ */
22
30
  static getById(id) {
23
31
  return EnumActualizacionWEB.descriptions.find(item => item.id === id) || null;
24
32
  }
25
33
 
34
+ /**
35
+ * Obtiene todos los elementos de la enumeración.
36
+ * @returns {Array} Lista de objetos con id, code y description.
37
+ */
26
38
  static getAll() {
27
39
  return EnumActualizacionWEB.descriptions;
28
40
  }
29
41
 
42
+ /**
43
+ * Obtiene un elemento por su descripción.
44
+ * @param {string} description - Descripción del elemento.
45
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
46
+ */
30
47
  static getByDescription(description) {
31
48
  return EnumActualizacionWEB.descriptions.find(item => item.description === description) || null;
32
49
  }
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de aplicacionconceptonovedadempresal.
3
+ */
1
4
  class EnumAplicacionConceptoNovedadEmpresal {
2
5
  static INDIVIDUAL = 1;
3
6
  static TODOS = 2;
@@ -8,14 +11,30 @@ class EnumAplicacionConceptoNovedadEmpresal {
8
11
  { id: EnumAplicacionConceptoNovedadEmpresal.TODOS, code: 'TODOS', description: 'Todos' },
9
12
  { id: EnumAplicacionConceptoNovedadEmpresal.AGRUPAR, code: 'AGRUPAR', description: 'Agrupar' },
10
13
  ];
14
+ /**
15
+ * Obtiene un elemento por su identificador.
16
+ * @param {number} id - Identificador del elemento.
17
+
18
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
19
+ */
11
20
 
12
21
  static getById(id) {
13
22
  return EnumAplicacionConceptoNovedadEmpresal.descriptions.find(item => item.id === id) || null;
14
23
  }
24
+ /**
25
+ * Obtiene todos los elementos de la enumeración.
26
+ * @returns {Array} Lista de objetos con id, code y description.
27
+ */
15
28
 
16
29
  static getAll() {
17
30
  return EnumAplicacionConceptoNovedadEmpresal.descriptions;
18
31
  }
32
+ /**
33
+ * Obtiene un elemento por su descripción.
34
+ * @param {string} description - Descripción del elemento.
35
+
36
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
37
+ */
19
38
 
20
39
  static getByDescription(description) {
21
40
  return EnumAplicacionConceptoNovedadEmpresal.descriptions.find(item => item.description === description) || null;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de archivoplano.
3
+ */
1
4
  class EnumArchivoPlano {
2
5
  static BANCO_BOGOTA = 1;
3
6
  static BANCOLOMBIA = 2;
@@ -12,14 +15,30 @@ class EnumArchivoPlano {
12
15
  { id: EnumArchivoPlano.BANCO_BBVA, code: 'BANCO_BBVA', description: 'BANCO BBVA' },
13
16
  { id: EnumArchivoPlano.JURISCOL, code: 'JURISCOL', description: 'JURISCOL' },
14
17
  ];
18
+ /**
19
+ * Obtiene un elemento por su identificador.
20
+ * @param {number} id - Identificador del elemento.
21
+
22
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
23
+ */
15
24
 
16
25
  static getById(id) {
17
26
  return EnumArchivoPlano.descriptions.find(item => item.id === id) || null;
18
27
  }
28
+ /**
29
+ * Obtiene todos los elementos de la enumeración.
30
+ * @returns {Array} Lista de objetos con id, code y description.
31
+ */
19
32
 
20
33
  static getAll() {
21
34
  return EnumArchivoPlano.descriptions;
22
35
  }
36
+ /**
37
+ * Obtiene un elemento por su descripción.
38
+ * @param {string} description - Descripción del elemento.
39
+
40
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
41
+ */
23
42
 
24
43
  static getByDescription(description) {
25
44
  return EnumArchivoPlano.descriptions.find(item => item.description === description) || null;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de areatrabajo.
3
+ */
1
4
  class EnumAreaTrabajo {
2
5
  static ADMINISTRATIVO = 1;
3
6
  static OPERATIVO = 2;
@@ -6,14 +9,30 @@ class EnumAreaTrabajo {
6
9
  { id: EnumAreaTrabajo.ADMINISTRATIVO, code: 'ADMINISTRATIVO', description: 'Administrativo' },
7
10
  { id: EnumAreaTrabajo.OPERATIVO, code: 'OPERATIVO', description: 'Operativo' },
8
11
  ];
12
+ /**
13
+ * Obtiene un elemento por su identificador.
14
+ * @param {number} id - Identificador del elemento.
15
+
16
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
17
+ */
9
18
 
10
19
  static getById(id) {
11
20
  return EnumAreaTrabajo.descriptions.find(item => item.id === id) || null;
12
21
  }
22
+ /**
23
+ * Obtiene todos los elementos de la enumeración.
24
+ * @returns {Array} Lista de objetos con id, code y description.
25
+ */
13
26
 
14
27
  static getAll() {
15
28
  return EnumAreaTrabajo.descriptions;
16
29
  }
30
+ /**
31
+ * Obtiene un elemento por su descripción.
32
+ * @param {string} description - Descripción del elemento.
33
+
34
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
35
+ */
17
36
 
18
37
  static getByDescription(description) {
19
38
  return EnumAreaTrabajo.descriptions.find(item => item.description === description) || null;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de certificadoingresosaporteslistado.
3
+ */
1
4
  class EnumCertificadoIngresosAportesListado {
2
5
  static No36 = 1;
3
6
  static No37 = 2;
@@ -52,14 +55,30 @@ class EnumCertificadoIngresosAportesListado {
52
55
  { id: EnumCertificadoIngresosAportesListado.No59, code: "No59", description: "59 Ingreso laboral promedio de los últimos seis meses anteriores (numeral 4 art. 206 E.T.)" },
53
56
  { id: EnumCertificadoIngresosAportesListado.No60, code: "No60", description: "60 Valor de la retención en la fuente por ingresos laborales y de pensiones" }
54
57
  ];
58
+ /**
59
+ * Obtiene un elemento por su identificador.
60
+ * @param {number} id - Identificador del elemento.
61
+
62
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
63
+ */
55
64
 
56
65
  static getById(id) {
57
66
  return EnumCertificadoIngresosAportesListado.descriptions.find(item => item.id === id) || null;
58
67
  }
68
+ /**
69
+ * Obtiene todos los elementos de la enumeración.
70
+ * @returns {Array} Lista de objetos con id, code y description.
71
+ */
59
72
 
60
73
  static getAll() {
61
74
  return EnumCertificadoIngresosAportesListado.descriptions;
62
75
  }
76
+ /**
77
+ * Obtiene un elemento por su descripción.
78
+ * @param {string} description - Descripción del elemento.
79
+
80
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
81
+ */
63
82
 
64
83
  static getByDescription(description) {
65
84
  return EnumCertificadoIngresosAportesListado.descriptions.find(item => item.description === description) || null;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de claseempresa.
3
+ */
1
4
  class EnumClaseEmpresa {
2
5
  static EMPRESA = 1;
3
6
  static COOPERATIVA = 2;
@@ -10,14 +13,30 @@ class EnumClaseEmpresa {
10
13
  { id: EnumClaseEmpresa.BANCO, code: 'BAN', description: 'BANCO' },
11
14
  { id: EnumClaseEmpresa.PILA, code: 'PIL', description: 'PILA' },
12
15
  ];
16
+ /**
17
+ * Obtiene un elemento por su identificador.
18
+ * @param {number} id - Identificador del elemento.
19
+
20
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
21
+ */
13
22
 
14
23
  static getById(id) {
15
24
  return EnumClaseEmpresa.descriptions.find(item => item.id === id) || null;
16
25
  }
26
+ /**
27
+ * Obtiene todos los elementos de la enumeración.
28
+ * @returns {Array} Lista de objetos con id, code y description.
29
+ */
17
30
 
18
31
  static getAll() {
19
32
  return EnumClaseEmpresa.descriptions;
20
33
  }
34
+ /**
35
+ * Obtiene un elemento por su descripción.
36
+ * @param {string} description - Descripción del elemento.
37
+
38
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
39
+ */
21
40
 
22
41
  static getByDescription(description) {
23
42
  return EnumClaseEmpresa.descriptions.find(item => item.description === description) || null;
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Clases de riesgo de la actividad económica (ARL / Decreto 1072 de 2015).
3
+ * Tarifas de cotización sobre el IBC.
4
+ */
5
+ class EnumClaseRiesgoActividad {
6
+ static CLASE_I = 1;
7
+ static CLASE_II = 2;
8
+ static CLASE_III = 3;
9
+ static CLASE_IV = 4;
10
+ static CLASE_V = 5;
11
+
12
+ static descriptions = [
13
+ {
14
+ id: EnumClaseRiesgoActividad.CLASE_I,
15
+ code: 'CLASE_I',
16
+ description: 'Clase I - Riesgo mínimo',
17
+ porcentaje: 0.522,
18
+ },
19
+ {
20
+ id: EnumClaseRiesgoActividad.CLASE_II,
21
+ code: 'CLASE_II',
22
+ description: 'Clase II - Riesgo bajo',
23
+ porcentaje: 1.044,
24
+ },
25
+ {
26
+ id: EnumClaseRiesgoActividad.CLASE_III,
27
+ code: 'CLASE_III',
28
+ description: 'Clase III - Riesgo medio',
29
+ porcentaje: 2.436,
30
+ },
31
+ {
32
+ id: EnumClaseRiesgoActividad.CLASE_IV,
33
+ code: 'CLASE_IV',
34
+ description: 'Clase IV - Riesgo alto',
35
+ porcentaje: 4.350,
36
+ },
37
+ {
38
+ id: EnumClaseRiesgoActividad.CLASE_V,
39
+ code: 'CLASE_V',
40
+ description: 'Clase V - Riesgo máximo',
41
+ porcentaje: 6.960,
42
+ },
43
+ ];
44
+
45
+ /**
46
+ * Obtiene un elemento por su identificador.
47
+ * @param {number} id - Identificador del elemento.
48
+ * @returns {Object|null} El objeto con id, code, description y porcentaje, o null si no existe.
49
+ */
50
+ static getById(id) {
51
+ return EnumClaseRiesgoActividad.descriptions.find((item) => item.id === id) || null;
52
+ }
53
+
54
+ /**
55
+ * Obtiene todos los elementos de la enumeración.
56
+ * @returns {Array} Lista de objetos con id, code, description y porcentaje.
57
+ */
58
+ static getAll() {
59
+ return EnumClaseRiesgoActividad.descriptions;
60
+ }
61
+
62
+ /**
63
+ * Obtiene un elemento por su descripción.
64
+ * @param {string} description - Descripción del elemento.
65
+ * @returns {Object|null} El objeto encontrado o null si no existe.
66
+ */
67
+ static getByDescription(description) {
68
+ return (
69
+ EnumClaseRiesgoActividad.descriptions.find(
70
+ (item) => item.description === description,
71
+ ) || null
72
+ );
73
+ }
74
+
75
+ /**
76
+ * Obtiene un elemento por su porcentaje de cotización ARL.
77
+ * @param {number} porcentaje - Porcentaje sobre el IBC.
78
+ * @returns {Object|null} El objeto encontrado o null si no existe.
79
+ */
80
+ static getByPorcentaje(porcentaje) {
81
+ return (
82
+ EnumClaseRiesgoActividad.descriptions.find(
83
+ (item) => Math.abs(item.porcentaje - porcentaje) < 0.0001,
84
+ ) || null
85
+ );
86
+ }
87
+
88
+ /**
89
+ * Retorna el porcentaje de cotización ARL de una clase.
90
+ * @param {number} id - Identificador de la clase.
91
+ * @returns {number|null} Porcentaje o null si no existe.
92
+ */
93
+ static getPorcentaje(id) {
94
+ const item = EnumClaseRiesgoActividad.getById(id);
95
+ return item ? item.porcentaje : null;
96
+ }
97
+ }
98
+
99
+ module.exports = EnumClaseRiesgoActividad;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de conceptoscertificacion.
3
+ */
1
4
  class EnumConceptosCertificacion {
2
5
  static NIT = 1;
3
6
  static RAZON_SOCIAL = 2;
@@ -26,7 +29,7 @@ class EnumConceptosCertificacion {
26
29
  static CESANTIAS = 25;
27
30
  static MOTIVO_RETIRO = 26;
28
31
  static FECHA_ACTUAL_LARGO = 27;
29
- static FECHA_ACTUAL_CORTO = 27;
32
+ static FECHA_ACTUAL_CORTO = 28;
30
33
  static DESCRIPCION_CARGO = 29;
31
34
  static SALARIO_LETRAS = 30;
32
35
  static DESCRIPCION_CONTRATO = 31;
@@ -80,7 +83,7 @@ class EnumConceptosCertificacion {
80
83
  { id: EnumConceptosCertificacion.CESANTIAS, description2: "CESANTIAS", code: "<<25>>", description: "<<25>> CESANTIAS" },
81
84
  { id: EnumConceptosCertificacion.MOTIVO_RETIRO, description2: "MOTIVO RETIRO", code: "<<26>>", description: "<<26>> MOTIVO RETIRO" },
82
85
  { id: EnumConceptosCertificacion.FECHA_ACTUAL_LARGO, description2: "FECHA ACTUAL LARGO", code: "<<27>>", description: "<<27>> FECHA ACTUAL LARGO" },
83
- { id: EnumConceptosCertificacion.FECHA_ACTUAL_CORTO, description2: "FECHA ACTUAL CORTO", code: "<<27>>", description: "<<27>> FECHA ACTUAL CORTO" },
86
+ { id: EnumConceptosCertificacion.FECHA_ACTUAL_CORTO, description2: "FECHA ACTUAL CORTO", code: "<<28>>", description: "<<28>> FECHA ACTUAL CORTO" },
84
87
  { id: EnumConceptosCertificacion.DESCRIPCION_CARGO, description2: "DESCRIPCION CARGO", code: "<<29>>", description: "<<29>> DESCRIPCION CARGO" },
85
88
  { id: EnumConceptosCertificacion.SALARIO_LETRAS, description2: "SALARIO LETRAS", code: "<<30>>", description: "<<30>> SALARIO LETRAS" },
86
89
  { id: EnumConceptosCertificacion.DESCRIPCION_CONTRATO, description2: "DESCRIPCION CONTRATO", code: "<<31>>", description: "<<31>> DESCRIPCION CONTRATO" },
@@ -106,14 +109,30 @@ class EnumConceptosCertificacion {
106
109
  { id: EnumConceptosCertificacion.EMAIL, description2: "EMAIL", code: "<<51>>", description: "<<51>> EMAIL" },
107
110
  { id: EnumConceptosCertificacion.TEL_EMERGENCIA, description2: "TEL EMERGENCIA", code: "<<52>>", description: "<<52>> TEL EMERGENCIA" }
108
111
  ];
112
+ /**
113
+ * Obtiene un elemento por su identificador.
114
+ * @param {number} id - Identificador del elemento.
115
+
116
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
117
+ */
109
118
 
110
119
  static getById(id) {
111
120
  return EnumConceptosCertificacion.descriptions.find(item => item.id === id) || null;
112
121
  }
122
+ /**
123
+ * Obtiene todos los elementos de la enumeración.
124
+ * @returns {Array} Lista de objetos con id, code y description.
125
+ */
113
126
 
114
127
  static getAll() {
115
128
  return EnumConceptosCertificacion.descriptions;
116
129
  }
130
+ /**
131
+ * Obtiene un elemento por su descripción.
132
+ * @param {string} description - Descripción del elemento.
133
+
134
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
135
+ */
117
136
 
118
137
  static getByDescription(description) {
119
138
  return EnumConceptosCertificacion.descriptions.find(item => item.description === description) || null;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de conceptoscontrato.
3
+ */
1
4
  class EnumConceptosContrato {
2
5
  static AREATRABAJO = 1;
3
6
  static CARGO = 2;
@@ -18,14 +21,30 @@ class EnumConceptosContrato {
18
21
  { id: EnumConceptosContrato.SUCURSALPILA, codigo: 'SUCURSALPILA', description: "Sucursal PILA" },
19
22
  { id: EnumConceptosContrato.TIPOCONTRATO, codigo: 'TIPOCONTRATO', description: "Tipo de Contrato" },
20
23
  ];
24
+ /**
25
+ * Obtiene un elemento por su identificador.
26
+ * @param {number} id - Identificador del elemento.
27
+
28
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
29
+ */
21
30
 
22
31
  static getById(id) {
23
32
  return EnumConceptosContrato.descriptions.find(item => item.id === id) || null;
24
33
  }
34
+ /**
35
+ * Obtiene todos los elementos de la enumeración.
36
+ * @returns {Array} Lista de objetos con id, code y description.
37
+ */
25
38
 
26
39
  static getAll() {
27
40
  return EnumConceptosContrato.descriptions;
28
41
  }
42
+ /**
43
+ * Obtiene un elemento por su descripción.
44
+ * @param {string} description - Descripción del elemento.
45
+
46
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
47
+ */
29
48
 
30
49
  static getByDescription(description) {
31
50
  return EnumConceptosContrato.descriptions.find(item => item.description === description) || null;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de continente.
3
+ */
1
4
  class EnumContinente {
2
5
  static ASIA = 1;
3
6
  static AFRICA = 2;
@@ -13,14 +16,30 @@ class EnumContinente {
13
16
  { id: EnumContinente.AMERICA_NORTE, code: 'AMERICA_NORTE', description: 'América del Norte' },
14
17
  { id: EnumContinente.AMERICA_SUR, code: 'AMERICA_SUR', description: 'América del Sur' },
15
18
  { id: EnumContinente.OCEANIA, code: 'OCEANIA', description: 'Oceanía' }, ];
19
+ /**
20
+ * Obtiene un elemento por su identificador.
21
+ * @param {number} id - Identificador del elemento.
22
+
23
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
24
+ */
16
25
 
17
26
  static getById(id) {
18
27
  return EnumContinente.descriptions.find(item => item.id === id) || null;
19
28
  }
29
+ /**
30
+ * Obtiene todos los elementos de la enumeración.
31
+ * @returns {Array} Lista de objetos con id, code y description.
32
+ */
20
33
 
21
34
  static getAll() {
22
35
  return EnumContinente.descriptions;
23
36
  }
37
+ /**
38
+ * Obtiene un elemento por su descripción.
39
+ * @param {string} description - Descripción del elemento.
40
+
41
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
42
+ */
24
43
 
25
44
  static getByDescription(description) {
26
45
  return EnumContinente.descriptions.find(item => item.description === description) || null;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de diassemana.
3
+ */
1
4
  class EnumDiasSemana {
2
5
  static LUNES = 1;
3
6
  static MARTES = 2;
@@ -16,14 +19,30 @@ class EnumDiasSemana {
16
19
  { id: EnumDiasSemana.SABADO, code: 'SABADO', description: 'Sabado' },
17
20
  { id: EnumDiasSemana.DOMINGO, code: 'DOMINGO', description: 'Domingo' },
18
21
  ];
22
+ /**
23
+ * Obtiene un elemento por su identificador.
24
+ * @param {number} id - Identificador del elemento.
25
+
26
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
27
+ */
19
28
 
20
29
  static getById(id) {
21
30
  return EnumDiasSemana.descriptions.find(item => item.id === id) || null;
22
31
  }
32
+ /**
33
+ * Obtiene todos los elementos de la enumeración.
34
+ * @returns {Array} Lista de objetos con id, code y description.
35
+ */
23
36
 
24
37
  static getAll() {
25
38
  return EnumDiasSemana.descriptions;
26
39
  }
40
+ /**
41
+ * Obtiene un elemento por su descripción.
42
+ * @param {string} description - Descripción del elemento.
43
+
44
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
45
+ */
27
46
 
28
47
  static getByDescription(description) {
29
48
  return EnumDiasSemana.descriptions.find(item => item.description === description) || null;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Enumeración de estadocalendario.
3
+ */
1
4
  class EnumEstadoCalendario {
2
5
  static NORMAL = 1;
3
6
  static FERIADO = 2;
@@ -6,14 +9,30 @@ class EnumEstadoCalendario {
6
9
  { id: EnumEstadoCalendario.NORMAL, code: 'NORMAL', description: 'Normal' },
7
10
  { id: EnumEstadoCalendario.FERIADO, code: 'FERIADO', description: 'Feriado' },
8
11
  ];
12
+ /**
13
+ * Obtiene un elemento por su identificador.
14
+ * @param {number} id - Identificador del elemento.
15
+
16
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
17
+ */
9
18
 
10
19
  static getById(id) {
11
20
  return EnumEstadoCalendario.descriptions.find(item => item.id === id) || null;
12
21
  }
22
+ /**
23
+ * Obtiene todos los elementos de la enumeración.
24
+ * @returns {Array} Lista de objetos con id, code y description.
25
+ */
13
26
 
14
27
  static getAll() {
15
28
  return EnumEstadoCalendario.descriptions;
16
29
  }
30
+ /**
31
+ * Obtiene un elemento por su descripción.
32
+ * @param {string} description - Descripción del elemento.
33
+
34
+ * @returns {Object|null} El objeto con id, code y description, o null si no existe.
35
+ */
17
36
 
18
37
  static getByDescription(description) {
19
38
  return EnumEstadoCalendario.descriptions.find(item => item.description === description) || null;
@@ -23,6 +42,12 @@ class EnumEstadoCalendario {
23
42
  'primary': EnumEstadoCalendario.NORMAL,
24
43
  'danger': EnumEstadoCalendario.FERIADO, // Default color for unknown states
25
44
  };
45
+ /**
46
+ * Obtiene un objeto con el mapeo de colores al valor del campo especificado.
47
+ * @param {string} campo - Nombre del campo a extraer.
48
+
49
+ * @returns {Object} Objeto con claves de color y valores del campo.
50
+ */
26
51
 
27
52
  static getColors(campo) {
28
53
  const colorArray = {};
@@ -37,6 +62,14 @@ class EnumEstadoCalendario {
37
62
  }
38
63
  return colorArray;
39
64
  }
65
+ /**
66
+ * Obtiene el nombre del color asociado a un valor del campo especificado.
67
+ * @param {string} campo - Nombre del campo a consultar.
68
+
69
+ * @param {*} valor - Valor a buscar.
70
+
71
+ * @returns {string|undefined} Nombre del color o undefined si no se encuentra.
72
+ */
40
73
 
41
74
  static getColorName(campo, valor) {
42
75
  const colors = EnumEstadoCalendario.getColors(campo);