Add update, create and delete pipelineProgress endpoints (#297)

This commit is contained in:
Charles Bochet
2023-06-15 12:08:13 +02:00
committed by GitHub
parent fdfb6f10e2
commit 763534ff45
7 changed files with 150 additions and 45 deletions

View File

@ -361,6 +361,10 @@ export type EnumCommentableTypeFilter = {
notIn?: InputMaybe<Array<CommentableType>>;
};
export type EnumPipelineProgressableTypeFieldUpdateOperationsInput = {
set?: InputMaybe<PipelineProgressableType>;
};
export type EnumPipelineProgressableTypeFilter = {
equals?: InputMaybe<PipelineProgressableType>;
in?: InputMaybe<Array<PipelineProgressableType>>;
@ -401,10 +405,13 @@ export type Mutation = {
createOneCommentThread: CommentThread;
createOneCompany: Company;
createOnePerson: Person;
createOnePipelineProgress: PipelineProgress;
deleteManyCompany: AffectedRows;
deleteManyPerson: AffectedRows;
deleteManyPipelineProgress: AffectedRows;
updateOneCompany?: Maybe<Company>;
updateOnePerson?: Maybe<Person>;
updateOnePipelineProgress?: Maybe<PipelineProgress>;
};
@ -428,6 +435,11 @@ export type MutationCreateOnePersonArgs = {
};
export type MutationCreateOnePipelineProgressArgs = {
data: PipelineProgressCreateInput;
};
export type MutationDeleteManyCompanyArgs = {
where?: InputMaybe<CompanyWhereInput>;
};
@ -438,6 +450,11 @@ export type MutationDeleteManyPersonArgs = {
};
export type MutationDeleteManyPipelineProgressArgs = {
where?: InputMaybe<PipelineProgressWhereInput>;
};
export type MutationUpdateOneCompanyArgs = {
data: CompanyUpdateInput;
where: CompanyWhereUniqueInput;
@ -449,6 +466,12 @@ export type MutationUpdateOnePersonArgs = {
where: PersonWhereUniqueInput;
};
export type MutationUpdateOnePipelineProgressArgs = {
data: PipelineProgressUpdateInput;
where: PipelineProgressWhereUniqueInput;
};
export type NestedBoolFilter = {
equals?: InputMaybe<Scalars['Boolean']>;
not?: InputMaybe<NestedBoolFilter>;
@ -664,6 +687,10 @@ export type Pipeline = {
updatedAt: Scalars['DateTime'];
};
export type PipelineCreateNestedOneWithoutPipelineProgressesInput = {
connect?: InputMaybe<PipelineWhereUniqueInput>;
};
export type PipelineOrderByWithRelationInput = {
createdAt?: InputMaybe<SortOrder>;
deletedAt?: InputMaybe<SortOrder>;
@ -689,6 +716,17 @@ export type PipelineProgress = {
updatedAt: Scalars['DateTime'];
};
export type PipelineProgressCreateInput = {
createdAt?: InputMaybe<Scalars['DateTime']>;
deletedAt?: InputMaybe<Scalars['DateTime']>;
id: Scalars['String'];
pipeline: PipelineCreateNestedOneWithoutPipelineProgressesInput;
pipelineStage: PipelineStageCreateNestedOneWithoutPipelineProgressesInput;
progressableId: Scalars['String'];
progressableType: PipelineProgressableType;
updatedAt?: InputMaybe<Scalars['DateTime']>;
};
export type PipelineProgressListRelationFilter = {
every?: InputMaybe<PipelineProgressWhereInput>;
none?: InputMaybe<PipelineProgressWhereInput>;
@ -724,6 +762,17 @@ export enum PipelineProgressScalarFieldEnum {
WorkspaceId = 'workspaceId'
}
export type PipelineProgressUpdateInput = {
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
deletedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
id?: InputMaybe<StringFieldUpdateOperationsInput>;
pipeline?: InputMaybe<PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput>;
pipelineStage?: InputMaybe<PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput>;
progressableId?: InputMaybe<StringFieldUpdateOperationsInput>;
progressableType?: InputMaybe<EnumPipelineProgressableTypeFieldUpdateOperationsInput>;
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
};
export type PipelineProgressWhereInput = {
AND?: InputMaybe<Array<PipelineProgressWhereInput>>;
NOT?: InputMaybe<Array<PipelineProgressWhereInput>>;
@ -778,6 +827,10 @@ export type PipelineStage = {
updatedAt: Scalars['DateTime'];
};
export type PipelineStageCreateNestedOneWithoutPipelineProgressesInput = {
connect?: InputMaybe<PipelineStageWhereUniqueInput>;
};
export type PipelineStageListRelationFilter = {
every?: InputMaybe<PipelineStageWhereInput>;
none?: InputMaybe<PipelineStageWhereInput>;
@ -818,6 +871,10 @@ export enum PipelineStageScalarFieldEnum {
WorkspaceId = 'workspaceId'
}
export type PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput = {
connect?: InputMaybe<PipelineStageWhereUniqueInput>;
};
export type PipelineStageWhereInput = {
AND?: InputMaybe<Array<PipelineStageWhereInput>>;
NOT?: InputMaybe<Array<PipelineStageWhereInput>>;
@ -838,6 +895,10 @@ export type PipelineStageWhereUniqueInput = {
id?: InputMaybe<Scalars['String']>;
};
export type PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput = {
connect?: InputMaybe<PipelineWhereUniqueInput>;
};
export type PipelineWhereInput = {
AND?: InputMaybe<Array<PipelineWhereInput>>;
NOT?: InputMaybe<Array<PipelineWhereInput>>;