Files
twenty/server/src/core/@generated/pipeline-progress/pipeline-progress.model.ts
Jérémy M 2cd081234f chore: refacto NestJS in modules (#308)
* chore: wip refacto in modules

* fix: rollback port

* fix: jwt guard in wrong folder

* chore: rename folder exception-filter in filters

* fix: tests are running

* fix: excessive stack depth comparing types

* fix: auth issue

* chore: move createUser in UserService

* fix: test

* fix: guards

* fix: jwt guard don't handle falsy user
2023-06-16 10:38:11 +02:00

48 lines
1.3 KiB
TypeScript

import { Field } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
import { ID } from '@nestjs/graphql';
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
import { HideField } from '@nestjs/graphql';
import { Pipeline } from '../pipeline/pipeline.model';
import { PipelineStage } from '../pipeline-stage/pipeline-stage.model';
import { Workspace } from '../workspace/workspace.model';
@ObjectType()
export class PipelineProgress {
@Field(() => ID, { nullable: false })
id!: string;
@Field(() => Date, { nullable: false })
createdAt!: Date;
@Field(() => Date, { nullable: false })
updatedAt!: Date;
@Field(() => Date, { nullable: true })
deletedAt!: Date | null;
@Field(() => String, { nullable: false })
pipelineId!: string;
@Field(() => String, { nullable: false })
pipelineStageId!: string;
@Field(() => PipelineProgressableType, { nullable: false })
progressableType!: keyof typeof PipelineProgressableType;
@Field(() => String, { nullable: false })
progressableId!: string;
@HideField()
workspaceId!: string;
@Field(() => Pipeline, { nullable: false })
pipeline?: Pipeline;
@Field(() => PipelineStage, { nullable: false })
pipelineStage?: PipelineStage;
@HideField()
workspace?: Workspace;
}