Spaces:
Running
Running
import { Expose, Transform } from "class-transformer"; | |
import { serialize } from "@helpers/serialize"; | |
import { SwaggerResponseProperty } from "@lib/decorators/swagger-response-property.decorator"; | |
class Days { | |
() | |
type: "string" }) | ({|
title: string; | |
name: "meals" }) | ({|
type: "string" }) | ({|
meals: string; | |
} | |
class KeyFeatures { | |
() | |
type: "number" }) | ({|
day_number: number; | |
name: "description" }) | ({|
type: {} }) | ({|
description: any; | |
} | |
export class WorkoutSerialization { | |
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: [KeyFeatures] }) | ({|
( | |
({ value }) => serialize(value, KeyFeatures) | |
) | |
key_Features: any; | |
name: "days" }) | ({|
type: [Days] }) | ({|
( | |
({ value }) => serialize(value, Days) | |
) | |
days: any; | |
} |