@runnerpro/backend 1.7.1 → 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/googleSheet/index.js +0 -1
- package/lib/cjs/index.js +3 -1
- package/lib/cjs/types/googleSheet/index.d.ts.map +1 -1
- package/lib/cjs/types/index.d.ts +2 -1
- package/lib/cjs/types/index.d.ts.map +1 -1
- 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 +3 -0
- package/lib/cjs/types/workout/planificacionPrueba7dias/index.d.ts.map +1 -0
- 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 +209 -0
- package/package.json +1 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias10kPrimer = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias10kPrimer = (c) => {
|
|
7
|
+
// Correr 40' al 70% VAM
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 10' + 5' (zona 2) + 5' (zona 3) + pausa + 5 min (zona 3) + 4 min (zona 4) + enfriamiento 10'
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Calentamiento 10' + 4km a ritmo 80% VAM + enfriamiento 10'
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7dias10kPrimer = getPlanificacionPrueba7dias10kPrimer;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
return {
|
|
18
|
+
title: 'Rodaje suave',
|
|
19
|
+
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.',
|
|
20
|
+
shortDescription: "40' ritmo suave",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
durationPlanned: 2400,
|
|
23
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 2400, 75),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
const getDay2 = (c) => {
|
|
27
|
+
return {
|
|
28
|
+
title: 'Entrenamiento progresivo',
|
|
29
|
+
description: "Comenzar con 10 minutos a un ritmo suave. A partir de ahí, incrementarás el ritmo cada 5 minutos durante 20 minutos, con una pausa de 2' entre medio de los progresivos. Finaliza con 10 minutos de enfriamiento.",
|
|
30
|
+
shortDescription: "Calentamiento 10' + carrera ritmo progresivo 4x5' + enfriamiento 10'",
|
|
31
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
32
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 2 * 10 * 60, 70) +
|
|
33
|
+
(0, common_2.calculateDistance)(c, 300, 75) +
|
|
34
|
+
(0, common_2.calculateDistance)(c, 300, 80) +
|
|
35
|
+
(0, common_2.calculateDistance)(c, 300, 83) +
|
|
36
|
+
(0, common_2.calculateDistance)(c, 300, 87),
|
|
37
|
+
durationPlanned: 2520,
|
|
38
|
+
structure: [
|
|
39
|
+
{
|
|
40
|
+
index: 0,
|
|
41
|
+
type: 1,
|
|
42
|
+
typeMetric1: 2,
|
|
43
|
+
valueMetric1: 600,
|
|
44
|
+
typeMetric2: 1,
|
|
45
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
index: 1,
|
|
49
|
+
type: 2,
|
|
50
|
+
idSerie: 0,
|
|
51
|
+
indexSerie: 0,
|
|
52
|
+
typeMetric1: 2,
|
|
53
|
+
valueMetric1: 300,
|
|
54
|
+
typeMetric2: 1,
|
|
55
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
index: 2,
|
|
59
|
+
type: 2,
|
|
60
|
+
idSerie: 0,
|
|
61
|
+
indexSerie: 0,
|
|
62
|
+
typeMetric1: 2,
|
|
63
|
+
valueMetric1: 300,
|
|
64
|
+
typeMetric2: 1,
|
|
65
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 80),
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
index: 3,
|
|
69
|
+
type: 3,
|
|
70
|
+
idSerie: 0,
|
|
71
|
+
indexSerie: 0,
|
|
72
|
+
typeMetric1: 2,
|
|
73
|
+
valueMetric1: 120,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
index: 4,
|
|
77
|
+
type: 2,
|
|
78
|
+
idSerie: 0,
|
|
79
|
+
indexSerie: 0,
|
|
80
|
+
typeMetric1: 2,
|
|
81
|
+
valueMetric1: 300,
|
|
82
|
+
typeMetric2: 1,
|
|
83
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 83),
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
index: 5,
|
|
87
|
+
type: 2,
|
|
88
|
+
idSerie: 0,
|
|
89
|
+
indexSerie: 0,
|
|
90
|
+
typeMetric1: 2,
|
|
91
|
+
valueMetric1: 300,
|
|
92
|
+
typeMetric2: 1,
|
|
93
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 87),
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
index: 6,
|
|
97
|
+
type: 4,
|
|
98
|
+
typeMetric1: 2,
|
|
99
|
+
valueMetric1: 600,
|
|
100
|
+
typeMetric2: 1,
|
|
101
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
const getDay3 = (c) => {
|
|
107
|
+
return {
|
|
108
|
+
title: 'Rodaje suave + rodaje tempo',
|
|
109
|
+
description: 'En este entrenamiento realizarás 10’ de calentamiento, seguidos de 4km de carrera a un ritmo más alto. Finaliza con 10’ de enfriamiento después de los 4km.',
|
|
110
|
+
shortDescription: "Calentamiento 10' + 4km a ritmo tempo + enfriamiento 10'",
|
|
111
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
112
|
+
distancePlanned: 4000 + (0, common_2.calculateDistance)(c, 2 * 10 * 60, 70),
|
|
113
|
+
durationPlanned: 1200 + (0, common_2.calculateDuration)(c, 4000, 80),
|
|
114
|
+
structure: [
|
|
115
|
+
{
|
|
116
|
+
index: 0,
|
|
117
|
+
type: 1,
|
|
118
|
+
typeMetric1: 2,
|
|
119
|
+
valueMetric1: 600,
|
|
120
|
+
typeMetric2: 1,
|
|
121
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
index: 1,
|
|
125
|
+
type: 2,
|
|
126
|
+
typeMetric1: 1,
|
|
127
|
+
valueMetric1: 4000,
|
|
128
|
+
typeMetric2: 1,
|
|
129
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 80),
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
index: 6,
|
|
133
|
+
type: 4,
|
|
134
|
+
typeMetric1: 2,
|
|
135
|
+
valueMetric1: 600,
|
|
136
|
+
typeMetric2: 1,
|
|
137
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
};
|
|
141
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias10kSub50 = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias10kSub50 = (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.getPlanificacionPrueba7dias10kSub50 = getPlanificacionPrueba7dias10kSub50;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
const day = {
|
|
18
|
+
title: 'Series Largas',
|
|
19
|
+
description: 'En este entrenamiento, te enfrentarás a 4 repeticiones de 2000 metros, un reto para tu resistencia. Con 2 minutos de recuperación entre series, es vital que manejes bien tus energías.',
|
|
20
|
+
shortDescription: "Calentamiento 10' + 4x (2km ritmo tempo + 2' recuperación) + enfriamiento 10'",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: 8000 + (0, common_2.calculateDistance)(c, 600, 75) + (0, common_2.calculateDistance)(c, 600, 70),
|
|
23
|
+
durationPlanned: 1800 + (0, common_2.calculateDuration)(c, 8000, 83) + 4 * 120,
|
|
24
|
+
structure: [
|
|
25
|
+
// Calentamiento
|
|
26
|
+
{
|
|
27
|
+
index: 0,
|
|
28
|
+
type: 1,
|
|
29
|
+
typeMetric1: 2,
|
|
30
|
+
valueMetric1: 600,
|
|
31
|
+
typeMetric2: 1,
|
|
32
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
for (let i = 0; i < 4; 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: 2000,
|
|
45
|
+
typeMetric2: 1,
|
|
46
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 83),
|
|
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: 120,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
day.structure.push({
|
|
59
|
+
index: 9,
|
|
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
|
+
return {
|
|
70
|
+
title: 'Rodaje suave',
|
|
71
|
+
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.',
|
|
72
|
+
shortDescription: '1h 10m ritmo suave',
|
|
73
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
74
|
+
durationPlanned: 4200,
|
|
75
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 4200, 75),
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
const getDay3 = (c) => {
|
|
79
|
+
const day = {
|
|
80
|
+
title: 'Entrenamiento de intervalos',
|
|
81
|
+
description: 'En este entrenamiento te enfrentarás a 8 series de 200 m a alta intensidad seguidos de 200 m de trote para recuperar.',
|
|
82
|
+
shortDescription: "Calentamiento 15' + 8x (200m rápidos + 200m suaves) + enfriamiento 15'",
|
|
83
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
84
|
+
distancePlanned: 8 * 400 + (0, common_2.calculateDistance)(c, 900, 75) + (0, common_2.calculateDistance)(c, 900, 70),
|
|
85
|
+
durationPlanned: 1800 + (0, common_2.calculateDuration)(c, 8 * 200, 87) + (0, common_2.calculateDuration)(c, 8 * 200, 70),
|
|
86
|
+
structure: [
|
|
87
|
+
// Calentamiento
|
|
88
|
+
{
|
|
89
|
+
index: 0,
|
|
90
|
+
type: 1,
|
|
91
|
+
typeMetric1: 2,
|
|
92
|
+
valueMetric1: 900,
|
|
93
|
+
typeMetric2: 1,
|
|
94
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
};
|
|
98
|
+
for (let i = 0; i < 8; i++) {
|
|
99
|
+
day.structure.push({
|
|
100
|
+
index: 1 + i * 2,
|
|
101
|
+
// @ts-ignore
|
|
102
|
+
idSerie: 0,
|
|
103
|
+
indexSerie: i,
|
|
104
|
+
type: 2,
|
|
105
|
+
typeMetric1: 1,
|
|
106
|
+
valueMetric1: 200,
|
|
107
|
+
typeMetric2: 1,
|
|
108
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 87),
|
|
109
|
+
});
|
|
110
|
+
day.structure.push({
|
|
111
|
+
index: 2 + i * 2,
|
|
112
|
+
// @ts-ignore
|
|
113
|
+
idSerie: 0,
|
|
114
|
+
indexSerie: i,
|
|
115
|
+
type: 2,
|
|
116
|
+
typeMetric1: 1,
|
|
117
|
+
valueMetric1: 200,
|
|
118
|
+
typeMetric2: 1,
|
|
119
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
day.structure.push({
|
|
123
|
+
index: 17,
|
|
124
|
+
type: 4,
|
|
125
|
+
typeMetric1: 2,
|
|
126
|
+
valueMetric1: 900,
|
|
127
|
+
typeMetric2: 1,
|
|
128
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
129
|
+
});
|
|
130
|
+
return day;
|
|
131
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.changeGoalDistanceByNivelActual21k = exports.getPlanificacionPrueba7dias21k = void 0;
|
|
4
|
+
const getPlanificacionPrueba7dias21kPrimer_1 = require("./getPlanificacionPrueba7dias21kPrimer");
|
|
5
|
+
const getPlanificacionPrueba7dias21kMas105_1 = require("./getPlanificacionPrueba7dias21kMas105");
|
|
6
|
+
const getPlanificacionPrueba7dias21kSub105_1 = require("./getPlanificacionPrueba7dias21kSub105");
|
|
7
|
+
const getPlanificacionPrueba7dias21k = (c) => {
|
|
8
|
+
if (c.type === 'PRIMER')
|
|
9
|
+
return (0, getPlanificacionPrueba7dias21kPrimer_1.getPlanificacionPrueba7dias21kPrimer)(c);
|
|
10
|
+
if (c.type === 'MAS105')
|
|
11
|
+
return (0, getPlanificacionPrueba7dias21kMas105_1.getPlanificacionPrueba7dias21kMas105)(c);
|
|
12
|
+
if (c.type === 'SUB105')
|
|
13
|
+
return (0, getPlanificacionPrueba7dias21kSub105_1.getPlanificacionPrueba7dias21kSub105)(c);
|
|
14
|
+
return [];
|
|
15
|
+
};
|
|
16
|
+
exports.getPlanificacionPrueba7dias21k = getPlanificacionPrueba7dias21k;
|
|
17
|
+
const changeGoalDistanceByNivelActual21k = (c) => {
|
|
18
|
+
c.goalDistance = 21000;
|
|
19
|
+
// Si es su primer maratón o el anterior lo hizo en más de 2h10min
|
|
20
|
+
if (!c.vamDuration || Number(c.vamDuration) > 130 * 60)
|
|
21
|
+
c.type = 'PRIMER';
|
|
22
|
+
// Si el anterior lo hizo en menos de 2h10min y más de 1h50min
|
|
23
|
+
else if (Number(c.vamDuration) > 110 * 60 && Number(c.vamDuration) <= 130 * 60)
|
|
24
|
+
c.type = 'MAS105';
|
|
25
|
+
// Si el anterior lo hizo en menos de 1h50min
|
|
26
|
+
else
|
|
27
|
+
c.type = 'SUB105';
|
|
28
|
+
};
|
|
29
|
+
exports.changeGoalDistanceByNivelActual21k = changeGoalDistanceByNivelActual21k;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias21kMas105 = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias21kMas105 = (c) => {
|
|
7
|
+
// Calentamiento 10' + 12' + 3km + 12' + enfriamiento 10'
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 15' + 8x (200m rápido + 200m suave) + enfriamiento 10'
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Correr 1h15' al 75% VAM
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7dias21kMas105 = getPlanificacionPrueba7dias21kMas105;
|
|
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' + 12' + 3km + 12' + enfriamiento 10'",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 1500, 70) + 3000 + (0, common_2.calculateDistance)(c, 2 * 12 * 60, 85),
|
|
23
|
+
durationPlanned: 2880 + (0, common_2.calculateDuration)(c, 3000, 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: 720,
|
|
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: 3000,
|
|
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: 720,
|
|
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' + 8x (200m ritmo rápido + 200m suaves) + enfriamiento 10'",
|
|
85
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
86
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 900, 75) + 8 * 400 + (0, common_2.calculateDistance)(c, 600, 70),
|
|
87
|
+
durationPlanned: 1500 + (0, common_2.calculateDuration)(c, 8 * 200, 95) + (0, common_2.calculateDuration)(c, 8 * 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 < 8; 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: 17,
|
|
126
|
+
type: 4,
|
|
127
|
+
typeMetric1: 2,
|
|
128
|
+
valueMetric1: 600,
|
|
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 15m ritmo suave',
|
|
139
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
140
|
+
durationPlanned: 4500,
|
|
141
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 4500, 75),
|
|
142
|
+
};
|
|
143
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias21kPrimer = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias21kPrimer = (c) => {
|
|
7
|
+
// Calentar 15' + 20' + 3km + 20' + enfriar 10'
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentar 15' + 5x (6' ritmo 85% VAM + 1' recuperación) + enfriar 10'
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Correr 1h al 75% VAM
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7dias21kPrimer = getPlanificacionPrueba7dias21kPrimer;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
return {
|
|
18
|
+
title: 'Rodaje suave + rodaje tempo',
|
|
19
|
+
description: 'Intercala una carrera suave, con rodaje tempo, y finaliza con rodaje suave. Después del calentamiento y antes del enfriamiento puedes descansar',
|
|
20
|
+
shortDescription: "Calentamiento 15' + 20' + 3km + 20' + enfriamiento 10'",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 1500, 70) + 3000 + (0, common_2.calculateDistance)(c, 2 * 15 * 60, 75),
|
|
23
|
+
durationPlanned: 2700 + (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: 2,
|
|
37
|
+
valueMetric1: 900,
|
|
38
|
+
typeMetric2: 1,
|
|
39
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
index: 2,
|
|
43
|
+
type: 2,
|
|
44
|
+
typeMetric1: 1,
|
|
45
|
+
valueMetric1: 3000,
|
|
46
|
+
typeMetric2: 1,
|
|
47
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 80),
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
index: 3,
|
|
51
|
+
type: 2,
|
|
52
|
+
typeMetric1: 2,
|
|
53
|
+
valueMetric1: 900,
|
|
54
|
+
typeMetric2: 1,
|
|
55
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
index: 4,
|
|
59
|
+
type: 4,
|
|
60
|
+
typeMetric1: 2,
|
|
61
|
+
valueMetric1: 600,
|
|
62
|
+
typeMetric2: 1,
|
|
63
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
const getDay2 = (c) => {
|
|
69
|
+
const day = {
|
|
70
|
+
title: 'Entrenamiento de intervalos',
|
|
71
|
+
description: "Entrenamiento medianamente duro, con una velocidad que podrías mantener al menos durante 20-30 minutos. El entrenamiento consiste en realizar 5 series de 6' con 1' de pausa entre series.",
|
|
72
|
+
shortDescription: "Calentamiento 15' + 5x (6' ritmo rápido + 1'30\" recuperación) + enfriamiento 10'",
|
|
73
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
74
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 900, 75) + (0, common_2.calculateDistance)(c, 5 * 360, 83) + (0, common_2.calculateDistance)(c, 600, 70),
|
|
75
|
+
durationPlanned: 1500 + 6 * 360 + 6 * 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, 75),
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
};
|
|
88
|
+
for (let i = 0; i < 5; 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: 360,
|
|
97
|
+
typeMetric2: 1,
|
|
98
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 83),
|
|
99
|
+
});
|
|
100
|
+
day.structure.push({
|
|
101
|
+
index: 2 + i * 2,
|
|
102
|
+
// @ts-ignore
|
|
103
|
+
idSerie: 0,
|
|
104
|
+
indexSerie: i,
|
|
105
|
+
type: 3,
|
|
106
|
+
typeMetric1: 2,
|
|
107
|
+
valueMetric1: 90,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
day.structure.push({
|
|
111
|
+
index: 11,
|
|
112
|
+
type: 4,
|
|
113
|
+
typeMetric1: 2,
|
|
114
|
+
valueMetric1: 600,
|
|
115
|
+
typeMetric2: 1,
|
|
116
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
117
|
+
});
|
|
118
|
+
return day;
|
|
119
|
+
};
|
|
120
|
+
const getDay3 = (c) => {
|
|
121
|
+
return {
|
|
122
|
+
title: 'Rodaje largo',
|
|
123
|
+
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.',
|
|
124
|
+
shortDescription: '1h ritmo suave',
|
|
125
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
126
|
+
durationPlanned: 3600,
|
|
127
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 3600, 75),
|
|
128
|
+
};
|
|
129
|
+
};
|