import { ESearchExerciceFilter } from "@/enum/enum.search-filter.exercice";
import { UpdateExerciceDTO } from "../dto/dto.catalog";
import { DeleteDTO } from "../dto/dto.generic";
import { ExerciceDTO } from "../dto/dto.training";

export interface ICatalogService {
  getAllExercices(): Promise<ExerciceDTO[]>;
  getExercices(spec: ESearchExerciceFilter): Promise<ExerciceDTO[]>;
  getExercice(id: string): Promise<ExerciceDTO | undefined>;
  addExercice(exercice: ExerciceDTO): Promise<ExerciceDTO>;
  editExercice(
    id: string,
    exercice: UpdateExerciceDTO
  ): Promise<UpdateExerciceDTO | undefined>;
  deleteExercice(id: string): Promise<DeleteDTO>;
}
