@runnerpro/backend 1.16.11 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/db/index.js +81 -2
  2. package/lib/cjs/types/db/index.d.ts.map +1 -1
  3. package/lib/cjs/types/workout/estructuraWorkout.d.ts +1 -4
  4. package/lib/cjs/types/workout/estructuraWorkout.d.ts.map +1 -1
  5. package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10k.d.ts +57 -2
  6. package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10k.d.ts.map +1 -1
  7. package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kMas50.d.ts +57 -2
  8. package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kMas50.d.ts.map +1 -1
  9. package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kPrimer.d.ts +57 -2
  10. package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kPrimer.d.ts.map +1 -1
  11. package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kSub50.d.ts +19 -2
  12. package/lib/cjs/types/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kSub50.d.ts.map +1 -1
  13. package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21k.d.ts +27 -2
  14. package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21k.d.ts.map +1 -1
  15. package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kMas105.d.ts +27 -2
  16. package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kMas105.d.ts.map +1 -1
  17. package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kPrimer.d.ts +19 -2
  18. package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kPrimer.d.ts.map +1 -1
  19. package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kSub105.d.ts +27 -2
  20. package/lib/cjs/types/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kSub105.d.ts.map +1 -1
  21. package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kMas210.d.ts +51 -2
  22. package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kMas210.d.ts.map +1 -1
  23. package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kPrimer.d.ts.map +1 -1
  24. package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kSub210.d.ts +19 -2
  25. package/lib/cjs/types/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kSub210.d.ts.map +1 -1
  26. package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5k.d.ts +19 -2
  27. package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5k.d.ts.map +1 -1
  28. package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kPrimer.d.ts +19 -2
  29. package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kPrimer.d.ts.map +1 -1
  30. package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kSub30.d.ts +19 -2
  31. package/lib/cjs/types/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kSub30.d.ts.map +1 -1
  32. package/lib/cjs/types/workout/planificacionPrueba7dias/common.d.ts +4 -4
  33. package/lib/cjs/types/workout/planificacionPrueba7dias/common.d.ts.map +1 -1
  34. package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer1.d.ts.map +1 -1
  35. package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer2.d.ts.map +1 -1
  36. package/lib/cjs/types/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer3.d.ts.map +1 -1
  37. package/lib/cjs/workout/estructuraWorkout.js +1 -130
  38. package/lib/cjs/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kMas50.js +22 -13
  39. package/lib/cjs/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kPrimer.js +37 -31
  40. package/lib/cjs/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kSub50.js +22 -14
  41. package/lib/cjs/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kMas105.js +24 -14
  42. package/lib/cjs/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kPrimer.js +21 -12
  43. package/lib/cjs/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kSub105.js +26 -16
  44. package/lib/cjs/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kMas210.js +24 -15
  45. package/lib/cjs/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kPrimer.js +20 -12
  46. package/lib/cjs/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kSub210.js +18 -10
  47. package/lib/cjs/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kPrimer.js +24 -14
  48. package/lib/cjs/workout/planificacionPrueba7dias/5k/getPlanificacionPrueba7dias5kSub30.js +22 -13
  49. package/lib/cjs/workout/planificacionPrueba7dias/common.js +20 -47
  50. package/lib/cjs/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer1.js +9 -6
  51. package/lib/cjs/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer2.js +9 -6
  52. package/lib/cjs/workout/planificacionPrueba7dias/empezarCorrer/getPlanificacionPrueba7diasEmpezarCorrer3.js +9 -6
  53. package/package.json +1 -1
@@ -54,8 +54,10 @@ const query = (queryText, values = []) => __awaiter(void 0, void 0, void 0, func
54
54
  });
55
55
  }
56
56
  catch (error) {
57
+ // Logging mejorado con información detallada del error
58
+ const enhancedError = enhancePostgreSQLError(error, queryText, values);
57
59
  // eslint-disable-next-line no-console
58
- console.error('PG query error', error);
60
+ console.error('PG query error', enhancedError);
59
61
  return [];
60
62
  }
61
63
  });
@@ -81,8 +83,10 @@ const queryWithClient = (queryText, values = [], _retry = false) => __awaiter(vo
81
83
  });
82
84
  }
