Added new authentication strategies (JWT and GitHub OAuth), guards, and controllers. Implemented database module, schema with relations, and group management features, including CRD operations and person-to-group associations. Integrated validation and CORS configuration.
28 lines
469 B
TypeScript
28 lines
469 B
TypeScript
import { IsString, IsOptional, IsObject, IsDate } from 'class-validator';
|
|
import { Type } from 'class-transformer';
|
|
|
|
/**
|
|
* DTO for updating a user
|
|
*/
|
|
export class UpdateUserDto {
|
|
@IsString()
|
|
@IsOptional()
|
|
name?: string;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
avatar?: string;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
githubId?: string;
|
|
|
|
@IsDate()
|
|
@IsOptional()
|
|
@Type(() => Date)
|
|
gdprTimestamp?: Date;
|
|
|
|
@IsObject()
|
|
@IsOptional()
|
|
metadata?: Record<string, any>;
|
|
} |