updatedto

 avatar
user_7119000
plain_text
a month ago
1.0 kB
2
Indexable
import { PartialType } from '@nestjs/swagger';
import { CreateUserCourseDto } from './create-user-course.dto';
import { InactiveType } from '../schema/userCourse.schema';

export class UpdateUserCourseDto extends PartialType(CreateUserCourseDto) {
    id?: string

    isPermanent?: boolean ;
    inActiveAt?:Date;

    inActiveDetailsObj?: {
        inActiveAt: Date;
        inActiveBy: string;
        type: InactiveType;
        remark: string;
    };

    inActiveDetails?: {
        inActiveAt: Date;
        inActiveBy: string;
        type: InactiveType;
        remark: string;
    }[];
}

export class BulkUpdateUserCourseDto {

    userCourses: UpdateUserCourseDto[];
    batch?: string;
    inActiveAt?:Date;

    inActiveDetailsObj?: {
        inActiveAt: Date;
        inActiveBy: string;
        type: InactiveType;
        remark: string;
    };

    inActiveDetails?: {
        inActiveAt: Date;
        inActiveBy: string;
        type: InactiveType;
        remark: string;
    }[];
}
Leave a Comment