83
85
  catch (error) {
86
+ // Logging mejorado con información detallada del error
87
+ const enhancedError = enhancePostgreSQLError(error, queryText, values);
84
88
  // eslint-disable-next-line no-console
85
- console.error('PG query error', error);
89
+ console.error('PG query error', enhancedError);
86
90
  // Liberar conexión como rota si es necesario
87
91
  if (['EPIPE', 'ECONNRESET', '57P01', 'ECONNREFUSED'].includes(error.code)) {
88
92
  if (client) {
@@ -197,6 +201,81 @@ function camelize(str) {
197
201
  function sleep(ms) {
198
202
  return new Promise((resolve) => setTimeout(resolve, ms));
199
203
  }
204
+ // ✅ Función para mejorar el logging de errores PostgreSQL
205
+ function enhancePostgreSQLError(error, queryText, values = []) {
206
+ const enhancedError = Object.assign(Object.assign({}, error), {
207
+ // Información básica del error
208
+ message: error.message, code: error.code, severity: error.severity, detail: error.detail, hint: error.hint, position: error.position,
209
+ // Información de la query que falló
210
+ query: {
211
+ original: queryText,
212
+ parsed: getParseQuery(queryText, values),
213
+ values: values,
214
+ length: queryText.length,
215
+ },
216
+ // Información contextual del error
217
+ context: {
218
+ // Si hay posición del error, extraer el contexto
219
+ errorPosition: error.position ? parseInt(error.position) : null,
220
+ errorContext: error.position ? getErrorContext(queryText, parseInt(error.position)) : null,
221
+ // Información de tabla y columna si está disponible
222
+ table: error.table || extractTableFromQuery(queryText),
223
+ column: error.column || extractColumnFromQuery(queryText, error.position),
224
+ schema: error.schema,
225
+ // Información adicional
226
+ constraint: error.constraint,
227
+ dataType: error.dataType,
228
+ file: error.file,
229
+ line: error.line,
230
+ routine: error.routine,
231
+ },
232
+ // Timestamp del error
233
+ timestamp: new Date().toISOString(),
234
+ // Stack trace completo
235
+ stack: error.stack });
236
+ return enhancedError;
237
+ }
238
+ // ✅ Función para extraer contexto del error en la query
239
+ function getErrorContext(queryText, position, contextLength = 50) {
240
+ if (!position || position < 0)
241
+ return null;
242
+ const start = Math.max(0, position - contextLength);
243
+ const end = Math.min(queryText.length, position + contextLength);
244
+ const before = queryText.substring(start, position);
245
+ const after = queryText.substring(position, end);
246
+ return {
247
+ before: before,
248
+ after: after,
249
+ position: position - start, // Posición relativa en el contexto
250
+ fullContext: queryText.substring(start, end),
251
+ };
252
+ }
253
+ // ✅ Función para extraer nombre de tabla de la query
254
+ function extractTableFromQuery(queryText) {
255
+ const tableRegex = /(?:FROM|UPDATE|INSERT\s+INTO|DELETE\s+FROM)\s+([a-zA-Z_][a-zA-Z0-9_]*)/i;
256
+ const match = queryText.match(tableRegex);
257
+ return match ? match[1] : null;
258
+ }
259
+ // ✅ Función para extraer nombre de columna de la query
260
+ function extractColumnFromQuery(queryText, position) {
261
+ if (!position)
262
+ return null;
263
+ // Buscar la palabra más cercana a la posición del error
264
+ const words = queryText.split(/\s+/);
265
+ let currentPos = 0;
266
+ for (const word of words) {
267
+ const wordStart = queryText.indexOf(word, currentPos);
268
+ const wordEnd = wordStart + word.length;
269
+ if (position >= wordStart && position <= wordEnd) {
270
+ // Verificar si parece un nombre de columna
271
+ if (/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(word)) {
272
+ return word;
273
+ }
274
+ }
275
+ currentPos = wordEnd;
276
+ }
277
+ return null;
278
+ }
200
279
  // ✅ Manejo de cierre mejorado
201
280
  const gracefulShutdown = () => __awaiter(void 0, void 0, void 0, function* () {
202
281
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,IAAI,CAAC;AAI5B,QAAA,MAAM,IAAI,iBAaR,CAAC;AASH,QAAA,MAAM,KAAK,cAAqB,MAAM,WAAU,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,iBAuB5E,CAAC;AAGF,QAAA,MAAM,eAAe,cAAqB,MAAM,WAAU,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,0BAiDtF,CAAC;AAGF,QAAA,MAAM,UAAU,YAAmB,GAAG,EAAE,uCAmBvC,CAAC;AAGF,QAAA,MAAM,gBAAgB,cACT,MAAM,WACT,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,qCAyBtC,CAAC;AAGF,QAAA,MAAM,SAAS,QAAS,MAAM,EAAE,WAM/B,CAAC;AAkDF,OAAO,EACL,KAAK,EAAE,oCAAoC;AAC3C,eAAe,EAAE,wBAAwB;AACzC,gBAAgB,EAAE,uBAAuB;AACzC,UAAU,EAAE,aAAa;AACzB,SAAS,EAAE,WAAW;AACtB,IAAI,GACL,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/db/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,IAAI,CAAC;AAI5B,QAAA,MAAM,IAAI,iBAaR,CAAC;AASH,QAAA,MAAM,KAAK,cAAqB,MAAM,WAAU,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,iBAyB5E,CAAC;AAGF,QAAA,MAAM,eAAe,cAAqB,MAAM,WAAU,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,0BAmDtF,CAAC;AAGF,QAAA,MAAM,UAAU,YAAmB,GAAG,EAAE,uCAmBvC,CAAC;AAGF,QAAA,MAAM,gBAAgB,cACT,MAAM,WACT,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,qCAyBtC,CAAC;AAGF,QAAA,MAAM,SAAS,QAAS,MAAM,EAAE,WAM/B,CAAC;AAoJF,OAAO,EACL,KAAK,EAAE,oCAAoC;AAC3C,eAAe,EAAE,wBAAwB;AACzC,gBAAgB,EAAE,uBAAuB;AACzC,UAAU,EAAE,aAAa;AACzB,SAAS,EAAE,WAAW;AACtB,IAAI,GACL,CAAC"}
@@ -1,6 +1,3 @@
1
1
  declare const getStructuraWorkout: (workout: any, estructura: any) => any;
2
- declare const saveWorkoutEstructuraNotDone: (idWorkout: any, data: any) => Promise<void>;
3
- declare const savePlantillaEstructuraNotDone: (idPlantilla: any, data: any) => Promise<void>;
4
- declare const saveDoneStructuraWorkout: (idWorkout: any, estructura: any, workoutType: any) => Promise<void>;
5
- export { getStructuraWorkout, saveWorkoutEstructuraNotDone, savePlantillaEstructuraNotDone, saveDoneStructuraWorkout };
2
+ export { getStructuraWorkout };
6
3
  //# sourceMappingURL=estructuraWorkout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"estructuraWorkout.d.ts","sourceRoot":"","sources":["../../../../src/workout/estructuraWorkout.ts"],"names":[],"mappings":"AA4DA,QAAA,MAAM,mBAAmB,wCAiCxB,CAAC;AAmCF,QAAA,MAAM,4BAA4B,8CAkBjC,CAAC;AAEF,QAAA,MAAM,8BAA8B,gDAkBnC,CAAC;AAEF,QAAA,MAAM,wBAAwB,sEAkC7B,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,4BAA4B,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,CAAC"}
1
+ {"version":3,"file":"estructuraWorkout.d.ts","sourceRoot":"","sources":["../../../../src/workout/estructuraWorkout.ts"],"names":[],"mappings":"AAqCA,QAAA,MAAM,mBAAmB,wCAiCxB,CAAC;AAGF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,11 +1,66 @@
1
- declare const getPlanificacionPrueba7dias10k: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias10k: (c: any) => ({
2
2
  title: string;
3
3
  description: string;
4
4
  shortDescription: string;
5
5
  type: string;
6
6
  durationPlanned: number;
7
7
  distancePlanned: number;
8
- }[];
8
+ zoneMetric2: number;
9
+ } | {
10
+ title: string;
11
+ description: string;
12
+ shortDescription: string;
13
+ type: string;
14
+ distancePlanned: number;
15
+ durationPlanned: number;
16
+ structure: ({
17
+ index: number;
18
+ type: number;
19
+ typeMetric1: number;
20
+ valueMetric1: number;
21
+ typeMetric2: number;
22
+ valueMetric2: any;
23
+ zoneMetric2: number;
24
+ idSerie?: undefined;
25
+ indexSerie?: undefined;
26
+ } | {
27
+ index: number;
28
+ type: number;
29
+ idSerie: number;
30
+ indexSerie: number;
31
+ typeMetric1: number;
32
+ valueMetric1: number;
33
+ typeMetric2: number;
34
+ valueMetric2: any;
35
+ zoneMetric2: number;
36
+ } | {
37
+ index: number;
38
+ type: number;
39
+ idSerie: number;
40
+ indexSerie: number;
41
+ typeMetric1: number;
42
+ valueMetric1: number;
43
+ typeMetric2?: undefined;
44
+ valueMetric2?: undefined;
45
+ zoneMetric2?: undefined;
46
+ })[];
47
+ } | {
48
+ title: string;
49
+ description: string;
50
+ shortDescription: string;
51
+ type: string;
52
+ distancePlanned: number;
53
+ durationPlanned: number;
54
+ structure: {
55
+ index: number;
56
+ type: number;
57
+ typeMetric1: number;
58
+ valueMetric1: number;
59
+ typeMetric2: number;
60
+ valueMetric2: any;
61
+ zoneMetric2: number;
62
+ }[];
63
+ })[];
9
64
  declare const changeGoalDistanceByNivelActual10k: (c: any) => void;
10
65
  export { getPlanificacionPrueba7dias10k, changeGoalDistanceByNivelActual10k };
11
66
  //# sourceMappingURL=getPlanificacionPrueba7dias10k.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias10k.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10k.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,8BAA8B;;;;;;;GAKnC,CAAC;AAEF,QAAA,MAAM,kCAAkC,kBAMvC,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias10k.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10k.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKnC,CAAC;AAEF,QAAA,MAAM,kCAAkC,kBAMvC,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,CAAC"}
@@ -1,10 +1,65 @@
1
- declare const getPlanificacionPrueba7dias10kMas50: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias10kMas50: (c: any) => ({
2
+ title: string;
3
+ description: string;
4
+ shortDescription: string;
5
+ type: string;
6
+ distancePlanned: number;
7
+ durationPlanned: number;
8
+ structure: {
9
+ index: number;
10
+ type: number;
11
+ typeMetric1: number;
12
+ valueMetric1: number;
13
+ typeMetric2: number;
14
+ valueMetric2: any;
15
+ zoneMetric2: number;
16
+ }[];
17
+ } | {
2
18
  title: string;
3
19
  description: string;
4
20
  shortDescription: string;
5
21
  type: string;
6
22
  durationPlanned: number;
7
23
  distancePlanned: number;
8
- }[];
24
+ zoneMetric2: number;
25
+ } | {
26
+ title: string;
27
+ description: string;
28
+ shortDescription: string;
29
+ type: string;
30
+ distancePlanned: number;
31
+ durationPlanned: number;
32
+ structure: ({
33
+ index: number;
34
+ type: number;
35
+ typeMetric1: number;
36
+ valueMetric1: number;
37
+ typeMetric2: number;
38
+ valueMetric2: any;
39
+ zoneMetric2: number;
40
+ idSerie?: undefined;
41
+ indexSerie?: undefined;
42
+ } | {
43
+ index: number;
44
+ type: number;
45
+ idSerie: number;
46
+ indexSerie: number;
47
+ typeMetric1: number;
48
+ valueMetric1: number;
49
+ typeMetric2: number;
50
+ valueMetric2: any;
51
+ zoneMetric2: number;
52
+ } | {
53
+ index: number;
54
+ type: number;
55
+ idSerie: number;
56
+ indexSerie: number;
57
+ typeMetric1: number;
58
+ valueMetric1: number;
59
+ typeMetric2?: undefined;
60
+ valueMetric2?: undefined;
61
+ zoneMetric2?: undefined;
62
+ })[];
63
+ })[];
9
64
  export { getPlanificacionPrueba7dias10kMas50 };
10
65
  //# sourceMappingURL=getPlanificacionPrueba7dias10kMas50.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias10kMas50.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kMas50.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,mCAAmC;;;;;;;GASxC,CAAC;AAmJF,OAAO,EAAE,mCAAmC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias10kMas50.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kMas50.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASxC,CAAC;AA4JF,OAAO,EAAE,mCAAmC,EAAE,CAAC"}
@@ -1,10 +1,65 @@
1
- declare const getPlanificacionPrueba7dias10kPrimer: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias10kPrimer: (c: any) => ({
2
2
  title: string;
3
3
  description: string;
4
4
  shortDescription: string;
5
5
  type: string;
6
6
  durationPlanned: number;
7
7
  distancePlanned: number;
8
- }[];
8
+ zoneMetric2: number;
9
+ } | {
10
+ title: string;
11
+ description: string;
12
+ shortDescription: string;
13
+ type: string;
14
+ distancePlanned: number;
15
+ durationPlanned: number;
16
+ structure: ({
17
+ index: number;
18
+ type: number;
19
+ typeMetric1: number;
20
+ valueMetric1: number;
21
+ typeMetric2: number;
22
+ valueMetric2: any;
23
+ zoneMetric2: number;
24
+ idSerie?: undefined;
25
+ indexSerie?: undefined;
26
+ } | {
27
+ index: number;
28
+ type: number;
29
+ idSerie: number;
30
+ indexSerie: number;
31
+ typeMetric1: number;
32
+ valueMetric1: number;
33
+ typeMetric2: number;
34
+ valueMetric2: any;
35
+ zoneMetric2: number;
36
+ } | {
37
+ index: number;
38
+ type: number;
39
+ idSerie: number;
40
+ indexSerie: number;
41
+ typeMetric1: number;
42
+ valueMetric1: number;
43
+ typeMetric2?: undefined;
44
+ valueMetric2?: undefined;
45
+ zoneMetric2?: undefined;
46
+ })[];
47
+ } | {
48
+ title: string;
49
+ description: string;
50
+ shortDescription: string;
51
+ type: string;
52
+ distancePlanned: number;
53
+ durationPlanned: number;
54
+ structure: {
55
+ index: number;
56
+ type: number;
57
+ typeMetric1: number;
58
+ valueMetric1: number;
59
+ typeMetric2: number;
60
+ valueMetric2: any;
61
+ zoneMetric2: number;
62
+ }[];
63
+ })[];
9
64
  export { getPlanificacionPrueba7dias10kPrimer };
10
65
  //# sourceMappingURL=getPlanificacionPrueba7dias10kPrimer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias10kPrimer.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kPrimer.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;GASzC,CAAC;AAuIF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias10kPrimer.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kPrimer.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASzC,CAAC;AA6IF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1,10 +1,27 @@
1
- declare const getPlanificacionPrueba7dias10kSub50: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias10kSub50: (c: any) => ({
2
+ title: string;
3
+ description: string;
4
+ shortDescription: string;
5
+ type: string;
6
+ distancePlanned: number;
7
+ durationPlanned: number;
8
+ structure: {
9
+ index: number;
10
+ type: number;
11
+ typeMetric1: number;
12
+ valueMetric1: number;
13
+ typeMetric2: number;
14
+ valueMetric2: any;
15
+ zoneMetric2: number;
16
+ }[];
17
+ } | {
2
18
  title: string;
3
19
  description: string;
4
20
  shortDescription: string;
5
21
  type: string;
6
22
  durationPlanned: number;
7
23
  distancePlanned: number;
8
- }[];
24
+ zoneMetric2: number;
25
+ })[];
9
26
  export { getPlanificacionPrueba7dias10kSub50 };
10
27
  //# sourceMappingURL=getPlanificacionPrueba7dias10kSub50.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias10kSub50.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kSub50.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,mCAAmC;;;;;;;GASxC,CAAC;AAiIF,OAAO,EAAE,mCAAmC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias10kSub50.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/10k/getPlanificacionPrueba7dias10kSub50.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;IASxC,CAAC;AAyIF,OAAO,EAAE,mCAAmC,EAAE,CAAC"}
@@ -1,11 +1,36 @@
1
- declare const getPlanificacionPrueba7dias21k: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias21k: (c: any) => ({
2
+ title: string;
3
+ description: string;
4
+ shortDescription: string;
5
+ type: string;
6
+ distancePlanned: number;
7
+ durationPlanned: number;
8
+ structure: ({
9
+ index: number;
10
+ type: number;
11
+ typeMetric1: number;
12
+ valueMetric1: number;
13
+ typeMetric2: number;
14
+ valueMetric2: any;
15
+ zoneMetric2: number;
16
+ } | {
17
+ index: number;
18
+ type: number;
19
+ typeMetric1: number;
20
+ valueMetric1: number;
21
+ typeMetric2?: undefined;
22
+ valueMetric2?: undefined;
23
+ zoneMetric2?: undefined;
24
+ })[];
25
+ } | {
2
26
  title: string;
3
27
  description: string;
4
28
  shortDescription: string;
5
29
  type: string;
6
30
  durationPlanned: number;
7
31
  distancePlanned: number;
8
- }[];
32
+ zoneMetric2: number;
33
+ })[];
9
34
  declare const changeGoalDistanceByNivelActual21k: (c: any) => void;
10
35
  export { getPlanificacionPrueba7dias21k, changeGoalDistanceByNivelActual21k };
11
36
  //# sourceMappingURL=getPlanificacionPrueba7dias21k.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias21k.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21k.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,8BAA8B;;;;;;;GAKnC,CAAC;AAEF,QAAA,MAAM,kCAAkC,kBAQvC,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias21k.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21k.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKnC,CAAC;AAEF,QAAA,MAAM,kCAAkC,kBAQvC,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,CAAC"}
@@ -1,10 +1,35 @@
1
- declare const getPlanificacionPrueba7dias21kMas105: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias21kMas105: (c: any) => ({
2
+ title: string;
3
+ description: string;
4
+ shortDescription: string;
5
+ type: string;
6
+ distancePlanned: number;
7
+ durationPlanned: number;
8
+ structure: ({
9
+ index: number;
10
+ type: number;
11
+ typeMetric1: number;
12
+ valueMetric1: number;
13
+ typeMetric2: number;
14
+ valueMetric2: any;
15
+ zoneMetric2: number;
16
+ } | {
17
+ index: number;
18
+ type: number;
19
+ typeMetric1: number;
20
+ valueMetric1: number;
21
+ typeMetric2?: undefined;
22
+ valueMetric2?: undefined;
23
+ zoneMetric2?: undefined;
24
+ })[];
25
+ } | {
2
26
  title: string;
3
27
  description: string;
4
28
  shortDescription: string;
5
29
  type: string;
6
30
  durationPlanned: number;
7
31
  distancePlanned: number;
8
- }[];
32
+ zoneMetric2: number;
33
+ })[];
9
34
  export { getPlanificacionPrueba7dias21kMas105 };
10
35
  //# sourceMappingURL=getPlanificacionPrueba7dias21kMas105.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias21kMas105.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kMas105.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;GASzC,CAAC;AA0IF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias21kMas105.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kMas105.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASzC,CAAC;AAoJF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1,10 +1,27 @@
1
- declare const getPlanificacionPrueba7dias21kPrimer: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias21kPrimer: (c: any) => ({
2
+ title: string;
3
+ description: string;
4
+ shortDescription: string;
5
+ type: string;
6
+ distancePlanned: number;
7
+ durationPlanned: number;
8
+ structure: {
9
+ index: number;
10
+ type: number;
11
+ typeMetric1: number;
12
+ valueMetric1: number;
13
+ typeMetric2: number;
14
+ valueMetric2: any;
15
+ zoneMetric2: number;
16
+ }[];
17
+ } | {
2
18
  title: string;
3
19
  description: string;
4
20
  shortDescription: string;
5
21
  type: string;
6
22
  durationPlanned: number;
7
23
  distancePlanned: number;
8
- }[];
24
+ zoneMetric2: number;
25
+ })[];
9
26
  export { getPlanificacionPrueba7dias21kPrimer };
