feat: disable atomic operation on nestjs graphql models (#751)
* feat: no atomic * feat: update front not atomic operations * feat: optional fields for person model & use proper gql type * Fix bug display name * Fix bug update user * Fixed bug avatar URL * Fixed display name on people cell * Fix lint * Fixed storybook display name * Fix storybook requests --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -128,10 +128,6 @@ export type AuthTokens = {
|
||||
tokens: AuthTokenPair;
|
||||
};
|
||||
|
||||
export type BoolFieldUpdateOperationsInput = {
|
||||
set?: InputMaybe<Scalars['Boolean']>;
|
||||
};
|
||||
|
||||
export type BoolFilter = {
|
||||
equals?: InputMaybe<Scalars['Boolean']>;
|
||||
not?: InputMaybe<NestedBoolFilter>;
|
||||
@ -362,17 +358,17 @@ export type CommentThreadUpdateInput = {
|
||||
assignee?: InputMaybe<UserUpdateOneWithoutAssignedCommentThreadsNestedInput>;
|
||||
attachments?: InputMaybe<AttachmentUpdateManyWithoutActivityNestedInput>;
|
||||
author?: InputMaybe<UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput>;
|
||||
body?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
body?: InputMaybe<Scalars['String']>;
|
||||
commentThreadTargets?: InputMaybe<CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput>;
|
||||
comments?: InputMaybe<CommentUpdateManyWithoutCommentThreadNestedInput>;
|
||||
completedAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
dueAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
reminderAt?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
title?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
type?: InputMaybe<EnumActivityTypeFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
completedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
dueAt?: InputMaybe<Scalars['DateTime']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
reminderAt?: InputMaybe<Scalars['DateTime']>;
|
||||
title?: InputMaybe<Scalars['String']>;
|
||||
type?: InputMaybe<ActivityType>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type CommentThreadUpdateManyWithoutAssigneeNestedInput = {
|
||||
@ -536,14 +532,14 @@ export enum CompanyScalarFieldEnum {
|
||||
|
||||
export type CompanyUpdateInput = {
|
||||
accountOwner?: InputMaybe<UserUpdateOneWithoutCompaniesNestedInput>;
|
||||
address?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
domainName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
employees?: InputMaybe<NullableIntFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
name?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
address?: InputMaybe<Scalars['String']>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
domainName?: InputMaybe<Scalars['String']>;
|
||||
employees?: InputMaybe<Scalars['Int']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
name?: InputMaybe<Scalars['String']>;
|
||||
people?: InputMaybe<PersonUpdateManyWithoutCompanyNestedInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type CompanyUpdateManyWithoutAccountOwnerNestedInput = {
|
||||
@ -583,10 +579,6 @@ export type CompanyWhereUniqueInput = {
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
};
|
||||
|
||||
export type DateTimeFieldUpdateOperationsInput = {
|
||||
set?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type DateTimeFilter = {
|
||||
equals?: InputMaybe<Scalars['DateTime']>;
|
||||
gt?: InputMaybe<Scalars['DateTime']>;
|
||||
@ -609,10 +601,6 @@ export type DateTimeNullableFilter = {
|
||||
notIn?: InputMaybe<Array<Scalars['DateTime']>>;
|
||||
};
|
||||
|
||||
export type EnumActivityTypeFieldUpdateOperationsInput = {
|
||||
set?: InputMaybe<ActivityType>;
|
||||
};
|
||||
|
||||
export type EnumActivityTypeFilter = {
|
||||
equals?: InputMaybe<ActivityType>;
|
||||
in?: InputMaybe<Array<ActivityType>>;
|
||||
@ -627,10 +615,6 @@ export type EnumAttachmentTypeFilter = {
|
||||
notIn?: InputMaybe<Array<AttachmentType>>;
|
||||
};
|
||||
|
||||
export type EnumColorSchemeFieldUpdateOperationsInput = {
|
||||
set?: InputMaybe<ColorScheme>;
|
||||
};
|
||||
|
||||
export type EnumColorSchemeFilter = {
|
||||
equals?: InputMaybe<ColorScheme>;
|
||||
in?: InputMaybe<Array<ColorScheme>>;
|
||||
@ -645,10 +629,6 @@ export type EnumCommentableTypeFilter = {
|
||||
notIn?: InputMaybe<Array<CommentableType>>;
|
||||
};
|
||||
|
||||
export type EnumPipelineProgressableTypeFieldUpdateOperationsInput = {
|
||||
set?: InputMaybe<PipelineProgressableType>;
|
||||
};
|
||||
|
||||
export type EnumPipelineProgressableTypeFilter = {
|
||||
equals?: InputMaybe<PipelineProgressableType>;
|
||||
in?: InputMaybe<Array<PipelineProgressableType>>;
|
||||
@ -974,51 +954,35 @@ export type NestedStringNullableFilter = {
|
||||
startsWith?: InputMaybe<Scalars['String']>;
|
||||
};
|
||||
|
||||
export type NullableDateTimeFieldUpdateOperationsInput = {
|
||||
set?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type NullableIntFieldUpdateOperationsInput = {
|
||||
decrement?: InputMaybe<Scalars['Int']>;
|
||||
divide?: InputMaybe<Scalars['Int']>;
|
||||
increment?: InputMaybe<Scalars['Int']>;
|
||||
multiply?: InputMaybe<Scalars['Int']>;
|
||||
set?: InputMaybe<Scalars['Int']>;
|
||||
};
|
||||
|
||||
export type NullableStringFieldUpdateOperationsInput = {
|
||||
set?: InputMaybe<Scalars['String']>;
|
||||
};
|
||||
|
||||
export type Person = {
|
||||
__typename?: 'Person';
|
||||
PipelineProgress?: Maybe<Array<PipelineProgress>>;
|
||||
_commentThreadCount: Scalars['Int'];
|
||||
city: Scalars['String'];
|
||||
city?: Maybe<Scalars['String']>;
|
||||
commentThreads: Array<CommentThread>;
|
||||
comments: Array<Comment>;
|
||||
company?: Maybe<Company>;
|
||||
companyId?: Maybe<Scalars['String']>;
|
||||
createdAt: Scalars['DateTime'];
|
||||
displayName: Scalars['String'];
|
||||
email: Scalars['String'];
|
||||
firstName: Scalars['String'];
|
||||
email?: Maybe<Scalars['String']>;
|
||||
firstName?: Maybe<Scalars['String']>;
|
||||
id: Scalars['ID'];
|
||||
lastName: Scalars['String'];
|
||||
phone: Scalars['String'];
|
||||
lastName?: Maybe<Scalars['String']>;
|
||||
phone?: Maybe<Scalars['String']>;
|
||||
pipelineProgresses?: Maybe<Array<PipelineProgress>>;
|
||||
updatedAt: Scalars['DateTime'];
|
||||
};
|
||||
|
||||
export type PersonCreateInput = {
|
||||
PipelineProgress?: InputMaybe<PipelineProgressCreateNestedManyWithoutPointOfContactInput>;
|
||||
city: Scalars['String'];
|
||||
city?: InputMaybe<Scalars['String']>;
|
||||
company?: InputMaybe<CompanyCreateNestedOneWithoutPeopleInput>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
email: Scalars['String'];
|
||||
firstName: Scalars['String'];
|
||||
email?: InputMaybe<Scalars['String']>;
|
||||
firstName?: InputMaybe<Scalars['String']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
lastName: Scalars['String'];
|
||||
phone: Scalars['String'];
|
||||
lastName?: InputMaybe<Scalars['String']>;
|
||||
phone?: InputMaybe<Scalars['String']>;
|
||||
pipelineProgresses?: InputMaybe<PipelineProgressCreateNestedManyWithoutPointOfContactInput>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
@ -1026,7 +990,7 @@ export type PersonCreateNestedManyWithoutCompanyInput = {
|
||||
connect?: InputMaybe<Array<PersonWhereUniqueInput>>;
|
||||
};
|
||||
|
||||
export type PersonCreateNestedOneWithoutPipelineProgressInput = {
|
||||
export type PersonCreateNestedOneWithoutPipelineProgressesInput = {
|
||||
connect?: InputMaybe<PersonWhereUniqueInput>;
|
||||
};
|
||||
|
||||
@ -1041,7 +1005,6 @@ export type PersonOrderByRelationAggregateInput = {
|
||||
};
|
||||
|
||||
export type PersonOrderByWithRelationInput = {
|
||||
PipelineProgress?: InputMaybe<PipelineProgressOrderByRelationAggregateInput>;
|
||||
city?: InputMaybe<SortOrder>;
|
||||
company?: InputMaybe<CompanyOrderByWithRelationInput>;
|
||||
companyId?: InputMaybe<SortOrder>;
|
||||
@ -1051,6 +1014,7 @@ export type PersonOrderByWithRelationInput = {
|
||||
id?: InputMaybe<SortOrder>;
|
||||
lastName?: InputMaybe<SortOrder>;
|
||||
phone?: InputMaybe<SortOrder>;
|
||||
pipelineProgresses?: InputMaybe<PipelineProgressOrderByRelationAggregateInput>;
|
||||
updatedAt?: InputMaybe<SortOrder>;
|
||||
};
|
||||
|
||||
@ -1074,16 +1038,16 @@ export enum PersonScalarFieldEnum {
|
||||
}
|
||||
|
||||
export type PersonUpdateInput = {
|
||||
PipelineProgress?: InputMaybe<PipelineProgressUpdateManyWithoutPointOfContactNestedInput>;
|
||||
city?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
city?: InputMaybe<Scalars['String']>;
|
||||
company?: InputMaybe<CompanyUpdateOneWithoutPeopleNestedInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
email?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
firstName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
lastName?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
phone?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
email?: InputMaybe<Scalars['String']>;
|
||||
firstName?: InputMaybe<Scalars['String']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
lastName?: InputMaybe<Scalars['String']>;
|
||||
phone?: InputMaybe<Scalars['String']>;
|
||||
pipelineProgresses?: InputMaybe<PipelineProgressUpdateManyWithoutPointOfContactNestedInput>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type PersonUpdateManyWithoutCompanyNestedInput = {
|
||||
@ -1098,7 +1062,7 @@ export type PersonUpdateManyWithoutWorkspaceNestedInput = {
|
||||
set?: InputMaybe<Array<PersonWhereUniqueInput>>;
|
||||
};
|
||||
|
||||
export type PersonUpdateOneWithoutPipelineProgressNestedInput = {
|
||||
export type PersonUpdateOneWithoutPipelineProgressesNestedInput = {
|
||||
connect?: InputMaybe<PersonWhereUniqueInput>;
|
||||
disconnect?: InputMaybe<Scalars['Boolean']>;
|
||||
};
|
||||
@ -1107,16 +1071,16 @@ export type PersonWhereInput = {
|
||||
AND?: InputMaybe<Array<PersonWhereInput>>;
|
||||
NOT?: InputMaybe<Array<PersonWhereInput>>;
|
||||
OR?: InputMaybe<Array<PersonWhereInput>>;
|
||||
PipelineProgress?: InputMaybe<PipelineProgressListRelationFilter>;
|
||||
city?: InputMaybe<StringFilter>;
|
||||
city?: InputMaybe<StringNullableFilter>;
|
||||
company?: InputMaybe<CompanyRelationFilter>;
|
||||
companyId?: InputMaybe<StringNullableFilter>;
|
||||
createdAt?: InputMaybe<DateTimeFilter>;
|
||||
email?: InputMaybe<StringFilter>;
|
||||
firstName?: InputMaybe<StringFilter>;
|
||||
email?: InputMaybe<StringNullableFilter>;
|
||||
firstName?: InputMaybe<StringNullableFilter>;
|
||||
id?: InputMaybe<StringFilter>;
|
||||
lastName?: InputMaybe<StringFilter>;
|
||||
phone?: InputMaybe<StringFilter>;
|
||||
lastName?: InputMaybe<StringNullableFilter>;
|
||||
phone?: InputMaybe<StringNullableFilter>;
|
||||
pipelineProgresses?: InputMaybe<PipelineProgressListRelationFilter>;
|
||||
updatedAt?: InputMaybe<DateTimeFilter>;
|
||||
};
|
||||
|
||||
@ -1176,7 +1140,7 @@ export type PipelineProgressCreateInput = {
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
pipeline: PipelineCreateNestedOneWithoutPipelineProgressesInput;
|
||||
pipelineStage: PipelineStageCreateNestedOneWithoutPipelineProgressesInput;
|
||||
pointOfContact?: InputMaybe<PersonCreateNestedOneWithoutPipelineProgressInput>;
|
||||
pointOfContact?: InputMaybe<PersonCreateNestedOneWithoutPipelineProgressesInput>;
|
||||
probability?: InputMaybe<Scalars['Int']>;
|
||||
progressableId: Scalars['String'];
|
||||
progressableType: PipelineProgressableType;
|
||||
@ -1231,17 +1195,17 @@ export enum PipelineProgressScalarFieldEnum {
|
||||
}
|
||||
|
||||
export type PipelineProgressUpdateInput = {
|
||||
amount?: InputMaybe<NullableIntFieldUpdateOperationsInput>;
|
||||
closeDate?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
amount?: InputMaybe<Scalars['Int']>;
|
||||
closeDate?: InputMaybe<Scalars['DateTime']>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
pipeline?: InputMaybe<PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput>;
|
||||
pipelineStage?: InputMaybe<PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput>;
|
||||
pointOfContact?: InputMaybe<PersonUpdateOneWithoutPipelineProgressNestedInput>;
|
||||
probability?: InputMaybe<NullableIntFieldUpdateOperationsInput>;
|
||||
progressableId?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
progressableType?: InputMaybe<EnumPipelineProgressableTypeFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
pointOfContact?: InputMaybe<PersonUpdateOneWithoutPipelineProgressesNestedInput>;
|
||||
probability?: InputMaybe<Scalars['Int']>;
|
||||
progressableId?: InputMaybe<Scalars['String']>;
|
||||
progressableType?: InputMaybe<PipelineProgressableType>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type PipelineProgressUpdateManyWithoutPipelineStageNestedInput = {
|
||||
@ -1367,15 +1331,15 @@ export enum PipelineStageScalarFieldEnum {
|
||||
}
|
||||
|
||||
export type PipelineStageUpdateInput = {
|
||||
color?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
index?: InputMaybe<NullableIntFieldUpdateOperationsInput>;
|
||||
name?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
color?: InputMaybe<Scalars['String']>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
index?: InputMaybe<Scalars['Int']>;
|
||||
name?: InputMaybe<Scalars['String']>;
|
||||
pipeline?: InputMaybe<PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput>;
|
||||
pipelineProgresses?: InputMaybe<PipelineProgressUpdateManyWithoutPipelineStageNestedInput>;
|
||||
type?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
type?: InputMaybe<Scalars['String']>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type PipelineStageUpdateManyWithoutWorkspaceNestedInput = {
|
||||
@ -1569,10 +1533,6 @@ export enum SortOrder {
|
||||
Desc = 'desc'
|
||||
}
|
||||
|
||||
export type StringFieldUpdateOperationsInput = {
|
||||
set?: InputMaybe<Scalars['String']>;
|
||||
};
|
||||
|
||||
export type StringFilter = {
|
||||
contains?: InputMaybe<Scalars['String']>;
|
||||
endsWith?: InputMaybe<Scalars['String']>;
|
||||
@ -1732,11 +1692,11 @@ export type UserSettingsUpdateOneRequiredWithoutUserNestedInput = {
|
||||
};
|
||||
|
||||
export type UserSettingsUpdateWithoutUserInput = {
|
||||
colorScheme?: InputMaybe<EnumColorSchemeFieldUpdateOperationsInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
locale?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
colorScheme?: InputMaybe<ColorScheme>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
locale?: InputMaybe<Scalars['String']>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type UserSettingsWhereInput = {
|
||||
@ -1755,22 +1715,22 @@ export type UserUpdateInput = {
|
||||
assignedCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAssigneeNestedInput>;
|
||||
authoredAttachments?: InputMaybe<AttachmentUpdateManyWithoutAuthorNestedInput>;
|
||||
authoredCommentThreads?: InputMaybe<CommentThreadUpdateManyWithoutAuthorNestedInput>;
|
||||
avatarUrl?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
avatarUrl?: InputMaybe<Scalars['String']>;
|
||||
comments?: InputMaybe<CommentUpdateManyWithoutAuthorNestedInput>;
|
||||
companies?: InputMaybe<CompanyUpdateManyWithoutAccountOwnerNestedInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
disabled?: InputMaybe<BoolFieldUpdateOperationsInput>;
|
||||
email?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
emailVerified?: InputMaybe<BoolFieldUpdateOperationsInput>;
|
||||
firstName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
lastName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
lastSeen?: InputMaybe<NullableDateTimeFieldUpdateOperationsInput>;
|
||||
locale?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
disabled?: InputMaybe<Scalars['Boolean']>;
|
||||
email?: InputMaybe<Scalars['String']>;
|
||||
emailVerified?: InputMaybe<Scalars['Boolean']>;
|
||||
firstName?: InputMaybe<Scalars['String']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
lastName?: InputMaybe<Scalars['String']>;
|
||||
lastSeen?: InputMaybe<Scalars['DateTime']>;
|
||||
locale?: InputMaybe<Scalars['String']>;
|
||||
metadata?: InputMaybe<Scalars['JSON']>;
|
||||
phoneNumber?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
phoneNumber?: InputMaybe<Scalars['String']>;
|
||||
settings?: InputMaybe<UserSettingsUpdateOneRequiredWithoutUserNestedInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
};
|
||||
|
||||
export type UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput = {
|
||||
@ -1902,17 +1862,17 @@ export type WorkspaceUpdateInput = {
|
||||
commentThreads?: InputMaybe<CommentThreadUpdateManyWithoutWorkspaceNestedInput>;
|
||||
comments?: InputMaybe<CommentUpdateManyWithoutWorkspaceNestedInput>;
|
||||
companies?: InputMaybe<CompanyUpdateManyWithoutWorkspaceNestedInput>;
|
||||
createdAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
displayName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
domainName?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
id?: InputMaybe<StringFieldUpdateOperationsInput>;
|
||||
inviteHash?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
logo?: InputMaybe<NullableStringFieldUpdateOperationsInput>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
displayName?: InputMaybe<Scalars['String']>;
|
||||
domainName?: InputMaybe<Scalars['String']>;
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
inviteHash?: InputMaybe<Scalars['String']>;
|
||||
logo?: InputMaybe<Scalars['String']>;
|
||||
people?: InputMaybe<PersonUpdateManyWithoutWorkspaceNestedInput>;
|
||||
pipelineProgresses?: InputMaybe<PipelineProgressUpdateManyWithoutWorkspaceNestedInput>;
|
||||
pipelineStages?: InputMaybe<PipelineStageUpdateManyWithoutWorkspaceNestedInput>;
|
||||
pipelines?: InputMaybe<PipelineUpdateManyWithoutWorkspaceNestedInput>;
|
||||
updatedAt?: InputMaybe<DateTimeFieldUpdateOperationsInput>;
|
||||
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
||||
workspaceMember?: InputMaybe<WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput>;
|
||||
};
|
||||
|
||||
@ -1946,14 +1906,14 @@ export type GetCommentThreadsByTargetsQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type GetCommentThreadsByTargetsQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
|
||||
export type GetCommentThreadsByTargetsQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
|
||||
|
||||
export type GetCommentThreadQueryVariables = Exact<{
|
||||
commentThreadId: Scalars['String'];
|
||||
}>;
|
||||
|
||||
|
||||
export type GetCommentThreadQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, body?: string | null, title?: string | null, type: ActivityType, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
|
||||
export type GetCommentThreadQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, body?: string | null, title?: string | null, type: ActivityType, author: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string }, comments?: Array<{ __typename?: 'Comment', id: string, body: string, createdAt: string, updatedAt: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } }> | null, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, commentableId: string, commentableType: CommentableType }> | null }> };
|
||||
|
||||
export type AddCommentThreadTargetOnCommentThreadMutationVariables = Exact<{
|
||||
commentThreadId: Scalars['String'];
|
||||
@ -2065,37 +2025,27 @@ export type GetCompanyQueryVariables = Exact<{
|
||||
|
||||
export type GetCompanyQuery = { __typename?: 'Query', findUniqueCompany: { __typename?: 'Company', id: string, domainName: string, name: string, createdAt: string, address: string, employees?: number | null, _commentThreadCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, avatarUrl?: string | null } | null } };
|
||||
|
||||
export type UpdateCompanyMutationVariables = Exact<{
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
name?: InputMaybe<Scalars['String']>;
|
||||
domainName?: InputMaybe<Scalars['String']>;
|
||||
accountOwnerId?: InputMaybe<Scalars['String']>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
address?: InputMaybe<Scalars['String']>;
|
||||
employees?: InputMaybe<Scalars['Int']>;
|
||||
export type UpdateOneCompanyMutationVariables = Exact<{
|
||||
where: CompanyWhereUniqueInput;
|
||||
data: CompanyUpdateInput;
|
||||
}>;
|
||||
|
||||
|
||||
export type UpdateCompanyMutation = { __typename?: 'Mutation', updateOneCompany?: { __typename?: 'Company', address: string, createdAt: string, domainName: string, employees?: number | null, id: string, name: string, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null } | null } | null };
|
||||
export type UpdateOneCompanyMutation = { __typename?: 'Mutation', updateOneCompany?: { __typename?: 'Company', address: string, createdAt: string, domainName: string, employees?: number | null, id: string, name: string, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null } | null } | null };
|
||||
|
||||
export type InsertCompanyMutationVariables = Exact<{
|
||||
id: Scalars['String'];
|
||||
name: Scalars['String'];
|
||||
domainName: Scalars['String'];
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
address: Scalars['String'];
|
||||
employees?: InputMaybe<Scalars['Int']>;
|
||||
export type InsertOneCompanyMutationVariables = Exact<{
|
||||
data: CompanyCreateInput;
|
||||
}>;
|
||||
|
||||
|
||||
export type InsertCompanyMutation = { __typename?: 'Mutation', createOneCompany: { __typename?: 'Company', address: string, createdAt: string, domainName: string, employees?: number | null, id: string, name: string } };
|
||||
export type InsertOneCompanyMutation = { __typename?: 'Mutation', createOneCompany: { __typename?: 'Company', address: string, createdAt: string, domainName: string, employees?: number | null, id: string, name: string } };
|
||||
|
||||
export type DeleteCompaniesMutationVariables = Exact<{
|
||||
export type DeleteManyCompaniesMutationVariables = Exact<{
|
||||
ids?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
|
||||
}>;
|
||||
|
||||
|
||||
export type DeleteCompaniesMutation = { __typename?: 'Mutation', deleteManyCompany: { __typename?: 'AffectedRows', count: number } };
|
||||
export type DeleteManyCompaniesMutation = { __typename?: 'Mutation', deleteManyCompany: { __typename?: 'AffectedRows', count: number } };
|
||||
|
||||
export type GetPeopleQueryVariables = Exact<{
|
||||
orderBy?: InputMaybe<Array<PersonOrderByWithRelationInput> | PersonOrderByWithRelationInput>;
|
||||
@ -2104,28 +2054,28 @@ export type GetPeopleQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type GetPeopleQuery = { __typename?: 'Query', people: Array<{ __typename?: 'Person', id: string, phone: string, email: string, city: string, firstName: string, lastName: string, createdAt: string, _commentThreadCount: number, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null }> };
|
||||
export type GetPeopleQuery = { __typename?: 'Query', people: Array<{ __typename?: 'Person', id: string, phone?: string | null, email?: string | null, city?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, createdAt: string, _commentThreadCount: number, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null }> };
|
||||
|
||||
export type GetPersonPhoneByIdQueryVariables = Exact<{
|
||||
id: Scalars['String'];
|
||||
}>;
|
||||
|
||||
|
||||
export type GetPersonPhoneByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, phone: string } };
|
||||
export type GetPersonPhoneByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, phone?: string | null } };
|
||||
|
||||
export type GetPersonEmailByIdQueryVariables = Exact<{
|
||||
id: Scalars['String'];
|
||||
}>;
|
||||
|
||||
|
||||
export type GetPersonEmailByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, email: string } };
|
||||
export type GetPersonEmailByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, email?: string | null } };
|
||||
|
||||
export type GetPersonNamesAndCommentCountByIdQueryVariables = Exact<{
|
||||
id: Scalars['String'];
|
||||
}>;
|
||||
|
||||
|
||||
export type GetPersonNamesAndCommentCountByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, firstName: string, lastName: string, _commentThreadCount: number } };
|
||||
export type GetPersonNamesAndCommentCountByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, firstName?: string | null, lastName?: string | null, displayName: string, _commentThreadCount: number } };
|
||||
|
||||
export type GetPersonCompanyByIdQueryVariables = Exact<{
|
||||
id: Scalars['String'];
|
||||
@ -2153,48 +2103,36 @@ export type GetPersonCityByIdQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type GetPersonCityByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, city: string } };
|
||||
export type GetPersonCityByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, city?: string | null } };
|
||||
|
||||
export type GetPersonQueryVariables = Exact<{
|
||||
id: Scalars['String'];
|
||||
}>;
|
||||
|
||||
|
||||
export type GetPersonQuery = { __typename?: 'Query', findUniquePerson: { __typename?: 'Person', id: string, firstName: string, lastName: string, displayName: string, email: string, createdAt: string, city: string, phone: string, _commentThreadCount: number, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null } };
|
||||
export type GetPersonQuery = { __typename?: 'Query', findUniquePerson: { __typename?: 'Person', id: string, firstName?: string | null, lastName?: string | null, displayName: string, email?: string | null, createdAt: string, city?: string | null, phone?: string | null, _commentThreadCount: number, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null } };
|
||||
|
||||
export type UpdatePeopleMutationVariables = Exact<{
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
firstName?: InputMaybe<Scalars['String']>;
|
||||
lastName?: InputMaybe<Scalars['String']>;
|
||||
phone?: InputMaybe<Scalars['String']>;
|
||||
city?: InputMaybe<Scalars['String']>;
|
||||
companyId?: InputMaybe<Scalars['String']>;
|
||||
email?: InputMaybe<Scalars['String']>;
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
export type UpdateOnePersonMutationVariables = Exact<{
|
||||
where: PersonWhereUniqueInput;
|
||||
data: PersonUpdateInput;
|
||||
}>;
|
||||
|
||||
|
||||
export type UpdatePeopleMutation = { __typename?: 'Mutation', updateOnePerson?: { __typename?: 'Person', id: string, city: string, email: string, firstName: string, lastName: string, phone: string, createdAt: string, company?: { __typename?: 'Company', domainName: string, name: string, id: string } | null } | null };
|
||||
export type UpdateOnePersonMutation = { __typename?: 'Mutation', updateOnePerson?: { __typename?: 'Person', id: string, city?: string | null, email?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, phone?: string | null, createdAt: string, company?: { __typename?: 'Company', domainName: string, name: string, id: string } | null } | null };
|
||||
|
||||
export type InsertPersonMutationVariables = Exact<{
|
||||
id: Scalars['String'];
|
||||
firstName: Scalars['String'];
|
||||
lastName: Scalars['String'];
|
||||
phone: Scalars['String'];
|
||||
city: Scalars['String'];
|
||||
email: Scalars['String'];
|
||||
createdAt?: InputMaybe<Scalars['DateTime']>;
|
||||
export type InsertOnePersonMutationVariables = Exact<{
|
||||
data: PersonCreateInput;
|
||||
}>;
|
||||
|
||||
|
||||
export type InsertPersonMutation = { __typename?: 'Mutation', createOnePerson: { __typename?: 'Person', id: string, city: string, email: string, firstName: string, lastName: string, phone: string, createdAt: string, company?: { __typename?: 'Company', domainName: string, name: string, id: string } | null } };
|
||||
export type InsertOnePersonMutation = { __typename?: 'Mutation', createOnePerson: { __typename?: 'Person', id: string, city?: string | null, email?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, phone?: string | null, createdAt: string, company?: { __typename?: 'Company', domainName: string, name: string, id: string } | null } };
|
||||
|
||||
export type DeletePeopleMutationVariables = Exact<{
|
||||
export type DeleteManyPersonMutationVariables = Exact<{
|
||||
ids?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
|
||||
}>;
|
||||
|
||||
|
||||
export type DeletePeopleMutation = { __typename?: 'Mutation', deleteManyPerson: { __typename?: 'AffectedRows', count: number } };
|
||||
export type DeleteManyPersonMutation = { __typename?: 'Mutation', deleteManyPerson: { __typename?: 'AffectedRows', count: number } };
|
||||
|
||||
export type GetPipelinesQueryVariables = Exact<{
|
||||
where?: InputMaybe<PipelineWhereInput>;
|
||||
@ -2209,7 +2147,7 @@ export type GetPipelineProgressQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type GetPipelineProgressQuery = { __typename?: 'Query', findManyPipelineProgress: Array<{ __typename?: 'PipelineProgress', id: string, pipelineStageId: string, progressableType: PipelineProgressableType, progressableId: string, amount?: number | null, closeDate?: string | null, pointOfContactId?: string | null, probability?: number | null, pointOfContact?: { __typename?: 'Person', id: string, firstName: string, lastName: string } | null }> };
|
||||
export type GetPipelineProgressQuery = { __typename?: 'Query', findManyPipelineProgress: Array<{ __typename?: 'PipelineProgress', id: string, pipelineStageId: string, progressableType: PipelineProgressableType, progressableId: string, amount?: number | null, closeDate?: string | null, pointOfContactId?: string | null, probability?: number | null, pointOfContact?: { __typename?: 'Person', id: string, firstName?: string | null, lastName?: string | null, displayName: string } | null }> };
|
||||
|
||||
export type UpdateOnePipelineProgressMutationVariables = Exact<{
|
||||
id?: InputMaybe<Scalars['String']>;
|
||||
@ -2263,7 +2201,7 @@ export type SearchPeopleQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type SearchPeopleQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'Person', id: string, phone: string, email: string, city: string, firstName: string, lastName: string, createdAt: string }> };
|
||||
export type SearchPeopleQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'Person', id: string, phone?: string | null, email?: string | null, city?: string | null, firstName?: string | null, lastName?: string | null, createdAt: string }> };
|
||||
|
||||
export type SearchUserQueryVariables = Exact<{
|
||||
where?: InputMaybe<UserWhereInput>;
|
||||
@ -2323,7 +2261,7 @@ export type RemoveProfilePictureMutation = { __typename?: 'Mutation', updateUser
|
||||
export type GetWorkspaceMembersQueryVariables = Exact<{ [key: string]: never; }>;
|
||||
|
||||
|
||||
export type GetWorkspaceMembersQuery = { __typename?: 'Query', workspaceMembers: Array<{ __typename?: 'WorkspaceMember', id: string, user: { __typename?: 'User', id: string, email: string, avatarUrl?: string | null, firstName?: string | null, lastName?: string | null } }> };
|
||||
export type GetWorkspaceMembersQuery = { __typename?: 'Query', workspaceMembers: Array<{ __typename?: 'WorkspaceMember', id: string, user: { __typename?: 'User', id: string, email: string, avatarUrl?: string | null, firstName?: string | null, lastName?: string | null, displayName: string } }> };
|
||||
|
||||
export type UpdateWorkspaceMutationVariables = Exact<{
|
||||
data: WorkspaceUpdateInput;
|
||||
@ -2478,6 +2416,7 @@ export const GetCommentThreadsByTargetsDocument = gql`
|
||||
id
|
||||
firstName
|
||||
lastName
|
||||
displayName
|
||||
}
|
||||
comments {
|
||||
id
|
||||
@ -2541,6 +2480,7 @@ export const GetCommentThreadDocument = gql`
|
||||
id
|
||||
firstName
|
||||
lastName
|
||||
displayName
|
||||
}
|
||||
comments {
|
||||
id
|
||||
@ -2723,7 +2663,7 @@ export const UpdateCommentThreadDocument = gql`
|
||||
mutation UpdateCommentThread($id: String!, $body: String, $title: String, $type: ActivityType) {
|
||||
updateOneCommentThread(
|
||||
where: {id: $id}
|
||||
data: {body: {set: $body}, title: {set: $title}, type: {set: $type}}
|
||||
data: {body: $body, title: $title, type: $type}
|
||||
) {
|
||||
id
|
||||
body
|
||||
@ -3181,12 +3121,9 @@ export function useGetCompanyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions
|
||||
export type GetCompanyQueryHookResult = ReturnType<typeof useGetCompanyQuery>;
|
||||
export type GetCompanyLazyQueryHookResult = ReturnType<typeof useGetCompanyLazyQuery>;
|
||||
export type GetCompanyQueryResult = Apollo.QueryResult<GetCompanyQuery, GetCompanyQueryVariables>;
|
||||
export const UpdateCompanyDocument = gql`
|
||||
mutation UpdateCompany($id: String, $name: String, $domainName: String, $accountOwnerId: String, $createdAt: DateTime, $address: String, $employees: Int) {
|
||||
updateOneCompany(
|
||||
where: {id: $id}
|
||||
data: {accountOwner: {connect: {id: $accountOwnerId}}, address: {set: $address}, domainName: {set: $domainName}, employees: {set: $employees}, name: {set: $name}, createdAt: {set: $createdAt}}
|
||||
) {
|
||||
export const UpdateOneCompanyDocument = gql`
|
||||
mutation UpdateOneCompany($where: CompanyWhereUniqueInput!, $data: CompanyUpdateInput!) {
|
||||
updateOneCompany(data: $data, where: $where) {
|
||||
accountOwner {
|
||||
id
|
||||
email
|
||||
@ -3203,43 +3140,36 @@ export const UpdateCompanyDocument = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type UpdateCompanyMutationFn = Apollo.MutationFunction<UpdateCompanyMutation, UpdateCompanyMutationVariables>;
|
||||
export type UpdateOneCompanyMutationFn = Apollo.MutationFunction<UpdateOneCompanyMutation, UpdateOneCompanyMutationVariables>;
|
||||
|
||||
/**
|
||||
* __useUpdateCompanyMutation__
|
||||
* __useUpdateOneCompanyMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useUpdateCompanyMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useUpdateCompanyMutation` returns a tuple that includes:
|
||||
* To run a mutation, you first call `useUpdateOneCompanyMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useUpdateOneCompanyMutation` returns a tuple that includes:
|
||||
* - A mutate function that you can call at any time to execute the mutation
|
||||
* - An object with fields that represent the current status of the mutation's execution
|
||||
*
|
||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||
*
|
||||
* @example
|
||||
* const [updateCompanyMutation, { data, loading, error }] = useUpdateCompanyMutation({
|
||||
* const [updateOneCompanyMutation, { data, loading, error }] = useUpdateOneCompanyMutation({
|
||||
* variables: {
|
||||
* id: // value for 'id'
|
||||
* name: // value for 'name'
|
||||
* domainName: // value for 'domainName'
|
||||
* accountOwnerId: // value for 'accountOwnerId'
|
||||
* createdAt: // value for 'createdAt'
|
||||
* address: // value for 'address'
|
||||
* employees: // value for 'employees'
|
||||
* where: // value for 'where'
|
||||
* data: // value for 'data'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useUpdateCompanyMutation(baseOptions?: Apollo.MutationHookOptions<UpdateCompanyMutation, UpdateCompanyMutationVariables>) {
|
||||
export function useUpdateOneCompanyMutation(baseOptions?: Apollo.MutationHookOptions<UpdateOneCompanyMutation, UpdateOneCompanyMutationVariables>) {
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<UpdateCompanyMutation, UpdateCompanyMutationVariables>(UpdateCompanyDocument, options);
|
||||
return Apollo.useMutation<UpdateOneCompanyMutation, UpdateOneCompanyMutationVariables>(UpdateOneCompanyDocument, options);
|
||||
}
|
||||
export type UpdateCompanyMutationHookResult = ReturnType<typeof useUpdateCompanyMutation>;
|
||||
export type UpdateCompanyMutationResult = Apollo.MutationResult<UpdateCompanyMutation>;
|
||||
export type UpdateCompanyMutationOptions = Apollo.BaseMutationOptions<UpdateCompanyMutation, UpdateCompanyMutationVariables>;
|
||||
export const InsertCompanyDocument = gql`
|
||||
mutation InsertCompany($id: String!, $name: String!, $domainName: String!, $createdAt: DateTime, $address: String!, $employees: Int) {
|
||||
createOneCompany(
|
||||
data: {id: $id, name: $name, domainName: $domainName, createdAt: $createdAt, address: $address, employees: $employees}
|
||||
) {
|
||||
export type UpdateOneCompanyMutationHookResult = ReturnType<typeof useUpdateOneCompanyMutation>;
|
||||
export type UpdateOneCompanyMutationResult = Apollo.MutationResult<UpdateOneCompanyMutation>;
|
||||
export type UpdateOneCompanyMutationOptions = Apollo.BaseMutationOptions<UpdateOneCompanyMutation, UpdateOneCompanyMutationVariables>;
|
||||
export const InsertOneCompanyDocument = gql`
|
||||
mutation InsertOneCompany($data: CompanyCreateInput!) {
|
||||
createOneCompany(data: $data) {
|
||||
address
|
||||
createdAt
|
||||
domainName
|
||||
@ -3249,70 +3179,65 @@ export const InsertCompanyDocument = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type InsertCompanyMutationFn = Apollo.MutationFunction<InsertCompanyMutation, InsertCompanyMutationVariables>;
|
||||
export type InsertOneCompanyMutationFn = Apollo.MutationFunction<InsertOneCompanyMutation, InsertOneCompanyMutationVariables>;
|
||||
|
||||
/**
|
||||
* __useInsertCompanyMutation__
|
||||
* __useInsertOneCompanyMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useInsertCompanyMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useInsertCompanyMutation` returns a tuple that includes:
|
||||
* To run a mutation, you first call `useInsertOneCompanyMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useInsertOneCompanyMutation` returns a tuple that includes:
|
||||
* - A mutate function that you can call at any time to execute the mutation
|
||||
* - An object with fields that represent the current status of the mutation's execution
|
||||
*
|
||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||
*
|
||||
* @example
|
||||
* const [insertCompanyMutation, { data, loading, error }] = useInsertCompanyMutation({
|
||||
* const [insertOneCompanyMutation, { data, loading, error }] = useInsertOneCompanyMutation({
|
||||
* variables: {
|
||||
* id: // value for 'id'
|
||||
* name: // value for 'name'
|
||||
* domainName: // value for 'domainName'
|
||||
* createdAt: // value for 'createdAt'
|
||||
* address: // value for 'address'
|
||||
* employees: // value for 'employees'
|
||||
* data: // value for 'data'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useInsertCompanyMutation(baseOptions?: Apollo.MutationHookOptions<InsertCompanyMutation, InsertCompanyMutationVariables>) {
|
||||
export function useInsertOneCompanyMutation(baseOptions?: Apollo.MutationHookOptions<InsertOneCompanyMutation, InsertOneCompanyMutationVariables>) {
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<InsertCompanyMutation, InsertCompanyMutationVariables>(InsertCompanyDocument, options);
|
||||
return Apollo.useMutation<InsertOneCompanyMutation, InsertOneCompanyMutationVariables>(InsertOneCompanyDocument, options);
|
||||
}
|
||||
export type InsertCompanyMutationHookResult = ReturnType<typeof useInsertCompanyMutation>;
|
||||
export type InsertCompanyMutationResult = Apollo.MutationResult<InsertCompanyMutation>;
|
||||
export type InsertCompanyMutationOptions = Apollo.BaseMutationOptions<InsertCompanyMutation, InsertCompanyMutationVariables>;
|
||||
export const DeleteCompaniesDocument = gql`
|
||||
mutation DeleteCompanies($ids: [String!]) {
|
||||
export type InsertOneCompanyMutationHookResult = ReturnType<typeof useInsertOneCompanyMutation>;
|
||||
export type InsertOneCompanyMutationResult = Apollo.MutationResult<InsertOneCompanyMutation>;
|
||||
export type InsertOneCompanyMutationOptions = Apollo.BaseMutationOptions<InsertOneCompanyMutation, InsertOneCompanyMutationVariables>;
|
||||
export const DeleteManyCompaniesDocument = gql`
|
||||
mutation DeleteManyCompanies($ids: [String!]) {
|
||||
deleteManyCompany(where: {id: {in: $ids}}) {
|
||||
count
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type DeleteCompaniesMutationFn = Apollo.MutationFunction<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>;
|
||||
export type DeleteManyCompaniesMutationFn = Apollo.MutationFunction<DeleteManyCompaniesMutation, DeleteManyCompaniesMutationVariables>;
|
||||
|
||||
/**
|
||||
* __useDeleteCompaniesMutation__
|
||||
* __useDeleteManyCompaniesMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useDeleteCompaniesMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useDeleteCompaniesMutation` returns a tuple that includes:
|
||||
* To run a mutation, you first call `useDeleteManyCompaniesMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useDeleteManyCompaniesMutation` returns a tuple that includes:
|
||||
* - A mutate function that you can call at any time to execute the mutation
|
||||
* - An object with fields that represent the current status of the mutation's execution
|
||||
*
|
||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||
*
|
||||
* @example
|
||||
* const [deleteCompaniesMutation, { data, loading, error }] = useDeleteCompaniesMutation({
|
||||
* const [deleteManyCompaniesMutation, { data, loading, error }] = useDeleteManyCompaniesMutation({
|
||||
* variables: {
|
||||
* ids: // value for 'ids'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useDeleteCompaniesMutation(baseOptions?: Apollo.MutationHookOptions<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>) {
|
||||
export function useDeleteManyCompaniesMutation(baseOptions?: Apollo.MutationHookOptions<DeleteManyCompaniesMutation, DeleteManyCompaniesMutationVariables>) {
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>(DeleteCompaniesDocument, options);
|
||||
return Apollo.useMutation<DeleteManyCompaniesMutation, DeleteManyCompaniesMutationVariables>(DeleteManyCompaniesDocument, options);
|
||||
}
|
||||
export type DeleteCompaniesMutationHookResult = ReturnType<typeof useDeleteCompaniesMutation>;
|
||||
export type DeleteCompaniesMutationResult = Apollo.MutationResult<DeleteCompaniesMutation>;
|
||||
export type DeleteCompaniesMutationOptions = Apollo.BaseMutationOptions<DeleteCompaniesMutation, DeleteCompaniesMutationVariables>;
|
||||
export type DeleteManyCompaniesMutationHookResult = ReturnType<typeof useDeleteManyCompaniesMutation>;
|
||||
export type DeleteManyCompaniesMutationResult = Apollo.MutationResult<DeleteManyCompaniesMutation>;
|
||||
export type DeleteManyCompaniesMutationOptions = Apollo.BaseMutationOptions<DeleteManyCompaniesMutation, DeleteManyCompaniesMutationVariables>;
|
||||
export const GetPeopleDocument = gql`
|
||||
query GetPeople($orderBy: [PersonOrderByWithRelationInput!], $where: PersonWhereInput, $limit: Int) {
|
||||
people: findManyPerson(orderBy: $orderBy, where: $where, take: $limit) {
|
||||
@ -3322,6 +3247,7 @@ export const GetPeopleDocument = gql`
|
||||
city
|
||||
firstName
|
||||
lastName
|
||||
displayName
|
||||
createdAt
|
||||
_commentThreadCount
|
||||
company {
|
||||
@ -3440,6 +3366,7 @@ export const GetPersonNamesAndCommentCountByIdDocument = gql`
|
||||
id
|
||||
firstName
|
||||
lastName
|
||||
displayName
|
||||
_commentThreadCount
|
||||
}
|
||||
}
|
||||
@ -3668,12 +3595,9 @@ export function useGetPersonLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
export type GetPersonQueryHookResult = ReturnType<typeof useGetPersonQuery>;
|
||||
export type GetPersonLazyQueryHookResult = ReturnType<typeof useGetPersonLazyQuery>;
|
||||
export type GetPersonQueryResult = Apollo.QueryResult<GetPersonQuery, GetPersonQueryVariables>;
|
||||
export const UpdatePeopleDocument = gql`
|
||||
mutation UpdatePeople($id: String, $firstName: String, $lastName: String, $phone: String, $city: String, $companyId: String, $email: String, $createdAt: DateTime) {
|
||||
updateOnePerson(
|
||||
where: {id: $id}
|
||||
data: {city: {set: $city}, company: {connect: {id: $companyId}}, email: {set: $email}, firstName: {set: $firstName}, id: {set: $id}, lastName: {set: $lastName}, phone: {set: $phone}, createdAt: {set: $createdAt}}
|
||||
) {
|
||||
export const UpdateOnePersonDocument = gql`
|
||||
mutation UpdateOnePerson($where: PersonWhereUniqueInput!, $data: PersonUpdateInput!) {
|
||||
updateOnePerson(data: $data, where: $where) {
|
||||
id
|
||||
city
|
||||
company {
|
||||
@ -3684,49 +3608,42 @@ export const UpdatePeopleDocument = gql`
|
||||
email
|
||||
firstName
|
||||
lastName
|
||||
displayName
|
||||
phone
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type UpdatePeopleMutationFn = Apollo.MutationFunction<UpdatePeopleMutation, UpdatePeopleMutationVariables>;
|
||||
export type UpdateOnePersonMutationFn = Apollo.MutationFunction<UpdateOnePersonMutation, UpdateOnePersonMutationVariables>;
|
||||
|
||||
/**
|
||||
* __useUpdatePeopleMutation__
|
||||
* __useUpdateOnePersonMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useUpdatePeopleMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useUpdatePeopleMutation` returns a tuple that includes:
|
||||
* To run a mutation, you first call `useUpdateOnePersonMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useUpdateOnePersonMutation` returns a tuple that includes:
|
||||
* - A mutate function that you can call at any time to execute the mutation
|
||||
* - An object with fields that represent the current status of the mutation's execution
|
||||
*
|
||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||
*
|
||||
* @example
|
||||
* const [updatePeopleMutation, { data, loading, error }] = useUpdatePeopleMutation({
|
||||
* const [updateOnePersonMutation, { data, loading, error }] = useUpdateOnePersonMutation({
|
||||
* variables: {
|
||||
* id: // value for 'id'
|
||||
* firstName: // value for 'firstName'
|
||||
* lastName: // value for 'lastName'
|
||||
* phone: // value for 'phone'
|
||||
* city: // value for 'city'
|
||||
* companyId: // value for 'companyId'
|
||||
* email: // value for 'email'
|
||||
* createdAt: // value for 'createdAt'
|
||||
* where: // value for 'where'
|
||||
* data: // value for 'data'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useUpdatePeopleMutation(baseOptions?: Apollo.MutationHookOptions<UpdatePeopleMutation, UpdatePeopleMutationVariables>) {
|
||||
export function useUpdateOnePersonMutation(baseOptions?: Apollo.MutationHookOptions<UpdateOnePersonMutation, UpdateOnePersonMutationVariables>) {
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<UpdatePeopleMutation, UpdatePeopleMutationVariables>(UpdatePeopleDocument, options);
|
||||
return Apollo.useMutation<UpdateOnePersonMutation, UpdateOnePersonMutationVariables>(UpdateOnePersonDocument, options);
|
||||
}
|
||||
export type UpdatePeopleMutationHookResult = ReturnType<typeof useUpdatePeopleMutation>;
|
||||
export type UpdatePeopleMutationResult = Apollo.MutationResult<UpdatePeopleMutation>;
|
||||
export type UpdatePeopleMutationOptions = Apollo.BaseMutationOptions<UpdatePeopleMutation, UpdatePeopleMutationVariables>;
|
||||
export const InsertPersonDocument = gql`
|
||||
mutation InsertPerson($id: String!, $firstName: String!, $lastName: String!, $phone: String!, $city: String!, $email: String!, $createdAt: DateTime) {
|
||||
createOnePerson(
|
||||
data: {id: $id, firstName: $firstName, lastName: $lastName, phone: $phone, city: $city, email: $email, createdAt: $createdAt}
|
||||
) {
|
||||
export type UpdateOnePersonMutationHookResult = ReturnType<typeof useUpdateOnePersonMutation>;
|
||||
export type UpdateOnePersonMutationResult = Apollo.MutationResult<UpdateOnePersonMutation>;
|
||||
export type UpdateOnePersonMutationOptions = Apollo.BaseMutationOptions<UpdateOnePersonMutation, UpdateOnePersonMutationVariables>;
|
||||
export const InsertOnePersonDocument = gql`
|
||||
mutation InsertOnePerson($data: PersonCreateInput!) {
|
||||
createOnePerson(data: $data) {
|
||||
id
|
||||
city
|
||||
company {
|
||||
@ -3737,76 +3654,71 @@ export const InsertPersonDocument = gql`
|
||||
email
|
||||
firstName
|
||||
lastName
|
||||
displayName
|
||||
phone
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type InsertPersonMutationFn = Apollo.MutationFunction<InsertPersonMutation, InsertPersonMutationVariables>;
|
||||
export type InsertOnePersonMutationFn = Apollo.MutationFunction<InsertOnePersonMutation, InsertOnePersonMutationVariables>;
|
||||
|
||||
/**
|
||||
* __useInsertPersonMutation__
|
||||
* __useInsertOnePersonMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useInsertPersonMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useInsertPersonMutation` returns a tuple that includes:
|
||||
* To run a mutation, you first call `useInsertOnePersonMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useInsertOnePersonMutation` returns a tuple that includes:
|
||||
* - A mutate function that you can call at any time to execute the mutation
|
||||
* - An object with fields that represent the current status of the mutation's execution
|
||||
*
|
||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||
*
|
||||
* @example
|
||||
* const [insertPersonMutation, { data, loading, error }] = useInsertPersonMutation({
|
||||
* const [insertOnePersonMutation, { data, loading, error }] = useInsertOnePersonMutation({
|
||||
* variables: {
|
||||
* id: // value for 'id'
|
||||
* firstName: // value for 'firstName'
|
||||
* lastName: // value for 'lastName'
|
||||
* phone: // value for 'phone'
|
||||
* city: // value for 'city'
|
||||
* email: // value for 'email'
|
||||
* createdAt: // value for 'createdAt'
|
||||
* data: // value for 'data'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useInsertPersonMutation(baseOptions?: Apollo.MutationHookOptions<InsertPersonMutation, InsertPersonMutationVariables>) {
|
||||
export function useInsertOnePersonMutation(baseOptions?: Apollo.MutationHookOptions<InsertOnePersonMutation, InsertOnePersonMutationVariables>) {
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<InsertPersonMutation, InsertPersonMutationVariables>(InsertPersonDocument, options);
|
||||
return Apollo.useMutation<InsertOnePersonMutation, InsertOnePersonMutationVariables>(InsertOnePersonDocument, options);
|
||||
}
|
||||
export type InsertPersonMutationHookResult = ReturnType<typeof useInsertPersonMutation>;
|
||||
export type InsertPersonMutationResult = Apollo.MutationResult<InsertPersonMutation>;
|
||||
export type InsertPersonMutationOptions = Apollo.BaseMutationOptions<InsertPersonMutation, InsertPersonMutationVariables>;
|
||||
export const DeletePeopleDocument = gql`
|
||||
mutation DeletePeople($ids: [String!]) {
|
||||
export type InsertOnePersonMutationHookResult = ReturnType<typeof useInsertOnePersonMutation>;
|
||||
export type InsertOnePersonMutationResult = Apollo.MutationResult<InsertOnePersonMutation>;
|
||||
export type InsertOnePersonMutationOptions = Apollo.BaseMutationOptions<InsertOnePersonMutation, InsertOnePersonMutationVariables>;
|
||||
export const DeleteManyPersonDocument = gql`
|
||||
mutation DeleteManyPerson($ids: [String!]) {
|
||||
deleteManyPerson(where: {id: {in: $ids}}) {
|
||||
count
|
||||
}
|
||||
}
|
||||
`;
|
||||
export type DeletePeopleMutationFn = Apollo.MutationFunction<DeletePeopleMutation, DeletePeopleMutationVariables>;
|
||||
export type DeleteManyPersonMutationFn = Apollo.MutationFunction<DeleteManyPersonMutation, DeleteManyPersonMutationVariables>;
|
||||
|
||||
/**
|
||||
* __useDeletePeopleMutation__
|
||||
* __useDeleteManyPersonMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useDeletePeopleMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useDeletePeopleMutation` returns a tuple that includes:
|
||||
* To run a mutation, you first call `useDeleteManyPersonMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useDeleteManyPersonMutation` returns a tuple that includes:
|
||||
* - A mutate function that you can call at any time to execute the mutation
|
||||
* - An object with fields that represent the current status of the mutation's execution
|
||||
*
|
||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||
*
|
||||
* @example
|
||||
* const [deletePeopleMutation, { data, loading, error }] = useDeletePeopleMutation({
|
||||
* const [deleteManyPersonMutation, { data, loading, error }] = useDeleteManyPersonMutation({
|
||||
* variables: {
|
||||
* ids: // value for 'ids'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useDeletePeopleMutation(baseOptions?: Apollo.MutationHookOptions<DeletePeopleMutation, DeletePeopleMutationVariables>) {
|
||||
export function useDeleteManyPersonMutation(baseOptions?: Apollo.MutationHookOptions<DeleteManyPersonMutation, DeleteManyPersonMutationVariables>) {
|
||||
const options = {...defaultOptions, ...baseOptions}
|
||||
return Apollo.useMutation<DeletePeopleMutation, DeletePeopleMutationVariables>(DeletePeopleDocument, options);
|
||||
return Apollo.useMutation<DeleteManyPersonMutation, DeleteManyPersonMutationVariables>(DeleteManyPersonDocument, options);
|
||||
}
|
||||
export type DeletePeopleMutationHookResult = ReturnType<typeof useDeletePeopleMutation>;
|
||||
export type DeletePeopleMutationResult = Apollo.MutationResult<DeletePeopleMutation>;
|
||||
export type DeletePeopleMutationOptions = Apollo.BaseMutationOptions<DeletePeopleMutation, DeletePeopleMutationVariables>;
|
||||
export type DeleteManyPersonMutationHookResult = ReturnType<typeof useDeleteManyPersonMutation>;
|
||||
export type DeleteManyPersonMutationResult = Apollo.MutationResult<DeleteManyPersonMutation>;
|
||||
export type DeleteManyPersonMutationOptions = Apollo.BaseMutationOptions<DeleteManyPersonMutation, DeleteManyPersonMutationVariables>;
|
||||
export const GetPipelinesDocument = gql`
|
||||
query GetPipelines($where: PipelineWhereInput) {
|
||||
findManyPipeline(where: $where) {
|
||||
@ -3864,6 +3776,7 @@ export const GetPipelineProgressDocument = gql`
|
||||
id
|
||||
firstName
|
||||
lastName
|
||||
displayName
|
||||
}
|
||||
probability
|
||||
}
|
||||
@ -3902,7 +3815,7 @@ export const UpdateOnePipelineProgressDocument = gql`
|
||||
mutation UpdateOnePipelineProgress($id: String, $amount: Int, $closeDate: DateTime, $probability: Int, $pointOfContactId: String) {
|
||||
updateOnePipelineProgress(
|
||||
where: {id: $id}
|
||||
data: {amount: {set: $amount}, closeDate: {set: $closeDate}, probability: {set: $probability}, pointOfContact: {connect: {id: $pointOfContactId}}}
|
||||
data: {amount: $amount, closeDate: $closeDate, probability: $probability, pointOfContact: {connect: {id: $pointOfContactId}}}
|
||||
) {
|
||||
id
|
||||
amount
|
||||
@ -4051,7 +3964,7 @@ export type DeleteManyPipelineProgressMutationResult = Apollo.MutationResult<Del
|
||||
export type DeleteManyPipelineProgressMutationOptions = Apollo.BaseMutationOptions<DeleteManyPipelineProgressMutation, DeleteManyPipelineProgressMutationVariables>;
|
||||
export const UpdatePipelineStageDocument = gql`
|
||||
mutation UpdatePipelineStage($id: String, $name: String) {
|
||||
updateOnePipelineStage(where: {id: $id}, data: {name: {set: $name}}) {
|
||||
updateOnePipelineStage(where: {id: $id}, data: {name: $name}) {
|
||||
id
|
||||
name
|
||||
}
|
||||
@ -4421,7 +4334,7 @@ export type UploadProfilePictureMutationResult = Apollo.MutationResult<UploadPro
|
||||
export type UploadProfilePictureMutationOptions = Apollo.BaseMutationOptions<UploadProfilePictureMutation, UploadProfilePictureMutationVariables>;
|
||||
export const RemoveProfilePictureDocument = gql`
|
||||
mutation RemoveProfilePicture($where: UserWhereUniqueInput!) {
|
||||
updateUser(data: {avatarUrl: {set: null}}, where: $where) {
|
||||
updateUser(data: {avatarUrl: null}, where: $where) {
|
||||
id
|
||||
avatarUrl
|
||||
}
|
||||
@ -4463,6 +4376,7 @@ export const GetWorkspaceMembersDocument = gql`
|
||||
avatarUrl
|
||||
firstName
|
||||
lastName
|
||||
displayName
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4563,7 +4477,7 @@ export type UploadWorkspaceLogoMutationResult = Apollo.MutationResult<UploadWork
|
||||
export type UploadWorkspaceLogoMutationOptions = Apollo.BaseMutationOptions<UploadWorkspaceLogoMutation, UploadWorkspaceLogoMutationVariables>;
|
||||
export const RemoveWorkspaceLogoDocument = gql`
|
||||
mutation RemoveWorkspaceLogo {
|
||||
updateWorkspace(data: {logo: {set: null}}) {
|
||||
updateWorkspace(data: {logo: null}) {
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user