-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue PS-1195 feat: Adddition of Deassign Cohort from User
- Loading branch information
1 parent
350fac9
commit 0194839
Showing
3 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
import { IsArray, IsUUID, ArrayNotEmpty } from 'class-validator'; | ||
import { IsArray, IsUUID, ArrayNotEmpty, IsOptional, IsNotEmpty } from 'class-validator'; | ||
|
||
export class BulkCohortMember { | ||
@IsArray() | ||
@ArrayNotEmpty() | ||
@IsNotEmpty() | ||
@IsUUID('4', { each: true }) | ||
userId: string[]; | ||
|
||
@IsArray() | ||
@ArrayNotEmpty() | ||
@IsNotEmpty() | ||
@IsUUID('4', { each: true }) | ||
cohortId: string[]; | ||
|
||
@IsArray() | ||
@ArrayNotEmpty() | ||
@IsOptional() | ||
@IsUUID('4', { each: true }) | ||
removeCohortId: string[]; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters