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:
@ -3,8 +3,8 @@ import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateManyWorkspaceInput {
|
||||
@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 CommentThreadCreateManyInput {
|
||||
@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 CommentThreadCreateWithoutCommentThreadTargetsInput {
|
||||
@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 CommentThreadCreateWithoutCommentsInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@ -5,8 +5,8 @@ import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/com
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateWithoutWorkspaceInput {
|
||||
@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 CommentThreadCreateInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@ -5,8 +5,8 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUncheckedCreateWithoutCommentThreadTargetsInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@ -5,8 +5,8 @@ import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput }
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUncheckedCreateWithoutCommentsInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@ -5,8 +5,8 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUncheckedCreateWithoutWorkspaceInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@ -6,8 +6,8 @@ import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../co
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUncheckedCreateInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
Reference in New Issue
Block a user