Skip to content

The open alternative to Salesforce, designed for AI.

Enable Task creation (#688)

Charles Bochet037628ab1dc5
diff --git a/front/src/generated/graphql.tsx b/front/src/generated/graphql.tsx
index b294cf3d375..09bcfd8a92d 100644
--- a/front/src/generated/graphql.tsx
+++ b/front/src/generated/graphql.tsx
@@ -18,6 +18,11 @@ export type Scalars = {
Upload: any;
};
+export enum ActivityType {
+ Note = 'Note',
+ Task = 'Task'
+}
+
export type AffectedRows = {
__typename?: 'AffectedRows';
count: Scalars['Int'];
@@ -206,33 +211,67 @@ export type CommentScalarWhereInput = {
export type CommentThread = {
__typename?: 'CommentThread';
+ assignee?: Maybe<User>;
+ assigneeId?: Maybe<Scalars['String']>;
author: User;
authorId: Scalars['String'];
body?: Maybe<Scalars['String']>;
commentThreadTargets?: Maybe<Array<CommentThreadTarget>>;
comments?: Maybe<Array<Comment>>;
+ completedAt?: Maybe<Scalars['DateTime']>;
createdAt: Scalars['DateTime'];
+ dueAt?: Maybe<Scalars['DateTime']>;
id: Scalars['ID'];
+ reminderAt?: Maybe<Scalars['DateTime']>;
title?: Maybe<Scalars['String']>;
+ type: ActivityType;
updatedAt: Scalars['DateTime'];
};
export type CommentThreadCreateInput = {
- author: UserCreateNestedOneWithoutCommentThreadInput;
+ assignee?: InputMaybe<UserCreateNestedOneWithoutAssignedCommentThreadsInput>;
+ author: UserCreateNestedOneWithoutAuthoredCommentThreadsInput;
body?: InputMaybe<Scalars['String']>;
commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
comments?: InputMaybe<CommentCreateNestedManyWithoutCommentThreadInput>;
+ completedAt?: InputMaybe<Scalars['DateTime']>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ dueAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ reminderAt?: InputMaybe<Scalars['DateTime']>;
+ title?: InputMaybe<Scalars['String']>;
+ type?: InputMaybe<ActivityType>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type CommentThreadCreateManyAssigneeInput = {
+ authorId: Scalars['String'];
+ body?: InputMaybe<Scalars['String']>;
+ completedAt?: InputMaybe<Scalars['DateTime']>;
createdAt?: InputMaybe<Scalars['DateTime']>;
+ dueAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ reminderAt?: InputMaybe<Scalars['DateTime']>;
title?: InputMaybe<Scalars['String']>;
+ type?: InputMaybe<ActivityType>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
+export type CommentThreadCreateManyAssigneeInputEnvelope = {
+ data: Array<CommentThreadCreateManyAssigneeInput>;
+ skipDuplicates?: InputMaybe<Scalars['Boolean']>;
+};
+
export type CommentThreadCreateManyAuthorInput = {
+ assigneeId?: InputMaybe<Scalars['String']>;
body?: InputMaybe<Scalars['String']>;
+ completedAt?: InputMaybe<Scalars['DateTime']>;
createdAt?: InputMaybe<Scalars['DateTime']>;
+ dueAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ reminderAt?: InputMaybe<Scalars['DateTime']>;
title?: InputMaybe<Scalars['String']>;
+ type?: InputMaybe<ActivityType>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
@@ -242,11 +281,16 @@ export type CommentThreadCreateManyAuthorInputEnvelope = {
};
export type CommentThreadCreateManyWorkspaceInput = {
+ assigneeId?: InputMaybe<Scalars['String']>;
authorId: Scalars['String'];
body?: InputMaybe<Scalars['String']>;
+ completedAt?: InputMaybe<Scalars['DateTime']>;
createdAt?: InputMaybe<Scalars['DateTime']>;
+ dueAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ reminderAt?: InputMaybe<Scalars['DateTime']>;
title?: InputMaybe<Scalars['String']>;
+ type?: InputMaybe<ActivityType>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
@@ -255,6 +299,13 @@ export type CommentThreadCreateManyWorkspaceInputEnvelope = {
skipDuplicates?: InputMaybe<Scalars['Boolean']>;
};
+export type CommentThreadCreateNestedManyWithoutAssigneeInput = {
+ connect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<CommentThreadCreateOrConnectWithoutAssigneeInput>>;
+ create?: InputMaybe<Array<CommentThreadCreateWithoutAssigneeInput>>;
+ createMany?: InputMaybe<CommentThreadCreateManyAssigneeInputEnvelope>;
+};
+
export type CommentThreadCreateNestedManyWithoutAuthorInput = {
connect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
connectOrCreate?: InputMaybe<Array<CommentThreadCreateOrConnectWithoutAuthorInput>>;
@@ -266,6 +317,11 @@ export type CommentThreadCreateNestedOneWithoutCommentsInput = {
connect?: InputMaybe<CommentThreadWhereUniqueInput>;
};
+export type CommentThreadCreateOrConnectWithoutAssigneeInput = {
+ create: CommentThreadCreateWithoutAssigneeInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
export type CommentThreadCreateOrConnectWithoutAuthorInput = {
create: CommentThreadCreateWithoutAuthorInput;
where: CommentThreadWhereUniqueInput;
@@ -281,34 +337,64 @@ export type CommentThreadCreateOrConnectWithoutWorkspaceInput = {
where: CommentThreadWhereUniqueInput;
};
+export type CommentThreadCreateWithoutAssigneeInput = {
+ author: UserCreateNestedOneWithoutAuthoredCommentThreadsInput;
+ body?: InputMaybe<Scalars['String']>;
+ commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
+ comments?: InputMaybe<CommentCreateNestedManyWithoutCommentThreadInput>;
+ completedAt?: InputMaybe<Scalars['DateTime']>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ dueAt?: InputMaybe<Scalars['DateTime']>;
+ id?: InputMaybe<Scalars['String']>;
+ reminderAt?: InputMaybe<Scalars['DateTime']>;
+ title?: InputMaybe<Scalars['String']>;
+ type?: InputMaybe<ActivityType>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
export type CommentThreadCreateWithoutAuthorInput = {
+ assignee?: InputMaybe<UserCreateNestedOneWithoutAssignedCommentThreadsInput>;
body?: InputMaybe<Scalars['String']>;
commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
comments?: InputMaybe<CommentCreateNestedManyWithoutCommentThreadInput>;
+ completedAt?: InputMaybe<Scalars['DateTime']>;
createdAt?: InputMaybe<Scalars['DateTime']>;
+ dueAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ reminderAt?: InputMaybe<Scalars['DateTime']>;
title?: InputMaybe<Scalars['String']>;
+ type?: InputMaybe<ActivityType>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
export type CommentThreadCreateWithoutCommentsInput = {
- author: UserCreateNestedOneWithoutCommentThreadInput;
+ assignee?: InputMaybe<UserCreateNestedOneWithoutAssignedCommentThreadsInput>;
+ author: UserCreateNestedOneWithoutAuthoredCommentThreadsInput;
body?: InputMaybe<Scalars['String']>;
commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
+ completedAt?: InputMaybe<Scalars['DateTime']>;
createdAt?: InputMaybe<Scalars['DateTime']>;
+ dueAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ reminderAt?: InputMaybe<Scalars['DateTime']>;
title?: InputMaybe<Scalars['String']>;
+ type?: InputMaybe<ActivityType>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
export type CommentThreadCreateWithoutWorkspaceInput = {
- author: UserCreateNestedOneWithoutCommentThreadInput;
+ assignee?: InputMaybe<UserCreateNestedOneWithoutAssignedCommentThreadsInput>;
+ author: UserCreateNestedOneWithoutAuthoredCommentThreadsInput;
body?: InputMaybe<Scalars['String']>;
commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
comments?: InputMaybe<CommentCreateNestedManyWithoutCommentThreadInput>;
+ completedAt?: InputMaybe<Scalars['DateTime']>;
createdAt?: InputMaybe<Scalars['DateTime']>;
+ dueAt?: InputMaybe<Scalars['DateTime']>;
id?: InputMaybe<Scalars['String']>;
+ reminderAt?: InputMaybe<Scalars['DateTime']>;
title?: InputMaybe<Scalars['String']>;
+ type?: InputMaybe<ActivityType>;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
@@ -323,14 +409,20 @@ export type CommentThreadOrderByRelationAggregateInput = {
};
export type CommentThreadOrderByWithRelationInput = {
+ assignee?: InputMaybe<UserOrderByWithRelationInput>;
+ assigneeId?: InputMaybe<SortOrder>;
author?: InputMaybe<UserOrderByWithRelationInput>;
authorId?: InputMaybe<SortOrder>;
body?: InputMaybe<SortOrder>;
commentThreadTargets?: InputMaybe<CommentThreadTargetOrderByRelationAggregateInput>;
comments?: InputMaybe<CommentOrderByRelationAggregateInput>;
+ completedAt?: InputMaybe<SortOrder>;
createdAt?: InputMaybe<SortOrder>;
+ dueAt?: InputMaybe<SortOrder>;
id?: InputMaybe<SortOrder>;
+ reminderAt?: InputMaybe<SortOrder>;
title?: InputMaybe<SortOrder>;
+ type?: InputMaybe<SortOrder>;
updatedAt?: InputMaybe<SortOrder>;
};
@@ -340,12 +432,17 @@ export type CommentThreadRelationFilter = {
};
export enum CommentThreadScalarFieldEnum {
+ AssigneeId = 'assigneeId',
AuthorId = 'authorId',
Body = 'body',
+ CompletedAt = 'completedAt',
CreatedAt = 'createdAt',
DeletedAt = 'deletedAt',
+ DueAt = 'dueAt',
Id = 'id',
+ ReminderAt = 'reminderAt',
Title = 'title',
+ Type = 'type',
UpdatedAt = 'updatedAt',
WorkspaceId = 'workspaceId'
}
@@ -354,11 +451,16 @@ export type CommentThreadScalarWhereInput = {
AND?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
NOT?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
OR?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
+ assigneeId?: InputMaybe<StringNullableFilter>;
authorId?: InputMaybe<StringFilter>;
body?: InputMaybe<StringNullableFilter>;
+ completedAt?: InputMaybe<DateTimeNullableFilter>;
createdAt?: InputMaybe<DateTimeFilter>;
+ dueAt?: InputMaybe<DateTimeNullableFilter>;
id?: InputMaybe<StringFilter>;
+ reminderAt?: InputMaybe<DateTimeNullableFilter>;
title?: InputMaybe<StringNullableFilter>;
+ type?: InputMaybe<EnumActivityTypeFilter>;
updatedAt?: InputMaybe<DateTimeFilter>;
};
@@ -489,24 +591,38 @@ export type CommentThreadTargetWhereUniqueInput = {
};
export type CommentThreadUpdateInput = {
- author?: InputMaybe<UserUpdateOneRequiredWithoutCommentThreadNestedInput>;
+ assignee?: InputMaybe<UserUpdateOneWithoutAssignedCommentThreadsNestedInput>;
+ author?: InputMaybe<UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput>;
body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
comments?: InputMaybe<CommentUpdateManyWithoutCommentThreadNestedInput>;
+ completedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ dueAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ reminderAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ type?: InputMaybe<EnumActivityTypeFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
export type CommentThreadUpdateManyMutationInput = {
body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ completedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ dueAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ reminderAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ type?: InputMaybe<EnumActivityTypeFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type CommentThreadUpdateManyWithWhereWithoutAssigneeInput = {
+ data: CommentThreadUpdateManyMutationInput;
+ where: CommentThreadScalarWhereInput;
+};
+
export type CommentThreadUpdateManyWithWhereWithoutAuthorInput = {
data: CommentThreadUpdateManyMutationInput;
where: CommentThreadScalarWhereInput;
@@ -517,6 +633,20 @@ export type CommentThreadUpdateManyWithWhereWithoutWorkspaceInput = {
where: CommentThreadScalarWhereInput;
};
+export type CommentThreadUpdateManyWithoutAssigneeNestedInput = {
+ connect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ connectOrCreate?: InputMaybe<Array<CommentThreadCreateOrConnectWithoutAssigneeInput>>;
+ create?: InputMaybe<Array<CommentThreadCreateWithoutAssigneeInput>>;
+ createMany?: InputMaybe<CommentThreadCreateManyAssigneeInputEnvelope>;
+ delete?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ deleteMany?: InputMaybe<Array<CommentThreadScalarWhereInput>>;
+ disconnect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ set?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
+ update?: InputMaybe<Array<CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput>>;
+ updateMany?: InputMaybe<Array<CommentThreadUpdateManyWithWhereWithoutAssigneeInput>>;
+ upsert?: InputMaybe<Array<CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput>>;
+};
+
export type CommentThreadUpdateManyWithoutAuthorNestedInput = {
connect?: InputMaybe<Array<CommentThreadWhereUniqueInput>>;
connectOrCreate?: InputMaybe<Array<CommentThreadCreateOrConnectWithoutAuthorInput>>;
@@ -553,6 +683,11 @@ export type CommentThreadUpdateOneRequiredWithoutCommentsNestedInput = {
upsert?: InputMaybe<CommentThreadUpsertWithoutCommentsInput>;
};
+export type CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput = {
+ data: CommentThreadUpdateWithoutAssigneeInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
export type CommentThreadUpdateWithWhereUniqueWithoutAuthorInput = {
data: CommentThreadUpdateWithoutAuthorInput;
where: CommentThreadWhereUniqueInput;
@@ -563,37 +698,73 @@ export type CommentThreadUpdateWithWhereUniqueWithoutWorkspaceInput = {
where: CommentThreadWhereUniqueInput;
};
+export type CommentThreadUpdateWithoutAssigneeInput = {
+ author?: InputMaybe<UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput>;
+ body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
+ comments?: InputMaybe<CommentUpdateManyWithoutCommentThreadNestedInput>;
+ completedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ dueAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ reminderAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
+ title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ type?: InputMaybe<EnumActivityTypeFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
export type CommentThreadUpdateWithoutAuthorInput = {
+ assignee?: InputMaybe<UserUpdateOneWithoutAssignedCommentThreadsNestedInput>;
body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
comments?: InputMaybe<CommentUpdateManyWithoutCommentThreadNestedInput>;
+ completedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ dueAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ reminderAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ type?: InputMaybe<EnumActivityTypeFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
export type CommentThreadUpdateWithoutCommentsInput = {
- author?: InputMaybe<UserUpdateOneRequiredWithoutCommentThreadNestedInput>;
+ assignee?: InputMaybe<UserUpdateOneWithoutAssignedCommentThreadsNestedInput>;
+ author?: InputMaybe<UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput>;
body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
+ completedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ dueAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ reminderAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ type?: InputMaybe<EnumActivityTypeFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
export type CommentThreadUpdateWithoutWorkspaceInput = {
- author?: InputMaybe<UserUpdateOneRequiredWithoutCommentThreadNestedInput>;
+ assignee?: InputMaybe<UserUpdateOneWithoutAssignedCommentThreadsNestedInput>;
+ author?: InputMaybe<UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput>;
body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
comments?: InputMaybe<CommentUpdateManyWithoutCommentThreadNestedInput>;
+ completedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ dueAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ reminderAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ type?: InputMaybe<EnumActivityTypeFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
+export type CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput = {
+ create: CommentThreadCreateWithoutAssigneeInput;
+ update: CommentThreadUpdateWithoutAssigneeInput;
+ where: CommentThreadWhereUniqueInput;
+};
+
export type CommentThreadUpsertWithWhereUniqueWithoutAuthorInput = {
create: CommentThreadCreateWithoutAuthorInput;
update: CommentThreadUpdateWithoutAuthorInput;
@@ -615,14 +786,20 @@ export type CommentThreadWhereInput = {
AND?: InputMaybe<Array<CommentThreadWhereInput>>;
NOT?: InputMaybe<Array<CommentThreadWhereInput>>;
OR?: InputMaybe<Array<CommentThreadWhereInput>>;
+ assignee?: InputMaybe<UserRelationFilter>;
+ assigneeId?: InputMaybe<StringNullableFilter>;
author?: InputMaybe<UserRelationFilter>;
authorId?: InputMaybe<StringFilter>;
body?: InputMaybe<StringNullableFilter>;
commentThreadTargets?: InputMaybe<CommentThreadTargetListRelationFilter>;
comments?: InputMaybe<CommentListRelationFilter>;
+ completedAt?: InputMaybe<DateTimeNullableFilter>;
createdAt?: InputMaybe<DateTimeFilter>;
+ dueAt?: InputMaybe<DateTimeNullableFilter>;
id?: InputMaybe<StringFilter>;
+ reminderAt?: InputMaybe<DateTimeNullableFilter>;
title?: InputMaybe<StringNullableFilter>;
+ type?: InputMaybe<EnumActivityTypeFilter>;
updatedAt?: InputMaybe<DateTimeFilter>;
};
@@ -1089,6 +1266,17 @@ export type DateTimeNullableFilter = {
notIn?: InputMaybe<Array<Scalars['DateTime']>>;
};
+export type EnumActivityTypeFieldUpdateOperationsInput = {
+ set?: InputMaybe<ActivityType>;
+};
+
+export type EnumActivityTypeFilter = {
+ equals?: InputMaybe<ActivityType>;
+ in?: InputMaybe<Array<ActivityType>>;
+ not?: InputMaybe<NestedEnumActivityTypeFilter>;
+ notIn?: InputMaybe<Array<ActivityType>>;
+};
+
export type EnumCommentableTypeFieldUpdateOperationsInput = {
set?: InputMaybe<CommentableType>;
};
@@ -1347,6 +1535,13 @@ export type NestedDateTimeNullableFilter = {
notIn?: InputMaybe<Array<Scalars['DateTime']>>;
};
+export type NestedEnumActivityTypeFilter = {
+ equals?: InputMaybe<ActivityType>;
+ in?: InputMaybe<Array<ActivityType>>;
+ not?: InputMaybe<NestedEnumActivityTypeFilter>;
+ notIn?: InputMaybe<Array<ActivityType>>;
+};
+
export type NestedEnumCommentableTypeFilter = {
equals?: InputMaybe<CommentableType>;
in?: InputMaybe<Array<CommentableType>>;
@@ -2634,7 +2829,8 @@ export type Telemetry = {
export type User = {
__typename?: 'User';
- CommentThread?: Maybe<Array<CommentThread>>;
+ assignedCommentThreads?: Maybe<Array<CommentThread>>;
+ authoredCommentThreads?: Maybe<Array<CommentThread>>;
avatarUrl?: Maybe<Scalars['String']>;
comments?: Maybe<Array<Comment>>;
companies?: Maybe<Array<Company>>;
@@ -2654,10 +2850,16 @@ export type User = {
workspaceMember?: Maybe<WorkspaceMember>;
};
-export type UserCreateNestedOneWithoutCommentThreadInput = {
+export type UserCreateNestedOneWithoutAssignedCommentThreadsInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
- connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutCommentThreadInput>;
- create?: InputMaybe<UserCreateWithoutCommentThreadInput>;
+ connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutAssignedCommentThreadsInput>;
+ create?: InputMaybe<UserCreateWithoutAssignedCommentThreadsInput>;
+};
+
+export type UserCreateNestedOneWithoutAuthoredCommentThreadsInput = {
+ connect?: InputMaybe<UserWhereUniqueInput>;
+ connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutAuthoredCommentThreadsInput>;
+ create?: InputMaybe<UserCreateWithoutAuthoredCommentThreadsInput>;
};
export type UserCreateNestedOneWithoutCommentsInput = {
@@ -2674,8 +2876,13 @@ export type UserCreateNestedOneWithoutWorkspaceMemberInput = {
create?: InputMaybe<UserCreateWithoutWorkspaceMemberInput>;
};
-export type UserCreateOrConnectWithoutCommentThreadInput = {
- create: UserCreateWithoutCommentThreadInput;
+export type UserCreateOrConnectWithoutAssignedCommentThreadsInput = {
+ create: UserCreateWithoutAssignedCommentThreadsInput;
+ where: UserWhereUniqueInput;
+};
+
+export type UserCreateOrConnectWithoutAuthoredCommentThreadsInput = {
+ create: UserCreateWithoutAuthoredCommentThreadsInput;
where: UserWhereUniqueInput;
};
@@ -2689,7 +2896,27 @@ export type UserCreateOrConnectWithoutWorkspaceMemberInput = {
where: UserWhereUniqueInput;
};
-export type UserCreateWithoutCommentThreadInput = {
+export type UserCreateWithoutAssignedCommentThreadsInput = {
+ authoredCommentThreads?: InputMaybe<CommentThreadCreateNestedManyWithoutAuthorInput>;
+ avatarUrl?: InputMaybe<Scalars['String']>;
+ comments?: InputMaybe<CommentCreateNestedManyWithoutAuthorInput>;
+ companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
+ createdAt?: InputMaybe<Scalars['DateTime']>;
+ disabled?: InputMaybe<Scalars['Boolean']>;
+ email: Scalars['String'];
+ emailVerified?: InputMaybe<Scalars['Boolean']>;
+ firstName?: InputMaybe<Scalars['String']>;
+ id?: InputMaybe<Scalars['String']>;
+ lastName?: InputMaybe<Scalars['String']>;
+ lastSeen?: InputMaybe<Scalars['DateTime']>;
+ locale: Scalars['String'];
+ metadata?: InputMaybe<Scalars['JSON']>;
+ phoneNumber?: InputMaybe<Scalars['String']>;
+ updatedAt?: InputMaybe<Scalars['DateTime']>;
+};
+
+export type UserCreateWithoutAuthoredCommentThreadsInput = {
+ assignedCommentThreads?: InputMaybe<CommentThreadCreateNestedManyWithoutAssigneeInput>;
avatarUrl?: InputMaybe<Scalars['String']>;
comments?: InputMaybe<CommentCreateNestedManyWithoutAuthorInput>;
companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
@@ -2708,7 +2935,8 @@ export type UserCreateWithoutCommentThreadInput = {
};
export type UserCreateWithoutCommentsInput = {
- CommentThread?: InputMaybe<CommentThreadCreateNestedManyWithoutAuthorInput>;
+ assignedCommentThreads?: InputMaybe<CommentThreadCreateNestedManyWithoutAssigneeInput>;
+ authoredCommentThreads?: InputMaybe<CommentThreadCreateNestedManyWithoutAuthorInput>;
avatarUrl?: InputMaybe<Scalars['String']>;
companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
createdAt?: InputMaybe<Scalars['DateTime']>;
@@ -2726,7 +2954,8 @@ export type UserCreateWithoutCommentsInput = {
};
export type UserCreateWithoutWorkspaceMemberInput = {
- CommentThread?: InputMaybe<CommentThreadCreateNestedManyWithoutAuthorInput>;
+ assignedCommentThreads?: InputMaybe<CommentThreadCreateNestedManyWithoutAssigneeInput>;
+ authoredCommentThreads?: InputMaybe<CommentThreadCreateNestedManyWithoutAuthorInput>;
avatarUrl?: InputMaybe<Scalars['String']>;
comments?: InputMaybe<CommentCreateNestedManyWithoutAuthorInput>;
companies?: InputMaybe<CompanyCreateNestedManyWithoutAccountOwnerInput>;
@@ -2750,7 +2979,8 @@ export type UserExists = {
};
export type UserOrderByWithRelationInput = {
- CommentThread?: InputMaybe<CommentThreadOrderByRelationAggregateInput>;
+ assignedCommentThreads?: InputMaybe<CommentThreadOrderByRelationAggregateInput>;
+ authoredCommentThreads?: InputMaybe<CommentThreadOrderByRelationAggregateInput>;
avatarUrl?: InputMaybe<SortOrder>;
comments?: InputMaybe<CommentOrderByRelationAggregateInput>;
companies?: InputMaybe<CompanyOrderByRelationAggregateInput>;
@@ -2792,7 +3022,8 @@ export enum UserScalarFieldEnum {
}
export type UserUpdateInput = {
- CommentThread?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
+ assignedCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAssigneeNestedInput>;
+ authoredCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
@@ -2810,12 +3041,12 @@ export type UserUpdateInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
-export type UserUpdateOneRequiredWithoutCommentThreadNestedInput = {
+export type UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
- connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutCommentThreadInput>;
- create?: InputMaybe<UserCreateWithoutCommentThreadInput>;
- update?: InputMaybe<UserUpdateWithoutCommentThreadInput>;
- upsert?: InputMaybe<UserUpsertWithoutCommentThreadInput>;
+ connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutAuthoredCommentThreadsInput>;
+ create?: InputMaybe<UserCreateWithoutAuthoredCommentThreadsInput>;
+ update?: InputMaybe<UserUpdateWithoutAuthoredCommentThreadsInput>;
+ upsert?: InputMaybe<UserUpsertWithoutAuthoredCommentThreadsInput>;
};
export type UserUpdateOneRequiredWithoutCommentsNestedInput = {
@@ -2834,11 +3065,41 @@ export type UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput = {
upsert?: InputMaybe<UserUpsertWithoutWorkspaceMemberInput>;
};
+export type UserUpdateOneWithoutAssignedCommentThreadsNestedInput = {
+ connect?: InputMaybe<UserWhereUniqueInput>;
+ connectOrCreate?: InputMaybe<UserCreateOrConnectWithoutAssignedCommentThreadsInput>;
+ create?: InputMaybe<UserCreateWithoutAssignedCommentThreadsInput>;
+ delete?: InputMaybe<Scalars['Boolean']>;
+ disconnect?: InputMaybe<Scalars['Boolean']>;
+ update?: InputMaybe<UserUpdateWithoutAssignedCommentThreadsInput>;
+ upsert?: InputMaybe<UserUpsertWithoutAssignedCommentThreadsInput>;
+};
+
export type UserUpdateOneWithoutCompaniesNestedInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
};
-export type UserUpdateWithoutCommentThreadInput = {
+export type UserUpdateWithoutAssignedCommentThreadsInput = {
+ authoredCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
+ avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
+ companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
+ createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+ disabled?: InputMaybe<BoolFieldUpdateOperationsInput>;
+ email?: InputMaybe<StringFieldUpdateOperationsInput>;
+ emailVerified?: InputMaybe<BoolFieldUpdateOperationsInput>;
+ firstName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ id?: InputMaybe<StringFieldUpdateOperationsInput>;
+ lastName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ lastSeen?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
+ locale?: InputMaybe<StringFieldUpdateOperationsInput>;
+ metadata?: InputMaybe<Scalars['JSON']>;
+ phoneNumber?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
+ updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
+};
+
+export type UserUpdateWithoutAuthoredCommentThreadsInput = {
+ assignedCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAssigneeNestedInput>;
avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
@@ -2857,7 +3118,8 @@ export type UserUpdateWithoutCommentThreadInput = {
};
export type UserUpdateWithoutCommentsInput = {
- CommentThread?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
+ assignedCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAssigneeNestedInput>;
+ authoredCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
@@ -2875,7 +3137,8 @@ export type UserUpdateWithoutCommentsInput = {
};
export type UserUpdateWithoutWorkspaceMemberInput = {
- CommentThread?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
+ assignedCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAssigneeNestedInput>;
+ authoredCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
@@ -2893,9 +3156,14 @@ export type UserUpdateWithoutWorkspaceMemberInput = {
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
-export type UserUpsertWithoutCommentThreadInput = {
- create: UserCreateWithoutCommentThreadInput;
- update: UserUpdateWithoutCommentThreadInput;
+export type UserUpsertWithoutAssignedCommentThreadsInput = {
+ create: UserCreateWithoutAssignedCommentThreadsInput;
+ update: UserUpdateWithoutAssignedCommentThreadsInput;
+};
+
+export type UserUpsertWithoutAuthoredCommentThreadsInput = {
+ create: UserCreateWithoutAuthoredCommentThreadsInput;
+ update: UserUpdateWithoutAuthoredCommentThreadsInput;
};
export type UserUpsertWithoutCommentsInput = {
@@ -2910,9 +3178,10 @@ export type UserUpsertWithoutWorkspaceMemberInput = {
export type UserWhereInput = {
AND?: InputMaybe<Array<UserWhereInput>>;
- CommentThread?: InputMaybe<CommentThreadListRelationFilter>;
NOT?: InputMaybe<Array<UserWhereInput>>;
OR?: InputMaybe<Array<UserWhereInput>>;
+ assignedCommentThreads?: InputMaybe<CommentThreadListRelationFilter>;
+ authoredCommentThreads?: InputMaybe<CommentThreadListRelationFilter>;
avatarUrl?: InputMaybe<StringNullableFilter>;
comments?: InputMaybe<CommentListRelationFilter>;
companies?: InputMaybe<CompanyListRelationFilter>;
@@ -3169,13 +3438,14 @@ export type CreateCommentThreadMutationVariables = Exact<{
commentThreadId: Scalars['String'];
body?: InputMaybe<Scalars['String']>;
title?: InputMaybe<Scalars['String']>;
+ type: ActivityType;
authorId: Scalars['String'];
createdAt: Scalars['DateTime'];
commentThreadTargetArray: Array<CommentThreadTargetCreateManyCommentThreadInput> | CommentThreadTargetCreateManyCommentThreadInput;
}>;
-export type CreateCommentThreadMutation = { __typename?: 'Mutation', createOneCommentThread: { __typename?: 'CommentThread', id: string, createdAt: string, updatedAt: string, authorId: string, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, createdAt: string, updatedAt: string, commentThreadId: string, commentableType: CommentableType, commentableId: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, createdAt: string, updatedAt: string, body: string, author: { __typename?: 'User', id: string } }> | null } };
+export type CreateCommentThreadMutation = { __typename?: 'Mutation', createOneCommentThread: { __typename?: 'CommentThread', id: string, createdAt: string, updatedAt: string, authorId: string, type: ActivityType, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, createdAt: string, updatedAt: string, commentThreadId: string, commentableType: CommentableType, commentableId: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, createdAt: string, updatedAt: string, body: string, author: { __typename?: 'User', id: string } }> | null } };
export type GetCommentThreadsByTargetsQueryVariables = Exact<{
commentThreadTargetIds: Array<Scalars['String']> | Scalars['String'];
@@ -3183,14 +3453,14 @@ export type GetCommentThreadsByTargetsQueryVariables = Exact<{
}>;
-export type GetCommentThreadsByTargetsQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, title?: string | null, body?: string | null, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
+export type GetCommentThreadsByTargetsQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
export type GetCommentThreadQueryVariables = Exact<{
commentThreadId: Scalars['String'];
}>;
-export type GetCommentThreadQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, body?: string | null, title?: string | null, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
+export type GetCommentThreadQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, body?: string | null, title?: string | null, type: ActivityType, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
export type AddCommentThreadTargetOnCommentThreadMutationVariables = Exact<{
commentThreadId: Scalars['String'];
@@ -3218,21 +3488,15 @@ export type DeleteCommentThreadMutationVariables = Exact<{
export type DeleteCommentThreadMutation = { __typename?: 'Mutation', deleteManyCommentThreads: { __typename?: 'AffectedRows', count: number } };
-export type UpdateCommentThreadTitleMutationVariables = Exact<{
- commentThreadId: Scalars['String'];
- commentThreadTitle?: InputMaybe<Scalars['String']>;
-}>;
-
-
-export type UpdateCommentThreadTitleMutation = { __typename?: 'Mutation', updateOneCommentThread: { __typename?: 'CommentThread', id: string, title?: string | null } };
-
-export type UpdateCommentThreadBodyMutationVariables = Exact<{
- commentThreadId: Scalars['String'];
- commentThreadBody?: InputMaybe<Scalars['String']>;
+export type UpdateCommentThreadMutationVariables = Exact<{
+ id: Scalars['String'];
+ body?: InputMaybe<Scalars['String']>;
+ title?: InputMaybe<Scalars['String']>;
+ type?: InputMaybe<ActivityType>;
}>;
-export type UpdateCommentThreadBodyMutation = { __typename?: 'Mutation', updateOneCommentThread: { __typename?: 'CommentThread', id: string, body?: string | null } };
+export type UpdateCommentThreadMutation = { __typename?: 'Mutation', updateOneCommentThread: { __typename?: 'CommentThread', id: string, body?: string | null, title?: string | null, type: ActivityType } };
export type GetCompaniesQueryVariables = Exact<{
orderBy?: InputMaybe<Array<CompanyOrderByWithRelationInput> | CompanyOrderByWithRelationInput>;
@@ -3874,14 +4138,15 @@ export type CreateCommentMutationHookResult = ReturnType<typeof useCreateComment
export type CreateCommentMutationResult = Apollo.MutationResult<CreateCommentMutation>;
export type CreateCommentMutationOptions = Apollo.BaseMutationOptions<CreateCommentMutation, CreateCommentMutationVariables>;
export const CreateCommentThreadDocument = gql`
- mutation CreateCommentThread($commentThreadId: String!, $body: String, $title: String, $authorId: String!, $createdAt: DateTime!, $commentThreadTargetArray: [CommentThreadTargetCreateManyCommentThreadInput!]!) {
+ mutation CreateCommentThread($commentThreadId: String!, $body: String, $title: String, $type: ActivityType!, $authorId: String!, $createdAt: DateTime!, $commentThreadTargetArray: [CommentThreadTargetCreateManyCommentThreadInput!]!) {
createOneCommentThread(
- data: {id: $commentThreadId, createdAt: $createdAt, updatedAt: $createdAt, author: {connect: {id: $authorId}}, body: $body, title: $title, commentThreadTargets: {createMany: {data: $commentThreadTargetArray, skipDuplicates: true}}}
+ data: {id: $commentThreadId, createdAt: $createdAt, updatedAt: $createdAt, author: {connect: {id: $authorId}}, body: $body, title: $title, type: $type, commentThreadTargets: {createMany: {data: $commentThreadTargetArray, skipDuplicates: true}}}
) {
id
createdAt
updatedAt
authorId
+ type
commentThreadTargets {
id
createdAt
@@ -3920,6 +4185,7 @@ export type CreateCommentThreadMutationFn = Apollo.MutationFunction<CreateCommen
* commentThreadId: // value for 'commentThreadId'
* body: // value for 'body'
* title: // value for 'title'
+ * type: // value for 'type'
* authorId: // value for 'authorId'
* createdAt: // value for 'createdAt'
* commentThreadTargetArray: // value for 'commentThreadTargetArray'
@@ -3943,6 +4209,7 @@ export const GetCommentThreadsByTargetsDocument = gql`
createdAt
title
body
+ type
author {
id
firstName
@@ -4005,6 +4272,7 @@ export const GetCommentThreadDocument = gql`
createdAt
body
title
+ type
author {
id
firstName
@@ -4187,82 +4455,48 @@ export function useDeleteCommentThreadMutation(baseOptions?: Apollo.MutationHook
export type DeleteCommentThreadMutationHookResult = ReturnType<typeof useDeleteCommentThreadMutation>;
export type DeleteCommentThreadMutationResult = Apollo.MutationResult<DeleteCommentThreadMutation>;
export type DeleteCommentThreadMutationOptions = Apollo.BaseMutationOptions<DeleteCommentThreadMutation, DeleteCommentThreadMutationVariables>;
-export const UpdateCommentThreadTitleDocument = gql`
- mutation UpdateCommentThreadTitle($commentThreadId: String!, $commentThreadTitle: String) {
+export const UpdateCommentThreadDocument = gql`
+ mutation UpdateCommentThread($id: String!, $body: String, $title: String, $type: ActivityType) {
updateOneCommentThread(
- where: {id: $commentThreadId}
- data: {title: {set: $commentThreadTitle}}
- ) {
- id
- title
- }
-}
- `;
-export type UpdateCommentThreadTitleMutationFn = Apollo.MutationFunction<UpdateCommentThreadTitleMutation, UpdateCommentThreadTitleMutationVariables>;
-
-/**
- * __useUpdateCommentThreadTitleMutation__
- *
- * To run a mutation, you first call `useUpdateCommentThreadTitleMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useUpdateCommentThreadTitleMutation` returns a tuple that includes:
- * - A mutate function that you can call at any time to execute the mutation
- * - An object with fields that represent the current status of the mutation's execution
- *
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
- *
- * @example
- * const [updateCommentThreadTitleMutation, { data, loading, error }] = useUpdateCommentThreadTitleMutation({
- * variables: {
- * commentThreadId: // value for 'commentThreadId'
- * commentThreadTitle: // value for 'commentThreadTitle'
- * },
- * });
- */
-export function useUpdateCommentThreadTitleMutation(baseOptions?: Apollo.MutationHookOptions<UpdateCommentThreadTitleMutation, UpdateCommentThreadTitleMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateCommentThreadTitleMutation, UpdateCommentThreadTitleMutationVariables>(UpdateCommentThreadTitleDocument, options);
- }
-export type UpdateCommentThreadTitleMutationHookResult = ReturnType<typeof useUpdateCommentThreadTitleMutation>;
-export type UpdateCommentThreadTitleMutationResult = Apollo.MutationResult<UpdateCommentThreadTitleMutation>;
-export type UpdateCommentThreadTitleMutationOptions = Apollo.BaseMutationOptions<UpdateCommentThreadTitleMutation, UpdateCommentThreadTitleMutationVariables>;
-export const UpdateCommentThreadBodyDocument = gql`
- mutation UpdateCommentThreadBody($commentThreadId: String!, $commentThreadBody: String) {
- updateOneCommentThread(
- where: {id: $commentThreadId}
- data: {body: {set: $commentThreadBody}}
+ where: {id: $id}
+ data: {body: {set: $body}, title: {set: $title}, type: {set: $type}}
) {
id
body
+ title
+ type
}
}
`;
-export type UpdateCommentThreadBodyMutationFn = Apollo.MutationFunction<UpdateCommentThreadBodyMutation, UpdateCommentThreadBodyMutationVariables>;
+export type UpdateCommentThreadMutationFn = Apollo.MutationFunction<UpdateCommentThreadMutation, UpdateCommentThreadMutationVariables>;
/**
- * __useUpdateCommentThreadBodyMutation__
+ * __useUpdateCommentThreadMutation__
*
- * To run a mutation, you first call `useUpdateCommentThreadBodyMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useUpdateCommentThreadBodyMutation` returns a tuple that includes:
+ * To run a mutation, you first call `useUpdateCommentThreadMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useUpdateCommentThreadMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
- * const [updateCommentThreadBodyMutation, { data, loading, error }] = useUpdateCommentThreadBodyMutation({
+ * const [updateCommentThreadMutation, { data, loading, error }] = useUpdateCommentThreadMutation({
* variables: {
- * commentThreadId: // value for 'commentThreadId'
- * commentThreadBody: // value for 'commentThreadBody'
+ * id: // value for 'id'
+ * body: // value for 'body'
+ * title: // value for 'title'
+ * type: // value for 'type'
* },
* });
*/
-export function useUpdateCommentThreadBodyMutation(baseOptions?: Apollo.MutationHookOptions<UpdateCommentThreadBodyMutation, UpdateCommentThreadBodyMutationVariables>) {
+export function useUpdateCommentThreadMutation(baseOptions?: Apollo.MutationHookOptions<UpdateCommentThreadMutation, UpdateCommentThreadMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateCommentThreadBodyMutation, UpdateCommentThreadBodyMutationVariables>(UpdateCommentThreadBodyDocument, options);
+ return Apollo.useMutation<UpdateCommentThreadMutation, UpdateCommentThreadMutationVariables>(UpdateCommentThreadDocument, options);
}
-export type UpdateCommentThreadBodyMutationHookResult = ReturnType<typeof useUpdateCommentThreadBodyMutation>;
-export type UpdateCommentThreadBodyMutationResult = Apollo.MutationResult<UpdateCommentThreadBodyMutation>;
-export type UpdateCommentThreadBodyMutationOptions = Apollo.BaseMutationOptions<UpdateCommentThreadBodyMutation, UpdateCommentThreadBodyMutationVariables>;
+export type UpdateCommentThreadMutationHookResult = ReturnType<typeof useUpdateCommentThreadMutation>;
+export type UpdateCommentThreadMutationResult = Apollo.MutationResult<UpdateCommentThreadMutation>;
+export type UpdateCommentThreadMutationOptions = Apollo.BaseMutationOptions<UpdateCommentThreadMutation, UpdateCommentThreadMutationVariables>;
export const GetCompaniesDocument = gql`
query GetCompanies($orderBy: [CompanyOrderByWithRelationInput!], $where: CompanyWhereInput) {
companies: findManyCompany(orderBy: $orderBy, where: $where) {
diff --git a/front/src/modules/comments/components/comment-thread/CommentThreadBodyEditor.tsx b/front/src/modules/comments/components/comment-thread/CommentThreadBodyEditor.tsx
index 8e7283cad0c..fc46a0cb057 100644
--- a/front/src/modules/comments/components/comment-thread/CommentThreadBodyEditor.tsx
+++ b/front/src/modules/comments/components/comment-thread/CommentThreadBodyEditor.tsx
@@ -9,7 +9,7 @@ import { BlockEditor } from '@/ui/components/editor/BlockEditor';
import { debounce } from '@/utils/debounce';
import {
CommentThread,
- useUpdateCommentThreadBodyMutation,
+ useUpdateCommentThreadMutation,
} from '~/generated/graphql';
const BlockNoteStyledContainer = styled.div`
@@ -22,8 +22,7 @@ type OwnProps = {
};
export function CommentThreadBodyEditor({ commentThread, onChange }: OwnProps) {
- const [updateCommentThreadBodyMutation] =
- useUpdateCommentThreadBodyMutation();
+ const [updateCommentThreadMutation] = useUpdateCommentThreadMutation();
const [body, setBody] = useState<string | null>(null);
@@ -36,10 +35,10 @@ export function CommentThreadBodyEditor({ commentThread, onChange }: OwnProps) {
const debounceOnChange = useMemo(() => {
function onInternalChange(commentThreadBody: string) {
setBody(commentThreadBody);
- updateCommentThreadBodyMutation({
+ updateCommentThreadMutation({
variables: {
- commentThreadId: commentThread.id,
- commentThreadBody: commentThreadBody,
+ id: commentThread.id,
+ body: commentThreadBody,
},
refetchQueries: [
getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? '',
@@ -48,7 +47,7 @@ export function CommentThreadBodyEditor({ commentThread, onChange }: OwnProps) {
}
return debounce(onInternalChange, 200);
- }, [commentThread, updateCommentThreadBodyMutation, setBody]);
+ }, [commentThread, updateCommentThreadMutation, setBody]);
const editor: BlockNoteEditor | null = useBlockNote({
initialContent: commentThread.body
diff --git a/front/src/modules/comments/components/comment-thread/CommentThreadCreateButton.tsx b/front/src/modules/comments/components/comment-thread/CommentThreadCreateButton.tsx
index 8d137596852..3051275c69f 100644
--- a/front/src/modules/comments/components/comment-thread/CommentThreadCreateButton.tsx
+++ b/front/src/modules/comments/components/comment-thread/CommentThreadCreateButton.tsx
@@ -26,7 +26,6 @@ export function CommentThreadCreateButton({
<Button
icon={<IconCheckbox size={theme.icon.size.sm} />}
title="Task"
- soon={true}
onClick={onTaskClick}
/>
<Button
diff --git a/front/src/modules/comments/components/comment-thread/CommentThreadTypeDropdown.tsx b/front/src/modules/comments/components/comment-thread/CommentThreadTypeDropdown.tsx
index a4f5746a9f1..e2753c15e34 100644
--- a/front/src/modules/comments/components/comment-thread/CommentThreadTypeDropdown.tsx
+++ b/front/src/modules/comments/components/comment-thread/CommentThreadTypeDropdown.tsx
@@ -2,17 +2,59 @@ import {
DropdownButton,
DropdownOptionType,
} from '@/ui/components/buttons/DropdownButton';
-import { IconNotes } from '@/ui/icons/index';
+import { IconCheck, IconNotes } from '@/ui/icons/index';
+import {
+ ActivityType,
+ CommentThread,
+ useUpdateCommentThreadMutation,
+} from '~/generated/graphql';
+
+type OwnProps = {
+ commentThread: Pick<CommentThread, 'id' | 'type'>;
+};
-export function CommentThreadTypeDropdown() {
+export function CommentThreadTypeDropdown({ commentThread }: OwnProps) {
+ const [updateCommentThreadMutation] = useUpdateCommentThreadMutation();
const options: DropdownOptionType[] = [
- { label: 'Note', icon: <IconNotes /> },
- // { label: 'Call', icon: <IconPhone /> },
+ { label: 'Note', key: 'note', icon: <IconNotes /> },
+ { label: 'Task', key: 'task', icon: <IconCheck /> },
];
+ function getSelectedOptionKey() {
+ if (commentThread.type === ActivityType.Note) {
+ return 'note';
+ } else if (commentThread.type === ActivityType.Task) {
+ return 'task';
+ } else {
+ return undefined;
+ }
+ }
+
+ const convertSelectionOptionKeyToActivityType = (key: string) => {
+ switch (key) {
+ case 'note':
+ return ActivityType.Note;
+ case 'task':
+ return ActivityType.Task;
+ default:
+ return undefined;
+ }
+ };
+
const handleSelect = (selectedOption: DropdownOptionType) => {
- // console.log(`You selected: ${selectedOption.label}`);
+ updateCommentThreadMutation({
+ variables: {
+ id: commentThread.id,
+ type: convertSelectionOptionKeyToActivityType(selectedOption.key),
+ },
+ });
};
- return <DropdownButton options={options} onSelection={handleSelect} />;
+ return (
+ <DropdownButton
+ options={options}
+ onSelection={handleSelect}
+ selectedOptionKey={getSelectedOptionKey()}
+ />
+ );
}
diff --git a/front/src/modules/comments/components/right-drawer/CommentThread.tsx b/front/src/modules/comments/components/right-drawer/CommentThread.tsx
index 277cc76d88b..f5fd02e6b8d 100644
--- a/front/src/modules/comments/components/right-drawer/CommentThread.tsx
+++ b/front/src/modules/comments/components/right-drawer/CommentThread.tsx
@@ -9,7 +9,7 @@ import { IconArrowUpRight } from '@/ui/icons/index';
import { debounce } from '@/utils/debounce';
import {
useGetCommentThreadQuery,
- useUpdateCommentThreadTitleMutation,
+ useUpdateCommentThreadMutation,
} from '~/generated/graphql';
import { CommentThreadBodyEditor } from '../comment-thread/CommentThreadBodyEditor';
@@ -105,21 +105,20 @@ export function CommentThread({
const [hasUserManuallySetTitle, setHasUserManuallySetTitle] =
useState<boolean>(false);
- const [updateCommentThreadTitleMutation] =
- useUpdateCommentThreadTitleMutation();
+ const [updateCommentThreadMutation] = useUpdateCommentThreadMutation();
const debounceUpdateTitle = useMemo(() => {
function updateTitle(title: string) {
- updateCommentThreadTitleMutation({
+ updateCommentThreadMutation({
variables: {
- commentThreadId: commentThreadId,
- commentThreadTitle: title ?? '',
+ id: commentThreadId,
+ title: title ?? '',
},
refetchQueries: [getOperationName(GET_COMMENT_THREAD) ?? ''],
});
}
return debounce(updateTitle, 200);
- }, [commentThreadId, updateCommentThreadTitleMutation]);
+ }, [commentThreadId, updateCommentThreadMutation]);
function updateTitleFromBody(body: string) {
const parsedTitle = JSON.parse(body)[0]?.content[0]?.text;
@@ -144,11 +143,11 @@ export function CommentThread({
<StyledUpperPartContainer>
<StyledTopContainer>
<StyledTopActionsContainer>
- <CommentThreadTypeDropdown />
+ <CommentThreadTypeDropdown commentThread={commentThread} />
<CommentThreadActionBar commentThreadId={commentThread?.id ?? ''} />
</StyledTopActionsContainer>
<StyledEditableTitleInput
- placeholder="Note title (optional)"
+ placeholder={`${commentThread.type} title (optional)`}
onChange={(event) => {
setHasUserManuallySetTitle(true);
setTitle(event.target.value);
diff --git a/front/src/modules/comments/components/right-drawer/create/RightDrawerCreateCommentThread.tsx b/front/src/modules/comments/components/right-drawer/create/RightDrawerCreateCommentThread.tsx
index a4daf4ca4a5..0663a3765d9 100644
--- a/front/src/modules/comments/components/right-drawer/create/RightDrawerCreateCommentThread.tsx
+++ b/front/src/modules/comments/components/right-drawer/create/RightDrawerCreateCommentThread.tsx
@@ -12,7 +12,7 @@ export function RightDrawerCreateCommentThread() {
return (
<RightDrawerPage>
- <RightDrawerTopBar title="New note" />
+ <RightDrawerTopBar />
<RightDrawerBody>
{commentThreadId && (
<CommentThread
diff --git a/front/src/modules/comments/components/right-drawer/edit/RightDrawerEditCommentThread.tsx b/front/src/modules/comments/components/right-drawer/edit/RightDrawerEditCommentThread.tsx
index 7074853f0b8..6e3c9a8c003 100644
--- a/front/src/modules/comments/components/right-drawer/edit/RightDrawerEditCommentThread.tsx
+++ b/front/src/modules/comments/components/right-drawer/edit/RightDrawerEditCommentThread.tsx
@@ -12,7 +12,7 @@ export function RightDrawerEditCommentThread() {
return (
<RightDrawerPage>
- <RightDrawerTopBar title="" />
+ <RightDrawerTopBar />
<RightDrawerBody>
{commentThreadId && <CommentThread commentThreadId={commentThreadId} />}
</RightDrawerBody>
diff --git a/front/src/modules/comments/components/timeline/Timeline.tsx b/front/src/modules/comments/components/timeline/Timeline.tsx
index 146529dd4c0..ea49833a867 100644
--- a/front/src/modules/comments/components/timeline/Timeline.tsx
+++ b/front/src/modules/comments/components/timeline/Timeline.tsx
@@ -12,6 +12,7 @@ import {
beautifyPastDateRelativeToNow,
} from '@/utils/datetime/date-utils';
import {
+ ActivityType,
SortOrder,
useGetCommentThreadsByTargetsQuery,
} from '~/generated/graphql';
@@ -187,7 +188,7 @@ const StyledTopActionBar = styled.div`
`;
export function Timeline({ entity }: { entity: CommentableEntity }) {
- const { data: queryResult } = useGetCommentThreadsByTargetsQuery({
+ const { data: queryResult, loading } = useGetCommentThreadsByTargetsQuery({
variables: {
commentThreadTargetIds: [entity.id],
orderBy: [
@@ -205,13 +206,18 @@ export function Timeline({ entity }: { entity: CommentableEntity }) {
const commentThreads: CommentThreadForDrawer[] =
queryResult?.findManyCommentThreads ?? [];
+ if (loading) {
+ return <></>;
+ }
+
if (!commentThreads.length) {
return (
<StyledTimelineEmptyContainer>
<StyledEmptyTimelineTitle>No activity yet</StyledEmptyTimelineTitle>
<StyledEmptyTimelineSubTitle>Create one:</StyledEmptyTimelineSubTitle>
<CommentThreadCreateButton
- onNoteClick={() => openCreateCommandThread(entity)}
+ onNoteClick={() => openCreateCommandThread(entity, ActivityType.Note)}
+ onTaskClick={() => openCreateCommandThread(entity, ActivityType.Task)}
/>
</StyledTimelineEmptyContainer>
);
@@ -222,7 +228,12 @@ export function Timeline({ entity }: { entity: CommentableEntity }) {
<StyledTopActionBar>
<StyledTimelineItemContainer>
<CommentThreadCreateButton
- onNoteClick={() => openCreateCommandThread(entity)}
+ onNoteClick={() =>
+ openCreateCommandThread(entity, ActivityType.Note)
+ }
+ onTaskClick={() =>
+ openCreateCommandThread(entity, ActivityType.Task)
+ }
/>
</StyledTimelineItemContainer>
</StyledTopActionBar>
diff --git a/front/src/modules/comments/hooks/useOpenCreateCommentDrawerForSelectedRowIds.ts b/front/src/modules/comments/hooks/useOpenCreateCommentDrawerForSelectedRowIds.ts
index e7f427d9902..d0f5f3efb89 100644
--- a/front/src/modules/comments/hooks/useOpenCreateCommentDrawerForSelectedRowIds.ts
+++ b/front/src/modules/comments/hooks/useOpenCreateCommentDrawerForSelectedRowIds.ts
@@ -10,6 +10,7 @@ import { RightDrawerHotkeyScope } from '@/ui/layout/right-drawer/types/RightDraw
import { RightDrawerPages } from '@/ui/layout/right-drawer/types/RightDrawerPages';
import { selectedRowIdsSelector } from '@/ui/tables/states/selectedRowIdsSelector';
import {
+ ActivityType,
CommentableType,
useCreateCommentThreadMutation,
} from '~/generated/graphql';
@@ -53,6 +54,7 @@ export function useOpenCreateCommentThreadDrawerForSelectedRowIds() {
authorId: currentUser?.id ?? '',
commentThreadId: v4(),
createdAt: new Date().toISOString(),
+ type: ActivityType.Note,
commentThreadTargetArray: commentableEntityArray.map((entity) => ({
commentableId: entity.id,
commentableType: entity.type,
diff --git a/front/src/modules/comments/hooks/useOpenCreateCommentThreadDrawer.ts b/front/src/modules/comments/hooks/useOpenCreateCommentThreadDrawer.ts
index 2d187823518..f98a0997ad5 100644
--- a/front/src/modules/comments/hooks/useOpenCreateCommentThreadDrawer.ts
+++ b/front/src/modules/comments/hooks/useOpenCreateCommentThreadDrawer.ts
@@ -8,7 +8,10 @@ import { useSetHotkeyScope } from '@/lib/hotkeys/hooks/useSetHotkeyScope';
import { GET_PEOPLE } from '@/people/services';
import { RightDrawerHotkeyScope } from '@/ui/layout/right-drawer/types/RightDrawerHotkeyScope';
import { RightDrawerPages } from '@/ui/layout/right-drawer/types/RightDrawerPages';
-import { useCreateCommentThreadMutation } from '~/generated/graphql';
+import {
+ ActivityType,
+ useCreateCommentThreadMutation,
+} from '~/generated/graphql';
import { useOpenRightDrawer } from '../../ui/layout/right-drawer/hooks/useOpenRightDrawer';
import {
@@ -32,12 +35,16 @@ export function useOpenCreateCommentThreadDrawer() {
viewableCommentThreadIdState,
);
- return function openCreateCommentThreadDrawer(entity: CommentableEntity) {
+ return function openCreateCommentThreadDrawer(
+ entity: CommentableEntity,
+ type: ActivityType,
+ ) {
createCommentThreadMutation({
variables: {
authorId: currentUser?.id ?? '',
commentThreadId: v4(),
createdAt: new Date().toISOString(),
+ type: type,
commentThreadTargetArray: [
{
commentableId: entity.id,
diff --git a/front/src/modules/comments/services/create.ts b/front/src/modules/comments/services/create.ts
index 567b1c49a3c..553eb667ba8 100644
--- a/front/src/modules/comments/services/create.ts
+++ b/front/src/modules/comments/services/create.ts
@@ -37,6 +37,7 @@ export const CREATE_COMMENT_THREAD_WITH_COMMENT = gql`
$commentThreadId: String!
$body: String
$title: String
+ $type: ActivityType!
$authorId: String!
$createdAt: DateTime!
$commentThreadTargetArray: [CommentThreadTargetCreateManyCommentThreadInput!]!
@@ -49,6 +50,7 @@ export const CREATE_COMMENT_THREAD_WITH_COMMENT = gql`
author: { connect: { id: $authorId } }
body: $body
title: $title
+ type: $type
commentThreadTargets: {
createMany: { data: $commentThreadTargetArray, skipDuplicates: true }
}
@@ -58,6 +60,7 @@ export const CREATE_COMMENT_THREAD_WITH_COMMENT = gql`
createdAt
updatedAt
authorId
+ type
commentThreadTargets {
id
createdAt
diff --git a/front/src/modules/comments/services/select.ts b/front/src/modules/comments/services/select.ts
index 82b4851f179..1ac553dc46f 100644
--- a/front/src/modules/comments/services/select.ts
+++ b/front/src/modules/comments/services/select.ts
@@ -17,6 +17,7 @@ export const GET_COMMENT_THREADS_BY_TARGETS = gql`
createdAt
title
body
+ type
author {
id
firstName
@@ -51,6 +52,7 @@ export const GET_COMMENT_THREAD = gql`
createdAt
body
title
+ type
author {
id
firstName
diff --git a/front/src/modules/comments/services/update.ts b/front/src/modules/comments/services/update.ts
index 6e45b20290a..02b08af2b1a 100644
--- a/front/src/modules/comments/services/update.ts
+++ b/front/src/modules/comments/services/update.ts
@@ -69,32 +69,25 @@ export const DELETE_COMMENT_THREAD = gql`
}
`;
-export const UPDATE_COMMENT_THREAD_TITLE = gql`
- mutation UpdateCommentThreadTitle(
- $commentThreadId: String!
- $commentThreadTitle: String
- ) {
- updateOneCommentThread(
- where: { id: $commentThreadId }
- data: { title: { set: $commentThreadTitle } }
- ) {
- id
- title
- }
- }
-`;
-
-export const UPDATE_COMMENT_THREAD_BODY = gql`
- mutation UpdateCommentThreadBody(
- $commentThreadId: String!
- $commentThreadBody: String
+export const UPDATE_COMMENT_THREAD = gql`
+ mutation UpdateCommentThread(
+ $id: String!
+ $body: String
+ $title: String
+ $type: ActivityType
) {
updateOneCommentThread(
- where: { id: $commentThreadId }
- data: { body: { set: $commentThreadBody } }
+ where: { id: $id }
+ data: {
+ body: { set: $body }
+ title: { set: $title }
+ type: { set: $type }
+ }
) {
id
body
+ title
+ type
}
}
`;
diff --git a/front/src/modules/people/components/PeopleCompanyCreateCell.tsx b/front/src/modules/people/components/PeopleCompanyCreateCell.tsx
index 6175f4a41d9..3222b337b71 100644
--- a/front/src/modules/people/components/PeopleCompanyCreateCell.tsx
+++ b/front/src/modules/people/components/PeopleCompanyCreateCell.tsx
@@ -1,6 +1,8 @@
import { useState } from 'react';
+import { getOperationName } from '@apollo/client/utilities';
import { v4 } from 'uuid';
+import { GET_COMPANIES } from '@/companies/services';
import { useRecoilScopedState } from '@/recoil-scope/hooks/useRecoilScopedState';
import { relationPickerSearchFilterScopedState } from '@/relation-picker/states/relationPickerSearchFilterScopedState';
import { isCreateModeScopedState } from '@/ui/components/editable-cell/states/isCreateModeScopedState';
@@ -49,6 +51,7 @@ export function PeopleCompanyCreateCell({ people }: OwnProps) {
address: '',
createdAt: new Date().toISOString(),
},
+ refetchQueries: [getOperationName(GET_COMPANIES) || ''],
});
await updatePeople({
diff --git a/front/src/modules/ui/components/buttons/DropdownButton.tsx b/front/src/modules/ui/components/buttons/DropdownButton.tsx
index 753796527bc..39f81540900 100644
--- a/front/src/modules/ui/components/buttons/DropdownButton.tsx
+++ b/front/src/modules/ui/components/buttons/DropdownButton.tsx
@@ -1,4 +1,4 @@
-import React, { useState } from 'react';
+import React, { useEffect, useState } from 'react';
import styled from '@emotion/styled';
import { IconChevronDown } from '@/ui/icons/index';
@@ -6,28 +6,55 @@ import { IconChevronDown } from '@/ui/icons/index';
type ButtonProps = React.ComponentProps<'button'>;
export type DropdownOptionType = {
+ key: string;
label: string;
icon: React.ReactNode;
};
-type Props = {
+type OwnProps = {
options: DropdownOptionType[];
+ selectedOptionKey?: string;
onSelection: (value: DropdownOptionType) => void;
} & ButtonProps;
-const StyledButton = styled.button<ButtonProps>`
+const StyledButton = styled.button<ButtonProps & { isOpen: boolean }>`
+ align-items: center;
+ background: ${({ theme }) => theme.background.tertiary};
+ border: 1px solid ${({ theme }) => theme.border.color.medium};
+ border-bottom-left-radius: ${({ isOpen, theme }) =>
+ isOpen ? 0 : theme.border.radius.sm};
+ border-bottom-right-radius: ${({ isOpen, theme }) =>
+ isOpen ? 0 : theme.border.radius.sm};
+ border-top-left-radius: ${({ theme }) => theme.border.radius.sm};
+ border-top-right-radius: ${({ theme }) => theme.border.radius.sm};
+ color: ${({ theme }) => theme.font.color.secondary};
+ cursor: pointer;
+ display: flex;
+ gap: ${({ theme }) => theme.spacing(2)};
+ padding: ${({ theme }) => theme.spacing(1)} ${({ theme }) => theme.spacing(2)};
+
+ svg {
+ align-items: center;
+ display: flex;
+ height: 14px;
+ justify-content: center;
+ width: 14px;
+ }
+`;
+
+const StyledDropdownItem = styled.button<ButtonProps>`
align-items: center;
background: ${({ theme }) => theme.background.tertiary};
border: 1px solid ${({ theme }) => theme.border.color.medium};
border-radius: ${({ theme }) => theme.border.radius.sm};
+ border-top: none;
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
color: ${({ theme }) => theme.font.color.secondary};
+ cursor: pointer;
display: flex;
- font-size: ${({ theme }) => theme.font.size.md};
- font-weight: ${({ theme }) => theme.font.weight.medium};
- gap: 8px;
- height: 24px;
- line-height: ${({ theme }) => theme.text.lineHeight.lg};
- padding: 3px 8px;
+ gap: ${({ theme }) => theme.spacing(2)};
+ padding: ${({ theme }) => theme.spacing(1)} ${({ theme }) => theme.spacing(2)};
svg {
align-items: center;
@@ -45,17 +72,29 @@ const DropdownContainer = styled.div`
const DropdownMenu = styled.div`
display: flex;
flex-direction: column;
- margin-top: -2px;
position: absolute;
+ width: 100%;
`;
export function DropdownButton({
options,
+ selectedOptionKey,
onSelection,
...buttonProps
-}: Props) {
+}: OwnProps) {
const [isOpen, setIsOpen] = useState(false);
- const [selectedOption, setSelectedOption] = useState(options[0]);
+ const [selectedOption, setSelectedOption] = useState<
+ DropdownOptionType | undefined
+ >(undefined);
+
+ useEffect(() => {
+ if (selectedOptionKey) {
+ const option = options.find((option) => option.key === selectedOptionKey);
+ setSelectedOption(option);
+ } else {
+ setSelectedOption(options[0]);
+ }
+ }, [selectedOptionKey, options]);
if (!options.length) {
throw new Error('You must provide at least one option.');
@@ -71,24 +110,35 @@ export function DropdownButton({
};
return (
- <DropdownContainer>
- <StyledButton onClick={() => setIsOpen(!isOpen)} {...buttonProps}>
- {selectedOption.icon}
- {selectedOption.label}
- {options.length > 1 && <IconChevronDown />}
- </StyledButton>
- {isOpen && (
- <DropdownMenu>
- {options
- .filter((option) => option.label !== selectedOption.label)
- .map((option, index) => (
- <StyledButton key={index} onClick={handleSelect(option)}>
- {option.icon}
- {option.label}
- </StyledButton>
- ))}
- </DropdownMenu>
+ <>
+ {selectedOption && (
+ <DropdownContainer>
+ <StyledButton
+ onClick={() => setIsOpen(!isOpen)}
+ {...buttonProps}
+ isOpen={isOpen}
+ >
+ {selectedOption.icon}
+ {selectedOption.label}
+ {options.length > 1 && <IconChevronDown />}
+ </StyledButton>
+ {isOpen && (
+ <DropdownMenu>
+ {options
+ .filter((option) => option.label !== selectedOption.label)
+ .map((option, index) => (
+ <StyledDropdownItem
+ key={index}
+ onClick={handleSelect(option)}
+ >
+ {option.icon}
+ {option.label}
+ </StyledDropdownItem>
+ ))}
+ </DropdownMenu>
+ )}
+ </DropdownContainer>
)}
- </DropdownContainer>
+ </>
);
}
diff --git a/front/src/modules/ui/components/property-box/PropertyBoxItem.tsx b/front/src/modules/ui/components/property-box/PropertyBoxItem.tsx
index f7fda772057..13cc1ce13f8 100644
--- a/front/src/modules/ui/components/property-box/PropertyBoxItem.tsx
+++ b/front/src/modules/ui/components/property-box/PropertyBoxItem.tsx
@@ -5,7 +5,7 @@ const StyledPropertyBoxItem = styled.div`
align-items: center;
display: flex;
gap: ${({ theme }) => theme.spacing(2)};
- height: 32px;
+ padding: ${({ theme }) => theme.spacing(1)};
`;
const StyledIconContainer = styled.div`
diff --git a/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBar.tsx b/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBar.tsx
index 973015addfb..27cf747ec74 100644
--- a/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBar.tsx
+++ b/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBar.tsx
@@ -1,7 +1,5 @@
import styled from '@emotion/styled';
-import { Button } from '@/ui/components/buttons/Button';
-
import { RightDrawerTopBarCloseButton } from './RightDrawerTopBarCloseButton';
const StyledRightDrawerTopBar = styled.div`
@@ -18,26 +16,14 @@ const StyledRightDrawerTopBar = styled.div`
padding-right: 8px;
`;
-const StyledTopBarTitle = styled.div`
- align-items: center;
- font-weight: ${({ theme }) => theme.font.weight.medium};
- margin-right: ${({ theme }) => theme.spacing(1)};
-`;
-
type OwnProps = {
title?: string | null | undefined;
- onSave?: () => void;
};
-export function RightDrawerTopBar({ title, onSave }: OwnProps) {
- function handleOnClick() {
- onSave?.();
- }
+export function RightDrawerTopBar({ title }: OwnProps) {
return (
<StyledRightDrawerTopBar>
<RightDrawerTopBarCloseButton />
- <StyledTopBarTitle>{title}</StyledTopBarTitle>
- {onSave ? <Button title="Save" onClick={handleOnClick} /> : <div></div>}
</StyledRightDrawerTopBar>
);
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts
index fa89ef4788e..8d33b53e99b 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.input.ts
@@ -20,6 +20,21 @@ export class CommentThreadCountAggregateInput {
@Field(() => Boolean, {nullable:true})
title?: true;
+ @Field(() => Boolean, {nullable:true})
+ type?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ reminderAt?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ dueAt?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ completedAt?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ assigneeId?: true;
+
@HideField()
deletedAt?: true;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts
index ec5a1ea96c3..dee45729363 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-count-aggregate.output.ts
@@ -21,6 +21,21 @@ export class CommentThreadCountAggregate {
@Field(() => Int, {nullable:false})
title!: number;
+ @Field(() => Int, {nullable:false})
+ type!: number;
+
+ @Field(() => Int, {nullable:false})
+ reminderAt!: number;
+
+ @Field(() => Int, {nullable:false})
+ dueAt!: number;
+
+ @Field(() => Int, {nullable:false})
+ completedAt!: number;
+
+ @Field(() => Int, {nullable:false})
+ assigneeId!: number;
+
@HideField()
deletedAt!: number;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts
index e062ece4e7a..87face40053 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-count-order-by-aggregate.input.ts
@@ -21,6 +21,21 @@ export class CommentThreadCountOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
title?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ type?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ reminderAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ dueAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ completedAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ assigneeId?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many-assignee-input-envelope.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many-assignee-input-envelope.input.ts
new file mode 100644
index 00000000000..cb26c69af64
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-many-assignee-input-envelope.input.ts
@@ -0,0 +1,15 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateManyAssigneeInput } from './comment-thread-create-many-assignee.input';
+import { Type } from 'class-transformer';
+
+@InputType()
+export class CommentThreadCreateManyAssigneeInputEnvelope {
+
+ @Field(() => [CommentThreadCreateManyAssigneeInput], {nullable:false})
+ @Type(() => CommentThreadCreateManyAssigneeInput)
+ data!: Array<CommentThreadCreateManyAssigneeInput>;
+
+ @Field(() => Boolean, {nullable:true})
+ skipDuplicates?: boolean;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many-assignee.input.ts
new file mode 100644
index 00000000000..176db7868d1
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-many-assignee.input.ts
@@ -0,0 +1,47 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import * as Validator from 'class-validator';
+import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
+
+@InputType()
+export class CommentThreadCreateManyAssigneeInput {
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ id?: string;
+
+ @HideField()
+ workspaceId!: string;
+
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @HideField()
+ deletedAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ createdAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ updatedAt?: Date | string;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many-author.input.ts
index e331f87c3f2..470c403b24f 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-many-author.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-many-author.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
@InputType()
export class CommentThreadCreateManyAuthorInput {
@@ -20,6 +21,21 @@ export class CommentThreadCreateManyAuthorInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts
index 9da07684a67..84be14632a8 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-many-workspace.input.ts
@@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
+import { ActivityType } from '../prisma/activity-type.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
@@ -20,6 +21,21 @@ export class CommentThreadCreateManyWorkspaceInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts
index 04b2147cf16..bf87c91e73e 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-many.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
@InputType()
export class CommentThreadCreateManyInput {
@@ -23,6 +24,21 @@ export class CommentThreadCreateManyInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-nested-many-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-nested-many-without-assignee.input.ts
new file mode 100644
index 00000000000..57a2e3cddf3
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-nested-many-without-assignee.input.ts
@@ -0,0 +1,27 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateWithoutAssigneeInput } from './comment-thread-create-without-assignee.input';
+import { Type } from 'class-transformer';
+import { CommentThreadCreateOrConnectWithoutAssigneeInput } from './comment-thread-create-or-connect-without-assignee.input';
+import { CommentThreadCreateManyAssigneeInputEnvelope } from './comment-thread-create-many-assignee-input-envelope.input';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+
+@InputType()
+export class CommentThreadCreateNestedManyWithoutAssigneeInput {
+
+ @Field(() => [CommentThreadCreateWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadCreateWithoutAssigneeInput)
+ create?: Array<CommentThreadCreateWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadCreateOrConnectWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadCreateOrConnectWithoutAssigneeInput)
+ connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAssigneeInput>;
+
+ @Field(() => CommentThreadCreateManyAssigneeInputEnvelope, {nullable:true})
+ @Type(() => CommentThreadCreateManyAssigneeInputEnvelope)
+ createMany?: CommentThreadCreateManyAssigneeInputEnvelope;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ connect?: Array<CommentThreadWhereUniqueInput>;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-or-connect-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-or-connect-without-assignee.input.ts
new file mode 100644
index 00000000000..4c20822f0a8
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-or-connect-without-assignee.input.ts
@@ -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 { CommentThreadCreateWithoutAssigneeInput } from './comment-thread-create-without-assignee.input';
+
+@InputType()
+export class CommentThreadCreateOrConnectWithoutAssigneeInput {
+
+ @Field(() => CommentThreadWhereUniqueInput, {nullable:false})
+ @Type(() => CommentThreadWhereUniqueInput)
+ where!: CommentThreadWhereUniqueInput;
+
+ @Field(() => CommentThreadCreateWithoutAssigneeInput, {nullable:false})
+ @Type(() => CommentThreadCreateWithoutAssigneeInput)
+ create!: CommentThreadCreateWithoutAssigneeInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-assignee.input.ts
new file mode 100644
index 00000000000..e9f65051443
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-assignee.input.ts
@@ -0,0 +1,57 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import * as Validator from 'class-validator';
+import { ActivityType } from '../prisma/activity-type.enum';
+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 { UserCreateNestedOneWithoutAuthoredCommentThreadsInput } from '../user/user-create-nested-one-without-authored-comment-threads.input';
+
+@InputType()
+export class CommentThreadCreateWithoutAssigneeInput {
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ id?: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | 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;
+
+ @Field(() => UserCreateNestedOneWithoutAuthoredCommentThreadsInput, {nullable:false})
+ author!: UserCreateNestedOneWithoutAuthoredCommentThreadsInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-author.input.ts
index b62a7947898..14227b6a786 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-without-author.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-author.input.ts
@@ -1,10 +1,12 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
+import { ActivityType } from '../prisma/activity-type.enum';
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 { UserCreateNestedOneWithoutAssignedCommentThreadsInput } from '../user/user-create-nested-one-without-assigned-comment-threads.input';
@InputType()
export class CommentThreadCreateWithoutAuthorInput {
@@ -20,6 +22,18 @@ export class CommentThreadCreateWithoutAuthorInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
@HideField()
deletedAt?: Date | string;
@@ -37,4 +51,7 @@ export class CommentThreadCreateWithoutAuthorInput {
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
+
+ @Field(() => UserCreateNestedOneWithoutAssignedCommentThreadsInput, {nullable:true})
+ assignee?: UserCreateNestedOneWithoutAssignedCommentThreadsInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts
index 3b232d56247..cfcdb379b0f 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-comment-thread-targets.input.ts
@@ -1,10 +1,12 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
+import { ActivityType } from '../prisma/activity-type.enum';
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';
+import { UserCreateNestedOneWithoutAuthoredCommentThreadsInput } from '../user/user-create-nested-one-without-authored-comment-threads.input';
+import { UserCreateNestedOneWithoutAssignedCommentThreadsInput } from '../user/user-create-nested-one-without-assigned-comment-threads.input';
@InputType()
export class CommentThreadCreateWithoutCommentThreadTargetsInput {
@@ -20,6 +22,18 @@ export class CommentThreadCreateWithoutCommentThreadTargetsInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
@HideField()
deletedAt?: Date | string;
@@ -35,6 +49,9 @@ export class CommentThreadCreateWithoutCommentThreadTargetsInput {
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
- @Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
- author!: UserCreateNestedOneWithoutCommentThreadInput;
+ @Field(() => UserCreateNestedOneWithoutAuthoredCommentThreadsInput, {nullable:false})
+ author!: UserCreateNestedOneWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserCreateNestedOneWithoutAssignedCommentThreadsInput, {nullable:true})
+ assignee?: UserCreateNestedOneWithoutAssignedCommentThreadsInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts
index c9f82907361..5304c459a06 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-comments.input.ts
@@ -1,10 +1,12 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
+import { ActivityType } from '../prisma/activity-type.enum';
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';
+import { UserCreateNestedOneWithoutAuthoredCommentThreadsInput } from '../user/user-create-nested-one-without-authored-comment-threads.input';
+import { UserCreateNestedOneWithoutAssignedCommentThreadsInput } from '../user/user-create-nested-one-without-assigned-comment-threads.input';
@InputType()
export class CommentThreadCreateWithoutCommentsInput {
@@ -20,6 +22,18 @@ export class CommentThreadCreateWithoutCommentsInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
@HideField()
deletedAt?: Date | string;
@@ -35,6 +49,9 @@ export class CommentThreadCreateWithoutCommentsInput {
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
- @Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
- author!: UserCreateNestedOneWithoutCommentThreadInput;
+ @Field(() => UserCreateNestedOneWithoutAuthoredCommentThreadsInput, {nullable:false})
+ author!: UserCreateNestedOneWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserCreateNestedOneWithoutAssignedCommentThreadsInput, {nullable:true})
+ assignee?: UserCreateNestedOneWithoutAssignedCommentThreadsInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts
index c33366bebad..a5e18c5cb57 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create-without-workspace.input.ts
@@ -1,10 +1,12 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
+import { ActivityType } from '../prisma/activity-type.enum';
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';
+import { UserCreateNestedOneWithoutAuthoredCommentThreadsInput } from '../user/user-create-nested-one-without-authored-comment-threads.input';
+import { UserCreateNestedOneWithoutAssignedCommentThreadsInput } from '../user/user-create-nested-one-without-assigned-comment-threads.input';
@InputType()
export class CommentThreadCreateWithoutWorkspaceInput {
@@ -20,6 +22,18 @@ export class CommentThreadCreateWithoutWorkspaceInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
@HideField()
deletedAt?: Date | string;
@@ -35,6 +49,9 @@ export class CommentThreadCreateWithoutWorkspaceInput {
@Field(() => CommentCreateNestedManyWithoutCommentThreadInput, {nullable:true})
comments?: CommentCreateNestedManyWithoutCommentThreadInput;
- @Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
- author!: UserCreateNestedOneWithoutCommentThreadInput;
+ @Field(() => UserCreateNestedOneWithoutAuthoredCommentThreadsInput, {nullable:false})
+ author!: UserCreateNestedOneWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserCreateNestedOneWithoutAssignedCommentThreadsInput, {nullable:true})
+ assignee?: UserCreateNestedOneWithoutAssignedCommentThreadsInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-create.input.ts b/server/src/core/@generated/comment-thread/comment-thread-create.input.ts
index dbbfb03c678..cada3bcf667 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-create.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-create.input.ts
@@ -1,11 +1,13 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
+import { ActivityType } from '../prisma/activity-type.enum';
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';
+import { UserCreateNestedOneWithoutAuthoredCommentThreadsInput } from '../user/user-create-nested-one-without-authored-comment-threads.input';
+import { UserCreateNestedOneWithoutAssignedCommentThreadsInput } from '../user/user-create-nested-one-without-assigned-comment-threads.input';
@InputType()
export class CommentThreadCreateInput {
@@ -21,6 +23,18 @@ export class CommentThreadCreateInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
@HideField()
deletedAt?: Date | string;
@@ -39,6 +53,9 @@ export class CommentThreadCreateInput {
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutCommentThreadsInput;
- @Field(() => UserCreateNestedOneWithoutCommentThreadInput, {nullable:false})
- author!: UserCreateNestedOneWithoutCommentThreadInput;
+ @Field(() => UserCreateNestedOneWithoutAuthoredCommentThreadsInput, {nullable:false})
+ author!: UserCreateNestedOneWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserCreateNestedOneWithoutAssignedCommentThreadsInput, {nullable:true})
+ assignee?: UserCreateNestedOneWithoutAssignedCommentThreadsInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts b/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts
index 16b8ac21fab..1dfebdcb7f3 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-group-by.output.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
import { CommentThreadCountAggregate } from './comment-thread-count-aggregate.output';
import { CommentThreadMinAggregate } from './comment-thread-min-aggregate.output';
import { CommentThreadMaxAggregate } from './comment-thread-max-aggregate.output';
@@ -26,6 +27,21 @@ export class CommentThreadGroupBy {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:false})
+ type!: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts
index 19110d060c8..a3a4c165bc8 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.input.ts
@@ -20,6 +20,21 @@ export class CommentThreadMaxAggregateInput {
@Field(() => Boolean, {nullable:true})
title?: true;
+ @Field(() => Boolean, {nullable:true})
+ type?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ reminderAt?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ dueAt?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ completedAt?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ assigneeId?: true;
+
@HideField()
deletedAt?: true;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts
index 792e77c5af0..d4f6142fcd5 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-max-aggregate.output.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
@ObjectType()
export class CommentThreadMaxAggregate {
@@ -23,6 +24,21 @@ export class CommentThreadMaxAggregate {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts
index a0904e021d1..a3196aed593 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-max-order-by-aggregate.input.ts
@@ -21,6 +21,21 @@ export class CommentThreadMaxOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
title?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ type?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ reminderAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ dueAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ completedAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ assigneeId?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts
index 07e64e5a3eb..fdebf06d2c1 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.input.ts
@@ -20,6 +20,21 @@ export class CommentThreadMinAggregateInput {
@Field(() => Boolean, {nullable:true})
title?: true;
+ @Field(() => Boolean, {nullable:true})
+ type?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ reminderAt?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ dueAt?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ completedAt?: true;
+
+ @Field(() => Boolean, {nullable:true})
+ assigneeId?: true;
+
@HideField()
deletedAt?: true;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts
index 943fde8fc3e..b0702117668 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-min-aggregate.output.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
@ObjectType()
export class CommentThreadMinAggregate {
@@ -23,6 +24,21 @@ export class CommentThreadMinAggregate {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts b/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts
index 4157c790bf6..a25760ac180 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-min-order-by-aggregate.input.ts
@@ -21,6 +21,21 @@ export class CommentThreadMinOrderByAggregateInput {
@Field(() => SortOrder, {nullable:true})
title?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ type?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ reminderAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ dueAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ completedAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ assigneeId?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts
index 8b14f681154..94adb64f9e5 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-aggregation.input.ts
@@ -24,6 +24,21 @@ export class CommentThreadOrderByWithAggregationInput {
@Field(() => SortOrder, {nullable:true})
title?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ type?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ reminderAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ dueAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ completedAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ assigneeId?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts
index 965fd2e5a57..43e3eeaa2f6 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-order-by-with-relation.input.ts
@@ -25,6 +25,21 @@ export class CommentThreadOrderByWithRelationInput {
@Field(() => SortOrder, {nullable:true})
title?: keyof typeof SortOrder;
+ @Field(() => SortOrder, {nullable:true})
+ type?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ reminderAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ dueAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ completedAt?: keyof typeof SortOrder;
+
+ @Field(() => SortOrder, {nullable:true})
+ assigneeId?: keyof typeof SortOrder;
+
@HideField()
deletedAt?: keyof typeof SortOrder;
@@ -45,4 +60,7 @@ export class CommentThreadOrderByWithRelationInput {
@Field(() => UserOrderByWithRelationInput, {nullable:true})
author?: UserOrderByWithRelationInput;
+
+ @Field(() => UserOrderByWithRelationInput, {nullable:true})
+ assignee?: UserOrderByWithRelationInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts
index 8514803aae4..c7b9b53ccb0 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-field.enum.ts
@@ -6,6 +6,11 @@ export enum CommentThreadScalarFieldEnum {
authorId = "authorId",
body = "body",
title = "title",
+ type = "type",
+ reminderAt = "reminderAt",
+ dueAt = "dueAt",
+ completedAt = "completedAt",
+ assigneeId = "assigneeId",
deletedAt = "deletedAt",
createdAt = "createdAt",
updatedAt = "updatedAt"
diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts
index aba648d585c..d0779620e08 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-where-with-aggregates.input.ts
@@ -3,6 +3,7 @@ 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 { EnumActivityTypeWithAggregatesFilter } from '../prisma/enum-activity-type-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';
@@ -33,6 +34,21 @@ export class CommentThreadScalarWhereWithAggregatesInput {
@Field(() => StringNullableWithAggregatesFilter, {nullable:true})
title?: StringNullableWithAggregatesFilter;
+ @Field(() => EnumActivityTypeWithAggregatesFilter, {nullable:true})
+ type?: EnumActivityTypeWithAggregatesFilter;
+
+ @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true})
+ reminderAt?: DateTimeNullableWithAggregatesFilter;
+
+ @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true})
+ dueAt?: DateTimeNullableWithAggregatesFilter;
+
+ @Field(() => DateTimeNullableWithAggregatesFilter, {nullable:true})
+ completedAt?: DateTimeNullableWithAggregatesFilter;
+
+ @Field(() => StringNullableWithAggregatesFilter, {nullable:true})
+ assigneeId?: StringNullableWithAggregatesFilter;
+
@HideField()
deletedAt?: DateTimeNullableWithAggregatesFilter;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts b/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts
index 348b444a3e7..18f6fc4d97e 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-scalar-where.input.ts
@@ -3,6 +3,7 @@ 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 { EnumActivityTypeFilter } from '../prisma/enum-activity-type-filter.input';
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
import { DateTimeFilter } from '../prisma/date-time-filter.input';
@@ -33,6 +34,21 @@ export class CommentThreadScalarWhereInput {
@Field(() => StringNullableFilter, {nullable:true})
title?: StringNullableFilter;
+ @Field(() => EnumActivityTypeFilter, {nullable:true})
+ type?: EnumActivityTypeFilter;
+
+ @Field(() => DateTimeNullableFilter, {nullable:true})
+ reminderAt?: DateTimeNullableFilter;
+
+ @Field(() => DateTimeNullableFilter, {nullable:true})
+ dueAt?: DateTimeNullableFilter;
+
+ @Field(() => DateTimeNullableFilter, {nullable:true})
+ completedAt?: DateTimeNullableFilter;
+
+ @Field(() => StringNullableFilter, {nullable:true})
+ assigneeId?: StringNullableFilter;
+
@HideField()
deletedAt?: DateTimeNullableFilter;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-nested-many-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-nested-many-without-assignee.input.ts
new file mode 100644
index 00000000000..0e6914b5673
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-nested-many-without-assignee.input.ts
@@ -0,0 +1,27 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateWithoutAssigneeInput } from './comment-thread-create-without-assignee.input';
+import { Type } from 'class-transformer';
+import { CommentThreadCreateOrConnectWithoutAssigneeInput } from './comment-thread-create-or-connect-without-assignee.input';
+import { CommentThreadCreateManyAssigneeInputEnvelope } from './comment-thread-create-many-assignee-input-envelope.input';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+
+@InputType()
+export class CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput {
+
+ @Field(() => [CommentThreadCreateWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadCreateWithoutAssigneeInput)
+ create?: Array<CommentThreadCreateWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadCreateOrConnectWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadCreateOrConnectWithoutAssigneeInput)
+ connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAssigneeInput>;
+
+ @Field(() => CommentThreadCreateManyAssigneeInputEnvelope, {nullable:true})
+ @Type(() => CommentThreadCreateManyAssigneeInputEnvelope)
+ createMany?: CommentThreadCreateManyAssigneeInputEnvelope;
+
+ @Field(() => [CommentThreadWhereUniqueInput], {nullable:true})
+ @Type(() => CommentThreadWhereUniqueInput)
+ connect?: Array<CommentThreadWhereUniqueInput>;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-assignee.input.ts
new file mode 100644
index 00000000000..fdef6da66e0
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-assignee.input.ts
@@ -0,0 +1,55 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import * as Validator from 'class-validator';
+import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
+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 CommentThreadUncheckedCreateWithoutAssigneeInput {
+
+ @Field(() => String, {nullable:true})
+ @Validator.IsString()
+ @Validator.IsOptional()
+ id?: string;
+
+ @HideField()
+ workspaceId!: string;
+
+ @Field(() => String, {nullable:false})
+ authorId!: string;
+
+ @Field(() => String, {nullable:true})
+ body?: string;
+
+ @Field(() => String, {nullable:true})
+ title?: string;
+
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | 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;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-author.input.ts
index 04e17ff0f0a..de9c07e0a06 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-author.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-author.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
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';
@@ -22,6 +23,21 @@ export class CommentThreadUncheckedCreateWithoutAuthorInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts
index ff17713a73f..295b415dd8c 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comment-thread-targets.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
import { CommentUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment/comment-unchecked-create-nested-many-without-comment-thread.input';
@InputType()
@@ -24,6 +25,21 @@ export class CommentThreadUncheckedCreateWithoutCommentThreadTargetsInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts
index 786866edca8..e7270b9eba9 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-comments.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
import { CommentThreadTargetUncheckedCreateNestedManyWithoutCommentThreadInput } from '../comment-thread-target/comment-thread-target-unchecked-create-nested-many-without-comment-thread.input';
@InputType()
@@ -24,6 +25,21 @@ export class CommentThreadUncheckedCreateWithoutCommentsInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts
index 99dd0248d1d..6fa04fbd685 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create-without-workspace.input.ts
@@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
+import { ActivityType } from '../prisma/activity-type.enum';
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';
@@ -22,6 +23,21 @@ export class CommentThreadUncheckedCreateWithoutWorkspaceInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts
index 493cde6a076..d6064df67b5 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-create.input.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import * as Validator from 'class-validator';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
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';
@@ -25,6 +26,21 @@ export class CommentThreadUncheckedCreateInput {
@Field(() => String, {nullable:true})
title?: string;
+ @Field(() => ActivityType, {nullable:true})
+ type?: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ dueAt?: Date | string;
+
+ @Field(() => Date, {nullable:true})
+ completedAt?: Date | string;
+
+ @Field(() => String, {nullable:true})
+ assigneeId?: string;
+
@HideField()
deletedAt?: Date | string;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-assigned-comment-threads.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-assigned-comment-threads.input.ts
new file mode 100644
index 00000000000..2e9ece3d37a
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-assigned-comment-threads.input.ts
@@ -0,0 +1,48 @@
+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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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 CommentThreadUncheckedUpdateManyWithoutAssignedCommentThreadsInput {
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ id?: StringFieldUpdateOperationsInput;
+
+ @HideField()
+ workspaceId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ authorId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @HideField()
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ createdAt?: DateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ updatedAt?: DateTimeFieldUpdateOperationsInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-assignee-nested.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-assignee-nested.input.ts
new file mode 100644
index 00000000000..0aade1da99c
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-assignee-nested.input.ts
@@ -0,0 +1,59 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateWithoutAssigneeInput } from './comment-thread-create-without-assignee.input';
+import { Type } from 'class-transformer';
+import { CommentThreadCreateOrConnectWithoutAssigneeInput } from './comment-thread-create-or-connect-without-assignee.input';
+import { CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput } from './comment-thread-upsert-with-where-unique-without-assignee.input';
+import { CommentThreadCreateManyAssigneeInputEnvelope } from './comment-thread-create-many-assignee-input-envelope.input';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+import { CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput } from './comment-thread-update-with-where-unique-without-assignee.input';
+import { CommentThreadUpdateManyWithWhereWithoutAssigneeInput } from './comment-thread-update-many-with-where-without-assignee.input';
+import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
+
+@InputType()
+export class CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput {
+
+ @Field(() => [CommentThreadCreateWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadCreateWithoutAssigneeInput)
+ create?: Array<CommentThreadCreateWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadCreateOrConnectWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadCreateOrConnectWithoutAssigneeInput)
+ connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput)
+ upsert?: Array<CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput>;
+
+ @Field(() => CommentThreadCreateManyAssigneeInputEnvelope, {nullable:true})
+ @Type(() => CommentThreadCreateManyAssigneeInputEnvelope)
+ createMany?: CommentThreadCreateManyAssigneeInputEnvelope;
+
+ @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(() => [CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput)
+ update?: Array<CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadUpdateManyWithWhereWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadUpdateManyWithWhereWithoutAssigneeInput)
+ updateMany?: Array<CommentThreadUpdateManyWithWhereWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadScalarWhereInput], {nullable:true})
+ @Type(() => CommentThreadScalarWhereInput)
+ deleteMany?: Array<CommentThreadScalarWhereInput>;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-authored-comment-threads.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-authored-comment-threads.input.ts
new file mode 100644
index 00000000000..8f7b55dba0a
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-authored-comment-threads.input.ts
@@ -0,0 +1,48 @@
+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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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 CommentThreadUncheckedUpdateManyWithoutAuthoredCommentThreadsInput {
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ id?: StringFieldUpdateOperationsInput;
+
+ @HideField()
+ workspaceId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ assigneeId?: NullableStringFieldUpdateOperationsInput;
+
+ @HideField()
+ deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ createdAt?: DateTimeFieldUpdateOperationsInput;
+
+ @Field(() => DateTimeFieldUpdateOperationsInput, {nullable:true})
+ updatedAt?: DateTimeFieldUpdateOperationsInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts
index 1888e3f19c9..4085282b973 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many-without-comment-threads.input.ts
@@ -2,6 +2,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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
@@ -21,6 +22,21 @@ export class CommentThreadUncheckedUpdateManyWithoutCommentThreadsInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ assigneeId?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts
index e1f3ea66e57..76c1f052337 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-many.input.ts
@@ -3,6 +3,7 @@ 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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
@@ -24,6 +25,21 @@ export class CommentThreadUncheckedUpdateManyInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ assigneeId?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-assignee.input.ts
new file mode 100644
index 00000000000..ee89156c55e
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-assignee.input.ts
@@ -0,0 +1,56 @@
+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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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 CommentThreadUncheckedUpdateWithoutAssigneeInput {
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ id?: StringFieldUpdateOperationsInput;
+
+ @HideField()
+ workspaceId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ authorId?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @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;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-author.input.ts
index b3fe842f403..0bb07e25fab 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-author.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-author.input.ts
@@ -3,6 +3,7 @@ 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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
@@ -23,6 +24,21 @@ export class CommentThreadUncheckedUpdateWithoutAuthorInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ assigneeId?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts
index 3ab751cb38d..9e86a0e350a 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comment-thread-targets.input.ts
@@ -3,6 +3,7 @@ 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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
@@ -25,6 +26,21 @@ export class CommentThreadUncheckedUpdateWithoutCommentThreadTargetsInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ assigneeId?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts
index b256f8fd198..cce342abd71 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-comments.input.ts
@@ -3,6 +3,7 @@ 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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
@@ -25,6 +26,21 @@ export class CommentThreadUncheckedUpdateWithoutCommentsInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ assigneeId?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts
index 88832fa6ae9..e92b5b4caa4 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update-without-workspace.input.ts
@@ -2,6 +2,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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
@@ -23,6 +24,21 @@ export class CommentThreadUncheckedUpdateWithoutWorkspaceInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ assigneeId?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts
index cc6268a5f60..d9c7a550cd3 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-unchecked-update.input.ts
@@ -3,6 +3,7 @@ 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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
@@ -26,6 +27,21 @@ export class CommentThreadUncheckedUpdateInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ assigneeId?: NullableStringFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts
index e5b15731c2b..f2a574c7197 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-many-mutation.input.ts
@@ -2,6 +2,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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
@@ -18,6 +19,18 @@ export class CommentThreadUpdateManyMutationInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-many-with-where-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-many-with-where-without-assignee.input.ts
new file mode 100644
index 00000000000..7ce26ff3780
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-many-with-where-without-assignee.input.ts
@@ -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 CommentThreadUpdateManyWithWhereWithoutAssigneeInput {
+
+ @Field(() => CommentThreadScalarWhereInput, {nullable:false})
+ @Type(() => CommentThreadScalarWhereInput)
+ where!: CommentThreadScalarWhereInput;
+
+ @Field(() => CommentThreadUpdateManyMutationInput, {nullable:false})
+ @Type(() => CommentThreadUpdateManyMutationInput)
+ data!: CommentThreadUpdateManyMutationInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-many-without-assignee-nested.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-many-without-assignee-nested.input.ts
new file mode 100644
index 00000000000..19236d64a6f
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-many-without-assignee-nested.input.ts
@@ -0,0 +1,59 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { CommentThreadCreateWithoutAssigneeInput } from './comment-thread-create-without-assignee.input';
+import { Type } from 'class-transformer';
+import { CommentThreadCreateOrConnectWithoutAssigneeInput } from './comment-thread-create-or-connect-without-assignee.input';
+import { CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput } from './comment-thread-upsert-with-where-unique-without-assignee.input';
+import { CommentThreadCreateManyAssigneeInputEnvelope } from './comment-thread-create-many-assignee-input-envelope.input';
+import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
+import { CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput } from './comment-thread-update-with-where-unique-without-assignee.input';
+import { CommentThreadUpdateManyWithWhereWithoutAssigneeInput } from './comment-thread-update-many-with-where-without-assignee.input';
+import { CommentThreadScalarWhereInput } from './comment-thread-scalar-where.input';
+
+@InputType()
+export class CommentThreadUpdateManyWithoutAssigneeNestedInput {
+
+ @Field(() => [CommentThreadCreateWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadCreateWithoutAssigneeInput)
+ create?: Array<CommentThreadCreateWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadCreateOrConnectWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadCreateOrConnectWithoutAssigneeInput)
+ connectOrCreate?: Array<CommentThreadCreateOrConnectWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput)
+ upsert?: Array<CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput>;
+
+ @Field(() => CommentThreadCreateManyAssigneeInputEnvelope, {nullable:true})
+ @Type(() => CommentThreadCreateManyAssigneeInputEnvelope)
+ createMany?: CommentThreadCreateManyAssigneeInputEnvelope;
+
+ @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(() => [CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput)
+ update?: Array<CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadUpdateManyWithWhereWithoutAssigneeInput], {nullable:true})
+ @Type(() => CommentThreadUpdateManyWithWhereWithoutAssigneeInput)
+ updateMany?: Array<CommentThreadUpdateManyWithWhereWithoutAssigneeInput>;
+
+ @Field(() => [CommentThreadScalarWhereInput], {nullable:true})
+ @Type(() => CommentThreadScalarWhereInput)
+ deleteMany?: Array<CommentThreadScalarWhereInput>;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-with-where-unique-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-with-where-unique-without-assignee.input.ts
new file mode 100644
index 00000000000..a7a826766fa
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-with-where-unique-without-assignee.input.ts
@@ -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 { CommentThreadUpdateWithoutAssigneeInput } from './comment-thread-update-without-assignee.input';
+
+@InputType()
+export class CommentThreadUpdateWithWhereUniqueWithoutAssigneeInput {
+
+ @Field(() => CommentThreadWhereUniqueInput, {nullable:false})
+ @Type(() => CommentThreadWhereUniqueInput)
+ where!: CommentThreadWhereUniqueInput;
+
+ @Field(() => CommentThreadUpdateWithoutAssigneeInput, {nullable:false})
+ @Type(() => CommentThreadUpdateWithoutAssigneeInput)
+ data!: CommentThreadUpdateWithoutAssigneeInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-assignee.input.ts
new file mode 100644
index 00000000000..117e76c9314
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-assignee.input.ts
@@ -0,0 +1,58 @@
+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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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 { UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput } from '../user/user-update-one-required-without-authored-comment-threads-nested.input';
+
+@InputType()
+export class CommentThreadUpdateWithoutAssigneeInput {
+
+ @Field(() => StringFieldUpdateOperationsInput, {nullable:true})
+ id?: StringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ body?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
+ title?: NullableStringFieldUpdateOperationsInput;
+
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @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;
+
+ @Field(() => UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput, {nullable:true})
+ author?: UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-author.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-author.input.ts
index 01b3d157be4..28c7cff9ac6 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update-without-author.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-author.input.ts
@@ -2,12 +2,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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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 { UserUpdateOneWithoutAssignedCommentThreadsNestedInput } from '../user/user-update-one-without-assigned-comment-threads-nested.input';
@InputType()
export class CommentThreadUpdateWithoutAuthorInput {
@@ -21,6 +23,18 @@ export class CommentThreadUpdateWithoutAuthorInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@@ -38,4 +52,7 @@ export class CommentThreadUpdateWithoutAuthorInput {
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
+
+ @Field(() => UserUpdateOneWithoutAssignedCommentThreadsNestedInput, {nullable:true})
+ assignee?: UserUpdateOneWithoutAssignedCommentThreadsNestedInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts
index 73c85e07508..4780011da6c 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-comment-thread-targets.input.ts
@@ -2,12 +2,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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
+import { UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput } from '../user/user-update-one-required-without-authored-comment-threads-nested.input';
+import { UserUpdateOneWithoutAssignedCommentThreadsNestedInput } from '../user/user-update-one-without-assigned-comment-threads-nested.input';
@InputType()
export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
@@ -21,6 +23,18 @@ export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@@ -36,6 +50,9 @@ export class CommentThreadUpdateWithoutCommentThreadTargetsInput {
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
- @Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
- author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
+ @Field(() => UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput, {nullable:true})
+ author?: UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput;
+
+ @Field(() => UserUpdateOneWithoutAssignedCommentThreadsNestedInput, {nullable:true})
+ assignee?: UserUpdateOneWithoutAssignedCommentThreadsNestedInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts
index 13be38fe98c..dee47c49a8e 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-comments.input.ts
@@ -2,12 +2,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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
+import { UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput } from '../user/user-update-one-required-without-authored-comment-threads-nested.input';
+import { UserUpdateOneWithoutAssignedCommentThreadsNestedInput } from '../user/user-update-one-without-assigned-comment-threads-nested.input';
@InputType()
export class CommentThreadUpdateWithoutCommentsInput {
@@ -21,6 +23,18 @@ export class CommentThreadUpdateWithoutCommentsInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@@ -36,6 +50,9 @@ export class CommentThreadUpdateWithoutCommentsInput {
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
- @Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
- author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
+ @Field(() => UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput, {nullable:true})
+ author?: UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput;
+
+ @Field(() => UserUpdateOneWithoutAssignedCommentThreadsNestedInput, {nullable:true})
+ assignee?: UserUpdateOneWithoutAssignedCommentThreadsNestedInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts
index 251a0982923..30442c8c903 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update-without-workspace.input.ts
@@ -2,12 +2,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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
+import { UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput } from '../user/user-update-one-required-without-authored-comment-threads-nested.input';
+import { UserUpdateOneWithoutAssignedCommentThreadsNestedInput } from '../user/user-update-one-without-assigned-comment-threads-nested.input';
@InputType()
export class CommentThreadUpdateWithoutWorkspaceInput {
@@ -21,6 +23,18 @@ export class CommentThreadUpdateWithoutWorkspaceInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@@ -36,6 +50,9 @@ export class CommentThreadUpdateWithoutWorkspaceInput {
@Field(() => CommentUpdateManyWithoutCommentThreadNestedInput, {nullable:true})
comments?: CommentUpdateManyWithoutCommentThreadNestedInput;
- @Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
- author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
+ @Field(() => UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput, {nullable:true})
+ author?: UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput;
+
+ @Field(() => UserUpdateOneWithoutAssignedCommentThreadsNestedInput, {nullable:true})
+ assignee?: UserUpdateOneWithoutAssignedCommentThreadsNestedInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-update.input.ts b/server/src/core/@generated/comment-thread/comment-thread-update.input.ts
index d5f63a2e2a2..db2c55e97b4 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-update.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-update.input.ts
@@ -2,13 +2,15 @@ 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 { EnumActivityTypeFieldUpdateOperationsInput } from '../prisma/enum-activity-type-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';
+import { UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput } from '../user/user-update-one-required-without-authored-comment-threads-nested.input';
+import { UserUpdateOneWithoutAssignedCommentThreadsNestedInput } from '../user/user-update-one-without-assigned-comment-threads-nested.input';
@InputType()
export class CommentThreadUpdateInput {
@@ -22,6 +24,18 @@ export class CommentThreadUpdateInput {
@Field(() => NullableStringFieldUpdateOperationsInput, {nullable:true})
title?: NullableStringFieldUpdateOperationsInput;
+ @Field(() => EnumActivityTypeFieldUpdateOperationsInput, {nullable:true})
+ type?: EnumActivityTypeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ reminderAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ dueAt?: NullableDateTimeFieldUpdateOperationsInput;
+
+ @Field(() => NullableDateTimeFieldUpdateOperationsInput, {nullable:true})
+ completedAt?: NullableDateTimeFieldUpdateOperationsInput;
+
@HideField()
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
@@ -40,6 +54,9 @@ export class CommentThreadUpdateInput {
@HideField()
workspace?: WorkspaceUpdateOneRequiredWithoutCommentThreadsNestedInput;
- @Field(() => UserUpdateOneRequiredWithoutCommentThreadNestedInput, {nullable:true})
- author?: UserUpdateOneRequiredWithoutCommentThreadNestedInput;
+ @Field(() => UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput, {nullable:true})
+ author?: UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput;
+
+ @Field(() => UserUpdateOneWithoutAssignedCommentThreadsNestedInput, {nullable:true})
+ assignee?: UserUpdateOneWithoutAssignedCommentThreadsNestedInput;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-upsert-with-where-unique-without-assignee.input.ts b/server/src/core/@generated/comment-thread/comment-thread-upsert-with-where-unique-without-assignee.input.ts
new file mode 100644
index 00000000000..824fce1b953
--- /dev/null
+++ b/server/src/core/@generated/comment-thread/comment-thread-upsert-with-where-unique-without-assignee.input.ts
@@ -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 { CommentThreadUpdateWithoutAssigneeInput } from './comment-thread-update-without-assignee.input';
+import { CommentThreadCreateWithoutAssigneeInput } from './comment-thread-create-without-assignee.input';
+
+@InputType()
+export class CommentThreadUpsertWithWhereUniqueWithoutAssigneeInput {
+
+ @Field(() => CommentThreadWhereUniqueInput, {nullable:false})
+ @Type(() => CommentThreadWhereUniqueInput)
+ where!: CommentThreadWhereUniqueInput;
+
+ @Field(() => CommentThreadUpdateWithoutAssigneeInput, {nullable:false})
+ @Type(() => CommentThreadUpdateWithoutAssigneeInput)
+ update!: CommentThreadUpdateWithoutAssigneeInput;
+
+ @Field(() => CommentThreadCreateWithoutAssigneeInput, {nullable:false})
+ @Type(() => CommentThreadCreateWithoutAssigneeInput)
+ create!: CommentThreadCreateWithoutAssigneeInput;
+}
diff --git a/server/src/core/@generated/comment-thread/comment-thread-where.input.ts b/server/src/core/@generated/comment-thread/comment-thread-where.input.ts
index a6ebf673d68..553ec5c3ad8 100644
--- a/server/src/core/@generated/comment-thread/comment-thread-where.input.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread-where.input.ts
@@ -3,6 +3,7 @@ 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 { EnumActivityTypeFilter } from '../prisma/enum-activity-type-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';
@@ -37,6 +38,21 @@ export class CommentThreadWhereInput {
@Field(() => StringNullableFilter, {nullable:true})
title?: StringNullableFilter;
+ @Field(() => EnumActivityTypeFilter, {nullable:true})
+ type?: EnumActivityTypeFilter;
+
+ @Field(() => DateTimeNullableFilter, {nullable:true})
+ reminderAt?: DateTimeNullableFilter;
+
+ @Field(() => DateTimeNullableFilter, {nullable:true})
+ dueAt?: DateTimeNullableFilter;
+
+ @Field(() => DateTimeNullableFilter, {nullable:true})
+ completedAt?: DateTimeNullableFilter;
+
+ @Field(() => StringNullableFilter, {nullable:true})
+ assigneeId?: StringNullableFilter;
+
@HideField()
deletedAt?: DateTimeNullableFilter;
@@ -57,4 +73,7 @@ export class CommentThreadWhereInput {
@Field(() => UserRelationFilter, {nullable:true})
author?: UserRelationFilter;
+
+ @Field(() => UserRelationFilter, {nullable:true})
+ assignee?: UserRelationFilter;
}
diff --git a/server/src/core/@generated/comment-thread/comment-thread.model.ts b/server/src/core/@generated/comment-thread/comment-thread.model.ts
index e8411c7368f..8ae7b5f29b0 100644
--- a/server/src/core/@generated/comment-thread/comment-thread.model.ts
+++ b/server/src/core/@generated/comment-thread/comment-thread.model.ts
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { ID } from '@nestjs/graphql';
import { HideField } from '@nestjs/graphql';
+import { ActivityType } from '../prisma/activity-type.enum';
import { CommentThreadTarget } from '../comment-thread-target/comment-thread-target.model';
import { Comment } from '../comment/comment.model';
import { Workspace } from '../workspace/workspace.model';
@@ -26,6 +27,21 @@ export class CommentThread {
@Field(() => String, {nullable:true})
title!: string | null;
+ @Field(() => ActivityType, {nullable:false,defaultValue:'Note'})
+ type!: keyof typeof ActivityType;
+
+ @Field(() => Date, {nullable:true})
+ reminderAt!: Date | null;
+
+ @Field(() => Date, {nullable:true})
+ dueAt!: Date | null;
+
+ @Field(() => Date, {nullable:true})
+ completedAt!: Date | null;
+
+ @Field(() => String, {nullable:true})
+ assigneeId!: string | null;
+
@HideField()
deletedAt!: Date | null;
@@ -47,6 +63,9 @@ export class CommentThread {
@Field(() => User, {nullable:false})
author?: User;
+ @Field(() => User, {nullable:true})
+ assignee?: User | null;
+
@HideField()
_count?: CommentThreadCount;
}
diff --git a/server/src/core/@generated/prisma/activity-type.enum.ts b/server/src/core/@generated/prisma/activity-type.enum.ts
new file mode 100644
index 00000000000..b64f2286d56
--- /dev/null
+++ b/server/src/core/@generated/prisma/activity-type.enum.ts
@@ -0,0 +1,9 @@
+import { registerEnumType } from '@nestjs/graphql';
+
+export enum ActivityType {
+ Note = "Note",
+ Task = "Task"
+}
+
+
+registerEnumType(ActivityType, { name: 'ActivityType', description: undefined })
diff --git a/server/src/core/@generated/prisma/enum-activity-type-field-update-operations.input.ts b/server/src/core/@generated/prisma/enum-activity-type-field-update-operations.input.ts
new file mode 100644
index 00000000000..dcdb989b6d2
--- /dev/null
+++ b/server/src/core/@generated/prisma/enum-activity-type-field-update-operations.input.ts
@@ -0,0 +1,10 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { ActivityType } from './activity-type.enum';
+
+@InputType()
+export class EnumActivityTypeFieldUpdateOperationsInput {
+
+ @Field(() => ActivityType, {nullable:true})
+ set?: keyof typeof ActivityType;
+}
diff --git a/server/src/core/@generated/prisma/enum-activity-type-filter.input.ts b/server/src/core/@generated/prisma/enum-activity-type-filter.input.ts
new file mode 100644
index 00000000000..57461c87588
--- /dev/null
+++ b/server/src/core/@generated/prisma/enum-activity-type-filter.input.ts
@@ -0,0 +1,20 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { ActivityType } from './activity-type.enum';
+import { NestedEnumActivityTypeFilter } from './nested-enum-activity-type-filter.input';
+
+@InputType()
+export class EnumActivityTypeFilter {
+
+ @Field(() => ActivityType, {nullable:true})
+ equals?: keyof typeof ActivityType;
+
+ @Field(() => [ActivityType], {nullable:true})
+ in?: Array<keyof typeof ActivityType>;
+
+ @Field(() => [ActivityType], {nullable:true})
+ notIn?: Array<keyof typeof ActivityType>;
+
+ @Field(() => NestedEnumActivityTypeFilter, {nullable:true})
+ not?: NestedEnumActivityTypeFilter;
+}
diff --git a/server/src/core/@generated/prisma/enum-activity-type-with-aggregates-filter.input.ts b/server/src/core/@generated/prisma/enum-activity-type-with-aggregates-filter.input.ts
new file mode 100644
index 00000000000..7e4bee65c14
--- /dev/null
+++ b/server/src/core/@generated/prisma/enum-activity-type-with-aggregates-filter.input.ts
@@ -0,0 +1,31 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { ActivityType } from './activity-type.enum';
+import { NestedEnumActivityTypeWithAggregatesFilter } from './nested-enum-activity-type-with-aggregates-filter.input';
+import { NestedIntFilter } from './nested-int-filter.input';
+import { NestedEnumActivityTypeFilter } from './nested-enum-activity-type-filter.input';
+
+@InputType()
+export class EnumActivityTypeWithAggregatesFilter {
+
+ @Field(() => ActivityType, {nullable:true})
+ equals?: keyof typeof ActivityType;
+
+ @Field(() => [ActivityType], {nullable:true})
+ in?: Array<keyof typeof ActivityType>;
+
+ @Field(() => [ActivityType], {nullable:true})
+ notIn?: Array<keyof typeof ActivityType>;
+
+ @Field(() => NestedEnumActivityTypeWithAggregatesFilter, {nullable:true})
+ not?: NestedEnumActivityTypeWithAggregatesFilter;
+
+ @Field(() => NestedIntFilter, {nullable:true})
+ _count?: NestedIntFilter;
+
+ @Field(() => NestedEnumActivityTypeFilter, {nullable:true})
+ _min?: NestedEnumActivityTypeFilter;
+
+ @Field(() => NestedEnumActivityTypeFilter, {nullable:true})
+ _max?: NestedEnumActivityTypeFilter;
+}
diff --git a/server/src/core/@generated/prisma/nested-enum-activity-type-filter.input.ts b/server/src/core/@generated/prisma/nested-enum-activity-type-filter.input.ts
new file mode 100644
index 00000000000..33b3b38f189
--- /dev/null
+++ b/server/src/core/@generated/prisma/nested-enum-activity-type-filter.input.ts
@@ -0,0 +1,19 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { ActivityType } from './activity-type.enum';
+
+@InputType()
+export class NestedEnumActivityTypeFilter {
+
+ @Field(() => ActivityType, {nullable:true})
+ equals?: keyof typeof ActivityType;
+
+ @Field(() => [ActivityType], {nullable:true})
+ in?: Array<keyof typeof ActivityType>;
+
+ @Field(() => [ActivityType], {nullable:true})
+ notIn?: Array<keyof typeof ActivityType>;
+
+ @Field(() => NestedEnumActivityTypeFilter, {nullable:true})
+ not?: NestedEnumActivityTypeFilter;
+}
diff --git a/server/src/core/@generated/prisma/nested-enum-activity-type-with-aggregates-filter.input.ts b/server/src/core/@generated/prisma/nested-enum-activity-type-with-aggregates-filter.input.ts
new file mode 100644
index 00000000000..3d8e3a61328
--- /dev/null
+++ b/server/src/core/@generated/prisma/nested-enum-activity-type-with-aggregates-filter.input.ts
@@ -0,0 +1,30 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { ActivityType } from './activity-type.enum';
+import { NestedIntFilter } from './nested-int-filter.input';
+import { NestedEnumActivityTypeFilter } from './nested-enum-activity-type-filter.input';
+
+@InputType()
+export class NestedEnumActivityTypeWithAggregatesFilter {
+
+ @Field(() => ActivityType, {nullable:true})
+ equals?: keyof typeof ActivityType;
+
+ @Field(() => [ActivityType], {nullable:true})
+ in?: Array<keyof typeof ActivityType>;
+
+ @Field(() => [ActivityType], {nullable:true})
+ notIn?: Array<keyof typeof ActivityType>;
+
+ @Field(() => NestedEnumActivityTypeWithAggregatesFilter, {nullable:true})
+ not?: NestedEnumActivityTypeWithAggregatesFilter;
+
+ @Field(() => NestedIntFilter, {nullable:true})
+ _count?: NestedIntFilter;
+
+ @Field(() => NestedEnumActivityTypeFilter, {nullable:true})
+ _min?: NestedEnumActivityTypeFilter;
+
+ @Field(() => NestedEnumActivityTypeFilter, {nullable:true})
+ _max?: NestedEnumActivityTypeFilter;
+}
diff --git a/server/src/core/@generated/user/user-count.output.ts b/server/src/core/@generated/user/user-count.output.ts
index 13d95817fc2..81a634bf510 100644
--- a/server/src/core/@generated/user/user-count.output.ts
+++ b/server/src/core/@generated/user/user-count.output.ts
@@ -15,5 +15,8 @@ export class UserCount {
comments?: number;
@Field(() => Int, {nullable:false})
- CommentThread?: number;
+ authoredCommentThreads?: number;
+
+ @Field(() => Int, {nullable:false})
+ assignedCommentThreads?: number;
}
diff --git a/server/src/core/@generated/user/user-create-nested-one-without-assigned-comment-threads.input.ts b/server/src/core/@generated/user/user-create-nested-one-without-assigned-comment-threads.input.ts
new file mode 100644
index 00000000000..92a6fb8ba26
--- /dev/null
+++ b/server/src/core/@generated/user/user-create-nested-one-without-assigned-comment-threads.input.ts
@@ -0,0 +1,22 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserCreateWithoutAssignedCommentThreadsInput } from './user-create-without-assigned-comment-threads.input';
+import { Type } from 'class-transformer';
+import { UserCreateOrConnectWithoutAssignedCommentThreadsInput } from './user-create-or-connect-without-assigned-comment-threads.input';
+import { UserWhereUniqueInput } from './user-where-unique.input';
+
+@InputType()
+export class UserCreateNestedOneWithoutAssignedCommentThreadsInput {
+
+ @Field(() => UserCreateWithoutAssignedCommentThreadsInput, {nullable:true})
+ @Type(() => UserCreateWithoutAssignedCommentThreadsInput)
+ create?: UserCreateWithoutAssignedCommentThreadsInput;
+
+ @Field(() => UserCreateOrConnectWithoutAssignedCommentThreadsInput, {nullable:true})
+ @Type(() => UserCreateOrConnectWithoutAssignedCommentThreadsInput)
+ connectOrCreate?: UserCreateOrConnectWithoutAssignedCommentThreadsInput;
+
+ @Field(() => UserWhereUniqueInput, {nullable:true})
+ @Type(() => UserWhereUniqueInput)
+ connect?: UserWhereUniqueInput;
+}
diff --git a/server/src/core/@generated/user/user-create-nested-one-without-authored-comment-threads.input.ts b/server/src/core/@generated/user/user-create-nested-one-without-authored-comment-threads.input.ts
new file mode 100644
index 00000000000..82dd25ee7fa
--- /dev/null
+++ b/server/src/core/@generated/user/user-create-nested-one-without-authored-comment-threads.input.ts
@@ -0,0 +1,22 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserCreateWithoutAuthoredCommentThreadsInput } from './user-create-without-authored-comment-threads.input';
+import { Type } from 'class-transformer';
+import { UserCreateOrConnectWithoutAuthoredCommentThreadsInput } from './user-create-or-connect-without-authored-comment-threads.input';
+import { UserWhereUniqueInput } from './user-where-unique.input';
+
+@InputType()
+export class UserCreateNestedOneWithoutAuthoredCommentThreadsInput {
+
+ @Field(() => UserCreateWithoutAuthoredCommentThreadsInput, {nullable:true})
+ @Type(() => UserCreateWithoutAuthoredCommentThreadsInput)
+ create?: UserCreateWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserCreateOrConnectWithoutAuthoredCommentThreadsInput, {nullable:true})
+ @Type(() => UserCreateOrConnectWithoutAuthoredCommentThreadsInput)
+ connectOrCreate?: UserCreateOrConnectWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserWhereUniqueInput, {nullable:true})
+ @Type(() => UserWhereUniqueInput)
+ connect?: UserWhereUniqueInput;
+}
diff --git a/server/src/core/@generated/user/user-create-or-connect-without-assigned-comment-threads.input.ts b/server/src/core/@generated/user/user-create-or-connect-without-assigned-comment-threads.input.ts
new file mode 100644
index 00000000000..a822dc9f371
--- /dev/null
+++ b/server/src/core/@generated/user/user-create-or-connect-without-assigned-comment-threads.input.ts
@@ -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 { UserCreateWithoutAssignedCommentThreadsInput } from './user-create-without-assigned-comment-threads.input';
+
+@InputType()
+export class UserCreateOrConnectWithoutAssignedCommentThreadsInput {
+
+ @Field(() => UserWhereUniqueInput, {nullable:false})
+ @Type(() => UserWhereUniqueInput)
+ where!: UserWhereUniqueInput;
+
+ @Field(() => UserCreateWithoutAssignedCommentThreadsInput, {nullable:false})
+ @Type(() => UserCreateWithoutAssignedCommentThreadsInput)
+ create!: UserCreateWithoutAssignedCommentThreadsInput;
+}
diff --git a/server/src/core/@generated/user/user-create-or-connect-without-authored-comment-threads.input.ts b/server/src/core/@generated/user/user-create-or-connect-without-authored-comment-threads.input.ts
new file mode 100644
index 00000000000..41b17bc7859
--- /dev/null
+++ b/server/src/core/@generated/user/user-create-or-connect-without-authored-comment-threads.input.ts
@@ -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 { UserCreateWithoutAuthoredCommentThreadsInput } from './user-create-without-authored-comment-threads.input';
+
+@InputType()
+export class UserCreateOrConnectWithoutAuthoredCommentThreadsInput {
+
+ @Field(() => UserWhereUniqueInput, {nullable:false})
+ @Type(() => UserWhereUniqueInput)
+ where!: UserWhereUniqueInput;
+
+ @Field(() => UserCreateWithoutAuthoredCommentThreadsInput, {nullable:false})
+ @Type(() => UserCreateWithoutAuthoredCommentThreadsInput)
+ create!: UserCreateWithoutAuthoredCommentThreadsInput;
+}
diff --git a/server/src/core/@generated/user/user-create-without-assigned-comment-threads.input.ts b/server/src/core/@generated/user/user-create-without-assigned-comment-threads.input.ts
new file mode 100644
index 00000000000..ef3ce990be1
--- /dev/null
+++ b/server/src/core/@generated/user/user-create-without-assigned-comment-threads.input.ts
@@ -0,0 +1,94 @@
+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';
+import { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
+
+@InputType()
+export class UserCreateWithoutAssignedCommentThreadsInput {
+
+ @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;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
+ authoredCommentThreads?: CommentThreadCreateNestedManyWithoutAuthorInput;
+}
diff --git a/server/src/core/@generated/user/user-create-without-authored-comment-threads.input.ts b/server/src/core/@generated/user/user-create-without-authored-comment-threads.input.ts
new file mode 100644
index 00000000000..5c224e75de8
--- /dev/null
+++ b/server/src/core/@generated/user/user-create-without-authored-comment-threads.input.ts
@@ -0,0 +1,94 @@
+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';
+import { CommentThreadCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-create-nested-many-without-assignee.input';
+
+@InputType()
+export class UserCreateWithoutAuthoredCommentThreadsInput {
+
+ @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;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadCreateNestedManyWithoutAssigneeInput;
+}
diff --git a/server/src/core/@generated/user/user-create-without-comments.input.ts b/server/src/core/@generated/user/user-create-without-comments.input.ts
index 92756af64dc..797f504e9cc 100644
--- a/server/src/core/@generated/user/user-create-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-create-without-comments.input.ts
@@ -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 { CommentThreadCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-create-nested-many-without-author.input';
+import { CommentThreadCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-create-nested-many-without-assignee.input';
@InputType()
export class UserCreateWithoutCommentsInput {
@@ -86,5 +87,8 @@ export class UserCreateWithoutCommentsInput {
refreshTokens?: RefreshTokenCreateNestedManyWithoutUserInput;
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-create-without-companies.input.ts b/server/src/core/@generated/user/user-create-without-companies.input.ts
index 1cac06dd225..552674d7de7 100644
--- a/server/src/core/@generated/user/user-create-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-create-without-companies.input.ts
@@ -7,6 +7,7 @@ import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-mem
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';
+import { CommentThreadCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-create-nested-many-without-assignee.input';
@InputType()
export class UserCreateWithoutCompaniesInput {
@@ -86,5 +87,8 @@ export class UserCreateWithoutCompaniesInput {
comments?: CommentCreateNestedManyWithoutAuthorInput;
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts
index aff40d1947a..e2357836dc9 100644
--- a/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-create-without-refresh-tokens.input.ts
@@ -7,6 +7,7 @@ import { WorkspaceMemberCreateNestedOneWithoutUserInput } from '../workspace-mem
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';
+import { CommentThreadCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-create-nested-many-without-assignee.input';
@InputType()
export class UserCreateWithoutRefreshTokensInput {
@@ -86,5 +87,8 @@ export class UserCreateWithoutRefreshTokensInput {
comments?: CommentCreateNestedManyWithoutAuthorInput;
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts
index 9bf4406dbab..e04530883c3 100644
--- a/server/src/core/@generated/user/user-create-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-create-without-workspace-member.input.ts
@@ -7,6 +7,7 @@ import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/comp
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';
+import { CommentThreadCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-create-nested-many-without-assignee.input';
@InputType()
export class UserCreateWithoutWorkspaceMemberInput {
@@ -86,5 +87,8 @@ export class UserCreateWithoutWorkspaceMemberInput {
comments?: CommentCreateNestedManyWithoutAuthorInput;
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-create.input.ts b/server/src/core/@generated/user/user-create.input.ts
index 781f3ea3a54..6f51695540b 100644
--- a/server/src/core/@generated/user/user-create.input.ts
+++ b/server/src/core/@generated/user/user-create.input.ts
@@ -8,6 +8,7 @@ import { CompanyCreateNestedManyWithoutAccountOwnerInput } from '../company/comp
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';
+import { CommentThreadCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-create-nested-many-without-assignee.input';
@InputType()
export class UserCreateInput {
@@ -90,5 +91,8 @@ export class UserCreateInput {
comments?: CommentCreateNestedManyWithoutAuthorInput;
@Field(() => CommentThreadCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-order-by-with-relation.input.ts b/server/src/core/@generated/user/user-order-by-with-relation.input.ts
index c0408a00584..fe6ce942db6 100644
--- a/server/src/core/@generated/user/user-order-by-with-relation.input.ts
+++ b/server/src/core/@generated/user/user-order-by-with-relation.input.ts
@@ -69,5 +69,8 @@ export class UserOrderByWithRelationInput {
comments?: CommentOrderByRelationAggregateInput;
@Field(() => CommentThreadOrderByRelationAggregateInput, {nullable:true})
- CommentThread?: CommentThreadOrderByRelationAggregateInput;
+ authoredCommentThreads?: CommentThreadOrderByRelationAggregateInput;
+
+ @Field(() => CommentThreadOrderByRelationAggregateInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadOrderByRelationAggregateInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-assigned-comment-threads.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-assigned-comment-threads.input.ts
new file mode 100644
index 00000000000..bb259c55814
--- /dev/null
+++ b/server/src/core/@generated/user/user-unchecked-create-without-assigned-comment-threads.input.ts
@@ -0,0 +1,94 @@
+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';
+import { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
+
+@InputType()
+export class UserUncheckedCreateWithoutAssignedCommentThreadsInput {
+
+ @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;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
+ authoredCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-authored-comment-threads.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-authored-comment-threads.input.ts
new file mode 100644
index 00000000000..99ba215cacb
--- /dev/null
+++ b/server/src/core/@generated/user/user-unchecked-create-without-authored-comment-threads.input.ts
@@ -0,0 +1,94 @@
+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';
+import { CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-assignee.input';
+
+@InputType()
+export class UserUncheckedCreateWithoutAuthoredCommentThreadsInput {
+
+ @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;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput;
+}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts
index 696c291e2d0..f13dc6773fc 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-comments.input.ts
@@ -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 { CommentThreadUncheckedCreateNestedManyWithoutAuthorInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-author.input';
+import { CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-assignee.input';
@InputType()
export class UserUncheckedCreateWithoutCommentsInput {
@@ -86,5 +87,8 @@ export class UserUncheckedCreateWithoutCommentsInput {
refreshTokens?: RefreshTokenUncheckedCreateNestedManyWithoutUserInput;
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts
index 5c6c6603aea..8e1b2d85a5b 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-companies.input.ts
@@ -7,6 +7,7 @@ import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../work
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';
+import { CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-assignee.input';
@InputType()
export class UserUncheckedCreateWithoutCompaniesInput {
@@ -86,5 +87,8 @@ export class UserUncheckedCreateWithoutCompaniesInput {
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts
index e837ecd071b..1f4cdf87ecb 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-refresh-tokens.input.ts
@@ -7,6 +7,7 @@ import { WorkspaceMemberUncheckedCreateNestedOneWithoutUserInput } from '../work
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';
+import { CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-assignee.input';
@InputType()
export class UserUncheckedCreateWithoutRefreshTokensInput {
@@ -86,5 +87,8 @@ export class UserUncheckedCreateWithoutRefreshTokensInput {
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts
index 42538905f2a..98af714ff98 100644
--- a/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create-without-workspace-member.input.ts
@@ -7,6 +7,7 @@ import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../com
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';
+import { CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-assignee.input';
@InputType()
export class UserUncheckedCreateWithoutWorkspaceMemberInput {
@@ -86,5 +87,8 @@ export class UserUncheckedCreateWithoutWorkspaceMemberInput {
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-create.input.ts b/server/src/core/@generated/user/user-unchecked-create.input.ts
index 45ad7e2fcde..1258600e1af 100644
--- a/server/src/core/@generated/user/user-unchecked-create.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-create.input.ts
@@ -8,6 +8,7 @@ import { CompanyUncheckedCreateNestedManyWithoutAccountOwnerInput } from '../com
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';
+import { CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput } from '../comment-thread/comment-thread-unchecked-create-nested-many-without-assignee.input';
@InputType()
export class UserUncheckedCreateInput {
@@ -90,5 +91,8 @@ export class UserUncheckedCreateInput {
comments?: CommentUncheckedCreateNestedManyWithoutAuthorInput;
@Field(() => CommentThreadUncheckedCreateNestedManyWithoutAuthorInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+ authoredCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAuthorInput;
+
+ @Field(() => CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedCreateNestedManyWithoutAssigneeInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-assigned-comment-threads.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-assigned-comment-threads.input.ts
new file mode 100644
index 00000000000..e2091dea88d
--- /dev/null
+++ b/server/src/core/@generated/user/user-unchecked-update-without-assigned-comment-threads.input.ts
@@ -0,0 +1,81 @@
+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';
+import { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
+
+@InputType()
+export class UserUncheckedUpdateWithoutAssignedCommentThreadsInput {
+
+ @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;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ authoredCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-authored-comment-threads.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-authored-comment-threads.input.ts
new file mode 100644
index 00000000000..acc3172cf03
--- /dev/null
+++ b/server/src/core/@generated/user/user-unchecked-update-without-authored-comment-threads.input.ts
@@ -0,0 +1,81 @@
+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';
+import { CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-assignee-nested.input';
+
+@InputType()
+export class UserUncheckedUpdateWithoutAuthoredCommentThreadsInput {
+
+ @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;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput;
+}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts
index e8dae84bda9..1c8503114cc 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-comments.input.ts
@@ -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 { CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-author-nested.input';
+import { CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-assignee-nested.input';
@InputType()
export class UserUncheckedUpdateWithoutCommentsInput {
@@ -73,5 +74,8 @@ export class UserUncheckedUpdateWithoutCommentsInput {
refreshTokens?: RefreshTokenUncheckedUpdateManyWithoutUserNestedInput;
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts
index c81f4b60f33..8b06410fb54 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-companies.input.ts
@@ -12,6 +12,7 @@ import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../work
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';
+import { CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-assignee-nested.input';
@InputType()
export class UserUncheckedUpdateWithoutCompaniesInput {
@@ -73,5 +74,8 @@ export class UserUncheckedUpdateWithoutCompaniesInput {
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts
index d9f4d216c2e..93ac3ae6897 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-refresh-tokens.input.ts
@@ -12,6 +12,7 @@ import { WorkspaceMemberUncheckedUpdateOneWithoutUserNestedInput } from '../work
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';
+import { CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-assignee-nested.input';
@InputType()
export class UserUncheckedUpdateWithoutRefreshTokensInput {
@@ -73,5 +74,8 @@ export class UserUncheckedUpdateWithoutRefreshTokensInput {
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts
index 232260e7a3e..1061c469b11 100644
--- a/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update-without-workspace-member.input.ts
@@ -12,6 +12,7 @@ import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../com
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';
+import { CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-assignee-nested.input';
@InputType()
export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
@@ -73,5 +74,8 @@ export class UserUncheckedUpdateWithoutWorkspaceMemberInput {
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-unchecked-update.input.ts b/server/src/core/@generated/user/user-unchecked-update.input.ts
index cb481e6687b..b3de6246191 100644
--- a/server/src/core/@generated/user/user-unchecked-update.input.ts
+++ b/server/src/core/@generated/user/user-unchecked-update.input.ts
@@ -13,6 +13,7 @@ import { CompanyUncheckedUpdateManyWithoutAccountOwnerNestedInput } from '../com
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';
+import { CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-unchecked-update-many-without-assignee-nested.input';
@InputType()
export class UserUncheckedUpdateInput {
@@ -77,5 +78,8 @@ export class UserUncheckedUpdateInput {
comments?: CommentUncheckedUpdateManyWithoutAuthorNestedInput;
@Field(() => CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUncheckedUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update-one-required-without-authored-comment-threads-nested.input.ts b/server/src/core/@generated/user/user-update-one-required-without-authored-comment-threads-nested.input.ts
new file mode 100644
index 00000000000..5141307a330
--- /dev/null
+++ b/server/src/core/@generated/user/user-update-one-required-without-authored-comment-threads-nested.input.ts
@@ -0,0 +1,32 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserCreateWithoutAuthoredCommentThreadsInput } from './user-create-without-authored-comment-threads.input';
+import { Type } from 'class-transformer';
+import { UserCreateOrConnectWithoutAuthoredCommentThreadsInput } from './user-create-or-connect-without-authored-comment-threads.input';
+import { UserUpsertWithoutAuthoredCommentThreadsInput } from './user-upsert-without-authored-comment-threads.input';
+import { UserWhereUniqueInput } from './user-where-unique.input';
+import { UserUpdateWithoutAuthoredCommentThreadsInput } from './user-update-without-authored-comment-threads.input';
+
+@InputType()
+export class UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput {
+
+ @Field(() => UserCreateWithoutAuthoredCommentThreadsInput, {nullable:true})
+ @Type(() => UserCreateWithoutAuthoredCommentThreadsInput)
+ create?: UserCreateWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserCreateOrConnectWithoutAuthoredCommentThreadsInput, {nullable:true})
+ @Type(() => UserCreateOrConnectWithoutAuthoredCommentThreadsInput)
+ connectOrCreate?: UserCreateOrConnectWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserUpsertWithoutAuthoredCommentThreadsInput, {nullable:true})
+ @Type(() => UserUpsertWithoutAuthoredCommentThreadsInput)
+ upsert?: UserUpsertWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserWhereUniqueInput, {nullable:true})
+ @Type(() => UserWhereUniqueInput)
+ connect?: UserWhereUniqueInput;
+
+ @Field(() => UserUpdateWithoutAuthoredCommentThreadsInput, {nullable:true})
+ @Type(() => UserUpdateWithoutAuthoredCommentThreadsInput)
+ update?: UserUpdateWithoutAuthoredCommentThreadsInput;
+}
diff --git a/server/src/core/@generated/user/user-update-one-without-assigned-comment-threads-nested.input.ts b/server/src/core/@generated/user/user-update-one-without-assigned-comment-threads-nested.input.ts
new file mode 100644
index 00000000000..0fa33333423
--- /dev/null
+++ b/server/src/core/@generated/user/user-update-one-without-assigned-comment-threads-nested.input.ts
@@ -0,0 +1,38 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserCreateWithoutAssignedCommentThreadsInput } from './user-create-without-assigned-comment-threads.input';
+import { Type } from 'class-transformer';
+import { UserCreateOrConnectWithoutAssignedCommentThreadsInput } from './user-create-or-connect-without-assigned-comment-threads.input';
+import { UserUpsertWithoutAssignedCommentThreadsInput } from './user-upsert-without-assigned-comment-threads.input';
+import { UserWhereUniqueInput } from './user-where-unique.input';
+import { UserUpdateWithoutAssignedCommentThreadsInput } from './user-update-without-assigned-comment-threads.input';
+
+@InputType()
+export class UserUpdateOneWithoutAssignedCommentThreadsNestedInput {
+
+ @Field(() => UserCreateWithoutAssignedCommentThreadsInput, {nullable:true})
+ @Type(() => UserCreateWithoutAssignedCommentThreadsInput)
+ create?: UserCreateWithoutAssignedCommentThreadsInput;
+
+ @Field(() => UserCreateOrConnectWithoutAssignedCommentThreadsInput, {nullable:true})
+ @Type(() => UserCreateOrConnectWithoutAssignedCommentThreadsInput)
+ connectOrCreate?: UserCreateOrConnectWithoutAssignedCommentThreadsInput;
+
+ @Field(() => UserUpsertWithoutAssignedCommentThreadsInput, {nullable:true})
+ @Type(() => UserUpsertWithoutAssignedCommentThreadsInput)
+ upsert?: UserUpsertWithoutAssignedCommentThreadsInput;
+
+ @Field(() => Boolean, {nullable:true})
+ disconnect?: boolean;
+
+ @Field(() => Boolean, {nullable:true})
+ delete?: boolean;
+
+ @Field(() => UserWhereUniqueInput, {nullable:true})
+ @Type(() => UserWhereUniqueInput)
+ connect?: UserWhereUniqueInput;
+
+ @Field(() => UserUpdateWithoutAssignedCommentThreadsInput, {nullable:true})
+ @Type(() => UserUpdateWithoutAssignedCommentThreadsInput)
+ update?: UserUpdateWithoutAssignedCommentThreadsInput;
+}
diff --git a/server/src/core/@generated/user/user-update-without-assigned-comment-threads.input.ts b/server/src/core/@generated/user/user-update-without-assigned-comment-threads.input.ts
new file mode 100644
index 00000000000..3dde01af128
--- /dev/null
+++ b/server/src/core/@generated/user/user-update-without-assigned-comment-threads.input.ts
@@ -0,0 +1,81 @@
+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';
+import { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
+
+@InputType()
+export class UserUpdateWithoutAssignedCommentThreadsInput {
+
+ @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;
+
+ @Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
+ authoredCommentThreads?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+}
diff --git a/server/src/core/@generated/user/user-update-without-authored-comment-threads.input.ts b/server/src/core/@generated/user/user-update-without-authored-comment-threads.input.ts
new file mode 100644
index 00000000000..afccad093dc
--- /dev/null
+++ b/server/src/core/@generated/user/user-update-without-authored-comment-threads.input.ts
@@ -0,0 +1,81 @@
+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';
+import { CommentThreadUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-update-many-without-assignee-nested.input';
+
+@InputType()
+export class UserUpdateWithoutAuthoredCommentThreadsInput {
+
+ @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;
+
+ @Field(() => CommentThreadUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUpdateManyWithoutAssigneeNestedInput;
+}
diff --git a/server/src/core/@generated/user/user-update-without-comments.input.ts b/server/src/core/@generated/user/user-update-without-comments.input.ts
index c662b5fd9a5..6722d7c3c16 100644
--- a/server/src/core/@generated/user/user-update-without-comments.input.ts
+++ b/server/src/core/@generated/user/user-update-without-comments.input.ts
@@ -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 { CommentThreadUpdateManyWithoutAuthorNestedInput } from '../comment-thread/comment-thread-update-many-without-author-nested.input';
+import { CommentThreadUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-update-many-without-assignee-nested.input';
@InputType()
export class UserUpdateWithoutCommentsInput {
@@ -73,5 +74,8 @@ export class UserUpdateWithoutCommentsInput {
refreshTokens?: RefreshTokenUpdateManyWithoutUserNestedInput;
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update-without-companies.input.ts b/server/src/core/@generated/user/user-update-without-companies.input.ts
index c7a7aa74b74..75c21ad46a7 100644
--- a/server/src/core/@generated/user/user-update-without-companies.input.ts
+++ b/server/src/core/@generated/user/user-update-without-companies.input.ts
@@ -12,6 +12,7 @@ import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-mem
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';
+import { CommentThreadUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-update-many-without-assignee-nested.input';
@InputType()
export class UserUpdateWithoutCompaniesInput {
@@ -73,5 +74,8 @@ export class UserUpdateWithoutCompaniesInput {
comments?: CommentUpdateManyWithoutAuthorNestedInput;
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts
index 57eb5fa34de..508b54d82c8 100644
--- a/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts
+++ b/server/src/core/@generated/user/user-update-without-refresh-tokens.input.ts
@@ -12,6 +12,7 @@ import { WorkspaceMemberUpdateOneWithoutUserNestedInput } from '../workspace-mem
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';
+import { CommentThreadUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-update-many-without-assignee-nested.input';
@InputType()
export class UserUpdateWithoutRefreshTokensInput {
@@ -73,5 +74,8 @@ export class UserUpdateWithoutRefreshTokensInput {
comments?: CommentUpdateManyWithoutAuthorNestedInput;
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts
index 8c1e55be289..18cf5dac45c 100644
--- a/server/src/core/@generated/user/user-update-without-workspace-member.input.ts
+++ b/server/src/core/@generated/user/user-update-without-workspace-member.input.ts
@@ -12,6 +12,7 @@ import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/comp
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';
+import { CommentThreadUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-update-many-without-assignee-nested.input';
@InputType()
export class UserUpdateWithoutWorkspaceMemberInput {
@@ -73,5 +74,8 @@ export class UserUpdateWithoutWorkspaceMemberInput {
comments?: CommentUpdateManyWithoutAuthorNestedInput;
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-update.input.ts b/server/src/core/@generated/user/user-update.input.ts
index 2f8f2ef0254..7a9f3518af5 100644
--- a/server/src/core/@generated/user/user-update.input.ts
+++ b/server/src/core/@generated/user/user-update.input.ts
@@ -13,6 +13,7 @@ import { CompanyUpdateManyWithoutAccountOwnerNestedInput } from '../company/comp
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';
+import { CommentThreadUpdateManyWithoutAssigneeNestedInput } from '../comment-thread/comment-thread-update-many-without-assignee-nested.input';
@InputType()
export class UserUpdateInput {
@@ -77,5 +78,8 @@ export class UserUpdateInput {
comments?: CommentUpdateManyWithoutAuthorNestedInput;
@Field(() => CommentThreadUpdateManyWithoutAuthorNestedInput, {nullable:true})
- CommentThread?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+ authoredCommentThreads?: CommentThreadUpdateManyWithoutAuthorNestedInput;
+
+ @Field(() => CommentThreadUpdateManyWithoutAssigneeNestedInput, {nullable:true})
+ assignedCommentThreads?: CommentThreadUpdateManyWithoutAssigneeNestedInput;
}
diff --git a/server/src/core/@generated/user/user-upsert-without-assigned-comment-threads.input.ts b/server/src/core/@generated/user/user-upsert-without-assigned-comment-threads.input.ts
new file mode 100644
index 00000000000..8fdff786e9f
--- /dev/null
+++ b/server/src/core/@generated/user/user-upsert-without-assigned-comment-threads.input.ts
@@ -0,0 +1,17 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserUpdateWithoutAssignedCommentThreadsInput } from './user-update-without-assigned-comment-threads.input';
+import { Type } from 'class-transformer';
+import { UserCreateWithoutAssignedCommentThreadsInput } from './user-create-without-assigned-comment-threads.input';
+
+@InputType()
+export class UserUpsertWithoutAssignedCommentThreadsInput {
+
+ @Field(() => UserUpdateWithoutAssignedCommentThreadsInput, {nullable:false})
+ @Type(() => UserUpdateWithoutAssignedCommentThreadsInput)
+ update!: UserUpdateWithoutAssignedCommentThreadsInput;
+
+ @Field(() => UserCreateWithoutAssignedCommentThreadsInput, {nullable:false})
+ @Type(() => UserCreateWithoutAssignedCommentThreadsInput)
+ create!: UserCreateWithoutAssignedCommentThreadsInput;
+}
diff --git a/server/src/core/@generated/user/user-upsert-without-authored-comment-threads.input.ts b/server/src/core/@generated/user/user-upsert-without-authored-comment-threads.input.ts
new file mode 100644
index 00000000000..dde5c1662d3
--- /dev/null
+++ b/server/src/core/@generated/user/user-upsert-without-authored-comment-threads.input.ts
@@ -0,0 +1,17 @@
+import { Field } from '@nestjs/graphql';
+import { InputType } from '@nestjs/graphql';
+import { UserUpdateWithoutAuthoredCommentThreadsInput } from './user-update-without-authored-comment-threads.input';
+import { Type } from 'class-transformer';
+import { UserCreateWithoutAuthoredCommentThreadsInput } from './user-create-without-authored-comment-threads.input';
+
+@InputType()
+export class UserUpsertWithoutAuthoredCommentThreadsInput {
+
+ @Field(() => UserUpdateWithoutAuthoredCommentThreadsInput, {nullable:false})
+ @Type(() => UserUpdateWithoutAuthoredCommentThreadsInput)
+ update!: UserUpdateWithoutAuthoredCommentThreadsInput;
+
+ @Field(() => UserCreateWithoutAuthoredCommentThreadsInput, {nullable:false})
+ @Type(() => UserCreateWithoutAuthoredCommentThreadsInput)
+ create!: UserCreateWithoutAuthoredCommentThreadsInput;
+}
diff --git a/server/src/core/@generated/user/user-where.input.ts b/server/src/core/@generated/user/user-where.input.ts
index f1896e7a240..b5162556d91 100644
--- a/server/src/core/@generated/user/user-where.input.ts
+++ b/server/src/core/@generated/user/user-where.input.ts
@@ -83,5 +83,8 @@ export class UserWhereInput {
comments?: CommentListRelationFilter;
@Field(() => CommentThreadListRelationFilter, {nullable:true})
- CommentThread?: CommentThreadListRelationFilter;
+ authoredCommentThreads?: CommentThreadListRelationFilter;
+
+ @Field(() => CommentThreadListRelationFilter, {nullable:true})
+ assignedCommentThreads?: CommentThreadListRelationFilter;
}
diff --git a/server/src/core/@generated/user/user.model.ts b/server/src/core/@generated/user/user.model.ts
index b003a1fc0d5..b946307ebc1 100644
--- a/server/src/core/@generated/user/user.model.ts
+++ b/server/src/core/@generated/user/user.model.ts
@@ -71,7 +71,10 @@ export class User {
comments?: Array<Comment>;
@Field(() => [CommentThread], {nullable:true})
- CommentThread?: Array<CommentThread>;
+ authoredCommentThreads?: Array<CommentThread>;
+
+ @Field(() => [CommentThread], {nullable:true})
+ assignedCommentThreads?: Array<CommentThread>;
@HideField()
_count?: UserCount;
diff --git a/server/src/core/comment/resolvers/comment-thread.resolver.ts b/server/src/core/comment/resolvers/comment-thread.resolver.ts
index f93939f47c4..e08e683e95e 100644
--- a/server/src/core/comment/resolvers/comment-thread.resolver.ts
+++ b/server/src/core/comment/resolvers/comment-thread.resolver.ts
@@ -66,6 +66,20 @@ export class CommentThreadResolver {
@PrismaSelector({ modelName: 'CommentThread' })
prismaSelect: PrismaSelect<'CommentThread'>,
): Promise<Partial<CommentThread>> {
+ // TODO: Do a proper check with recursion testing on args in a more generic place
+ for (const key in args.data) {
+ if (args.data[key]) {
+ for (const subKey in args.data[key]) {
+ if (JSON.stringify(args.data[key][subKey]) === '{}') {
+ delete args.data[key][subKey];
+ }
+ }
+ }
+
+ if (JSON.stringify(args.data[key]) === '{}') {
+ delete args.data[key];
+ }
+ }
const updatedCommentThread = await this.commentThreadService.update({
where: args.where,
data: args.data,
diff --git a/server/src/database/migrations/20230715235515_task_type/migration.sql b/server/src/database/migrations/20230715235515_task_type/migration.sql
new file mode 100644
index 00000000000..1b5d0bf38cd
--- /dev/null
+++ b/server/src/database/migrations/20230715235515_task_type/migration.sql
@@ -0,0 +1,12 @@
+-- CreateEnum
+CREATE TYPE "ActivityType" AS ENUM ('Note', 'Task');
+
+-- AlterTable
+ALTER TABLE "comment_threads" ADD COLUMN "assigneeId" TEXT,
+ADD COLUMN "completedAt" TIMESTAMP(3),
+ADD COLUMN "dueAt" TIMESTAMP(3),
+ADD COLUMN "reminderAt" TIMESTAMP(3),
+ADD COLUMN "type" "ActivityType" NOT NULL DEFAULT 'Note';
+
+-- AddForeignKey
+ALTER TABLE "comment_threads" ADD CONSTRAINT "comment_threads_assigneeId_fkey" FOREIGN KEY ("assigneeId") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE;
diff --git a/server/src/database/schema.prisma b/server/src/database/schema.prisma
index 1bc37d55360..904ee4ec896 100644
--- a/server/src/database/schema.prisma
+++ b/server/src/database/schema.prisma
@@ -175,9 +175,10 @@ model User {
/// @TypeGraphQL.omit(input: true, output: true)
deletedAt DateTime?
- createdAt DateTime @default(now())
- updatedAt DateTime @updatedAt
- CommentThread CommentThread[]
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ authoredCommentThreads CommentThread[] @relation(name: "authoredCommentThreads")
+ assignedCommentThreads CommentThread[] @relation(name: "assignedCommentThreads")
@@map("users")
}
@@ -324,6 +325,11 @@ model RefreshToken {
@@map("refresh_tokens")
}
+enum ActivityType {
+ Note
+ Task
+}
+
model CommentThread {
/// @Validator.IsString()
/// @Validator.IsOptional()
@@ -337,10 +343,17 @@ model CommentThread {
workspaceId String
authorId String
- author User @relation(fields: [authorId], references: [id])
+ author User @relation(fields: [authorId], references: [id], name: "authoredCommentThreads")
body String?
title String?
+ type ActivityType @default(Note)
+
+ reminderAt DateTime?
+ dueAt DateTime?
+ completedAt DateTime?
+ assignee User? @relation(fields: [assigneeId], references: [id], name: "assignedCommentThreads")
+ assigneeId String?
/// @TypeGraphQL.omit(input: true, output: true)
deletedAt DateTime?
diff --git a/server/src/database/seeds/comments.ts b/server/src/database/seeds/comments.ts
index 18cfe3522a7..603cc4ef111 100644
--- a/server/src/database/seeds/comments.ts
+++ b/server/src/database/seeds/comments.ts
@@ -7,6 +7,7 @@ export const seedComments = async (prisma: PrismaClient) => {
id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfb400',
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
title: 'Performance update',
+ type: 'Note',
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',
},
@@ -54,6 +55,9 @@ export const seedComments = async (prisma: PrismaClient) => {
id: 'twenty-fe256b39-3ec3-4fe3-8997-b76aa0bfc408',
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
title: 'Buyout Proposal',
+ type: 'Task',
+ assigneeId: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408',
+ dueAt: new Date('2021-03-01T00:00:00.000Z'),
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',
},