Api+app: usuniecie PlanSet.difficulty z kontraktu planu (trudnosc pozostaje wynikiem rzeczywistym serii)

This commit is contained in:
tisachi
2026-10-11 15:52:33 +02:00
parent d544f6521c
commit 2fb288e029
18 changed files with 230 additions and 99 deletions

View File

@@ -6,7 +6,6 @@ export const planSetSchema = z.object({
loadKg: z.number().positive().max(1000).nullable().optional(),
restSec: z.number().int().positive().max(3600).nullable().optional(),
rir: z.number().int().min(0).max(10).nullable().optional(),
difficulty: z.number().int().min(1).max(5).nullable().optional(),
cardioBpm: z.number().int().positive().max(300).nullable().optional(),
timeSec: z.number().int().positive().max(86400).nullable().optional(),
speed: z.number().positive().max(100).nullable().optional(),

View File

@@ -8,7 +8,6 @@ export interface PlanSetInput {
loadKg?: number | null;
restSec?: number | null;
rir?: number | null;
difficulty?: number | null;
cardioBpm?: number | null;
timeSec?: number | null;
speed?: number | null;

View File

@@ -522,7 +522,6 @@ export const openapi: Record<string, unknown> = {
loadKg: { type: 'number', nullable: true },
restSec: { type: 'integer', nullable: true },
rir: { type: 'integer', nullable: true },
difficulty: { type: 'integer', nullable: true },
cardioBpm: { type: 'integer', nullable: true },
timeSec: { type: 'integer', nullable: true },
speed: { type: 'number', nullable: true },