Api+app: usuniecie PlanSet.difficulty z kontraktu planu (trudnosc pozostaje wynikiem rzeczywistym serii)
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user