Enable pipeline stage ordering (#577)
* Enable pipeline stage ordering * Removing migration * Remove Save button
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { PipelineStageCountAggregate } from './pipeline-stage-count-aggregate.output';
|
||||
import { PipelineStageAvgAggregate } from './pipeline-stage-avg-aggregate.output';
|
||||
import { PipelineStageSumAggregate } from './pipeline-stage-sum-aggregate.output';
|
||||
import { PipelineStageMinAggregate } from './pipeline-stage-min-aggregate.output';
|
||||
import { PipelineStageMaxAggregate } from './pipeline-stage-max-aggregate.output';
|
||||
|
||||
@ -10,6 +12,12 @@ export class AggregatePipelineStage {
|
||||
@Field(() => PipelineStageCountAggregate, {nullable:true})
|
||||
_count?: PipelineStageCountAggregate;
|
||||
|
||||
@Field(() => PipelineStageAvgAggregate, {nullable:true})
|
||||
_avg?: PipelineStageAvgAggregate;
|
||||
|
||||
@Field(() => PipelineStageSumAggregate, {nullable:true})
|
||||
_sum?: PipelineStageSumAggregate;
|
||||
|
||||
@Field(() => PipelineStageMinAggregate, {nullable:true})
|
||||
_min?: PipelineStageMinAggregate;
|
||||
|
||||
|
||||
@ -6,6 +6,8 @@ import { PipelineStageOrderByWithRelationInput } from './pipeline-stage-order-by
|
||||
import { PipelineStageWhereUniqueInput } from './pipeline-stage-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { PipelineStageCountAggregateInput } from './pipeline-stage-count-aggregate.input';
|
||||
import { PipelineStageAvgAggregateInput } from './pipeline-stage-avg-aggregate.input';
|
||||
import { PipelineStageSumAggregateInput } from './pipeline-stage-sum-aggregate.input';
|
||||
import { PipelineStageMinAggregateInput } from './pipeline-stage-min-aggregate.input';
|
||||
import { PipelineStageMaxAggregateInput } from './pipeline-stage-max-aggregate.input';
|
||||
|
||||
@ -31,6 +33,12 @@ export class PipelineStageAggregateArgs {
|
||||
@Field(() => PipelineStageCountAggregateInput, {nullable:true})
|
||||
_count?: PipelineStageCountAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageAvgAggregateInput, {nullable:true})
|
||||
_avg?: PipelineStageAvgAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageSumAggregateInput, {nullable:true})
|
||||
_sum?: PipelineStageSumAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageMinAggregateInput, {nullable:true})
|
||||
_min?: PipelineStageMinAggregateInput;
|
||||
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class PipelineStageAvgAggregateInput {
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
index?: true;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Float } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class PipelineStageAvgAggregate {
|
||||
|
||||
@Field(() => Float, {nullable:true})
|
||||
index?: number;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class PipelineStageAvgOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
index?: keyof typeof SortOrder;
|
||||
}
|
||||
@ -17,6 +17,9 @@ export class PipelineStageCountAggregateInput {
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
color?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
index?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
pipelineId?: true;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
@ -18,6 +19,11 @@ export class PipelineStageCountAggregate {
|
||||
@Field(() => Int, {nullable:false})
|
||||
color!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index!: number;
|
||||
|
||||
@Field(() => Int, {nullable:false})
|
||||
pipelineId!: number;
|
||||
|
||||
|
||||
@ -18,6 +18,9 @@ export class PipelineStageCountOrderByAggregateInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
color?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
index?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
pipelineId?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
@ -23,6 +24,11 @@ export class PipelineStageCreateManyPipelineInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
@ -23,6 +24,11 @@ export class PipelineStageCreateManyWorkspaceInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
pipelineId!: string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
@ -23,6 +24,11 @@ export class PipelineStageCreateManyInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
pipelineId!: string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input';
|
||||
import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input';
|
||||
@ -25,6 +26,11 @@ export class PipelineStageCreateWithoutPipelineProgressesInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input';
|
||||
import { WorkspaceCreateNestedOneWithoutPipelineStagesInput } from '../workspace/workspace-create-nested-one-without-pipeline-stages.input';
|
||||
@ -25,6 +26,11 @@ export class PipelineStageCreateWithoutPipelineInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input';
|
||||
import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input';
|
||||
@ -25,6 +26,11 @@ export class PipelineStageCreateWithoutWorkspaceInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineProgressCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-create-nested-many-without-pipeline-stage.input';
|
||||
import { PipelineCreateNestedOneWithoutPipelineStagesInput } from '../pipeline/pipeline-create-nested-one-without-pipeline-stages.input';
|
||||
@ -26,6 +27,11 @@ export class PipelineStageCreateInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: Date | string;
|
||||
|
||||
|
||||
@ -7,6 +7,8 @@ import { PipelineStageScalarFieldEnum } from './pipeline-stage-scalar-field.enum
|
||||
import { PipelineStageScalarWhereWithAggregatesInput } from './pipeline-stage-scalar-where-with-aggregates.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { PipelineStageCountAggregateInput } from './pipeline-stage-count-aggregate.input';
|
||||
import { PipelineStageAvgAggregateInput } from './pipeline-stage-avg-aggregate.input';
|
||||
import { PipelineStageSumAggregateInput } from './pipeline-stage-sum-aggregate.input';
|
||||
import { PipelineStageMinAggregateInput } from './pipeline-stage-min-aggregate.input';
|
||||
import { PipelineStageMaxAggregateInput } from './pipeline-stage-max-aggregate.input';
|
||||
|
||||
@ -35,6 +37,12 @@ export class PipelineStageGroupByArgs {
|
||||
@Field(() => PipelineStageCountAggregateInput, {nullable:true})
|
||||
_count?: PipelineStageCountAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageAvgAggregateInput, {nullable:true})
|
||||
_avg?: PipelineStageAvgAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageSumAggregateInput, {nullable:true})
|
||||
_sum?: PipelineStageSumAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageMinAggregateInput, {nullable:true})
|
||||
_min?: PipelineStageMinAggregateInput;
|
||||
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineStageCountAggregate } from './pipeline-stage-count-aggregate.output';
|
||||
import { PipelineStageAvgAggregate } from './pipeline-stage-avg-aggregate.output';
|
||||
import { PipelineStageSumAggregate } from './pipeline-stage-sum-aggregate.output';
|
||||
import { PipelineStageMinAggregate } from './pipeline-stage-min-aggregate.output';
|
||||
import { PipelineStageMaxAggregate } from './pipeline-stage-max-aggregate.output';
|
||||
|
||||
@ -26,6 +29,11 @@ export class PipelineStageGroupBy {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
pipelineId!: string;
|
||||
|
||||
@ -44,6 +52,12 @@ export class PipelineStageGroupBy {
|
||||
@Field(() => PipelineStageCountAggregate, {nullable:true})
|
||||
_count?: PipelineStageCountAggregate;
|
||||
|
||||
@Field(() => PipelineStageAvgAggregate, {nullable:true})
|
||||
_avg?: PipelineStageAvgAggregate;
|
||||
|
||||
@Field(() => PipelineStageSumAggregate, {nullable:true})
|
||||
_sum?: PipelineStageSumAggregate;
|
||||
|
||||
@Field(() => PipelineStageMinAggregate, {nullable:true})
|
||||
_min?: PipelineStageMinAggregate;
|
||||
|
||||
|
||||
@ -17,6 +17,9 @@ export class PipelineStageMaxAggregateInput {
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
color?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
index?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
pipelineId?: true;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
@ -23,6 +24,11 @@ export class PipelineStageMaxAggregate {
|
||||
@Validator.IsString()
|
||||
color?: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
pipelineId?: string;
|
||||
|
||||
|
||||
@ -18,6 +18,9 @@ export class PipelineStageMaxOrderByAggregateInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
color?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
index?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
pipelineId?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -17,6 +17,9 @@ export class PipelineStageMinAggregateInput {
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
color?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
index?: true;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
pipelineId?: true;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
@ -23,6 +24,11 @@ export class PipelineStageMinAggregate {
|
||||
@Validator.IsString()
|
||||
color?: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@Field(() => String, {nullable:true})
|
||||
pipelineId?: string;
|
||||
|
||||
|
||||
@ -18,6 +18,9 @@ export class PipelineStageMinOrderByAggregateInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
color?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
index?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
pipelineId?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -3,8 +3,10 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineStageCountOrderByAggregateInput } from './pipeline-stage-count-order-by-aggregate.input';
|
||||
import { PipelineStageAvgOrderByAggregateInput } from './pipeline-stage-avg-order-by-aggregate.input';
|
||||
import { PipelineStageMaxOrderByAggregateInput } from './pipeline-stage-max-order-by-aggregate.input';
|
||||
import { PipelineStageMinOrderByAggregateInput } from './pipeline-stage-min-order-by-aggregate.input';
|
||||
import { PipelineStageSumOrderByAggregateInput } from './pipeline-stage-sum-order-by-aggregate.input';
|
||||
|
||||
@InputType()
|
||||
export class PipelineStageOrderByWithAggregationInput {
|
||||
@ -21,6 +23,9 @@ export class PipelineStageOrderByWithAggregationInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
color?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
index?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
pipelineId?: keyof typeof SortOrder;
|
||||
|
||||
@ -39,9 +44,15 @@ export class PipelineStageOrderByWithAggregationInput {
|
||||
@Field(() => PipelineStageCountOrderByAggregateInput, {nullable:true})
|
||||
_count?: PipelineStageCountOrderByAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageAvgOrderByAggregateInput, {nullable:true})
|
||||
_avg?: PipelineStageAvgOrderByAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageMaxOrderByAggregateInput, {nullable:true})
|
||||
_max?: PipelineStageMaxOrderByAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageMinOrderByAggregateInput, {nullable:true})
|
||||
_min?: PipelineStageMinOrderByAggregateInput;
|
||||
|
||||
@Field(() => PipelineStageSumOrderByAggregateInput, {nullable:true})
|
||||
_sum?: PipelineStageSumOrderByAggregateInput;
|
||||
}
|
||||
|
||||
@ -21,6 +21,9 @@ export class PipelineStageOrderByWithRelationInput {
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
color?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
index?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
pipelineId?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@ export enum PipelineStageScalarFieldEnum {
|
||||
name = "name",
|
||||
type = "type",
|
||||
color = "color",
|
||||
index = "index",
|
||||
pipelineId = "pipelineId",
|
||||
workspaceId = "workspaceId",
|
||||
deletedAt = "deletedAt",
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
|
||||
import { IntNullableWithAggregatesFilter } from '../prisma/int-nullable-with-aggregates-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
|
||||
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
|
||||
@ -29,6 +30,9 @@ export class PipelineStageScalarWhereWithAggregatesInput {
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
color?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => IntNullableWithAggregatesFilter, {nullable:true})
|
||||
index?: IntNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, {nullable:true})
|
||||
pipelineId?: StringWithAggregatesFilter;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { IntNullableFilter } from '../prisma/int-nullable-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
@ -29,6 +30,9 @@ export class PipelineStageScalarWhereInput {
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
color?: StringFilter;
|
||||
|
||||
@Field(() => IntNullableFilter, {nullable:true})
|
||||
index?: IntNullableFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
pipelineId?: StringFilter;
|
||||
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class PipelineStageSumAggregateInput {
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
index?: true;
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
|
||||
@ObjectType()
|
||||
export class PipelineStageSumAggregate {
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class PipelineStageSumOrderByAggregateInput {
|
||||
|
||||
@Field(() => SortOrder, {nullable:true})
|
||||
index?: keyof typeof SortOrder;
|
||||
}
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
@ -23,6 +24,11 @@ export class PipelineStageUncheckedCreateWithoutPipelineProgressesInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
pipelineId!: string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline-stage.input';
|
||||
|
||||
@ -24,6 +25,11 @@ export class PipelineStageUncheckedCreateWithoutPipelineInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline-stage.input';
|
||||
|
||||
@ -24,6 +25,11 @@ export class PipelineStageUncheckedCreateWithoutWorkspaceInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
pipelineId!: string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import * as Validator from 'class-validator';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineStageInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline-stage.input';
|
||||
|
||||
@ -24,6 +25,11 @@ export class PipelineStageUncheckedCreateInput {
|
||||
@Validator.IsString()
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
@Validator.IsNumber()
|
||||
@Validator.IsOptional()
|
||||
index?: number;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
pipelineId!: string;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -20,6 +21,9 @@ export class PipelineStageUncheckedUpdateManyWithoutPipelineStagesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
pipelineId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -20,6 +21,9 @@ export class PipelineStageUncheckedUpdateManyInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
pipelineId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -20,6 +21,9 @@ export class PipelineStageUncheckedUpdateWithoutPipelineProgressesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
pipelineId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -21,6 +22,9 @@ export class PipelineStageUncheckedUpdateWithoutPipelineInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -21,6 +22,9 @@ export class PipelineStageUncheckedUpdateWithoutWorkspaceInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
pipelineId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -21,6 +22,9 @@ export class PipelineStageUncheckedUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
pipelineId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -20,6 +21,9 @@ export class PipelineStageUpdateManyMutationInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -22,6 +23,9 @@ export class PipelineStageUpdateWithoutPipelineProgressesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -22,6 +23,9 @@ export class PipelineStageUpdateWithoutPipelineInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -22,6 +23,9 @@ export class PipelineStageUpdateWithoutWorkspaceInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { NullableIntFieldUpdateOperationsInput } from '../prisma/nullable-int-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
@ -23,6 +24,9 @@ export class PipelineStageUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, {nullable:true})
|
||||
color?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableIntFieldUpdateOperationsInput, {nullable:true})
|
||||
index?: NullableIntFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { IntNullableFilter } from '../prisma/int-nullable-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
@ -32,6 +33,9 @@ export class PipelineStageWhereInput {
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
color?: StringFilter;
|
||||
|
||||
@Field(() => IntNullableFilter, {nullable:true})
|
||||
index?: IntNullableFilter;
|
||||
|
||||
@Field(() => StringFilter, {nullable:true})
|
||||
pipelineId?: StringFilter;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { ID } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineProgress } from '../pipeline-progress/pipeline-progress.model';
|
||||
import { Pipeline } from '../pipeline/pipeline.model';
|
||||
@ -22,6 +23,9 @@ export class PipelineStage {
|
||||
@Field(() => String, {nullable:false})
|
||||
color!: string;
|
||||
|
||||
@Field(() => Int, {nullable:true})
|
||||
index!: number | null;
|
||||
|
||||
@Field(() => String, {nullable:false})
|
||||
pipelineId!: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user