File

apps/recallassess/recallassess-api/src/api/admin/course-module-page/dto/course-module-page.dto.ts

Index

Properties

Properties

Optional content_type
Type : ContentType
Decorators :
@Expose()
@IsOptional()
@IsEnum(ContentType)
course_id
Type : number
Decorators :
@Expose()
@IsInt()
course_module_id
Type : number
Decorators :
@Expose()
@IsInt()
Optional flag
Type : boolean
Decorators :
@Expose()
@IsOptional()
@IsBoolean()
Optional id
Type : number
Decorators :
@Expose()
@IsOptional()
@IsInt()
Optional is_published
Type : boolean
Decorators :
@Expose()
@IsOptional()
@IsBoolean()
Optional knowledge_review_id
Type : number
Decorators :
@Expose()
@IsOptional()
@IsInt()
Optional outline
Type : string
Decorators :
@Expose()
@IsOptional()
@IsString()
Optional quiz_difficulty_level
Type : BatAnswerLevel | null
Decorators :
@Expose()
@IsOptional()
@IsEnum(BatAnswerLevel)
Optional sort_order
Type : number
Decorators :
@Expose()
@IsOptional()
@IsInt()
Optional time_frame
Type : string
Decorators :
@Expose()
@IsOptional()
@IsString()
title
Type : string
Decorators :
@Expose()
@IsString()
Optional top_tips
Type : string
Decorators :
@Expose()
@IsOptional()
@IsString()
Optional topic_objectives
Type : string
Decorators :
@Expose()
@IsOptional()
@IsString()
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;
}

results matching ""

    No results matching ""