Files
twenty/server/src/core/@generated/pipeline/pipeline-create.input.ts
T
Jérémy M 299ca293a8 feat: refactoring auth & add email password login (#318)
* feat: wip

* fix: issues

* feat: clean controllers and services

* fix: test

* Fix auth

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-06-17 13:42:02 +02:00

41 lines
1.4 KiB
TypeScript

import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { PipelineStageCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-pipeline.input';
import { PipelineProgressCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline.input';
import { WorkspaceCreateNestedOneWithoutPipelinesInput } from '../workspace/workspace-create-nested-one-without-pipelines.input';
import { HideField } from '@nestjs/graphql';
@InputType()
export class PipelineCreateInput {
@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(() => PipelineStageCreateNestedManyWithoutPipelineInput, {
nullable: true,
})
pipelineStages?: PipelineStageCreateNestedManyWithoutPipelineInput;
@Field(() => PipelineProgressCreateNestedManyWithoutPipelineInput, {
nullable: true,
})
pipelineProgresses?: PipelineProgressCreateNestedManyWithoutPipelineInput;
@HideField()
workspace!: WorkspaceCreateNestedOneWithoutPipelinesInput;
}