File

apps/recallassess/recallassess-api/src/api/admin/assessment/dto/quiz/assessment-answer-create.dto.ts

Index

Properties

Properties

answer_level
Type : BatAnswerLevel
Decorators :
@Expose()
@IsEnum(BatAnswerLevel)
answer_text
Type : string
Decorators :
@Expose()
@IsString()
assessment_id
Type : number
Decorators :
@Expose()
@IsInt()
assessment_question_id
Type : number
Decorators :
@Expose()
@IsInt()
course_id
Type : number
Decorators :
@Expose()
@IsInt()
sort_order
Type : number
Decorators :
@Expose()
@IsInt()
import { BatAnswerLevel } from "@prisma/client";
import { IsEnum, IsInt, IsString } from "class-validator";
import {Expose, Exclude} from "class-transformer";

@Exclude()
export class AssessmentAnswerAddDto {
  @Expose()
  @IsInt()
  course_id!: number;

  @Expose()
  @IsInt()
  assessment_id!: number;

  @Expose()
  @IsInt()
  assessment_question_id!: number;

  @Expose()
  @IsString()
  answer_text!: string;

  @Expose()
  @IsEnum(BatAnswerLevel)
  answer_level!: BatAnswerLevel;

  @Expose()
  @IsInt()
  sort_order!: number;
}

results matching ""

    No results matching ""