chore: refacto NestJS in modules (#308)

* chore: wip refacto in modules

* fix: rollback port

* fix: jwt guard in wrong folder

* chore: rename folder exception-filter in filters

* fix: tests are running

* fix: excessive stack depth comparing types

* fix: auth issue

* chore: move createUser in UserService

* fix: test

* fix: guards

* fix: jwt guard don't handle falsy user
This commit is contained in:
Jérémy M
2023-06-16 10:38:11 +02:00
committed by GitHub
parent 5921c7f11d
commit 2cd081234f
1084 changed files with 2251 additions and 758 deletions

View File

@ -0,0 +1,17 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { CommentThreadCountAggregate } from './comment-thread-count-aggregate.output';
import { CommentThreadMinAggregate } from './comment-thread-min-aggregate.output';
import { CommentThreadMaxAggregate } from './comment-thread-max-aggregate.output';
@ObjectType()
export class AggregateCommentThread {
@Field(() => CommentThreadCountAggregate, { nullable: true })
_count?: CommentThreadCountAggregate;
@Field(() => CommentThreadMinAggregate, { nullable: true })
_min?: CommentThreadMinAggregate;
@Field(() => CommentThreadMaxAggregate, { nullable: true })
_max?: CommentThreadMaxAggregate;
}

View File

@ -0,0 +1,38 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereInput } from './comment-thread-where.input';
import { Type } from 'class-transformer';
import { CommentThreadOrderByWithRelationInput } from './comment-thread-order-by-with-relation.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Int } from '@nestjs/graphql';
import { CommentThreadCountAggregateInput } from './comment-thread-count-aggregate.input';
import { CommentThreadMinAggregateInput } from './comment-thread-min-aggregate.input';
import { CommentThreadMaxAggregateInput } from './comment-thread-max-aggregate.input';
@ArgsType()
export class CommentThreadAggregateArgs {
@Field(() => CommentThreadWhereInput, { nullable: true })
@Type(() => CommentThreadWhereInput)
where?: CommentThreadWhereInput;
@Field(() => [CommentThreadOrderByWithRelationInput], { nullable: true })
orderBy?: Array<CommentThreadOrderByWithRelationInput>;
@Field(() => CommentThreadWhereUniqueInput, { nullable: true })
cursor?: CommentThreadWhereUniqueInput;
@Field(() => Int, { nullable: true })
take?: number;
@Field(() => Int, { nullable: true })
skip?: number;
@Field(() => CommentThreadCountAggregateInput, { nullable: true })
_count?: CommentThreadCountAggregateInput;
@Field(() => CommentThreadMinAggregateInput, { nullable: true })
_min?: CommentThreadMinAggregateInput;
@Field(() => CommentThreadMaxAggregateInput, { nullable: true })
_max?: CommentThreadMaxAggregateInput;
}

View File

@ -0,0 +1,24 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCountAggregateInput {
@Field(() => Boolean, { nullable: true })
id?: true;
@Field(() => Boolean, { nullable: true })
createdAt?: true;
@Field(() => Boolean, { nullable: true })
updatedAt?: true;
@Field(() => Boolean, { nullable: true })
deletedAt?: true;
@HideField()
workspaceId?: true;
@Field(() => Boolean, { nullable: true })
_all?: true;
}

View File

@ -0,0 +1,25 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { Int } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadCountAggregate {
@Field(() => Int, { nullable: false })
id!: number;
@Field(() => Int, { nullable: false })
createdAt!: number;
@Field(() => Int, { nullable: false })
updatedAt!: number;
@Field(() => Int, { nullable: false })
deletedAt!: number;
@HideField()
workspaceId!: number;
@Field(() => Int, { nullable: false })
_all!: number;
}

View File

@ -0,0 +1,22 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCountOrderByAggregateInput {
@Field(() => SortOrder, { nullable: true })
id?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
}

View File

@ -0,0 +1,14 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateManyWorkspaceInput } from './comment-thread-create-many-workspace.input';
import { Type } from 'class-transformer';
@InputType()
export class CommentThreadCreateManyWorkspaceInputEnvelope {
@Field(() => [CommentThreadCreateManyWorkspaceInput], { nullable: false })
@Type(() => CommentThreadCreateManyWorkspaceInput)
data!: Array<CommentThreadCreateManyWorkspaceInput>;
@Field(() => Boolean, { nullable: true })
skipDuplicates?: boolean;
}

View File

@ -0,0 +1,17 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateManyWorkspaceInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
}

View File

@ -0,0 +1,21 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateManyInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
}

View File