10
27
  //# sourceMappingURL=getPlanificacionPrueba7dias21kPrimer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias21kPrimer.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kPrimer.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;GASzC,CAAC;AA6HF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias21kPrimer.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kPrimer.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;IASzC,CAAC;AAsIF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1,10 +1,35 @@
1
- declare const getPlanificacionPrueba7dias21kSub105: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias21kSub105: (c: any) => ({
2
+ title: string;
3
+ description: string;
4
+ shortDescription: string;
5
+ type: string;
6
+ distancePlanned: number;
7
+ durationPlanned: number;
8
+ structure: ({
9
+ index: number;
10
+ type: number;
11
+ typeMetric1: number;
12
+ valueMetric1: number;
13
+ typeMetric2: number;
14
+ valueMetric2: any;
15
+ zoneMetric2: number;
16
+ } | {
17
+ index: number;
18
+ type: number;
19
+ typeMetric1: number;
20
+ valueMetric1: number;
21
+ typeMetric2?: undefined;
22
+ valueMetric2?: undefined;
23
+ zoneMetric2?: undefined;
24
+ })[];
25
+ } | {
2
26
  title: string;
3
27
  description: string;
4
28
  shortDescription: string;
5
29
  type: string;
6
30
  durationPlanned: number;
7
31
  distancePlanned: number;
8
- }[];
32
+ zoneMetric2: number;
33
+ })[];
9
34
  export { getPlanificacionPrueba7dias21kSub105 };
