switch to nx monorepo

This commit is contained in:
Philipinho
2024-01-09 18:58:26 +01:00
parent e1bb2632b8
commit 093e634c0b
273 changed files with 11419 additions and 31 deletions
@@ -0,0 +1,11 @@
import { IsUUID } from 'class-validator';
export class CommentsInput {
@IsUUID()
pageId: string;
}
export class SingleCommentInput {
@IsUUID()
id: string;
}
@@ -0,0 +1,21 @@
import { IsJSON, IsOptional, IsString, IsUUID } from 'class-validator';
export class CreateCommentDto {
@IsOptional()
@IsUUID()
id?: string;
@IsUUID()
pageId: string;
@IsJSON()
content: any;
@IsOptional()
@IsString()
selection: string;
@IsOptional()
@IsUUID()
parentCommentId: string;
}
@@ -0,0 +1,9 @@
import { IsBoolean, IsUUID } from 'class-validator';
export class ResolveCommentDto {
@IsUUID()
commentId: string;
@IsBoolean()
resolved: boolean;
}
@@ -0,0 +1,9 @@
import { IsJSON, IsUUID } from 'class-validator';
export class UpdateCommentDto {
@IsUUID()
id: string;
@IsJSON()
content: any;
}