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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user