@ -0,0 +1,30 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateOrConnectWithoutWorkspaceInput } from './comment-thread-create-or-connect-without-workspace.input';
import { CommentThreadCreateManyWorkspaceInputEnvelope } from './comment-thread-create-many-workspace-input-envelope.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
@InputType()
export class CommentThreadCreateNestedManyWithoutWorkspaceInput {
@Field(() => [CommentThreadCreateWithoutWorkspaceInput], { nullable: true })
@Type(() => CommentThreadCreateWithoutWorkspaceInput)
create?: Array<CommentThreadCreateWithoutWorkspaceInput>;
@Field(() => [CommentThreadCreateOrConnectWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadCreateOrConnectWithoutWorkspaceInput)
connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutWorkspaceInput>;
@Field(() => CommentThreadCreateManyWorkspaceInputEnvelope, {
nullable: true,
})
@Type(() => CommentThreadCreateManyWorkspaceInputEnvelope)
createMany?: CommentThreadCreateManyWorkspaceInputEnvelope;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
connect?: Array<CommentThreadWhereUniqueInput>;
}

View File

@ -0,0 +1,25 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateWithoutCommentThreadTargetsInput } from './comment-thread-create-without-comment-thread-targets.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput } from './comment-thread-create-or-connect-without-comment-thread-targets.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
@InputType()
export class CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput {
@Field(() => CommentThreadCreateWithoutCommentThreadTargetsInput, {
nullable: true,
})
@Type(() => CommentThreadCreateWithoutCommentThreadTargetsInput)
create?: CommentThreadCreateWithoutCommentThreadTargetsInput;
@Field(() => CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput, {
nullable: true,
})
@Type(() => CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput)
connectOrCreate?: CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput;
@Field(() => CommentThreadWhereUniqueInput, { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
connect?: CommentThreadWhereUniqueInput;
}

View File

@ -0,0 +1,20 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateWithoutCommentsInput } from './comment-thread-create-without-comments.input';
import { HideField } from '@nestjs/graphql';
import { CommentThreadCreateOrConnectWithoutCommentsInput } from './comment-thread-create-or-connect-without-comments.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
@InputType()
export class CommentThreadCreateNestedOneWithoutCommentsInput {
@HideField()
create?: CommentThreadCreateWithoutCommentsInput;
@HideField()
connectOrCreate?: CommentThreadCreateOrConnectWithoutCommentsInput;
@Field(() => CommentThreadWhereUniqueInput, { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
connect?: CommentThreadWhereUniqueInput;
}

View File

@ -0,0 +1,18 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateWithoutCommentThreadTargetsInput } from './comment-thread-create-without-comment-thread-targets.input';
@InputType()
export class CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput {
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
@Field(() => CommentThreadCreateWithoutCommentThreadTargetsInput, {
nullable: false,
})
@Type(() => CommentThreadCreateWithoutCommentThreadTargetsInput)
create!: CommentThreadCreateWithoutCommentThreadTargetsInput;
}

View File

@ -0,0 +1,16 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateWithoutCommentsInput } from './comment-thread-create-without-comments.input';
@InputType()
export class CommentThreadCreateOrConnectWithoutCommentsInput {
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
@Field(() => CommentThreadCreateWithoutCommentsInput, { nullable: false })
@Type(() => CommentThreadCreateWithoutCommentsInput)
create!: CommentThreadCreateWithoutCommentsInput;
}

View File

@ -0,0 +1,16 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input';
@InputType()
export class CommentThreadCreateOrConnectWithoutWorkspaceInput {
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
@Field(() => CommentThreadCreateWithoutWorkspaceInput, { nullable: false })
@Type(() => CommentThreadCreateWithoutWorkspaceInput)
create!: CommentThreadCreateWithoutWorkspaceInput;
}

View File

@ -0,0 +1,28 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateWithoutCommentThreadTargetsInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {
nullable: true,
})
comments?: CommentCreateNestedManyWithoutCommentThreadInput;
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
}

View File

@ -0,0 +1,28 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateWithoutCommentsInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {
nullable: true,
})
commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput;
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
}

View File

@ -0,0 +1,29 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
@InputType()
export class CommentThreadCreateWithoutWorkspaceInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {
nullable: true,
})
commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput;
@Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {
nullable: true,
})
comments?: CommentCreateNestedManyWithoutCommentThreadInput;
}

View File

@ -0,0 +1,34 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadTargetCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-create-nested-many-without-comment-thread.input';
import { CommentCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-create-nested-many-without-comment-thread.input';
import { WorkspaceCreateNestedOneWithoutCommentThreadsInput } from '../workspace/workspace-create-nested-one-without-comment-threads.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadCreateInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {
nullable: true,
})
commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput;
@Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {
nullable: true,
})
comments?: CommentCreateNestedManyWithoutCommentThreadInput;
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
}

View File

@ -0,0 +1,42 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereInput } from './comment-thread-where.input';
import { Type } from 'class-transformer';
import { CommentThreadOrderByWithAggregationInput } from './comment-thread-order-by-with-aggregation.input';
import { CommentThreadScalarFieldEnum } from './comment-thread-scalar-field.enum';
import { CommentThreadScalarWhereWithAggregatesInput } from './comment-thread-scalar-where-with-aggregates.input';
import { Int } from '@nestjs/graphql';
import { CommentThreadCountAggregateInput } from './comment-thread-count-aggregate.input';
import { CommentThreadMinAggregateInput } from './comment-thread-min-aggregate.input';
import { CommentThreadMaxAggregateInput } from './comment-thread-max-aggregate.input';
@ArgsType()
export class CommentThreadGroupByArgs {
@Field(() => CommentThreadWhereInput, { nullable: true })
@Type(() => CommentThreadWhereInput)
where?: CommentThreadWhereInput;
@Field(() => [CommentThreadOrderByWithAggregationInput], { nullable: true })
orderBy?: Array<CommentThreadOrderByWithAggregationInput>;
@Field(() => [CommentThreadScalarFieldEnum], { nullable: false })
by!: Array<keyof typeof CommentThreadScalarFieldEnum>;
@Field(() => CommentThreadScalarWhereWithAggregatesInput, { nullable: true })
having?: CommentThreadScalarWhereWithAggregatesInput;
@Field(() => Int, { nullable: true })
take?: number;
@Field(() => Int, { nullable: true })
skip?: number;
@Field(() => CommentThreadCountAggregateInput, { nullable: true })
_count?: CommentThreadCountAggregateInput;
@Field(() => CommentThreadMinAggregateInput, { nullable: true })
_min?: CommentThreadMinAggregateInput;
@Field(() => CommentThreadMaxAggregateInput, { nullable: true })
_max?: CommentThreadMaxAggregateInput;
}

