@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,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias5kPrimer = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias5kPrimer = (c) => {
|
|
7
|
+
// Correr 25' 75% VAM
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 10' + 2 * 3 * (200m rápido + 200m suave) + enfriamiento 10'
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Calentamiento 10' + 2km a 80% VAM + enfriamiento 10'
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7dias5kPrimer = getPlanificacionPrueba7dias5kPrimer;
|
|
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: "25' ritmo suave",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
durationPlanned: 1500,
|
|
23
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 1500, 75),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
const getDay2 = (c) => {
|
|
27
|
+
const day = {
|
|
28
|
+
title: 'Entrenamiento de intervalos',
|
|
29
|
+
description: 'Entrenamiento enfocado a mejorar la Velocidad y la resistencia. En este entrenamiento te enfrentarás a 6 series de 200 m a alta intensidad seguidos de 200 m de trote para recuperar. Entre medias hay un periodo de descanso de 2’, se debe realizar andando de forma suave',
|
|
30
|
+
shortDescription: "Calentamiento 10' + 2 vueltas de (200m rápidos y 200m suaves) + enfriamiento 10'",
|
|
31
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
32
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 2 * 10 * 60, 70) + 6 * (200 + 200),
|
|
33
|
+
durationPlanned: 2 * 600 + 120 + (0, common_2.calculateDuration)(c, 1200, 85) + (0, common_2.calculateDuration)(c, 1200, 70),
|
|
34
|
+
structure: [
|
|
35
|
+
{
|
|
36
|
+
index: 0,
|
|
37
|
+
type: 1,
|
|
38
|
+
typeMetric1: 2,
|
|
39
|
+
valueMetric1: 600,
|
|
40
|
+
typeMetric2: 1,
|
|
41
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
for (let i = 0; i < 3; i++) {
|
|
46
|
+
day.structure.push({
|
|
47
|
+
index: 1 + i * 2,
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
idSerie: 1,
|
|
50
|
+
indexSerie: i,
|
|
51
|
+
type: 2,
|
|
52
|
+
typeMetric1: 1,
|
|
53
|
+
valueMetric1: 200,
|
|
54
|
+
typeMetric2: 1,
|
|
55
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 85),
|
|
56
|
+
});
|
|
57
|
+
day.structure.push({
|
|
58
|
+
index: 2 + i * 2,
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
idSerie: 1,
|
|
61
|
+
indexSerie: i,
|
|
62
|
+
type: 2,
|
|
63
|
+
typeMetric1: 1,
|
|
64
|
+
valueMetric1: 200,
|
|
65
|
+
typeMetric2: 1,
|
|
66
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
day.structure.push({
|
|
71
|
+
index: 7,
|
|
72
|
+
type: 3,
|
|
73
|
+
typeMetric1: 2,
|
|
74
|
+
valueMetric1: 120,
|
|
75
|
+
});
|
|
76
|
+
for (let i = 0; i < 3; i++) {
|
|
77
|
+
day.structure.push({
|
|
78
|
+
index: 8 + i * 2,
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
idSerie: 3,
|
|
81
|
+
indexSerie: i,
|
|
82
|
+
type: 2,
|
|
83
|
+
typeMetric1: 1,
|
|
84
|
+
valueMetric1: 200,
|
|
85
|
+
typeMetric2: 1,
|
|
86
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 85),
|
|
87
|
+
});
|
|
88
|
+
day.structure.push({
|
|
89
|
+
index: 9 + i * 2,
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
idSerie: 3,
|
|
92
|
+
indexSerie: i,
|
|
93
|
+
type: 2,
|
|
94
|
+
typeMetric1: 1,
|
|
95
|
+
valueMetric1: 200,
|
|
96
|
+
typeMetric2: 1,
|
|
97
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
day.structure.push({
|
|
101
|
+
index: 14,
|
|
102
|
+
type: 4,
|
|
103
|
+
typeMetric1: 2,
|
|
104
|
+
valueMetric1: 600,
|
|
105
|
+
typeMetric2: 1,
|
|
106
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
107
|
+
});
|
|
108
|
+
return day;
|
|
109
|
+
};
|
|
110
|
+
const getDay3 = (c) => {
|
|
111
|
+
return {
|
|
112
|
+
title: 'Rodaje suave + rodaje tempo',
|
|
113
|
+
description: 'En este entrenamiento realizarás 10’ de calentamiento, seguidos de 2km de carrera a un ritmo más alto. Finaliza con 10’ de enfriamiento después de los 2km.',
|
|
114
|
+
shortDescription: "Calentamiento 10' + 2km a ritmo tempo + enfriamiento 10'",
|
|
115
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
116
|
+
distancePlanned: 2000 + (0, common_2.calculateDistance)(c, 2 * 10 * 60, 70),
|
|
117
|
+
durationPlanned: 1200 + (0, common_2.calculateDuration)(c, 2000, 80),
|
|
118
|
+
structure: [
|
|
119
|
+
{
|
|
120
|
+
index: 0,
|
|
121
|
+
type: 1,
|
|
122
|
+
typeMetric1: 2,
|
|
123
|
+
valueMetric1: 600,
|
|
124
|
+
typeMetric2: 1,
|
|
125
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
index: 1,
|
|
129
|
+
type: 2,
|
|
130
|
+
typeMetric1: 1,
|
|
131
|
+
valueMetric1: 2000,
|
|
132
|
+
typeMetric2: 1,
|
|
133
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 80),
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
index: 6,
|
|
137
|
+
type: 4,
|
|
138
|
+
typeMetric1: 2,
|
|
139
|
+
valueMetric1: 600,
|
|
140
|
+
typeMetric2: 1,
|
|
141
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
};
|
|
145
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7dias5kSub30 = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7dias5kSub30 = (c) => {
|
|
7
|
+
// Calentamiento 15' + 3xprogresivo 5' + enfriamiento 10'
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 10' + 3x800m + enfriamiento 10'
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Correr 35' al 70% VAM
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7dias5kSub30 = getPlanificacionPrueba7dias5kSub30;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
return {
|
|
18
|
+
title: 'Entrenamiento progresivo',
|
|
19
|
+
description: 'Comenzar con 10 minutos a un ritmo suave. A partir de ahí, incrementarás el ritmo cada 5 minutos durante 15 minutos. Finaliza con 10 minutos de enfriamiento. Después del calentamiento y antes del enfriamiento puedes descansar.',
|
|
20
|
+
shortDescription: "Calentamiento 10' + carrera ritmo progresivo 3x5' + enfriamiento 10'",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 2 * 10 * 60, 70) + (0, common_2.calculateDistance)(c, 300, 75) + (0, common_2.calculateDistance)(c, 300, 80) + (0, common_2.calculateDistance)(c, 300, 85),
|
|
23
|
+
durationPlanned: 1200 + 3 * 300,
|
|
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, 70),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
index: 1,
|
|
35
|
+
type: 2,
|
|
36
|
+
idSerie: 0,
|
|
37
|
+
indexSerie: 0,
|
|
38
|
+
typeMetric1: 2,
|
|
39
|
+
valueMetric1: 300,
|
|
40
|
+
typeMetric2: 1,
|
|
41
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
index: 2,
|
|
45
|
+
type: 2,
|
|
46
|
+
idSerie: 0,
|
|
47
|
+
indexSerie: 0,
|
|
48
|
+
typeMetric1: 2,
|
|
49
|
+
valueMetric1: 300,
|
|
50
|
+
typeMetric2: 1,
|
|
51
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 80),
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
index: 3,
|
|
55
|
+
type: 2,
|
|
56
|
+
idSerie: 0,
|
|
57
|
+
indexSerie: 0,
|
|
58
|
+
typeMetric1: 2,
|
|
59
|
+
valueMetric1: 300,
|
|
60
|
+
typeMetric2: 1,
|
|
61
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 85),
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
index: 4,
|
|
65
|
+
type: 4,
|
|
66
|
+
typeMetric1: 2,
|
|
67
|
+
valueMetric1: 600,
|
|
68
|
+
typeMetric2: 1,
|
|
69
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
const getDay2 = (c) => {
|
|
75
|
+
const day = {
|
|
76
|
+
title: 'Entrenamiento de series',
|
|
77
|
+
description: 'Aquí te enfrentarás a 3 repeticiones de 800 metros. Es un balance entre velocidad y resistencia, por lo que es fundamental mantener un ritmo que te desafíe pero que puedas sostener. Descansarás 2 minutos entre series.',
|
|
78
|
+
shortDescription: "Calentamiento 10' + 3x (800m ritmo rápido + 2' recuperación) + enfriamiento 10'",
|
|
79
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
80
|
+
distancePlanned: 2400 + (0, common_2.calculateDistance)(c, 600, 75) + (0, common_2.calculateDistance)(c, 600, 70),
|
|
81
|
+
durationPlanned: 1200 + (0, common_2.calculateDuration)(c, 2400, 90) + 3 * 120,
|
|
82
|
+
structure: [
|
|
83
|
+
// Calentamiento
|
|
84
|
+
{
|
|
85
|
+
index: 0,
|
|
86
|
+
type: 1,
|
|
87
|
+
typeMetric1: 2,
|
|
88
|
+
valueMetric1: 600,
|
|
89
|
+
typeMetric2: 1,
|
|
90
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 75),
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
};
|
|
94
|
+
for (let i = 0; i < 3; i++) {
|
|
95
|
+
day.structure.push({
|
|
96
|
+
index: 1 + i * 2,
|
|
97
|
+
// @ts-ignore
|
|
98
|
+
idSerie: 0,
|
|
99
|
+
indexSerie: i,
|
|
100
|
+
type: 2,
|
|
101
|
+
typeMetric1: 1,
|
|
102
|
+
valueMetric1: 800,
|
|
103
|
+
typeMetric2: 1,
|
|
104
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 90),
|
|
105
|
+
});
|
|
106
|
+
day.structure.push({
|
|
107
|
+
index: 2 + i * 2,
|
|
108
|
+
// @ts-ignore
|
|
109
|
+
idSerie: 0,
|
|
110
|
+
indexSerie: i,
|
|
111
|
+
type: 3,
|
|
112
|
+
typeMetric1: 2,
|
|
113
|
+
valueMetric1: 120,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
day.structure.push({
|
|
117
|
+
index: 7,
|
|
118
|
+
type: 4,
|
|
119
|
+
typeMetric1: 2,
|
|
120
|
+
valueMetric1: 600,
|
|
121
|
+
typeMetric2: 1,
|
|
122
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
123
|
+
});
|
|
124
|
+
return day;
|
|
125
|
+
};
|
|
126
|
+
const getDay3 = (c) => {
|
|
127
|
+
return {
|
|
128
|
+
title: 'Rodaje suave',
|
|
129
|
+
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.',
|
|
130
|
+
shortDescription: "35' ritmo suave",
|
|
131
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
132
|
+
durationPlanned: 2100,
|
|
133
|
+
distancePlanned: (0, common_2.calculateDistance)(c, 2100, 70),
|
|
134
|
+
};
|
|
135
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.prettyPace = exports.calculateDuration = exports.calculateDistance = exports.paceByVAM = void 0;
|
|
4
|
+
const paceByVAM = (c, vam) => {
|
|
5
|
+
let pace;
|
|
6
|
+
if (c.vamDistance && c.vamDuration) {
|
|
7
|
+
pace = getPaceByVAM(c);
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
pace = getPaceByRestOfData(c);
|
|
11
|
+
}
|
|
12
|
+
const vamPace = pace * 0.75;
|
|
13
|
+
const resultVamPace = vamPace / (vam / 100);
|
|
14
|
+
return Math.round(resultVamPace / 5) * 5;
|
|
15
|
+
};
|
|
16
|
+
exports.paceByVAM = paceByVAM;
|
|
17
|
+
const getPaceByVAM = (c) => {
|
|
18
|
+
// Tempo es ritmo Maraton y 80% de VAM (aplicar formula de Peter Riegel)
|
|
19
|
+
const marathonPace = (Number(c.vamDuration) * (42000 / Number(c.vamDistance)) * 1.07) / 42;
|
|
20
|
+
// Devolver el resultado en el 75% del VAM
|
|
21
|
+
return (marathonPace * 0.8) / 0.75;
|
|
22
|
+
};
|
|
23
|
+
const getPaceByRestOfData = (c) => {
|
|
24
|
+
if (c.paceSlow)
|
|
25
|
+
return c.paceSlow;
|
|
26
|
+
if (c.gender === 'F') {
|
|
27
|
+
if (18 <= c.edad && c.edad <= 35)
|
|
28
|
+
return 375; // 6'15"/km
|
|
29
|
+
if (36 <= c.edad && c.edad <= 45)
|
|
30
|
+
return 390; // 6'30"/km
|
|
31
|
+
if (46 <= c.edad && c.edad <= 60)
|
|
32
|
+
return 405; // 6'45"/km
|
|
33
|
+
if (c.edad > +60)
|
|
34
|
+
return 420; // 7'00"/km
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
if (18 <= c.edad && c.edad <= 35)
|
|
38
|
+
return 330; // 5'30"/km
|
|
39
|
+
if (36 <= c.edad && c.edad <= 45)
|
|
40
|
+
return 345; // 5'45"/km
|
|
41
|
+
if (46 <= c.edad && c.edad <= 60)
|
|
42
|
+
return 360; // 6'00"/km
|
|
43
|
+
if (c.edad > 60)
|
|
44
|
+
return 375; // 6'15"/km
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const calculateDistance = (c, duration, vam) => {
|
|
48
|
+
return Math.trunc((duration / paceByVAM(c, vam)) * 1000);
|
|
49
|
+
};
|
|
50
|
+
exports.calculateDistance = calculateDistance;
|
|
51
|
+
const calculateDuration = (c, distance, vam) => {
|
|
52
|
+
return Math.trunc((distance / 1000) * paceByVAM(c, vam));
|
|
53
|
+
};
|
|
54
|
+
exports.calculateDuration = calculateDuration;
|
|
55
|
+
const prettyPace = (stringPace) => {
|
|
56
|
+
const splitted = stringPace.split(':');
|
|
57
|
+
const m = splitted[1];
|
|
58
|
+
const s = splitted[2];
|
|
59
|
+
return `${Number(m)}'${s}"/km`;
|
|
60
|
+
};
|
|
61
|
+
exports.prettyPace = prettyPace;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.changeGoalDistanceByNivelActualEmpezarCorrer = exports.getPlanificacionPrueba7diasEmpezarCorrer = void 0;
|
|
4
|
+
const getPlanificacionPrueba7diasEmpezarCorrer1_1 = require("./getPlanificacionPrueba7diasEmpezarCorrer1");
|
|
5
|
+
const getPlanificacionPrueba7diasEmpezarCorrer2_1 = require("./getPlanificacionPrueba7diasEmpezarCorrer2");
|
|
6
|
+
const getPlanificacionPrueba7diasEmpezarCorrer3_1 = require("./getPlanificacionPrueba7diasEmpezarCorrer3");
|
|
7
|
+
const getPlanificacionPrueba7diasEmpezarCorrer = (c) => {
|
|
8
|
+
if (c.type === '1')
|
|
9
|
+
return (0, getPlanificacionPrueba7diasEmpezarCorrer1_1.getPlanificacionPrueba7diasEmpezarCorrer1)(c);
|
|
10
|
+
if (c.type === '2')
|
|
11
|
+
return (0, getPlanificacionPrueba7diasEmpezarCorrer2_1.getPlanificacionPrueba7diasEmpezarCorrer2)(c);
|
|
12
|
+
if (c.type === '3')
|
|
13
|
+
return (0, getPlanificacionPrueba7diasEmpezarCorrer3_1.getPlanificacionPrueba7diasEmpezarCorrer3)(c);
|
|
14
|
+
return [];
|
|
15
|
+
};
|
|
16
|
+
exports.getPlanificacionPrueba7diasEmpezarCorrer = getPlanificacionPrueba7diasEmpezarCorrer;
|
|
17
|
+
const changeGoalDistanceByNivelActualEmpezarCorrer = (c) => {
|
|
18
|
+
if (c.objetivoPrincipal === 'Correr después de lesión' || Number(c.goalDistance) === -2) {
|
|
19
|
+
c.type = '3';
|
|
20
|
+
}
|
|
21
|
+
else if (Number(c.goalDistance) === -1) {
|
|
22
|
+
c.type = '1';
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
c.type = '2';
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.changeGoalDistanceByNivelActualEmpezarCorrer = changeGoalDistanceByNivelActualEmpezarCorrer;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7diasEmpezarCorrer1 = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7diasEmpezarCorrer1 = (c) => {
|
|
7
|
+
// Calentamiento 15' + 3x1' correr
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 15' + 4x1' correr
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Calentamiento 15' + 5x1' correr
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7diasEmpezarCorrer1 = getPlanificacionPrueba7diasEmpezarCorrer1;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
const day = {
|
|
18
|
+
title: 'Método CaCos',
|
|
19
|
+
description: 'Método "CaCo" para familiarizar las estructuras corporales con la carrera. Alternar 2 minutos de caminata con 1 de carrera, enfocándote en resistencia y una adaptación gradual. Mantén un ritmo cómodo y con una buena postura.',
|
|
20
|
+
shortDescription: "Calentamiento 15' + 3x1' correr",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: 1000 + (0, common_2.calculateDistance)(c, 3 * 60, 70) + 3 * 200,
|
|
23
|
+
durationPlanned: 900 + 3 * 180,
|
|
24
|
+
structure: [
|
|
25
|
+
{
|
|
26
|
+
index: 0,
|
|
27
|
+
type: 5,
|
|
28
|
+
typeMetric1: 2,
|
|
29
|
+
valueMetric1: 900,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
};
|
|
33
|
+
for (let i = 0; i < 3; i++) {
|
|
34
|
+
day.structure.push({
|
|
35
|
+
index: 1 + i * 2,
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
idSerie: 1,
|
|
38
|
+
indexSerie: i,
|
|
39
|
+
type: 2,
|
|
40
|
+
typeMetric1: 2,
|
|
41
|
+
valueMetric1: 60,
|
|
42
|
+
typeMetric2: 1,
|
|
43
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
44
|
+
});
|
|
45
|
+
day.structure.push({
|
|
46
|
+
index: 2 + i * 2,
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
idSerie: 1,
|
|
49
|
+
indexSerie: i,
|
|
50
|
+
type: 5,
|
|
51
|
+
typeMetric1: 2,
|
|
52
|
+
valueMetric1: 120,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return day;
|
|
56
|
+
};
|
|
57
|
+
const getDay2 = (c) => {
|
|
58
|
+
const day = {
|
|
59
|
+
title: 'Método CaCos',
|
|
60
|
+
description: 'Método "CaCo" para familiarizar las estructuras corporales con la carrera. Alternar 2 minutos de caminata con 1 de carrera, enfocándote en resistencia y una adaptación gradual. Mantén un ritmo cómodo y con una buena postura.',
|
|
61
|
+
shortDescription: "Calentamiento 15' + 4x1' correr",
|
|
62
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
63
|
+
distancePlanned: 1000 + (0, common_2.calculateDistance)(c, 4 * 60, 70) + 4 * 200,
|
|
64
|
+
durationPlanned: 900 + 4 * 180,
|
|
65
|
+
structure: [
|
|
66
|
+
{
|
|
67
|
+
index: 0,
|
|
68
|
+
type: 5,
|
|
69
|
+
typeMetric1: 2,
|
|
70
|
+
valueMetric1: 900,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
};
|
|
74
|
+
for (let i = 0; i < 4; i++) {
|
|
75
|
+
day.structure.push({
|
|
76
|
+
index: 1 + i * 2,
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
idSerie: 1,
|
|
79
|
+
indexSerie: i,
|
|
80
|
+
type: 2,
|
|
81
|
+
typeMetric1: 2,
|
|
82
|
+
valueMetric1: 60,
|
|
83
|
+
typeMetric2: 1,
|
|
84
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
85
|
+
});
|
|
86
|
+
day.structure.push({
|
|
87
|
+
index: 2 + i * 2,
|
|
88
|
+
// @ts-ignore
|
|
89
|
+
idSerie: 1,
|
|
90
|
+
indexSerie: i,
|
|
91
|
+
type: 5,
|
|
92
|
+
typeMetric1: 2,
|
|
93
|
+
valueMetric1: 120,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return day;
|
|
97
|
+
};
|
|
98
|
+
const getDay3 = (c) => {
|
|
99
|
+
const day = {
|
|
100
|
+
title: 'Método CaCos',
|
|
101
|
+
description: 'Método "CaCo" para familiarizar las estructuras corporales con la carrera. Alternar 2 minutos de caminata con 1 de carrera, enfocándote en resistencia y una adaptación gradual. Mantén un ritmo cómodo y con una buena postura.',
|
|
102
|
+
shortDescription: "Calentamiento 15' + 5x1' correr",
|
|
103
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
104
|
+
distancePlanned: 1000 + (0, common_2.calculateDistance)(c, 5 * 60, 70) + 5 * 200,
|
|
105
|
+
durationPlanned: 900 + 5 * 180,
|
|
106
|
+
structure: [
|
|
107
|
+
{
|
|
108
|
+
index: 0,
|
|
109
|
+
type: 5,
|
|
110
|
+
typeMetric1: 2,
|
|
111
|
+
valueMetric1: 900,
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
};
|
|
115
|
+
for (let i = 0; i < 5; i++) {
|
|
116
|
+
day.structure.push({
|
|
117
|
+
index: 1 + i * 2,
|
|
118
|
+
// @ts-ignore
|
|
119
|
+
idSerie: 1,
|
|
120
|
+
indexSerie: i,
|
|
121
|
+
type: 2,
|
|
122
|
+
typeMetric1: 2,
|
|
123
|
+
valueMetric1: 60,
|
|
124
|
+
typeMetric2: 1,
|
|
125
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
126
|
+
});
|
|
127
|
+
day.structure.push({
|
|
128
|
+
index: 2 + i * 2,
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
idSerie: 1,
|
|
131
|
+
indexSerie: i,
|
|
132
|
+
type: 5,
|
|
133
|
+
typeMetric1: 2,
|
|
134
|
+
valueMetric1: 120,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return day;
|
|
138
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanificacionPrueba7diasEmpezarCorrer2 = void 0;
|
|
4
|
+
const common_1 = require("@runnerpro/common");
|
|
5
|
+
const common_2 = require("../common");
|
|
6
|
+
const getPlanificacionPrueba7diasEmpezarCorrer2 = (c) => {
|
|
7
|
+
// Calentamiento 10' + 3x3' correr
|
|
8
|
+
const day1 = getDay1(c);
|
|
9
|
+
// Calentamiento 10' + 4x3' correr
|
|
10
|
+
const day2 = getDay2(c);
|
|
11
|
+
// Calentamiento 10' + 3x5' correr
|
|
12
|
+
const day3 = getDay3(c);
|
|
13
|
+
return [day1, day2, day3];
|
|
14
|
+
};
|
|
15
|
+
exports.getPlanificacionPrueba7diasEmpezarCorrer2 = getPlanificacionPrueba7diasEmpezarCorrer2;
|
|
16
|
+
const getDay1 = (c) => {
|
|
17
|
+
const day = {
|
|
18
|
+
title: 'Método CaCos',
|
|
19
|
+
description: 'Método "CaCo" para familiarizar las estructuras corporales con la carrera. Alternar 2 minutos de caminata con 3 de carrera, enfocándote en resistencia y una adaptación gradual. Mantén un ritmo cómodo y con una buena postura.',
|
|
20
|
+
shortDescription: "Calentamiento 10' + 3x3' correr",
|
|
21
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
22
|
+
distancePlanned: 800 + (0, common_2.calculateDistance)(c, 3 * 180, 70) + 3 * 200,
|
|
23
|
+
durationPlanned: 600 + 3 * 300,
|
|
24
|
+
structure: [
|
|
25
|
+
{
|
|
26
|
+
index: 0,
|
|
27
|
+
type: 5,
|
|
28
|
+
typeMetric1: 2,
|
|
29
|
+
valueMetric1: 600,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
};
|
|
33
|
+
for (let i = 0; i < 3; i++) {
|
|
34
|
+
day.structure.push({
|
|
35
|
+
index: 1 + i * 2,
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
idSerie: 1,
|
|
38
|
+
indexSerie: i,
|
|
39
|
+
type: 2,
|
|
40
|
+
typeMetric1: 2,
|
|
41
|
+
valueMetric1: 180,
|
|
42
|
+
typeMetric2: 1,
|
|
43
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
44
|
+
});
|
|
45
|
+
day.structure.push({
|
|
46
|
+
index: 2 + i * 2,
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
idSerie: 1,
|
|
49
|
+
indexSerie: i,
|
|
50
|
+
type: 5,
|
|
51
|
+
typeMetric1: 2,
|
|
52
|
+
valueMetric1: 120,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return day;
|
|
56
|
+
};
|
|
57
|
+
const getDay2 = (c) => {
|
|
58
|
+
const day = {
|
|
59
|
+
title: 'Método CaCos',
|
|
60
|
+
description: 'Método "CaCo" para familiarizar las estructuras corporales con la carrera. Alternar 2 minutos de caminata con 3 de carrera, enfocándote en resistencia y una adaptación gradual. Mantén un ritmo cómodo y con una buena postura.',
|
|
61
|
+
shortDescription: "Calentamiento 10' + 4x3' correr",
|
|
62
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
63
|
+
distancePlanned: 800 + (0, common_2.calculateDistance)(c, 4 * 180, 70) + 4 * 200,
|
|
64
|
+
durationPlanned: 600 + 4 * 300,
|
|
65
|
+
structure: [
|
|
66
|
+
{
|
|
67
|
+
index: 0,
|
|
68
|
+
type: 5,
|
|
69
|
+
typeMetric1: 2,
|
|
70
|
+
valueMetric1: 600,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
};
|
|
74
|
+
for (let i = 0; i < 4; i++) {
|
|
75
|
+
day.structure.push({
|
|
76
|
+
index: 1 + i * 2,
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
idSerie: 1,
|
|
79
|
+
indexSerie: i,
|
|
80
|
+
type: 2,
|
|
81
|
+
typeMetric1: 2,
|
|
82
|
+
valueMetric1: 180,
|
|
83
|
+
typeMetric2: 1,
|
|
84
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
85
|
+
});
|
|
86
|
+
day.structure.push({
|
|
87
|
+
index: 2 + i * 2,
|
|
88
|
+
// @ts-ignore
|
|
89
|
+
idSerie: 1,
|
|
90
|
+
indexSerie: i,
|
|
91
|
+
type: 5,
|
|
92
|
+
typeMetric1: 2,
|
|
93
|
+
valueMetric1: 120,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return day;
|
|
97
|
+
};
|
|
98
|
+
const getDay3 = (c) => {
|
|
99
|
+
const day = {
|
|
100
|
+
title: 'Método CaCos',
|
|
101
|
+
description: 'Método "CaCo" para familiarizar las estructuras corporales con la carrera. Alternar 2 minutos de caminata con 5 de carrera, enfocándote en resistencia y una adaptación gradual. Mantén un ritmo cómodo y con una buena postura.',
|
|
102
|
+
shortDescription: "Calentamiento 10' + 3x5' correr",
|
|
103
|
+
type: common_1.WORKOUT_TYPE.CORRER,
|
|
104
|
+
distancePlanned: 800 + (0, common_2.calculateDistance)(c, 3 * 300, 70) + 3 * 200,
|
|
105
|
+
durationPlanned: 600 + 3 * 420,
|
|
106
|
+
structure: [
|
|
107
|
+
{
|
|
108
|
+
index: 0,
|
|
109
|
+
type: 5,
|
|
110
|
+
typeMetric1: 2,
|
|
111
|
+
valueMetric1: 600,
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
};
|
|
115
|
+
for (let i = 0; i < 3; i++) {
|
|
116
|
+
day.structure.push({
|
|
117
|
+
index: 1 + i * 2,
|
|
118
|
+
// @ts-ignore
|
|
119
|
+
idSerie: 1,
|
|
120
|
+
indexSerie: i,
|
|
121
|
+
type: 2,
|
|
122
|
+
typeMetric1: 2,
|
|
123
|
+
valueMetric1: 300,
|
|
124
|
+
typeMetric2: 1,
|
|
125
|
+
valueMetric2: (0, common_2.paceByVAM)(c, 70),
|
|
126
|
+
});
|
|
127
|
+
day.structure.push({
|
|
128
|
+
index: 2 + i * 2,
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
idSerie: 1,
|
|
131
|
+
indexSerie: i,
|
|
132
|
+
type: 5,
|
|
133
|
+
typeMetric1: 2,
|
|
134
|
+
valueMetric1: 120,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return day;
|
|
138
|
+
};
|