import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; DateTime: string; JSON: any; Upload: any; }; export enum ActivityType { Note = 'Note', Task = 'Task' } export type AffectedRows = { __typename?: 'AffectedRows'; count: Scalars['Int']; }; export type Analytics = { __typename?: 'Analytics'; /** Boolean that confirms query was dispatched */ success: Scalars['Boolean']; }; export type Attachment = { __typename?: 'Attachment'; activity: CommentThread; activityId: Scalars['String']; author: User; authorId: Scalars['String']; createdAt: Scalars['DateTime']; fullPath: Scalars['String']; id: Scalars['ID']; name: Scalars['String']; type: AttachmentType; updatedAt: Scalars['DateTime']; workspace: Workspace; }; export type AttachmentCreateNestedManyWithoutActivityInput = { connect?: InputMaybe>; }; export type AttachmentListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type AttachmentOrderByRelationAggregateInput = { _count?: InputMaybe; }; export enum AttachmentType { Archive = 'Archive', Audio = 'Audio', Image = 'Image', Other = 'Other', Spreadsheet = 'Spreadsheet', TextDocument = 'TextDocument', Video = 'Video' } export type AttachmentUpdateManyWithoutActivityNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type AttachmentUpdateManyWithoutAuthorNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type AttachmentUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type AttachmentWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; activity?: InputMaybe; activityId?: InputMaybe; author?: InputMaybe; authorId?: InputMaybe; createdAt?: InputMaybe; fullPath?: InputMaybe; id?: InputMaybe; name?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; }; export type AttachmentWhereUniqueInput = { id?: InputMaybe; }; export type AuthProviders = { __typename?: 'AuthProviders'; google: Scalars['Boolean']; magicLink: Scalars['Boolean']; password: Scalars['Boolean']; }; export type AuthToken = { __typename?: 'AuthToken'; expiresAt: Scalars['DateTime']; token: Scalars['String']; }; export type AuthTokenPair = { __typename?: 'AuthTokenPair'; accessToken: AuthToken; refreshToken: AuthToken; }; export type AuthTokens = { __typename?: 'AuthTokens'; tokens: AuthTokenPair; }; export type BoolFilter = { equals?: InputMaybe; not?: InputMaybe; }; export type ClientConfig = { __typename?: 'ClientConfig'; authProviders: AuthProviders; debugMode: Scalars['Boolean']; demoMode: Scalars['Boolean']; telemetry: Telemetry; }; export enum ColorScheme { Dark = 'Dark', Light = 'Light', System = 'System' } export type Comment = { __typename?: 'Comment'; author: User; authorId: Scalars['String']; body: Scalars['String']; commentThread: CommentThread; commentThreadId: Scalars['String']; createdAt: Scalars['DateTime']; id: Scalars['ID']; updatedAt: Scalars['DateTime']; }; export type CommentCreateInput = { author: UserCreateNestedOneWithoutCommentsInput; body: Scalars['String']; commentThread: CommentThreadCreateNestedOneWithoutCommentsInput; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentCreateNestedManyWithoutCommentThreadInput = { connect?: InputMaybe>; }; export type CommentListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type CommentOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type CommentThread = { __typename?: 'CommentThread'; assignee?: Maybe; assigneeId?: Maybe; attachments?: Maybe>; author: User; authorId: Scalars['String']; body?: Maybe; commentThreadTargets?: Maybe>; comments?: Maybe>; completedAt?: Maybe; createdAt: Scalars['DateTime']; dueAt?: Maybe; id: Scalars['ID']; reminderAt?: Maybe; title?: Maybe; type: ActivityType; updatedAt: Scalars['DateTime']; }; export type CommentThreadCreateInput = { assignee?: InputMaybe; attachments?: InputMaybe; author: UserCreateNestedOneWithoutAuthoredCommentThreadsInput; body?: InputMaybe; commentThreadTargets?: InputMaybe; comments?: InputMaybe; completedAt?: InputMaybe; createdAt?: InputMaybe; dueAt?: InputMaybe; id?: InputMaybe; reminderAt?: InputMaybe; title?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput = { connect?: InputMaybe; }; export type CommentThreadCreateNestedOneWithoutCommentsInput = { connect?: InputMaybe; }; export type CommentThreadListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type CommentThreadOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type CommentThreadOrderByWithRelationInput = { assignee?: InputMaybe; assigneeId?: InputMaybe; attachments?: InputMaybe; author?: InputMaybe; authorId?: InputMaybe; body?: InputMaybe; commentThreadTargets?: InputMaybe; comments?: InputMaybe; completedAt?: InputMaybe; createdAt?: InputMaybe; dueAt?: InputMaybe; id?: InputMaybe; reminderAt?: InputMaybe; title?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum CommentThreadScalarFieldEnum { AssigneeId = 'assigneeId', AuthorId = 'authorId', Body = 'body', CompletedAt = 'completedAt', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', DueAt = 'dueAt', Id = 'id', ReminderAt = 'reminderAt', Title = 'title', Type = 'type', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type CommentThreadTarget = { __typename?: 'CommentThreadTarget'; commentThread: CommentThread; commentThreadId: Scalars['String']; commentableId: Scalars['String']; commentableType: CommentableType; createdAt: Scalars['DateTime']; id: Scalars['ID']; updatedAt: Scalars['DateTime']; workspace?: Maybe; }; export type CommentThreadTargetCreateManyCommentThreadInput = { commentableId: Scalars['String']; commentableType: CommentableType; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetCreateManyCommentThreadInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type CommentThreadTargetCreateManyWorkspaceInput = { commentThreadId: Scalars['String']; commentableId: Scalars['String']; commentableType: CommentableType; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetCreateManyWorkspaceInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type CommentThreadTargetCreateNestedManyWithoutCommentThreadInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; }; export type CommentThreadTargetCreateOrConnectWithoutCommentThreadInput = { create: CommentThreadTargetCreateWithoutCommentThreadInput; where: CommentThreadTargetWhereUniqueInput; }; export type CommentThreadTargetCreateOrConnectWithoutWorkspaceInput = { create: CommentThreadTargetCreateWithoutWorkspaceInput; where: CommentThreadTargetWhereUniqueInput; }; export type CommentThreadTargetCreateWithoutCommentThreadInput = { commentableId: Scalars['String']; commentableType: CommentableType; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetCreateWithoutWorkspaceInput = { commentThread: CommentThreadCreateNestedOneWithoutCommentThreadTargetsInput; commentableId: Scalars['String']; commentableType: CommentableType; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type CommentThreadTargetOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type CommentThreadTargetScalarWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; commentThreadId?: InputMaybe; commentableId?: InputMaybe; commentableType?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; delete?: InputMaybe>; deleteMany?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentThreadTargetUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; delete?: InputMaybe>; deleteMany?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentThreadTargetWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; commentThread?: InputMaybe; commentThreadId?: InputMaybe; commentableId?: InputMaybe; commentableType?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetWhereUniqueInput = { id?: InputMaybe; }; export type CommentThreadUpdateInput = { assignee?: InputMaybe; attachments?: InputMaybe; author?: InputMaybe; body?: InputMaybe; commentThreadTargets?: InputMaybe; comments?: InputMaybe; completedAt?: InputMaybe; createdAt?: InputMaybe; dueAt?: InputMaybe; id?: InputMaybe; reminderAt?: InputMaybe; title?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadUpdateManyWithoutAssigneeNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentThreadUpdateManyWithoutAuthorNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentThreadUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentThreadWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; assignee?: InputMaybe; assigneeId?: InputMaybe; attachments?: InputMaybe; author?: InputMaybe; authorId?: InputMaybe; body?: InputMaybe; commentThreadTargets?: InputMaybe; comments?: InputMaybe; completedAt?: InputMaybe; createdAt?: InputMaybe; dueAt?: InputMaybe; id?: InputMaybe; reminderAt?: InputMaybe; title?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadWhereUniqueInput = { id?: InputMaybe; }; export type CommentUpdateManyWithoutAuthorNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentUpdateManyWithoutCommentThreadNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; author?: InputMaybe; authorId?: InputMaybe; body?: InputMaybe; commentThread?: InputMaybe; commentThreadId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentWhereUniqueInput = { id?: InputMaybe; }; export enum CommentableType { Company = 'Company', Person = 'Person' } export type Company = { __typename?: 'Company'; _commentThreadCount: Scalars['Int']; accountOwner?: Maybe; accountOwnerId?: Maybe; address: Scalars['String']; commentThreads: Array; comments: Array; createdAt: Scalars['DateTime']; domainName: Scalars['String']; employees?: Maybe; id: Scalars['ID']; linkedinUrl?: Maybe; name: Scalars['String']; people?: Maybe>; updatedAt: Scalars['DateTime']; }; export type CompanyCreateInput = { accountOwner?: InputMaybe; address: Scalars['String']; createdAt?: InputMaybe; domainName: Scalars['String']; employees?: InputMaybe; id?: InputMaybe; linkedinUrl?: InputMaybe; name: Scalars['String']; people?: InputMaybe; updatedAt?: InputMaybe; }; export type CompanyCreateNestedOneWithoutPeopleInput = { connect?: InputMaybe; }; export type CompanyListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type CompanyOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type CompanyOrderByWithRelationInput = { accountOwner?: InputMaybe; accountOwnerId?: InputMaybe; address?: InputMaybe; createdAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; linkedinUrl?: InputMaybe; name?: InputMaybe; people?: InputMaybe; updatedAt?: InputMaybe; }; export type CompanyRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum CompanyScalarFieldEnum { AccountOwnerId = 'accountOwnerId', Address = 'address', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', DomainName = 'domainName', Employees = 'employees', Id = 'id', LinkedinUrl = 'linkedinUrl', Name = 'name', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type CompanyUpdateInput = { accountOwner?: InputMaybe; address?: InputMaybe; createdAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; linkedinUrl?: InputMaybe; name?: InputMaybe; people?: InputMaybe; updatedAt?: InputMaybe; }; export type CompanyUpdateManyWithoutAccountOwnerNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CompanyUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CompanyUpdateOneWithoutPeopleNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type CompanyWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; accountOwner?: InputMaybe; accountOwnerId?: InputMaybe; address?: InputMaybe; createdAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; linkedinUrl?: InputMaybe; name?: InputMaybe; people?: InputMaybe; updatedAt?: InputMaybe; }; export type CompanyWhereUniqueInput = { id?: InputMaybe; }; export type DateTimeFilter = { equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; }; export type DateTimeNullableFilter = { equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; }; export type EnumActivityTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type EnumAttachmentTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type EnumColorSchemeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type EnumCommentableTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type EnumPipelineProgressableTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export enum FileFolder { Attachment = 'Attachment', ProfilePicture = 'ProfilePicture', WorkspaceLogo = 'WorkspaceLogo' } export type IntFilter = { equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; }; export type IntNullableFilter = { equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; }; export type JsonNullableFilter = { array_contains?: InputMaybe; array_ends_with?: InputMaybe; array_starts_with?: InputMaybe; equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; path?: InputMaybe>; string_contains?: InputMaybe; string_ends_with?: InputMaybe; string_starts_with?: InputMaybe; }; export type LoginToken = { __typename?: 'LoginToken'; loginToken: AuthToken; }; export type Mutation = { __typename?: 'Mutation'; challenge: LoginToken; createEvent: Analytics; createOneComment: Comment; createOneCommentThread: CommentThread; createOneCompany: Company; createOnePerson: Person; createOnePipelineProgress: PipelineProgress; deleteManyCommentThreads: AffectedRows; deleteManyCompany: AffectedRows; deleteManyPerson: AffectedRows; deleteManyPipelineProgress: AffectedRows; deleteWorkspaceMember: WorkspaceMember; renewToken: AuthTokens; signUp: LoginToken; updateOneCommentThread: CommentThread; updateOneCompany?: Maybe; updateOnePerson?: Maybe; updateOnePipelineProgress?: Maybe; updateOnePipelineStage?: Maybe; updateOneViewField: ViewField; updateUser: User; updateWorkspace: Workspace; uploadAttachment: Scalars['String']; uploadFile: Scalars['String']; uploadImage: Scalars['String']; uploadProfilePicture: Scalars['String']; uploadWorkspaceLogo: Scalars['String']; verify: Verify; }; export type MutationChallengeArgs = { email: Scalars['String']; password: Scalars['String']; }; export type MutationCreateEventArgs = { data: Scalars['JSON']; type: Scalars['String']; }; export type MutationCreateOneCommentArgs = { data: CommentCreateInput; }; export type MutationCreateOneCommentThreadArgs = { data: CommentThreadCreateInput; }; export type MutationCreateOneCompanyArgs = { data: CompanyCreateInput; }; export type MutationCreateOnePersonArgs = { data: PersonCreateInput; }; export type MutationCreateOnePipelineProgressArgs = { data: PipelineProgressCreateInput; }; export type MutationDeleteManyCommentThreadsArgs = { where?: InputMaybe; }; export type MutationDeleteManyCompanyArgs = { where?: InputMaybe; }; export type MutationDeleteManyPersonArgs = { where?: InputMaybe; }; export type MutationDeleteManyPipelineProgressArgs = { where?: InputMaybe; }; export type MutationDeleteWorkspaceMemberArgs = { where: WorkspaceMemberWhereUniqueInput; }; export type MutationRenewTokenArgs = { refreshToken: Scalars['String']; }; export type MutationSignUpArgs = { email: Scalars['String']; password: Scalars['String']; workspaceInviteHash?: InputMaybe; }; export type MutationUpdateOneCommentThreadArgs = { data: CommentThreadUpdateInput; where: CommentThreadWhereUniqueInput; }; export type MutationUpdateOneCompanyArgs = { data: CompanyUpdateInput; where: CompanyWhereUniqueInput; }; export type MutationUpdateOnePersonArgs = { data: PersonUpdateInput; where: PersonWhereUniqueInput; }; export type MutationUpdateOnePipelineProgressArgs = { data: PipelineProgressUpdateInput; where: PipelineProgressWhereUniqueInput; }; export type MutationUpdateOnePipelineStageArgs = { data: PipelineStageUpdateInput; where: PipelineStageWhereUniqueInput; }; export type MutationUpdateOneViewFieldArgs = { data: ViewFieldUpdateInput; where: ViewFieldWhereUniqueInput; }; export type MutationUpdateUserArgs = { data: UserUpdateInput; where: UserWhereUniqueInput; }; export type MutationUpdateWorkspaceArgs = { data: WorkspaceUpdateInput; }; export type MutationUploadAttachmentArgs = { activityId: Scalars['String']; file: Scalars['Upload']; }; export type MutationUploadFileArgs = { file: Scalars['Upload']; fileFolder?: InputMaybe; }; export type MutationUploadImageArgs = { file: Scalars['Upload']; fileFolder?: InputMaybe; }; export type MutationUploadProfilePictureArgs = { file: Scalars['Upload']; }; export type MutationUploadWorkspaceLogoArgs = { file: Scalars['Upload']; }; export type MutationVerifyArgs = { loginToken: Scalars['String']; }; export type NestedBoolFilter = { equals?: InputMaybe; not?: InputMaybe; }; export type NestedDateTimeFilter = { equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedDateTimeNullableFilter = { equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedEnumActivityTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedEnumAttachmentTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedEnumColorSchemeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedEnumCommentableTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedEnumPipelineProgressableTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedIntFilter = { equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedIntNullableFilter = { equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedStringFilter = { contains?: InputMaybe; endsWith?: InputMaybe; equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; startsWith?: InputMaybe; }; export type NestedStringNullableFilter = { contains?: InputMaybe; endsWith?: InputMaybe; equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; startsWith?: InputMaybe; }; export type Person = { __typename?: 'Person'; _commentThreadCount: Scalars['Int']; city?: Maybe; commentThreads: Array; comments: Array; company?: Maybe; companyId?: Maybe; createdAt: Scalars['DateTime']; displayName: Scalars['String']; email?: Maybe; firstName?: Maybe; id: Scalars['ID']; jobTitle?: Maybe; lastName?: Maybe; linkedinUrl?: Maybe; phone?: Maybe; pipelineProgresses?: Maybe>; updatedAt: Scalars['DateTime']; }; export type PersonCreateInput = { city?: InputMaybe; company?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; jobTitle?: InputMaybe; lastName?: InputMaybe; linkedinUrl?: InputMaybe; phone?: InputMaybe; pipelineProgresses?: InputMaybe; updatedAt?: InputMaybe; }; export type PersonCreateNestedManyWithoutCompanyInput = { connect?: InputMaybe>; }; export type PersonCreateNestedOneWithoutPipelineProgressesInput = { connect?: InputMaybe; }; export type PersonListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type PersonOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type PersonOrderByWithRelationInput = { city?: InputMaybe; company?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; jobTitle?: InputMaybe; lastName?: InputMaybe; linkedinUrl?: InputMaybe; phone?: InputMaybe; pipelineProgresses?: InputMaybe; updatedAt?: InputMaybe; }; export type PersonRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum PersonScalarFieldEnum { City = 'city', CompanyId = 'companyId', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Email = 'email', FirstName = 'firstName', Id = 'id', JobTitle = 'jobTitle', LastName = 'lastName', LinkedinUrl = 'linkedinUrl', Phone = 'phone', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type PersonUpdateInput = { city?: InputMaybe; company?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; jobTitle?: InputMaybe; lastName?: InputMaybe; linkedinUrl?: InputMaybe; phone?: InputMaybe; pipelineProgresses?: InputMaybe; updatedAt?: InputMaybe; }; export type PersonUpdateManyWithoutCompanyNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PersonUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PersonUpdateOneWithoutPipelineProgressesNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type PersonWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; city?: InputMaybe; company?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; jobTitle?: InputMaybe; lastName?: InputMaybe; linkedinUrl?: InputMaybe; phone?: InputMaybe; pipelineProgresses?: InputMaybe; updatedAt?: InputMaybe; }; export type PersonWhereUniqueInput = { id?: InputMaybe; }; export type Pipeline = { __typename?: 'Pipeline'; createdAt: Scalars['DateTime']; icon: Scalars['String']; id: Scalars['ID']; name: Scalars['String']; pipelineProgressableType: PipelineProgressableType; pipelineProgresses?: Maybe>; pipelineStages?: Maybe>; updatedAt: Scalars['DateTime']; }; export type PipelineCreateNestedOneWithoutPipelineProgressesInput = { connect?: InputMaybe; }; export type PipelineOrderByWithRelationInput = { createdAt?: InputMaybe; icon?: InputMaybe; id?: InputMaybe; name?: InputMaybe; pipelineProgressableType?: InputMaybe; pipelineProgresses?: InputMaybe; pipelineStages?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineProgress = { __typename?: 'PipelineProgress'; amount?: Maybe; closeDate?: Maybe; createdAt: Scalars['DateTime']; id: Scalars['ID']; pipeline: Pipeline; pipelineId: Scalars['String']; pipelineStage: PipelineStage; pipelineStageId: Scalars['String']; pointOfContact?: Maybe; pointOfContactId?: Maybe; probability?: Maybe; progressableId: Scalars['String']; progressableType: PipelineProgressableType; updatedAt: Scalars['DateTime']; }; export type PipelineProgressCreateInput = { amount?: InputMaybe; closeDate?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; pipeline: PipelineCreateNestedOneWithoutPipelineProgressesInput; pipelineStage: PipelineStageCreateNestedOneWithoutPipelineProgressesInput; pointOfContact?: InputMaybe; probability?: InputMaybe; progressableId: Scalars['String']; progressableType: PipelineProgressableType; updatedAt?: InputMaybe; }; export type PipelineProgressCreateNestedManyWithoutPointOfContactInput = { connect?: InputMaybe>; }; export type PipelineProgressListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type PipelineProgressOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type PipelineProgressOrderByWithRelationInput = { amount?: InputMaybe; closeDate?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; pipeline?: InputMaybe; pipelineId?: InputMaybe; pipelineStage?: InputMaybe; pipelineStageId?: InputMaybe; pointOfContact?: InputMaybe; pointOfContactId?: InputMaybe; probability?: InputMaybe; progressableId?: InputMaybe; progressableType?: InputMaybe; updatedAt?: InputMaybe; }; export enum PipelineProgressScalarFieldEnum { Amount = 'amount', CloseDate = 'closeDate', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Id = 'id', PipelineId = 'pipelineId', PipelineStageId = 'pipelineStageId', PointOfContactId = 'pointOfContactId', Probability = 'probability', ProgressableId = 'progressableId', ProgressableType = 'progressableType', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type PipelineProgressUpdateInput = { amount?: InputMaybe; closeDate?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; pipeline?: InputMaybe; pipelineStage?: InputMaybe; pointOfContact?: InputMaybe; probability?: InputMaybe; progressableId?: InputMaybe; progressableType?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineProgressUpdateManyWithoutPipelineStageNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PipelineProgressUpdateManyWithoutPointOfContactNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PipelineProgressUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PipelineProgressWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; amount?: InputMaybe; closeDate?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; pipeline?: InputMaybe; pipelineId?: InputMaybe; pipelineStage?: InputMaybe; pipelineStageId?: InputMaybe; pointOfContact?: InputMaybe; pointOfContactId?: InputMaybe; probability?: InputMaybe; progressableId?: InputMaybe; progressableType?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineProgressWhereUniqueInput = { id?: InputMaybe; }; export enum PipelineProgressableType { Company = 'Company', Person = 'Person' } export type PipelineRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum PipelineScalarFieldEnum { CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Icon = 'icon', Id = 'id', Name = 'name', PipelineProgressableType = 'pipelineProgressableType', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type PipelineStage = { __typename?: 'PipelineStage'; color: Scalars['String']; createdAt: Scalars['DateTime']; id: Scalars['ID']; index?: Maybe; name: Scalars['String']; pipeline: Pipeline; pipelineId: Scalars['String']; pipelineProgresses?: Maybe>; type: Scalars['String']; updatedAt: Scalars['DateTime']; }; export type PipelineStageCreateNestedOneWithoutPipelineProgressesInput = { connect?: InputMaybe; }; export type PipelineStageListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type PipelineStageOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type PipelineStageOrderByWithRelationInput = { color?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; index?: InputMaybe; name?: InputMaybe; pipeline?: InputMaybe; pipelineId?: InputMaybe; pipelineProgresses?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineStageRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum PipelineStageScalarFieldEnum { Color = 'color', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Id = 'id', Index = 'index', Name = 'name', PipelineId = 'pipelineId', Type = 'type', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type PipelineStageUpdateInput = { color?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; index?: InputMaybe; name?: InputMaybe; pipeline?: InputMaybe; pipelineProgresses?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineStageUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PipelineStageUpdateOneRequiredWithoutPipelineProgressesNestedInput = { connect?: InputMaybe; }; export type PipelineStageWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; color?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; index?: InputMaybe; name?: InputMaybe; pipeline?: InputMaybe; pipelineId?: InputMaybe; pipelineProgresses?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineStageWhereUniqueInput = { id?: InputMaybe; }; export type PipelineUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PipelineUpdateOneRequiredWithoutPipelineProgressesNestedInput = { connect?: InputMaybe; }; export type PipelineUpdateOneRequiredWithoutPipelineStagesNestedInput = { connect?: InputMaybe; }; export type PipelineWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; createdAt?: InputMaybe; icon?: InputMaybe; id?: InputMaybe; name?: InputMaybe; pipelineProgressableType?: InputMaybe; pipelineProgresses?: InputMaybe; pipelineStages?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineWhereUniqueInput = { id?: InputMaybe; }; export type Query = { __typename?: 'Query'; checkUserExists: UserExists; checkWorkspaceInviteHashIsValid: WorkspaceInviteHashValid; clientConfig: ClientConfig; currentUser: User; currentWorkspace: Workspace; findManyCommentThreads: Array; findManyCompany: Array; findManyPerson: Array; findManyPipeline: Array; findManyPipelineProgress: Array; findManyPipelineStage: Array; findManyUser: Array; findManyViewField: Array; findManyWorkspaceMember: Array; findUniqueCompany: Company; findUniquePerson: Person; }; export type QueryCheckUserExistsArgs = { email: Scalars['String']; }; export type QueryCheckWorkspaceInviteHashIsValidArgs = { inviteHash: Scalars['String']; }; export type QueryFindManyCommentThreadsArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyCompanyArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyPersonArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyPipelineArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyPipelineProgressArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyPipelineStageArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyUserArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyViewFieldArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyWorkspaceMemberArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindUniqueCompanyArgs = { where: CompanyWhereUniqueInput; }; export type QueryFindUniquePersonArgs = { id: Scalars['String']; }; export enum QueryMode { Default = 'default', Insensitive = 'insensitive' } export enum SortOrder { Asc = 'asc', Desc = 'desc' } export type StringFilter = { contains?: InputMaybe; endsWith?: InputMaybe; equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; mode?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; startsWith?: InputMaybe; }; export type StringNullableFilter = { contains?: InputMaybe; endsWith?: InputMaybe; equals?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; in?: InputMaybe>; lt?: InputMaybe; lte?: InputMaybe; mode?: InputMaybe; not?: InputMaybe; notIn?: InputMaybe>; startsWith?: InputMaybe; }; export type Telemetry = { __typename?: 'Telemetry'; anonymizationEnabled: Scalars['Boolean']; enabled: Scalars['Boolean']; }; export type User = { __typename?: 'User'; assignedCommentThreads?: Maybe>; authoredAttachments?: Maybe>; authoredCommentThreads?: Maybe>; avatarUrl?: Maybe; comments?: Maybe>; companies?: Maybe>; createdAt: Scalars['DateTime']; disabled: Scalars['Boolean']; displayName: Scalars['String']; email: Scalars['String']; emailVerified: Scalars['Boolean']; firstName?: Maybe; id: Scalars['ID']; lastName?: Maybe; lastSeen?: Maybe; locale: Scalars['String']; metadata?: Maybe; phoneNumber?: Maybe; settings: UserSettings; settingsId: Scalars['String']; updatedAt: Scalars['DateTime']; workspaceMember?: Maybe; }; export type UserCreateNestedOneWithoutAssignedCommentThreadsInput = { connect?: InputMaybe; }; export type UserCreateNestedOneWithoutAuthoredCommentThreadsInput = { connect?: InputMaybe; }; export type UserCreateNestedOneWithoutCommentsInput = { connect?: InputMaybe; }; export type UserCreateNestedOneWithoutCompaniesInput = { connect?: InputMaybe; }; export type UserExists = { __typename?: 'UserExists'; exists: Scalars['Boolean']; }; export type UserOrderByWithRelationInput = { assignedCommentThreads?: InputMaybe; authoredAttachments?: InputMaybe; authoredCommentThreads?: InputMaybe; avatarUrl?: InputMaybe; comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; disabled?: InputMaybe; email?: InputMaybe; emailVerified?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; lastName?: InputMaybe; lastSeen?: InputMaybe; locale?: InputMaybe; metadata?: InputMaybe; phoneNumber?: InputMaybe; settings?: InputMaybe; settingsId?: InputMaybe; updatedAt?: InputMaybe; }; export type UserRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum UserScalarFieldEnum { AvatarUrl = 'avatarUrl', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Disabled = 'disabled', Email = 'email', EmailVerified = 'emailVerified', FirstName = 'firstName', Id = 'id', LastName = 'lastName', LastSeen = 'lastSeen', Locale = 'locale', Metadata = 'metadata', PasswordHash = 'passwordHash', PhoneNumber = 'phoneNumber', SettingsId = 'settingsId', UpdatedAt = 'updatedAt' } export type UserSettings = { __typename?: 'UserSettings'; colorScheme: ColorScheme; createdAt: Scalars['DateTime']; id: Scalars['ID']; locale: Scalars['String']; updatedAt: Scalars['DateTime']; user?: Maybe; }; export type UserSettingsOrderByWithRelationInput = { colorScheme?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; locale?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; }; export type UserSettingsRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export type UserSettingsUpdateOneRequiredWithoutUserNestedInput = { update?: InputMaybe; }; export type UserSettingsUpdateWithoutUserInput = { colorScheme?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; locale?: InputMaybe; updatedAt?: InputMaybe; }; export type UserSettingsWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; colorScheme?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; locale?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; }; export type UserUpdateInput = { assignedCommentThreads?: InputMaybe; authoredAttachments?: InputMaybe; authoredCommentThreads?: InputMaybe; avatarUrl?: InputMaybe; comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; disabled?: InputMaybe; email?: InputMaybe; emailVerified?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; lastName?: InputMaybe; lastSeen?: InputMaybe; locale?: InputMaybe; metadata?: InputMaybe; phoneNumber?: InputMaybe; settings?: InputMaybe; updatedAt?: InputMaybe; }; export type UserUpdateOneRequiredWithoutAuthoredCommentThreadsNestedInput = { connect?: InputMaybe; }; export type UserUpdateOneWithoutAssignedCommentThreadsNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type UserUpdateOneWithoutCompaniesNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type UserWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; assignedCommentThreads?: InputMaybe; authoredAttachments?: InputMaybe; authoredCommentThreads?: InputMaybe; avatarUrl?: InputMaybe; comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; disabled?: InputMaybe; email?: InputMaybe; emailVerified?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; lastName?: InputMaybe; lastSeen?: InputMaybe; locale?: InputMaybe; metadata?: InputMaybe; phoneNumber?: InputMaybe; settings?: InputMaybe; settingsId?: InputMaybe; updatedAt?: InputMaybe; }; export type UserWhereUniqueInput = { email?: InputMaybe; id?: InputMaybe; settingsId?: InputMaybe; }; export type Verify = { __typename?: 'Verify'; tokens: AuthTokenPair; user: User; }; export type ViewField = { __typename?: 'ViewField'; fieldName: Scalars['String']; id: Scalars['ID']; index: Scalars['Int']; isVisible: Scalars['Boolean']; objectName: Scalars['String']; sizeInPx: Scalars['Int']; }; export type ViewFieldOrderByWithRelationInput = { fieldName?: InputMaybe; id?: InputMaybe; index?: InputMaybe; isVisible?: InputMaybe; objectName?: InputMaybe; sizeInPx?: InputMaybe; }; export enum ViewFieldScalarFieldEnum { FieldName = 'fieldName', Id = 'id', Index = 'index', IsVisible = 'isVisible', ObjectName = 'objectName', SizeInPx = 'sizeInPx', WorkspaceId = 'workspaceId' } export type ViewFieldUpdateInput = { fieldName?: InputMaybe; id?: InputMaybe; index?: InputMaybe; isVisible?: InputMaybe; objectName?: InputMaybe; sizeInPx?: InputMaybe; }; export type ViewFieldUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ViewFieldWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; fieldName?: InputMaybe; id?: InputMaybe; index?: InputMaybe; isVisible?: InputMaybe; objectName?: InputMaybe; sizeInPx?: InputMaybe; }; export type ViewFieldWhereUniqueInput = { id?: InputMaybe; }; export type Workspace = { __typename?: 'Workspace'; Attachment?: Maybe>; CommentThreadTarget?: Maybe>; commentThreads?: Maybe>; comments?: Maybe>; companies?: Maybe>; createdAt: Scalars['DateTime']; displayName?: Maybe; domainName?: Maybe; id: Scalars['ID']; inviteHash?: Maybe; logo?: Maybe; people?: Maybe>; pipelineProgresses?: Maybe>; pipelineStages?: Maybe>; pipelines?: Maybe>; updatedAt: Scalars['DateTime']; viewFields?: Maybe>; workspaceMember?: Maybe>; }; export type WorkspaceInviteHashValid = { __typename?: 'WorkspaceInviteHashValid'; isValid: Scalars['Boolean']; }; export type WorkspaceMember = { __typename?: 'WorkspaceMember'; createdAt: Scalars['DateTime']; id: Scalars['ID']; updatedAt: Scalars['DateTime']; user: User; userId: Scalars['String']; workspace: Workspace; }; export type WorkspaceMemberOrderByWithRelationInput = { createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; userId?: InputMaybe; }; export enum WorkspaceMemberScalarFieldEnum { CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Id = 'id', UpdatedAt = 'updatedAt', UserId = 'userId', WorkspaceId = 'workspaceId' } export type WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type WorkspaceMemberWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; userId?: InputMaybe; }; export type WorkspaceMemberWhereUniqueInput = { id?: InputMaybe; userId?: InputMaybe; }; export type WorkspaceUpdateInput = { Attachment?: InputMaybe; CommentThreadTarget?: InputMaybe; commentThreads?: InputMaybe; comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; displayName?: InputMaybe; domainName?: InputMaybe; id?: InputMaybe; inviteHash?: InputMaybe; logo?: InputMaybe; people?: InputMaybe; pipelineProgresses?: InputMaybe; pipelineStages?: InputMaybe; pipelines?: InputMaybe; updatedAt?: InputMaybe; viewFields?: InputMaybe; workspaceMember?: InputMaybe; }; export type CreateCommentMutationVariables = Exact<{ commentId: Scalars['String']; commentText: Scalars['String']; authorId: Scalars['String']; commentThreadId: Scalars['String']; createdAt: Scalars['DateTime']; }>; export type CreateCommentMutation = { __typename?: 'Mutation', createOneComment: { __typename?: 'Comment', id: string, createdAt: string, body: string, commentThreadId: string, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } } }; export type CreateCommentThreadMutationVariables = Exact<{ commentThreadId: Scalars['String']; body?: InputMaybe; title?: InputMaybe; type: ActivityType; authorId: Scalars['String']; createdAt: Scalars['DateTime']; commentThreadTargetArray: Array | CommentThreadTargetCreateManyCommentThreadInput; }>; export type CreateCommentThreadMutation = { __typename?: 'Mutation', createOneCommentThread: { __typename?: 'CommentThread', id: string, createdAt: string, updatedAt: string, authorId: string, type: ActivityType, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, createdAt: string, updatedAt: string, commentThreadId: string, commentableType: CommentableType, commentableId: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, createdAt: string, updatedAt: string, body: string, author: { __typename?: 'User', id: string } }> | null } }; export type GetCommentThreadsByTargetsQueryVariables = Exact<{ commentThreadTargetIds: Array | Scalars['String']; orderBy?: InputMaybe | CommentThreadOrderByWithRelationInput>; }>; export type GetCommentThreadsByTargetsQuery = { __typename?: 'Query', findManyCommentThreads: Array<{ __typename?: 'CommentThread', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, completedAt?: string | null, 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, completedAt?: string | null, 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 AddCommentThreadTargetsOnCommentThreadMutationVariables = Exact<{ commentThreadId: Scalars['String']; commentThreadTargetInputs: Array | CommentThreadTargetCreateManyCommentThreadInput; }>; export type AddCommentThreadTargetsOnCommentThreadMutation = { __typename?: 'Mutation', updateOneCommentThread: { __typename?: 'CommentThread', id: string, createdAt: string, updatedAt: string, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, createdAt: string, updatedAt: string, commentableType: CommentableType, commentableId: string }> | null } }; export type RemoveCommentThreadTargetsOnCommentThreadMutationVariables = Exact<{ commentThreadId: Scalars['String']; commentThreadTargetIds: Array | Scalars['String']; }>; export type RemoveCommentThreadTargetsOnCommentThreadMutation = { __typename?: 'Mutation', updateOneCommentThread: { __typename?: 'CommentThread', id: string, createdAt: string, updatedAt: string, commentThreadTargets?: Array<{ __typename?: 'CommentThreadTarget', id: string, createdAt: string, updatedAt: string, commentableType: CommentableType, commentableId: string }> | null } }; export type DeleteCommentThreadMutationVariables = Exact<{ commentThreadId: Scalars['String']; }>; export type DeleteCommentThreadMutation = { __typename?: 'Mutation', deleteManyCommentThreads: { __typename?: 'AffectedRows', count: number } }; export type UpdateCommentThreadMutationVariables = Exact<{ id: Scalars['String']; body?: InputMaybe; title?: InputMaybe; type?: InputMaybe; completedAt?: InputMaybe; }>; export type UpdateCommentThreadMutation = { __typename?: 'Mutation', updateOneCommentThread: { __typename?: 'CommentThread', id: string, body?: string | null, title?: string | null, type: ActivityType, completedAt?: string | null } }; export type UploadAttachmentMutationVariables = Exact<{ file: Scalars['Upload']; activityId: Scalars['String']; }>; export type UploadAttachmentMutation = { __typename?: 'Mutation', uploadAttachment: string }; export type CreateEventMutationVariables = Exact<{ type: Scalars['String']; data: Scalars['JSON']; }>; export type CreateEventMutation = { __typename?: 'Mutation', createEvent: { __typename?: 'Analytics', success: boolean } }; export type CheckUserExistsQueryVariables = Exact<{ email: Scalars['String']; }>; export type CheckUserExistsQuery = { __typename?: 'Query', checkUserExists: { __typename?: 'UserExists', exists: boolean } }; export type ChallengeMutationVariables = Exact<{ email: Scalars['String']; password: Scalars['String']; }>; export type ChallengeMutation = { __typename?: 'Mutation', challenge: { __typename?: 'LoginToken', loginToken: { __typename?: 'AuthToken', expiresAt: string, token: string } } }; export type SignUpMutationVariables = Exact<{ email: Scalars['String']; password: Scalars['String']; workspaceInviteHash?: InputMaybe; }>; export type SignUpMutation = { __typename?: 'Mutation', signUp: { __typename?: 'LoginToken', loginToken: { __typename?: 'AuthToken', expiresAt: string, token: string } } }; export type VerifyMutationVariables = Exact<{ loginToken: Scalars['String']; }>; export type VerifyMutation = { __typename?: 'Mutation', verify: { __typename?: 'Verify', user: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, inviteHash?: string | null } } | null, settings: { __typename?: 'UserSettings', id: string, colorScheme: ColorScheme, locale: string } }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; export type RenewTokenMutationVariables = Exact<{ refreshToken: Scalars['String']; }>; export type RenewTokenMutation = { __typename?: 'Mutation', renewToken: { __typename?: 'AuthTokens', tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', expiresAt: string, token: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; export type GetClientConfigQueryVariables = Exact<{ [key: string]: never; }>; export type GetClientConfigQuery = { __typename?: 'Query', clientConfig: { __typename?: 'ClientConfig', demoMode: boolean, debugMode: boolean, authProviders: { __typename?: 'AuthProviders', google: boolean, password: boolean }, telemetry: { __typename?: 'Telemetry', enabled: boolean, anonymizationEnabled: boolean } } }; export type GetCompaniesQueryVariables = Exact<{ orderBy?: InputMaybe | CompanyOrderByWithRelationInput>; where?: InputMaybe; }>; export type GetCompaniesQuery = { __typename?: 'Query', companies: Array<{ __typename?: 'Company', id: string, domainName: string, name: string, createdAt: string, address: string, linkedinUrl?: string | null, employees?: number | null, _commentThreadCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } | null }> }; export type GetCompanyQueryVariables = Exact<{ where: CompanyWhereUniqueInput; }>; export type GetCompanyQuery = { __typename?: 'Query', findUniqueCompany: { __typename?: 'Company', id: string, domainName: string, name: string, createdAt: string, address: string, linkedinUrl?: string | null, employees?: number | null, _commentThreadCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, avatarUrl?: string | null } | null } }; export type UpdateOneCompanyMutationVariables = Exact<{ where: CompanyWhereUniqueInput; data: CompanyUpdateInput; }>; export type UpdateOneCompanyMutation = { __typename?: 'Mutation', updateOneCompany?: { __typename?: 'Company', address: string, createdAt: string, domainName: string, employees?: number | null, linkedinUrl?: string | null, id: string, name: string, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null } | null } | null }; export type InsertOneCompanyMutationVariables = Exact<{ data: CompanyCreateInput; }>; export type InsertOneCompanyMutation = { __typename?: 'Mutation', createOneCompany: { __typename?: 'Company', address: string, createdAt: string, domainName: string, linkedinUrl?: string | null, employees?: number | null, id: string, name: string } }; export type DeleteManyCompaniesMutationVariables = Exact<{ ids?: InputMaybe | Scalars['String']>; }>; export type DeleteManyCompaniesMutation = { __typename?: 'Mutation', deleteManyCompany: { __typename?: 'AffectedRows', count: number } }; export type GetPeopleQueryVariables = Exact<{ orderBy?: InputMaybe | PersonOrderByWithRelationInput>; where?: InputMaybe; limit?: InputMaybe; }>; 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, jobTitle?: string | null, linkedinUrl?: string | null, 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 | null } }; export type GetPersonEmailByIdQueryVariables = Exact<{ id: Scalars['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 | null, lastName?: string | null, displayName: string, _commentThreadCount: number } }; export type GetPersonCompanyByIdQueryVariables = Exact<{ id: Scalars['String']; }>; export type GetPersonCompanyByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null } }; export type GetPersonCommentCountByIdQueryVariables = Exact<{ id: Scalars['String']; }>; export type GetPersonCommentCountByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, _commentThreadCount: number } }; export type GetPersonCreatedAtByIdQueryVariables = Exact<{ id: Scalars['String']; }>; export type GetPersonCreatedAtByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, createdAt: string } }; export type GetPersonCityByIdQueryVariables = Exact<{ id: Scalars['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 | null, lastName?: string | null, displayName: string, email?: string | null, createdAt: string, city?: string | null, jobTitle?: string | null, linkedinUrl?: string | null, phone?: string | null, _commentThreadCount: number, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null } }; export type UpdateOnePersonMutationVariables = Exact<{ where: PersonWhereUniqueInput; data: PersonUpdateInput; }>; export type UpdateOnePersonMutation = { __typename?: 'Mutation', updateOnePerson?: { __typename?: 'Person', id: string, city?: string | null, email?: string | null, jobTitle?: string | null, linkedinUrl?: 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 InsertOnePersonMutationVariables = Exact<{ data: PersonCreateInput; }>; export type InsertOnePersonMutation = { __typename?: 'Mutation', createOnePerson: { __typename?: 'Person', id: string, city?: string | null, email?: string | null, firstName?: string | null, lastName?: string | null, jobTitle?: string | null, linkedinUrl?: string | null, displayName: string, phone?: string | null, createdAt: string, company?: { __typename?: 'Company', domainName: string, name: string, id: string } | null } }; export type DeleteManyPersonMutationVariables = Exact<{ ids?: InputMaybe | Scalars['String']>; }>; export type DeleteManyPersonMutation = { __typename?: 'Mutation', deleteManyPerson: { __typename?: 'AffectedRows', count: number } }; export type GetPipelinesQueryVariables = Exact<{ where?: InputMaybe; }>; export type GetPipelinesQuery = { __typename?: 'Query', findManyPipeline: Array<{ __typename?: 'Pipeline', id: string, name: string, pipelineProgressableType: PipelineProgressableType, pipelineStages?: Array<{ __typename?: 'PipelineStage', id: string, name: string, color: string, index?: number | null }> | null }> }; export type GetPipelineProgressQueryVariables = Exact<{ where?: InputMaybe; orderBy?: InputMaybe | PipelineProgressOrderByWithRelationInput>; }>; 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; amount?: InputMaybe; closeDate?: InputMaybe; probability?: InputMaybe; pointOfContactId?: InputMaybe; }>; export type UpdateOnePipelineProgressMutation = { __typename?: 'Mutation', updateOnePipelineProgress?: { __typename?: 'PipelineProgress', id: string, amount?: number | null, closeDate?: string | null } | null }; export type UpdateOnePipelineProgressStageMutationVariables = Exact<{ id?: InputMaybe; pipelineStageId?: InputMaybe; }>; export type UpdateOnePipelineProgressStageMutation = { __typename?: 'Mutation', updateOnePipelineProgress?: { __typename?: 'PipelineProgress', id: string } | null }; export type CreateOnePipelineProgressMutationVariables = Exact<{ uuid: Scalars['String']; entityType: PipelineProgressableType; entityId: Scalars['String']; pipelineId: Scalars['String']; pipelineStageId: Scalars['String']; }>; export type CreateOnePipelineProgressMutation = { __typename?: 'Mutation', createOnePipelineProgress: { __typename?: 'PipelineProgress', id: string } }; export type DeleteManyPipelineProgressMutationVariables = Exact<{ ids?: InputMaybe | Scalars['String']>; }>; export type DeleteManyPipelineProgressMutation = { __typename?: 'Mutation', deleteManyPipelineProgress: { __typename?: 'AffectedRows', count: number } }; export type UpdatePipelineStageMutationVariables = Exact<{ id?: InputMaybe; data: PipelineStageUpdateInput; }>; export type UpdatePipelineStageMutation = { __typename?: 'Mutation', updateOnePipelineStage?: { __typename?: 'PipelineStage', id: string, name: string, color: string } | null }; export type SearchPeopleQueryVariables = Exact<{ where?: InputMaybe; limit?: InputMaybe; orderBy?: InputMaybe | PersonOrderByWithRelationInput>; }>; 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; limit?: InputMaybe; orderBy?: InputMaybe | UserOrderByWithRelationInput>; }>; export type SearchUserQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null }> }; export type EmptyQueryQueryVariables = Exact<{ [key: string]: never; }>; export type EmptyQueryQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'User', id: string }> }; export type SearchCompanyQueryVariables = Exact<{ where?: InputMaybe; limit?: InputMaybe; orderBy?: InputMaybe | CompanyOrderByWithRelationInput>; }>; export type SearchCompanyQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> }; export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>; export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, inviteHash?: string | null } } | null, settings: { __typename?: 'UserSettings', id: string, locale: string, colorScheme: ColorScheme } } }; export type GetUsersQueryVariables = Exact<{ [key: string]: never; }>; export type GetUsersQuery = { __typename?: 'Query', findManyUser: Array<{ __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null }> }; export type UpdateUserMutationVariables = Exact<{ data: UserUpdateInput; where: UserWhereUniqueInput; }>; export type UpdateUserMutation = { __typename?: 'Mutation', updateUser: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, inviteHash?: string | null } } | null, settings: { __typename?: 'UserSettings', id: string, locale: string, colorScheme: ColorScheme } } }; export type UploadProfilePictureMutationVariables = Exact<{ file: Scalars['Upload']; }>; export type UploadProfilePictureMutation = { __typename?: 'Mutation', uploadProfilePicture: string }; export type RemoveProfilePictureMutationVariables = Exact<{ where: UserWhereUniqueInput; }>; export type RemoveProfilePictureMutation = { __typename?: 'Mutation', updateUser: { __typename?: 'User', id: string, avatarUrl?: string | null } }; export type GetViewFieldsQueryVariables = Exact<{ where?: InputMaybe; }>; export type GetViewFieldsQuery = { __typename?: 'Query', viewFields: Array<{ __typename?: 'ViewField', id: string, fieldName: string, isVisible: boolean, sizeInPx: number, index: number }> }; export type UpdateViewFieldMutationVariables = Exact<{ data: ViewFieldUpdateInput; where: ViewFieldWhereUniqueInput; }>; export type UpdateViewFieldMutation = { __typename?: 'Mutation', updateOneViewField: { __typename?: 'ViewField', id: string, fieldName: string, isVisible: boolean, sizeInPx: number, index: number } }; 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, displayName: string } }> }; export type UpdateWorkspaceMutationVariables = Exact<{ data: WorkspaceUpdateInput; }>; export type UpdateWorkspaceMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null } }; export type UploadWorkspaceLogoMutationVariables = Exact<{ file: Scalars['Upload']; }>; export type UploadWorkspaceLogoMutation = { __typename?: 'Mutation', uploadWorkspaceLogo: string }; export type RemoveWorkspaceLogoMutationVariables = Exact<{ [key: string]: never; }>; export type RemoveWorkspaceLogoMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: string } }; export type RemoveWorkspaceMemberMutationVariables = Exact<{ where: WorkspaceMemberWhereUniqueInput; }>; export type RemoveWorkspaceMemberMutation = { __typename?: 'Mutation', deleteWorkspaceMember: { __typename?: 'WorkspaceMember', id: string } }; export const CreateCommentDocument = gql` mutation CreateComment($commentId: String!, $commentText: String!, $authorId: String!, $commentThreadId: String!, $createdAt: DateTime!) { createOneComment( data: {id: $commentId, createdAt: $createdAt, body: $commentText, author: {connect: {id: $authorId}}, commentThread: {connect: {id: $commentThreadId}}} ) { id createdAt body author { id displayName firstName lastName avatarUrl } commentThreadId } } `; export type CreateCommentMutationFn = Apollo.MutationFunction; /** * __useCreateCommentMutation__ * * To run a mutation, you first call `useCreateCommentMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateCommentMutation` 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 [createCommentMutation, { data, loading, error }] = useCreateCommentMutation({ * variables: { * commentId: // value for 'commentId' * commentText: // value for 'commentText' * authorId: // value for 'authorId' * commentThreadId: // value for 'commentThreadId' * createdAt: // value for 'createdAt' * }, * }); */ export function useCreateCommentMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateCommentDocument, options); } export type CreateCommentMutationHookResult = ReturnType; export type CreateCommentMutationResult = Apollo.MutationResult; export type CreateCommentMutationOptions = Apollo.BaseMutationOptions; export const CreateCommentThreadDocument = gql` mutation CreateCommentThread($commentThreadId: String!, $body: String, $title: String, $type: ActivityType!, $authorId: String!, $createdAt: DateTime!, $commentThreadTargetArray: [CommentThreadTargetCreateManyCommentThreadInput!]!) { createOneCommentThread( data: {id: $commentThreadId, createdAt: $createdAt, updatedAt: $createdAt, author: {connect: {id: $authorId}}, body: $body, title: $title, type: $type, commentThreadTargets: {createMany: {data: $commentThreadTargetArray, skipDuplicates: true}}} ) { id createdAt updatedAt authorId type commentThreadTargets { id createdAt updatedAt commentThreadId commentableType commentableId } comments { id createdAt updatedAt body author { id } } } } `; export type CreateCommentThreadMutationFn = Apollo.MutationFunction; /** * __useCreateCommentThreadMutation__ * * To run a mutation, you first call `useCreateCommentThreadMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateCommentThreadMutation` 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 [createCommentThreadMutation, { data, loading, error }] = useCreateCommentThreadMutation({ * variables: { * commentThreadId: // value for 'commentThreadId' * body: // value for 'body' * title: // value for 'title' * type: // value for 'type' * authorId: // value for 'authorId' * createdAt: // value for 'createdAt' * commentThreadTargetArray: // value for 'commentThreadTargetArray' * }, * }); */ export function useCreateCommentThreadMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateCommentThreadDocument, options); } export type CreateCommentThreadMutationHookResult = ReturnType; export type CreateCommentThreadMutationResult = Apollo.MutationResult; export type CreateCommentThreadMutationOptions = Apollo.BaseMutationOptions; export const GetCommentThreadsByTargetsDocument = gql` query GetCommentThreadsByTargets($commentThreadTargetIds: [String!]!, $orderBy: [CommentThreadOrderByWithRelationInput!]) { findManyCommentThreads( orderBy: $orderBy where: {commentThreadTargets: {some: {commentableId: {in: $commentThreadTargetIds}}}} ) { id createdAt title body type completedAt author { id firstName lastName displayName } comments { id body createdAt updatedAt author { id displayName firstName lastName avatarUrl } } commentThreadTargets { id commentableId commentableType } } } `; /** * __useGetCommentThreadsByTargetsQuery__ * * To run a query within a React component, call `useGetCommentThreadsByTargetsQuery` and pass it any options that fit your needs. * When your component renders, `useGetCommentThreadsByTargetsQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetCommentThreadsByTargetsQuery({ * variables: { * commentThreadTargetIds: // value for 'commentThreadTargetIds' * orderBy: // value for 'orderBy' * }, * }); */ export function useGetCommentThreadsByTargetsQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetCommentThreadsByTargetsDocument, options); } export function useGetCommentThreadsByTargetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetCommentThreadsByTargetsDocument, options); } export type GetCommentThreadsByTargetsQueryHookResult = ReturnType; export type GetCommentThreadsByTargetsLazyQueryHookResult = ReturnType; export type GetCommentThreadsByTargetsQueryResult = Apollo.QueryResult; export const GetCommentThreadDocument = gql` query GetCommentThread($commentThreadId: String!) { findManyCommentThreads(where: {id: {equals: $commentThreadId}}) { id createdAt body title type completedAt author { id firstName lastName displayName } comments { id body createdAt updatedAt author { id displayName firstName lastName avatarUrl } } commentThreadTargets { id commentableId commentableType } } } `; /** * __useGetCommentThreadQuery__ * * To run a query within a React component, call `useGetCommentThreadQuery` and pass it any options that fit your needs. * When your component renders, `useGetCommentThreadQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetCommentThreadQuery({ * variables: { * commentThreadId: // value for 'commentThreadId' * }, * }); */ export function useGetCommentThreadQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetCommentThreadDocument, options); } export function useGetCommentThreadLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetCommentThreadDocument, options); } export type GetCommentThreadQueryHookResult = ReturnType; export type GetCommentThreadLazyQueryHookResult = ReturnType; export type GetCommentThreadQueryResult = Apollo.QueryResult; export const AddCommentThreadTargetsOnCommentThreadDocument = gql` mutation AddCommentThreadTargetsOnCommentThread($commentThreadId: String!, $commentThreadTargetInputs: [CommentThreadTargetCreateManyCommentThreadInput!]!) { updateOneCommentThread( where: {id: $commentThreadId} data: {commentThreadTargets: {createMany: {data: $commentThreadTargetInputs}}} ) { id createdAt updatedAt commentThreadTargets { id createdAt updatedAt commentableType commentableId } } } `; export type AddCommentThreadTargetsOnCommentThreadMutationFn = Apollo.MutationFunction; /** * __useAddCommentThreadTargetsOnCommentThreadMutation__ * * To run a mutation, you first call `useAddCommentThreadTargetsOnCommentThreadMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAddCommentThreadTargetsOnCommentThreadMutation` 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 [addCommentThreadTargetsOnCommentThreadMutation, { data, loading, error }] = useAddCommentThreadTargetsOnCommentThreadMutation({ * variables: { * commentThreadId: // value for 'commentThreadId' * commentThreadTargetInputs: // value for 'commentThreadTargetInputs' * }, * }); */ export function useAddCommentThreadTargetsOnCommentThreadMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(AddCommentThreadTargetsOnCommentThreadDocument, options); } export type AddCommentThreadTargetsOnCommentThreadMutationHookResult = ReturnType; export type AddCommentThreadTargetsOnCommentThreadMutationResult = Apollo.MutationResult; export type AddCommentThreadTargetsOnCommentThreadMutationOptions = Apollo.BaseMutationOptions; export const RemoveCommentThreadTargetsOnCommentThreadDocument = gql` mutation RemoveCommentThreadTargetsOnCommentThread($commentThreadId: String!, $commentThreadTargetIds: [String!]!) { updateOneCommentThread( where: {id: $commentThreadId} data: {commentThreadTargets: {deleteMany: {id: {in: $commentThreadTargetIds}}}} ) { id createdAt updatedAt commentThreadTargets { id createdAt updatedAt commentableType commentableId } } } `; export type RemoveCommentThreadTargetsOnCommentThreadMutationFn = Apollo.MutationFunction; /** * __useRemoveCommentThreadTargetsOnCommentThreadMutation__ * * To run a mutation, you first call `useRemoveCommentThreadTargetsOnCommentThreadMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRemoveCommentThreadTargetsOnCommentThreadMutation` 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 [removeCommentThreadTargetsOnCommentThreadMutation, { data, loading, error }] = useRemoveCommentThreadTargetsOnCommentThreadMutation({ * variables: { * commentThreadId: // value for 'commentThreadId' * commentThreadTargetIds: // value for 'commentThreadTargetIds' * }, * }); */ export function useRemoveCommentThreadTargetsOnCommentThreadMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(RemoveCommentThreadTargetsOnCommentThreadDocument, options); } export type RemoveCommentThreadTargetsOnCommentThreadMutationHookResult = ReturnType; export type RemoveCommentThreadTargetsOnCommentThreadMutationResult = Apollo.MutationResult; export type RemoveCommentThreadTargetsOnCommentThreadMutationOptions = Apollo.BaseMutationOptions; export const DeleteCommentThreadDocument = gql` mutation DeleteCommentThread($commentThreadId: String!) { deleteManyCommentThreads(where: {id: {equals: $commentThreadId}}) { count } } `; export type DeleteCommentThreadMutationFn = Apollo.MutationFunction; /** * __useDeleteCommentThreadMutation__ * * To run a mutation, you first call `useDeleteCommentThreadMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteCommentThreadMutation` 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 [deleteCommentThreadMutation, { data, loading, error }] = useDeleteCommentThreadMutation({ * variables: { * commentThreadId: // value for 'commentThreadId' * }, * }); */ export function useDeleteCommentThreadMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteCommentThreadDocument, options); } export type DeleteCommentThreadMutationHookResult = ReturnType; export type DeleteCommentThreadMutationResult = Apollo.MutationResult; export type DeleteCommentThreadMutationOptions = Apollo.BaseMutationOptions; export const UpdateCommentThreadDocument = gql` mutation UpdateCommentThread($id: String!, $body: String, $title: String, $type: ActivityType, $completedAt: DateTime) { updateOneCommentThread( where: {id: $id} data: {body: $body, title: $title, type: $type, completedAt: $completedAt} ) { id body title type completedAt } } `; export type UpdateCommentThreadMutationFn = Apollo.MutationFunction; /** * __useUpdateCommentThreadMutation__ * * To run a mutation, you first call `useUpdateCommentThreadMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateCommentThreadMutation` 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 [updateCommentThreadMutation, { data, loading, error }] = useUpdateCommentThreadMutation({ * variables: { * id: // value for 'id' * body: // value for 'body' * title: // value for 'title' * type: // value for 'type' * completedAt: // value for 'completedAt' * }, * }); */ export function useUpdateCommentThreadMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateCommentThreadDocument, options); } export type UpdateCommentThreadMutationHookResult = ReturnType; export type UpdateCommentThreadMutationResult = Apollo.MutationResult; export type UpdateCommentThreadMutationOptions = Apollo.BaseMutationOptions; export const UploadAttachmentDocument = gql` mutation UploadAttachment($file: Upload!, $activityId: String!) { uploadAttachment(file: $file, activityId: $activityId) } `; export type UploadAttachmentMutationFn = Apollo.MutationFunction; /** * __useUploadAttachmentMutation__ * * To run a mutation, you first call `useUploadAttachmentMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUploadAttachmentMutation` 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 [uploadAttachmentMutation, { data, loading, error }] = useUploadAttachmentMutation({ * variables: { * file: // value for 'file' * activityId: // value for 'activityId' * }, * }); */ export function useUploadAttachmentMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UploadAttachmentDocument, options); } export type UploadAttachmentMutationHookResult = ReturnType; export type UploadAttachmentMutationResult = Apollo.MutationResult; export type UploadAttachmentMutationOptions = Apollo.BaseMutationOptions; export const CreateEventDocument = gql` mutation CreateEvent($type: String!, $data: JSON!) { createEvent(type: $type, data: $data) { success } } `; export type CreateEventMutationFn = Apollo.MutationFunction; /** * __useCreateEventMutation__ * * To run a mutation, you first call `useCreateEventMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateEventMutation` 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 [createEventMutation, { data, loading, error }] = useCreateEventMutation({ * variables: { * type: // value for 'type' * data: // value for 'data' * }, * }); */ export function useCreateEventMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateEventDocument, options); } export type CreateEventMutationHookResult = ReturnType; export type CreateEventMutationResult = Apollo.MutationResult; export type CreateEventMutationOptions = Apollo.BaseMutationOptions; export const CheckUserExistsDocument = gql` query CheckUserExists($email: String!) { checkUserExists(email: $email) { exists } } `; /** * __useCheckUserExistsQuery__ * * To run a query within a React component, call `useCheckUserExistsQuery` and pass it any options that fit your needs. * When your component renders, `useCheckUserExistsQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useCheckUserExistsQuery({ * variables: { * email: // value for 'email' * }, * }); */ export function useCheckUserExistsQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(CheckUserExistsDocument, options); } export function useCheckUserExistsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(CheckUserExistsDocument, options); } export type CheckUserExistsQueryHookResult = ReturnType; export type CheckUserExistsLazyQueryHookResult = ReturnType; export type CheckUserExistsQueryResult = Apollo.QueryResult; export const ChallengeDocument = gql` mutation Challenge($email: String!, $password: String!) { challenge(email: $email, password: $password) { loginToken { expiresAt token } } } `; export type ChallengeMutationFn = Apollo.MutationFunction; /** * __useChallengeMutation__ * * To run a mutation, you first call `useChallengeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useChallengeMutation` 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 [challengeMutation, { data, loading, error }] = useChallengeMutation({ * variables: { * email: // value for 'email' * password: // value for 'password' * }, * }); */ export function useChallengeMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ChallengeDocument, options); } export type ChallengeMutationHookResult = ReturnType; export type ChallengeMutationResult = Apollo.MutationResult; export type ChallengeMutationOptions = Apollo.BaseMutationOptions; export const SignUpDocument = gql` mutation SignUp($email: String!, $password: String!, $workspaceInviteHash: String) { signUp( email: $email password: $password workspaceInviteHash: $workspaceInviteHash ) { loginToken { expiresAt token } } } `; export type SignUpMutationFn = Apollo.MutationFunction; /** * __useSignUpMutation__ * * To run a mutation, you first call `useSignUpMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSignUpMutation` 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 [signUpMutation, { data, loading, error }] = useSignUpMutation({ * variables: { * email: // value for 'email' * password: // value for 'password' * workspaceInviteHash: // value for 'workspaceInviteHash' * }, * }); */ export function useSignUpMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(SignUpDocument, options); } export type SignUpMutationHookResult = ReturnType; export type SignUpMutationResult = Apollo.MutationResult; export type SignUpMutationOptions = Apollo.BaseMutationOptions; export const VerifyDocument = gql` mutation Verify($loginToken: String!) { verify(loginToken: $loginToken) { user { id email displayName firstName lastName workspaceMember { id workspace { id domainName displayName logo inviteHash } } settings { id colorScheme locale } } tokens { accessToken { token expiresAt } refreshToken { token expiresAt } } } } `; export type VerifyMutationFn = Apollo.MutationFunction; /** * __useVerifyMutation__ * * To run a mutation, you first call `useVerifyMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVerifyMutation` 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 [verifyMutation, { data, loading, error }] = useVerifyMutation({ * variables: { * loginToken: // value for 'loginToken' * }, * }); */ export function useVerifyMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(VerifyDocument, options); } export type VerifyMutationHookResult = ReturnType; export type VerifyMutationResult = Apollo.MutationResult; export type VerifyMutationOptions = Apollo.BaseMutationOptions; export const RenewTokenDocument = gql` mutation RenewToken($refreshToken: String!) { renewToken(refreshToken: $refreshToken) { tokens { accessToken { expiresAt token } refreshToken { token expiresAt } } } } `; export type RenewTokenMutationFn = Apollo.MutationFunction; /** * __useRenewTokenMutation__ * * To run a mutation, you first call `useRenewTokenMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRenewTokenMutation` 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 [renewTokenMutation, { data, loading, error }] = useRenewTokenMutation({ * variables: { * refreshToken: // value for 'refreshToken' * }, * }); */ export function useRenewTokenMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(RenewTokenDocument, options); } export type RenewTokenMutationHookResult = ReturnType; export type RenewTokenMutationResult = Apollo.MutationResult; export type RenewTokenMutationOptions = Apollo.BaseMutationOptions; export const GetClientConfigDocument = gql` query GetClientConfig { clientConfig { authProviders { google password } demoMode debugMode telemetry { enabled anonymizationEnabled } } } `; /** * __useGetClientConfigQuery__ * * To run a query within a React component, call `useGetClientConfigQuery` and pass it any options that fit your needs. * When your component renders, `useGetClientConfigQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetClientConfigQuery({ * variables: { * }, * }); */ export function useGetClientConfigQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetClientConfigDocument, options); } export function useGetClientConfigLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetClientConfigDocument, options); } export type GetClientConfigQueryHookResult = ReturnType; export type GetClientConfigLazyQueryHookResult = ReturnType; export type GetClientConfigQueryResult = Apollo.QueryResult; export const GetCompaniesDocument = gql` query GetCompanies($orderBy: [CompanyOrderByWithRelationInput!], $where: CompanyWhereInput) { companies: findManyCompany(orderBy: $orderBy, where: $where) { id domainName name createdAt address linkedinUrl employees _commentThreadCount accountOwner { id email displayName firstName lastName avatarUrl } } } `; /** * __useGetCompaniesQuery__ * * To run a query within a React component, call `useGetCompaniesQuery` and pass it any options that fit your needs. * When your component renders, `useGetCompaniesQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetCompaniesQuery({ * variables: { * orderBy: // value for 'orderBy' * where: // value for 'where' * }, * }); */ export function useGetCompaniesQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetCompaniesDocument, options); } export function useGetCompaniesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetCompaniesDocument, options); } export type GetCompaniesQueryHookResult = ReturnType; export type GetCompaniesLazyQueryHookResult = ReturnType; export type GetCompaniesQueryResult = Apollo.QueryResult; export const GetCompanyDocument = gql` query GetCompany($where: CompanyWhereUniqueInput!) { findUniqueCompany(where: $where) { id domainName name createdAt address linkedinUrl employees _commentThreadCount accountOwner { id email displayName avatarUrl } } } `; /** * __useGetCompanyQuery__ * * To run a query within a React component, call `useGetCompanyQuery` and pass it any options that fit your needs. * When your component renders, `useGetCompanyQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetCompanyQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useGetCompanyQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetCompanyDocument, options); } export function useGetCompanyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetCompanyDocument, options); } export type GetCompanyQueryHookResult = ReturnType; export type GetCompanyLazyQueryHookResult = ReturnType; export type GetCompanyQueryResult = Apollo.QueryResult; export const UpdateOneCompanyDocument = gql` mutation UpdateOneCompany($where: CompanyWhereUniqueInput!, $data: CompanyUpdateInput!) { updateOneCompany(data: $data, where: $where) { accountOwner { id email displayName firstName lastName } address createdAt domainName employees linkedinUrl id name } } `; export type UpdateOneCompanyMutationFn = Apollo.MutationFunction; /** * __useUpdateOneCompanyMutation__ * * 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 [updateOneCompanyMutation, { data, loading, error }] = useUpdateOneCompanyMutation({ * variables: { * where: // value for 'where' * data: // value for 'data' * }, * }); */ export function useUpdateOneCompanyMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateOneCompanyDocument, options); } export type UpdateOneCompanyMutationHookResult = ReturnType; export type UpdateOneCompanyMutationResult = Apollo.MutationResult; export type UpdateOneCompanyMutationOptions = Apollo.BaseMutationOptions; export const InsertOneCompanyDocument = gql` mutation InsertOneCompany($data: CompanyCreateInput!) { createOneCompany(data: $data) { address createdAt domainName linkedinUrl employees id name } } `; export type InsertOneCompanyMutationFn = Apollo.MutationFunction; /** * __useInsertOneCompanyMutation__ * * 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 [insertOneCompanyMutation, { data, loading, error }] = useInsertOneCompanyMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useInsertOneCompanyMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(InsertOneCompanyDocument, options); } export type InsertOneCompanyMutationHookResult = ReturnType; export type InsertOneCompanyMutationResult = Apollo.MutationResult; export type InsertOneCompanyMutationOptions = Apollo.BaseMutationOptions; export const DeleteManyCompaniesDocument = gql` mutation DeleteManyCompanies($ids: [String!]) { deleteManyCompany(where: {id: {in: $ids}}) { count } } `; export type DeleteManyCompaniesMutationFn = Apollo.MutationFunction; /** * __useDeleteManyCompaniesMutation__ * * 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 [deleteManyCompaniesMutation, { data, loading, error }] = useDeleteManyCompaniesMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useDeleteManyCompaniesMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteManyCompaniesDocument, options); } export type DeleteManyCompaniesMutationHookResult = ReturnType; export type DeleteManyCompaniesMutationResult = Apollo.MutationResult; export type DeleteManyCompaniesMutationOptions = Apollo.BaseMutationOptions; export const GetPeopleDocument = gql` query GetPeople($orderBy: [PersonOrderByWithRelationInput!], $where: PersonWhereInput, $limit: Int) { people: findManyPerson(orderBy: $orderBy, where: $where, take: $limit) { id phone email city firstName lastName displayName jobTitle linkedinUrl createdAt _commentThreadCount company { id name domainName } } } `; /** * __useGetPeopleQuery__ * * To run a query within a React component, call `useGetPeopleQuery` and pass it any options that fit your needs. * When your component renders, `useGetPeopleQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPeopleQuery({ * variables: { * orderBy: // value for 'orderBy' * where: // value for 'where' * limit: // value for 'limit' * }, * }); */ export function useGetPeopleQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPeopleDocument, options); } export function useGetPeopleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPeopleDocument, options); } export type GetPeopleQueryHookResult = ReturnType; export type GetPeopleLazyQueryHookResult = ReturnType; export type GetPeopleQueryResult = Apollo.QueryResult; export const GetPersonPhoneByIdDocument = gql` query GetPersonPhoneById($id: String!) { person: findUniquePerson(id: $id) { id phone } } `; /** * __useGetPersonPhoneByIdQuery__ * * To run a query within a React component, call `useGetPersonPhoneByIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetPersonPhoneByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPersonPhoneByIdQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useGetPersonPhoneByIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPersonPhoneByIdDocument, options); } export function useGetPersonPhoneByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPersonPhoneByIdDocument, options); } export type GetPersonPhoneByIdQueryHookResult = ReturnType; export type GetPersonPhoneByIdLazyQueryHookResult = ReturnType; export type GetPersonPhoneByIdQueryResult = Apollo.QueryResult; export const GetPersonEmailByIdDocument = gql` query GetPersonEmailById($id: String!) { person: findUniquePerson(id: $id) { id email } } `; /** * __useGetPersonEmailByIdQuery__ * * To run a query within a React component, call `useGetPersonEmailByIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetPersonEmailByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPersonEmailByIdQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useGetPersonEmailByIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPersonEmailByIdDocument, options); } export function useGetPersonEmailByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPersonEmailByIdDocument, options); } export type GetPersonEmailByIdQueryHookResult = ReturnType; export type GetPersonEmailByIdLazyQueryHookResult = ReturnType; export type GetPersonEmailByIdQueryResult = Apollo.QueryResult; export const GetPersonNamesAndCommentCountByIdDocument = gql` query GetPersonNamesAndCommentCountById($id: String!) { person: findUniquePerson(id: $id) { id firstName lastName displayName _commentThreadCount } } `; /** * __useGetPersonNamesAndCommentCountByIdQuery__ * * To run a query within a React component, call `useGetPersonNamesAndCommentCountByIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetPersonNamesAndCommentCountByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPersonNamesAndCommentCountByIdQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useGetPersonNamesAndCommentCountByIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPersonNamesAndCommentCountByIdDocument, options); } export function useGetPersonNamesAndCommentCountByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPersonNamesAndCommentCountByIdDocument, options); } export type GetPersonNamesAndCommentCountByIdQueryHookResult = ReturnType; export type GetPersonNamesAndCommentCountByIdLazyQueryHookResult = ReturnType; export type GetPersonNamesAndCommentCountByIdQueryResult = Apollo.QueryResult; export const GetPersonCompanyByIdDocument = gql` query GetPersonCompanyById($id: String!) { person: findUniquePerson(id: $id) { id company { id name domainName } } } `; /** * __useGetPersonCompanyByIdQuery__ * * To run a query within a React component, call `useGetPersonCompanyByIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetPersonCompanyByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPersonCompanyByIdQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useGetPersonCompanyByIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPersonCompanyByIdDocument, options); } export function useGetPersonCompanyByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPersonCompanyByIdDocument, options); } export type GetPersonCompanyByIdQueryHookResult = ReturnType; export type GetPersonCompanyByIdLazyQueryHookResult = ReturnType; export type GetPersonCompanyByIdQueryResult = Apollo.QueryResult; export const GetPersonCommentCountByIdDocument = gql` query GetPersonCommentCountById($id: String!) { person: findUniquePerson(id: $id) { id _commentThreadCount } } `; /** * __useGetPersonCommentCountByIdQuery__ * * To run a query within a React component, call `useGetPersonCommentCountByIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetPersonCommentCountByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPersonCommentCountByIdQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useGetPersonCommentCountByIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPersonCommentCountByIdDocument, options); } export function useGetPersonCommentCountByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPersonCommentCountByIdDocument, options); } export type GetPersonCommentCountByIdQueryHookResult = ReturnType; export type GetPersonCommentCountByIdLazyQueryHookResult = ReturnType; export type GetPersonCommentCountByIdQueryResult = Apollo.QueryResult; export const GetPersonCreatedAtByIdDocument = gql` query GetPersonCreatedAtById($id: String!) { person: findUniquePerson(id: $id) { id createdAt } } `; /** * __useGetPersonCreatedAtByIdQuery__ * * To run a query within a React component, call `useGetPersonCreatedAtByIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetPersonCreatedAtByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPersonCreatedAtByIdQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useGetPersonCreatedAtByIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPersonCreatedAtByIdDocument, options); } export function useGetPersonCreatedAtByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPersonCreatedAtByIdDocument, options); } export type GetPersonCreatedAtByIdQueryHookResult = ReturnType; export type GetPersonCreatedAtByIdLazyQueryHookResult = ReturnType; export type GetPersonCreatedAtByIdQueryResult = Apollo.QueryResult; export const GetPersonCityByIdDocument = gql` query GetPersonCityById($id: String!) { person: findUniquePerson(id: $id) { id city } } `; /** * __useGetPersonCityByIdQuery__ * * To run a query within a React component, call `useGetPersonCityByIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetPersonCityByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPersonCityByIdQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useGetPersonCityByIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPersonCityByIdDocument, options); } export function useGetPersonCityByIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPersonCityByIdDocument, options); } export type GetPersonCityByIdQueryHookResult = ReturnType; export type GetPersonCityByIdLazyQueryHookResult = ReturnType; export type GetPersonCityByIdQueryResult = Apollo.QueryResult; export const GetPersonDocument = gql` query GetPerson($id: String!) { findUniquePerson(id: $id) { id firstName lastName displayName email createdAt city jobTitle linkedinUrl phone _commentThreadCount company { id name domainName } } } `; /** * __useGetPersonQuery__ * * To run a query within a React component, call `useGetPersonQuery` and pass it any options that fit your needs. * When your component renders, `useGetPersonQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPersonQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useGetPersonQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPersonDocument, options); } export function useGetPersonLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPersonDocument, options); } export type GetPersonQueryHookResult = ReturnType; export type GetPersonLazyQueryHookResult = ReturnType; export type GetPersonQueryResult = Apollo.QueryResult; export const UpdateOnePersonDocument = gql` mutation UpdateOnePerson($where: PersonWhereUniqueInput!, $data: PersonUpdateInput!) { updateOnePerson(data: $data, where: $where) { id city company { domainName name id } email jobTitle linkedinUrl firstName lastName displayName phone createdAt } } `; export type UpdateOnePersonMutationFn = Apollo.MutationFunction; /** * __useUpdateOnePersonMutation__ * * 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 [updateOnePersonMutation, { data, loading, error }] = useUpdateOnePersonMutation({ * variables: { * where: // value for 'where' * data: // value for 'data' * }, * }); */ export function useUpdateOnePersonMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateOnePersonDocument, options); } export type UpdateOnePersonMutationHookResult = ReturnType; export type UpdateOnePersonMutationResult = Apollo.MutationResult; export type UpdateOnePersonMutationOptions = Apollo.BaseMutationOptions; export const InsertOnePersonDocument = gql` mutation InsertOnePerson($data: PersonCreateInput!) { createOnePerson(data: $data) { id city company { domainName name id } email firstName lastName jobTitle linkedinUrl displayName phone createdAt } } `; export type InsertOnePersonMutationFn = Apollo.MutationFunction; /** * __useInsertOnePersonMutation__ * * 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 [insertOnePersonMutation, { data, loading, error }] = useInsertOnePersonMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useInsertOnePersonMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(InsertOnePersonDocument, options); } export type InsertOnePersonMutationHookResult = ReturnType; export type InsertOnePersonMutationResult = Apollo.MutationResult; export type InsertOnePersonMutationOptions = Apollo.BaseMutationOptions; export const DeleteManyPersonDocument = gql` mutation DeleteManyPerson($ids: [String!]) { deleteManyPerson(where: {id: {in: $ids}}) { count } } `; export type DeleteManyPersonMutationFn = Apollo.MutationFunction; /** * __useDeleteManyPersonMutation__ * * 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 [deleteManyPersonMutation, { data, loading, error }] = useDeleteManyPersonMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useDeleteManyPersonMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteManyPersonDocument, options); } export type DeleteManyPersonMutationHookResult = ReturnType; export type DeleteManyPersonMutationResult = Apollo.MutationResult; export type DeleteManyPersonMutationOptions = Apollo.BaseMutationOptions; export const GetPipelinesDocument = gql` query GetPipelines($where: PipelineWhereInput) { findManyPipeline(where: $where) { id name pipelineProgressableType pipelineStages { id name color index } } } `; /** * __useGetPipelinesQuery__ * * To run a query within a React component, call `useGetPipelinesQuery` and pass it any options that fit your needs. * When your component renders, `useGetPipelinesQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPipelinesQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useGetPipelinesQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPipelinesDocument, options); } export function useGetPipelinesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPipelinesDocument, options); } export type GetPipelinesQueryHookResult = ReturnType; export type GetPipelinesLazyQueryHookResult = ReturnType; export type GetPipelinesQueryResult = Apollo.QueryResult; export const GetPipelineProgressDocument = gql` query GetPipelineProgress($where: PipelineProgressWhereInput, $orderBy: [PipelineProgressOrderByWithRelationInput!]) { findManyPipelineProgress(where: $where, orderBy: $orderBy) { id pipelineStageId progressableType progressableId amount closeDate pointOfContactId pointOfContact { id firstName lastName displayName } probability } } `; /** * __useGetPipelineProgressQuery__ * * To run a query within a React component, call `useGetPipelineProgressQuery` and pass it any options that fit your needs. * When your component renders, `useGetPipelineProgressQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPipelineProgressQuery({ * variables: { * where: // value for 'where' * orderBy: // value for 'orderBy' * }, * }); */ export function useGetPipelineProgressQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPipelineProgressDocument, options); } export function useGetPipelineProgressLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPipelineProgressDocument, options); } export type GetPipelineProgressQueryHookResult = ReturnType; export type GetPipelineProgressLazyQueryHookResult = ReturnType; export type GetPipelineProgressQueryResult = Apollo.QueryResult; export const UpdateOnePipelineProgressDocument = gql` mutation UpdateOnePipelineProgress($id: String, $amount: Int, $closeDate: DateTime, $probability: Int, $pointOfContactId: String) { updateOnePipelineProgress( where: {id: $id} data: {amount: $amount, closeDate: $closeDate, probability: $probability, pointOfContact: {connect: {id: $pointOfContactId}}} ) { id amount closeDate } } `; export type UpdateOnePipelineProgressMutationFn = Apollo.MutationFunction; /** * __useUpdateOnePipelineProgressMutation__ * * To run a mutation, you first call `useUpdateOnePipelineProgressMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateOnePipelineProgressMutation` 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 [updateOnePipelineProgressMutation, { data, loading, error }] = useUpdateOnePipelineProgressMutation({ * variables: { * id: // value for 'id' * amount: // value for 'amount' * closeDate: // value for 'closeDate' * probability: // value for 'probability' * pointOfContactId: // value for 'pointOfContactId' * }, * }); */ export function useUpdateOnePipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateOnePipelineProgressDocument, options); } export type UpdateOnePipelineProgressMutationHookResult = ReturnType; export type UpdateOnePipelineProgressMutationResult = Apollo.MutationResult; export type UpdateOnePipelineProgressMutationOptions = Apollo.BaseMutationOptions; export const UpdateOnePipelineProgressStageDocument = gql` mutation UpdateOnePipelineProgressStage($id: String, $pipelineStageId: String) { updateOnePipelineProgress( where: {id: $id} data: {pipelineStage: {connect: {id: $pipelineStageId}}} ) { id } } `; export type UpdateOnePipelineProgressStageMutationFn = Apollo.MutationFunction; /** * __useUpdateOnePipelineProgressStageMutation__ * * To run a mutation, you first call `useUpdateOnePipelineProgressStageMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateOnePipelineProgressStageMutation` 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 [updateOnePipelineProgressStageMutation, { data, loading, error }] = useUpdateOnePipelineProgressStageMutation({ * variables: { * id: // value for 'id' * pipelineStageId: // value for 'pipelineStageId' * }, * }); */ export function useUpdateOnePipelineProgressStageMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateOnePipelineProgressStageDocument, options); } export type UpdateOnePipelineProgressStageMutationHookResult = ReturnType; export type UpdateOnePipelineProgressStageMutationResult = Apollo.MutationResult; export type UpdateOnePipelineProgressStageMutationOptions = Apollo.BaseMutationOptions; export const CreateOnePipelineProgressDocument = gql` mutation CreateOnePipelineProgress($uuid: String!, $entityType: PipelineProgressableType!, $entityId: String!, $pipelineId: String!, $pipelineStageId: String!) { createOnePipelineProgress( data: {id: $uuid, progressableType: $entityType, progressableId: $entityId, pipeline: {connect: {id: $pipelineId}}, pipelineStage: {connect: {id: $pipelineStageId}}} ) { id } } `; export type CreateOnePipelineProgressMutationFn = Apollo.MutationFunction; /** * __useCreateOnePipelineProgressMutation__ * * To run a mutation, you first call `useCreateOnePipelineProgressMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateOnePipelineProgressMutation` 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 [createOnePipelineProgressMutation, { data, loading, error }] = useCreateOnePipelineProgressMutation({ * variables: { * uuid: // value for 'uuid' * entityType: // value for 'entityType' * entityId: // value for 'entityId' * pipelineId: // value for 'pipelineId' * pipelineStageId: // value for 'pipelineStageId' * }, * }); */ export function useCreateOnePipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateOnePipelineProgressDocument, options); } export type CreateOnePipelineProgressMutationHookResult = ReturnType; export type CreateOnePipelineProgressMutationResult = Apollo.MutationResult; export type CreateOnePipelineProgressMutationOptions = Apollo.BaseMutationOptions; export const DeleteManyPipelineProgressDocument = gql` mutation DeleteManyPipelineProgress($ids: [String!]) { deleteManyPipelineProgress(where: {id: {in: $ids}}) { count } } `; export type DeleteManyPipelineProgressMutationFn = Apollo.MutationFunction; /** * __useDeleteManyPipelineProgressMutation__ * * To run a mutation, you first call `useDeleteManyPipelineProgressMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteManyPipelineProgressMutation` 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 [deleteManyPipelineProgressMutation, { data, loading, error }] = useDeleteManyPipelineProgressMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useDeleteManyPipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteManyPipelineProgressDocument, options); } export type DeleteManyPipelineProgressMutationHookResult = ReturnType; export type DeleteManyPipelineProgressMutationResult = Apollo.MutationResult; export type DeleteManyPipelineProgressMutationOptions = Apollo.BaseMutationOptions; export const UpdatePipelineStageDocument = gql` mutation UpdatePipelineStage($id: String, $data: PipelineStageUpdateInput!) { updateOnePipelineStage(where: {id: $id}, data: $data) { id name color } } `; export type UpdatePipelineStageMutationFn = Apollo.MutationFunction; /** * __useUpdatePipelineStageMutation__ * * To run a mutation, you first call `useUpdatePipelineStageMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdatePipelineStageMutation` 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 [updatePipelineStageMutation, { data, loading, error }] = useUpdatePipelineStageMutation({ * variables: { * id: // value for 'id' * data: // value for 'data' * }, * }); */ export function useUpdatePipelineStageMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdatePipelineStageDocument, options); } export type UpdatePipelineStageMutationHookResult = ReturnType; export type UpdatePipelineStageMutationResult = Apollo.MutationResult; export type UpdatePipelineStageMutationOptions = Apollo.BaseMutationOptions; export const SearchPeopleDocument = gql` query SearchPeople($where: PersonWhereInput, $limit: Int, $orderBy: [PersonOrderByWithRelationInput!]) { searchResults: findManyPerson(where: $where, take: $limit, orderBy: $orderBy) { id phone email city firstName lastName createdAt } } `; /** * __useSearchPeopleQuery__ * * To run a query within a React component, call `useSearchPeopleQuery` and pass it any options that fit your needs. * When your component renders, `useSearchPeopleQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useSearchPeopleQuery({ * variables: { * where: // value for 'where' * limit: // value for 'limit' * orderBy: // value for 'orderBy' * }, * }); */ export function useSearchPeopleQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(SearchPeopleDocument, options); } export function useSearchPeopleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(SearchPeopleDocument, options); } export type SearchPeopleQueryHookResult = ReturnType; export type SearchPeopleLazyQueryHookResult = ReturnType; export type SearchPeopleQueryResult = Apollo.QueryResult; export const SearchUserDocument = gql` query SearchUser($where: UserWhereInput, $limit: Int, $orderBy: [UserOrderByWithRelationInput!]) { searchResults: findManyUser(where: $where, take: $limit, orderBy: $orderBy) { id email displayName firstName lastName avatarUrl } } `; /** * __useSearchUserQuery__ * * To run a query within a React component, call `useSearchUserQuery` and pass it any options that fit your needs. * When your component renders, `useSearchUserQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useSearchUserQuery({ * variables: { * where: // value for 'where' * limit: // value for 'limit' * orderBy: // value for 'orderBy' * }, * }); */ export function useSearchUserQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(SearchUserDocument, options); } export function useSearchUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(SearchUserDocument, options); } export type SearchUserQueryHookResult = ReturnType; export type SearchUserLazyQueryHookResult = ReturnType; export type SearchUserQueryResult = Apollo.QueryResult; export const EmptyQueryDocument = gql` query EmptyQuery { searchResults: findManyUser { id } } `; /** * __useEmptyQueryQuery__ * * To run a query within a React component, call `useEmptyQueryQuery` and pass it any options that fit your needs. * When your component renders, `useEmptyQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useEmptyQueryQuery({ * variables: { * }, * }); */ export function useEmptyQueryQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(EmptyQueryDocument, options); } export function useEmptyQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(EmptyQueryDocument, options); } export type EmptyQueryQueryHookResult = ReturnType; export type EmptyQueryLazyQueryHookResult = ReturnType; export type EmptyQueryQueryResult = Apollo.QueryResult; export const SearchCompanyDocument = gql` query SearchCompany($where: CompanyWhereInput, $limit: Int, $orderBy: [CompanyOrderByWithRelationInput!]) { searchResults: findManyCompany(where: $where, take: $limit, orderBy: $orderBy) { id name domainName } } `; /** * __useSearchCompanyQuery__ * * To run a query within a React component, call `useSearchCompanyQuery` and pass it any options that fit your needs. * When your component renders, `useSearchCompanyQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useSearchCompanyQuery({ * variables: { * where: // value for 'where' * limit: // value for 'limit' * orderBy: // value for 'orderBy' * }, * }); */ export function useSearchCompanyQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(SearchCompanyDocument, options); } export function useSearchCompanyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(SearchCompanyDocument, options); } export type SearchCompanyQueryHookResult = ReturnType; export type SearchCompanyLazyQueryHookResult = ReturnType; export type SearchCompanyQueryResult = Apollo.QueryResult; export const GetCurrentUserDocument = gql` query GetCurrentUser { currentUser { id email displayName firstName lastName avatarUrl workspaceMember { id workspace { id domainName displayName logo inviteHash } } settings { id locale colorScheme } } } `; /** * __useGetCurrentUserQuery__ * * To run a query within a React component, call `useGetCurrentUserQuery` and pass it any options that fit your needs. * When your component renders, `useGetCurrentUserQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetCurrentUserQuery({ * variables: { * }, * }); */ export function useGetCurrentUserQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetCurrentUserDocument, options); } export function useGetCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetCurrentUserDocument, options); } export type GetCurrentUserQueryHookResult = ReturnType; export type GetCurrentUserLazyQueryHookResult = ReturnType; export type GetCurrentUserQueryResult = Apollo.QueryResult; export const GetUsersDocument = gql` query GetUsers { findManyUser { id email displayName firstName lastName } } `; /** * __useGetUsersQuery__ * * To run a query within a React component, call `useGetUsersQuery` and pass it any options that fit your needs. * When your component renders, `useGetUsersQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetUsersQuery({ * variables: { * }, * }); */ export function useGetUsersQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetUsersDocument, options); } export function useGetUsersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetUsersDocument, options); } export type GetUsersQueryHookResult = ReturnType; export type GetUsersLazyQueryHookResult = ReturnType; export type GetUsersQueryResult = Apollo.QueryResult; export const UpdateUserDocument = gql` mutation UpdateUser($data: UserUpdateInput!, $where: UserWhereUniqueInput!) { updateUser(data: $data, where: $where) { id email displayName firstName lastName avatarUrl workspaceMember { id workspace { id domainName displayName logo inviteHash } } settings { id locale colorScheme } } } `; export type UpdateUserMutationFn = Apollo.MutationFunction; /** * __useUpdateUserMutation__ * * To run a mutation, you first call `useUpdateUserMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateUserMutation` 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 [updateUserMutation, { data, loading, error }] = useUpdateUserMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateUserMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateUserDocument, options); } export type UpdateUserMutationHookResult = ReturnType; export type UpdateUserMutationResult = Apollo.MutationResult; export type UpdateUserMutationOptions = Apollo.BaseMutationOptions; export const UploadProfilePictureDocument = gql` mutation UploadProfilePicture($file: Upload!) { uploadProfilePicture(file: $file) } `; export type UploadProfilePictureMutationFn = Apollo.MutationFunction; /** * __useUploadProfilePictureMutation__ * * To run a mutation, you first call `useUploadProfilePictureMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUploadProfilePictureMutation` 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 [uploadProfilePictureMutation, { data, loading, error }] = useUploadProfilePictureMutation({ * variables: { * file: // value for 'file' * }, * }); */ export function useUploadProfilePictureMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UploadProfilePictureDocument, options); } export type UploadProfilePictureMutationHookResult = ReturnType; export type UploadProfilePictureMutationResult = Apollo.MutationResult; export type UploadProfilePictureMutationOptions = Apollo.BaseMutationOptions; export const RemoveProfilePictureDocument = gql` mutation RemoveProfilePicture($where: UserWhereUniqueInput!) { updateUser(data: {avatarUrl: null}, where: $where) { id avatarUrl } } `; export type RemoveProfilePictureMutationFn = Apollo.MutationFunction; /** * __useRemoveProfilePictureMutation__ * * To run a mutation, you first call `useRemoveProfilePictureMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRemoveProfilePictureMutation` 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 [removeProfilePictureMutation, { data, loading, error }] = useRemoveProfilePictureMutation({ * variables: { * where: // value for 'where' * }, * }); */ export function useRemoveProfilePictureMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(RemoveProfilePictureDocument, options); } export type RemoveProfilePictureMutationHookResult = ReturnType; export type RemoveProfilePictureMutationResult = Apollo.MutationResult; export type RemoveProfilePictureMutationOptions = Apollo.BaseMutationOptions; export const GetViewFieldsDocument = gql` query GetViewFields($where: ViewFieldWhereInput) { viewFields: findManyViewField(where: $where) { id fieldName isVisible sizeInPx index } } `; /** * __useGetViewFieldsQuery__ * * To run a query within a React component, call `useGetViewFieldsQuery` and pass it any options that fit your needs. * When your component renders, `useGetViewFieldsQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetViewFieldsQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useGetViewFieldsQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetViewFieldsDocument, options); } export function useGetViewFieldsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetViewFieldsDocument, options); } export type GetViewFieldsQueryHookResult = ReturnType; export type GetViewFieldsLazyQueryHookResult = ReturnType; export type GetViewFieldsQueryResult = Apollo.QueryResult; export const UpdateViewFieldDocument = gql` mutation UpdateViewField($data: ViewFieldUpdateInput!, $where: ViewFieldWhereUniqueInput!) { updateOneViewField(data: $data, where: $where) { id fieldName isVisible sizeInPx index } } `; export type UpdateViewFieldMutationFn = Apollo.MutationFunction; /** * __useUpdateViewFieldMutation__ * * To run a mutation, you first call `useUpdateViewFieldMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateViewFieldMutation` 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 [updateViewFieldMutation, { data, loading, error }] = useUpdateViewFieldMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateViewFieldMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateViewFieldDocument, options); } export type UpdateViewFieldMutationHookResult = ReturnType; export type UpdateViewFieldMutationResult = Apollo.MutationResult; export type UpdateViewFieldMutationOptions = Apollo.BaseMutationOptions; export const GetWorkspaceMembersDocument = gql` query GetWorkspaceMembers { workspaceMembers: findManyWorkspaceMember { id user { id email avatarUrl firstName lastName displayName } } } `; /** * __useGetWorkspaceMembersQuery__ * * To run a query within a React component, call `useGetWorkspaceMembersQuery` and pass it any options that fit your needs. * When your component renders, `useGetWorkspaceMembersQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetWorkspaceMembersQuery({ * variables: { * }, * }); */ export function useGetWorkspaceMembersQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetWorkspaceMembersDocument, options); } export function useGetWorkspaceMembersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetWorkspaceMembersDocument, options); } export type GetWorkspaceMembersQueryHookResult = ReturnType; export type GetWorkspaceMembersLazyQueryHookResult = ReturnType; export type GetWorkspaceMembersQueryResult = Apollo.QueryResult; export const UpdateWorkspaceDocument = gql` mutation UpdateWorkspace($data: WorkspaceUpdateInput!) { updateWorkspace(data: $data) { id domainName displayName logo } } `; export type UpdateWorkspaceMutationFn = Apollo.MutationFunction; /** * __useUpdateWorkspaceMutation__ * * To run a mutation, you first call `useUpdateWorkspaceMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateWorkspaceMutation` 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 [updateWorkspaceMutation, { data, loading, error }] = useUpdateWorkspaceMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useUpdateWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateWorkspaceDocument, options); } export type UpdateWorkspaceMutationHookResult = ReturnType; export type UpdateWorkspaceMutationResult = Apollo.MutationResult; export type UpdateWorkspaceMutationOptions = Apollo.BaseMutationOptions; export const UploadWorkspaceLogoDocument = gql` mutation UploadWorkspaceLogo($file: Upload!) { uploadWorkspaceLogo(file: $file) } `; export type UploadWorkspaceLogoMutationFn = Apollo.MutationFunction; /** * __useUploadWorkspaceLogoMutation__ * * To run a mutation, you first call `useUploadWorkspaceLogoMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUploadWorkspaceLogoMutation` 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 [uploadWorkspaceLogoMutation, { data, loading, error }] = useUploadWorkspaceLogoMutation({ * variables: { * file: // value for 'file' * }, * }); */ export function useUploadWorkspaceLogoMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UploadWorkspaceLogoDocument, options); } export type UploadWorkspaceLogoMutationHookResult = ReturnType; export type UploadWorkspaceLogoMutationResult = Apollo.MutationResult; export type UploadWorkspaceLogoMutationOptions = Apollo.BaseMutationOptions; export const RemoveWorkspaceLogoDocument = gql` mutation RemoveWorkspaceLogo { updateWorkspace(data: {logo: null}) { id } } `; export type RemoveWorkspaceLogoMutationFn = Apollo.MutationFunction; /** * __useRemoveWorkspaceLogoMutation__ * * To run a mutation, you first call `useRemoveWorkspaceLogoMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRemoveWorkspaceLogoMutation` 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 [removeWorkspaceLogoMutation, { data, loading, error }] = useRemoveWorkspaceLogoMutation({ * variables: { * }, * }); */ export function useRemoveWorkspaceLogoMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(RemoveWorkspaceLogoDocument, options); } export type RemoveWorkspaceLogoMutationHookResult = ReturnType; export type RemoveWorkspaceLogoMutationResult = Apollo.MutationResult; export type RemoveWorkspaceLogoMutationOptions = Apollo.BaseMutationOptions; export const RemoveWorkspaceMemberDocument = gql` mutation RemoveWorkspaceMember($where: WorkspaceMemberWhereUniqueInput!) { deleteWorkspaceMember(where: $where) { id } } `; export type RemoveWorkspaceMemberMutationFn = Apollo.MutationFunction; /** * __useRemoveWorkspaceMemberMutation__ * * To run a mutation, you first call `useRemoveWorkspaceMemberMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRemoveWorkspaceMemberMutation` 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 [removeWorkspaceMemberMutation, { data, loading, error }] = useRemoveWorkspaceMemberMutation({ * variables: { * where: // value for 'where' * }, * }); */ export function useRemoveWorkspaceMemberMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(RemoveWorkspaceMemberDocument, options); } export type RemoveWorkspaceMemberMutationHookResult = ReturnType; export type RemoveWorkspaceMemberMutationResult = Apollo.MutationResult; export type RemoveWorkspaceMemberMutationOptions = Apollo.BaseMutationOptions;