View File

@ -0,0 +1,33 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
import { CommentThreadCountAggregate } from './comment-thread-count-aggregate.output';
import { CommentThreadMinAggregate } from './comment-thread-min-aggregate.output';
import { CommentThreadMaxAggregate } from './comment-thread-max-aggregate.output';
@ObjectType()
export class CommentThreadGroupBy {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: false })
createdAt!: Date | string;
@Field(() => Date, { nullable: false })
updatedAt!: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
@Field(() => CommentThreadCountAggregate, { nullable: true })
_count?: CommentThreadCountAggregate;
@Field(() => CommentThreadMinAggregate, { nullable: true })
_min?: CommentThreadMinAggregate;
@Field(() => CommentThreadMaxAggregate, { nullable: true })
_max?: CommentThreadMaxAggregate;
}

View File

@ -0,0 +1,15 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadWhereInput } from './comment-thread-where.input';
@InputType()
export class CommentThreadListRelationFilter {
@Field(() => CommentThreadWhereInput, { nullable: true })
every?: CommentThreadWhereInput;
@Field(() => CommentThreadWhereInput, { nullable: true })
some?: CommentThreadWhereInput;
@Field(() => CommentThreadWhereInput, { nullable: true })
none?: CommentThreadWhereInput;
}

View File

@ -0,0 +1,21 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadMaxAggregateInput {
@Field(() => Boolean, { nullable: true })
id?: true;
@Field(() => Boolean, { nullable: true })
createdAt?: true;
@Field(() => Boolean, { nullable: true })
updatedAt?: true;
@Field(() => Boolean, { nullable: true })
deletedAt?: true;
@HideField()
workspaceId?: true;
}

View File

@ -0,0 +1,21 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadMaxAggregate {
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@HideField()
workspaceId?: string;
}

View File

@ -0,0 +1,22 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadMaxOrderByAggregateInput {
@Field(() => SortOrder, { nullable: true })
id?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
}

View File

@ -0,0 +1,21 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadMinAggregateInput {
@Field(() => Boolean, { nullable: true })
id?: true;
@Field(() => Boolean, { nullable: true })
createdAt?: true;
@Field(() => Boolean, { nullable: true })
updatedAt?: true;
@Field(() => Boolean, { nullable: true })
deletedAt?: true;
@HideField()
workspaceId?: true;
}

View File

@ -0,0 +1,21 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
@ObjectType()
export class CommentThreadMinAggregate {
@Field(() => String, { nullable: true })
id?: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@HideField()
workspaceId?: string;
}

View File

@ -0,0 +1,22 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadMinOrderByAggregateInput {
@Field(() => SortOrder, { nullable: true })
id?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
}

View File

@ -0,0 +1,9 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
@InputType()
export class CommentThreadOrderByRelationAggregateInput {
@Field(() => SortOrder, { nullable: true })
_count?: keyof typeof SortOrder;
}

View File

@ -0,0 +1,34 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
import { CommentThreadCountOrderByAggregateInput } from './comment-thread-count-order-by-aggregate.input';
import { CommentThreadMaxOrderByAggregateInput } from './comment-thread-max-order-by-aggregate.input';
import { CommentThreadMinOrderByAggregateInput } from './comment-thread-min-order-by-aggregate.input';
@InputType()
export class CommentThreadOrderByWithAggregationInput {
@Field(() => SortOrder, { nullable: true })
id?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
@Field(() => CommentThreadCountOrderByAggregateInput, { nullable: true })
_count?: CommentThreadCountOrderByAggregateInput;
@Field(() => CommentThreadMaxOrderByAggregateInput, { nullable: true })
_max?: CommentThreadMaxOrderByAggregateInput;
@Field(() => CommentThreadMinOrderByAggregateInput, { nullable: true })
_min?: CommentThreadMinOrderByAggregateInput;
}

View File

@ -0,0 +1,36 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { SortOrder } from '../prisma/sort-order.enum';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetOrderByRelationAggregateInput } from '../comment-thread-target/comment-thread-target-order-by-relation-aggregate.input';
import { CommentOrderByRelationAggregateInput } from '../comment/comment-order-by-relation-aggregate.input';
import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input';
@InputType()
export class CommentThreadOrderByWithRelationInput {
@Field(() => SortOrder, { nullable: true })
id?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
createdAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
updatedAt?: keyof typeof SortOrder;
@Field(() => SortOrder, { nullable: true })
deletedAt?: keyof typeof SortOrder;
@HideField()
workspaceId?: keyof typeof SortOrder;
@Field(() => CommentThreadTargetOrderByRelationAggregateInput, {
nullable: true,
})
commentThreadTargets?: CommentThreadTargetOrderByRelationAggregateInput;
@Field(() => CommentOrderByRelationAggregateInput, { nullable: true })
comments?: CommentOrderByRelationAggregateInput;
@HideField()
workspace?: WorkspaceOrderByWithRelationInput;
}

View File

@ -0,0 +1,12 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadWhereInput } from './comment-thread-where.input';
@InputType()
export class CommentThreadRelationFilter {
@Field(() => CommentThreadWhereInput, { nullable: true })
is?: CommentThreadWhereInput;
@Field(() => CommentThreadWhereInput, { nullable: true })
isNot?: CommentThreadWhereInput;
}

View File

@ -0,0 +1,14 @@
import { registerEnumType } from '@nestjs/graphql';
export enum CommentThreadScalarFieldEnum {
id = 'id',
createdAt = 'createdAt',
updatedAt = 'updatedAt',
deletedAt = 'deletedAt',
workspaceId = 'workspaceId',
}
registerEnumType(CommentThreadScalarFieldEnum, {
name: 'CommentThreadScalarFieldEnum',
description: undefined,
});

