Files
twenty/server/src/core/@generated/pipeline/pipeline-unchecked-create.input.ts
Sammy Teillet c120903a45 Persist update on board drag and drop (#328)
* chore: move dnd lib comment aligned with import

* feature: add onUpdate on board

* chore: remove multi entity pipelines

* feature: add pipelineProgressableType field

* feature: fetch progressableType in board

* feature: implement on update to persist progress change
2023-06-20 10:56:36 +02:00

44 lines
1.5 KiB
TypeScript

import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
import { HideField } from '@nestjs/graphql';
import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input';
import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline.input';
@InputType()
export class PipelineUncheckedCreateInput {
@Field(() => String, { nullable: true })
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 })
name!: string;
@Field(() => String, { nullable: false })
icon!: string;
@Field(() => PipelineProgressableType, { nullable: true })
pipelineProgressableType?: keyof typeof PipelineProgressableType;
@HideField()
workspaceId!: string;
@Field(() => PipelineStageUncheckedCreateNestedManyWithoutPipelineInput, {
nullable: true,
})
pipelineStages?: PipelineStageUncheckedCreateNestedManyWithoutPipelineInput;
@Field(() => PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput, {
nullable: true,
})
pipelineProgresses?: PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput;
}