types.ts 868 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. export interface ITraining {
  2. id: string;
  3. title: string;
  4. type: {
  5. id: string;
  6. name: string;
  7. description: string;
  8. };
  9. createdAt: string;
  10. trainingDate: string;
  11. location: string;
  12. registrations: string[];
  13. attendance: number;
  14. ratings: IRating[];
  15. published: boolean;
  16. blocks: IBlock[];
  17. }
  18. export interface IBlock {
  19. id: string;
  20. sequence?: number;
  21. title?: string;
  22. comment?: string;
  23. duration?: number;
  24. repetitions?: number;
  25. rest?: number;
  26. format?: IFormat;
  27. blocks?: IBlock[];
  28. exercises?: IExercise[];
  29. video?: string;
  30. }
  31. export interface IFormat {}
  32. export interface IExercise {
  33. id: string;
  34. name: string;
  35. description: string;
  36. repetitions: number;
  37. videos: string[];
  38. pictures: string[];
  39. targets: string[];
  40. baseExercise: {
  41. id: string;
  42. name: string;
  43. };
  44. }
  45. export interface IRating {
  46. value: number;
  47. }