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

@ -1,6 +1,7 @@
import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
import { HideField } from '@nestjs/graphql';
@InputType()
export class PipelineProgressCreateManyPipelineInput {
@ -20,8 +21,11 @@ export class PipelineProgressCreateManyPipelineInput {
pipelineStageId!: string;
@Field(() => PipelineProgressableType, { nullable: false })
associableType!: keyof typeof PipelineProgressableType;
progressableType!: keyof typeof PipelineProgressableType;
@Field(() => String, { nullable: false })
associableId!: string;
progressableId!: string;
@HideField()
workspaceId!: string;
}