Spaces:
Running
Running
| import { Expose, Transform } from "class-transformer"; | |
| import { serialize } from "@helpers/serialize"; | |
| import { SwaggerResponseProperty } from "@lib/decorators/swagger-response-property.decorator"; | |
| class ExpectedDurationRange { | |
| () | |
| ({ type: "number" }) | |
| min: number; | |
| () | |
| ({ type: "number" }) | |
| max: number; | |
| } | |
| class Media { | |
| () | |
| ({ type: "string" }) | |
| type: string; | |
| () | |
| ({ type: "string" }) | |
| url: string; | |
| } | |
| class TargetMuscles { | |
| () | |
| ({ type: "string" }) | |
| primary: string; | |
| () | |
| ({ type: "string" }) | |
| secondary: string; | |
| } | |
| export class ExerciseSerialization { | |
| ({ name: "_id" }) | |
| ({ type: "string" }) | |
| id: string; | |
| () | |
| ({ type: "string" }) | |
| name: string; | |
| () | |
| ({ type: "string" }) | |
| category: string; | |
| () | |
| ({ type: "string" }) | |
| exerciseType: string; | |
| () | |
| ({ type: "number" }) | |
| duration: number | null; | |
| ({ name: "expectedDurationRange" }) | |
| ({ type: ExpectedDurationRange }) | |
| (({ value }) => serialize(value, ExpectedDurationRange)) | |
| expectedDurationRange: object; | |
| () | |
| ({ type: "number" }) | |
| reps: number; | |
| () | |
| ({ type: "number" }) | |
| sets: number; | |
| () | |
| ({ type: "string" }) | |
| instructions: string; | |
| () | |
| ({ type: "string" }) | |
| benefits: string; | |
| () | |
| ({ type: TargetMuscles }) | |
| targetMuscles: any; | |
| () | |
| ({ type: ["string"] }) | |
| equipments: any; | |
| () | |
| ('string') | |
| coverImage: string; | |
| ({ name: "media" }) | |
| ({ type: Media }) | |
| (({ value }) => serialize(value, Media)) | |
| media: Media; | |
| } | |