import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; DateTime: any; JSON: any; }; export type AffectedRows = { __typename?: 'AffectedRows'; count: Scalars['Int']; }; export type BoolFieldUpdateOperationsInput = { set?: InputMaybe; }; export type BoolFilter = { equals?: InputMaybe; not?: InputMaybe; }; export type Comment = { __typename?: 'Comment'; author: User; authorId: Scalars['String']; body: Scalars['String']; commentThread: CommentThread; commentThreadId: Scalars['String']; createdAt: Scalars['DateTime']; deletedAt?: Maybe; id: Scalars['ID']; updatedAt: Scalars['DateTime']; }; export type CommentCreateInput = { author: UserCreateNestedOneWithoutCommentsInput; body: Scalars['String']; commentThread: CommentThreadCreateNestedOneWithoutCommentsInput; createdAt?: InputMaybe; deletedAt?: InputMaybe; id: Scalars['String']; updatedAt?: InputMaybe; }; export type CommentCreateManyAuthorInput = { body: Scalars['String']; commentThreadId: Scalars['String']; createdAt?: InputMaybe; deletedAt?: InputMaybe; id: Scalars['String']; updatedAt?: InputMaybe; }; export type CommentCreateManyAuthorInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type CommentCreateManyCommentThreadInput = { authorId: Scalars['String']; body: Scalars['String']; createdAt?: InputMaybe; deletedAt?: InputMaybe; id: Scalars['String']; updatedAt?: InputMaybe; }; export type CommentCreateManyCommentThreadInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type CommentCreateNestedManyWithoutAuthorInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; }; export type CommentCreateNestedManyWithoutCommentThreadInput = { createMany?: InputMaybe; }; export type CommentCreateOrConnectWithoutAuthorInput = { create: CommentCreateWithoutAuthorInput; where: CommentWhereUniqueInput; }; export type CommentCreateWithoutAuthorInput = { body: Scalars['String']; commentThread: CommentThreadCreateNestedOneWithoutCommentsInput; createdAt?: InputMaybe; deletedAt?: InputMaybe; id: Scalars['String']; updatedAt?: InputMaybe; }; export type CommentListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type CommentOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type CommentScalarWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; authorId?: InputMaybe; body?: InputMaybe; commentThreadId?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThread = { __typename?: 'CommentThread'; commentThreadTargets?: Maybe>; comments?: Maybe>; createdAt: Scalars['DateTime']; deletedAt?: Maybe; id: Scalars['ID']; updatedAt: Scalars['DateTime']; }; export type CommentThreadCreateInput = { commentThreadTargets?: InputMaybe; comments?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id: Scalars['String']; updatedAt?: InputMaybe; }; export type CommentThreadCreateNestedOneWithoutCommentsInput = { connect?: InputMaybe; }; export type CommentThreadCreateOrConnectWithoutCommentsInput = { create: CommentThreadCreateWithoutCommentsInput; where: CommentThreadWhereUniqueInput; }; export type CommentThreadCreateWithoutCommentsInput = { commentThreadTargets?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id: Scalars['String']; updatedAt?: InputMaybe; }; export type CommentThreadRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export type CommentThreadTarget = { __typename?: 'CommentThreadTarget'; commentThread: CommentThread; commentThreadId: Scalars['String']; commentableId: Scalars['String']; commentableType: CommentableType; createdAt: Scalars['DateTime']; deletedAt?: Maybe; id: Scalars['ID']; updatedAt: Scalars['DateTime']; }; export type CommentThreadTargetCreateManyCommentThreadInput = { commentableId: Scalars['String']; commentableType: CommentableType; createdAt?: InputMaybe; deletedAt?: InputMaybe; id: Scalars['String']; updatedAt?: InputMaybe; }; export type CommentThreadTargetCreateManyCommentThreadInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type CommentThreadTargetCreateNestedManyWithoutCommentThreadInput = { createMany?: InputMaybe; }; export type CommentThreadTargetCreateOrConnectWithoutCommentThreadInput = { create: CommentThreadTargetCreateWithoutCommentThreadInput; where: CommentThreadTargetWhereUniqueInput; }; export type CommentThreadTargetCreateWithoutCommentThreadInput = { commentableId: Scalars['String']; commentableType: CommentableType; createdAt?: InputMaybe; deletedAt?: InputMaybe; id: Scalars['String']; updatedAt?: InputMaybe; }; export type CommentThreadTargetListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type CommentThreadTargetScalarWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; commentThreadId?: InputMaybe; commentableId?: InputMaybe; commentableType?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetUpdateManyMutationInput = { commentableId?: InputMaybe; commentableType?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetUpdateManyWithWhereWithoutCommentThreadInput = { data: CommentThreadTargetUpdateManyMutationInput; where: CommentThreadTargetScalarWhereInput; }; export type CommentThreadTargetUpdateManyWithoutCommentThreadNestedInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; delete?: InputMaybe>; deleteMany?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; update?: InputMaybe>; updateMany?: InputMaybe>; upsert?: InputMaybe>; }; export type CommentThreadTargetUpdateWithWhereUniqueWithoutCommentThreadInput = { data: CommentThreadTargetUpdateWithoutCommentThreadInput; where: CommentThreadTargetWhereUniqueInput; }; export type CommentThreadTargetUpdateWithoutCommentThreadInput = { commentableId?: InputMaybe; commentableType?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetUpsertWithWhereUniqueWithoutCommentThreadInput = { create: CommentThreadTargetCreateWithoutCommentThreadInput; update: CommentThreadTargetUpdateWithoutCommentThreadInput; where: CommentThreadTargetWhereUniqueInput; }; export type CommentThreadTargetWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; commentThread?: InputMaybe; commentThreadId?: InputMaybe; commentableId?: InputMaybe; commentableType?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadTargetWhereUniqueInput = { id?: InputMaybe; }; export type CommentThreadUpdateOneRequiredWithoutCommentsNestedInput = { connect?: InputMaybe; connectOrCreate?: InputMaybe; create?: InputMaybe; update?: InputMaybe; upsert?: InputMaybe; }; export type CommentThreadUpdateWithoutCommentsInput = { commentThreadTargets?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadUpsertWithoutCommentsInput = { create: CommentThreadCreateWithoutCommentsInput; update: CommentThreadUpdateWithoutCommentsInput; }; export type CommentThreadWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; commentThreadTargets?: InputMaybe; comments?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentThreadWhereUniqueInput = { id?: InputMaybe; }; export type CommentUpdateManyMutationInput = { body?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentUpdateManyWithWhereWithoutAuthorInput = { data: CommentUpdateManyMutationInput; where: CommentScalarWhereInput; }; export type CommentUpdateManyWithoutAuthorNestedInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; delete?: InputMaybe>; deleteMany?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; update?: InputMaybe>; updateMany?: InputMaybe>; upsert?: InputMaybe>; }; export type CommentUpdateWithWhereUniqueWithoutAuthorInput = { data: CommentUpdateWithoutAuthorInput; where: CommentWhereUniqueInput; }; export type CommentUpdateWithoutAuthorInput = { body?: InputMaybe; commentThread?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentUpsertWithWhereUniqueWithoutAuthorInput = { create: CommentCreateWithoutAuthorInput; update: CommentUpdateWithoutAuthorInput; where: CommentWhereUniqueInput; }; export type CommentWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; author?: InputMaybe; authorId?: InputMaybe; body?: InputMaybe; commentThread?: InputMaybe; commentThreadId?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; id?: InputMaybe; updatedAt?: InputMaybe; }; export type CommentWhereUniqueInput = { id?: InputMaybe; }; export enum CommentableType { Company = 'Company', Person = 'Person' } export type Company = { __typename?: 'Company'; _commentsCount: Scalars['Int']; accountOwner?: Maybe; accountOwnerId?: Maybe; address: Scalars['String']; commentThreads: Array; comments: Array; createdAt: Scalars['DateTime']; deletedAt?: Maybe; domainName: Scalars['String']; employees?: Maybe; id: Scalars['ID']; name: Scalars['String']; people?: Maybe>; updatedAt: Scalars['DateTime']; }; export type CompanyCreateInput = { accountOwner?: InputMaybe; address: Scalars['String']; createdAt?: InputMaybe; deletedAt?: InputMaybe; domainName: Scalars['String']; employees?: InputMaybe; id: Scalars['String']; name: Scalars['String']; people?: InputMaybe; updatedAt?: InputMaybe; }; export type CompanyCreateNestedOneWithoutPeopleInput = { connect?: InputMaybe; connectOrCreate?: InputMaybe; create?: InputMaybe; }; export type CompanyCreateOrConnectWithoutPeopleInput = { create: CompanyCreateWithoutPeopleInput; where: CompanyWhereUniqueInput; }; export type CompanyCreateWithoutPeopleInput = { accountOwner?: InputMaybe; address: Scalars['String']; createdAt?: InputMaybe; deletedAt?: InputMaybe; domainName: Scalars['String']; employees?: InputMaybe; id: Scalars['String']; name: Scalars['String']; updatedAt?: InputMaybe; }; export type CompanyListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type CompanyOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type CompanyOrderByWithRelationInput = { accountOwner?: InputMaybe; accountOwnerId?: InputMaybe; address?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; name?: InputMaybe; people?: InputMaybe; updatedAt?: InputMaybe; }; export type CompanyRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum CompanyScalarFieldEnum { AccountOwnerId = 'accountOwnerId', Address = 'address', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', DomainName = 'domainName', Employees = 'employees', Id = 'id', Name = 'name', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type CompanyUpdateInput = { accountOwner?: InputMaybe; address?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; name?: InputMaybe; people?: InputMaybe; updatedAt?: InputMaybe; }; export type CompanyUpdateOneWithoutPeopleNestedInput = { connect?: InputMaybe; connectOrCreate?: InputMaybe; create?: InputMaybe; delete?: InputMaybe; disconnect?: InputMaybe; update?: InputMaybe; upsert?: InputMaybe; }; export type CompanyUpdateWithoutPeopleInput = { accountOwner?: InputMaybe; address?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; name?: InputMaybe; updatedAt?: InputMaybe; }; export type CompanyUpsertWithoutPeopleInput = { create: CompanyCreateWithoutPeopleInput; update: CompanyUpdateWithoutPeopleInput; }; export type CompanyWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; accountOwner?: InputMaybe; accountOwnerId?: InputMaybe; address?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; domainName?: InputMaybe; employees?: InputMaybe; id?: InputMaybe; name?: InputMaybe; people?: InputMaybe; updatedAt?: InputMaybe; }; export type CompanyWhereUniqueInput = { id?: InputMaybe; }; export type DateTimeFieldUpdateOperationsInput = { set?: 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 EnumCommentableTypeFieldUpdateOperationsInput = { set?: InputMaybe; }; export type EnumCommentableTypeFilter = { equals?: InputMaybe; in?: 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 Mutation = { __typename?: 'Mutation'; createOneComment: Comment; createOneCommentThread: CommentThread; createOneCompany: Company; createOnePerson: Person; deleteManyCompany: AffectedRows; deleteManyPerson: AffectedRows; updateOneCompany?: Maybe; updateOnePerson?: Maybe; }; export type MutationCreateOneCommentArgs = { data: CommentCreateInput; }; export type MutationCreateOneCommentThreadArgs = { data: CommentThreadCreateInput; }; export type MutationCreateOneCompanyArgs = { data: CompanyCreateInput; }; export type MutationCreateOnePersonArgs = { data: PersonCreateInput; }; export type MutationDeleteManyCompanyArgs = { where?: InputMaybe; }; export type MutationDeleteManyPersonArgs = { where?: InputMaybe; }; export type MutationUpdateOneCompanyArgs = { data: CompanyUpdateInput; where: CompanyWhereUniqueInput; }; export type MutationUpdateOnePersonArgs = { data: PersonUpdateInput; where: PersonWhereUniqueInput; }; 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 NestedEnumCommentableTypeFilter = { equals?: InputMaybe; in?: 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 NullableDateTimeFieldUpdateOperationsInput = { set?: InputMaybe; }; export type NullableIntFieldUpdateOperationsInput = { decrement?: InputMaybe; divide?: InputMaybe; increment?: InputMaybe; multiply?: InputMaybe; set?: InputMaybe; }; export type NullableStringFieldUpdateOperationsInput = { set?: InputMaybe; }; export type Person = { __typename?: 'Person'; _commentCount: Scalars['Int']; city: Scalars['String']; commentThreads: Array; comments: Array; company?: Maybe; companyId?: Maybe; createdAt: Scalars['DateTime']; deletedAt?: Maybe; email: Scalars['String']; firstname: Scalars['String']; id: Scalars['ID']; lastname: Scalars['String']; phone: Scalars['String']; updatedAt: Scalars['DateTime']; }; export type PersonCreateInput = { city: Scalars['String']; company?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; email: Scalars['String']; firstname: Scalars['String']; id: Scalars['String']; lastname: Scalars['String']; phone: Scalars['String']; updatedAt?: InputMaybe; }; export type PersonCreateManyCompanyInput = { city: Scalars['String']; createdAt?: InputMaybe; deletedAt?: InputMaybe; email: Scalars['String']; firstname: Scalars['String']; id: Scalars['String']; lastname: Scalars['String']; phone: Scalars['String']; updatedAt?: InputMaybe; }; export type PersonCreateManyCompanyInputEnvelope = { data: Array; skipDuplicates?: InputMaybe; }; export type PersonCreateNestedManyWithoutCompanyInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; }; export type PersonCreateOrConnectWithoutCompanyInput = { create: PersonCreateWithoutCompanyInput; where: PersonWhereUniqueInput; }; export type PersonCreateWithoutCompanyInput = { city: Scalars['String']; createdAt?: InputMaybe; deletedAt?: InputMaybe; email: Scalars['String']; firstname: Scalars['String']; id: Scalars['String']; lastname: Scalars['String']; phone: Scalars['String']; updatedAt?: InputMaybe; }; export type PersonListRelationFilter = { every?: InputMaybe; none?: InputMaybe; some?: InputMaybe; }; export type PersonOrderByRelationAggregateInput = { _count?: InputMaybe; }; export type PersonOrderByWithRelationInput = { city?: InputMaybe; company?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; }; export enum PersonScalarFieldEnum { City = 'city', CompanyId = 'companyId', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Email = 'email', Firstname = 'firstname', Id = 'id', Lastname = 'lastname', Phone = 'phone', UpdatedAt = 'updatedAt', WorkspaceId = 'workspaceId' } export type PersonScalarWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; city?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; }; export type PersonUpdateInput = { city?: InputMaybe; company?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; }; export type PersonUpdateManyMutationInput = { city?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; }; export type PersonUpdateManyWithWhereWithoutCompanyInput = { data: PersonUpdateManyMutationInput; where: PersonScalarWhereInput; }; export type PersonUpdateManyWithoutCompanyNestedInput = { connect?: InputMaybe>; connectOrCreate?: InputMaybe>; create?: InputMaybe>; createMany?: InputMaybe; delete?: InputMaybe>; deleteMany?: InputMaybe>; disconnect?: InputMaybe>; set?: InputMaybe>; update?: InputMaybe>; updateMany?: InputMaybe>; upsert?: InputMaybe>; }; export type PersonUpdateWithWhereUniqueWithoutCompanyInput = { data: PersonUpdateWithoutCompanyInput; where: PersonWhereUniqueInput; }; export type PersonUpdateWithoutCompanyInput = { city?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; }; export type PersonUpsertWithWhereUniqueWithoutCompanyInput = { create: PersonCreateWithoutCompanyInput; update: PersonUpdateWithoutCompanyInput; where: PersonWhereUniqueInput; }; export type PersonWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; city?: InputMaybe; company?: InputMaybe; companyId?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; email?: InputMaybe; firstname?: InputMaybe; id?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; updatedAt?: InputMaybe; }; export type PersonWhereUniqueInput = { id?: InputMaybe; }; export type Pipeline = { __typename?: 'Pipeline'; createdAt: Scalars['DateTime']; deletedAt?: Maybe; icon: Scalars['String']; id: Scalars['ID']; name: Scalars['String']; pipelineProgresses?: Maybe>; pipelineStages?: Maybe>; updatedAt: Scalars['DateTime']; }; export type PipelineProgress = { __typename?: 'PipelineProgress'; associableId: Scalars['String']; associableType: PipelineProgressableType; createdAt: Scalars['DateTime']; deletedAt?: Maybe; id: Scalars['ID']; pipeline: Pipeline; pipelineId: Scalars['String']; pipelineStage: PipelineStage; pipelineStageId: Scalars['String']; updatedAt: Scalars['DateTime']; }; export enum PipelineProgressableType { Company = 'Company', Person = 'Person' } export type PipelineStage = { __typename?: 'PipelineStage'; color: Scalars['String']; createdAt: Scalars['DateTime']; deletedAt?: Maybe; id: Scalars['ID']; name: Scalars['String']; pipeline: Pipeline; pipelineId: Scalars['String']; pipelineProgresses?: Maybe>; type: Scalars['String']; updatedAt: Scalars['DateTime']; }; export type Query = { __typename?: 'Query'; findManyCompany: Array; findManyPerson: Array; findManyUser: Array; }; 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 QueryFindManyUserArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export enum QueryMode { Default = 'default', Insensitive = 'insensitive' } export enum SortOrder { Asc = 'asc', Desc = 'desc' } export type StringFieldUpdateOperationsInput = { set?: InputMaybe; }; 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 User = { __typename?: 'User'; avatarUrl?: Maybe; comments?: Maybe>; companies?: Maybe>; createdAt: Scalars['DateTime']; deletedAt?: Maybe; disabled: Scalars['Boolean']; displayName: Scalars['String']; email: Scalars['String']; emailVerified: Scalars['Boolean']; id: Scalars['ID']; lastSeen?: Maybe; locale: Scalars['String']; metadata?: Maybe; passwordHash?: Maybe; phoneNumber?: Maybe; updatedAt: Scalars['DateTime']; workspaceMember?: Maybe; }; export type UserCompaniesArgs = { cursor?: InputMaybe; distinct?: InputMaybe>; orderBy?: InputMaybe>; skip?: InputMaybe; take?: InputMaybe; where?: InputMaybe; }; export type UserCreateNestedOneWithoutCommentsInput = { connect?: InputMaybe; }; export type UserCreateNestedOneWithoutCompaniesInput = { connect?: InputMaybe; connectOrCreate?: InputMaybe; create?: InputMaybe; }; export type UserCreateOrConnectWithoutCompaniesInput = { create: UserCreateWithoutCompaniesInput; where: UserWhereUniqueInput; }; export type UserCreateWithoutCompaniesInput = { avatarUrl?: InputMaybe; comments?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; disabled?: InputMaybe; displayName: Scalars['String']; email: Scalars['String']; emailVerified?: InputMaybe; id: Scalars['String']; lastSeen?: InputMaybe; locale: Scalars['String']; metadata?: InputMaybe; passwordHash?: InputMaybe; phoneNumber?: InputMaybe; updatedAt?: InputMaybe; }; export type UserOrderByWithRelationInput = { avatarUrl?: InputMaybe; comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; disabled?: InputMaybe; displayName?: InputMaybe; email?: InputMaybe; emailVerified?: InputMaybe; id?: InputMaybe; lastSeen?: InputMaybe; locale?: InputMaybe; metadata?: InputMaybe; passwordHash?: InputMaybe; phoneNumber?: InputMaybe; updatedAt?: InputMaybe; }; export type UserRelationFilter = { is?: InputMaybe; isNot?: InputMaybe; }; export enum UserScalarFieldEnum { AvatarUrl = 'avatarUrl', CreatedAt = 'createdAt', DeletedAt = 'deletedAt', Disabled = 'disabled', DisplayName = 'displayName', Email = 'email', EmailVerified = 'emailVerified', Id = 'id', LastSeen = 'lastSeen', Locale = 'locale', Metadata = 'metadata', PasswordHash = 'passwordHash', PhoneNumber = 'phoneNumber', UpdatedAt = 'updatedAt' } export type UserUpdateOneWithoutCompaniesNestedInput = { connect?: InputMaybe; connectOrCreate?: InputMaybe; create?: InputMaybe; delete?: InputMaybe; disconnect?: InputMaybe; update?: InputMaybe; upsert?: InputMaybe; }; export type UserUpdateWithoutCompaniesInput = { avatarUrl?: InputMaybe; comments?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; disabled?: InputMaybe; displayName?: InputMaybe; email?: InputMaybe; emailVerified?: InputMaybe; id?: InputMaybe; lastSeen?: InputMaybe; locale?: InputMaybe; metadata?: InputMaybe; passwordHash?: InputMaybe; phoneNumber?: InputMaybe; updatedAt?: InputMaybe; }; export type UserUpsertWithoutCompaniesInput = { create: UserCreateWithoutCompaniesInput; update: UserUpdateWithoutCompaniesInput; }; export type UserWhereInput = { AND?: InputMaybe>; NOT?: InputMaybe>; OR?: InputMaybe>; avatarUrl?: InputMaybe; comments?: InputMaybe; companies?: InputMaybe; createdAt?: InputMaybe; deletedAt?: InputMaybe; disabled?: InputMaybe; displayName?: InputMaybe; email?: InputMaybe; emailVerified?: InputMaybe; id?: InputMaybe; lastSeen?: InputMaybe; locale?: InputMaybe; metadata?: InputMaybe; passwordHash?: InputMaybe; phoneNumber?: InputMaybe; updatedAt?: InputMaybe; }; export type UserWhereUniqueInput = { email?: InputMaybe; id?: InputMaybe; }; export type Workspace = { __typename?: 'Workspace'; commentThreads?: Maybe>; comments?: Maybe>; companies?: Maybe>; createdAt: Scalars['DateTime']; deletedAt?: Maybe; displayName: Scalars['String']; domainName: Scalars['String']; id: Scalars['ID']; logo?: Maybe; people?: Maybe>; pipelineStages?: Maybe>; pipelines?: Maybe>; updatedAt: Scalars['DateTime']; workspaceMember?: Maybe>; }; export type WorkspaceMember = { __typename?: 'WorkspaceMember'; createdAt: Scalars['DateTime']; deletedAt?: Maybe; id: Scalars['ID']; updatedAt: Scalars['DateTime']; user: User; userId: Scalars['String']; workspace: Workspace; }; export type GetCompaniesQueryVariables = Exact<{ orderBy?: InputMaybe | CompanyOrderByWithRelationInput>; where?: InputMaybe; }>; export type GetCompaniesQuery = { __typename?: 'Query', companies: Array<{ __typename?: 'Company', id: string, domainName: string, name: string, createdAt: any, address: string, employees?: number | null, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string } | null }> }; export type UpdateCompanyMutationVariables = Exact<{ id?: InputMaybe; name?: InputMaybe; domainName?: InputMaybe; accountOwnerId?: InputMaybe; createdAt?: InputMaybe; address?: InputMaybe; employees?: InputMaybe; }>; export type UpdateCompanyMutation = { __typename?: 'Mutation', updateOneCompany?: { __typename?: 'Company', address: string, createdAt: any, domainName: string, employees?: number | null, id: string, name: string, accountOwner?: { __typename?: 'User', id: string, email: string, displayName: string } | null } | null }; export type InsertCompanyMutationVariables = Exact<{ id: Scalars['String']; name: Scalars['String']; domainName: Scalars['String']; createdAt?: InputMaybe; address: Scalars['String']; employees?: InputMaybe; }>; export type InsertCompanyMutation = { __typename?: 'Mutation', createOneCompany: { __typename?: 'Company', address: string, createdAt: any, domainName: string, employees?: number | null, id: string, name: string } }; export type DeleteCompaniesMutationVariables = Exact<{ ids?: InputMaybe | Scalars['String']>; }>; export type DeleteCompaniesMutation = { __typename?: 'Mutation', deleteManyCompany: { __typename?: 'AffectedRows', count: number } }; export type GetPeopleQueryVariables = Exact<{ orderBy?: InputMaybe | PersonOrderByWithRelationInput>; where?: InputMaybe; limit?: InputMaybe; }>; export type GetPeopleQuery = { __typename?: 'Query', people: Array<{ __typename?: 'Person', id: string, phone: string, email: string, city: string, firstname: string, lastname: string, createdAt: any, company?: { __typename?: 'Company', id: string, name: string, domainName: string } | null }> }; export type UpdatePeopleMutationVariables = Exact<{ id?: InputMaybe; firstname?: InputMaybe; lastname?: InputMaybe; phone?: InputMaybe; city?: InputMaybe; companyId?: InputMaybe; email?: InputMaybe; createdAt?: InputMaybe; }>; export type UpdatePeopleMutation = { __typename?: 'Mutation', updateOnePerson?: { __typename?: 'Person', city: string, email: string, firstname: string, id: string, lastname: string, phone: string, createdAt: any, company?: { __typename?: 'Company', domainName: string, name: string, id: string } | null } | null }; export type InsertPersonMutationVariables = Exact<{ id: Scalars['String']; firstname: Scalars['String']; lastname: Scalars['String']; phone: Scalars['String']; city: Scalars['String']; email: Scalars['String']; createdAt?: InputMaybe; }>; export type InsertPersonMutation = { __typename?: 'Mutation', createOnePerson: { __typename?: 'Person', city: string, email: string, firstname: string, id: string, lastname: string, phone: string, createdAt: any, company?: { __typename?: 'Company', domainName: string, name: string, id: string } | null } }; export type DeletePeopleMutationVariables = Exact<{ ids?: InputMaybe | Scalars['String']>; }>; export type DeletePeopleMutation = { __typename?: 'Mutation', deleteManyPerson: { __typename?: 'AffectedRows', count: number } }; export type SearchPeopleQueryQueryVariables = Exact<{ where?: InputMaybe; limit?: InputMaybe; }>; export type SearchPeopleQueryQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'Person', id: string, phone: string, email: string, city: string, firstname: string, lastname: string, createdAt: any }> }; export type SearchUserQueryQueryVariables = Exact<{ where?: InputMaybe; limit?: InputMaybe; }>; export type SearchUserQueryQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'User', id: string, email: string, displayName: string }> }; export type EmptyQueryQueryVariables = Exact<{ [key: string]: never; }>; export type EmptyQueryQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'User', id: string }> }; export type SearchCompanyQueryQueryVariables = Exact<{ where?: InputMaybe; limit?: InputMaybe; }>; export type SearchCompanyQueryQuery = { __typename?: 'Query', searchResults: Array<{ __typename?: 'Company', id: string, name: string, domainName: string }> }; export type GetCurrentUserQueryVariables = Exact<{ uuid?: InputMaybe; }>; export type GetCurrentUserQuery = { __typename?: 'Query', users: Array<{ __typename?: 'User', id: string, email: string, displayName: string, workspaceMember?: { __typename?: 'WorkspaceMember', workspace: { __typename?: 'Workspace', id: string, domainName: string, displayName: string, logo?: string | null } } | null }> }; export type GetUsersQueryVariables = Exact<{ [key: string]: never; }>; export type GetUsersQuery = { __typename?: 'Query', findManyUser: Array<{ __typename?: 'User', id: string }> }; export const GetCompaniesDocument = gql` query GetCompanies($orderBy: [CompanyOrderByWithRelationInput!], $where: CompanyWhereInput) { companies: findManyCompany(orderBy: $orderBy, where: $where) { id domainName name createdAt address employees accountOwner { id email displayName } } } `; /** * __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 UpdateCompanyDocument = gql` mutation UpdateCompany($id: String, $name: String, $domainName: String, $accountOwnerId: String, $createdAt: DateTime, $address: String, $employees: Int) { updateOneCompany( where: {id: $id} data: {accountOwner: {connect: {id: $accountOwnerId}}, address: {set: $address}, domainName: {set: $domainName}, employees: {set: $employees}, name: {set: $name}, createdAt: {set: $createdAt}} ) { accountOwner { id email displayName } address createdAt domainName employees id name } } `; export type UpdateCompanyMutationFn = Apollo.MutationFunction; /** * __useUpdateCompanyMutation__ * * To run a mutation, you first call `useUpdateCompanyMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateCompanyMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updateCompanyMutation, { data, loading, error }] = useUpdateCompanyMutation({ * variables: { * id: // value for 'id' * name: // value for 'name' * domainName: // value for 'domainName' * accountOwnerId: // value for 'accountOwnerId' * createdAt: // value for 'createdAt' * address: // value for 'address' * employees: // value for 'employees' * }, * }); */ export function useUpdateCompanyMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateCompanyDocument, options); } export type UpdateCompanyMutationHookResult = ReturnType; export type UpdateCompanyMutationResult = Apollo.MutationResult; export type UpdateCompanyMutationOptions = Apollo.BaseMutationOptions; export const InsertCompanyDocument = gql` mutation InsertCompany($id: String!, $name: String!, $domainName: String!, $createdAt: DateTime, $address: String!, $employees: Int) { createOneCompany( data: {id: $id, name: $name, domainName: $domainName, createdAt: $createdAt, address: $address, employees: $employees} ) { address createdAt domainName employees id name } } `; export type InsertCompanyMutationFn = Apollo.MutationFunction; /** * __useInsertCompanyMutation__ * * To run a mutation, you first call `useInsertCompanyMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useInsertCompanyMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [insertCompanyMutation, { data, loading, error }] = useInsertCompanyMutation({ * variables: { * id: // value for 'id' * name: // value for 'name' * domainName: // value for 'domainName' * createdAt: // value for 'createdAt' * address: // value for 'address' * employees: // value for 'employees' * }, * }); */ export function useInsertCompanyMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(InsertCompanyDocument, options); } export type InsertCompanyMutationHookResult = ReturnType; export type InsertCompanyMutationResult = Apollo.MutationResult; export type InsertCompanyMutationOptions = Apollo.BaseMutationOptions; export const DeleteCompaniesDocument = gql` mutation DeleteCompanies($ids: [String!]) { deleteManyCompany(where: {id: {in: $ids}}) { count } } `; export type DeleteCompaniesMutationFn = Apollo.MutationFunction; /** * __useDeleteCompaniesMutation__ * * To run a mutation, you first call `useDeleteCompaniesMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteCompaniesMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [deleteCompaniesMutation, { data, loading, error }] = useDeleteCompaniesMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useDeleteCompaniesMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteCompaniesDocument, options); } export type DeleteCompaniesMutationHookResult = ReturnType; export type DeleteCompaniesMutationResult = Apollo.MutationResult; export type DeleteCompaniesMutationOptions = Apollo.BaseMutationOptions; export const GetPeopleDocument = gql` query GetPeople($orderBy: [PersonOrderByWithRelationInput!], $where: PersonWhereInput, $limit: Int) { people: findManyPerson(orderBy: $orderBy, where: $where, take: $limit) { id phone email city firstname lastname createdAt company { id name domainName } } } `; /** * __useGetPeopleQuery__ * * To run a query within a React component, call `useGetPeopleQuery` and pass it any options that fit your needs. * When your component renders, `useGetPeopleQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetPeopleQuery({ * variables: { * orderBy: // value for 'orderBy' * where: // value for 'where' * limit: // value for 'limit' * }, * }); */ export function useGetPeopleQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetPeopleDocument, options); } export function useGetPeopleLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPeopleDocument, options); } export type GetPeopleQueryHookResult = ReturnType; export type GetPeopleLazyQueryHookResult = ReturnType; export type GetPeopleQueryResult = Apollo.QueryResult; export const UpdatePeopleDocument = gql` mutation UpdatePeople($id: String, $firstname: String, $lastname: String, $phone: String, $city: String, $companyId: String, $email: String, $createdAt: DateTime) { updateOnePerson( where: {id: $id} data: {city: {set: $city}, company: {connect: {id: $companyId}}, email: {set: $email}, firstname: {set: $firstname}, id: {set: $id}, lastname: {set: $lastname}, phone: {set: $phone}, createdAt: {set: $createdAt}} ) { city company { domainName name id } email firstname id lastname phone createdAt } } `; export type UpdatePeopleMutationFn = Apollo.MutationFunction; /** * __useUpdatePeopleMutation__ * * To run a mutation, you first call `useUpdatePeopleMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdatePeopleMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updatePeopleMutation, { data, loading, error }] = useUpdatePeopleMutation({ * variables: { * id: // value for 'id' * firstname: // value for 'firstname' * lastname: // value for 'lastname' * phone: // value for 'phone' * city: // value for 'city' * companyId: // value for 'companyId' * email: // value for 'email' * createdAt: // value for 'createdAt' * }, * }); */ export function useUpdatePeopleMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdatePeopleDocument, options); } export type UpdatePeopleMutationHookResult = ReturnType; export type UpdatePeopleMutationResult = Apollo.MutationResult; export type UpdatePeopleMutationOptions = Apollo.BaseMutationOptions; export const InsertPersonDocument = gql` mutation InsertPerson($id: String!, $firstname: String!, $lastname: String!, $phone: String!, $city: String!, $email: String!, $createdAt: DateTime) { createOnePerson( data: {id: $id, firstname: $firstname, lastname: $lastname, phone: $phone, city: $city, email: $email, createdAt: $createdAt} ) { city company { domainName name id } email firstname id lastname phone createdAt } } `; export type InsertPersonMutationFn = Apollo.MutationFunction; /** * __useInsertPersonMutation__ * * To run a mutation, you first call `useInsertPersonMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useInsertPersonMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [insertPersonMutation, { data, loading, error }] = useInsertPersonMutation({ * variables: { * id: // value for 'id' * firstname: // value for 'firstname' * lastname: // value for 'lastname' * phone: // value for 'phone' * city: // value for 'city' * email: // value for 'email' * createdAt: // value for 'createdAt' * }, * }); */ export function useInsertPersonMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(InsertPersonDocument, options); } export type InsertPersonMutationHookResult = ReturnType; export type InsertPersonMutationResult = Apollo.MutationResult; export type InsertPersonMutationOptions = Apollo.BaseMutationOptions; export const DeletePeopleDocument = gql` mutation DeletePeople($ids: [String!]) { deleteManyPerson(where: {id: {in: $ids}}) { count } } `; export type DeletePeopleMutationFn = Apollo.MutationFunction; /** * __useDeletePeopleMutation__ * * To run a mutation, you first call `useDeletePeopleMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeletePeopleMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [deletePeopleMutation, { data, loading, error }] = useDeletePeopleMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useDeletePeopleMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeletePeopleDocument, options); } export type DeletePeopleMutationHookResult = ReturnType; export type DeletePeopleMutationResult = Apollo.MutationResult; export type DeletePeopleMutationOptions = Apollo.BaseMutationOptions; export const SearchPeopleQueryDocument = gql` query SearchPeopleQuery($where: PersonWhereInput, $limit: Int) { searchResults: findManyPerson(where: $where, take: $limit) { id phone email city firstname lastname createdAt } } `; /** * __useSearchPeopleQueryQuery__ * * To run a query within a React component, call `useSearchPeopleQueryQuery` and pass it any options that fit your needs. * When your component renders, `useSearchPeopleQueryQuery` 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 } = useSearchPeopleQueryQuery({ * variables: { * where: // value for 'where' * limit: // value for 'limit' * }, * }); */ export function useSearchPeopleQueryQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(SearchPeopleQueryDocument, options); } export function useSearchPeopleQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(SearchPeopleQueryDocument, options); } export type SearchPeopleQueryQueryHookResult = ReturnType; export type SearchPeopleQueryLazyQueryHookResult = ReturnType; export type SearchPeopleQueryQueryResult = Apollo.QueryResult; export const SearchUserQueryDocument = gql` query SearchUserQuery($where: UserWhereInput, $limit: Int) { searchResults: findManyUser(where: $where, take: $limit) { id email displayName } } `; /** * __useSearchUserQueryQuery__ * * To run a query within a React component, call `useSearchUserQueryQuery` and pass it any options that fit your needs. * When your component renders, `useSearchUserQueryQuery` 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 } = useSearchUserQueryQuery({ * variables: { * where: // value for 'where' * limit: // value for 'limit' * }, * }); */ export function useSearchUserQueryQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(SearchUserQueryDocument, options); } export function useSearchUserQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(SearchUserQueryDocument, options); } export type SearchUserQueryQueryHookResult = ReturnType; export type SearchUserQueryLazyQueryHookResult = ReturnType; export type SearchUserQueryQueryResult = Apollo.QueryResult; export const EmptyQueryDocument = gql` query EmptyQuery { searchResults: findManyUser { id } } `; /** * __useEmptyQueryQuery__ * * To run a query within a React component, call `useEmptyQueryQuery` and pass it any options that fit your needs. * When your component renders, `useEmptyQueryQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useEmptyQueryQuery({ * variables: { * }, * }); */ export function useEmptyQueryQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(EmptyQueryDocument, options); } export function useEmptyQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(EmptyQueryDocument, options); } export type EmptyQueryQueryHookResult = ReturnType; export type EmptyQueryLazyQueryHookResult = ReturnType; export type EmptyQueryQueryResult = Apollo.QueryResult; export const SearchCompanyQueryDocument = gql` query SearchCompanyQuery($where: CompanyWhereInput, $limit: Int) { searchResults: findManyCompany(where: $where, take: $limit) { id name domainName } } `; /** * __useSearchCompanyQueryQuery__ * * To run a query within a React component, call `useSearchCompanyQueryQuery` and pass it any options that fit your needs. * When your component renders, `useSearchCompanyQueryQuery` 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 } = useSearchCompanyQueryQuery({ * variables: { * where: // value for 'where' * limit: // value for 'limit' * }, * }); */ export function useSearchCompanyQueryQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(SearchCompanyQueryDocument, options); } export function useSearchCompanyQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(SearchCompanyQueryDocument, options); } export type SearchCompanyQueryQueryHookResult = ReturnType; export type SearchCompanyQueryLazyQueryHookResult = ReturnType; export type SearchCompanyQueryQueryResult = Apollo.QueryResult; export const GetCurrentUserDocument = gql` query GetCurrentUser($uuid: String) { users: findManyUser(where: {id: {equals: $uuid}}) { id email displayName workspaceMember { workspace { id domainName displayName logo } } } } `; /** * __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: { * uuid: // value for 'uuid' * }, * }); */ export function useGetCurrentUserQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetCurrentUserDocument, options); } export function useGetCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetCurrentUserDocument, options); } export type GetCurrentUserQueryHookResult = ReturnType; export type GetCurrentUserLazyQueryHookResult = ReturnType; export type GetCurrentUserQueryResult = Apollo.QueryResult; export const GetUsersDocument = gql` query getUsers { findManyUser { id } } `; /** * __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;