Add workspace scoping to pipeline progress and expose findManyPipelineeProgress on graphql (#292)

Add workspace scoping to pipeline progress and expose findManyPipelineProgress on graphql
This commit is contained in:
Charles Bochet
2023-06-14 17:05:15 +02:00
committed by GitHub
parent 31f3950439
commit 5381e28253
104 changed files with 1393 additions and 98 deletions

View File

@ -0,0 +1,62 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input';
import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input';
import { PersonCreateNestedManyWithoutWorkspaceInput } from '../person/person-create-nested-many-without-workspace.input';
import { CommentThreadCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-create-nested-many-without-workspace.input';
import { CommentCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-create-nested-many-without-workspace.input';
import { PipelineCreateNestedManyWithoutWorkspaceInput } from '../pipeline/pipeline-create-nested-many-without-workspace.input';
import { PipelineStageCreateNestedManyWithoutWorkspaceInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-workspace.input';
@InputType()
export class WorkspaceCreateWithoutPipelineProgressesInput {
@Field(() => String, { nullable: false })
id!: string;
@Field(() => Date, { nullable: true })
createdAt?: Date | string;
@Field(() => Date, { nullable: true })
updatedAt?: Date | string;
@Field(() => Date, { nullable: true })
deletedAt?: Date | string;
@Field(() => String, { nullable: false })
domainName!: string;
@Field(() => String, { nullable: false })
displayName!: string;
@Field(() => String, { nullable: true })
logo?: string;
@Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {
nullable: true,
})
workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
@Field(() => CompanyCreateNestedManyWithoutWorkspaceInput, { nullable: true })
companies?: CompanyCreateNestedManyWithoutWorkspaceInput;
@Field(() => PersonCreateNestedManyWithoutWorkspaceInput, { nullable: true })
people?: PersonCreateNestedManyWithoutWorkspaceInput;
@Field(() => CommentThreadCreateNestedManyWithoutWorkspaceInput, {
nullable: true,
})
commentThreads?: CommentThreadCreateNestedManyWithoutWorkspaceInput;
@Field(() => CommentCreateNestedManyWithoutWorkspaceInput, { nullable: true })
comments?: CommentCreateNestedManyWithoutWorkspaceInput;
@Field(() => PipelineCreateNestedManyWithoutWorkspaceInput, {
nullable: true,
})
pipelines?: PipelineCreateNestedManyWithoutWorkspaceInput;
@Field(() => PipelineStageCreateNestedManyWithoutWorkspaceInput, {
nullable: true,
})
pipelineStages?: PipelineStageCreateNestedManyWithoutWorkspaceInput;
}