FIX: get departments and jobTitles

This commit is contained in:
Gabriel Rosa
2022-07-22 08:45:58 -03:00
parent 67706c5fc3
commit b04a38bcc0
5 changed files with 71 additions and 15 deletions
+13 -5
View File
@@ -103,14 +103,13 @@ export class UpdateUserRes {
@ApiProperty()
user: UserByCustomer;
}
export class GetAllUsersByCustomerIdReq {
@ApiPropertyOptional()
s?: string;
}
export class GetAllUsersByCustomerIdRes {
@ApiProperty({ type: [UserByCustomer] })
users: UserByCustomer[];
@ApiProperty()
departments: string[];
@ApiProperty()
jobTitles: string[];
}
export class AssignRoleToUserReq {
@@ -153,3 +152,12 @@ export class GetAllHierarchiesRes {
@ApiProperty({ type: [Hierarchy] })
hierarchies: Hierarchy[];
}
export class GetAllJobTitlesRes {
@ApiProperty()
jobTitles: string[];
}
export class GetAllDepartmentsRes {
@ApiProperty()
departments: string[];
}