Persist update on board drag and drop (#328)
* chore: move dnd lib comment aligned with import * feature: add onUpdate on board * chore: remove multi entity pipelines * feature: add pipelineProgressableType field * feature: fetch progressableType in board * feature: implement on update to persist progress change
This commit is contained in:
@ -22,6 +22,9 @@ export class PipelineCountAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
icon?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
pipelineProgressableType?: true;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
|
||||
|
||||
@ -23,6 +23,9 @@ export class PipelineCountAggregate {
|
||||
@Field(() => Int, { nullable: false })
|
||||
icon!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
pipelineProgressableType!: number;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: number;
|
||||
|
||||
|
||||
@ -23,6 +23,9 @@ export class PipelineCountOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
icon?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
|
||||
@InputType()
|
||||
export class PipelineCreateManyWorkspaceInput {
|
||||
@ -20,4 +21,7 @@ export class PipelineCreateManyWorkspaceInput {
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
@ -22,6 +23,9 @@ export class PipelineCreateManyInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
import { PipelineStageCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-create-nested-many-without-pipeline.input';
|
||||
import { WorkspaceCreateNestedOneWithoutPipelinesInput } from '../workspace/workspace-create-nested-one-without-pipelines.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
@ -24,6 +25,9 @@ export class PipelineCreateWithoutPipelineProgressesInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@Field(() => PipelineStageCreateNestedManyWithoutPipelineInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
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';
|
||||
@ -24,6 +25,9 @@ export class PipelineCreateWithoutPipelineStagesInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@Field(() => PipelineProgressCreateNestedManyWithoutPipelineInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
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';
|
||||
|
||||
@ -23,6 +24,9 @@ export class PipelineCreateWithoutWorkspaceInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@Field(() => PipelineStageCreateNestedManyWithoutPipelineInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
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';
|
||||
@ -25,6 +26,9 @@ export class PipelineCreateInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@Field(() => PipelineStageCreateNestedManyWithoutPipelineInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineCountAggregate } from './pipeline-count-aggregate.output';
|
||||
import { PipelineMinAggregate } from './pipeline-min-aggregate.output';
|
||||
@ -25,6 +26,9 @@ export class PipelineGroupBy {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: false })
|
||||
pipelineProgressableType!: keyof typeof PipelineProgressableType;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
|
||||
@ -22,6 +22,9 @@ export class PipelineMaxAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
icon?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
pipelineProgressableType?: true;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
@ -22,6 +23,9 @@ export class PipelineMaxAggregate {
|
||||
@Field(() => String, { nullable: true })
|
||||
icon?: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: string;
|
||||
}
|
||||
|
||||
@ -23,6 +23,9 @@ export class PipelineMaxOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
icon?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
}
|
||||
|
||||
@ -22,6 +22,9 @@ export class PipelineMinAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
icon?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
pipelineProgressableType?: true;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
@ -22,6 +23,9 @@ export class PipelineMinAggregate {
|
||||
@Field(() => String, { nullable: true })
|
||||
icon?: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: string;
|
||||
}
|
||||
|
||||
@ -23,6 +23,9 @@ export class PipelineMinOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
icon?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
}
|
||||
|
||||
@ -26,6 +26,9 @@ export class PipelineOrderByWithAggregationInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
icon?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -26,6 +26,9 @@ export class PipelineOrderByWithRelationInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
icon?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
|
||||
@ -7,6 +7,7 @@ export enum PipelineScalarFieldEnum {
|
||||
deletedAt = 'deletedAt',
|
||||
name = 'name',
|
||||
icon = 'icon',
|
||||
pipelineProgressableType = 'pipelineProgressableType',
|
||||
workspaceId = 'workspaceId',
|
||||
}
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
|
||||
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
|
||||
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
|
||||
import { EnumPipelineProgressableTypeWithAggregatesFilter } from '../prisma/enum-pipeline-progressable-type-with-aggregates-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
@ -34,6 +35,11 @@ export class PipelineScalarWhereWithAggregatesInput {
|
||||
@Field(() => StringWithAggregatesFilter, { nullable: true })
|
||||
icon?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeWithAggregatesFilter, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeWithAggregatesFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringWithAggregatesFilter;
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
@ -34,6 +35,9 @@ export class PipelineScalarWhereInput {
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
icon?: StringFilter;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFilter, { nullable: true })
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFilter;
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input';
|
||||
|
||||
@ -23,6 +24,9 @@ export class PipelineUncheckedCreateWithoutPipelineProgressesInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline.input';
|
||||
|
||||
@ -23,6 +24,9 @@ export class PipelineUncheckedCreateWithoutPipelineStagesInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input';
|
||||
import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline.input';
|
||||
|
||||
@ -23,6 +24,9 @@ export class PipelineUncheckedCreateWithoutWorkspaceInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@Field(() => PipelineStageUncheckedCreateNestedManyWithoutPipelineInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { PipelineProgressableType } from '../prisma/pipeline-progressable-type.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineStageUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-stage/pipeline-stage-unchecked-create-nested-many-without-pipeline.input';
|
||||
import { PipelineProgressUncheckedCreateNestedManyWithoutPipelineInput } from '../pipeline-progress/pipeline-progress-unchecked-create-nested-many-without-pipeline.input';
|
||||
@ -24,6 +25,9 @@ export class PipelineUncheckedCreateInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, { nullable: true })
|
||||
pipelineProgressableType?: keyof typeof PipelineProgressableType;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
|
||||
@InputType()
|
||||
export class PipelineUncheckedUpdateManyWithoutPipelinesInput {
|
||||
@ -23,4 +24,9 @@ export class PipelineUncheckedUpdateManyWithoutPipelinesInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
@ -25,6 +26,11 @@ export class PipelineUncheckedUpdateManyInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-nested.input';
|
||||
|
||||
@ -26,6 +27,11 @@ export class PipelineUncheckedUpdateWithoutPipelineProgressesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-nested.input';
|
||||
|
||||
@ -26,6 +27,11 @@ export class PipelineUncheckedUpdateWithoutPipelineStagesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
import { PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-nested.input';
|
||||
import { PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-nested.input';
|
||||
|
||||
@ -26,6 +27,11 @@ export class PipelineUncheckedUpdateWithoutWorkspaceInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineStageUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-unchecked-update-many-without-pipeline-nested.input';
|
||||
import { PipelineProgressUncheckedUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-unchecked-update-many-without-pipeline-nested.input';
|
||||
@ -27,6 +28,11 @@ export class PipelineUncheckedUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
|
||||
@InputType()
|
||||
export class PipelineUpdateManyMutationInput {
|
||||
@ -23,4 +24,9 @@ export class PipelineUpdateManyMutationInput {
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
}
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
import { PipelineStageUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-update-many-without-pipeline-nested.input';
|
||||
import { WorkspaceUpdateOneRequiredWithoutPipelinesNestedInput } from '../workspace/workspace-update-one-required-without-pipelines-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
@ -27,6 +28,11 @@ export class PipelineUpdateWithoutPipelineProgressesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PipelineStageUpdateManyWithoutPipelineNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
import { PipelineProgressUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-nested.input';
|
||||
import { WorkspaceUpdateOneRequiredWithoutPipelinesNestedInput } from '../workspace/workspace-update-one-required-without-pipelines-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
@ -27,6 +28,11 @@ export class PipelineUpdateWithoutPipelineStagesInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PipelineProgressUpdateManyWithoutPipelineNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
import { PipelineStageUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-update-many-without-pipeline-nested.input';
|
||||
import { PipelineProgressUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-nested.input';
|
||||
|
||||
@ -26,6 +27,11 @@ export class PipelineUpdateWithoutWorkspaceInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PipelineStageUpdateManyWithoutPipelineNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { EnumPipelineProgressableTypeFieldUpdateOperationsInput } from '../prisma/enum-pipeline-progressable-type-field-update-operations.input';
|
||||
import { PipelineStageUpdateManyWithoutPipelineNestedInput } from '../pipeline-stage/pipeline-stage-update-many-without-pipeline-nested.input';
|
||||
import { PipelineProgressUpdateManyWithoutPipelineNestedInput } from '../pipeline-progress/pipeline-progress-update-many-without-pipeline-nested.input';
|
||||
import { WorkspaceUpdateOneRequiredWithoutPipelinesNestedInput } from '../workspace/workspace-update-one-required-without-pipelines-nested.input';
|
||||
@ -28,6 +29,11 @@ export class PipelineUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
icon?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFieldUpdateOperationsInput, {
|
||||
nullable: true,
|
||||
})
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => PipelineStageUpdateManyWithoutPipelineNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
|
||||
@ -3,6 +3,7 @@ import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { EnumPipelineProgressableTypeFilter } from '../prisma/enum-pipeline-progressable-type-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { PipelineStageListRelationFilter } from '../pipeline-stage/pipeline-stage-list-relation-filter.input';
|
||||
import { PipelineProgressListRelationFilter } from '../pipeline-progress/pipeline-progress-list-relation-filter.input';
|
||||
@ -37,6 +38,9 @@ export class PipelineWhereInput {
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
icon?: StringFilter;
|
||||
|
||||
@Field(() => EnumPipelineProgressableTypeFilter, { nullable: true })
|
||||
pipelineProgressableType?: EnumPipelineProgressableTypeFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFilter;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
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 { PipelineStage } from '../pipeline-stage/pipeline-stage.model';
|
||||
import { PipelineProgress } from '../pipeline-progress/pipeline-progress.model';
|
||||
@ -27,6 +28,12 @@ export class Pipeline {
|
||||
@Field(() => String, { nullable: false })
|
||||
icon!: string;
|
||||
|
||||
@Field(() => PipelineProgressableType, {
|
||||
nullable: false,
|
||||
defaultValue: 'Company',
|
||||
})
|
||||
pipelineProgressableType!: keyof typeof PipelineProgressableType;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "pipelines" ADD COLUMN "pipelineProgressableType" "PipelineProgressableType" NOT NULL DEFAULT 'Company';
|
||||
@ -293,6 +293,7 @@ model Pipeline {
|
||||
icon String
|
||||
pipelineStages PipelineStage[]
|
||||
pipelineProgresses PipelineProgress[]
|
||||
pipelineProgressableType PipelineProgressableType @default(Company)
|
||||
/// @TypeGraphQL.omit(input: true, output: true)
|
||||
workspaceId String
|
||||
/// @TypeGraphQL.omit(input: true, output: true)
|
||||
|
||||
@ -8,6 +8,7 @@ export const seedPipelines = async (prisma: PrismaClient) => {
|
||||
name: 'Sales pipeline',
|
||||
icon: '💰',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
pipelineProgressableType: 'Person',
|
||||
},
|
||||
});
|
||||
|
||||
@ -97,6 +98,7 @@ export const seedPipelines = async (prisma: PrismaClient) => {
|
||||
name: 'Customer support pipeline',
|
||||
icon: '📔',
|
||||
workspaceId: 'twenty-7ed9d212-1c25-4d02-bf25-6aeccf7ea419',
|
||||
pipelineProgressableType: 'Person',
|
||||
},
|
||||
});
|
||||
|
||||
@ -134,6 +136,7 @@ export const seedPipelines = async (prisma: PrismaClient) => {
|
||||
name: 'Sales pipeline',
|
||||
icon: '💰',
|
||||
workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420',
|
||||
pipelineProgressableType: 'Person',
|
||||
},
|
||||
});
|
||||
|
||||
@ -201,17 +204,4 @@ export const seedPipelines = async (prisma: PrismaClient) => {
|
||||
workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420',
|
||||
},
|
||||
});
|
||||
|
||||
await prisma.pipelineProgress.upsert({
|
||||
where: { id: 'twenty-dev-fe256b39-3ec3-4fe7-8998-b76aa0bfb600' },
|
||||
update: {},
|
||||
create: {
|
||||
id: 'twenty-dev-fe256b39-3ec3-4fe7-8998-b76aa0bfb600',
|
||||
pipelineId: 'twenty-dev-fe256b39-3ec3-4fe3-8997-b75aa0bfb400',
|
||||
pipelineStageId: 'twenty-dev-fe256b39-3ec3-4fe3-8998-b76aa0bfb600',
|
||||
progressableType: 'Company',
|
||||
progressableId: 'twenty-dev-a674fa6c-1455-4c57-afaf-dd5dc086361e',
|
||||
workspaceId: 'twenty-dev-7ed9d212-1c25-4d02-bf25-6aeccf7ea420',
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user