group events
This commit is contained in:
15
costly-api/src/model/dto/incoming-event.dto.ts
Normal file
15
costly-api/src/model/dto/incoming-event.dto.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user