import { ECategory } from "@/enum/enum.category";
import { ETarget } from "@/enum/enum.target";

export type ExerciceDTO = {
  Id: string;
  Name: string;
  Description: string;
  Target: ETarget;
  Image: string;
  Video: string;
  Duration: number;
  NbSet: number;
  RestTime: number;
  NbRep: number;
  Weight?: number;
  Passed: boolean;
};

export type SessionDTO = {
  Id: string;
  Name: string;
  Description: string;
  Category: ECategory;
  Exercices: ExerciceDTO[];
};

export type TrainingDTO = {
  Id: string;
  Name: string;
  Description: string;
  Sessions: SessionDTO[];
};

export type CreateSessionDTO = {
  Name: string;
  Description: string;
  Category: ECategory;
  Exercices: ExerciceDTO[];
};

export type CreateTrainingDTO = {
  Name: string;
  description: string;
  Category: ECategory;
  Exercices: ExerciceDTO[];
};

export type UpdateTrainingDTO = {
  Id: string;
  Name?: string;
  description?: string;
  Category?: ECategory;
  Exercices?: ExerciceDTO[];
};
