Spaces:
Running
Running
| import { Expose, Transform } from "class-transformer"; | |
| import { serialize } from "@helpers/serialize"; | |
| import { SwaggerResponseProperty } from "@lib/decorators/swagger-response-property.decorator"; | |
| class MealPlanDays { | |
| () | |
| ({ type: "string" }) | |
| title: string; | |
| ({ name: "meals" }) | |
| ({ type: ["string"] }) | |
| meals: any; | |
| } | |
| class MealPlanKeyFeatures { | |
| () | |
| ({ type: "string" }) | |
| title: string; | |
| ({ name: "description" }) | |
| ({ type: "string" }) | |
| description: any; | |
| } | |
| export class MealPlanSerialization { | |
| ({ name: "_id" }) | |
| ({ type: "string" }) | |
| id: string; | |
| () | |
| ({ type: "string" }) | |
| image: string; | |
| () | |
| ({ type: "string" }) | |
| description: string; | |
| () | |
| ({ type: "string" }) | |
| duration: string; | |
| () | |
| ({ type: "string" }) | |
| level: string; | |
| () | |
| ({ type: "string" }) | |
| your_journey: string; | |
| ({ name: "key_features" }) | |
| ({ type: [MealPlanKeyFeatures] }) | |
| ( | |
| ({ value }) => serialize(value, MealPlanKeyFeatures) | |
| ) | |
| key_features: any; | |
| ({ name: "days" }) | |
| ({ type: [MealPlanDays] }) | |
| ( | |
| ({ value }) => serialize(value, MealPlanDays) | |
| ) | |
| days: any; | |
| } |