feat: refactoring auth & add email password login (#318)

* feat: wip

* fix: issues

* feat: clean controllers and services

* fix: test

* Fix auth

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Jérémy M
2023-06-17 13:42:02 +02:00
committed by GitHub
parent d13ceb98fa
commit 299ca293a8
215 changed files with 1668 additions and 680 deletions
@@ -4,8 +4,8 @@ import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateManyAuthorInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -4,8 +4,8 @@ import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateManyCommentThreadInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -3,8 +3,8 @@ import { InputType } from '@nestjs/graphql';
@InputType()
export class CommentCreateManyWorkspaceInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -4,8 +4,8 @@ import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateManyInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -6,8 +6,8 @@ import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateWithoutAuthorInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -6,8 +6,8 @@ import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateWithoutCommentThreadInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -5,8 +5,8 @@ import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thr
@InputType()
export class CommentCreateWithoutWorkspaceInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -7,8 +7,8 @@ import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentCreateInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -4,8 +4,8 @@ import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentUncheckedCreateWithoutAuthorInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -4,8 +4,8 @@ import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentUncheckedCreateWithoutCommentThreadInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -3,8 +3,8 @@ import { InputType } from '@nestjs/graphql';
@InputType()
export class CommentUncheckedCreateWithoutWorkspaceInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@@ -4,8 +4,8 @@ import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentUncheckedCreateInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;