View File

@ -0,0 +1,39 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadScalarWhereWithAggregatesInput {
@Field(() => [CommentThreadScalarWhereWithAggregatesInput], {
nullable: true,
})
AND?: Array<CommentThreadScalarWhereWithAggregatesInput>;
@Field(() => [CommentThreadScalarWhereWithAggregatesInput], {
nullable: true,
})
OR?: Array<CommentThreadScalarWhereWithAggregatesInput>;
@Field(() => [CommentThreadScalarWhereWithAggregatesInput], {
nullable: true,
})
NOT?: Array<CommentThreadScalarWhereWithAggregatesInput>;
@Field(() => StringWithAggregatesFilter, { nullable: true })
id?: StringWithAggregatesFilter;
@Field(() => DateTimeWithAggregatesFilter, { nullable: true })
createdAt?: DateTimeWithAggregatesFilter;
@Field(() => DateTimeWithAggregatesFilter, { nullable: true })
updatedAt?: DateTimeWithAggregatesFilter;
@Field(() => DateTimeNullableWithAggregatesFilter, { nullable: true })
deletedAt?: DateTimeNullableWithAggregatesFilter;
@HideField()
workspaceId?: StringWithAggregatesFilter;
}

View File

@ -0,0 +1,33 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFilter } from '../prisma/string-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadScalarWhereInput {
@Field(() => [CommentThreadScalarWhereInput], { nullable: true })
AND?: Array<CommentThreadScalarWhereInput>;
@Field(() => [CommentThreadScalarWhereInput], { nullable: true })
OR?: Array<CommentThreadScalarWhereInput>;
@Field(() => [CommentThreadScalarWhereInput], { nullable: true })
NOT?: Array<CommentThreadScalarWhereInput>;
@Field(() => StringFilter, { nullable: true })
id?: StringFilter;
@Field(() => DateTimeFilter, { nullable: true })
createdAt?: DateTimeFilter;
@Field(() => DateTimeFilter, { nullable: true })
updatedAt?: DateTimeFilter;
@Field(() => DateTimeNullableFilter, { nullable: true })
deletedAt?: DateTimeNullableFilter;
@HideField()
workspaceId?: StringFilter;
}

View File

@ -0,0 +1,30 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateOrConnectWithoutWorkspaceInput } from './comment-thread-create-or-connect-without-workspace.input';
import { CommentThreadCreateManyWorkspaceInputEnvelope } from './comment-thread-create-many-workspace-input-envelope.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
@InputType()
export class CommentThreadUncheckedCreateNestedManyWithoutWorkspaceInput {
@Field(() => [CommentThreadCreateWithoutWorkspaceInput], { nullable: true })
@Type(() => CommentThreadCreateWithoutWorkspaceInput)
create?: Array<CommentThreadCreateWithoutWorkspaceInput>;
@Field(() => [CommentThreadCreateOrConnectWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadCreateOrConnectWithoutWorkspaceInput)
connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutWorkspaceInput>;
@Field(() => CommentThreadCreateManyWorkspaceInputEnvelope, {
nullable: true,
})
@Type(() => CommentThreadCreateManyWorkspaceInputEnvelope)
createMany?: CommentThreadCreateManyWorkspaceInputEnvelope;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
connect?: Array<CommentThreadWhereUniqueInput>;
}

View File

@ -0,0 +1,27 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input';
@InputType()
export class CommentThreadUncheckedCreateWithoutCommentThreadTargetsInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
@Field(() => CommentUncheckedCreateNestedManyWithoutCommentThreadInput, {
nullable: true,
})
comments?: CommentUncheckedCreateNestedManyWithoutCommentThreadInput;
}

View File

@ -0,0 +1,28 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input';
@InputType()
export class CommentThreadUncheckedCreateWithoutCommentsInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
@Field(
() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput,
{ nullable: true },
)
commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput;
}

View File

@ -0,0 +1,30 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input';
import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input';
@InputType()
export class CommentThreadUncheckedCreateWithoutWorkspaceInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@Field(
() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput,
{ nullable: true },
)
commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput;
@Field(() => CommentUncheckedCreateNestedManyWithoutCommentThreadInput, {
nullable: true,
})
comments?: CommentUncheckedCreateNestedManyWithoutCommentThreadInput;
}

View File

@ -0,0 +1,34 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input';
import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input';
@InputType()
export class CommentThreadUncheckedCreateInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@HideField()
workspaceId!: string;
@Field(
() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput,
{ nullable: true },
)
commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput;
@Field(() => CommentUncheckedCreateNestedManyWithoutCommentThreadInput, {
nullable: true,
})
comments?: CommentUncheckedCreateNestedManyWithoutCommentThreadInput;
}

View File

@ -0,0 +1,20 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
@InputType()
export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
}

View File

