FEAT: User Management WIP

This commit is contained in:
Gabriel Rosa
2022-07-08 12:04:56 -03:00
parent 358dd6a15a
commit d1961a9710
8 changed files with 77 additions and 27 deletions
+44
View File
@@ -75,6 +75,46 @@ export class User {
@ApiProperty()
updatedAt: string;
}
export class CreateUserReq {
@ApiProperty()
name: string;
@ApiProperty()
username: string;
@ApiProperty()
email: string;
@ApiProperty()
roles: string[];
@ApiProperty()
jobTitle: string;
@ApiProperty()
department: string;
@ApiProperty()
hierarchy: number;
@ApiProperty()
customer: Customer;
@ApiProperty()
mfaStatus: string;
@ApiProperty()
createdAt: string;
@ApiProperty()
updatedAt: string;
}
export class CreateUserRes {
@ApiProperty()
id: string;
@ApiProperty()
name: string;
@ApiProperty()
email: string;
@ApiProperty()
roles: string[];
@ApiProperty()
jobTitle: string;
@ApiProperty()
department: string;
@ApiProperty()
hierarchy: number;
}
export class GetAllUsersByCustomerIdReq {
@ApiPropertyOptional()
@@ -97,6 +137,10 @@ export class UnassignRoleToUserReq {
@ApiProperty()
roleId: string;
}
export class DeleteUserRes {
@ApiProperty()
id: string;
}
export class SearchUserReq {
@ApiProperty()