Implement comment count on person and company (#183)

This commit is contained in:
Charles Bochet
2023-06-02 12:35:20 +02:00
committed by GitHub
parent 2395f791c8
commit 0609994477
10 changed files with 92 additions and 53 deletions

View File

@ -132,7 +132,6 @@ export type CommentScalarWhereInput = {
export type CommentThread = {
__typename?: 'CommentThread';
_count: CommentThreadCount;
commentThreadTargets?: Maybe<Array<CommentThreadTarget>>;
comments?: Maybe<Array<Comment>>;
createdAt: Scalars['DateTime'];
@ -141,12 +140,6 @@ export type CommentThread = {
updatedAt: Scalars['DateTime'];
};
export type CommentThreadCount = {
__typename?: 'CommentThreadCount';
commentThreadTargets: Scalars['Int'];
comments: Scalars['Int'];
};
export type CommentThreadCreateInput = {
commentThreadTargets?: InputMaybe<CommentThreadTargetCreateNestedManyWithoutCommentThreadInput>;
comments?: InputMaybe<CommentCreateNestedManyWithoutCommentThreadInput>;
@ -417,11 +410,12 @@ export enum CommentableType {
export type Company = {
__typename?: 'Company';
_count: CompanyCount;
_commentsCount: Scalars['Int'];
accountOwner?: Maybe<User>;
accountOwnerId?: Maybe<Scalars['String']>;
address: Scalars['String'];
commentThreads: Array<CommentThread>;
comments: Array<Comment>;
createdAt: Scalars['DateTime'];
deletedAt?: Maybe<Scalars['DateTime']>;
domainName: Scalars['String'];
@ -432,11 +426,6 @@ export type Company = {
updatedAt: Scalars['DateTime'];
};
export type CompanyCount = {
__typename?: 'CompanyCount';
people: Scalars['Int'];
};
export type CompanyCreateInput = {
accountOwner?: InputMaybe<UserCreateNestedOneWithoutCompaniesInput>;
address: Scalars['String'];
@ -785,8 +774,10 @@ export type NullableStringFieldUpdateOperationsInput = {
export type Person = {
__typename?: 'Person';
_commentCount: Scalars['Int'];
city: Scalars['String'];
commentThreads: Array<CommentThread>;
comments: Array<Comment>;
company?: Maybe<Company>;
companyId?: Maybe<Scalars['String']>;
createdAt: Scalars['DateTime'];
@ -997,7 +988,6 @@ export type PersonWhereUniqueInput = {
export type Pipeline = {
__typename?: 'Pipeline';
_count: PipelineCount;
createdAt: Scalars['DateTime'];
deletedAt?: Maybe<Scalars['DateTime']>;
icon: Scalars['String'];
@ -1027,15 +1017,8 @@ export type PipelineAssociation = {
updatedAt: Scalars['DateTime'];
};
export type PipelineCount = {
__typename?: 'PipelineCount';
pipelineAssociations: Scalars['Int'];
pipelineStages: Scalars['Int'];
};
export type PipelineStage = {
__typename?: 'PipelineStage';
_count: PipelineStageCount;
color: Scalars['String'];
createdAt: Scalars['DateTime'];
deletedAt?: Maybe<Scalars['DateTime']>;
@ -1048,11 +1031,6 @@ export type PipelineStage = {
updatedAt: Scalars['DateTime'];
};
export type PipelineStageCount = {
__typename?: 'PipelineStageCount';
pipelineAssociations: Scalars['Int'];
};
export type Query = {
__typename?: 'Query';
findManyCompany: Array<Company>;
@ -1136,7 +1114,6 @@ export type StringNullableFilter = {
export type User = {
__typename?: 'User';
_count: UserCount;
avatarUrl?: Maybe<Scalars['String']>;
comments?: Maybe<Array<Comment>>;
companies?: Maybe<Array<Company>>;
@ -1166,13 +1143,6 @@ export type UserCompaniesArgs = {
where?: InputMaybe<CompanyWhereInput>;
};
export type UserCount = {
__typename?: 'UserCount';
comments: Scalars['Int'];
companies: Scalars['Int'];
refreshTokens: Scalars['Int'];
};
export type UserCreateNestedOneWithoutCommentsInput = {
connect?: InputMaybe<UserWhereUniqueInput>;
};
@ -1309,7 +1279,6 @@ export type UserWhereUniqueInput = {
export type Workspace = {
__typename?: 'Workspace';
_count: WorkspaceCount;
commentThreads?: Maybe<Array<CommentThread>>;
comments?: Maybe<Array<Comment>>;
companies?: Maybe<Array<Company>>;
@ -1326,17 +1295,6 @@ export type Workspace = {
workspaceMember?: Maybe<Array<WorkspaceMember>>;
};
export type WorkspaceCount = {
__typename?: 'WorkspaceCount';
commentThreads: Scalars['Int'];
comments: Scalars['Int'];
companies: Scalars['Int'];
people: Scalars['Int'];
pipelineStages: Scalars['Int'];
pipelines: Scalars['Int'];
workspaceMember: Scalars['Int'];
};
export type WorkspaceMember = {
__typename?: 'WorkspaceMember';
createdAt: Scalars['DateTime'];