@ -0,0 +1,68 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateOrConnectWithoutWorkspaceInput } from './comment-thread-create-or-connect-without-workspace.input';
import { CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput } from './comment-thread-upsert-with-where-unique-without-workspace.input';
import { CommentThreadCreateManyWorkspaceInputEnvelope } from './comment-thread-create-many-workspace-input-envelope.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput } from './comment-thread-update-with-where-unique-without-workspace.input';
import { CommentThreadUpdateManyWithWhereWithoutWorkspaceInput } from './comment-thread-update-many-with-where-without-workspace.input';
import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
@InputType()
export class CommentThreadUncheckedUpdateManyWithoutWorkspaceNestedInput {
@Field(() => [CommentThreadCreateWithoutWorkspaceInput], { nullable: true })
@Type(() => CommentThreadCreateWithoutWorkspaceInput)
create?: Array<CommentThreadCreateWithoutWorkspaceInput>;
@Field(() => [CommentThreadCreateOrConnectWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadCreateOrConnectWithoutWorkspaceInput)
connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutWorkspaceInput>;
@Field(() => [CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput)
upsert?: Array<CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput>;
@Field(() => CommentThreadCreateManyWorkspaceInputEnvelope, {
nullable: true,
})
@Type(() => CommentThreadCreateManyWorkspaceInputEnvelope)
createMany?: CommentThreadCreateManyWorkspaceInputEnvelope;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
set?: Array<CommentThreadWhereUniqueInput>;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
disconnect?: Array<CommentThreadWhereUniqueInput>;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
delete?: Array<CommentThreadWhereUniqueInput>;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
connect?: Array<CommentThreadWhereUniqueInput>;
@Field(() => [CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput)
update?: Array<CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput>;
@Field(() => [CommentThreadUpdateManyWithWhereWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadUpdateManyWithWhereWithoutWorkspaceInput)
updateMany?: Array<CommentThreadUpdateManyWithWhereWithoutWorkspaceInput>;
@Field(() => [CommentThreadScalarWhereInput], { nullable: true })
@Type(() => CommentThreadScalarWhereInput)
deleteMany?: Array<CommentThreadScalarWhereInput>;
}

View File

@ -0,0 +1,24 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadUncheckedUpdateManyInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
}

View File

@ -0,0 +1,30 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input';
@InputType()
export class CommentThreadUncheckedUpdateWithoutCommentThreadTargetsInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@Field(() => CommentUncheckedUpdateManyWithoutCommentThreadNestedInput, {
nullable: true,
})
comments?: CommentUncheckedUpdateManyWithoutCommentThreadNestedInput;
}

View File

@ -0,0 +1,31 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
@InputType()
export class CommentThreadUncheckedUpdateWithoutCommentsInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@Field(
() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput,
{ nullable: true },
)
commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput;
}

View File

@ -0,0 +1,33 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input';
@InputType()
export class CommentThreadUncheckedUpdateWithoutWorkspaceInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(
() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput,
{ nullable: true },
)
commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput;
@Field(() => CommentUncheckedUpdateManyWithoutCommentThreadNestedInput, {
nullable: true,
})
comments?: CommentUncheckedUpdateManyWithoutCommentThreadNestedInput;
}

View File

@ -0,0 +1,37 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input';
@InputType()
export class CommentThreadUncheckedUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@HideField()
workspaceId?: StringFieldUpdateOperationsInput;
@Field(
() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput,
{ nullable: true },
)
commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput;
@Field(() => CommentUncheckedUpdateManyWithoutCommentThreadNestedInput, {
nullable: true,
})
comments?: CommentUncheckedUpdateManyWithoutCommentThreadNestedInput;
}

View File

@ -0,0 +1,20 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
@InputType()
export class CommentThreadUpdateManyMutationInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
}

View File

@ -0,0 +1,16 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
import { Type } from 'class-transformer';
import { CommentThreadUpdateManyMutationInput } from './comment-thread-update-many-mutation.input';
@InputType()
export class CommentThreadUpdateManyWithWhereWithoutWorkspaceInput {
@Field(() => CommentThreadScalarWhereInput, { nullable: false })
@Type(() => CommentThreadScalarWhereInput)
where!: CommentThreadScalarWhereInput;
@Field(() => CommentThreadUpdateManyMutationInput, { nullable: false })
@Type(() => CommentThreadUpdateManyMutationInput)
data!: CommentThreadUpdateManyMutationInput;
}

View File

