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.
27 lines
455 B
TypeScript
27 lines
455 B
TypeScript
import { IsString, IsUUID, IsObject, IsOptional } from 'class-validator';
|
|
|
|
/**
|
|
* DTO for updating an existing group
|
|
*/
|
|
export class UpdateGroupDto {
|
|
/**
|
|
* The name of the group
|
|
*/
|
|
@IsOptional()
|
|
@IsString()
|
|
name?: string;
|
|
|
|
/**
|
|
* The ID of the project this group belongs to
|
|
*/
|
|
@IsOptional()
|
|
@IsUUID()
|
|
projectId?: string;
|
|
|
|
/**
|
|
* Metadata for the group
|
|
*/
|
|
@IsOptional()
|
|
@IsObject()
|
|
metadata?: Record<string, any>;
|
|
} |