10
35
  //# sourceMappingURL=getPlanificacionPrueba7dias21kSub105.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias21kSub105.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kSub105.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;GASzC,CAAC;AA0IF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias21kSub105.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/21k/getPlanificacionPrueba7dias21kSub105.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASzC,CAAC;AAoJF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1,10 +1,59 @@
1
- declare const getPlanificacionPrueba7dias42kMas210: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias42kMas210: (c: any) => ({
2
+ title: string;
3
+ description: string;
4
+ shortDescription: string;
5
+ type: string;
6
+ distancePlanned: number;
7
+ durationPlanned: number;
8
+ structure: ({
9
+ index: number;
10
+ type: number;
11
+ typeMetric1: number;
12
+ valueMetric1: number;
13
+ typeMetric2: number;
14
+ valueMetric2: any;
15
+ zoneMetric2: number;
16
+ } | {
17
+ index: number;
18
+ type: number;
19
+ typeMetric1: number;
20
+ valueMetric1: number;
21
+ typeMetric2?: undefined;
22
+ valueMetric2?: undefined;
23
+ zoneMetric2?: undefined;
24
+ })[];
25
+ } | {
26
+ title: string;
27
+ description: string;
28
+ shortDescription: string;
29
+ type: string;
30
+ distancePlanned: number;
31
+ durationPlanned: number;
32
+ structure: ({
33
+ index: number;
34
+ type: number;
35
+ typeMetric1: number;
36
+ valueMetric1: number;
37
+ typeMetric2: number;
38
+ valueMetric2: any;
39
+ zoneMetric2?: undefined;
40
+ } | {
41
+ index: number;
42
+ type: number;
43
+ typeMetric1: number;
44
+ valueMetric1: number;
45
+ typeMetric2: number;
46
+ valueMetric2: any;
47
+ zoneMetric2: number;
48
+ })[];
49
+ } | {
2
50
  title: string;
3
51
  description: string;
4
52
  shortDescription: string;
5
53
  type: string;
6
54
  durationPlanned: number;
7
55
  distancePlanned: number;
8
- }[];
56
+ zoneMetric2: number;
57
+ })[];
9
58
  export { getPlanificacionPrueba7dias42kMas210 };
