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 WorkspaceCreateManyInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user