@ -0,0 +1,68 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateOrConnectWithoutWorkspaceInput } from './comment-thread-create-or-connect-without-workspace.input';
import { CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput } from './comment-thread-upsert-with-where-unique-without-workspace.input';
import { CommentThreadCreateManyWorkspaceInputEnvelope } from './comment-thread-create-many-workspace-input-envelope.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput } from './comment-thread-update-with-where-unique-without-workspace.input';
import { CommentThreadUpdateManyWithWhereWithoutWorkspaceInput } from './comment-thread-update-many-with-where-without-workspace.input';
import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
@InputType()
export class CommentThreadUpdateManyWithoutWorkspaceNestedInput {
@Field(() => [CommentThreadCreateWithoutWorkspaceInput], { nullable: true })
@Type(() => CommentThreadCreateWithoutWorkspaceInput)
create?: Array<CommentThreadCreateWithoutWorkspaceInput>;
@Field(() => [CommentThreadCreateOrConnectWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadCreateOrConnectWithoutWorkspaceInput)
connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutWorkspaceInput>;
@Field(() => [CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput)
upsert?: Array<CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput>;
@Field(() => CommentThreadCreateManyWorkspaceInputEnvelope, {
nullable: true,
})
@Type(() => CommentThreadCreateManyWorkspaceInputEnvelope)
createMany?: CommentThreadCreateManyWorkspaceInputEnvelope;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
set?: Array<CommentThreadWhereUniqueInput>;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
disconnect?: Array<CommentThreadWhereUniqueInput>;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
delete?: Array<CommentThreadWhereUniqueInput>;
@Field(() => [CommentThreadWhereUniqueInput], { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
connect?: Array<CommentThreadWhereUniqueInput>;
@Field(() => [CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput)
update?: Array<CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput>;
@Field(() => [CommentThreadUpdateManyWithWhereWithoutWorkspaceInput], {
nullable: true,
})
@Type(() => CommentThreadUpdateManyWithWhereWithoutWorkspaceInput)
updateMany?: Array<CommentThreadUpdateManyWithWhereWithoutWorkspaceInput>;
@Field(() => [CommentThreadScalarWhereInput], { nullable: true })
@Type(() => CommentThreadScalarWhereInput)
deleteMany?: Array<CommentThreadScalarWhereInput>;
}

View File

@ -0,0 +1,39 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateWithoutCommentThreadTargetsInput } from './comment-thread-create-without-comment-thread-targets.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput } from './comment-thread-create-or-connect-without-comment-thread-targets.input';
import { CommentThreadUpsertWithoutCommentThreadTargetsInput } from './comment-thread-upsert-without-comment-thread-targets.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { CommentThreadUpdateWithoutCommentThreadTargetsInput } from './comment-thread-update-without-comment-thread-targets.input';
@InputType()
export class CommentThreadUpdateOneRequiredWithoutCommentThreadTargetsNestedInput {
@Field(() => CommentThreadCreateWithoutCommentThreadTargetsInput, {
nullable: true,
})
@Type(() => CommentThreadCreateWithoutCommentThreadTargetsInput)
create?: CommentThreadCreateWithoutCommentThreadTargetsInput;
@Field(() => CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput, {
nullable: true,
})
@Type(() => CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput)
connectOrCreate?: CommentThreadCreateOrConnectWithoutCommentThreadTargetsInput;
@Field(() => CommentThreadUpsertWithoutCommentThreadTargetsInput, {
nullable: true,
})
@Type(() => CommentThreadUpsertWithoutCommentThreadTargetsInput)
upsert?: CommentThreadUpsertWithoutCommentThreadTargetsInput;
@Field(() => CommentThreadWhereUniqueInput, { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
connect?: CommentThreadWhereUniqueInput;
@Field(() => CommentThreadUpdateWithoutCommentThreadTargetsInput, {
nullable: true,
})
@Type(() => CommentThreadUpdateWithoutCommentThreadTargetsInput)
update?: CommentThreadUpdateWithoutCommentThreadTargetsInput;
}

View File

@ -0,0 +1,33 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateWithoutCommentsInput } from './comment-thread-create-without-comments.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateOrConnectWithoutCommentsInput } from './comment-thread-create-or-connect-without-comments.input';
import { CommentThreadUpsertWithoutCommentsInput } from './comment-thread-upsert-without-comments.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { CommentThreadUpdateWithoutCommentsInput } from './comment-thread-update-without-comments.input';
@InputType()
export class CommentThreadUpdateOneRequiredWithoutCommentsNestedInput {
@Field(() => CommentThreadCreateWithoutCommentsInput, { nullable: true })
@Type(() => CommentThreadCreateWithoutCommentsInput)
create?: CommentThreadCreateWithoutCommentsInput;
@Field(() => CommentThreadCreateOrConnectWithoutCommentsInput, {
nullable: true,
})
@Type(() => CommentThreadCreateOrConnectWithoutCommentsInput)
connectOrCreate?: CommentThreadCreateOrConnectWithoutCommentsInput;
@Field(() => CommentThreadUpsertWithoutCommentsInput, { nullable: true })
@Type(() => CommentThreadUpsertWithoutCommentsInput)
upsert?: CommentThreadUpsertWithoutCommentsInput;
@Field(() => CommentThreadWhereUniqueInput, { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
connect?: CommentThreadWhereUniqueInput;
@Field(() => CommentThreadUpdateWithoutCommentsInput, { nullable: true })
@Type(() => CommentThreadUpdateWithoutCommentsInput)
update?: CommentThreadUpdateWithoutCommentsInput;
}

View File

@ -0,0 +1,16 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
import { CommentThreadUpdateWithoutWorkspaceInput } from './comment-thread-update-without-workspace.input';
@InputType()
export class CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput {
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
@Field(() => CommentThreadUpdateWithoutWorkspaceInput, { nullable: false })
@Type(() => CommentThreadUpdateWithoutWorkspaceInput)
data!: CommentThreadUpdateWithoutWorkspaceInput;
}

View File

@ -0,0 +1,31 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {
nullable: true,
})
comments?: CommentUpdateManyWithoutCommentThreadNestedInput;
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
}

View File

@ -0,0 +1,31 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadUpdateWithoutCommentsInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {
nullable: true,
})
commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput;
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
}

View File

@ -0,0 +1,32 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
@InputType()
export class CommentThreadUpdateWithoutWorkspaceInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {
nullable: true,
})
commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput;
@Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {
nullable: true,
})
comments?: CommentUpdateManyWithoutCommentThreadNestedInput;
}

View File

@ -0,0 +1,37 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
import { CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-update-many-without-comment-thread-nested.input';
import { CommentUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-update-many-without-comment-thread-nested.input';
import { WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput } from '../workspace/workspace-update-one-required-without-comment-threads-nested.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class CommentThreadUpdateInput {
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
id?: StringFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
createdAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
updatedAt?: DateTimeFieldUpdateOperationsInput;
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {
nullable: true,
})
commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput;
@Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {
nullable: true,
})
comments?: CommentUpdateManyWithoutCommentThreadNestedInput;
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
}

View File