10
59
  //# sourceMappingURL=getPlanificacionPrueba7dias42kMas210.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias42kMas210.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kMas210.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;GASzC,CAAC;AAkJF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias42kMas210.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kMas210.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASzC,CAAC;AA2JF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias42kPrimer.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kPrimer.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;GASzC,CAAC;AAwJF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias42kPrimer.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kPrimer.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;GASzC,CAAC;AAgKF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1,10 +1,27 @@
1
- declare const getPlanificacionPrueba7dias42kSub210: (c: any) => {
1
+ declare const getPlanificacionPrueba7dias42kSub210: (c: any) => ({
2
+ title: string;
3
+ description: string;
4
+ shortDescription: string;
5
+ type: string;
6
+ distancePlanned: number;
7
+ durationPlanned: number;
8
+ structure: {
9
+ index: number;
10
+ type: number;
11
+ typeMetric1: number;
12
+ valueMetric1: number;
13
+ typeMetric2: number;
14
+ valueMetric2: any;
15
+ zoneMetric2: number;
16
+ }[];
17
+ } | {
2
18
  title: string;
3
19
  description: string;
4
20
  shortDescription: string;
5
21
  type: string;
6
22
  durationPlanned: number;
7
23
  distancePlanned: number;
8
- }[];
24
+ zoneMetric2: number;
25
+ })[];
9
26
  export { getPlanificacionPrueba7dias42kSub210 };
10
27
  //# sourceMappingURL=getPlanificacionPrueba7dias42kSub210.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPlanificacionPrueba7dias42kSub210.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kSub210.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;GASzC,CAAC;AAmIF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"getPlanificacionPrueba7dias42kSub210.d.ts","sourceRoot":"","sources":["../../../../../../src/workout/planificacionPrueba7dias/42k/getPlanificacionPrueba7dias42kSub210.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;IASzC,CAAC;AA4IF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}