apps/recallassess/recallassess-api/src/api/admin/course-module-page/dto/course-module-page.dto.ts
Properties |
|
| Optional content_type |
Type : ContentType
|
Decorators :
@Expose()
|
| course_id |
Type : number
|
Decorators :
@Expose()
|
| course_module_id |
Type : number
|
Decorators :
@Expose()
|
| Optional flag |
Type : boolean
|
Decorators :
@Expose()
|
| Optional id |
Type : number
|
Decorators :
@Expose()
|
| Optional is_published |
Type : boolean
|
Decorators :
@Expose()
|
| Optional knowledge_review_id |
Type : number
|
Decorators :
@Expose()
|
| Optional outline |
Type : string
|
Decorators :
@Expose()
|
| Optional quiz_difficulty_level |
Type : BatAnswerLevel | null
|
Decorators :
@Expose()
|
| Optional sort_order |
Type : number
|
Decorators :
@Expose()
|
| Optional time_frame |
Type : string
|
Decorators :
@Expose()
|
| title |
Type : string
|
Decorators :
@Expose()
|
| Optional top_tips |
Type : string
|
Decorators :
@Expose()
|
| Optional topic_objectives |
Type : string
|
Decorators :
@Expose()
|
import { BatAnswerLevel, ContentType } from "@prisma/client";
import { IsBoolean, IsEnum, IsInt, IsOptional, IsString } from "class-validator";
import {Expose, Exclude} from "class-transformer";
@Exclude()
export class CourseModulePageDto {
@Expose()
@IsOptional()
@IsInt()
id?: number;
@Expose()
@IsInt()
course_module_id!: number;
@Expose()
@IsInt()
course_id!: number;
@Expose()
@IsString()
title!: string;
@Expose()
@IsOptional()
@IsString()
outline?: string;
@Expose()
@IsOptional()
@IsString()
topic_objectives?: string;
@Expose()
@IsOptional()
@IsString()
top_tips?: string;
@Expose()
@IsOptional()
@IsEnum(ContentType)
content_type?: ContentType;
@Expose()
@IsOptional()
@IsInt()
knowledge_review_id?: number;
@Expose()
@IsOptional()
@IsEnum(BatAnswerLevel)
quiz_difficulty_level?: BatAnswerLevel | null;
@Expose()
@IsOptional()
@IsInt()
sort_order?: number;
@Expose()
@IsOptional()
@IsBoolean()
is_published?: boolean;
@Expose()
@IsOptional()
@IsString()
time_frame?: string;
@Expose()
@IsOptional()
@IsBoolean()
flag?: boolean;
}