@ -0,0 +1,21 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
import { CommentThreadUpdateWithoutWorkspaceInput } from './comment-thread-update-without-workspace.input';
import { CommentThreadCreateWithoutWorkspaceInput } from './comment-thread-create-without-workspace.input';
@InputType()
export class CommentThreadUpsertWithWhereUniqueWithoutWorkspaceInput {
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
@Field(() => CommentThreadUpdateWithoutWorkspaceInput, { nullable: false })
@Type(() => CommentThreadUpdateWithoutWorkspaceInput)
update!: CommentThreadUpdateWithoutWorkspaceInput;
@Field(() => CommentThreadCreateWithoutWorkspaceInput, { nullable: false })
@Type(() => CommentThreadCreateWithoutWorkspaceInput)
create!: CommentThreadCreateWithoutWorkspaceInput;
}

View File

@ -0,0 +1,20 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadUpdateWithoutCommentThreadTargetsInput } from './comment-thread-update-without-comment-thread-targets.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateWithoutCommentThreadTargetsInput } from './comment-thread-create-without-comment-thread-targets.input';
@InputType()
export class CommentThreadUpsertWithoutCommentThreadTargetsInput {
@Field(() => CommentThreadUpdateWithoutCommentThreadTargetsInput, {
nullable: false,
})
@Type(() => CommentThreadUpdateWithoutCommentThreadTargetsInput)
update!: CommentThreadUpdateWithoutCommentThreadTargetsInput;
@Field(() => CommentThreadCreateWithoutCommentThreadTargetsInput, {
nullable: false,
})
@Type(() => CommentThreadCreateWithoutCommentThreadTargetsInput)
create!: CommentThreadCreateWithoutCommentThreadTargetsInput;
}

View File

@ -0,0 +1,16 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadUpdateWithoutCommentsInput } from './comment-thread-update-without-comments.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateWithoutCommentsInput } from './comment-thread-create-without-comments.input';
@InputType()
export class CommentThreadUpsertWithoutCommentsInput {
@Field(() => CommentThreadUpdateWithoutCommentsInput, { nullable: false })
@Type(() => CommentThreadUpdateWithoutCommentsInput)
update!: CommentThreadUpdateWithoutCommentsInput;
@Field(() => CommentThreadCreateWithoutCommentsInput, { nullable: false })
@Type(() => CommentThreadCreateWithoutCommentsInput)
create!: CommentThreadCreateWithoutCommentsInput;
}

View File

@ -0,0 +1,8 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
@InputType()
export class CommentThreadWhereUniqueInput {
@Field(() => String, { nullable: true })
id?: string;
}

View File

@ -0,0 +1,45 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { StringFilter } from '../prisma/string-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTargetListRelationFilter } from '../comment-thread-target/comment-thread-target-list-relation-filter.input';
import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input';
import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input';
@InputType()
export class CommentThreadWhereInput {
@Field(() => [CommentThreadWhereInput], { nullable: true })
AND?: Array<CommentThreadWhereInput>;
@Field(() => [CommentThreadWhereInput], { nullable: true })
OR?: Array<CommentThreadWhereInput>;
@Field(() => [CommentThreadWhereInput], { nullable: true })
NOT?: Array<CommentThreadWhereInput>;
@Field(() => StringFilter, { nullable: true })
id?: StringFilter;
@Field(() => DateTimeFilter, { nullable: true })
createdAt?: DateTimeFilter;
@Field(() => DateTimeFilter, { nullable: true })
updatedAt?: DateTimeFilter;
@Field(() => DateTimeNullableFilter, { nullable: true })
deletedAt?: DateTimeNullableFilter;
@HideField()
workspaceId?: StringFilter;
@Field(() => CommentThreadTargetListRelationFilter, { nullable: true })
commentThreadTargets?: CommentThreadTargetListRelationFilter;
@Field(() => CommentListRelationFilter, { nullable: true })
comments?: CommentListRelationFilter;
@HideField()
workspace?: WorkspaceRelationFilter;
}

View File

@ -0,0 +1,38 @@
import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { ID } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
import { CommentThreadTarget } from '../comment-thread-target/comment-thread-target.model';
import { Comment } from '../comment/comment.model';
import { Workspace } from '../workspace/workspace.model';
import { CommentThreadCount } from '../comment/comment-thread-count.output';
@ObjectType()
export class CommentThread {
@Field(() => ID, { nullable: false })
id!: string;
@Field(() => Date, { nullable: false })
createdAt!: Date;
@Field(() => Date, { nullable: false })
updatedAt!: Date;
@Field(() => Date, { nullable: true })
deletedAt!: Date | null;
@HideField()
workspaceId!: string;
@Field(() => [CommentThreadTarget], { nullable: true })
commentThreadTargets?: Array<CommentThreadTarget>;
@Field(() => [Comment], { nullable: true })
comments?: Array<Comment>;
@HideField()
workspace?: Workspace;
@HideField()
_count?: CommentThreadCount;
}

View File

@ -0,0 +1,14 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadCreateManyInput } from './comment-thread-create-many.input';
import { Type } from 'class-transformer';
@ArgsType()
export class CreateManyCommentThreadArgs {
@Field(() => [CommentThreadCreateManyInput], { nullable: false })
@Type(() => CommentThreadCreateManyInput)
data!: Array<CommentThreadCreateManyInput>;
@Field(() => Boolean, { nullable: true })
skipDuplicates?: boolean;
}

View File

@ -0,0 +1,11 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadCreateInput } from './comment-thread-create.input';
import { Type } from 'class-transformer';
@ArgsType()
export class CreateOneCommentThreadArgs {
@Field(() => CommentThreadCreateInput, { nullable: false })
@Type(() => CommentThreadCreateInput)
data!: CommentThreadCreateInput;
}

View File

@ -0,0 +1,11 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereInput } from './comment-thread-where.input';
import { Type } from 'class-transformer';
@ArgsType()
export class DeleteManyCommentThreadArgs {
@Field(() => CommentThreadWhereInput, { nullable: true })
@Type(() => CommentThreadWhereInput)
where?: CommentThreadWhereInput;
}

