src/auth/user/dto/managed-user.dto.ts
Properties |
| Optional email |
Type : string
|
Decorators :
@ApiProperty({example: 'alice@example.com', required: false})
|
|
Defined in src/auth/user/dto/managed-user.dto.ts:12
|
| enabled |
Type : boolean
|
Decorators :
@ApiProperty({example: true})
|
|
Defined in src/auth/user/dto/managed-user.dto.ts:15
|
| id |
Type : string
|
Decorators :
@ApiProperty({example: '5a3412a4-9ccf-41aa-b79c-f7e2a8a9b0d1'})
|
|
Defined in src/auth/user/dto/managed-user.dto.ts:6
|
| roles |
Type : Role[]
|
Decorators :
@ApiProperty({enum: Role, isArray: true})
|
|
Defined in src/auth/user/dto/managed-user.dto.ts:18
|
| Optional temporaryPassword |
Type : string
|
Decorators :
@ApiPropertyOptional({example: 'Ab3!zK8pQ2', description: 'One-time temporary password returned only on user creation.'})
|
|
Defined in src/auth/user/dto/managed-user.dto.ts:28
|
| Optional tenantId |
Type : string
|
Decorators :
@ApiProperty({example: 'tenant-a', required: false})
|
|
Defined in src/auth/user/dto/managed-user.dto.ts:21
|
| username |
Type : string
|
Decorators :
@ApiProperty({example: 'alice'})
|
|
Defined in src/auth/user/dto/managed-user.dto.ts:9
|
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { Role } from "../../roles/role.enum";
export class ManagedUserDto {
@ApiProperty({ example: "5a3412a4-9ccf-41aa-b79c-f7e2a8a9b0d1" })
id!: string;
@ApiProperty({ example: "alice" })
username!: string;
@ApiProperty({ example: "alice@example.com", required: false })
email?: string;
@ApiProperty({ example: true })
enabled!: boolean;
@ApiProperty({ enum: Role, isArray: true })
roles!: Role[];
@ApiProperty({ example: "tenant-a", required: false })
tenantId?: string;
@ApiPropertyOptional({
example: "Ab3!zK8pQ2",
description:
"One-time temporary password returned only on user creation.",
})
temporaryPassword?: string;
}