* Hide workspace and refresh token from schema * Add pipe models and migrations * Add seeds * Update FE graphql schema
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { InputType } from '@nestjs/graphql';
|
|
import { PipelineAssociableType } from '../pipeline/pipeline-associable-type.enum';
|
|
import { PipelineCreateNestedOneWithoutPipelineAssociationsInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-associations.input';
|
|
import { PipelineStageCreateNestedOneWithoutPipelineAssociationsInput } from '../pipeline-stage/pipeline-stage-create-nested-one-without-pipeline-associations.input';
|
|
|
|
@InputType()
|
|
export class PipelineAssociationCreateInput {
|
|
@Field(() => String, { nullable: false })
|
|
id!: string;
|
|
|
|
@Field(() => Date, { nullable: true })
|
|
createdAt?: Date | string;
|
|
|
|
@Field(() => Date, { nullable: true })
|
|
updatedAt?: Date | string;
|
|
|
|
@Field(() => Date, { nullable: true })
|
|
deletedAt?: Date | string;
|
|
|
|
@Field(() => PipelineAssociableType, { nullable: false })
|
|
associableType!: keyof typeof PipelineAssociableType;
|
|
|
|
@Field(() => String, { nullable: false })
|
|
associableId!: string;
|
|
|
|
@Field(() => PipelineCreateNestedOneWithoutPipelineAssociationsInput, {
|
|
nullable: false,
|
|
})
|
|
pipeline!: PipelineCreateNestedOneWithoutPipelineAssociationsInput;
|
|
|
|
@Field(() => PipelineStageCreateNestedOneWithoutPipelineAssociationsInput, {
|
|
nullable: false,
|
|
})
|
|
pipelineStage!: PipelineStageCreateNestedOneWithoutPipelineAssociationsInput;
|
|
}
|