group events

This commit is contained in:
Bastian Wagner
2025-12-19 13:14:04 +01:00
parent 5a08e2319f
commit e05ab13d0d
16 changed files with 442 additions and 101 deletions

View File

@@ -0,0 +1,15 @@
import { IsString, IsObject, IsOptional, IsISO8601 } from "class-validator";
export type GROUPEVENTTYPE = 'GROUP_RENAMED'
export class IncomingEventDto {
@IsString() id: string;
@IsString() type: GROUPEVENTTYPE;
@IsObject() payload: any;
@IsOptional() @IsString()
actorId?: string;
@IsOptional() @IsISO8601()
clientCreatedAt?: string;
}