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

View File

@ -3,8 +3,8 @@ import { InputType } from '@nestjs/graphql';
@InputType()
export class WorkspaceCreateManyInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli
@InputType()
export class WorkspaceCreateWithoutCommentThreadsInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli
@InputType()
export class WorkspaceCreateWithoutCommentsInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli
@InputType()
export class WorkspaceCreateWithoutCompaniesInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli
@InputType()
export class WorkspaceCreateWithoutPeopleInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineStageCreateNestedManyWithoutWorkspaceInput } from '../pipeline-
@InputType()
export class WorkspaceCreateWithoutPipelineProgressesInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli
@InputType()
export class WorkspaceCreateWithoutPipelineStagesInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli
@InputType()
export class WorkspaceCreateWithoutPipelinesInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli
@InputType()
export class WorkspaceCreateWithoutWorkspaceMemberInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -11,8 +11,8 @@ import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeli
@InputType()
export class WorkspaceCreateInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from '
@InputType()
export class WorkspaceUncheckedCreateWithoutCommentThreadsInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from '
@InputType()
export class WorkspaceUncheckedCreateWithoutCommentsInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from '
@InputType()
export class WorkspaceUncheckedCreateWithoutCompaniesInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from '
@InputType()
export class WorkspaceUncheckedCreateWithoutPeopleInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineStageUncheckedCreateNestedManyWithoutWorkspaceInput } from '../
@InputType()
export class WorkspaceUncheckedCreateWithoutPipelineProgressesInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from '
@InputType()
export class WorkspaceUncheckedCreateWithoutPipelineStagesInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from '
@InputType()
export class WorkspaceUncheckedCreateWithoutPipelinesInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -10,8 +10,8 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from '
@InputType()
export class WorkspaceUncheckedCreateWithoutWorkspaceMemberInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;

View File

@ -11,8 +11,8 @@ import { PipelineProgressUncheckedCreateNestedManyWithoutWorkspaceInput } from '
@InputType()
export class WorkspaceUncheckedCreateInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;