@runnerpro/backend 1.22.5 → 1.22.6
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/workout/planificacionPrueba7dias/index.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,2BAA2B,qBAAgB,GAAG,UA+EnD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/workout/planificacionPrueba7dias/index.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,2BAA2B,qBAAgB,GAAG,UA+EnD,CAAC;AA2IF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -111,8 +111,15 @@ const getPlanificacionPrueba7dias = (c, options = {}) => {
|
|
|
111
111
|
return planificacion;
|
|
112
112
|
};
|
|
113
113
|
exports.getPlanificacionPrueba7dias = getPlanificacionPrueba7dias;
|
|
114
|
+
// Quien declara que NO aguanta corriendo de forma continua (aguante F3: "Menos de 5
|
|
115
|
+
// minutos" o "Entre 5 y 20 minutos") NO puede hacer rodajes continuos, sea cual sea su
|
|
116
|
+
// objetivo. Se le manda a la progresión caminar-correr (CaCos), que además se gradúa por
|
|
117
|
+
// ese mismo aguante (lt5→suave, 5-20→intermedio). Su objetivo/distancia se conserva para
|
|
118
|
+
// las semanas siguientes; solo la primera semana arranca caminando-corriendo.
|
|
119
|
+
// 20-45 y gt45 quedan fuera: quien aguanta 20+ min seguidos ya puede rodar continuo.
|
|
120
|
+
const necesitaCaminarCorrer = (c) => ['lt5', '5-20'].includes(c.aguanteCorriendo);
|
|
114
121
|
const changeGoalDistanceByNivelActual = (c) => {
|
|
115
|
-
if (['Comenzar a correr', 'Correr después de una lesión'].includes(c.objetivoPrincipal) || [-2].includes(Number(c.goalDistance)))
|
|
122
|
+
if (necesitaCaminarCorrer(c) || ['Comenzar a correr', 'Correr después de una lesión'].includes(c.objetivoPrincipal) || [-2].includes(Number(c.goalDistance)))
|
|
116
123
|
(0, getPlanificacionPrueba7diasEmpezarCorrer_1.changeGoalDistanceByNivelActualEmpezarCorrer)(c);
|
|
117
124
|
else if (Number(c.goalDistance) > 1 && Number(c.goalDistance) < 8000)
|
|
118
125
|
(0, getPlanificacionPrueba7dias5k_1.changeGoalDistanceByNivelActual5k)(c);
|
|
@@ -127,7 +134,7 @@ const changeGoalDistanceByNivelActual = (c) => {
|
|
|
127
134
|
(0, getPlanificacionPrueba7dias42k_1.changeGoalDistanceByNivelActual42k)(c);
|
|
128
135
|
};
|
|
129
136
|
const getWorkoutsByGoalDistance = (c) => {
|
|
130
|
-
if (['Comenzar a correr', 'Correr después de una lesión'].includes(c.objetivoPrincipal) || Number(c.goalDistance) === -2)
|
|
137
|
+
if (necesitaCaminarCorrer(c) || ['Comenzar a correr', 'Correr después de una lesión'].includes(c.objetivoPrincipal) || Number(c.goalDistance) === -2)
|
|
131
138
|
return (0, getPlanificacionPrueba7diasEmpezarCorrer_1.getPlanificacionPrueba7diasEmpezarCorrer)(c);
|
|
132
139
|
if (Number(c.goalDistance) === 5000)
|
|
133
140
|
return (0, getPlanificacionPrueba7dias5k_1.getPlanificacionPrueba7dias5k)(c);
|