Add workspace scoping to pipeline progress and expose findManyPipelineProgress on graphql
65 lines
2.7 KiB
TypeScript
65 lines
2.7 KiB
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { InputType } from '@nestjs/graphql';
|
|
import { WorkspaceMemberCreateNestedManyWithoutWorkspaceInput } from '../workspace-member/workspace-member-create-nested-many-without-workspace.input';
|
|
import { CompanyCreateNestedManyWithoutWorkspaceInput } from '../company/company-create-nested-many-without-workspace.input';
|
|
import { CommentThreadCreateNestedManyWithoutWorkspaceInput } from '../comment-thread/comment-thread-create-nested-many-without-workspace.input';
|
|
import { CommentCreateNestedManyWithoutWorkspaceInput } from '../comment/comment-create-nested-many-without-workspace.input';
|
|
import { PipelineCreateNestedManyWithoutWorkspaceInput } from '../pipeline/pipeline-create-nested-many-without-workspace.input';
|
|
import { PipelineStageCreateNestedManyWithoutWorkspaceInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-workspace.input';
|
|
import { PipelineProgressCreateNestedManyWithoutWorkspaceInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-workspace.input';
|
|
|
|
@InputType()
|
|
export class WorkspaceCreateWithoutPeopleInput {
|
|
@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(() => String, { nullable: false })
|
|
domainName!: string;
|
|
|
|
@Field(() => String, { nullable: false })
|
|
displayName!: string;
|
|
|
|
@Field(() => String, { nullable: true })
|
|
logo?: string;
|
|
|
|
@Field(() => WorkspaceMemberCreateNestedManyWithoutWorkspaceInput, {
|
|
nullable: true,
|
|
})
|
|
workspaceMember?: WorkspaceMemberCreateNestedManyWithoutWorkspaceInput;
|
|
|
|
@Field(() => CompanyCreateNestedManyWithoutWorkspaceInput, { nullable: true })
|
|
companies?: CompanyCreateNestedManyWithoutWorkspaceInput;
|
|
|
|
@Field(() => CommentThreadCreateNestedManyWithoutWorkspaceInput, {
|
|
nullable: true,
|
|
})
|
|
commentThreads?: CommentThreadCreateNestedManyWithoutWorkspaceInput;
|
|
|
|
@Field(() => CommentCreateNestedManyWithoutWorkspaceInput, { nullable: true })
|
|
comments?: CommentCreateNestedManyWithoutWorkspaceInput;
|
|
|
|
@Field(() => PipelineCreateNestedManyWithoutWorkspaceInput, {
|
|
nullable: true,
|
|
})
|
|
pipelines?: PipelineCreateNestedManyWithoutWorkspaceInput;
|
|
|
|
@Field(() => PipelineStageCreateNestedManyWithoutWorkspaceInput, {
|
|
nullable: true,
|
|
})
|
|
pipelineStages?: PipelineStageCreateNestedManyWithoutWorkspaceInput;
|
|
|
|
@Field(() => PipelineProgressCreateNestedManyWithoutWorkspaceInput, {
|
|
nullable: true,
|
|
})
|
|
pipelineProgresses?: PipelineProgressCreateNestedManyWithoutWorkspaceInput;
|
|
}
|