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; ConnectionCursor: any; DateTime: string; JSON: any; Upload: any; }; export type Activity = { __typename?: 'Activity'; activityTargets?: Maybe>; assignee?: Maybe; assigneeId?: Maybe; attachments?: Maybe>; author: User; authorId: Scalars['String']; body?: Maybe; comments?: Maybe>; completedAt?: Maybe; createdAt: Scalars['DateTime']; dueAt?: Maybe; id: Scalars['ID']; reminderAt?: Maybe; title?: Maybe; type: ActivityType; updatedAt: Scalars['DateTime']; workspaceMemberAssignee?: Maybe; workspaceMemberAssigneeId?: Maybe; workspaceMemberAuthor?: Maybe; workspaceMemberAuthorId?: Maybe; }; export type ActivityCreateInput = { activityTargets?: InputMaybe; assignee?: InputMaybe; attachments?: InputMaybe; author: UserCreateNestedOneWithoutAuthoredActivitiesInput; body?: InputMaybe; comments?: InputMaybe; completedAt?: InputMaybe; createdAt?: InputMaybe; dueAt?: InputMaybe; id?: InputMaybe; reminderAt?: InputMaybe; title?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAssignee?: InputMaybe; workspaceMemberAuthor?: InputMaybe; }; export type ActivityCreateNestedOneWithoutActivityTargetsInput = { connect?: InputMaybe; }; export type ActivityCreateNestedOneWithoutCommentsInput = { connect?: InputMaybe; }; export type ActivityListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type ActivityOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type ActivityOrderByWithRelationInput = { activityTargets?: InputMaybe; assignee?: InputMaybe; assigneeId?: InputMaybe; attachments?: InputMaybe; author?: InputMaybe; authorId?: InputMaybe; body?: InputMaybe; comments?: InputMaybe; completedAt?: InputMaybe; createdAt?: InputMaybe; dueAt?: InputMaybe; id?: InputMaybe; reminderAt?: InputMaybe; title?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAssignee?: InputMaybe; workspaceMemberAssigneeId?: InputMaybe; workspaceMemberAuthor?: InputMaybe; workspaceMemberAuthorId?: InputMaybe; }; export type ActivityRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum ActivityScalarFieldEnum { 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', WorkspaceMemberAssigneeId = 'workspaceMemberAssigneeId', WorkspaceMemberAuthorId = 'workspaceMemberAuthorId' } export type ActivityTarget = { __typename?: 'ActivityTarget'; activity: Activity; activityId: Scalars['String']; company?: Maybe; companyId?: Maybe; createdAt: Scalars['DateTime']; id: Scalars['ID']; person?: Maybe; personId?: Maybe; updatedAt: Scalars['DateTime']; }; export type ActivityTargetCreateManyActivityInput = { companyId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; personId?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetCreateManyActivityInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type ActivityTargetCreateManyCompanyInput = { activityId: Scalars['String']; createdAt?: InputMaybe; id?: InputMaybe; personId?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetCreateManyCompanyInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type ActivityTargetCreateManyPersonInput = { activityId: Scalars['String']; companyId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetCreateManyPersonInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type ActivityTargetCreateManyWorkspaceInput = { activityId: Scalars['String']; companyId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; personId?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetCreateManyWorkspaceInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type ActivityTargetCreateNestedManyWithoutActivityInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; }; export type ActivityTargetCreateNestedManyWithoutCompanyInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; }; export type ActivityTargetCreateNestedManyWithoutPersonInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; }; export type ActivityTargetCreateOrConnectWithoutActivityInput = { create: ActivityTargetCreateWithoutActivityInput; where: ActivityTargetWhereUniqueInput; }; export type ActivityTargetCreateOrConnectWithoutCompanyInput = { create: ActivityTargetCreateWithoutCompanyInput; where: ActivityTargetWhereUniqueInput; }; export type ActivityTargetCreateOrConnectWithoutPersonInput = { create: ActivityTargetCreateWithoutPersonInput; where: ActivityTargetWhereUniqueInput; }; export type ActivityTargetCreateOrConnectWithoutWorkspaceInput = { create: ActivityTargetCreateWithoutWorkspaceInput; where: ActivityTargetWhereUniqueInput; }; export type ActivityTargetCreateWithoutActivityInput = { company?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; person?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetCreateWithoutCompanyInput = { activity: ActivityCreateNestedOneWithoutActivityTargetsInput; createdAt?: InputMaybe; id?: InputMaybe; person?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetCreateWithoutPersonInput = { activity: ActivityCreateNestedOneWithoutActivityTargetsInput; company?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetCreateWithoutWorkspaceInput = { activity: ActivityCreateNestedOneWithoutActivityTargetsInput; company?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; person?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type ActivityTargetOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type ActivityTargetScalarWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; activityId?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; personId?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetUpdateManyWithoutActivityNestedInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; delete?: InputMaybe>; deleteMany?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ActivityTargetUpdateManyWithoutCompanyNestedInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; delete?: InputMaybe>; deleteMany?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ActivityTargetUpdateManyWithoutPersonNestedInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; delete?: InputMaybe>; deleteMany?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ActivityTargetUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; delete?: InputMaybe>; deleteMany?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ActivityTargetWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; activity?: InputMaybe; activityId?: InputMaybe; company?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; person?: InputMaybe; personId?: InputMaybe; updatedAt?: InputMaybe; }; export type ActivityTargetWhereUniqueInput = { id?: InputMaybe; }; export enum ActivityType { Note = 'Note', Task = 'Task' } export type ActivityUpdateInput = { activityTargets?: InputMaybe; assignee?: InputMaybe; attachments?: InputMaybe; author?: InputMaybe; body?: InputMaybe; comments?: InputMaybe; completedAt?: InputMaybe; createdAt?: InputMaybe; dueAt?: InputMaybe; id?: InputMaybe; reminderAt?: InputMaybe; title?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAssignee?: InputMaybe; workspaceMemberAuthor?: InputMaybe; }; export type ActivityUpdateManyWithoutAssigneeNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ActivityUpdateManyWithoutAuthorNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ActivityUpdateManyWithoutWorkspaceMemberAssigneeNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ActivityUpdateManyWithoutWorkspaceMemberAuthorNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ActivityUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ActivityWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; activityTargets?: InputMaybe; assignee?: InputMaybe; assigneeId?: InputMaybe; attachments?: InputMaybe; author?: InputMaybe; authorId?: InputMaybe; body?: InputMaybe; comments?: InputMaybe; completedAt?: InputMaybe; createdAt?: InputMaybe; dueAt?: InputMaybe; id?: InputMaybe; reminderAt?: InputMaybe; title?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAssignee?: InputMaybe; workspaceMemberAssigneeId?: InputMaybe; workspaceMemberAuthor?: InputMaybe; workspaceMemberAuthorId?: InputMaybe; }; export type ActivityWhereUniqueInput = { id?: InputMaybe; }; export type AffectedRows = { __typename?: 'AffectedRows'; count: Scalars['Int']; }; export type Analytics = { __typename?: 'Analytics'; /** Boolean that confirms query was dispatched */ success: Scalars['Boolean']; }; export type ApiKey = { __typename?: 'ApiKey'; createdAt: Scalars['DateTime']; expiresAt?: Maybe; id: Scalars['ID']; name: Scalars['String']; updatedAt: Scalars['DateTime']; }; export type ApiKeyCreateInput = { createdAt?: InputMaybe; expiresAt?: InputMaybe; id?: InputMaybe; name: Scalars['String']; updatedAt?: InputMaybe; }; export type ApiKeyOrderByWithRelationInput = { createdAt?: InputMaybe; expiresAt?: InputMaybe; id?: InputMaybe; name?: InputMaybe; updatedAt?: InputMaybe; }; export enum ApiKeyScalarFieldEnum { CreatedAt = 'createdAt', DeletedAt = 'deletedAt', ExpiresAt = 'expiresAt', Id = 'id', Name = 'name', RevokedAt = 'revokedAt', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type ApiKeyUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ApiKeyWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; createdAt?: InputMaybe; expiresAt?: InputMaybe; id?: InputMaybe; name?: InputMaybe; updatedAt?: InputMaybe; }; export type ApiKeyWhereUniqueInput = { id?: InputMaybe; }; export type Attachment = { __typename?: 'Attachment'; activity?: Maybe; activityId?: Maybe; author: User; authorId: Scalars['String']; company?: Maybe; companyId?: Maybe; createdAt: Scalars['DateTime']; fullPath: Scalars['String']; id: Scalars['ID']; name: Scalars['String']; person?: Maybe; personId?: Maybe; type: AttachmentType; updatedAt: Scalars['DateTime']; workspace: Workspace; workspaceMemberAuthor?: Maybe; workspaceMemberAuthorId?: Maybe; }; export type AttachmentCreateNestedManyWithoutActivityInput = { connect?: InputMaybe>; }; export type AttachmentCreateNestedManyWithoutCompanyInput = { connect?: InputMaybe>; }; export type AttachmentCreateNestedManyWithoutPersonInput = { 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 AttachmentUpdateManyWithoutCompanyNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type AttachmentUpdateManyWithoutPersonNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type AttachmentUpdateManyWithoutWorkspaceMemberAuthorNestedInput = { 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; companyId?: InputMaybe; createdAt?: InputMaybe; fullPath?: InputMaybe; id?: InputMaybe; name?: InputMaybe; personId?: InputMaybe; type?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAuthor?: InputMaybe; workspaceMemberAuthorId?: 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; dataModelSettingsEnabled: Scalars['Boolean']; debugMode: Scalars['Boolean']; developersSettingsEnabled: Scalars['Boolean']; flexibleBackendEnabled: Scalars['Boolean']; signInPrefilled: Scalars['Boolean']; support: Support; telemetry: Telemetry; }; export enum ColorScheme { Dark = 'Dark', Light = 'Light', System = 'System' } export type Comment = { __typename?: 'Comment'; activity?: Maybe; activityId?: Maybe; author: User; authorId: Scalars['String']; body: Scalars['String']; commentThreadId?: Maybe; createdAt: Scalars['DateTime']; id: Scalars['ID']; updatedAt: Scalars['DateTime']; workspaceMemberAuthor?: Maybe; workspaceMemberAuthorId?: Maybe; }; export type CommentCreateInput = { activity?: InputMaybe; author: UserCreateNestedOneWithoutCommentsInput; body: Scalars['String']; commentThreadId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAuthor?: InputMaybe; }; export type CommentCreateNestedManyWithoutActivityInput = { connect?: InputMaybe>; }; export type CommentListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type CommentOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type CommentUpdateManyWithoutActivityNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentUpdateManyWithoutAuthorNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentUpdateManyWithoutWorkspaceMemberAuthorNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CommentWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; activity?: InputMaybe; activityId?: InputMaybe; author?: InputMaybe; authorId?: InputMaybe; body?: InputMaybe; commentThreadId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAuthor?: InputMaybe; workspaceMemberAuthorId?: InputMaybe; }; export type CommentWhereUniqueInput = { id?: InputMaybe; }; export type Company = { __typename?: 'Company'; ActivityTarget?: Maybe>; Attachment?: Maybe>; Favorite?: Maybe>; PipelineProgress?: Maybe>; _activityCount: Scalars['Int']; accountOwner?: Maybe; accountOwnerId?: Maybe; activities: Array; address: Scalars['String']; annualRecurringRevenue?: Maybe; comments: Array; createdAt: Scalars['DateTime']; domainName: Scalars['String']; employees?: Maybe; id: Scalars['ID']; idealCustomerProfile: Scalars['Boolean']; linkedinUrl?: Maybe; name: Scalars['String']; people?: Maybe>; updatedAt: Scalars['DateTime']; workspaceMemberAccountOwner?: Maybe; workspaceMemberAccountOwnerId?: Maybe; xUrl?: Maybe; }; export type CompanyCreateInput = { ActivityTarget?: InputMaybe; Attachment?: InputMaybe; Favorite?: InputMaybe; PipelineProgress?: InputMaybe; accountOwner?: InputMaybe; address: Scalars['String']; annualRecurringRevenue?: InputMaybe; createdAt?: InputMaybe; domainName: Scalars['String']; employees?: InputMaybe; id?: InputMaybe; idealCustomerProfile?: InputMaybe; linkedinUrl?: InputMaybe; name: Scalars['String']; people?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAccountOwner?: InputMaybe; xUrl?: InputMaybe; }; export type CompanyCreateManyInput = { accountOwnerId?: InputMaybe; address: Scalars['String']; annualRecurringRevenue?: InputMaybe; createdAt?: InputMaybe; domainName: Scalars['String']; employees?: InputMaybe; id?: InputMaybe; idealCustomerProfile?: InputMaybe; linkedinUrl?: InputMaybe; name: Scalars['String']; updatedAt?: InputMaybe; workspaceMemberAccountOwnerId?: InputMaybe; xUrl?: InputMaybe; }; export type CompanyCreateNestedOneWithoutActivityTargetInput = { connect?: InputMaybe; }; export type CompanyCreateNestedOneWithoutPeopleInput = { connect?: InputMaybe; }; export type CompanyCreateNestedOneWithoutPipelineProgressInput = { connect?: InputMaybe; }; export type CompanyListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type CompanyOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type CompanyOrderByWithRelationInput = { ActivityTarget?: InputMaybe; Attachment?: InputMaybe; Favorite?: InputMaybe; PipelineProgress?: InputMaybe; accountOwner?: InputMaybe; accountOwnerId?: InputMaybe; address?: InputMaybe; annualRecurringRevenue?: InputMaybe; createdAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; idealCustomerProfile?: InputMaybe; linkedinUrl?: InputMaybe; name?: InputMaybe; people?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAccountOwner?: InputMaybe; workspaceMemberAccountOwnerId?: InputMaybe; xUrl?: InputMaybe; }; export type CompanyRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum CompanyScalarFieldEnum { AccountOwnerId = 'accountOwnerId', Address = 'address', AnnualRecurringRevenue = 'annualRecurringRevenue', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', DomainName = 'domainName', Employees = 'employees', Id = 'id', IdealCustomerProfile = 'idealCustomerProfile', LinkedinUrl = 'linkedinUrl', Name = 'name', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId', WorkspaceMemberAccountOwnerId = 'workspaceMemberAccountOwnerId', XUrl = 'xUrl' } export type CompanyUpdateInput = { ActivityTarget?: InputMaybe; Attachment?: InputMaybe; Favorite?: InputMaybe; PipelineProgress?: InputMaybe; accountOwner?: InputMaybe; address?: InputMaybe; annualRecurringRevenue?: InputMaybe; createdAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; idealCustomerProfile?: InputMaybe; linkedinUrl?: InputMaybe; name?: InputMaybe; people?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAccountOwner?: InputMaybe; xUrl?: InputMaybe; }; export type CompanyUpdateManyWithoutAccountOwnerNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CompanyUpdateManyWithoutWorkspaceMemberAccountOwnerNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CompanyUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type CompanyUpdateOneWithoutPeopleNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type CompanyUpdateOneWithoutPipelineProgressNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type CompanyWhereInput = { AND?: InputMaybe>; ActivityTarget?: InputMaybe; Attachment?: InputMaybe; Favorite?: InputMaybe; NOT?: InputMaybe>; OR?: InputMaybe>; PipelineProgress?: InputMaybe; accountOwner?: InputMaybe; accountOwnerId?: InputMaybe; address?: InputMaybe; annualRecurringRevenue?: InputMaybe; createdAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; idealCustomerProfile?: InputMaybe; linkedinUrl?: InputMaybe; name?: InputMaybe; people?: InputMaybe; updatedAt?: InputMaybe; workspaceMemberAccountOwner?: InputMaybe; workspaceMemberAccountOwnerId?: InputMaybe; xUrl?: InputMaybe; }; export type CompanyWhereUniqueInput = { id?: InputMaybe; }; export enum Currency { Aed = 'AED', Afn = 'AFN', All = 'ALL', Amd = 'AMD', Ang = 'ANG', Aoa = 'AOA', Ars = 'ARS', Aud = 'AUD', Awg = 'AWG', Azn = 'AZN', Bam = 'BAM', Bbd = 'BBD', Bdt = 'BDT', Bgn = 'BGN', Bhd = 'BHD', Bif = 'BIF', Bmd = 'BMD', Bnd = 'BND', Bob = 'BOB', Bov = 'BOV', Brl = 'BRL', Bsd = 'BSD', Btn = 'BTN', Bwp = 'BWP', Byn = 'BYN', Bzd = 'BZD', Cad = 'CAD', Cdf = 'CDF', Chf = 'CHF', Clf = 'CLF', Clp = 'CLP', Cny = 'CNY', Cop = 'COP', Cou = 'COU', Crc = 'CRC', Cuc = 'CUC', Cup = 'CUP', Cve = 'CVE', Czk = 'CZK', Djf = 'DJF', Dkk = 'DKK', Dop = 'DOP', Dzd = 'DZD', Egp = 'EGP', Ern = 'ERN', Etb = 'ETB', Eur = 'EUR', Fjd = 'FJD', Fkp = 'FKP', Gbp = 'GBP', Gel = 'GEL', Ghs = 'GHS', Gip = 'GIP', Gmd = 'GMD', Gnf = 'GNF', Gtq = 'GTQ', Gyd = 'GYD', Hkd = 'HKD', Hnl = 'HNL', Hrk = 'HRK', Htg = 'HTG', Huf = 'HUF', Idr = 'IDR', Ils = 'ILS', Inr = 'INR', Iqd = 'IQD', Irr = 'IRR', Isk = 'ISK', Jmd = 'JMD', Jod = 'JOD', Jpy = 'JPY', Kes = 'KES', Kgs = 'KGS', Khr = 'KHR', Kmf = 'KMF', Kpw = 'KPW', Krw = 'KRW', Kwd = 'KWD', Kyd = 'KYD', Kzt = 'KZT', Lak = 'LAK', Lbp = 'LBP', Lkr = 'LKR', Lrd = 'LRD', Lsl = 'LSL', Lyd = 'LYD', Mad = 'MAD', Mdl = 'MDL', Mga = 'MGA', Mkd = 'MKD', Mmk = 'MMK', Mnt = 'MNT', Mop = 'MOP', Mro = 'MRO', Mru = 'MRU', Mur = 'MUR', Mvr = 'MVR', Mwk = 'MWK', Mxn = 'MXN', Mxv = 'MXV', Myr = 'MYR', Mzn = 'MZN', Nad = 'NAD', Ngn = 'NGN', Nio = 'NIO', Nok = 'NOK', Npr = 'NPR', Nzd = 'NZD', Omr = 'OMR', Pab = 'PAB', Pen = 'PEN', Pgk = 'PGK', Php = 'PHP', Pkr = 'PKR', Pln = 'PLN', Pyg = 'PYG', Qar = 'QAR', Ron = 'RON', Rsd = 'RSD', Rub = 'RUB', Rwf = 'RWF', Sar = 'SAR', Sbd = 'SBD', Scr = 'SCR', Sdd = 'SDD', Sdg = 'SDG', Sek = 'SEK', Sgd = 'SGD', Shp = 'SHP', Sll = 'SLL', Sos = 'SOS', Srd = 'SRD', Ssp = 'SSP', Std = 'STD', Stn = 'STN', Svc = 'SVC', Syp = 'SYP', Szl = 'SZL', Thb = 'THB', Tjs = 'TJS', Tmm = 'TMM', Tmt = 'TMT', Tnd = 'TND', Top = 'TOP', Try = 'TRY', Ttd = 'TTD', Twd = 'TWD', Tzs = 'TZS', Uah = 'UAH', Ugx = 'UGX', Usd = 'USD', Uyu = 'UYU', Uzs = 'UZS', Vef = 'VEF', Ves = 'VES', Vnd = 'VND', Vuv = 'VUV', Wst = 'WST', Xaf = 'XAF', Xcd = 'XCD', Xof = 'XOF', Xpf = 'XPF', Xsu = 'XSU', Xua = 'XUA', Yer = 'YER', Zar = 'ZAR', Zmw = 'ZMW', Zwl = 'ZWL' } export type CursorPaging = { /** Paginate after opaque cursor */ after?: InputMaybe; /** Paginate before opaque cursor */ before?: InputMaybe; /** Paginate first */ first?: InputMaybe; /** Paginate last */ last?: 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 EnumCurrencyFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type EnumPipelineProgressableTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type EnumViewFilterOperandFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type EnumViewSortDirectionFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type EnumViewTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type Favorite = { __typename?: 'Favorite'; company?: Maybe; companyId?: Maybe; id: Scalars['ID']; person?: Maybe; personId?: Maybe; position: Scalars['Float']; workspaceId?: Maybe; workspaceMember?: Maybe; workspaceMemberId?: Maybe; }; export type FavoriteCreateNestedManyWithoutCompanyInput = { connect?: InputMaybe>; }; export type FavoriteCreateNestedManyWithoutPersonInput = { connect?: InputMaybe>; }; export type FavoriteListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type FavoriteMutationForCompanyArgs = { companyId: Scalars['String']; position: Scalars['Float']; }; export type FavoriteMutationForPersonArgs = { personId: Scalars['String']; position: Scalars['Float']; }; export type FavoriteOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type FavoriteUpdateInput = { id?: InputMaybe; position?: InputMaybe; workspaceId?: InputMaybe; }; export type FavoriteUpdateManyWithoutCompanyNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type FavoriteUpdateManyWithoutPersonNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type FavoriteUpdateManyWithoutWorkspaceMemberNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type FavoriteWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; companyId?: InputMaybe; id?: InputMaybe; personId?: InputMaybe; position?: InputMaybe; workspaceId?: InputMaybe; workspaceMemberId?: InputMaybe; }; export type FavoriteWhereUniqueInput = { id?: InputMaybe; }; export type FieldConnection = { __typename?: 'FieldConnection'; /** Array of edges. */ edges: Array; /** Paging information */ pageInfo: PageInfo; /** Fetch total count of records */ totalCount: Scalars['Int']; }; export type FieldDeleteResponse = { __typename?: 'FieldDeleteResponse'; createdAt?: Maybe; description?: Maybe; icon?: Maybe; id?: Maybe; isActive?: Maybe; isCustom?: Maybe; isNullable?: Maybe; label?: Maybe; name?: Maybe; /** @deprecated Use label name instead */ placeholder?: Maybe; type?: Maybe; updatedAt?: Maybe; }; export enum FileFolder { Attachment = 'Attachment', PersonPicture = 'PersonPicture', ProfilePicture = 'ProfilePicture', WorkspaceLogo = 'WorkspaceLogo' } export type FloatFilter = { 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'; UpdateOneWorkspaceMember: WorkspaceMember; allowImpersonation: WorkspaceMember; challenge: LoginToken; createEvent: Analytics; createFavoriteForCompany: Favorite; createFavoriteForPerson: Favorite; createManyCompany: AffectedRows; createManyPerson: AffectedRows; createManyView: AffectedRows; createManyViewField: AffectedRows; createManyViewFilter: AffectedRows; createManyViewSort: AffectedRows; createOneActivity: Activity; createOneApiKey: AuthToken; createOneComment: Comment; createOneCompany: Company; createOneField: Field; createOneObject: Object; createOnePerson: Person; createOnePipelineProgress: PipelineProgress; createOnePipelineStage: PipelineStage; createOneView: View; createOneViewField: ViewField; deleteCurrentWorkspace: Workspace; deleteFavorite: Favorite; deleteManyActivities: AffectedRows; deleteManyCompany: AffectedRows; deleteManyPerson: AffectedRows; deleteManyPipelineProgress: AffectedRows; deleteManyView: AffectedRows; deleteManyViewFilter: AffectedRows; deleteManyViewSort: AffectedRows; deleteOneField: FieldDeleteResponse; deleteOneObject: ObjectDeleteResponse; deleteOnePipelineStage: PipelineStage; deleteOneView: View; deleteUserAccount: User; deleteWorkspaceMember: WorkspaceMember; impersonate: Verify; renewToken: AuthTokens; revokeOneApiKey: ApiKey; signUp: LoginToken; updateOneActivity: Activity; updateOneCompany?: Maybe; updateOneFavorites: Favorite; updateOneField: Field; updateOneObject: Object; updateOnePerson?: Maybe; updateOnePipelineProgress?: Maybe; updateOnePipelineStage?: Maybe; updateOneView: View; updateOneViewField: ViewField; updateOneViewFilter: ViewFilter; updateOneViewSort: ViewSort; updateUser: User; updateWorkspace: Workspace; uploadAttachment: Scalars['String']; uploadFile: Scalars['String']; uploadImage: Scalars['String']; uploadPersonPicture: Scalars['String']; uploadProfilePicture: Scalars['String']; uploadWorkspaceLogo: Scalars['String']; verify: Verify; }; export type MutationUpdateOneWorkspaceMemberArgs = { data: WorkspaceMemberUpdateInput; where: WorkspaceMemberWhereUniqueInput; }; export type MutationAllowImpersonationArgs = { allowImpersonation: Scalars['Boolean']; }; export type MutationChallengeArgs = { email: Scalars['String']; password: Scalars['String']; }; export type MutationCreateEventArgs = { data: Scalars['JSON']; type: Scalars['String']; }; export type MutationCreateFavoriteForCompanyArgs = { data: FavoriteMutationForCompanyArgs; }; export type MutationCreateFavoriteForPersonArgs = { data: FavoriteMutationForPersonArgs; }; export type MutationCreateManyCompanyArgs = { data: Array; skipDuplicates?: InputMaybe; }; export type MutationCreateManyPersonArgs = { data: Array; skipDuplicates?: InputMaybe; }; export type MutationCreateManyViewArgs = { data: Array; skipDuplicates?: InputMaybe; }; export type MutationCreateManyViewFieldArgs = { data: Array; skipDuplicates?: InputMaybe; }; export type MutationCreateManyViewFilterArgs = { data: Array; skipDuplicates?: InputMaybe; }; export type MutationCreateManyViewSortArgs = { data: Array; skipDuplicates?: InputMaybe; }; export type MutationCreateOneActivityArgs = { data: ActivityCreateInput; }; export type MutationCreateOneApiKeyArgs = { data: ApiKeyCreateInput; }; export type MutationCreateOneCommentArgs = { data: CommentCreateInput; }; export type MutationCreateOneCompanyArgs = { data: CompanyCreateInput; }; export type MutationCreateOnePersonArgs = { data: PersonCreateInput; }; export type MutationCreateOnePipelineProgressArgs = { data: PipelineProgressCreateInput; }; export type MutationCreateOnePipelineStageArgs = { data: PipelineStageCreateInput; }; export type MutationCreateOneViewArgs = { data: ViewCreateInput; }; export type MutationCreateOneViewFieldArgs = { data: ViewFieldCreateInput; }; export type MutationDeleteFavoriteArgs = { where: FavoriteWhereInput; }; export type MutationDeleteManyActivitiesArgs = { where?: InputMaybe; }; export type MutationDeleteManyCompanyArgs = { where?: InputMaybe; }; export type MutationDeleteManyPersonArgs = { where?: InputMaybe; }; export type MutationDeleteManyPipelineProgressArgs = { where?: InputMaybe; }; export type MutationDeleteManyViewArgs = { where?: InputMaybe; }; export type MutationDeleteManyViewFilterArgs = { where?: InputMaybe; }; export type MutationDeleteManyViewSortArgs = { where?: InputMaybe; }; export type MutationDeleteOnePipelineStageArgs = { where: PipelineStageWhereUniqueInput; }; export type MutationDeleteOneViewArgs = { where: ViewWhereUniqueInput; }; export type MutationDeleteWorkspaceMemberArgs = { where: WorkspaceMemberWhereUniqueInput; }; export type MutationImpersonateArgs = { userId: Scalars['String']; }; export type MutationRenewTokenArgs = { refreshToken: Scalars['String']; }; export type MutationRevokeOneApiKeyArgs = { where: ApiKeyWhereUniqueInput; }; export type MutationSignUpArgs = { email: Scalars['String']; password: Scalars['String']; workspaceInviteHash?: InputMaybe; }; export type MutationUpdateOneActivityArgs = { data: ActivityUpdateInput; where: ActivityWhereUniqueInput; }; export type MutationUpdateOneCompanyArgs = { data: CompanyUpdateInput; where: CompanyWhereUniqueInput; }; export type MutationUpdateOneFavoritesArgs = { data: FavoriteUpdateInput; where: FavoriteWhereUniqueInput; }; export type MutationUpdateOnePersonArgs = { data: PersonUpdateInput; where: PersonWhereUniqueInput; }; export type MutationUpdateOnePipelineProgressArgs = { data: PipelineProgressUpdateInput; where: PipelineProgressWhereUniqueInput; }; export type MutationUpdateOnePipelineStageArgs = { data: PipelineStageUpdateInput; where: PipelineStageWhereUniqueInput; }; export type MutationUpdateOneViewArgs = { data: ViewUpdateInput; where: ViewWhereUniqueInput; }; export type MutationUpdateOneViewFieldArgs = { data: ViewFieldUpdateInput; where: ViewFieldWhereUniqueInput; }; export type MutationUpdateOneViewFilterArgs = { data: ViewFilterUpdateInput; where: ViewFilterWhereUniqueInput; }; export type MutationUpdateOneViewSortArgs = { data: ViewSortUpdateInput; where: ViewSortWhereUniqueInput; }; export type MutationUpdateUserArgs = { data: UserUpdateInput; where: UserWhereUniqueInput; }; export type MutationUpdateWorkspaceArgs = { data: WorkspaceUpdateInput; }; export type MutationUploadAttachmentArgs = { activityId: Scalars['String']; companyId: Scalars['String']; file: Scalars['Upload']; personId: Scalars['String']; }; export type MutationUploadFileArgs = { file: Scalars['Upload']; fileFolder?: InputMaybe; }; export type MutationUploadImageArgs = { file: Scalars['Upload']; fileFolder?: InputMaybe; }; export type MutationUploadPersonPictureArgs = { file: Scalars['Upload']; id: Scalars['String']; }; 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 NestedEnumCurrencyFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedEnumPipelineProgressableTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedEnumViewFilterOperandFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedEnumViewSortDirectionFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedEnumViewTypeFilter = { equals?: InputMaybe; in?: InputMaybe>; not?: InputMaybe; notIn?: InputMaybe>; }; export type NestedFloatFilter = { 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 ObjectConnection = { __typename?: 'ObjectConnection'; /** Array of edges. */ edges: Array; /** Paging information */ pageInfo: PageInfo; /** Fetch total count of records */ totalCount: Scalars['Int']; }; export type ObjectDeleteResponse = { __typename?: 'ObjectDeleteResponse'; createdAt?: Maybe; dataSourceId?: Maybe; description?: Maybe; icon?: Maybe; id?: Maybe; isActive?: Maybe; isCustom?: Maybe; labelPlural?: Maybe; labelSingular?: Maybe; namePlural?: Maybe; nameSingular?: Maybe; updatedAt?: Maybe; }; export type ObjectFieldsConnection = { __typename?: 'ObjectFieldsConnection'; /** Array of edges. */ edges: Array; /** Paging information */ pageInfo: PageInfo; /** Fetch total count of records */ totalCount: Scalars['Int']; }; export type PageInfo = { __typename?: 'PageInfo'; /** The cursor of the last returned record. */ endCursor?: Maybe; /** true if paging forward and there are more records. */ hasNextPage?: Maybe; /** true if paging backwards and there are more records. */ hasPreviousPage?: Maybe; /** The cursor of the first returned record. */ startCursor?: Maybe; }; export type Person = { __typename?: 'Person'; ActivityTarget?: Maybe>; Attachment?: Maybe>; Favorite?: Maybe>; PipelineProgress?: Maybe>; _activityCount: Scalars['Int']; activities: Array; avatarUrl?: Maybe; city?: Maybe; comments: Array; company?: Maybe; companyId?: Maybe; contactPipelineProgresses?: Maybe>; createdAt: Scalars['DateTime']; displayName: Scalars['String']; email?: Maybe; firstName?: Maybe; id: Scalars['ID']; jobTitle?: Maybe; lastName?: Maybe; linkedinUrl?: Maybe; phone?: Maybe; updatedAt: Scalars['DateTime']; xUrl?: Maybe; }; export type PersonCreateInput = { ActivityTarget?: InputMaybe; Attachment?: InputMaybe; Favorite?: InputMaybe; PipelineProgress?: InputMaybe; avatarUrl?: InputMaybe; city?: InputMaybe; company?: InputMaybe; contactPipelineProgresses?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; jobTitle?: InputMaybe; lastName?: InputMaybe; linkedinUrl?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; xUrl?: InputMaybe; }; export type PersonCreateManyInput = { avatarUrl?: InputMaybe; city?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; jobTitle?: InputMaybe; lastName?: InputMaybe; linkedinUrl?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; xUrl?: InputMaybe; }; export type PersonCreateNestedManyWithoutCompanyInput = { connect?: InputMaybe>; }; export type PersonCreateNestedOneWithoutActivityTargetInput = { connect?: InputMaybe; }; export type PersonCreateNestedOneWithoutContactPipelineProgressesInput = { connect?: InputMaybe; }; export type PersonCreateNestedOneWithoutPipelineProgressInput = { connect?: InputMaybe; }; export type PersonListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type PersonOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type PersonOrderByWithRelationInput = { ActivityTarget?: InputMaybe; Attachment?: InputMaybe; Favorite?: InputMaybe; PipelineProgress?: InputMaybe; avatarUrl?: InputMaybe; city?: InputMaybe; company?: InputMaybe; companyId?: InputMaybe; contactPipelineProgresses?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; jobTitle?: InputMaybe; lastName?: InputMaybe; linkedinUrl?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; xUrl?: InputMaybe; }; export type PersonRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum PersonScalarFieldEnum { AvatarUrl = 'avatarUrl', 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', XUrl = 'xUrl' } export type PersonUpdateInput = { ActivityTarget?: InputMaybe; Attachment?: InputMaybe; Favorite?: InputMaybe; PipelineProgress?: InputMaybe; avatarUrl?: InputMaybe; city?: InputMaybe; company?: InputMaybe; contactPipelineProgresses?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; jobTitle?: InputMaybe; lastName?: InputMaybe; linkedinUrl?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; xUrl?: InputMaybe; }; export type PersonUpdateManyWithoutCompanyNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PersonUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PersonUpdateOneWithoutContactPipelineProgressesNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type PersonUpdateOneWithoutPipelineProgressNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type PersonWhereInput = { AND?: InputMaybe>; ActivityTarget?: InputMaybe; Attachment?: InputMaybe; Favorite?: InputMaybe; NOT?: InputMaybe>; OR?: InputMaybe>; PipelineProgress?: InputMaybe; avatarUrl?: InputMaybe; city?: InputMaybe; company?: InputMaybe; companyId?: InputMaybe; contactPipelineProgresses?: InputMaybe; createdAt?: InputMaybe; email?: InputMaybe; firstName?: InputMaybe; id?: InputMaybe; jobTitle?: InputMaybe; lastName?: InputMaybe; linkedinUrl?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; xUrl?: InputMaybe; }; export type PersonWhereUniqueInput = { id?: InputMaybe; }; export type Pipeline = { __typename?: 'Pipeline'; createdAt: Scalars['DateTime']; currency: Currency; 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 PipelineCreateNestedOneWithoutPipelineStagesInput = { connect?: InputMaybe; }; export type PipelineOrderByWithRelationInput = { createdAt?: InputMaybe; currency?: InputMaybe; icon?: InputMaybe; id?: InputMaybe; name?: InputMaybe; pipelineProgressableType?: InputMaybe; pipelineProgresses?: InputMaybe; pipelineStages?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineProgress = { __typename?: 'PipelineProgress'; amount?: Maybe; closeDate?: Maybe; company?: Maybe; companyId?: Maybe; createdAt: Scalars['DateTime']; id: Scalars['ID']; person?: Maybe; personId?: Maybe; pipeline: Pipeline; pipelineId: Scalars['String']; pipelineStage: PipelineStage; pipelineStageId: Scalars['String']; pointOfContact?: Maybe; pointOfContactId?: Maybe; probability?: Maybe; updatedAt: Scalars['DateTime']; }; export type PipelineProgressCreateInput = { amount?: InputMaybe; closeDate?: InputMaybe; company?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; person?: InputMaybe; pipeline: PipelineCreateNestedOneWithoutPipelineProgressesInput; pipelineStage: PipelineStageCreateNestedOneWithoutPipelineProgressesInput; pointOfContact?: InputMaybe; probability?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineProgressCreateNestedManyWithoutCompanyInput = { connect?: InputMaybe>; }; export type PipelineProgressCreateNestedManyWithoutPersonInput = { connect?: InputMaybe>; }; export type PipelineProgressCreateNestedManyWithoutPipelineStageInput = { connect?: 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; company?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; person?: InputMaybe; personId?: InputMaybe; pipeline?: InputMaybe; pipelineId?: InputMaybe; pipelineStage?: InputMaybe; pipelineStageId?: InputMaybe; pointOfContact?: InputMaybe; pointOfContactId?: InputMaybe; probability?: InputMaybe; updatedAt?: InputMaybe; }; export enum PipelineProgressScalarFieldEnum { Amount = 'amount', CloseDate = 'closeDate', CompanyId = 'companyId', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Id = 'id', PersonId = 'personId', PipelineId = 'pipelineId', PipelineStageId = 'pipelineStageId', PointOfContactId = 'pointOfContactId', Probability = 'probability', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type PipelineProgressUpdateInput = { amount?: InputMaybe; closeDate?: InputMaybe; company?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; person?: InputMaybe; pipeline?: InputMaybe; pipelineStage?: InputMaybe; pointOfContact?: InputMaybe; probability?: InputMaybe; updatedAt?: InputMaybe; }; export type PipelineProgressUpdateManyWithoutCompanyNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type PipelineProgressUpdateManyWithoutPersonNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: 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; company?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; person?: InputMaybe; personId?: InputMaybe; pipeline?: InputMaybe; pipelineId?: InputMaybe; pipelineStage?: InputMaybe; pipelineStageId?: InputMaybe; pointOfContact?: InputMaybe; pointOfContactId?: InputMaybe; probability?: 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', Currency = 'currency', 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 PipelineStageCreateInput = { color: Scalars['String']; createdAt?: InputMaybe; id?: InputMaybe; index?: InputMaybe; name: Scalars['String']; pipeline: PipelineCreateNestedOneWithoutPipelineStagesInput; pipelineProgresses?: InputMaybe; type: Scalars['String']; updatedAt?: InputMaybe; }; 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; currency?: 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; field: Field; fields: FieldConnection; findFavorites: Array; findManyActivities: Array; findManyApiKey: Array; findManyCompany: Array; findManyPerson: Array; findManyPipeline: Array; findManyPipelineProgress: Array; findManyPipelineStage: Array; findManyUser: Array; findManyView: Array; findManyViewField: Array; findManyViewFilter: Array; findManyViewSort: Array; findManyWorkspaceMember: Array; findUniqueCompany: Company; findUniquePerson: Person; findWorkspaceFromInviteHash: Workspace; object: Object; objects: ObjectConnection; }; export type QueryCheckUserExistsArgs = { email: Scalars['String']; }; export type QueryCheckWorkspaceInviteHashIsValidArgs = { inviteHash: Scalars['String']; }; export type QueryFindManyActivitiesArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyApiKeyArgs = { 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 QueryFindManyViewArgs = { 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 QueryFindManyViewFilterArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type QueryFindManyViewSortArgs = { 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 type QueryFindWorkspaceFromInviteHashArgs = { inviteHash: 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 Support = { __typename?: 'Support'; supportDriver: Scalars['String']; supportFrontChatId?: Maybe; }; export type Telemetry = { __typename?: 'Telemetry'; anonymizationEnabled: Scalars['Boolean']; enabled: Scalars['Boolean']; }; export type User = { __typename?: 'User'; assignedActivities?: Maybe>; authoredActivities?: Maybe>; authoredAttachments?: Maybe>; avatarUrl?: Maybe; canImpersonate: Scalars['Boolean']; 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']; supportUserHash?: Maybe; updatedAt: Scalars['DateTime']; workspaceMember?: Maybe; }; export type UserCreateNestedOneWithoutAssignedActivitiesInput = { connect?: InputMaybe; }; export type UserCreateNestedOneWithoutAuthoredActivitiesInput = { connect?: InputMaybe; }; export type UserCreateNestedOneWithoutCommentsInput = { connect?: InputMaybe; }; export type UserCreateNestedOneWithoutCompaniesInput = { connect?: InputMaybe; }; export type UserExists = { __typename?: 'UserExists'; exists: Scalars['Boolean']; }; export type UserOrderByWithRelationInput = { assignedActivities?: InputMaybe; authoredActivities?: InputMaybe; authoredAttachments?: InputMaybe; avatarUrl?: InputMaybe; canImpersonate?: 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', CanImpersonate = 'canImpersonate', 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'; WorkspaceMember?: Maybe>; colorScheme: ColorScheme; createdAt: Scalars['DateTime']; id: Scalars['ID']; locale: Scalars['String']; updatedAt: Scalars['DateTime']; user?: Maybe; }; export type UserSettingsOrderByWithRelationInput = { WorkspaceMember?: InputMaybe; 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 UserSettingsUpdateOneWithoutWorkspaceMemberNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type UserSettingsUpdateWithoutUserInput = { WorkspaceMember?: InputMaybe; colorScheme?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; locale?: InputMaybe; updatedAt?: InputMaybe; }; export type UserSettingsWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; WorkspaceMember?: InputMaybe; colorScheme?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; locale?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; }; export type UserSettingsWhereUniqueInput = { id?: InputMaybe; }; export type UserUpdateInput = { assignedActivities?: InputMaybe; authoredActivities?: InputMaybe; authoredAttachments?: InputMaybe; avatarUrl?: InputMaybe; canImpersonate?: 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 UserUpdateOneRequiredWithoutAuthoredActivitiesNestedInput = { connect?: InputMaybe; }; export type UserUpdateOneRequiredWithoutWorkspaceMemberNestedInput = { connect?: InputMaybe; }; export type UserUpdateOneWithoutAssignedActivitiesNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type UserUpdateOneWithoutCompaniesNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type UserWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; assignedActivities?: InputMaybe; authoredActivities?: InputMaybe; authoredAttachments?: InputMaybe; avatarUrl?: InputMaybe; canImpersonate?: 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 View = { __typename?: 'View'; fields?: Maybe>; filters?: Maybe>; id: Scalars['ID']; name: Scalars['String']; objectId: Scalars['String']; sorts?: Maybe>; type: ViewType; }; export type ViewCreateInput = { fields?: InputMaybe; filters?: InputMaybe; id?: InputMaybe; name: Scalars['String']; objectId: Scalars['String']; sorts?: InputMaybe; type: ViewType; }; export type ViewCreateManyInput = { id?: InputMaybe; name: Scalars['String']; objectId: Scalars['String']; type: ViewType; }; export type ViewCreateNestedOneWithoutFieldsInput = { connect?: InputMaybe; }; export type ViewField = { __typename?: 'ViewField'; index: Scalars['Float']; isVisible: Scalars['Boolean']; key: Scalars['String']; name: Scalars['String']; objectId: Scalars['String']; size?: Maybe; view: View; viewId: Scalars['String']; }; export type ViewFieldCreateInput = { index: Scalars['Float']; isVisible: Scalars['Boolean']; key: Scalars['String']; name: Scalars['String']; objectId: Scalars['String']; size?: InputMaybe; view: ViewCreateNestedOneWithoutFieldsInput; }; export type ViewFieldCreateManyInput = { index: Scalars['Float']; isVisible: Scalars['Boolean']; key: Scalars['String']; name: Scalars['String']; objectId: Scalars['String']; size?: InputMaybe; viewId: Scalars['String']; }; export type ViewFieldCreateNestedManyWithoutViewInput = { connect?: InputMaybe>; }; export type ViewFieldListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type ViewFieldOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type ViewFieldOrderByWithRelationInput = { index?: InputMaybe; isVisible?: InputMaybe; key?: InputMaybe; name?: InputMaybe; objectId?: InputMaybe; size?: InputMaybe; view?: InputMaybe; viewId?: InputMaybe; }; export enum ViewFieldScalarFieldEnum { Index = 'index', IsVisible = 'isVisible', Key = 'key', Name = 'name', ObjectId = 'objectId', Size = 'size', ViewId = 'viewId', WorkspaceId = 'workspaceId' } export type ViewFieldUpdateInput = { index?: InputMaybe; isVisible?: InputMaybe; key?: InputMaybe; name?: InputMaybe; objectId?: InputMaybe; size?: InputMaybe; view?: InputMaybe; }; export type ViewFieldUpdateManyWithoutViewNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ViewFieldUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ViewFieldViewIdKeyCompoundUniqueInput = { key: Scalars['String']; viewId: Scalars['String']; }; export type ViewFieldWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; index?: InputMaybe; isVisible?: InputMaybe; key?: InputMaybe; name?: InputMaybe; objectId?: InputMaybe; size?: InputMaybe; view?: InputMaybe; viewId?: InputMaybe; }; export type ViewFieldWhereUniqueInput = { viewId_key?: InputMaybe; }; export type ViewFilter = { __typename?: 'ViewFilter'; displayValue: Scalars['String']; key: Scalars['String']; name: Scalars['String']; operand: ViewFilterOperand; value: Scalars['String']; view: View; viewId: Scalars['String']; }; export type ViewFilterCreateManyInput = { displayValue: Scalars['String']; key: Scalars['String']; name: Scalars['String']; operand: ViewFilterOperand; value: Scalars['String']; viewId: Scalars['String']; }; export type ViewFilterCreateNestedManyWithoutViewInput = { connect?: InputMaybe>; }; export type ViewFilterListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export enum ViewFilterOperand { Contains = 'Contains', DoesNotContain = 'DoesNotContain', GreaterThan = 'GreaterThan', Is = 'Is', IsNot = 'IsNot', IsNotNull = 'IsNotNull', LessThan = 'LessThan' } export type ViewFilterOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type ViewFilterOrderByWithRelationInput = { displayValue?: InputMaybe; key?: InputMaybe; name?: InputMaybe; operand?: InputMaybe; value?: InputMaybe; view?: InputMaybe; viewId?: InputMaybe; }; export enum ViewFilterScalarFieldEnum { DisplayValue = 'displayValue', Key = 'key', Name = 'name', Operand = 'operand', Value = 'value', ViewId = 'viewId', WorkspaceId = 'workspaceId' } export type ViewFilterUpdateInput = { displayValue?: InputMaybe; key?: InputMaybe; name?: InputMaybe; operand?: InputMaybe; value?: InputMaybe; view?: InputMaybe; }; export type ViewFilterUpdateManyWithoutViewNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ViewFilterUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ViewFilterViewIdKeyCompoundUniqueInput = { key: Scalars['String']; viewId: Scalars['String']; }; export type ViewFilterWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; displayValue?: InputMaybe; key?: InputMaybe; name?: InputMaybe; operand?: InputMaybe; value?: InputMaybe; view?: InputMaybe; viewId?: InputMaybe; }; export type ViewFilterWhereUniqueInput = { viewId_key?: InputMaybe; }; export type ViewOrderByWithRelationInput = { fields?: InputMaybe; filters?: InputMaybe; id?: InputMaybe; name?: InputMaybe; objectId?: InputMaybe; sorts?: InputMaybe; type?: InputMaybe; }; export type ViewRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum ViewScalarFieldEnum { Id = 'id', Name = 'name', ObjectId = 'objectId', Type = 'type', WorkspaceId = 'workspaceId' } export type ViewSort = { __typename?: 'ViewSort'; direction: ViewSortDirection; key: Scalars['String']; name: Scalars['String']; view: View; viewId: Scalars['String']; }; export type ViewSortCreateManyInput = { direction: ViewSortDirection; key: Scalars['String']; name: Scalars['String']; viewId: Scalars['String']; }; export type ViewSortCreateNestedManyWithoutViewInput = { connect?: InputMaybe>; }; export enum ViewSortDirection { Asc = 'asc', Desc = 'desc' } export type ViewSortListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type ViewSortOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type ViewSortOrderByWithRelationInput = { direction?: InputMaybe; key?: InputMaybe; name?: InputMaybe; view?: InputMaybe; viewId?: InputMaybe; }; export enum ViewSortScalarFieldEnum { Direction = 'direction', Key = 'key', Name = 'name', ViewId = 'viewId', WorkspaceId = 'workspaceId' } export type ViewSortUpdateInput = { direction?: InputMaybe; key?: InputMaybe; name?: InputMaybe; view?: InputMaybe; }; export type ViewSortUpdateManyWithoutViewNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ViewSortUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ViewSortViewIdKeyCompoundUniqueInput = { key: Scalars['String']; viewId: Scalars['String']; }; export type ViewSortWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; direction?: InputMaybe; key?: InputMaybe; name?: InputMaybe; view?: InputMaybe; viewId?: InputMaybe; }; export type ViewSortWhereUniqueInput = { viewId_key?: InputMaybe; }; export enum ViewType { Pipeline = 'Pipeline', Table = 'Table' } export type ViewUpdateInput = { fields?: InputMaybe; filters?: InputMaybe; id?: InputMaybe; name?: InputMaybe; objectId?: InputMaybe; sorts?: InputMaybe; type?: InputMaybe; }; export type ViewUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type ViewUpdateOneRequiredWithoutFieldsNestedInput = { connect?: InputMaybe; }; export type ViewUpdateOneRequiredWithoutFiltersNestedInput = { connect?: InputMaybe; }; export type ViewUpdateOneRequiredWithoutSortsNestedInput = { connect?: InputMaybe; }; export type ViewWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; fields?: InputMaybe; filters?: InputMaybe; id?: InputMaybe; name?: InputMaybe; objectId?: InputMaybe; sorts?: InputMaybe; type?: InputMaybe; }; export type ViewWhereUniqueInput = { id?: InputMaybe; }; export type Workspace = { __typename?: 'Workspace'; Attachment?: Maybe>; activities?: Maybe>; activityTargets?: Maybe>; apiKeys?: 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>; viewFilters?: Maybe>; viewSorts?: Maybe>; views?: Maybe>; workspaceMember?: Maybe>; }; export type WorkspaceInviteHashValid = { __typename?: 'WorkspaceInviteHashValid'; isValid: Scalars['Boolean']; }; export type WorkspaceMember = { __typename?: 'WorkspaceMember'; Favorite?: Maybe>; allowImpersonation: Scalars['Boolean']; assignedActivities?: Maybe>; authoredActivities?: Maybe>; authoredAttachments?: Maybe>; comments?: Maybe>; companies?: Maybe>; createdAt: Scalars['DateTime']; id: Scalars['ID']; settings?: Maybe; settingsId?: Maybe; updatedAt: Scalars['DateTime']; user: User; userId: Scalars['String']; workspace: Workspace; }; export type WorkspaceMemberCreateNestedOneWithoutAssignedActivitiesInput = { connect?: InputMaybe; }; export type WorkspaceMemberCreateNestedOneWithoutAuthoredActivitiesInput = { connect?: InputMaybe; }; export type WorkspaceMemberCreateNestedOneWithoutCommentsInput = { connect?: InputMaybe; }; export type WorkspaceMemberCreateNestedOneWithoutCompaniesInput = { connect?: InputMaybe; }; export type WorkspaceMemberListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type WorkspaceMemberOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type WorkspaceMemberOrderByWithRelationInput = { Favorite?: InputMaybe; allowImpersonation?: InputMaybe; assignedActivities?: InputMaybe; authoredActivities?: InputMaybe; authoredAttachments?: InputMaybe; comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; settings?: InputMaybe; settingsId?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; userId?: InputMaybe; }; export type WorkspaceMemberRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum WorkspaceMemberScalarFieldEnum { AllowImpersonation = 'allowImpersonation', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Id = 'id', SettingsId = 'settingsId', UpdatedAt = 'updatedAt', UserId = 'userId', WorkspaceId = 'workspaceId' } export type WorkspaceMemberUpdateInput = { Favorite?: InputMaybe; allowImpersonation?: InputMaybe; assignedActivities?: InputMaybe; authoredActivities?: InputMaybe; authoredAttachments?: InputMaybe; comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; settings?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; }; export type WorkspaceMemberUpdateManyWithoutSettingsNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type WorkspaceMemberUpdateManyWithoutWorkspaceNestedInput = { connect?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; }; export type WorkspaceMemberUpdateOneWithoutAssignedActivitiesNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type WorkspaceMemberUpdateOneWithoutAuthoredActivitiesNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type WorkspaceMemberUpdateOneWithoutCompaniesNestedInput = { connect?: InputMaybe; disconnect?: InputMaybe; }; export type WorkspaceMemberWhereInput = { AND?: InputMaybe>; Favorite?: InputMaybe; NOT?: InputMaybe>; OR?: InputMaybe>; allowImpersonation?: InputMaybe; assignedActivities?: InputMaybe; authoredActivities?: InputMaybe; authoredAttachments?: InputMaybe; comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; settings?: InputMaybe; settingsId?: InputMaybe; updatedAt?: InputMaybe; user?: InputMaybe; userId?: InputMaybe; }; export type WorkspaceMemberWhereUniqueInput = { id?: InputMaybe; userId?: InputMaybe; }; export type WorkspaceUpdateInput = { Attachment?: InputMaybe; activities?: InputMaybe; activityTargets?: InputMaybe; apiKeys?: 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; viewFilters?: InputMaybe; viewSorts?: InputMaybe; views?: InputMaybe; workspaceMember?: InputMaybe; }; export type Field = { __typename?: 'field'; createdAt: Scalars['DateTime']; description?: Maybe; icon?: Maybe; id: Scalars['ID']; isActive: Scalars['Boolean']; isCustom: Scalars['Boolean']; isNullable: Scalars['Boolean']; label: Scalars['String']; name: Scalars['String']; /** @deprecated Use label name instead */ placeholder?: Maybe; type: Scalars['String']; updatedAt: Scalars['DateTime']; }; export type FieldEdge = { __typename?: 'fieldEdge'; /** Cursor for this node. */ cursor: Scalars['ConnectionCursor']; /** The node containing the field */ node: Field; }; export type Object = { __typename?: 'object'; createdAt: Scalars['DateTime']; dataSourceId: Scalars['String']; description?: Maybe; fields: ObjectFieldsConnection; icon?: Maybe; id: Scalars['ID']; isActive: Scalars['Boolean']; isCustom: Scalars['Boolean']; labelPlural: Scalars['String']; labelSingular: Scalars['String']; namePlural: Scalars['String']; nameSingular: Scalars['String']; updatedAt: Scalars['DateTime']; }; export type ObjectFieldsArgs = { paging?: CursorPaging; }; export type ObjectEdge = { __typename?: 'objectEdge'; /** Cursor for this node. */ cursor: Scalars['ConnectionCursor']; /** The node containing the object */ node: Object; }; export type ActivityWithTargetsFragment = { __typename?: 'Activity', id: string, createdAt: string, updatedAt: string, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, createdAt: string, updatedAt: string, companyId?: string | null, personId?: string | null }> | null }; export type ActivityQueryFragmentFragment = { __typename?: 'Activity', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null } | 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, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, companyId?: string | null, personId?: string | null, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null, person?: { __typename?: 'Person', id: string, displayName: string, avatarUrl?: string | null } | null }> | null }; export type ActivityUpdatePartsFragment = { __typename?: 'Activity', id: string, body?: string | null, title?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string } | null }; export type AddActivityTargetsOnActivityMutationVariables = Exact<{ activityId: Scalars['String']; activityTargetInputs: Array | ActivityTargetCreateManyActivityInput; }>; export type AddActivityTargetsOnActivityMutation = { __typename?: 'Mutation', updateOneActivity: { __typename?: 'Activity', id: string, createdAt: string, updatedAt: string, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, createdAt: string, updatedAt: string, companyId?: string | null, personId?: string | null }> | null } }; export type CreateActivityMutationVariables = Exact<{ data: ActivityCreateInput; }>; export type CreateActivityMutation = { __typename?: 'Mutation', createOneActivity: { __typename?: 'Activity', id: string, createdAt: string, updatedAt: string, authorId: string, type: ActivityType, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, createdAt: string, updatedAt: string, activityId: string, companyId?: string | null, personId?: string | null }> | null, comments?: Array<{ __typename?: 'Comment', id: string, createdAt: string, updatedAt: string, body: string, author: { __typename?: 'User', id: string } }> | null } }; export type CreateCommentMutationVariables = Exact<{ commentId: Scalars['String']; commentText: Scalars['String']; authorId: Scalars['String']; activityId: Scalars['String']; createdAt: Scalars['DateTime']; }>; export type CreateCommentMutation = { __typename?: 'Mutation', createOneComment: { __typename?: 'Comment', id: string, createdAt: string, body: string, activityId?: string | null, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } } }; export type DeleteActivityMutationVariables = Exact<{ activityId: Scalars['String']; }>; export type DeleteActivityMutation = { __typename?: 'Mutation', deleteManyActivities: { __typename?: 'AffectedRows', count: number } }; export type RemoveActivityTargetsOnActivityMutationVariables = Exact<{ activityId: Scalars['String']; activityTargetIds: Array | Scalars['String']; }>; export type RemoveActivityTargetsOnActivityMutation = { __typename?: 'Mutation', updateOneActivity: { __typename?: 'Activity', id: string, createdAt: string, updatedAt: string, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, createdAt: string, updatedAt: string, companyId?: string | null, personId?: string | null }> | null } }; export type UpdateActivityMutationVariables = Exact<{ where: ActivityWhereUniqueInput; data: ActivityUpdateInput; }>; export type UpdateActivityMutation = { __typename?: 'Mutation', updateOneActivity: { __typename?: 'Activity', id: string, body?: string | null, title?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string } | null } }; export type UploadAttachmentMutationVariables = Exact<{ file: Scalars['Upload']; activityId: Scalars['String']; companyId: Scalars['String']; personId: Scalars['String']; }>; export type UploadAttachmentMutation = { __typename?: 'Mutation', uploadAttachment: string }; export type GetActivitiesQueryVariables = Exact<{ where: ActivityWhereInput; orderBy?: InputMaybe | ActivityOrderByWithRelationInput>; }>; export type GetActivitiesQuery = { __typename?: 'Query', findManyActivities: Array<{ __typename?: 'Activity', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null } | 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, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, companyId?: string | null, personId?: string | null, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null, person?: { __typename?: 'Person', id: string, displayName: string, avatarUrl?: string | null } | null }> | null }> }; export type GetActivitiesByTargetsQueryVariables = Exact<{ activityTargetIds: Array | Scalars['String']; orderBy?: InputMaybe | ActivityOrderByWithRelationInput>; }>; export type GetActivitiesByTargetsQuery = { __typename?: 'Query', findManyActivities: Array<{ __typename?: 'Activity', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null } | 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, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, companyId?: string | null, personId?: string | null, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null, person?: { __typename?: 'Person', id: string, displayName: string, avatarUrl?: string | null } | null }> | null }> }; export type GetActivityQueryVariables = Exact<{ activityId: Scalars['String']; }>; export type GetActivityQuery = { __typename?: 'Query', findManyActivities: Array<{ __typename?: 'Activity', id: string, createdAt: string, title?: string | null, body?: string | null, type: ActivityType, completedAt?: string | null, dueAt?: string | null, assignee?: { __typename?: 'User', id: string, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null } | 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, activityTargets?: Array<{ __typename?: 'ActivityTarget', id: string, companyId?: string | null, personId?: string | null, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null, person?: { __typename?: 'Person', id: string, displayName: string, avatarUrl?: string | null } | null }> | null }> }; export type CreateEventMutationVariables = Exact<{ type: Scalars['String']; data: Scalars['JSON']; }>; export type CreateEventMutation = { __typename?: 'Mutation', createEvent: { __typename?: 'Analytics', success: boolean } }; export type AuthTokenFragmentFragment = { __typename?: 'AuthToken', token: string, expiresAt: string }; export type AuthTokensFragmentFragment = { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } }; export type UserQueryFragmentFragment = { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, canImpersonate: boolean, supportUserHash?: string | null, avatarUrl?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, allowImpersonation: boolean, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, inviteHash?: string | null }, assignedActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredAttachments?: Array<{ __typename?: 'Attachment', id: string, name: string, type: AttachmentType }> | null, settings?: { __typename?: 'UserSettings', id: string, colorScheme: ColorScheme, locale: string } | null, companies?: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, body: string }> | null } | null, settings: { __typename?: 'UserSettings', id: string, colorScheme: ColorScheme, locale: string } }; export type ChallengeMutationVariables = Exact<{ email: Scalars['String']; password: Scalars['String']; }>; export type ChallengeMutation = { __typename?: 'Mutation', challenge: { __typename?: 'LoginToken', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } }; export type ImpersonateMutationVariables = Exact<{ userId: Scalars['String']; }>; export type ImpersonateMutation = { __typename?: 'Mutation', impersonate: { __typename?: 'Verify', user: { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, canImpersonate: boolean, supportUserHash?: string | null, avatarUrl?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, allowImpersonation: boolean, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, inviteHash?: string | null }, assignedActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredAttachments?: Array<{ __typename?: 'Attachment', id: string, name: string, type: AttachmentType }> | null, settings?: { __typename?: 'UserSettings', id: string, colorScheme: ColorScheme, locale: string } | null, companies?: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, body: 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', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; export type SignUpMutationVariables = Exact<{ email: Scalars['String']; password: Scalars['String']; workspaceInviteHash?: InputMaybe; }>; export type SignUpMutation = { __typename?: 'Mutation', signUp: { __typename?: 'LoginToken', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: 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, canImpersonate: boolean, supportUserHash?: string | null, avatarUrl?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, allowImpersonation: boolean, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, inviteHash?: string | null }, assignedActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredAttachments?: Array<{ __typename?: 'Attachment', id: string, name: string, type: AttachmentType }> | null, settings?: { __typename?: 'UserSettings', id: string, colorScheme: ColorScheme, locale: string } | null, companies?: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, body: 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 CheckUserExistsQueryVariables = Exact<{ email: Scalars['String']; }>; export type CheckUserExistsQuery = { __typename?: 'Query', checkUserExists: { __typename?: 'UserExists', exists: boolean } }; export type GetClientConfigQueryVariables = Exact<{ [key: string]: never; }>; export type GetClientConfigQuery = { __typename?: 'Query', clientConfig: { __typename?: 'ClientConfig', signInPrefilled: boolean, dataModelSettingsEnabled: boolean, developersSettingsEnabled: boolean, debugMode: boolean, flexibleBackendEnabled: boolean, authProviders: { __typename?: 'AuthProviders', google: boolean, password: boolean }, telemetry: { __typename?: 'Telemetry', enabled: boolean, anonymizationEnabled: boolean }, support: { __typename?: 'Support', supportDriver: string, supportFrontChatId?: string | null } } }; export type BaseCompanyFieldsFragmentFragment = { __typename?: 'Company', address: string, annualRecurringRevenue?: number | null, createdAt: string, domainName: string, employees?: number | null, id: string, idealCustomerProfile: boolean, linkedinUrl?: string | null, name: string, xUrl?: string | null, _activityCount: number }; export type BaseAccountOwnerFragmentFragment = { __typename?: 'User', id: string, email: string, displayName: string, avatarUrl?: string | null, firstName?: string | null, lastName?: string | null }; export type CompanyFieldsFragmentFragment = { __typename?: 'Company', address: string, annualRecurringRevenue?: number | null, createdAt: string, domainName: string, employees?: number | null, id: string, idealCustomerProfile: boolean, linkedinUrl?: string | null, name: string, xUrl?: string | null, _activityCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, avatarUrl?: string | null, firstName?: string | null, lastName?: string | null } | null }; export type DeleteManyCompaniesMutationVariables = Exact<{ ids?: InputMaybe | Scalars['String']>; }>; export type DeleteManyCompaniesMutation = { __typename?: 'Mutation', deleteManyCompany: { __typename?: 'AffectedRows', count: number } }; export type InsertManyCompanyMutationVariables = Exact<{ data: Array | CompanyCreateManyInput; }>; export type InsertManyCompanyMutation = { __typename?: 'Mutation', createManyCompany: { __typename?: 'AffectedRows', count: number } }; export type InsertOneCompanyMutationVariables = Exact<{ data: CompanyCreateInput; }>; export type InsertOneCompanyMutation = { __typename?: 'Mutation', createOneCompany: { __typename?: 'Company', address: string, annualRecurringRevenue?: number | null, createdAt: string, domainName: string, employees?: number | null, id: string, idealCustomerProfile: boolean, linkedinUrl?: string | null, name: string, xUrl?: string | null, _activityCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, avatarUrl?: string | null, firstName?: string | null, lastName?: string | null } | null } }; export type UpdateOneCompanyMutationVariables = Exact<{ where: CompanyWhereUniqueInput; data: CompanyUpdateInput; }>; export type UpdateOneCompanyMutation = { __typename?: 'Mutation', updateOneCompany?: { __typename?: 'Company', address: string, annualRecurringRevenue?: number | null, createdAt: string, domainName: string, employees?: number | null, id: string, idealCustomerProfile: boolean, linkedinUrl?: string | null, name: string, xUrl?: string | null, _activityCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, avatarUrl?: string | null, firstName?: string | null, lastName?: string | null } | null } | null }; export type GetCompaniesQueryVariables = Exact<{ orderBy?: InputMaybe | CompanyOrderByWithRelationInput>; where?: InputMaybe; }>; export type GetCompaniesQuery = { __typename?: 'Query', companies: Array<{ __typename?: 'Company', address: string, annualRecurringRevenue?: number | null, createdAt: string, domainName: string, employees?: number | null, id: string, idealCustomerProfile: boolean, linkedinUrl?: string | null, name: string, xUrl?: string | null, _activityCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, avatarUrl?: string | null, firstName?: string | null, lastName?: string | null } | null }> }; export type GetCompanyQueryVariables = Exact<{ where: CompanyWhereUniqueInput; }>; export type GetCompanyQuery = { __typename?: 'Query', findUniqueCompany: { __typename?: 'Company', address: string, annualRecurringRevenue?: number | null, createdAt: string, domainName: string, employees?: number | null, id: string, idealCustomerProfile: boolean, linkedinUrl?: string | null, name: string, xUrl?: string | null, _activityCount: number, Favorite?: Array<{ __typename?: 'Favorite', id: string, person?: { __typename?: 'Person', id: string } | null, company?: { __typename?: 'Company', id: string } | null }> | null, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, avatarUrl?: string | null, firstName?: string | null, lastName?: string | null } | null } }; export type DeleteFavoriteMutationVariables = Exact<{ where: FavoriteWhereInput; }>; export type DeleteFavoriteMutation = { __typename?: 'Mutation', deleteFavorite: { __typename?: 'Favorite', id: string } }; export type InsertCompanyFavoriteMutationVariables = Exact<{ data: FavoriteMutationForCompanyArgs; }>; export type InsertCompanyFavoriteMutation = { __typename?: 'Mutation', createFavoriteForCompany: { __typename?: 'Favorite', id: string, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null } }; export type InsertPersonFavoriteMutationVariables = Exact<{ data: FavoriteMutationForPersonArgs; }>; export type InsertPersonFavoriteMutation = { __typename?: 'Mutation', createFavoriteForPerson: { __typename?: 'Favorite', id: string, person?: { __typename?: 'Person', id: string, firstName?: string | null, lastName?: string | null, displayName: string } | null } }; export type UpdateOneFavoriteMutationVariables = Exact<{ data: FavoriteUpdateInput; where: FavoriteWhereUniqueInput; }>; export type UpdateOneFavoriteMutation = { __typename?: 'Mutation', updateOneFavorites: { __typename?: 'Favorite', id: string, person?: { __typename?: 'Person', id: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } | null, company?: { __typename?: 'Company', id: string, name: string, domainName: string, accountOwner?: { __typename?: 'User', id: string, displayName: string, avatarUrl?: string | null } | null } | null } }; export type GetFavoritesQueryVariables = Exact<{ [key: string]: never; }>; export type GetFavoritesQuery = { __typename?: 'Query', findFavorites: Array<{ __typename?: 'Favorite', id: string, position: number, person?: { __typename?: 'Person', id: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } | null, company?: { __typename?: 'Company', id: string, name: string, domainName: string, accountOwner?: { __typename?: 'User', id: string, displayName: string, avatarUrl?: string | null } | null } | null }> }; export type BasePersonFieldsFragmentFragment = { __typename?: 'Person', id: string, phone?: string | null, email?: string | null, city?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null, createdAt: string }; export type PersonFieldsFragmentFragment = { __typename?: 'Person', jobTitle?: string | null, linkedinUrl?: string | null, xUrl?: string | null, _activityCount: number, id: string, phone?: string | null, email?: string | null, city?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null, createdAt: string, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null }; export type DeleteManyPersonMutationVariables = Exact<{ ids?: InputMaybe | Scalars['String']>; }>; export type DeleteManyPersonMutation = { __typename?: 'Mutation', deleteManyPerson: { __typename?: 'AffectedRows', count: number } }; export type InsertManyPersonMutationVariables = Exact<{ data: Array | PersonCreateManyInput; }>; export type InsertManyPersonMutation = { __typename?: 'Mutation', createManyPerson: { __typename?: 'AffectedRows', count: number } }; export type InsertOnePersonMutationVariables = Exact<{ data: PersonCreateInput; }>; export type InsertOnePersonMutation = { __typename?: 'Mutation', createOnePerson: { __typename?: 'Person', jobTitle?: string | null, linkedinUrl?: string | null, xUrl?: string | null, _activityCount: number, id: string, phone?: string | null, email?: string | null, city?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null, createdAt: string, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null } }; export type RemovePersonPictureMutationVariables = Exact<{ where: PersonWhereUniqueInput; }>; export type RemovePersonPictureMutation = { __typename?: 'Mutation', updateOnePerson?: { __typename?: 'Person', id: string, avatarUrl?: string | null } | null }; export type UpdateOnePersonMutationVariables = Exact<{ where: PersonWhereUniqueInput; data: PersonUpdateInput; }>; export type UpdateOnePersonMutation = { __typename?: 'Mutation', updateOnePerson?: { __typename?: 'Person', jobTitle?: string | null, linkedinUrl?: string | null, xUrl?: string | null, _activityCount: number, id: string, phone?: string | null, email?: string | null, city?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null, createdAt: string, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null } | null }; export type UploadPersonPictureMutationVariables = Exact<{ id: Scalars['String']; file: Scalars['Upload']; }>; export type UploadPersonPictureMutation = { __typename?: 'Mutation', uploadPersonPicture: string }; export type GetPeopleQueryVariables = Exact<{ orderBy?: InputMaybe | PersonOrderByWithRelationInput>; where?: InputMaybe; limit?: InputMaybe; }>; export type GetPeopleQuery = { __typename?: 'Query', people: Array<{ __typename?: 'Person', jobTitle?: string | null, linkedinUrl?: string | null, xUrl?: string | null, _activityCount: number, id: string, phone?: string | null, email?: string | null, city?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null, createdAt: string, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null }> }; export type GetPersonQueryVariables = Exact<{ id: Scalars['String']; }>; export type GetPersonQuery = { __typename?: 'Query', findUniquePerson: { __typename?: 'Person', jobTitle?: string | null, linkedinUrl?: string | null, xUrl?: string | null, _activityCount: number, id: string, phone?: string | null, email?: string | null, city?: string | null, firstName?: string | null, lastName?: string | null, displayName: string, avatarUrl?: string | null, createdAt: string, Favorite?: Array<{ __typename?: 'Favorite', id: string, person?: { __typename?: 'Person', id: string } | null, company?: { __typename?: 'Company', id: string } | null }> | null, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null } }; export type GetPersonCityByIdQueryVariables = Exact<{ id: Scalars['String']; }>; export type GetPersonCityByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, city?: string | null } }; export type GetPersonCommentCountByIdQueryVariables = Exact<{ id: Scalars['String']; }>; export type GetPersonCommentCountByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, _activityCount: 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 GetPersonCreatedAtByIdQueryVariables = Exact<{ id: Scalars['String']; }>; export type GetPersonCreatedAtByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, createdAt: string } }; 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, _activityCount: number } }; export type GetPersonPhoneByIdQueryVariables = Exact<{ id: Scalars['String']; }>; export type GetPersonPhoneByIdQuery = { __typename?: 'Query', person: { __typename?: 'Person', id: string, phone?: string | null } }; export type CreateOneCompanyPipelineProgressMutationVariables = Exact<{ uuid: Scalars['String']; companyId: Scalars['String']; pipelineId: Scalars['String']; pipelineStageId: Scalars['String']; }>; export type CreateOneCompanyPipelineProgressMutation = { __typename?: 'Mutation', createOnePipelineProgress: { __typename?: 'PipelineProgress', id: string } }; export type CreatePipelineStageMutationVariables = Exact<{ data: PipelineStageCreateInput; }>; export type CreatePipelineStageMutation = { __typename?: 'Mutation', pipelineStage: { __typename?: 'PipelineStage', id: string, name: string, color: string } }; export type DeleteManyPipelineProgressMutationVariables = Exact<{ ids?: InputMaybe | Scalars['String']>; }>; export type DeleteManyPipelineProgressMutation = { __typename?: 'Mutation', deleteManyPipelineProgress: { __typename?: 'AffectedRows', count: number } }; export type DeletePipelineStageMutationVariables = Exact<{ where: PipelineStageWhereUniqueInput; }>; export type DeletePipelineStageMutation = { __typename?: 'Mutation', pipelineStage: { __typename?: 'PipelineStage', id: string, name: string, color: string } }; export type UpdateOnePipelineProgressMutationVariables = Exact<{ data: PipelineProgressUpdateInput; where: PipelineProgressWhereUniqueInput; }>; export type UpdateOnePipelineProgressMutation = { __typename?: 'Mutation', updateOnePipelineProgress?: { __typename?: 'PipelineProgress', id: string, amount?: number | null, closeDate?: string | null, probability?: number | null, pointOfContact?: { __typename?: 'Person', id: string } | null } | null }; export type UpdateOnePipelineProgressStageMutationVariables = Exact<{ id?: InputMaybe; pipelineStageId?: InputMaybe; }>; export type UpdateOnePipelineProgressStageMutation = { __typename?: 'Mutation', updateOnePipelineProgress?: { __typename?: 'PipelineProgress', id: string } | null }; 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 GetPipelineProgressQueryVariables = Exact<{ where?: InputMaybe; orderBy?: InputMaybe | PipelineProgressOrderByWithRelationInput>; }>; export type GetPipelineProgressQuery = { __typename?: 'Query', findManyPipelineProgress: Array<{ __typename?: 'PipelineProgress', id: string, pipelineStageId: string, companyId?: string | null, personId?: string | null, 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, avatarUrl?: string | null } | null }> }; 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 SearchActivityQueryVariables = Exact<{ where?: InputMaybe; limit?: InputMaybe; orderBy?: InputMaybe | ActivityOrderByWithRelationInput>; }>; export type SearchActivityQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'Activity', id: string, title?: string | null, body?: string | null }> }; export type SearchCompanyQueryVariables = Exact<{ where?: InputMaybe; limit?: InputMaybe; orderBy?: InputMaybe | CompanyOrderByWithRelationInput>; }>; export type SearchCompanyQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'Company', address: string, annualRecurringRevenue?: number | null, createdAt: string, domainName: string, employees?: number | null, id: string, idealCustomerProfile: boolean, linkedinUrl?: string | null, name: string, xUrl?: string | null, _activityCount: number, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string, avatarUrl?: string | null, firstName?: string | null, lastName?: string | null } | 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, displayName: string, avatarUrl?: string | null, createdAt: string }> }; export type SearchUserQueryVariables = Exact<{ where?: InputMaybe; limit?: InputMaybe; orderBy?: InputMaybe | UserOrderByWithRelationInput>; }>; export type SearchUserQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'User', avatarUrl?: string | null, id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null }> }; export type UserFieldsFragmentFragment = { __typename?: 'User', id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null }; export type DeleteUserAccountMutationVariables = Exact<{ [key: string]: never; }>; export type DeleteUserAccountMutation = { __typename?: 'Mutation', deleteUserAccount: { __typename?: 'User', id: string } }; export type RemoveProfilePictureMutationVariables = Exact<{ where: UserWhereUniqueInput; }>; export type RemoveProfilePictureMutation = { __typename?: 'Mutation', updateUser: { __typename?: 'User', id: string, avatarUrl?: string | null } }; export type UpdateAllowImpersonationMutationVariables = Exact<{ allowImpersonation: Scalars['Boolean']; }>; export type UpdateAllowImpersonationMutation = { __typename?: 'Mutation', allowImpersonation: { __typename?: 'WorkspaceMember', id: string, allowImpersonation: boolean } }; export type UploadProfilePictureMutationVariables = Exact<{ file: Scalars['Upload']; }>; export type UploadProfilePictureMutation = { __typename?: 'Mutation', uploadProfilePicture: string }; 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 }, assignedActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredAttachments?: Array<{ __typename?: 'Attachment', id: string, name: string, type: AttachmentType }> | null, settings?: { __typename?: 'UserSettings', id: string, colorScheme: ColorScheme, locale: string } | null, companies?: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, body: string }> | null } | null, settings: { __typename?: 'UserSettings', id: string, locale: string, colorScheme: ColorScheme } } }; export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>; export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', avatarUrl?: string | null, canImpersonate: boolean, supportUserHash?: string | null, id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: string, allowImpersonation: boolean, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, inviteHash?: string | null }, assignedActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredAttachments?: Array<{ __typename?: 'Attachment', id: string, name: string, type: AttachmentType }> | null, settings?: { __typename?: 'UserSettings', id: string, colorScheme: ColorScheme, locale: string } | null, companies?: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, body: 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 ViewFieldFragmentFragment = { __typename?: 'ViewField', index: number, isVisible: boolean, key: string, name: string, size?: number | null, viewId: string }; export type CreateViewMutationVariables = Exact<{ data: ViewCreateInput; }>; export type CreateViewMutation = { __typename?: 'Mutation', view: { __typename?: 'View', id: string, name: string } }; export type CreateViewFieldsMutationVariables = Exact<{ data: Array | ViewFieldCreateManyInput; }>; export type CreateViewFieldsMutation = { __typename?: 'Mutation', createManyViewField: { __typename?: 'AffectedRows', count: number } }; export type CreateViewFiltersMutationVariables = Exact<{ data: Array | ViewFilterCreateManyInput; }>; export type CreateViewFiltersMutation = { __typename?: 'Mutation', createManyViewFilter: { __typename?: 'AffectedRows', count: number } }; export type CreateViewSortsMutationVariables = Exact<{ data: Array | ViewSortCreateManyInput; }>; export type CreateViewSortsMutation = { __typename?: 'Mutation', createManyViewSort: { __typename?: 'AffectedRows', count: number } }; export type DeleteViewMutationVariables = Exact<{ where: ViewWhereUniqueInput; }>; export type DeleteViewMutation = { __typename?: 'Mutation', view: { __typename?: 'View', id: string, name: string } }; export type DeleteViewFiltersMutationVariables = Exact<{ where: ViewFilterWhereInput; }>; export type DeleteViewFiltersMutation = { __typename?: 'Mutation', deleteManyViewFilter: { __typename?: 'AffectedRows', count: number } }; export type DeleteViewSortsMutationVariables = Exact<{ where: ViewSortWhereInput; }>; export type DeleteViewSortsMutation = { __typename?: 'Mutation', deleteManyViewSort: { __typename?: 'AffectedRows', count: number } }; export type UpdateViewMutationVariables = Exact<{ data: ViewUpdateInput; where: ViewWhereUniqueInput; }>; export type UpdateViewMutation = { __typename?: 'Mutation', view: { __typename?: 'View', id: string, name: string } }; export type UpdateViewFieldMutationVariables = Exact<{ data: ViewFieldUpdateInput; where: ViewFieldWhereUniqueInput; }>; export type UpdateViewFieldMutation = { __typename?: 'Mutation', updateOneViewField: { __typename?: 'ViewField', index: number, isVisible: boolean, key: string, name: string, size?: number | null, viewId: string } }; export type UpdateViewFilterMutationVariables = Exact<{ data: ViewFilterUpdateInput; where: ViewFilterWhereUniqueInput; }>; export type UpdateViewFilterMutation = { __typename?: 'Mutation', viewFilter: { __typename?: 'ViewFilter', displayValue: string, key: string, name: string, operand: ViewFilterOperand, value: string } }; export type UpdateViewSortMutationVariables = Exact<{ data: ViewSortUpdateInput; where: ViewSortWhereUniqueInput; }>; export type UpdateViewSortMutation = { __typename?: 'Mutation', viewSort: { __typename?: 'ViewSort', direction: ViewSortDirection, key: string, name: string } }; export type GetViewFieldsQueryVariables = Exact<{ where?: InputMaybe; orderBy?: InputMaybe | ViewFieldOrderByWithRelationInput>; }>; export type GetViewFieldsQuery = { __typename?: 'Query', viewFields: Array<{ __typename?: 'ViewField', index: number, isVisible: boolean, key: string, name: string, size?: number | null, viewId: string }> }; export type GetViewFiltersQueryVariables = Exact<{ where?: InputMaybe; }>; export type GetViewFiltersQuery = { __typename?: 'Query', viewFilters: Array<{ __typename?: 'ViewFilter', displayValue: string, key: string, name: string, operand: ViewFilterOperand, value: string }> }; export type GetViewSortsQueryVariables = Exact<{ where?: InputMaybe; }>; export type GetViewSortsQuery = { __typename?: 'Query', viewSorts: Array<{ __typename?: 'ViewSort', direction: ViewSortDirection, key: string, name: string }> }; export type GetViewsQueryVariables = Exact<{ where?: InputMaybe; }>; export type GetViewsQuery = { __typename?: 'Query', views: Array<{ __typename?: 'View', id: string, name: string }> }; export type WorkspaceMemberFieldsFragmentFragment = { __typename?: 'WorkspaceMember', id: string, allowImpersonation: boolean, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, inviteHash?: string | null }, assignedActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredAttachments?: Array<{ __typename?: 'Attachment', id: string, name: string, type: AttachmentType }> | null, settings?: { __typename?: 'UserSettings', id: string, colorScheme: ColorScheme, locale: string } | null, companies?: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, body: string }> | null }; export type DeleteCurrentWorkspaceMutationVariables = Exact<{ [key: string]: never; }>; export type DeleteCurrentWorkspaceMutation = { __typename?: 'Mutation', deleteCurrentWorkspace: { __typename?: 'Workspace', id: 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 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 UpdateOneWorkspaceMemberMutationVariables = Exact<{ data: WorkspaceMemberUpdateInput; where: WorkspaceMemberWhereUniqueInput; }>; export type UpdateOneWorkspaceMemberMutation = { __typename?: 'Mutation', UpdateOneWorkspaceMember: { __typename?: 'WorkspaceMember', id: string, allowImpersonation: boolean, workspace: { __typename?: 'Workspace', id: string, domainName?: string | null, displayName?: string | null, logo?: string | null, inviteHash?: string | null }, assignedActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredActivities?: Array<{ __typename?: 'Activity', id: string, title?: string | null }> | null, authoredAttachments?: Array<{ __typename?: 'Attachment', id: string, name: string, type: AttachmentType }> | null, settings?: { __typename?: 'UserSettings', id: string, colorScheme: ColorScheme, locale: string } | null, companies?: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> | null, comments?: Array<{ __typename?: 'Comment', id: string, body: string }> | null } }; export type GetWorkspaceFromInviteHashQueryVariables = Exact<{ inviteHash: Scalars['String']; }>; export type GetWorkspaceFromInviteHashQuery = { __typename?: 'Query', findWorkspaceFromInviteHash: { __typename?: 'Workspace', id: string, displayName?: string | null, logo?: string | null } }; export type GetWorkspaceMembersQueryVariables = Exact<{ where?: InputMaybe; }>; export type GetWorkspaceMembersQuery = { __typename?: 'Query', workspaceMembers: Array<{ __typename?: 'WorkspaceMember', id: string, user: { __typename?: 'User', avatarUrl?: string | null, id: string, email: string, displayName: string, firstName?: string | null, lastName?: string | null } }> }; export const ActivityWithTargetsFragmentDoc = gql` fragment ActivityWithTargets on Activity { id createdAt updatedAt activityTargets { id createdAt updatedAt companyId personId } } `; export const ActivityQueryFragmentFragmentDoc = gql` fragment ActivityQueryFragment on Activity { id createdAt title body type completedAt dueAt assignee { id firstName lastName displayName avatarUrl } author { id firstName lastName displayName } comments { id body createdAt updatedAt author { id displayName firstName lastName avatarUrl } } activityTargets { id companyId personId company { id name domainName } person { id displayName avatarUrl } } } `; export const ActivityUpdatePartsFragmentDoc = gql` fragment ActivityUpdateParts on Activity { id body title type completedAt dueAt assignee { id firstName lastName displayName } } `; export const AuthTokenFragmentFragmentDoc = gql` fragment AuthTokenFragment on AuthToken { token expiresAt } `; export const AuthTokensFragmentFragmentDoc = gql` fragment AuthTokensFragment on AuthTokenPair { accessToken { ...AuthTokenFragment } refreshToken { ...AuthTokenFragment } } ${AuthTokenFragmentFragmentDoc}`; export const UserQueryFragmentFragmentDoc = gql` fragment UserQueryFragment on User { id email displayName firstName lastName canImpersonate supportUserHash avatarUrl workspaceMember { id allowImpersonation workspace { id domainName displayName logo inviteHash } assignedActivities { id title } authoredActivities { id title } authoredAttachments { id name type } settings { id colorScheme locale } companies { id name domainName } comments { id body } } settings { id colorScheme locale } } `; export const BaseAccountOwnerFragmentFragmentDoc = gql` fragment baseAccountOwnerFragment on User { id email displayName avatarUrl firstName lastName } `; export const BaseCompanyFieldsFragmentFragmentDoc = gql` fragment baseCompanyFieldsFragment on Company { address annualRecurringRevenue createdAt domainName employees id idealCustomerProfile linkedinUrl name xUrl _activityCount } `; export const CompanyFieldsFragmentFragmentDoc = gql` fragment companyFieldsFragment on Company { accountOwner { ...baseAccountOwnerFragment } ...baseCompanyFieldsFragment } ${BaseAccountOwnerFragmentFragmentDoc} ${BaseCompanyFieldsFragmentFragmentDoc}`; export const BasePersonFieldsFragmentFragmentDoc = gql` fragment basePersonFieldsFragment on Person { id phone email city firstName lastName displayName avatarUrl createdAt } `; export const PersonFieldsFragmentFragmentDoc = gql` fragment personFieldsFragment on Person { ...basePersonFieldsFragment jobTitle linkedinUrl xUrl _activityCount company { id name domainName } } ${BasePersonFieldsFragmentFragmentDoc}`; export const UserFieldsFragmentFragmentDoc = gql` fragment userFieldsFragment on User { id email displayName firstName lastName } `; export const ViewFieldFragmentFragmentDoc = gql` fragment ViewFieldFragment on ViewField { index isVisible key name size viewId } `; export const WorkspaceMemberFieldsFragmentFragmentDoc = gql` fragment workspaceMemberFieldsFragment on WorkspaceMember { id allowImpersonation workspace { id domainName displayName logo inviteHash } assignedActivities { id title } authoredActivities { id title } authoredAttachments { id name type } settings { id colorScheme locale } companies { id name domainName } comments { id body } } `; export const AddActivityTargetsOnActivityDocument = gql` mutation AddActivityTargetsOnActivity($activityId: String!, $activityTargetInputs: [ActivityTargetCreateManyActivityInput!]!) { updateOneActivity( where: {id: $activityId} data: {activityTargets: {createMany: {data: $activityTargetInputs}}} ) { ...ActivityWithTargets } } ${ActivityWithTargetsFragmentDoc}`; export type AddActivityTargetsOnActivityMutationFn = Apollo.MutationFunction; /** * __useAddActivityTargetsOnActivityMutation__ * * To run a mutation, you first call `useAddActivityTargetsOnActivityMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAddActivityTargetsOnActivityMutation` 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 [addActivityTargetsOnActivityMutation, { data, loading, error }] = useAddActivityTargetsOnActivityMutation({ * variables: { * activityId: // value for 'activityId' * activityTargetInputs: // value for 'activityTargetInputs' * }, * }); */ export function useAddActivityTargetsOnActivityMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(AddActivityTargetsOnActivityDocument, options); } export type AddActivityTargetsOnActivityMutationHookResult = ReturnType; export type AddActivityTargetsOnActivityMutationResult = Apollo.MutationResult; export type AddActivityTargetsOnActivityMutationOptions = Apollo.BaseMutationOptions; export const CreateActivityDocument = gql` mutation CreateActivity($data: ActivityCreateInput!) { createOneActivity(data: $data) { id createdAt updatedAt authorId type activityTargets { id createdAt updatedAt activityId companyId personId } comments { id createdAt updatedAt body author { id } } } } `; export type CreateActivityMutationFn = Apollo.MutationFunction; /** * __useCreateActivityMutation__ * * To run a mutation, you first call `useCreateActivityMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateActivityMutation` 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 [createActivityMutation, { data, loading, error }] = useCreateActivityMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useCreateActivityMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateActivityDocument, options); } export type CreateActivityMutationHookResult = ReturnType; export type CreateActivityMutationResult = Apollo.MutationResult; export type CreateActivityMutationOptions = Apollo.BaseMutationOptions; export const CreateCommentDocument = gql` mutation CreateComment($commentId: String!, $commentText: String!, $authorId: String!, $activityId: String!, $createdAt: DateTime!) { createOneComment( data: {id: $commentId, createdAt: $createdAt, body: $commentText, author: {connect: {id: $authorId}}, activity: {connect: {id: $activityId}}} ) { id createdAt body author { id displayName firstName lastName avatarUrl } activityId } } `; 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' * activityId: // value for 'activityId' * 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 DeleteActivityDocument = gql` mutation DeleteActivity($activityId: String!) { deleteManyActivities(where: {id: {equals: $activityId}}) { count } } `; export type DeleteActivityMutationFn = Apollo.MutationFunction; /** * __useDeleteActivityMutation__ * * To run a mutation, you first call `useDeleteActivityMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteActivityMutation` 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 [deleteActivityMutation, { data, loading, error }] = useDeleteActivityMutation({ * variables: { * activityId: // value for 'activityId' * }, * }); */ export function useDeleteActivityMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteActivityDocument, options); } export type DeleteActivityMutationHookResult = ReturnType; export type DeleteActivityMutationResult = Apollo.MutationResult; export type DeleteActivityMutationOptions = Apollo.BaseMutationOptions; export const RemoveActivityTargetsOnActivityDocument = gql` mutation RemoveActivityTargetsOnActivity($activityId: String!, $activityTargetIds: [String!]!) { updateOneActivity( where: {id: $activityId} data: {activityTargets: {deleteMany: {id: {in: $activityTargetIds}}}} ) { ...ActivityWithTargets } } ${ActivityWithTargetsFragmentDoc}`; export type RemoveActivityTargetsOnActivityMutationFn = Apollo.MutationFunction; /** * __useRemoveActivityTargetsOnActivityMutation__ * * To run a mutation, you first call `useRemoveActivityTargetsOnActivityMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRemoveActivityTargetsOnActivityMutation` 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 [removeActivityTargetsOnActivityMutation, { data, loading, error }] = useRemoveActivityTargetsOnActivityMutation({ * variables: { * activityId: // value for 'activityId' * activityTargetIds: // value for 'activityTargetIds' * }, * }); */ export function useRemoveActivityTargetsOnActivityMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(RemoveActivityTargetsOnActivityDocument, options); } export type RemoveActivityTargetsOnActivityMutationHookResult = ReturnType; export type RemoveActivityTargetsOnActivityMutationResult = Apollo.MutationResult; export type RemoveActivityTargetsOnActivityMutationOptions = Apollo.BaseMutationOptions; export const UpdateActivityDocument = gql` mutation UpdateActivity($where: ActivityWhereUniqueInput!, $data: ActivityUpdateInput!) { updateOneActivity(where: $where, data: $data) { ...ActivityUpdateParts } } ${ActivityUpdatePartsFragmentDoc}`; export type UpdateActivityMutationFn = Apollo.MutationFunction; /** * __useUpdateActivityMutation__ * * To run a mutation, you first call `useUpdateActivityMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateActivityMutation` 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 [updateActivityMutation, { data, loading, error }] = useUpdateActivityMutation({ * variables: { * where: // value for 'where' * data: // value for 'data' * }, * }); */ export function useUpdateActivityMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateActivityDocument, options); } export type UpdateActivityMutationHookResult = ReturnType; export type UpdateActivityMutationResult = Apollo.MutationResult; export type UpdateActivityMutationOptions = Apollo.BaseMutationOptions; export const UploadAttachmentDocument = gql` mutation UploadAttachment($file: Upload!, $activityId: String!, $companyId: String!, $personId: String!) { uploadAttachment( file: $file activityId: $activityId companyId: $companyId personId: $personId ) } `; 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' * companyId: // value for 'companyId' * personId: // value for 'personId' * }, * }); */ 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 GetActivitiesDocument = gql` query GetActivities($where: ActivityWhereInput!, $orderBy: [ActivityOrderByWithRelationInput!]) { findManyActivities(orderBy: $orderBy, where: $where) { ...ActivityQueryFragment } } ${ActivityQueryFragmentFragmentDoc}`; /** * __useGetActivitiesQuery__ * * To run a query within a React component, call `useGetActivitiesQuery` and pass it any options that fit your needs. * When your component renders, `useGetActivitiesQuery` 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 } = useGetActivitiesQuery({ * variables: { * where: // value for 'where' * orderBy: // value for 'orderBy' * }, * }); */ export function useGetActivitiesQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetActivitiesDocument, options); } export function useGetActivitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetActivitiesDocument, options); } export type GetActivitiesQueryHookResult = ReturnType; export type GetActivitiesLazyQueryHookResult = ReturnType; export type GetActivitiesQueryResult = Apollo.QueryResult; export const GetActivitiesByTargetsDocument = gql` query GetActivitiesByTargets($activityTargetIds: [String!]!, $orderBy: [ActivityOrderByWithRelationInput!]) { findManyActivities( orderBy: $orderBy where: {activityTargets: {some: {OR: [{personId: {in: $activityTargetIds}}, {companyId: {in: $activityTargetIds}}]}}} ) { ...ActivityQueryFragment } } ${ActivityQueryFragmentFragmentDoc}`; /** * __useGetActivitiesByTargetsQuery__ * * To run a query within a React component, call `useGetActivitiesByTargetsQuery` and pass it any options that fit your needs. * When your component renders, `useGetActivitiesByTargetsQuery` 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 } = useGetActivitiesByTargetsQuery({ * variables: { * activityTargetIds: // value for 'activityTargetIds' * orderBy: // value for 'orderBy' * }, * }); */ export function useGetActivitiesByTargetsQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetActivitiesByTargetsDocument, options); } export function useGetActivitiesByTargetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetActivitiesByTargetsDocument, options); } export type GetActivitiesByTargetsQueryHookResult = ReturnType; export type GetActivitiesByTargetsLazyQueryHookResult = ReturnType; export type GetActivitiesByTargetsQueryResult = Apollo.QueryResult; export const GetActivityDocument = gql` query GetActivity($activityId: String!) { findManyActivities(where: {id: {equals: $activityId}}) { ...ActivityQueryFragment } } ${ActivityQueryFragmentFragmentDoc}`; /** * __useGetActivityQuery__ * * To run a query within a React component, call `useGetActivityQuery` and pass it any options that fit your needs. * When your component renders, `useGetActivityQuery` 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 } = useGetActivityQuery({ * variables: { * activityId: // value for 'activityId' * }, * }); */ export function useGetActivityQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetActivityDocument, options); } export function useGetActivityLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetActivityDocument, options); } export type GetActivityQueryHookResult = ReturnType; export type GetActivityLazyQueryHookResult = ReturnType; export type GetActivityQueryResult = Apollo.QueryResult; 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 ChallengeDocument = gql` mutation Challenge($email: String!, $password: String!) { challenge(email: $email, password: $password) { loginToken { ...AuthTokenFragment } } } ${AuthTokenFragmentFragmentDoc}`; 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 ImpersonateDocument = gql` mutation Impersonate($userId: String!) { impersonate(userId: $userId) { user { ...UserQueryFragment } tokens { ...AuthTokensFragment } } } ${UserQueryFragmentFragmentDoc} ${AuthTokensFragmentFragmentDoc}`; export type ImpersonateMutationFn = Apollo.MutationFunction; /** * __useImpersonateMutation__ * * To run a mutation, you first call `useImpersonateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useImpersonateMutation` 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 [impersonateMutation, { data, loading, error }] = useImpersonateMutation({ * variables: { * userId: // value for 'userId' * }, * }); */ export function useImpersonateMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ImpersonateDocument, options); } export type ImpersonateMutationHookResult = ReturnType; export type ImpersonateMutationResult = Apollo.MutationResult; export type ImpersonateMutationOptions = Apollo.BaseMutationOptions; export const RenewTokenDocument = gql` mutation RenewToken($refreshToken: String!) { renewToken(refreshToken: $refreshToken) { tokens { ...AuthTokensFragment } } } ${AuthTokensFragmentFragmentDoc}`; 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 SignUpDocument = gql` mutation SignUp($email: String!, $password: String!, $workspaceInviteHash: String) { signUp( email: $email password: $password workspaceInviteHash: $workspaceInviteHash ) { loginToken { ...AuthTokenFragment } } } ${AuthTokenFragmentFragmentDoc}`; 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 { ...UserQueryFragment } tokens { ...AuthTokensFragment } } } ${UserQueryFragmentFragmentDoc} ${AuthTokensFragmentFragmentDoc}`; 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 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 GetClientConfigDocument = gql` query GetClientConfig { clientConfig { authProviders { google password } signInPrefilled dataModelSettingsEnabled developersSettingsEnabled debugMode telemetry { enabled anonymizationEnabled } support { supportDriver supportFrontChatId } flexibleBackendEnabled } } `; /** * __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 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 InsertManyCompanyDocument = gql` mutation InsertManyCompany($data: [CompanyCreateManyInput!]!) { createManyCompany(data: $data) { count } } `; export type InsertManyCompanyMutationFn = Apollo.MutationFunction; /** * __useInsertManyCompanyMutation__ * * To run a mutation, you first call `useInsertManyCompanyMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useInsertManyCompanyMutation` 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 [insertManyCompanyMutation, { data, loading, error }] = useInsertManyCompanyMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useInsertManyCompanyMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(InsertManyCompanyDocument, options); } export type InsertManyCompanyMutationHookResult = ReturnType; export type InsertManyCompanyMutationResult = Apollo.MutationResult; export type InsertManyCompanyMutationOptions = Apollo.BaseMutationOptions; export const InsertOneCompanyDocument = gql` mutation InsertOneCompany($data: CompanyCreateInput!) { createOneCompany(data: $data) { ...companyFieldsFragment } } ${CompanyFieldsFragmentFragmentDoc}`; 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 UpdateOneCompanyDocument = gql` mutation UpdateOneCompany($where: CompanyWhereUniqueInput!, $data: CompanyUpdateInput!) { updateOneCompany(data: $data, where: $where) { ...companyFieldsFragment } } ${CompanyFieldsFragmentFragmentDoc}`; 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 GetCompaniesDocument = gql` query GetCompanies($orderBy: [CompanyOrderByWithRelationInput!], $where: CompanyWhereInput) { companies: findManyCompany(orderBy: $orderBy, where: $where) { ...companyFieldsFragment } } ${CompanyFieldsFragmentFragmentDoc}`; /** * __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) { ...companyFieldsFragment Favorite { id person { id } company { id } } } } ${CompanyFieldsFragmentFragmentDoc}`; /** * __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 DeleteFavoriteDocument = gql` mutation DeleteFavorite($where: FavoriteWhereInput!) { deleteFavorite(where: $where) { id } } `; export type DeleteFavoriteMutationFn = Apollo.MutationFunction; /** * __useDeleteFavoriteMutation__ * * To run a mutation, you first call `useDeleteFavoriteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteFavoriteMutation` 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 [deleteFavoriteMutation, { data, loading, error }] = useDeleteFavoriteMutation({ * variables: { * where: // value for 'where' * }, * }); */ export function useDeleteFavoriteMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteFavoriteDocument, options); } export type DeleteFavoriteMutationHookResult = ReturnType; export type DeleteFavoriteMutationResult = Apollo.MutationResult; export type DeleteFavoriteMutationOptions = Apollo.BaseMutationOptions; export const InsertCompanyFavoriteDocument = gql` mutation InsertCompanyFavorite($data: FavoriteMutationForCompanyArgs!) { createFavoriteForCompany(data: $data) { id company { id name domainName } } } `; export type InsertCompanyFavoriteMutationFn = Apollo.MutationFunction; /** * __useInsertCompanyFavoriteMutation__ * * To run a mutation, you first call `useInsertCompanyFavoriteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useInsertCompanyFavoriteMutation` 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 [insertCompanyFavoriteMutation, { data, loading, error }] = useInsertCompanyFavoriteMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useInsertCompanyFavoriteMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(InsertCompanyFavoriteDocument, options); } export type InsertCompanyFavoriteMutationHookResult = ReturnType; export type InsertCompanyFavoriteMutationResult = Apollo.MutationResult; export type InsertCompanyFavoriteMutationOptions = Apollo.BaseMutationOptions; export const InsertPersonFavoriteDocument = gql` mutation InsertPersonFavorite($data: FavoriteMutationForPersonArgs!) { createFavoriteForPerson(data: $data) { id person { id firstName lastName displayName } } } `; export type InsertPersonFavoriteMutationFn = Apollo.MutationFunction; /** * __useInsertPersonFavoriteMutation__ * * To run a mutation, you first call `useInsertPersonFavoriteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useInsertPersonFavoriteMutation` 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 [insertPersonFavoriteMutation, { data, loading, error }] = useInsertPersonFavoriteMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useInsertPersonFavoriteMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(InsertPersonFavoriteDocument, options); } export type InsertPersonFavoriteMutationHookResult = ReturnType; export type InsertPersonFavoriteMutationResult = Apollo.MutationResult; export type InsertPersonFavoriteMutationOptions = Apollo.BaseMutationOptions; export const UpdateOneFavoriteDocument = gql` mutation UpdateOneFavorite($data: FavoriteUpdateInput!, $where: FavoriteWhereUniqueInput!) { updateOneFavorites(data: $data, where: $where) { id person { id firstName lastName avatarUrl } company { id name domainName accountOwner { id displayName avatarUrl } } } } `; export type UpdateOneFavoriteMutationFn = Apollo.MutationFunction; /** * __useUpdateOneFavoriteMutation__ * * To run a mutation, you first call `useUpdateOneFavoriteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateOneFavoriteMutation` 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 [updateOneFavoriteMutation, { data, loading, error }] = useUpdateOneFavoriteMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateOneFavoriteMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateOneFavoriteDocument, options); } export type UpdateOneFavoriteMutationHookResult = ReturnType; export type UpdateOneFavoriteMutationResult = Apollo.MutationResult; export type UpdateOneFavoriteMutationOptions = Apollo.BaseMutationOptions; export const GetFavoritesDocument = gql` query GetFavorites { findFavorites { id position person { id firstName lastName avatarUrl } company { id name domainName accountOwner { id displayName avatarUrl } } } } `; /** * __useGetFavoritesQuery__ * * To run a query within a React component, call `useGetFavoritesQuery` and pass it any options that fit your needs. * When your component renders, `useGetFavoritesQuery` 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 } = useGetFavoritesQuery({ * variables: { * }, * }); */ export function useGetFavoritesQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetFavoritesDocument, options); } export function useGetFavoritesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetFavoritesDocument, options); } export type GetFavoritesQueryHookResult = ReturnType; export type GetFavoritesLazyQueryHookResult = ReturnType; export type GetFavoritesQueryResult = Apollo.QueryResult; 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 InsertManyPersonDocument = gql` mutation InsertManyPerson($data: [PersonCreateManyInput!]!) { createManyPerson(data: $data) { count } } `; export type InsertManyPersonMutationFn = Apollo.MutationFunction; /** * __useInsertManyPersonMutation__ * * To run a mutation, you first call `useInsertManyPersonMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useInsertManyPersonMutation` 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 [insertManyPersonMutation, { data, loading, error }] = useInsertManyPersonMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useInsertManyPersonMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(InsertManyPersonDocument, options); } export type InsertManyPersonMutationHookResult = ReturnType; export type InsertManyPersonMutationResult = Apollo.MutationResult; export type InsertManyPersonMutationOptions = Apollo.BaseMutationOptions; export const InsertOnePersonDocument = gql` mutation InsertOnePerson($data: PersonCreateInput!) { createOnePerson(data: $data) { ...personFieldsFragment } } ${PersonFieldsFragmentFragmentDoc}`; 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 RemovePersonPictureDocument = gql` mutation RemovePersonPicture($where: PersonWhereUniqueInput!) { updateOnePerson(data: {avatarUrl: null}, where: $where) { id avatarUrl } } `; export type RemovePersonPictureMutationFn = Apollo.MutationFunction; /** * __useRemovePersonPictureMutation__ * * To run a mutation, you first call `useRemovePersonPictureMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRemovePersonPictureMutation` 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 [removePersonPictureMutation, { data, loading, error }] = useRemovePersonPictureMutation({ * variables: { * where: // value for 'where' * }, * }); */ export function useRemovePersonPictureMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(RemovePersonPictureDocument, options); } export type RemovePersonPictureMutationHookResult = ReturnType; export type RemovePersonPictureMutationResult = Apollo.MutationResult; export type RemovePersonPictureMutationOptions = Apollo.BaseMutationOptions; export const UpdateOnePersonDocument = gql` mutation UpdateOnePerson($where: PersonWhereUniqueInput!, $data: PersonUpdateInput!) { updateOnePerson(data: $data, where: $where) { ...personFieldsFragment } } ${PersonFieldsFragmentFragmentDoc}`; 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 UploadPersonPictureDocument = gql` mutation UploadPersonPicture($id: String!, $file: Upload!) { uploadPersonPicture(id: $id, file: $file) } `; export type UploadPersonPictureMutationFn = Apollo.MutationFunction; /** * __useUploadPersonPictureMutation__ * * To run a mutation, you first call `useUploadPersonPictureMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUploadPersonPictureMutation` 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 [uploadPersonPictureMutation, { data, loading, error }] = useUploadPersonPictureMutation({ * variables: { * id: // value for 'id' * file: // value for 'file' * }, * }); */ export function useUploadPersonPictureMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UploadPersonPictureDocument, options); } export type UploadPersonPictureMutationHookResult = ReturnType; export type UploadPersonPictureMutationResult = Apollo.MutationResult; export type UploadPersonPictureMutationOptions = Apollo.BaseMutationOptions; export const GetPeopleDocument = gql` query GetPeople($orderBy: [PersonOrderByWithRelationInput!], $where: PersonWhereInput, $limit: Int) { people: findManyPerson(orderBy: $orderBy, where: $where, take: $limit) { ...personFieldsFragment } } ${PersonFieldsFragmentFragmentDoc}`; /** * __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 GetPersonDocument = gql` query GetPerson($id: String!) { findUniquePerson(id: $id) { ...personFieldsFragment Favorite { id person { id } company { id } } } } ${PersonFieldsFragmentFragmentDoc}`; /** * __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 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 GetPersonCommentCountByIdDocument = gql` query GetPersonCommentCountById($id: String!) { person: findUniquePerson(id: $id) { id _activityCount } } `; /** * __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 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 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 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 _activityCount } } `; /** * __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 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 CreateOneCompanyPipelineProgressDocument = gql` mutation CreateOneCompanyPipelineProgress($uuid: String!, $companyId: String!, $pipelineId: String!, $pipelineStageId: String!) { createOnePipelineProgress( data: {id: $uuid, company: {connect: {id: $companyId}}, pipeline: {connect: {id: $pipelineId}}, pipelineStage: {connect: {id: $pipelineStageId}}} ) { id } } `; export type CreateOneCompanyPipelineProgressMutationFn = Apollo.MutationFunction; /** * __useCreateOneCompanyPipelineProgressMutation__ * * To run a mutation, you first call `useCreateOneCompanyPipelineProgressMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateOneCompanyPipelineProgressMutation` 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 [createOneCompanyPipelineProgressMutation, { data, loading, error }] = useCreateOneCompanyPipelineProgressMutation({ * variables: { * uuid: // value for 'uuid' * companyId: // value for 'companyId' * pipelineId: // value for 'pipelineId' * pipelineStageId: // value for 'pipelineStageId' * }, * }); */ export function useCreateOneCompanyPipelineProgressMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateOneCompanyPipelineProgressDocument, options); } export type CreateOneCompanyPipelineProgressMutationHookResult = ReturnType; export type CreateOneCompanyPipelineProgressMutationResult = Apollo.MutationResult; export type CreateOneCompanyPipelineProgressMutationOptions = Apollo.BaseMutationOptions; export const CreatePipelineStageDocument = gql` mutation CreatePipelineStage($data: PipelineStageCreateInput!) { pipelineStage: createOnePipelineStage(data: $data) { id name color } } `; export type CreatePipelineStageMutationFn = Apollo.MutationFunction; /** * __useCreatePipelineStageMutation__ * * To run a mutation, you first call `useCreatePipelineStageMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreatePipelineStageMutation` 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 [createPipelineStageMutation, { data, loading, error }] = useCreatePipelineStageMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useCreatePipelineStageMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreatePipelineStageDocument, options); } export type CreatePipelineStageMutationHookResult = ReturnType; export type CreatePipelineStageMutationResult = Apollo.MutationResult; export type CreatePipelineStageMutationOptions = 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 DeletePipelineStageDocument = gql` mutation DeletePipelineStage($where: PipelineStageWhereUniqueInput!) { pipelineStage: deleteOnePipelineStage(where: $where) { id name color } } `; export type DeletePipelineStageMutationFn = Apollo.MutationFunction; /** * __useDeletePipelineStageMutation__ * * To run a mutation, you first call `useDeletePipelineStageMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeletePipelineStageMutation` 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 [deletePipelineStageMutation, { data, loading, error }] = useDeletePipelineStageMutation({ * variables: { * where: // value for 'where' * }, * }); */ export function useDeletePipelineStageMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeletePipelineStageDocument, options); } export type DeletePipelineStageMutationHookResult = ReturnType; export type DeletePipelineStageMutationResult = Apollo.MutationResult; export type DeletePipelineStageMutationOptions = Apollo.BaseMutationOptions; export const UpdateOnePipelineProgressDocument = gql` mutation UpdateOnePipelineProgress($data: PipelineProgressUpdateInput!, $where: PipelineProgressWhereUniqueInput!) { updateOnePipelineProgress(where: $where, data: $data) { id amount closeDate probability pointOfContact { id } } } `; 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: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ 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 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 GetPipelineProgressDocument = gql` query GetPipelineProgress($where: PipelineProgressWhereInput, $orderBy: [PipelineProgressOrderByWithRelationInput!]) { findManyPipelineProgress(where: $where, orderBy: $orderBy) { id pipelineStageId companyId personId amount closeDate pointOfContactId pointOfContact { id firstName lastName displayName avatarUrl } 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 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 SearchActivityDocument = gql` query SearchActivity($where: ActivityWhereInput, $limit: Int, $orderBy: [ActivityOrderByWithRelationInput!]) { searchResults: findManyActivities( where: $where take: $limit orderBy: $orderBy ) { id title body } } `; /** * __useSearchActivityQuery__ * * To run a query within a React component, call `useSearchActivityQuery` and pass it any options that fit your needs. * When your component renders, `useSearchActivityQuery` 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 } = useSearchActivityQuery({ * variables: { * where: // value for 'where' * limit: // value for 'limit' * orderBy: // value for 'orderBy' * }, * }); */ export function useSearchActivityQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(SearchActivityDocument, options); } export function useSearchActivityLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(SearchActivityDocument, options); } export type SearchActivityQueryHookResult = ReturnType; export type SearchActivityLazyQueryHookResult = ReturnType; export type SearchActivityQueryResult = Apollo.QueryResult; export const SearchCompanyDocument = gql` query SearchCompany($where: CompanyWhereInput, $limit: Int, $orderBy: [CompanyOrderByWithRelationInput!]) { searchResults: findManyCompany(where: $where, take: $limit, orderBy: $orderBy) { ...companyFieldsFragment } } ${CompanyFieldsFragmentFragmentDoc}`; /** * __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 SearchPeopleDocument = gql` query SearchPeople($where: PersonWhereInput, $limit: Int, $orderBy: [PersonOrderByWithRelationInput!]) { searchResults: findManyPerson(where: $where, take: $limit, orderBy: $orderBy) { ...basePersonFieldsFragment } } ${BasePersonFieldsFragmentFragmentDoc}`; /** * __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) { ...userFieldsFragment avatarUrl } } ${UserFieldsFragmentFragmentDoc}`; /** * __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 DeleteUserAccountDocument = gql` mutation DeleteUserAccount { deleteUserAccount { id } } `; export type DeleteUserAccountMutationFn = Apollo.MutationFunction; /** * __useDeleteUserAccountMutation__ * * To run a mutation, you first call `useDeleteUserAccountMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteUserAccountMutation` 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 [deleteUserAccountMutation, { data, loading, error }] = useDeleteUserAccountMutation({ * variables: { * }, * }); */ export function useDeleteUserAccountMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteUserAccountDocument, options); } export type DeleteUserAccountMutationHookResult = ReturnType; export type DeleteUserAccountMutationResult = Apollo.MutationResult; export type DeleteUserAccountMutationOptions = 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 UpdateAllowImpersonationDocument = gql` mutation UpdateAllowImpersonation($allowImpersonation: Boolean!) { allowImpersonation(allowImpersonation: $allowImpersonation) { id allowImpersonation } } `; export type UpdateAllowImpersonationMutationFn = Apollo.MutationFunction; /** * __useUpdateAllowImpersonationMutation__ * * To run a mutation, you first call `useUpdateAllowImpersonationMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateAllowImpersonationMutation` 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 [updateAllowImpersonationMutation, { data, loading, error }] = useUpdateAllowImpersonationMutation({ * variables: { * allowImpersonation: // value for 'allowImpersonation' * }, * }); */ export function useUpdateAllowImpersonationMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateAllowImpersonationDocument, options); } export type UpdateAllowImpersonationMutationHookResult = ReturnType; export type UpdateAllowImpersonationMutationResult = Apollo.MutationResult; export type UpdateAllowImpersonationMutationOptions = 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 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 } assignedActivities { id title } authoredActivities { id title } authoredAttachments { id name type } settings { id colorScheme locale } companies { id name domainName } comments { id body } } 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 GetCurrentUserDocument = gql` query GetCurrentUser { currentUser { ...userFieldsFragment avatarUrl canImpersonate workspaceMember { ...workspaceMemberFieldsFragment } settings { id locale colorScheme } supportUserHash } } ${UserFieldsFragmentFragmentDoc} ${WorkspaceMemberFieldsFragmentFragmentDoc}`; /** * __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 { ...userFieldsFragment } } ${UserFieldsFragmentFragmentDoc}`; /** * __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 CreateViewDocument = gql` mutation CreateView($data: ViewCreateInput!) { view: createOneView(data: $data) { id name } } `; export type CreateViewMutationFn = Apollo.MutationFunction; /** * __useCreateViewMutation__ * * To run a mutation, you first call `useCreateViewMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateViewMutation` 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 [createViewMutation, { data, loading, error }] = useCreateViewMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useCreateViewMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateViewDocument, options); } export type CreateViewMutationHookResult = ReturnType; export type CreateViewMutationResult = Apollo.MutationResult; export type CreateViewMutationOptions = Apollo.BaseMutationOptions; export const CreateViewFieldsDocument = gql` mutation CreateViewFields($data: [ViewFieldCreateManyInput!]!) { createManyViewField(data: $data) { count } } `; export type CreateViewFieldsMutationFn = Apollo.MutationFunction; /** * __useCreateViewFieldsMutation__ * * To run a mutation, you first call `useCreateViewFieldsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateViewFieldsMutation` 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 [createViewFieldsMutation, { data, loading, error }] = useCreateViewFieldsMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useCreateViewFieldsMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateViewFieldsDocument, options); } export type CreateViewFieldsMutationHookResult = ReturnType; export type CreateViewFieldsMutationResult = Apollo.MutationResult; export type CreateViewFieldsMutationOptions = Apollo.BaseMutationOptions; export const CreateViewFiltersDocument = gql` mutation CreateViewFilters($data: [ViewFilterCreateManyInput!]!) { createManyViewFilter(data: $data) { count } } `; export type CreateViewFiltersMutationFn = Apollo.MutationFunction; /** * __useCreateViewFiltersMutation__ * * To run a mutation, you first call `useCreateViewFiltersMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateViewFiltersMutation` 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 [createViewFiltersMutation, { data, loading, error }] = useCreateViewFiltersMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useCreateViewFiltersMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateViewFiltersDocument, options); } export type CreateViewFiltersMutationHookResult = ReturnType; export type CreateViewFiltersMutationResult = Apollo.MutationResult; export type CreateViewFiltersMutationOptions = Apollo.BaseMutationOptions; export const CreateViewSortsDocument = gql` mutation CreateViewSorts($data: [ViewSortCreateManyInput!]!) { createManyViewSort(data: $data) { count } } `; export type CreateViewSortsMutationFn = Apollo.MutationFunction; /** * __useCreateViewSortsMutation__ * * To run a mutation, you first call `useCreateViewSortsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateViewSortsMutation` 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 [createViewSortsMutation, { data, loading, error }] = useCreateViewSortsMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useCreateViewSortsMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CreateViewSortsDocument, options); } export type CreateViewSortsMutationHookResult = ReturnType; export type CreateViewSortsMutationResult = Apollo.MutationResult; export type CreateViewSortsMutationOptions = Apollo.BaseMutationOptions; export const DeleteViewDocument = gql` mutation DeleteView($where: ViewWhereUniqueInput!) { view: deleteOneView(where: $where) { id name } } `; export type DeleteViewMutationFn = Apollo.MutationFunction; /** * __useDeleteViewMutation__ * * To run a mutation, you first call `useDeleteViewMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteViewMutation` 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 [deleteViewMutation, { data, loading, error }] = useDeleteViewMutation({ * variables: { * where: // value for 'where' * }, * }); */ export function useDeleteViewMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteViewDocument, options); } export type DeleteViewMutationHookResult = ReturnType; export type DeleteViewMutationResult = Apollo.MutationResult; export type DeleteViewMutationOptions = Apollo.BaseMutationOptions; export const DeleteViewFiltersDocument = gql` mutation DeleteViewFilters($where: ViewFilterWhereInput!) { deleteManyViewFilter(where: $where) { count } } `; export type DeleteViewFiltersMutationFn = Apollo.MutationFunction; /** * __useDeleteViewFiltersMutation__ * * To run a mutation, you first call `useDeleteViewFiltersMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteViewFiltersMutation` 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 [deleteViewFiltersMutation, { data, loading, error }] = useDeleteViewFiltersMutation({ * variables: { * where: // value for 'where' * }, * }); */ export function useDeleteViewFiltersMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteViewFiltersDocument, options); } export type DeleteViewFiltersMutationHookResult = ReturnType; export type DeleteViewFiltersMutationResult = Apollo.MutationResult; export type DeleteViewFiltersMutationOptions = Apollo.BaseMutationOptions; export const DeleteViewSortsDocument = gql` mutation DeleteViewSorts($where: ViewSortWhereInput!) { deleteManyViewSort(where: $where) { count } } `; export type DeleteViewSortsMutationFn = Apollo.MutationFunction; /** * __useDeleteViewSortsMutation__ * * To run a mutation, you first call `useDeleteViewSortsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteViewSortsMutation` 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 [deleteViewSortsMutation, { data, loading, error }] = useDeleteViewSortsMutation({ * variables: { * where: // value for 'where' * }, * }); */ export function useDeleteViewSortsMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteViewSortsDocument, options); } export type DeleteViewSortsMutationHookResult = ReturnType; export type DeleteViewSortsMutationResult = Apollo.MutationResult; export type DeleteViewSortsMutationOptions = Apollo.BaseMutationOptions; export const UpdateViewDocument = gql` mutation UpdateView($data: ViewUpdateInput!, $where: ViewWhereUniqueInput!) { view: updateOneView(data: $data, where: $where) { id name } } `; export type UpdateViewMutationFn = Apollo.MutationFunction; /** * __useUpdateViewMutation__ * * To run a mutation, you first call `useUpdateViewMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateViewMutation` 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 [updateViewMutation, { data, loading, error }] = useUpdateViewMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateViewMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateViewDocument, options); } export type UpdateViewMutationHookResult = ReturnType; export type UpdateViewMutationResult = Apollo.MutationResult; export type UpdateViewMutationOptions = Apollo.BaseMutationOptions; export const UpdateViewFieldDocument = gql` mutation UpdateViewField($data: ViewFieldUpdateInput!, $where: ViewFieldWhereUniqueInput!) { updateOneViewField(data: $data, where: $where) { ...ViewFieldFragment } } ${ViewFieldFragmentFragmentDoc}`; 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 UpdateViewFilterDocument = gql` mutation UpdateViewFilter($data: ViewFilterUpdateInput!, $where: ViewFilterWhereUniqueInput!) { viewFilter: updateOneViewFilter(data: $data, where: $where) { displayValue key name operand value } } `; export type UpdateViewFilterMutationFn = Apollo.MutationFunction; /** * __useUpdateViewFilterMutation__ * * To run a mutation, you first call `useUpdateViewFilterMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateViewFilterMutation` 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 [updateViewFilterMutation, { data, loading, error }] = useUpdateViewFilterMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateViewFilterMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateViewFilterDocument, options); } export type UpdateViewFilterMutationHookResult = ReturnType; export type UpdateViewFilterMutationResult = Apollo.MutationResult; export type UpdateViewFilterMutationOptions = Apollo.BaseMutationOptions; export const UpdateViewSortDocument = gql` mutation UpdateViewSort($data: ViewSortUpdateInput!, $where: ViewSortWhereUniqueInput!) { viewSort: updateOneViewSort(data: $data, where: $where) { direction key name } } `; export type UpdateViewSortMutationFn = Apollo.MutationFunction; /** * __useUpdateViewSortMutation__ * * To run a mutation, you first call `useUpdateViewSortMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateViewSortMutation` 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 [updateViewSortMutation, { data, loading, error }] = useUpdateViewSortMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateViewSortMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateViewSortDocument, options); } export type UpdateViewSortMutationHookResult = ReturnType; export type UpdateViewSortMutationResult = Apollo.MutationResult; export type UpdateViewSortMutationOptions = Apollo.BaseMutationOptions; export const GetViewFieldsDocument = gql` query GetViewFields($where: ViewFieldWhereInput, $orderBy: [ViewFieldOrderByWithRelationInput!]) { viewFields: findManyViewField(where: $where, orderBy: $orderBy) { ...ViewFieldFragment } } ${ViewFieldFragmentFragmentDoc}`; /** * __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' * orderBy: // value for 'orderBy' * }, * }); */ 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 GetViewFiltersDocument = gql` query GetViewFilters($where: ViewFilterWhereInput) { viewFilters: findManyViewFilter(where: $where) { displayValue key name operand value } } `; /** * __useGetViewFiltersQuery__ * * To run a query within a React component, call `useGetViewFiltersQuery` and pass it any options that fit your needs. * When your component renders, `useGetViewFiltersQuery` 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 } = useGetViewFiltersQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useGetViewFiltersQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetViewFiltersDocument, options); } export function useGetViewFiltersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetViewFiltersDocument, options); } export type GetViewFiltersQueryHookResult = ReturnType; export type GetViewFiltersLazyQueryHookResult = ReturnType; export type GetViewFiltersQueryResult = Apollo.QueryResult; export const GetViewSortsDocument = gql` query GetViewSorts($where: ViewSortWhereInput) { viewSorts: findManyViewSort(where: $where) { direction key name } } `; /** * __useGetViewSortsQuery__ * * To run a query within a React component, call `useGetViewSortsQuery` and pass it any options that fit your needs. * When your component renders, `useGetViewSortsQuery` 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 } = useGetViewSortsQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useGetViewSortsQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetViewSortsDocument, options); } export function useGetViewSortsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetViewSortsDocument, options); } export type GetViewSortsQueryHookResult = ReturnType; export type GetViewSortsLazyQueryHookResult = ReturnType; export type GetViewSortsQueryResult = Apollo.QueryResult; export const GetViewsDocument = gql` query GetViews($where: ViewWhereInput) { views: findManyView(where: $where) { id name } } `; /** * __useGetViewsQuery__ * * To run a query within a React component, call `useGetViewsQuery` and pass it any options that fit your needs. * When your component renders, `useGetViewsQuery` 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 } = useGetViewsQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useGetViewsQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetViewsDocument, options); } export function useGetViewsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetViewsDocument, options); } export type GetViewsQueryHookResult = ReturnType; export type GetViewsLazyQueryHookResult = ReturnType; export type GetViewsQueryResult = Apollo.QueryResult; export const DeleteCurrentWorkspaceDocument = gql` mutation DeleteCurrentWorkspace { deleteCurrentWorkspace { id } } `; export type DeleteCurrentWorkspaceMutationFn = Apollo.MutationFunction; /** * __useDeleteCurrentWorkspaceMutation__ * * To run a mutation, you first call `useDeleteCurrentWorkspaceMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteCurrentWorkspaceMutation` 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 [deleteCurrentWorkspaceMutation, { data, loading, error }] = useDeleteCurrentWorkspaceMutation({ * variables: { * }, * }); */ export function useDeleteCurrentWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteCurrentWorkspaceDocument, options); } export type DeleteCurrentWorkspaceMutationHookResult = ReturnType; export type DeleteCurrentWorkspaceMutationResult = Apollo.MutationResult; export type DeleteCurrentWorkspaceMutationOptions = 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; 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 UpdateOneWorkspaceMemberDocument = gql` mutation UpdateOneWorkspaceMember($data: WorkspaceMemberUpdateInput!, $where: WorkspaceMemberWhereUniqueInput!) { UpdateOneWorkspaceMember(data: $data, where: $where) { ...workspaceMemberFieldsFragment } } ${WorkspaceMemberFieldsFragmentFragmentDoc}`; export type UpdateOneWorkspaceMemberMutationFn = Apollo.MutationFunction; /** * __useUpdateOneWorkspaceMemberMutation__ * * To run a mutation, you first call `useUpdateOneWorkspaceMemberMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateOneWorkspaceMemberMutation` 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 [updateOneWorkspaceMemberMutation, { data, loading, error }] = useUpdateOneWorkspaceMemberMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateOneWorkspaceMemberMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateOneWorkspaceMemberDocument, options); } export type UpdateOneWorkspaceMemberMutationHookResult = ReturnType; export type UpdateOneWorkspaceMemberMutationResult = Apollo.MutationResult; export type UpdateOneWorkspaceMemberMutationOptions = Apollo.BaseMutationOptions; export const GetWorkspaceFromInviteHashDocument = gql` query GetWorkspaceFromInviteHash($inviteHash: String!) { findWorkspaceFromInviteHash(inviteHash: $inviteHash) { id displayName logo } } `; /** * __useGetWorkspaceFromInviteHashQuery__ * * To run a query within a React component, call `useGetWorkspaceFromInviteHashQuery` and pass it any options that fit your needs. * When your component renders, `useGetWorkspaceFromInviteHashQuery` 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 } = useGetWorkspaceFromInviteHashQuery({ * variables: { * inviteHash: // value for 'inviteHash' * }, * }); */ export function useGetWorkspaceFromInviteHashQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetWorkspaceFromInviteHashDocument, options); } export function useGetWorkspaceFromInviteHashLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetWorkspaceFromInviteHashDocument, options); } export type GetWorkspaceFromInviteHashQueryHookResult = ReturnType; export type GetWorkspaceFromInviteHashLazyQueryHookResult = ReturnType; export type GetWorkspaceFromInviteHashQueryResult = Apollo.QueryResult; export const GetWorkspaceMembersDocument = gql` query GetWorkspaceMembers($where: WorkspaceMemberWhereInput) { workspaceMembers: findManyWorkspaceMember(where: $where) { id user { ...userFieldsFragment avatarUrl } } } ${UserFieldsFragmentFragmentDoc}`; /** * __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: { * where: // value for 'where' * }, * }); */ 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;