diff --git a/src/notifications/notification.dto.ts b/src/notifications/notification.dto.ts new file mode 100644 index 0000000000000000000000000000000000000000..807af14058161062d61c9b88a1d8e56637004acc --- /dev/null +++ b/src/notifications/notification.dto.ts @@ -0,0 +1,12 @@ +import { IsString, Length, IsUUID, IsIn } from 'class-validator'; + +export class NotificationdDTO { + // alert is for serious messages, note is for smaller updates on a situation + @IsIn(['alert', 'note']) + type: string; + @IsString() + @Length(0, 63) + message: string; + @IsUUID('4') + game: string; +}