@runnerpro/backend 1.7.2 → 1.7.3
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.
- package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10k.d.ts +11 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10k.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kMas50.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kMas50.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kPrimer.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kPrimer.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kSub50.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kSub50.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21k.d.ts +11 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21k.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kMas105.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kMas105.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kPrimer.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kPrimer.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kSub105.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kSub105.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42k.d.ts +11 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42k.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kMas210.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kMas210.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kPrimer.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kPrimer.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kSub210.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kSub210.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5k.d.ts +11 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5k.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kPrimer.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kPrimer.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kSub30.d.ts +10 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kSub30.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/common.d.ts +6 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/common.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer.d.ts +17 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer1.d.ts +16 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer1.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer2.d.ts +16 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer2.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer3.d.ts +16 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer3.d.ts.map +1 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/index.d.ts.map +1 -1
- package/lib/cjs/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10k.js +28 -0
- package/lib/cjs/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kMas50.js +151 -0
- package/lib/cjs/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kPrimer.js +141 -0
- package/lib/cjs/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kSub50.js +131 -0
- package/lib/cjs/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21k.js +29 -0
- package/lib/cjs/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kMas105.js +143 -0
- package/lib/cjs/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kPrimer.js +129 -0
- package/lib/cjs/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kSub105.js +143 -0
- package/lib/cjs/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42k.js +29 -0
- package/lib/cjs/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kMas210.js +153 -0
- package/lib/cjs/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kPrimer.js +153 -0
- package/lib/cjs/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kSub210.js +131 -0
- package/lib/cjs/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5k.js +21 -0
- package/lib/cjs/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kPrimer.js +145 -0
- package/lib/cjs/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kSub30.js +135 -0
- package/lib/cjs/workout/planificacionPrueba7dias/common.js +61 -0
- package/lib/cjs/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer.js +28 -0
- package/lib/cjs/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer1.js +138 -0
- package/lib/cjs/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer2.js +138 -0
- package/lib/cjs/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer3.js +138 -0
- package/lib/cjs/workout/planificacionPrueba7dias/index.js +29 -22
- package/package.json +1 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias21kSub105 = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias21kSub105 = (c) => {
|
|
7
|
+
// Correr 1h al 70% VAM
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 15' + 4xprogresivo de 7'-5'-4'-3' + enfriamiento 15'
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Correr 45' al 70% VAM
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7dias21kSub105 = getPlanificacionPrueba7dias21kSub105;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
return {
|
|
18
|
+
title: 'Entrenamiento de calidad',
|
|
19
|
+
description: 'Entrenamiento basado en la intercalación de periodos de rodaje a tiempo de carrera + periodos de rodajes suaves.',
|
|
20
|
+
shortDescription: "Calentamiento 10' + 15' + 4km + 15' + enfriamiento 10'",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 1200, 75) + 4000 + (0, common_2.calculateDistance)(c, 2 * 15 * 60, 85),
|
|
23
|
+
durationPlanned: 3240 + (0, common_2.calculateDuration)(c, 4000, 75),
|
|
24
|
+
structure: [
|
|
25
|
+
{
|
|
26
|
+
index: 0,
|
|
27
|
+
type: 1,
|
|
28
|
+
typeMetric1: 2,
|
|
29
|
+
valueMetric1: 600,
|
|
30
|
+
typeMetric2: 1,
|
|
31
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
index: 1,
|
|
35
|
+
type: 2,
|
|
36
|
+
typeMetric1: 2,
|
|
37
|
+
valueMetric1: 900,
|
|
38
|
+
typeMetric2: 1,
|
|
39
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 85),
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
index: 2,
|
|
43
|
+
type: 3,
|
|
44
|
+
typeMetric1: 2,
|
|
45
|
+
valueMetric1: 120,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
index: 3,
|
|
49
|
+
type: 2,
|
|
50
|
+
typeMetric1: 1,
|
|
51
|
+
valueMetric1: 4000,
|
|
52
|
+
typeMetric2: 1,
|
|
53
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
index: 4,
|
|
57
|
+
type: 3,
|
|
58
|
+
typeMetric1: 2,
|
|
59
|
+
valueMetric1: 120,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
index: 5,
|
|
63
|
+
type: 2,
|
|
64
|
+
typeMetric1: 2,
|
|
65
|
+
valueMetric1: 900,
|
|
66
|
+
typeMetric2: 1,
|
|
67
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 85),
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
index: 6,
|
|
71
|
+
type: 4,
|
|
72
|
+
typeMetric1: 2,
|
|
73
|
+
valueMetric1: 600,
|
|
74
|
+
typeMetric2: 1,
|
|
75
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
const getDay2 = (c) => {
|
|
81
|
+
const day = {
|
|
82
|
+
title: 'Entrenamiento de intervalos cortos',
|
|
83
|
+
description: 'Entrenamiento enfocado a mejorar la Velocidad en carrera. En este entrenamiento te enfrentarás a 8 series de 200 m a alta intensidad seguidos de 200 m de trote para recuperar.',
|
|
84
|
+
shortDescription: "Calentamiento 15' + 10x (200m ritmo rápido + 200m suaves) + enfriamiento 15'",
|
|
85
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
86
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 900, 75) + 10 * 400 + (0, common_2.calculateDistance)(c, 900, 70),
|
|
87
|
+
durationPlanned: 1800 + (0, common_2.calculateDuration)(c, 10 * 200, 95) + (0, common_2.calculateDuration)(c, 10 * 200, 70),
|
|
88
|
+
structure: [
|
|
89
|
+
// Calentamiento
|
|
90
|
+
{
|
|
91
|
+
index: 0,
|
|
92
|
+
type: 1,
|
|
93
|
+
typeMetric1: 2,
|
|
94
|
+
valueMetric1: 900,
|
|
95
|
+
typeMetric2: 1,
|
|
96
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
};
|
|
100
|
+
for (let i = 0; i < 10; i++) {
|
|
101
|
+
day.structure.push({
|
|
102
|
+
index: 1 + i * 2,
|
|
103
|
+
// @ts-ignore
|
|
104
|
+
idSerie: 0,
|
|
105
|
+
indexSerie: i,
|
|
106
|
+
type: 2,
|
|
107
|
+
typeMetric1: 1,
|
|
108
|
+
valueMetric1: 200,
|
|
109
|
+
typeMetric2: 1,
|
|
110
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 95),
|
|
111
|
+
});
|
|
112
|
+
day.structure.push({
|
|
113
|
+
index: 2 + i * 2,
|
|
114
|
+
// @ts-ignore
|
|
115
|
+
idSerie: 0,
|
|
116
|
+
indexSerie: i,
|
|
117
|
+
type: 2,
|
|
118
|
+
typeMetric1: 1,
|
|
119
|
+
valueMetric1: 200,
|
|
120
|
+
typeMetric2: 1,
|
|
121
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
day.structure.push({
|
|
125
|
+
index: 21,
|
|
126
|
+
type: 4,
|
|
127
|
+
typeMetric1: 2,
|
|
128
|
+
valueMetric1: 900,
|
|
129
|
+
typeMetric2: 1,
|
|
130
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
131
|
+
});
|
|
132
|
+
return day;
|
|
133
|
+
};
|
|
134
|
+
const getDay3 = (c) => {
|
|
135
|
+
return {
|
|
136
|
+
title: 'Rodaje largo',
|
|
137
|
+
description: 'Corre a un ritmo que se adapte a tu nivel, buscando ser constante durante toda la distancia. La intensidad de este rodaje tiene que permitirte la posibilidad de hablar mientras corres, es decir, es un ritmo suave.',
|
|
138
|
+
shortDescription: '1h 20m ritmo suave',
|
|
139
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
140
|
+
durationPlanned: 4800,
|
|
141
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 4800, 75),
|
|
142
|
+
};
|
|
143
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.changeGoalDistanceByNivelActual42k = exports.getPlanificacionPrueba7dias42k = void 0;
|
|
4
|
+
const getPlanificacionPrueba7dias42kPrimer_1 = require("./getPlanificacionPrueba7dias42kPrimer");
|
|
5
|
+
const getPlanificacionPrueba7dias42kMas210_1 = require("./getPlanificacionPrueba7dias42kMas210");
|
|
6
|
+
const getPlanificacionPrueba7dias42kSub210_1 = require("./getPlanificacionPrueba7dias42kSub210");
|
|
7
|
+
const getPlanificacionPrueba7dias42k = (c) => {
|
|
8
|
+
if (c.type === 'PRIMER')
|
|
9
|
+
return (0, getPlanificacionPrueba7dias42kPrimer_1.getPlanificacionPrueba7dias42kPrimer)(c);
|
|
10
|
+
if (c.type === 'MAS210')
|
|
11
|
+
return (0, getPlanificacionPrueba7dias42kMas210_1.getPlanificacionPrueba7dias42kMas210)(c);
|
|
12
|
+
if (c.type === 'SUB210')
|
|
13
|
+
return (0, getPlanificacionPrueba7dias42kSub210_1.getPlanificacionPrueba7dias42kSub210)(c);
|
|
14
|
+
return [];
|
|
15
|
+
};
|
|
16
|
+
exports.getPlanificacionPrueba7dias42k = getPlanificacionPrueba7dias42k;
|
|
17
|
+
const changeGoalDistanceByNivelActual42k = (c) => {
|
|
18
|
+
c.goalDistance = 42000;
|
|
19
|
+
// Si es su primer maratón o el anterior lo hizo en más de 4h30min
|
|
20
|
+
if (!c.vamDuration || Number(c.vamDuration) > 270 * 60)
|
|
21
|
+
c.type = 'PRIMER';
|
|
22
|
+
// Si el anterior lo hizo en menos de 4h30min y más de 3h45min
|
|
23
|
+
else if (Number(c.vamDuration) > 225 * 60 && Number(c.vamDuration) <= 270 * 60)
|
|
24
|
+
c.type = 'MAS210';
|
|
25
|
+
// Si el anterior lo hizo en menos de 3h45min
|
|
26
|
+
else
|
|
27
|
+
c.type = 'SUB210';
|
|
28
|
+
};
|
|
29
|
+
exports.changeGoalDistanceByNivelActual42k = changeGoalDistanceByNivelActual42k;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias42kMas210 = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias42kMas210 = (c) => {
|
|
7
|
+
// Calentamiento 15' + 1000m + 2000m + 3000m + 2000m + 1000m + enfriamiento 10'
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 10' + 10km + enfriamiento 15'
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Correr 1h40' al 75% VAM
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7dias42kMas210 = getPlanificacionPrueba7dias42kMas210;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
return {
|
|
18
|
+
title: 'Entrenamiento piramidal',
|
|
19
|
+
description: 'Carrera interválica piramidal destinada a mejorar la resistencia general y la resistencia a la fatiga. Consiste en calentar 15 minutos a un ritmo muy suave y después intercalar diferentes distancias con las intensidades marcadas.',
|
|
20
|
+
shortDescription: "Calentamiento 15' + series + enfriamiento 10'",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 1500, 70) + 9000,
|
|
23
|
+
durationPlanned: 1500 + 360 + (0, common_2.calculateDuration)(c, 2000, 90) + (0, common_2.calculateDuration)(c, 4000, 85) + (0, common_2.calculateDuration)(c, 3000, 80),
|
|
24
|
+
structure: [
|
|
25
|
+
{
|
|
26
|
+
index: 0,
|
|
27
|
+
type: 1,
|
|
28
|
+
typeMetric1: 2,
|
|
29
|
+
valueMetric1: 900,
|
|
30
|
+
typeMetric2: 1,
|
|
31
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
index: 1,
|
|
35
|
+
type: 2,
|
|
36
|
+
typeMetric1: 1,
|
|
37
|
+
valueMetric1: 1000,
|
|
38
|
+
typeMetric2: 1,
|
|
39
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 90),
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
index: 2,
|
|
43
|
+
type: 3,
|
|
44
|
+
typeMetric1: 2,
|
|
45
|
+
valueMetric1: 90,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
index: 3,
|
|
49
|
+
type: 2,
|
|
50
|
+
typeMetric1: 1,
|
|
51
|
+
valueMetric1: 2000,
|
|
52
|
+
typeMetric2: 1,
|
|
53
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 85),
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
index: 4,
|
|
57
|
+
type: 3,
|
|
58
|
+
typeMetric1: 2,
|
|
59
|
+
valueMetric1: 90,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
index: 5,
|
|
63
|
+
type: 2,
|
|
64
|
+
typeMetric1: 1,
|
|
65
|
+
valueMetric1: 3000,
|
|
66
|
+
typeMetric2: 1,
|
|
67
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 80),
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
index: 6,
|
|
71
|
+
type: 3,
|
|
72
|
+
typeMetric1: 2,
|
|
73
|
+
valueMetric1: 90,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
index: 7,
|
|
77
|
+
type: 2,
|
|
78
|
+
typeMetric1: 1,
|
|
79
|
+
valueMetric1: 2000,
|
|
80
|
+
typeMetric2: 1,
|
|
81
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 85),
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
index: 8,
|
|
85
|
+
type: 3,
|
|
86
|
+
typeMetric1: 2,
|
|
87
|
+
valueMetric1: 90,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
index: 9,
|
|
91
|
+
type: 2,
|
|
92
|
+
typeMetric1: 1,
|
|
93
|
+
valueMetric1: 1000,
|
|
94
|
+
typeMetric2: 1,
|
|
95
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 90),
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
index: 10,
|
|
99
|
+
type: 4,
|
|
100
|
+
typeMetric1: 2,
|
|
101
|
+
valueMetric1: 600,
|
|
102
|
+
typeMetric2: 1,
|
|
103
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
const getDay2 = (c) => {
|
|
109
|
+
return {
|
|
110
|
+
title: 'Rodaje suave + rodaje tempo',
|
|
111
|
+
description: "Corre a un ritmo que adaptado a tu nivel, buscando ser constante durante toda la distancia. Este rodaje se tiene que realizar con una sensación de que el entrenamiento es duro pero soportable. Calienta durante 10' a un ritmo de rodaje suave, y finaliza el entreno con 10' de enfriamiento",
|
|
112
|
+
shortDescription: "Calentamiento 10' + 10km (ritmo tempo) + enfriamiento 15'",
|
|
113
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
114
|
+
distancePlanned: 10000 + (0, common_2.calculateDistance)(c, 1500, 70),
|
|
115
|
+
durationPlanned: 1500 + (0, common_2.calculateDuration)(c, 10000, 78),
|
|
116
|
+
structure: [
|
|
117
|
+
{
|
|
118
|
+
index: 0,
|
|
119
|
+
type: 1,
|
|
120
|
+
typeMetric1: 2,
|
|
121
|
+
valueMetric1: 600,
|
|
122
|
+
typeMetric2: 1,
|
|
123
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
index: 1,
|
|
127
|
+
type: 2,
|
|
128
|
+
typeMetric1: 1,
|
|
129
|
+
valueMetric1: 10000,
|
|
130
|
+
typeMetric2: 1,
|
|
131
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 80),
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
index: 6,
|
|
135
|
+
type: 4,
|
|
136
|
+
typeMetric1: 2,
|
|
137
|
+
valueMetric1: 600,
|
|
138
|
+
typeMetric2: 1,
|
|
139
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
const getDay3 = (c) => {
|
|
145
|
+
return {
|
|
146
|
+
title: 'Rodaje largo',
|
|
147
|
+
description: 'Corre a un ritmo que se adapte a tu nivel, buscando ser constante durante toda la distancia. La intensidad de este rodaje tiene que permitirte la posibilidad de hablar mientras corres, es decir, es un ritmo suave.',
|
|
148
|
+
shortDescription: '1h 40m ritmo suave',
|
|
149
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
150
|
+
durationPlanned: 6000,
|
|
151
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 6000, 75),
|
|
152
|
+
};
|
|
153
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias42kPrimer = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias42kPrimer = (c) => {
|
|
7
|
+
// Calemiento 15' + 10x(300m rápido + 300m suave) + enfriamiento 15'
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 15' + 3x8' + 3x6' + enfriamiento 10'
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Correr 1h30' al 75% VAM
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7dias42kPrimer = getPlanificacionPrueba7dias42kPrimer;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
const day = {
|
|
18
|
+
title: 'Entrenamiento Fartlek',
|
|
19
|
+
description: 'Entrenamiento que consiste en realizar 10 series de 300m a un ritmo cercano Vo2 Máx + 300m de carrera a ritmo de rodaje suave',
|
|
20
|
+
shortDescription: "Calentamiento 15' + 10x(300m rápido + 300m suave) + enfriamiento 15'",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 900, 75) + (0, common_2.calculateDistance)(c, 900, 70) + 10 * (300 + 300),
|
|
23
|
+
durationPlanned: 1800 + (0, common_2.calculateDuration)(c, 10 * 300, 90) + (0, common_2.calculateDuration)(c, 10 * 300, 70),
|
|
24
|
+
structure: [
|
|
25
|
+
// Calentamiento
|
|
26
|
+
{
|
|
27
|
+
index: 0,
|
|
28
|
+
type: 1,
|
|
29
|
+
typeMetric1: 2,
|
|
30
|
+
valueMetric1: 900,
|
|
31
|
+
typeMetric2: 1,
|
|
32
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
for (let i = 0; i < 10; i++) {
|
|
37
|
+
day.structure.push({
|
|
38
|
+
index: 1 + i * 2,
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
idSerie: 0,
|
|
41
|
+
indexSerie: i,
|
|
42
|
+
type: 2,
|
|
43
|
+
typeMetric1: 1,
|
|
44
|
+
valueMetric1: 300,
|
|
45
|
+
typeMetric2: 1,
|
|
46
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 90),
|
|
47
|
+
});
|
|
48
|
+
day.structure.push({
|
|
49
|
+
index: 2 + i * 2,
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
idSerie: 0,
|
|
52
|
+
indexSerie: i,
|
|
53
|
+
type: 2,
|
|
54
|
+
typeMetric1: 1,
|
|
55
|
+
valueMetric1: 300,
|
|
56
|
+
typeMetric2: 1,
|
|
57
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
day.structure.push({
|
|
61
|
+
index: 21,
|
|
62
|
+
type: 4,
|
|
63
|
+
typeMetric1: 2,
|
|
64
|
+
valueMetric1: 900,
|
|
65
|
+
typeMetric2: 1,
|
|
66
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
67
|
+
});
|
|
68
|
+
return day;
|
|
69
|
+
};
|
|
70
|
+
const getDay2 = (c) => {
|
|
71
|
+
const day = {
|
|
72
|
+
title: 'Entrenamiento de calidad',
|
|
73
|
+
description: 'Entrenamiento basado en la intercalación de periodos de rodaje a tiempo de carrera + periodos de rodajes suaves',
|
|
74
|
+
shortDescription: "Calentamiento 15' + 3x8' + 3x6' + enfriamiento 10'",
|
|
75
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
76
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 900, 75) + (0, common_2.calculateDistance)(c, 600, 70) + (0, common_2.calculateDistance)(c, 3 * 480, 80) + (0, common_2.calculateDistance)(c, 3 * 360, 85),
|
|
77
|
+
durationPlanned: 1500 + 3 * 480 + 3 * 360 + 6 * 120,
|
|
78
|
+
structure: [
|
|
79
|
+
// Calentamiento
|
|
80
|
+
{
|
|
81
|
+
index: 0,
|
|
82
|
+
type: 1,
|
|
83
|
+
typeMetric1: 2,
|
|
84
|
+
valueMetric1: 900,
|
|
85
|
+
typeMetric2: 1,
|
|
86
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
};
|
|
90
|
+
for (let i = 0; i < 3; i++) {
|
|
91
|
+
day.structure.push({
|
|
92
|
+
index: 1 + i * 2,
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
idSerie: 0,
|
|
95
|
+
indexSerie: i,
|
|
96
|
+
type: 2,
|
|
97
|
+
typeMetric1: 2,
|
|
98
|
+
valueMetric1: 480,
|
|
99
|
+
typeMetric2: 1,
|
|
100
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 80),
|
|
101
|
+
});
|
|
102
|
+
day.structure.push({
|
|
103
|
+
index: 2 + i * 2,
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
idSerie: 0,
|
|
106
|
+
indexSerie: i,
|
|
107
|
+
type: 3,
|
|
108
|
+
typeMetric1: 2,
|
|
109
|
+
valueMetric1: 120,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
for (let i = 0; i < 3; i++) {
|
|
113
|
+
day.structure.push({
|
|
114
|
+
index: 7 + i * 2,
|
|
115
|
+
// @ts-ignore
|
|
116
|
+
idSerie: 1,
|
|
117
|
+
indexSerie: i,
|
|
118
|
+
type: 2,
|
|
119
|
+
typeMetric1: 2,
|
|
120
|
+
valueMetric1: 360,
|
|
121
|
+
typeMetric2: 1,
|
|
122
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 85),
|
|
123
|
+
});
|
|
124
|
+
day.structure.push({
|
|
125
|
+
index: 8 + i * 2,
|
|
126
|
+
// @ts-ignore
|
|
127
|
+
idSerie: 1,
|
|
128
|
+
indexSerie: i,
|
|
129
|
+
type: 3,
|
|
130
|
+
typeMetric1: 2,
|
|
131
|
+
valueMetric1: 120,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
day.structure.push({
|
|
135
|
+
index: 13,
|
|
136
|
+
type: 4,
|
|
137
|
+
typeMetric1: 2,
|
|
138
|
+
valueMetric1: 600,
|
|
139
|
+
typeMetric2: 1,
|
|
140
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
141
|
+
});
|
|
142
|
+
return day;
|
|
143
|
+
};
|
|
144
|
+
const getDay3 = (c) => {
|
|
145
|
+
return {
|
|
146
|
+
title: 'Rodaje largo',
|
|
147
|
+
description: 'Corre a un ritmo que se adapte a tu nivel, buscando ser constante durante toda la distancia. La intensidad de este rodaje tiene que permitirte la posibilidad de hablar mientras corres, es decir, es un ritmo suave.',
|
|
148
|
+
shortDescription: '1h 30m ritmo suave',
|
|
149
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
150
|
+
durationPlanned: 5400,
|
|
151
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 5400, 75),
|
|
152
|
+
};
|
|
153
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias42kSub210 = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias42kSub210 = (c) => {
|
|
7
|
+
// Calentamiento 15' + 7xprogresivo de 6' + enfriamiento 10'
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 15' + 12x (2' rápido + 1'30" suave) + enfriamiento 15'
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Correr 1h50' al 75% VAM
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7dias42kSub210 = getPlanificacionPrueba7dias42kSub210;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
const day = {
|
|
18
|
+
title: 'Entrenamiento de intervalos',
|
|
19
|
+
description: "Entrenamiento medianamente duro, con una velocidad que podrías mantener al menos durante 20-30 minutos. El entrenamiento consiste en realizar 7 series de 6' a un ritmo 85% FC Máxima o Vo2 Max con 1'30 de pausa entre parciales.",
|
|
20
|
+
shortDescription: "Calentamiento 15' + 7x (6' a ritmo rápido) + enfriamiento 10'",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 1500, 70) + (0, common_2.calculateDistance)(c, 7 * 360, 85),
|
|
23
|
+
durationPlanned: 1500 + 7 * (360 + 90),
|
|
24
|
+
structure: [
|
|
25
|
+
// Calentamiento
|
|
26
|
+
{
|
|
27
|
+
index: 0,
|
|
28
|
+
type: 1,
|
|
29
|
+
typeMetric1: 2,
|
|
30
|
+
valueMetric1: 900,
|
|
31
|
+
typeMetric2: 1,
|
|
32
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
for (let i = 0; i < 7; i++) {
|
|
37
|
+
day.structure.push({
|
|
38
|
+
index: 1 + i * 2,
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
idSerie: 0,
|
|
41
|
+
indexSerie: i,
|
|
42
|
+
type: 2,
|
|
43
|
+
typeMetric1: 2,
|
|
44
|
+
valueMetric1: 360,
|
|
45
|
+
typeMetric2: 1,
|
|
46
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 85),
|
|
47
|
+
});
|
|
48
|
+
day.structure.push({
|
|
49
|
+
index: 2 + i * 2,
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
idSerie: 0,
|
|
52
|
+
indexSerie: i,
|
|
53
|
+
type: 3,
|
|
54
|
+
typeMetric1: 2,
|
|
55
|
+
valueMetric1: 90,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
day.structure.push({
|
|
59
|
+
index: 15,
|
|
60
|
+
type: 4,
|
|
61
|
+
typeMetric1: 2,
|
|
62
|
+
valueMetric1: 600,
|
|
63
|
+
typeMetric2: 1,
|
|
64
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
65
|
+
});
|
|
66
|
+
return day;
|
|
67
|
+
};
|
|
68
|
+
const getDay2 = (c) => {
|
|
69
|
+
const day = {
|
|
70
|
+
title: 'Entrenamiento Fartlek',
|
|
71
|
+
description: "Entrenamiento que consiste en realizar 12 series de 2' a un ritmo cercano o el mismo del Vo2 Máx + 1' 30 de carrera a ritmo de rodaje suave",
|
|
72
|
+
shortDescription: "Calentamiento 15' + 12x (2' rápido + 1'30\" suave) + enfriamiento 15'",
|
|
73
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
74
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 1800, 70) + (0, common_2.calculateDistance)(c, 12 * 120, 90) + (0, common_2.calculateDistance)(c, 12 * 90, 70),
|
|
75
|
+
durationPlanned: 1800 + 12 * (120 + 90),
|
|
76
|
+
structure: [
|
|
77
|
+
// Calentamiento
|
|
78
|
+
{
|
|
79
|
+
index: 0,
|
|
80
|
+
type: 1,
|
|
81
|
+
typeMetric1: 2,
|
|
82
|
+
valueMetric1: 900,
|
|
83
|
+
typeMetric2: 1,
|
|
84
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
};
|
|
88
|
+
for (let i = 0; i < 12; i++) {
|
|
89
|
+
day.structure.push({
|
|
90
|
+
index: 1 + i * 2,
|
|
91
|
+
// @ts-ignore
|
|
92
|
+
idSerie: 0,
|
|
93
|
+
indexSerie: i,
|
|
94
|
+
type: 2,
|
|
95
|
+
typeMetric1: 2,
|
|
96
|
+
valueMetric1: 120,
|
|
97
|
+
typeMetric2: 1,
|
|
98
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 90),
|
|
99
|
+
});
|
|
100
|
+
day.structure.push({
|
|
101
|
+
index: 2 + i * 2,
|
|
102
|
+
// @ts-ignore
|
|
103
|
+
idSerie: 0,
|
|
104
|
+
indexSerie: i,
|
|
105
|
+
type: 2,
|
|
106
|
+
typeMetric1: 2,
|
|
107
|
+
valueMetric1: 90,
|
|
108
|
+
typeMetric2: 1,
|
|
109
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
day.structure.push({
|
|
113
|
+
index: 25,
|
|
114
|
+
type: 4,
|
|
115
|
+
typeMetric1: 2,
|
|
116
|
+
valueMetric1: 900,
|
|
117
|
+
typeMetric2: 1,
|
|
118
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
119
|
+
});
|
|
120
|
+
return day;
|
|
121
|
+
};
|
|
122
|
+
const getDay3 = (c) => {
|
|
123
|
+
return {
|
|
124
|
+
title: 'Rodaje largo',
|
|
125
|
+
description: 'Corre a un ritmo que se adapte a tu nivel, buscando ser constante durante toda la distancia. La intensidad de este rodaje tiene que permitirte la posibilidad de hablar mientras corres, es decir, es un ritmo suave.',
|
|
126
|
+
shortDescription: '1h 50m ritmo suave',
|
|
127
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
128
|
+
durationPlanned: 6600,
|
|
129
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 6600, 75),
|
|
130
|
+
};
|
|
131
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.changeGoalDistanceByNivelActual5k = exports.getPlanificacionPrueba7dias5k = void 0;
|
|
4
|
+
const getPlanificacionPrueba7dias5kPrimer_1 = require("./getPlanificacionPrueba7dias5kPrimer");
|
|
5
|
+
const getPlanificacionPrueba7dias5kSub30_1 = require("./getPlanificacionPrueba7dias5kSub30");
|
|
6
|
+
const getPlanificacionPrueba7dias5k = (c) => {
|
|
7
|
+
if (c.type === 'PRIMER')
|
|
8
|
+
return (0, getPlanificacionPrueba7dias5kPrimer_1.getPlanificacionPrueba7dias5kPrimer)(c);
|
|
9
|
+
if (c.type === 'SUB30')
|
|
10
|
+
return (0, getPlanificacionPrueba7dias5kSub30_1.getPlanificacionPrueba7dias5kSub30)(c);
|
|
11
|
+
return [];
|
|
12
|
+
};
|
|
13
|
+
exports.getPlanificacionPrueba7dias5k = getPlanificacionPrueba7dias5k;
|
|
14
|
+
const changeGoalDistanceByNivelActual5k = (c) => {
|
|
15
|
+
c.goalDistance = 5000;
|
|
16
|
+
if (!c.vamDuration || Number(c.vamDuration) > 32 * 60)
|
|
17
|
+
c.type = 'PRIMER';
|
|
18
|
+
else
|
|
19
|
+
c.type = 'SUB30';
|
|
20
|
+
};
|
|
21
|
+
exports.changeGoalDistanceByNivelActual5k = changeGoalDistanceByNivelActual5k;
|