You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
663 B
17 lines
663 B
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>;
|
|
}
|