Add "show company / people" view and "Notes" concept (#528)
* Begin adding show view and refactoring threads to become notes * Progress on design * Progress redesign timeline * Dropdown button, design improvement * Open comment thread edit mode in drawer * Autosave local storage and commentThreadcount * Improve display and fix missing key issue * Remove some hardcoded CSS properties * Create button * Split company show into ui/business + fix eslint * Fix font weight * Begin auto-save on edit mode * Save server-side query result to Apollo cache * Fix save behavior * Refetch timeline after creating note * Rename createCommentThreadWithComment * Improve styling * Revert "Improve styling" This reverts commit 9fbbf2db006e529330edc64f3eb8ff9ecdde6bb0. * Improve CSS styling * Bring back border radius inadvertently removed * padding adjustment * Improve blocknote design * Improve edit mode display * Remove Comments.tsx * Remove irrelevant comment stories * Removed un-necessary panel component * stop using fragment, move trash icon * Add a basic story for CompanyShow * Add a basic People show view * Fix storybook tests * Add very basic Person story * Refactor PR1 * Refactor part 2 * Refactor part 3 * Refactor part 4 * Fix tests --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -11,6 +11,15 @@ export class CommentThreadCountAggregateInput {
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
authorId?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
body?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
title?: true;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: true;
|
||||
|
||||
|
||||
@ -12,6 +12,15 @@ export class CommentThreadCountAggregate {
|
||||
@HideField()
|
||||
workspaceId!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
authorId!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
body!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
title!: number;
|
||||
|
||||
@HideField()
|
||||
deletedAt!: number;
|
||||
|
||||
|
||||
@ -12,6 +12,15 @@ export class CommentThreadCountOrderByAggregateInput {
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
title?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -0,0 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentThreadCreateManyAuthorInput } from './comment-thread-create-many-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateManyAuthorInputEnvelope {
|
||||
|
||||
@Field(() => [CommentThreadCreateManyAuthorInput], {nullable:false})
|
||||
@Type(() => CommentThreadCreateManyAuthorInput)
|
||||
data!: Array<CommentThreadCreateManyAuthorInput>;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
skipDuplicates?: boolean;
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateManyAuthorInput {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
}
|
||||
@ -11,6 +11,15 @@ export class CommentThreadCreateManyWorkspaceInput {
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -14,6 +14,15 @@ export class CommentThreadCreateManyInput {
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentThreadCreateOrConnectWithoutAuthorInput } from './comment-thread-create-or-connect-without-author.input';
|
||||
import { CommentThreadCreateManyAuthorInputEnvelope } from './comment-thread-create-many-author-input-envelope.input';
|
||||
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateNestedManyWithoutAuthorInput {
|
||||
|
||||
@Field(() => [CommentThreadCreateWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadCreateWithoutAuthorInput)
|
||||
create?: Array<CommentThreadCreateWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadCreateOrConnectWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadCreateOrConnectWithoutAuthorInput)
|
||||
connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAuthorInput>;
|
||||
|
||||
@Field(() => CommentThreadCreateManyAuthorInputEnvelope, {nullable:true})
|
||||
@Type(() => CommentThreadCreateManyAuthorInputEnvelope)
|
||||
createMany?: CommentThreadCreateManyAuthorInputEnvelope;
|
||||
|
||||
@Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CommentThreadWhereUniqueInput)
|
||||
connect?: Array<CommentThreadWhereUniqueInput>;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateOrConnectWithoutAuthorInput {
|
||||
|
||||
@Field(() => CommentThreadWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CommentThreadWhereUniqueInput)
|
||||
where!: CommentThreadWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentThreadCreateWithoutAuthorInput, {nullable:false})
|
||||
@Type(() => CommentThreadCreateWithoutAuthorInput)
|
||||
create!: CommentThreadCreateWithoutAuthorInput;
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { HideField } 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';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateWithoutAuthorInput {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => CommentThreadTargetCreateNestedManyWithoutCommentThreadInput, {nullable:true})
|
||||
commentThreadTargets?: CommentThreadTargetCreateNestedManyWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {nullable:true})
|
||||
comments?: CommentCreateNestedManyWithoutCommentThreadInput;
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
|
||||
}
|
||||
@ -4,6 +4,7 @@ import * as Validator from 'class-validator';
|
||||
import { HideField } 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 { UserCreateNestedOneWithoutCommentThreadInput } from '../user/user-create-nested-one-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateWithoutCommentThreadTargetsInput {
|
||||
@ -13,6 +14,12 @@ export class CommentThreadCreateWithoutCommentThreadTargetsInput {
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@ -27,4 +34,7 @@ export class CommentThreadCreateWithoutCommentThreadTargetsInput {
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
|
||||
author!: UserCreateNestedOneWithoutCommentThreadInput;
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@ import * as Validator from 'class-validator';
|
||||
import { HideField } 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 { UserCreateNestedOneWithoutCommentThreadInput } from '../user/user-create-nested-one-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateWithoutCommentsInput {
|
||||
@ -13,6 +14,12 @@ export class CommentThreadCreateWithoutCommentsInput {
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@ -27,4 +34,7 @@ export class CommentThreadCreateWithoutCommentsInput {
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
|
||||
author!: UserCreateNestedOneWithoutCommentThreadInput;
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@ import * as Validator from 'class-validator';
|
||||
import { HideField } 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 { UserCreateNestedOneWithoutCommentThreadInput } from '../user/user-create-nested-one-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateWithoutWorkspaceInput {
|
||||
@ -13,6 +14,12 @@ export class CommentThreadCreateWithoutWorkspaceInput {
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@ -27,4 +34,7 @@ export class CommentThreadCreateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {nullable:true})
|
||||
comments?: CommentCreateNestedManyWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
|
||||
author!: UserCreateNestedOneWithoutCommentThreadInput;
|
||||
}
|
||||
|
||||
@ -5,6 +5,7 @@ import { HideField } 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 { UserCreateNestedOneWithoutCommentThreadInput } from '../user/user-create-nested-one-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadCreateInput {
|
||||
@ -14,6 +15,12 @@ export class CommentThreadCreateInput {
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@ -31,4 +38,7 @@ export class CommentThreadCreateInput {
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
|
||||
author!: UserCreateNestedOneWithoutCommentThreadInput;
|
||||
}
|
||||
|
||||
@ -17,6 +17,15 @@ export class CommentThreadGroupBy {
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -11,6 +11,15 @@ export class CommentThreadMaxAggregateInput {
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
authorId?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
body?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
title?: true;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: true;
|
||||
|
||||
|
||||
@ -14,6 +14,15 @@ export class CommentThreadMaxAggregate {
|
||||
@HideField()
|
||||
workspaceId?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
authorId?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -12,6 +12,15 @@ export class CommentThreadMaxOrderByAggregateInput {
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
title?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -11,6 +11,15 @@ export class CommentThreadMinAggregateInput {
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
authorId?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
body?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
title?: true;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: true;
|
||||
|
||||
|
||||
@ -14,6 +14,15 @@ export class CommentThreadMinAggregate {
|
||||
@HideField()
|
||||
workspaceId?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
authorId?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -12,6 +12,15 @@ export class CommentThreadMinOrderByAggregateInput {
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
title?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -15,6 +15,15 @@ export class CommentThreadOrderByWithAggregationInput {
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
title?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@ 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';
|
||||
import { UserOrderByWithRelationInput } from '../user/user-order-by-with-relation.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadOrderByWithRelationInput {
|
||||
@ -15,6 +16,15 @@ export class CommentThreadOrderByWithRelationInput {
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
title?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@ -32,4 +42,7 @@ export class CommentThreadOrderByWithRelationInput {
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceOrderByWithRelationInput;
|
||||
|
||||
@Field(() => UserOrderByWithRelationInput, {nullable:true})
|
||||
author?: UserOrderByWithRelationInput;
|
||||
}
|
||||
|
||||
@ -3,6 +3,9 @@ import { registerEnumType } from '@nestjs/graphql';
|
||||
export enum CommentThreadScalarFieldEnum {
|
||||
id = "id",
|
||||
workspaceId = "workspaceId",
|
||||
authorId = "authorId",
|
||||
body = "body",
|
||||
title = "title",
|
||||
deletedAt = "deletedAt",
|
||||
createdAt = "createdAt",
|
||||
updatedAt = "updatedAt"
|
||||
|
||||
@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { StringNullableWithAggregatesFilter } from '../prisma/string-nullable-with-aggregates-filter.input';
|
||||
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
|
||||
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
|
||||
|
||||
@ -23,6 +24,15 @@ export class CommentThreadScalarWhereWithAggregatesInput {
|
||||
@HideField()
|
||||
workspaceId?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
authorId?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringNullableWithAggregatesFilter, {nullable:true})
|
||||
body?: StringNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringNullableWithAggregatesFilter, {nullable:true})
|
||||
title?: StringNullableWithAggregatesFilter;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: DateTimeNullableWithAggregatesFilter;
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
|
||||
@ -23,6 +24,15 @@ export class CommentThreadScalarWhereInput {
|
||||
@HideField()
|
||||
workspaceId?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
authorId?: StringFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, {nullable:true})
|
||||
body?: StringNullableFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, {nullable:true})
|
||||
title?: StringNullableFilter;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: DateTimeNullableFilter;
|
||||
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentThreadCreateOrConnectWithoutAuthorInput } from './comment-thread-create-or-connect-without-author.input';
|
||||
import { CommentThreadCreateManyAuthorInputEnvelope } from './comment-thread-create-many-author-input-envelope.input';
|
||||
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUncheckedCreateNestedManyWithoutAuthorInput {
|
||||
|
||||
@Field(() => [CommentThreadCreateWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadCreateWithoutAuthorInput)
|
||||
create?: Array<CommentThreadCreateWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadCreateOrConnectWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadCreateOrConnectWithoutAuthorInput)
|
||||
connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAuthorInput>;
|
||||
|
||||
@Field(() => CommentThreadCreateManyAuthorInputEnvelope, {nullable:true})
|
||||
@Type(() => CommentThreadCreateManyAuthorInputEnvelope)
|
||||
createMany?: CommentThreadCreateManyAuthorInputEnvelope;
|
||||
|
||||
@Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
|
||||
@Type(() => CommentThreadWhereUniqueInput)
|
||||
connect?: Array<CommentThreadWhereUniqueInput>;
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
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 CommentThreadUncheckedCreateWithoutAuthorInput {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true})
|
||||
commentThreadTargets?: CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => CommentUncheckedCreateNestedManyWithoutCommentThreadInput, {nullable:true})
|
||||
comments?: CommentUncheckedCreateNestedManyWithoutCommentThreadInput;
|
||||
}
|
||||
@ -15,6 +15,15 @@ export class CommentThreadUncheckedCreateWithoutCommentThreadTargetsInput {
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -15,6 +15,15 @@ export class CommentThreadUncheckedCreateWithoutCommentsInput {
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -13,6 +13,15 @@ export class CommentThreadUncheckedCreateWithoutWorkspaceInput {
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -16,6 +16,15 @@ export class CommentThreadUncheckedCreateInput {
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title?: string;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -0,0 +1,59 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentThreadCreateOrConnectWithoutAuthorInput } from './comment-thread-create-or-connect-without-author.input';
|
||||
import { CommentThreadUpsertWithWhereUniqueWithoutAuthorInput } from './comment-thread-upsert-with-where-unique-without-author.input';
|
||||
import { CommentThreadCreateManyAuthorInputEnvelope } from './comment-thread-create-many-author-input-envelope.input';
|
||||
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
|
||||
import { CommentThreadUpdateWithWhereUniqueWithoutAuthorInput } from './comment-thread-update-with-where-unique-without-author.input';
|
||||
import { CommentThreadUpdateManyWithWhereWithoutAuthorInput } from './comment-thread-update-many-with-where-without-author.input';
|
||||
import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput {
|
||||
|
||||
@Field(() => [CommentThreadCreateWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadCreateWithoutAuthorInput)
|
||||
create?: Array<CommentThreadCreateWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadCreateOrConnectWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadCreateOrConnectWithoutAuthorInput)
|
||||
connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadUpsertWithWhereUniqueWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadUpsertWithWhereUniqueWithoutAuthorInput)
|
||||
upsert?: Array<CommentThreadUpsertWithWhereUniqueWithoutAuthorInput>;
|
||||
|
||||
@Field(() => CommentThreadCreateManyAuthorInputEnvelope, {nullable:true})
|
||||
@Type(() => CommentThreadCreateManyAuthorInputEnvelope)
|
||||
createMany?: CommentThreadCreateManyAuthorInputEnvelope;
|
||||
|
||||
@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(() => [CommentThreadUpdateWithWhereUniqueWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadUpdateWithWhereUniqueWithoutAuthorInput)
|
||||
update?: Array<CommentThreadUpdateWithWhereUniqueWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadUpdateManyWithWhereWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadUpdateManyWithWhereWithoutAuthorInput)
|
||||
updateMany?: Array<CommentThreadUpdateManyWithWhereWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadScalarWhereInput], {nullable:true})
|
||||
@Type(() => CommentThreadScalarWhereInput)
|
||||
deleteMany?: Array<CommentThreadScalarWhereInput>;
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUncheckedUpdateManyWithoutCommentThreadInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
}
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -11,6 +12,15 @@ export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
|
||||
@ -14,6 +15,15 @@ export class CommentThreadUncheckedUpdateManyInput {
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/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 CommentThreadUncheckedUpdateWithoutAuthorInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
|
||||
commentThreadTargets?: CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput;
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
|
||||
comments?: CommentUncheckedUpdateManyWithoutCommentThreadNestedInput;
|
||||
}
|
||||
@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { CommentUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment/comment-unchecked-update-many-without-comment-thread-nested.input';
|
||||
@ -15,6 +16,15 @@ export class CommentThreadUncheckedUpdateWithoutCommentThreadTargetsInput {
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
|
||||
@ -15,6 +16,15 @@ export class CommentThreadUncheckedUpdateWithoutCommentsInput {
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -13,6 +14,15 @@ export class CommentThreadUncheckedUpdateWithoutWorkspaceInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { CommentThreadTargetUncheckedUpdateManyWithoutCommentThreadNestedInput } from '../comment-thread-target/comment-thread-target-unchecked-update-many-without-comment-thread-nested.input';
|
||||
@ -16,6 +17,15 @@ export class CommentThreadUncheckedUpdateInput {
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -11,6 +12,12 @@ export class CommentThreadUpdateManyMutationInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
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 CommentThreadUpdateManyWithWhereWithoutAuthorInput {
|
||||
|
||||
@Field(() => CommentThreadScalarWhereInput, {nullable:false})
|
||||
@Type(() => CommentThreadScalarWhereInput)
|
||||
where!: CommentThreadScalarWhereInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateManyMutationInput, {nullable:false})
|
||||
@Type(() => CommentThreadUpdateManyMutationInput)
|
||||
data!: CommentThreadUpdateManyMutationInput;
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentThreadCreateOrConnectWithoutAuthorInput } from './comment-thread-create-or-connect-without-author.input';
|
||||
import { CommentThreadUpsertWithWhereUniqueWithoutAuthorInput } from './comment-thread-upsert-with-where-unique-without-author.input';
|
||||
import { CommentThreadCreateManyAuthorInputEnvelope } from './comment-thread-create-many-author-input-envelope.input';
|
||||
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
|
||||
import { CommentThreadUpdateWithWhereUniqueWithoutAuthorInput } from './comment-thread-update-with-where-unique-without-author.input';
|
||||
import { CommentThreadUpdateManyWithWhereWithoutAuthorInput } from './comment-thread-update-many-with-where-without-author.input';
|
||||
import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUpdateManyWithoutAuthorNestedInput {
|
||||
|
||||
@Field(() => [CommentThreadCreateWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadCreateWithoutAuthorInput)
|
||||
create?: Array<CommentThreadCreateWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadCreateOrConnectWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadCreateOrConnectWithoutAuthorInput)
|
||||
connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadUpsertWithWhereUniqueWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadUpsertWithWhereUniqueWithoutAuthorInput)
|
||||
upsert?: Array<CommentThreadUpsertWithWhereUniqueWithoutAuthorInput>;
|
||||
|
||||
@Field(() => CommentThreadCreateManyAuthorInputEnvelope, {nullable:true})
|
||||
@Type(() => CommentThreadCreateManyAuthorInputEnvelope)
|
||||
createMany?: CommentThreadCreateManyAuthorInputEnvelope;
|
||||
|
||||
@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(() => [CommentThreadUpdateWithWhereUniqueWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadUpdateWithWhereUniqueWithoutAuthorInput)
|
||||
update?: Array<CommentThreadUpdateWithWhereUniqueWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadUpdateManyWithWhereWithoutAuthorInput], {nullable:true})
|
||||
@Type(() => CommentThreadUpdateManyWithWhereWithoutAuthorInput)
|
||||
updateMany?: Array<CommentThreadUpdateManyWithWhereWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentThreadScalarWhereInput], {nullable:true})
|
||||
@Type(() => CommentThreadScalarWhereInput)
|
||||
deleteMany?: Array<CommentThreadScalarWhereInput>;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentThreadUpdateWithoutAuthorInput } from './comment-thread-update-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUpdateWithWhereUniqueWithoutAuthorInput {
|
||||
|
||||
@Field(() => CommentThreadWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CommentThreadWhereUniqueInput)
|
||||
where!: CommentThreadWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateWithoutAuthorInput, {nullable:false})
|
||||
@Type(() => CommentThreadUpdateWithoutAuthorInput)
|
||||
data!: CommentThreadUpdateWithoutAuthorInput;
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/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';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUpdateWithoutAuthorInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
|
||||
commentThreadTargets?: CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput;
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
|
||||
comments?: CommentUpdateManyWithoutCommentThreadNestedInput;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
|
||||
}
|
||||
@ -1,11 +1,13 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { UserUpdateOneRequiredWithoutCommentThreadNestedInput } from '../user/user-update-one-required-without-comment-thread-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
|
||||
@ -13,6 +15,12 @@ export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@ -27,4 +35,7 @@ export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
|
||||
|
||||
@Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
|
||||
author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
|
||||
}
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { UserUpdateOneRequiredWithoutCommentThreadNestedInput } from '../user/user-update-one-required-without-comment-thread-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUpdateWithoutCommentsInput {
|
||||
@ -13,6 +15,12 @@ export class CommentThreadUpdateWithoutCommentsInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@ -27,4 +35,7 @@ export class CommentThreadUpdateWithoutCommentsInput {
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
|
||||
|
||||
@Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
|
||||
author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
|
||||
}
|
||||
|
||||
@ -1,11 +1,13 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { UserUpdateOneRequiredWithoutCommentThreadNestedInput } from '../user/user-update-one-required-without-comment-thread-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUpdateWithoutWorkspaceInput {
|
||||
@ -13,6 +15,12 @@ export class CommentThreadUpdateWithoutWorkspaceInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@ -27,4 +35,7 @@ export class CommentThreadUpdateWithoutWorkspaceInput {
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
|
||||
comments?: CommentUpdateManyWithoutCommentThreadNestedInput;
|
||||
|
||||
@Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
|
||||
author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
|
||||
}
|
||||
|
||||
@ -1,12 +1,14 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/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 { UserUpdateOneRequiredWithoutCommentThreadNestedInput } from '../user/user-update-one-required-without-comment-thread-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUpdateInput {
|
||||
@ -14,6 +16,12 @@ export class CommentThreadUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
body?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
title?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@ -31,4 +39,7 @@ export class CommentThreadUpdateInput {
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
|
||||
|
||||
@Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
|
||||
author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
|
||||
}
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentThreadUpdateWithoutAuthorInput } from './comment-thread-update-without-author.input';
|
||||
import { CommentThreadCreateWithoutAuthorInput } from './comment-thread-create-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadUpsertWithWhereUniqueWithoutAuthorInput {
|
||||
|
||||
@Field(() => CommentThreadWhereUniqueInput, {nullable:false})
|
||||
@Type(() => CommentThreadWhereUniqueInput)
|
||||
where!: CommentThreadWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateWithoutAuthorInput, {nullable:false})
|
||||
@Type(() => CommentThreadUpdateWithoutAuthorInput)
|
||||
update!: CommentThreadUpdateWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentThreadCreateWithoutAuthorInput, {nullable:false})
|
||||
@Type(() => CommentThreadCreateWithoutAuthorInput)
|
||||
create!: CommentThreadCreateWithoutAuthorInput;
|
||||
}
|
||||
@ -2,11 +2,13 @@ import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { StringNullableFilter } from '../prisma/string-nullable-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
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';
|
||||
import { UserRelationFilter } from '../user/user-relation-filter.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentThreadWhereInput {
|
||||
@ -26,6 +28,15 @@ export class CommentThreadWhereInput {
|
||||
@HideField()
|
||||
workspaceId?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
authorId?: StringFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, {nullable:true})
|
||||
body?: StringNullableFilter;
|
||||
|
||||
@Field(() => StringNullableFilter, {nullable:true})
|
||||
title?: StringNullableFilter;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: DateTimeNullableFilter;
|
||||
|
||||
@ -43,4 +54,7 @@ export class CommentThreadWhereInput {
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceRelationFilter;
|
||||
|
||||
@Field(() => UserRelationFilter, {nullable:true})
|
||||
author?: UserRelationFilter;
|
||||
}
|
||||
|
||||
@ -5,6 +5,7 @@ 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 { User } from '../user/user.model';
|
||||
import { CommentThreadCount } from '../comment/comment-thread-count.output';
|
||||
|
||||
@ObjectType()
|
||||
@ -16,6 +17,15 @@ export class CommentThread {
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
body!: string | null;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
title!: string | null;
|
||||
|
||||
@HideField()
|
||||
deletedAt!: Date | null;
|
||||
|
||||
@ -34,6 +44,9 @@ export class CommentThread {
|
||||
@HideField()
|
||||
workspace?: Workspace;
|
||||
|
||||
@Field(() => User, {nullable:false})
|
||||
author?: User;
|
||||
|
||||
@HideField()
|
||||
_count?: CommentThreadCount;
|
||||
}
|
||||
|
||||
@ -13,4 +13,7 @@ export class UserCount {
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
comments?: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
CommentThread?: number;
|
||||
}
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutCommentThreadInput } from './user-create-without-comment-thread.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateOrConnectWithoutCommentThreadInput } from './user-create-or-connect-without-comment-thread.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateNestedOneWithoutCommentThreadInput {
|
||||
|
||||
@Field(() => UserCreateWithoutCommentThreadInput, {nullable:true})
|
||||
@Type(() => UserCreateWithoutCommentThreadInput)
|
||||
create?: UserCreateWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => UserCreateOrConnectWithoutCommentThreadInput, {nullable:true})
|
||||
@Type(() => UserCreateOrConnectWithoutCommentThreadInput)
|
||||
connectOrCreate?: UserCreateOrConnectWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, {nullable:true})
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutCommentThreadInput } from './user-create-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateOrConnectWithoutCommentThreadInput {
|
||||
|
||||
@Field(() => UserWhereUniqueInput, {nullable:false})
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
where!: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserCreateWithoutCommentThreadInput, {nullable:false})
|
||||
@Type(() => UserCreateWithoutCommentThreadInput)
|
||||
create!: UserCreateWithoutCommentThreadInput;
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input';
|
||||
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
|
||||
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutCommentThreadInput {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
firstName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
lastName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
email!: string;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
@Validator.IsBoolean()
|
||||
@Validator.IsOptional()
|
||||
emailVerified?: boolean;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
avatarUrl?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
locale!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
@Validator.IsDate()
|
||||
@Validator.IsOptional()
|
||||
lastSeen?: Date | string;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
@Validator.IsBoolean()
|
||||
@Validator.IsOptional()
|
||||
disabled?: boolean;
|
||||
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => GraphQLJSON, {nullable:true})
|
||||
@Validator.IsJSON()
|
||||
@Validator.IsOptional()
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberCreateNestedOneWithoutUserInput;
|
||||
|
||||
@Field(() => CompanyCreateNestedManyWithoutAccountOwnerInput, {nullable:true})
|
||||
companies?: CompanyCreateNestedManyWithoutAccountOwnerInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput;
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input';
|
||||
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
|
||||
import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutCommentsInput {
|
||||
@ -83,4 +84,7 @@ export class UserCreateWithoutCommentsInput {
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput;
|
||||
|
||||
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input';
|
||||
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
|
||||
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutCompaniesInput {
|
||||
@ -83,4 +84,7 @@ export class UserCreateWithoutCompaniesInput {
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentCreateNestedManyWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-create-nested-one-without-user.input';
|
||||
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
|
||||
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutRefreshTokensInput {
|
||||
@ -83,4 +84,7 @@ export class UserCreateWithoutRefreshTokensInput {
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentCreateNestedManyWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
|
||||
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateWithoutWorkspaceMemberInput {
|
||||
@ -83,4 +84,7 @@ export class UserCreateWithoutWorkspaceMemberInput {
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentCreateNestedManyWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -7,6 +7,7 @@ import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-mem
|
||||
import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/company-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-create-nested-many-without-user.input';
|
||||
import { CommentCreateNestedManyWithoutAuthorInput } from '../comment/comment-create-nested-many-without-author.input';
|
||||
import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserCreateInput {
|
||||
@ -87,4 +88,7 @@ export class UserCreateInput {
|
||||
|
||||
@Field(() => CommentCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentCreateNestedManyWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ import { WorkspaceMemberOrderByWithRelationInput } from '../workspace-member/wor
|
||||
import { CompanyOrderByRelationAggregateInput } from '../company/company-order-by-relation-aggregate.input';
|
||||
import { RefreshTokenOrderByRelationAggregateInput } from '../refresh-token/refresh-token-order-by-relation-aggregate.input';
|
||||
import { CommentOrderByRelationAggregateInput } from '../comment/comment-order-by-relation-aggregate.input';
|
||||
import { CommentThreadOrderByRelationAggregateInput } from '../comment-thread/comment-thread-order-by-relation-aggregate.input';
|
||||
|
||||
@InputType()
|
||||
export class UserOrderByWithRelationInput {
|
||||
@ -66,4 +67,7 @@ export class UserOrderByWithRelationInput {
|
||||
|
||||
@Field(() => CommentOrderByRelationAggregateInput, {nullable:true})
|
||||
comments?: CommentOrderByRelationAggregateInput;
|
||||
|
||||
@Field(() => CommentThreadOrderByRelationAggregateInput, {nullable:true})
|
||||
CommentThread?: CommentThreadOrderByRelationAggregateInput;
|
||||
}
|
||||
|
||||
@ -0,0 +1,90 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input';
|
||||
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateWithoutCommentThreadInput {
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
id?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
firstName?: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
lastName?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsEmail()
|
||||
email!: string;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
@Validator.IsBoolean()
|
||||
@Validator.IsOptional()
|
||||
emailVerified?: boolean;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
avatarUrl?: string;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
@Validator.IsString()
|
||||
locale!: string;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
@Validator.IsString()
|
||||
@Validator.IsOptional()
|
||||
phoneNumber?: string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
@Validator.IsDate()
|
||||
@Validator.IsOptional()
|
||||
lastSeen?: Date | string;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
@Validator.IsBoolean()
|
||||
@Validator.IsOptional()
|
||||
disabled?: boolean;
|
||||
|
||||
@HideField()
|
||||
passwordHash?: string;
|
||||
|
||||
@Field(() => GraphQLJSON, {nullable:true})
|
||||
@Validator.IsJSON()
|
||||
@Validator.IsOptional()
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, {nullable:true})
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput;
|
||||
|
||||
@Field(() => CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput, {nullable:true})
|
||||
companies?: CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
|
||||
|
||||
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input';
|
||||
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateWithoutCommentsInput {
|
||||
@ -83,4 +84,7 @@ export class UserUncheckedCreateWithoutCommentsInput {
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input';
|
||||
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
|
||||
import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateWithoutCompaniesInput {
|
||||
@ -83,4 +84,7 @@ export class UserUncheckedCreateWithoutCompaniesInput {
|
||||
|
||||
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../workspace-member/workspace-member-unchecked-create-nested-one-without-user.input';
|
||||
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
|
||||
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
|
||||
import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateWithoutRefreshTokensInput {
|
||||
@ -83,4 +84,7 @@ export class UserUncheckedCreateWithoutRefreshTokensInput {
|
||||
|
||||
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ import { GraphQLJSON } from 'graphql-type-json';
|
||||
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
|
||||
import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateWithoutWorkspaceMemberInput {
|
||||
@ -83,4 +84,7 @@ export class UserUncheckedCreateWithoutWorkspaceMemberInput {
|
||||
|
||||
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -7,6 +7,7 @@ import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../work
|
||||
import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../company/company-unchecked-create-nested-many-without-account-owner.input';
|
||||
import { RefreshTokenUncheckedCreateNestedManyWithoutUserInput } from '../refresh-token/refresh-token-unchecked-create-nested-many-without-user.input';
|
||||
import { CommentUncheckedCreateNestedManyWithoutAuthorInput } from '../comment/comment-unchecked-create-nested-many-without-author.input';
|
||||
import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedCreateInput {
|
||||
@ -87,4 +88,7 @@ export class UserUncheckedCreateInput {
|
||||
|
||||
@Field(() => CommentUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
|
||||
}
|
||||
|
||||
@ -0,0 +1,77 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import * as Validator from 'class-validator';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
|
||||
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
|
||||
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateWithoutCommentThreadInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, {nullable:true})
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, {nullable:true})
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, {nullable:true})
|
||||
@Validator.IsJSON()
|
||||
@Validator.IsOptional()
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput, {nullable:true})
|
||||
companies?: CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
|
||||
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
|
||||
import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateWithoutCommentsInput {
|
||||
@ -70,4 +71,7 @@ export class UserUncheckedUpdateWithoutCommentsInput {
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
|
||||
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
|
||||
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
|
||||
import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateWithoutCompaniesInput {
|
||||
@ -70,4 +71,7 @@ export class UserUncheckedUpdateWithoutCompaniesInput {
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-unchecked-update-one-without-user-nested.input';
|
||||
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
|
||||
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
|
||||
import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateWithoutRefreshTokensInput {
|
||||
@ -70,4 +71,7 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput {
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
|
||||
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
|
||||
import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
|
||||
@ -70,4 +71,7 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../work
|
||||
import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-unchecked-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUncheckedUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-unchecked-update-many-without-user-nested.input';
|
||||
import { CommentUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment/comment-unchecked-update-many-without-author-nested.input';
|
||||
import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUncheckedUpdateInput {
|
||||
@ -74,4 +75,7 @@ export class UserUncheckedUpdateInput {
|
||||
|
||||
@Field(() => CommentUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -0,0 +1,32 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateWithoutCommentThreadInput } from './user-create-without-comment-thread.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateOrConnectWithoutCommentThreadInput } from './user-create-or-connect-without-comment-thread.input';
|
||||
import { UserUpsertWithoutCommentThreadInput } from './user-upsert-without-comment-thread.input';
|
||||
import { UserWhereUniqueInput } from './user-where-unique.input';
|
||||
import { UserUpdateWithoutCommentThreadInput } from './user-update-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateOneRequiredWithoutCommentThreadNestedInput {
|
||||
|
||||
@Field(() => UserCreateWithoutCommentThreadInput, {nullable:true})
|
||||
@Type(() => UserCreateWithoutCommentThreadInput)
|
||||
create?: UserCreateWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => UserCreateOrConnectWithoutCommentThreadInput, {nullable:true})
|
||||
@Type(() => UserCreateOrConnectWithoutCommentThreadInput)
|
||||
connectOrCreate?: UserCreateOrConnectWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => UserUpsertWithoutCommentThreadInput, {nullable:true})
|
||||
@Type(() => UserUpsertWithoutCommentThreadInput)
|
||||
upsert?: UserUpsertWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => UserWhereUniqueInput, {nullable:true})
|
||||
@Type(() => UserWhereUniqueInput)
|
||||
connect?: UserWhereUniqueInput;
|
||||
|
||||
@Field(() => UserUpdateWithoutCommentThreadInput, {nullable:true})
|
||||
@Type(() => UserUpdateWithoutCommentThreadInput)
|
||||
update?: UserUpdateWithoutCommentThreadInput;
|
||||
}
|
||||
@ -0,0 +1,77 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableStringFieldUpdateOperationsInput } from '../prisma/nullable-string-field-update-operations.input';
|
||||
import { BoolFieldUpdateOperationsInput } from '../prisma/bool-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { GraphQLJSON } from 'graphql-type-json';
|
||||
import * as Validator from 'class-validator';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
|
||||
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
|
||||
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateWithoutCommentThreadInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
firstName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
lastName?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
email?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, {nullable:true})
|
||||
emailVerified?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
avatarUrl?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
locale?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
|
||||
phoneNumber?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
lastSeen?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => BoolFieldUpdateOperationsInput, {nullable:true})
|
||||
disabled?: BoolFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
passwordHash?: NullableStringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => GraphQLJSON, {nullable:true})
|
||||
@Validator.IsJSON()
|
||||
@Validator.IsOptional()
|
||||
metadata?: any;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceMember?: WorkspaceMemberUpdateOneWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CompanyUpdateManyWithoutAccountOwnerNestedInput, {nullable:true})
|
||||
companies?: CompanyUpdateManyWithoutAccountOwnerNestedInput;
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
|
||||
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
|
||||
import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateWithoutCommentsInput {
|
||||
@ -70,4 +71,7 @@ export class UserUpdateWithoutCommentsInput {
|
||||
|
||||
@HideField()
|
||||
refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
|
||||
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
|
||||
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
|
||||
import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateWithoutCompaniesInput {
|
||||
@ -70,4 +71,7 @@ export class UserUpdateWithoutCompaniesInput {
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUpdateManyWithoutAuthorNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-member/workspace-member-update-one-without-user-nested.input';
|
||||
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
|
||||
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
|
||||
import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateWithoutRefreshTokensInput {
|
||||
@ -70,4 +71,7 @@ export class UserUpdateWithoutRefreshTokensInput {
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUpdateManyWithoutAuthorNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-up
|
||||
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
|
||||
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
|
||||
import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateWithoutWorkspaceMemberInput {
|
||||
@ -70,4 +71,7 @@ export class UserUpdateWithoutWorkspaceMemberInput {
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUpdateManyWithoutAuthorNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-mem
|
||||
import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/company-update-many-without-account-owner-nested.input';
|
||||
import { RefreshTokenUpdateManyWithoutUserNestedInput } from '../refresh-token/refresh-token-update-many-without-user-nested.input';
|
||||
import { CommentUpdateManyWithoutAuthorNestedInput } from '../comment/comment-update-many-without-author-nested.input';
|
||||
import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpdateInput {
|
||||
@ -74,4 +75,7 @@ export class UserUpdateInput {
|
||||
|
||||
@Field(() => CommentUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
comments?: CommentUpdateManyWithoutAuthorNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
|
||||
CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
|
||||
}
|
||||
|
||||
@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserUpdateWithoutCommentThreadInput } from './user-update-without-comment-thread.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { UserCreateWithoutCommentThreadInput } from './user-create-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class UserUpsertWithoutCommentThreadInput {
|
||||
|
||||
@Field(() => UserUpdateWithoutCommentThreadInput, {nullable:false})
|
||||
@Type(() => UserUpdateWithoutCommentThreadInput)
|
||||
update!: UserUpdateWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => UserCreateWithoutCommentThreadInput, {nullable:false})
|
||||
@Type(() => UserCreateWithoutCommentThreadInput)
|
||||
create!: UserCreateWithoutCommentThreadInput;
|
||||
}
|
||||
@ -11,6 +11,7 @@ import { WorkspaceMemberRelationFilter } from '../workspace-member/workspace-mem
|
||||
import { CompanyListRelationFilter } from '../company/company-list-relation-filter.input';
|
||||
import { RefreshTokenListRelationFilter } from '../refresh-token/refresh-token-list-relation-filter.input';
|
||||
import { CommentListRelationFilter } from '../comment/comment-list-relation-filter.input';
|
||||
import { CommentThreadListRelationFilter } from '../comment-thread/comment-thread-list-relation-filter.input';
|
||||
|
||||
@InputType()
|
||||
export class UserWhereInput {
|
||||
@ -80,4 +81,7 @@ export class UserWhereInput {
|
||||
|
||||
@Field(() => CommentListRelationFilter, {nullable:true})
|
||||
comments?: CommentListRelationFilter;
|
||||
|
||||
@Field(() => CommentThreadListRelationFilter, {nullable:true})
|
||||
CommentThread?: CommentThreadListRelationFilter;
|
||||
}
|
||||
|
||||
@ -7,6 +7,7 @@ import { WorkspaceMember } from '../workspace-member/workspace-member.model';
|
||||
import { Company } from '../company/company.model';
|
||||
import { RefreshToken } from '../refresh-token/refresh-token.model';
|
||||
import { Comment } from '../comment/comment.model';
|
||||
import { CommentThread } from '../comment-thread/comment-thread.model';
|
||||
import { UserCount } from './user-count.output';
|
||||
|
||||
@ObjectType()
|
||||
@ -69,6 +70,9 @@ export class User {
|
||||
@Field(() => [Comment], {nullable:true})
|
||||
comments?: Array<Comment>;
|
||||
|
||||
@Field(() => [CommentThread], {nullable:true})
|
||||
CommentThread?: Array<CommentThread>;
|
||||
|
||||
@HideField()
|
||||
_count?: UserCount;
|
||||
}
|
||||
|
||||
@ -45,21 +45,13 @@ export class CommentThreadResolver {
|
||||
@PrismaSelector({ modelName: 'CommentThread' })
|
||||
prismaSelect: PrismaSelect<'CommentThread'>,
|
||||
): Promise<Partial<CommentThread>> {
|
||||
const newCommentData = args.data.comments?.createMany?.data
|
||||
? args.data.comments?.createMany?.data?.map((comment) => ({
|
||||
...comment,
|
||||
...{ workspaceId: workspace.id },
|
||||
}))
|
||||
: [];
|
||||
|
||||
const createdCommentThread = await this.commentThreadService.create({
|
||||
data: {
|
||||
...args.data,
|
||||
...{ comments: { createMany: { data: newCommentData } } },
|
||||
...{ workspace: { connect: { id: workspace.id } } },
|
||||
},
|
||||
select: prismaSelect.value,
|
||||
});
|
||||
} as Prisma.CommentThreadCreateArgs);
|
||||
|
||||
return createdCommentThread;
|
||||
}
|
||||
|
||||
@ -63,15 +63,13 @@ export class CompanyRelationsResolver {
|
||||
@ResolveField(() => Int, {
|
||||
nullable: false,
|
||||
})
|
||||
async _commentCount(@Root() company: Company): Promise<number> {
|
||||
return this.commentService.count({
|
||||
async _commentThreadCount(@Root() company: Company): Promise<number> {
|
||||
return this.commentThreadService.count({
|
||||
where: {
|
||||
commentThread: {
|
||||
commentThreadTargets: {
|
||||
some: {
|
||||
commentableId: company.id,
|
||||
commentableType: 'Company',
|
||||
},
|
||||
commentThreadTargets: {
|
||||
some: {
|
||||
commentableId: company.id,
|
||||
commentableType: 'Company',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@ -58,6 +58,23 @@ export class CompanyResolver {
|
||||
});
|
||||
}
|
||||
|
||||
@Query(() => Company)
|
||||
@UseGuards(AbilityGuard)
|
||||
@CheckAbilities(ReadCompanyAbilityHandler)
|
||||
async findUniqueCompany(
|
||||
@Args('id') id: string,
|
||||
@UserAbility() ability: AppAbility,
|
||||
@PrismaSelector({ modelName: 'Company' })
|
||||
prismaSelect: PrismaSelect<'Company'>,
|
||||
): Promise<Partial<Company>> {
|
||||
return this.companyService.findUniqueOrThrow({
|
||||
where: {
|
||||
id: id,
|
||||
},
|
||||
select: prismaSelect.value,
|
||||
});
|
||||
}
|
||||
|
||||
@UseGuards(UpdateOneGuard)
|
||||
@Mutation(() => Company, {
|
||||
nullable: true,
|
||||
|
||||
@ -63,15 +63,13 @@ export class PersonRelationsResolver {
|
||||
@ResolveField(() => Int, {
|
||||
nullable: false,
|
||||
})
|
||||
async _commentCount(@Root() person: Person): Promise<number> {
|
||||
return this.commentService.count({
|
||||
async _commentThreadCount(@Root() person: Person): Promise<number> {
|
||||
return this.commentThreadService.count({
|
||||
where: {
|
||||
commentThread: {
|
||||
commentThreadTargets: {
|
||||
some: {
|
||||
commentableId: person.id,
|
||||
commentableType: 'Person',
|
||||
},
|
||||
commentThreadTargets: {
|
||||
some: {
|
||||
commentableId: person.id,
|
||||
commentableType: 'Person',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@ -1,4 +1,11 @@
|
||||
import { Resolver, Query, Args, Mutation } from '@nestjs/graphql';
|
||||
import {
|
||||
Resolver,
|
||||
Query,
|
||||
Args,
|
||||
Mutation,
|
||||
ResolveField,
|
||||
Parent,
|
||||
} from '@nestjs/graphql';
|
||||
import { UseGuards } from '@nestjs/common';
|
||||
import { JwtAuthGuard } from 'src/guards/jwt.auth.guard';
|
||||
import { Person } from '../../core/@generated/person/person.model';
|
||||
@ -61,6 +68,30 @@ export class PersonResolver {
|
||||
});
|
||||
}
|
||||
|
||||
@Query(() => Person)
|
||||
@UseGuards(AbilityGuard)
|
||||
@CheckAbilities(ReadPersonAbilityHandler)
|
||||
async findUniquePerson(
|
||||
@Args('id') id: string,
|
||||
@UserAbility() ability: AppAbility,
|
||||
@PrismaSelector({ modelName: 'Person' })
|
||||
prismaSelect: PrismaSelect<'Person'>,
|
||||
): Promise<Partial<Person>> {
|
||||
return this.personService.findUniqueOrThrow({
|
||||
where: {
|
||||
id: id,
|
||||
},
|
||||
select: prismaSelect.value,
|
||||
});
|
||||
}
|
||||
|
||||
@ResolveField(() => String, {
|
||||
nullable: false,
|
||||
})
|
||||
displayName(@Parent() parent: Person): string {
|
||||
return `${parent.firstName ?? ''} ${parent.lastName ?? ''}`;
|
||||
}
|
||||
|
||||
@UseGuards(UpdateOneGuard)
|
||||
@Mutation(() => Person, {
|
||||
nullable: true,
|
||||
|
||||
@ -0,0 +1,15 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "comment_threads" ADD COLUMN "body" TEXT,
|
||||
ADD COLUMN "title" TEXT,
|
||||
ADD COLUMN "authorId" TEXT;
|
||||
|
||||
|
||||
-- Update field with a random user if some rows already exist...
|
||||
UPDATE "comment_threads"
|
||||
SET "authorId" = (SELECT id FROM users LIMIT 1);
|
||||
|
||||
|
||||
ALTER TABLE "comment_threads"
|
||||
ALTER COLUMN "authorId" SET NOT NULL;
|
||||
|
||||
ALTER TABLE "comment_threads" ADD CONSTRAINT "comment_threads_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "users"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
@ -175,8 +175,9 @@ model User {
|
||||
/// @TypeGraphQL.omit(input: true, output: true)
|
||||
deletedAt DateTime?
|
||||
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
CommentThread CommentThread[]
|
||||
|
||||
@@map("users")
|
||||
}
|
||||
@ -332,6 +333,12 @@ model CommentThread {
|
||||
/// @TypeGraphQL.omit(input: true, output: true)
|
||||
workspaceId String
|
||||
|
||||
authorId String
|
||||
author User @relation(fields: [authorId], references: [id])
|
||||
|
||||
body String?
|
||||
title String?
|
||||
|
||||
/// @TypeGraphQL.omit(input: true, output: true)
|
||||
deletedAt DateTime?
|
||||
|
||||
|
||||
@ -6,6 +6,9 @@ export const seedComments = async (prisma: PrismaClient) => {
|
||||
create: {
|
||||
id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb400',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
title: 'Performance update',
|
||||
body: '[{"id":"555df0c3-ab88-4c62-abae-c9b557c37c5b","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[{"type":"text","text":"In the North American region, we have observed a strong growth rate of 18% in sales. Europe followed suit with a significant 14% increase, while Asia-Pacific sustained its performance with a steady 10% rise. Special kudos to the North American team for the excellent work done in penetrating new markets and establishing stronger footholds in the existing ones.","styles":{}}],"children":[]},{"id":"13530934-b3ce-4332-9238-3760aa4acb3e","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[],"children":[]}]',
|
||||
authorId: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408',
|
||||
},
|
||||
});
|
||||
|
||||
@ -50,6 +53,9 @@ export const seedComments = async (prisma: PrismaClient) => {
|
||||
create: {
|
||||
id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfc408',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
title: 'Buyout Proposal',
|
||||
body: '[{"id":"333df0c3-ab88-4c62-abae-c9b557c37c5b","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[{"type":"text","text":"We are considering the potential acquisition of [Company], a leading company in [Industry/Specific Technology]. This company has demonstrated remarkable success and pioneering advancements in their field, paralleling our own commitment to progress. By integrating their expertise with our own, we believe that we can amplify our growth, broaden our offerings, and fortify our position at the forefront of technology. This prospective partnership could help to ensure our continued leadership in the industry and allow us to deliver even more innovative solutions for our customers.","styles":{}}],"children":[]},{"id":"13530934-b3ce-4332-9238-3760aa4acb3e","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[],"children":[]}]',
|
||||
authorId: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408',
|
||||
},
|
||||
});
|
||||
|
||||
@ -82,6 +88,9 @@ export const seedComments = async (prisma: PrismaClient) => {
|
||||
create: {
|
||||
id: 'twenty-dev-fe256b39-3ec3-4fe3-8997-b76aaabfb408',
|
||||
workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420',
|
||||
title: 'Call summary',
|
||||
body: '[{"id":"555df0c3-ab88-4c62-abae-c9b557c37c5b","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[{"type":"text","text":"Valuation & Due Diligence: The CFO highlighted the financial implications, pointing out that the acquisition will be accretive to earnings. The M&A team has been directed to commence due diligence and work closely with legal counsel to assess all aspects of the acquisition.","styles":{}}],"children":[]},{"id":"13530934-b3ce-4332-9238-3760aa4acb3e","type":"paragraph","props":{"textColor":"default","backgroundColor":"default","textAlignment":"left"},"content":[],"children":[]}]',
|
||||
authorId: 'twenty-dev-gk256b39-3ec3-4fe3-8997-b76aa0boa408',
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
12
server/src/guards/show-one.guard.ts
Normal file
12
server/src/guards/show-one.guard.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { CanActivate, Injectable } from '@nestjs/common';
|
||||
import { PrismaService } from 'src/database/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class ShowOneGuard implements CanActivate {
|
||||
constructor(private prismaService: PrismaService) {}
|
||||
|
||||
async canActivate(): Promise<boolean> {
|
||||
// TODO
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user