View File

@ -0,0 +1,11 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
@ArgsType()
export class DeleteOneCommentThreadArgs {
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
}

View File

@ -0,0 +1,30 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereInput } from './comment-thread-where.input';
import { Type } from 'class-transformer';
import { CommentThreadOrderByWithRelationInput } from './comment-thread-order-by-with-relation.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Int } from '@nestjs/graphql';
import { CommentThreadScalarFieldEnum } from './comment-thread-scalar-field.enum';
@ArgsType()
export class FindFirstCommentThreadOrThrowArgs {
@Field(() => CommentThreadWhereInput, { nullable: true })
@Type(() => CommentThreadWhereInput)
where?: CommentThreadWhereInput;
@Field(() => [CommentThreadOrderByWithRelationInput], { nullable: true })
orderBy?: Array<CommentThreadOrderByWithRelationInput>;
@Field(() => CommentThreadWhereUniqueInput, { nullable: true })
cursor?: CommentThreadWhereUniqueInput;
@Field(() => Int, { nullable: true })
take?: number;
@Field(() => Int, { nullable: true })
skip?: number;
@Field(() => [CommentThreadScalarFieldEnum], { nullable: true })
distinct?: Array<keyof typeof CommentThreadScalarFieldEnum>;
}

View File

@ -0,0 +1,30 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereInput } from './comment-thread-where.input';
import { Type } from 'class-transformer';
import { CommentThreadOrderByWithRelationInput } from './comment-thread-order-by-with-relation.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Int } from '@nestjs/graphql';
import { CommentThreadScalarFieldEnum } from './comment-thread-scalar-field.enum';
@ArgsType()
export class FindFirstCommentThreadArgs {
@Field(() => CommentThreadWhereInput, { nullable: true })
@Type(() => CommentThreadWhereInput)
where?: CommentThreadWhereInput;
@Field(() => [CommentThreadOrderByWithRelationInput], { nullable: true })
orderBy?: Array<CommentThreadOrderByWithRelationInput>;
@Field(() => CommentThreadWhereUniqueInput, { nullable: true })
cursor?: CommentThreadWhereUniqueInput;
@Field(() => Int, { nullable: true })
take?: number;
@Field(() => Int, { nullable: true })
skip?: number;
@Field(() => [CommentThreadScalarFieldEnum], { nullable: true })
distinct?: Array<keyof typeof CommentThreadScalarFieldEnum>;
}

View File

@ -0,0 +1,30 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereInput } from './comment-thread-where.input';
import { Type } from 'class-transformer';
import { CommentThreadOrderByWithRelationInput } from './comment-thread-order-by-with-relation.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Int } from '@nestjs/graphql';
import { CommentThreadScalarFieldEnum } from './comment-thread-scalar-field.enum';
@ArgsType()
export class FindManyCommentThreadArgs {
@Field(() => CommentThreadWhereInput, { nullable: true })
@Type(() => CommentThreadWhereInput)
where?: CommentThreadWhereInput;
@Field(() => [CommentThreadOrderByWithRelationInput], { nullable: true })
orderBy?: Array<CommentThreadOrderByWithRelationInput>;
@Field(() => CommentThreadWhereUniqueInput, { nullable: true })
cursor?: CommentThreadWhereUniqueInput;
@Field(() => Int, { nullable: true })
take?: number;
@Field(() => Int, { nullable: true })
skip?: number;
@Field(() => [CommentThreadScalarFieldEnum], { nullable: true })
distinct?: Array<keyof typeof CommentThreadScalarFieldEnum>;
}

View File

@ -0,0 +1,11 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
@ArgsType()
export class FindUniqueCommentThreadOrThrowArgs {
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
}

View File

@ -0,0 +1,11 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
@ArgsType()
export class FindUniqueCommentThreadArgs {
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
}

View File

@ -0,0 +1,16 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadUpdateManyMutationInput } from './comment-thread-update-many-mutation.input';
import { Type } from 'class-transformer';
import { CommentThreadWhereInput } from './comment-thread-where.input';
@ArgsType()
export class UpdateManyCommentThreadArgs {
@Field(() => CommentThreadUpdateManyMutationInput, { nullable: false })
@Type(() => CommentThreadUpdateManyMutationInput)
data!: CommentThreadUpdateManyMutationInput;
@Field(() => CommentThreadWhereInput, { nullable: true })
@Type(() => CommentThreadWhereInput)
where?: CommentThreadWhereInput;
}

View File

@ -0,0 +1,16 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadUpdateInput } from './comment-thread-update.input';
import { Type } from 'class-transformer';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
@ArgsType()
export class UpdateOneCommentThreadArgs {
@Field(() => CommentThreadUpdateInput, { nullable: false })
@Type(() => CommentThreadUpdateInput)
data!: CommentThreadUpdateInput;
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
}

View File

@ -0,0 +1,21 @@
import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateInput } from './comment-thread-create.input';
import { CommentThreadUpdateInput } from './comment-thread-update.input';
@ArgsType()
export class UpsertOneCommentThreadArgs {
@Field(() => CommentThreadWhereUniqueInput, { nullable: false })
@Type(() => CommentThreadWhereUniqueInput)
where!: CommentThreadWhereUniqueInput;
@Field(() => CommentThreadCreateInput, { nullable: false })
@Type(() => CommentThreadCreateInput)
create!: CommentThreadCreateInput;
@Field(() => CommentThreadUpdateInput, { nullable: false })
@Type(() => CommentThreadUpdateInput)
update!: CommentThreadUpdateInput;
}