import gql from 'graphql-tag' import * as ApolloReactCommon from '@apollo/react-common' import * as ApolloReactHooks from '@apollo/react-hooks' export type Maybe = T | null /** 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 JSONObject: any } export type AcceptTermAndConditionInput = { termAndConditionId: Scalars['Int'] } export type Address = Node & { __typename?: 'Address' addressLineFour?: Maybe addressLineOne?: Maybe addressLineThree?: Maybe addressLineTwo?: Maybe city?: Maybe country?: Maybe id: Scalars['Int'] location?: Maybe postCode?: Maybe postCodePartOne?: Maybe postCodePartTwo?: Maybe region?: Maybe } export type Agent = Node & { __typename?: 'Agent' blankPinUrl?: Maybe contacts?: Maybe> id: Scalars['Int'] logo?: Maybe mapPin?: Maybe name: Scalars['String'] offices?: Maybe> officesAgg?: Maybe primaryColor?: Maybe shortName?: Maybe website?: Maybe } export type AgentWhereInput = { id?: Maybe id_not?: Maybe id_in?: Maybe> id_not_in?: Maybe> id_lt?: Maybe id_lte?: Maybe id_gt?: Maybe id_gte?: Maybe createdAt?: Maybe createdAt_not?: Maybe createdAt_in?: Maybe> createdAt_not_in?: Maybe> createdAt_lt?: Maybe createdAt_lte?: Maybe createdAt_gt?: Maybe createdAt_gte?: Maybe updatedAt?: Maybe updatedAt_not?: Maybe updatedAt_in?: Maybe> updatedAt_not_in?: Maybe> updatedAt_lt?: Maybe updatedAt_lte?: Maybe updatedAt_gt?: Maybe updatedAt_gte?: Maybe name?: Maybe name_not?: Maybe name_in?: Maybe> name_not_in?: Maybe> name_lt?: Maybe name_lte?: Maybe name_gt?: Maybe name_gte?: Maybe name_contains?: Maybe name_not_contains?: Maybe name_starts_with?: Maybe name_not_starts_with?: Maybe name_ends_with?: Maybe name_not_ends_with?: Maybe shortName?: Maybe shortName_not?: Maybe shortName_in?: Maybe> shortName_not_in?: Maybe> shortName_lt?: Maybe shortName_lte?: Maybe shortName_gt?: Maybe shortName_gte?: Maybe shortName_contains?: Maybe shortName_not_contains?: Maybe shortName_starts_with?: Maybe shortName_not_starts_with?: Maybe shortName_ends_with?: Maybe shortName_not_ends_with?: Maybe website?: Maybe website_not?: Maybe website_in?: Maybe> website_not_in?: Maybe> website_lt?: Maybe website_lte?: Maybe website_gt?: Maybe website_gte?: Maybe website_contains?: Maybe website_not_contains?: Maybe website_starts_with?: Maybe website_not_starts_with?: Maybe website_ends_with?: Maybe website_not_ends_with?: Maybe mapPin?: Maybe mapPin_not?: Maybe mapPin_in?: Maybe> mapPin_not_in?: Maybe> mapPin_lt?: Maybe mapPin_lte?: Maybe mapPin_gt?: Maybe mapPin_gte?: Maybe mapPin_contains?: Maybe mapPin_not_contains?: Maybe mapPin_starts_with?: Maybe mapPin_not_starts_with?: Maybe mapPin_ends_with?: Maybe mapPin_not_ends_with?: Maybe logo?: Maybe logo_not?: Maybe logo_in?: Maybe> logo_not_in?: Maybe> logo_lt?: Maybe logo_lte?: Maybe logo_gt?: Maybe logo_gte?: Maybe logo_contains?: Maybe logo_not_contains?: Maybe logo_starts_with?: Maybe logo_not_starts_with?: Maybe logo_ends_with?: Maybe logo_not_ends_with?: Maybe offices_every?: Maybe offices_some?: Maybe offices_none?: Maybe AND?: Maybe> OR?: Maybe> NOT?: Maybe> } export type AvailabilityCondition = { __typename?: 'AvailabilityCondition' from?: Maybe id: Scalars['Int'] isRange: Scalars['Boolean'] to?: Maybe } export type AvailabilityConditionCreateInput = { from?: Maybe to?: Maybe isRange: Scalars['Boolean'] } export type AvailabilityConditionCreateOneInput = { create?: Maybe } export type AvailabilityConditionUpdateDataInput = { from?: Maybe to?: Maybe isRange?: Maybe } export type AvailabilityConditionUpdateOneInput = { upsert?: Maybe delete?: Maybe } export type AvailabilityConditionUpsertNestedInput = { update: AvailabilityConditionUpdateDataInput create: AvailabilityConditionCreateInput } export type AvailabilityConditionWhereInput = { from?: Maybe from_not?: Maybe from_in?: Maybe> from_not_in?: Maybe> from_lt?: Maybe from_lte?: Maybe from_gt?: Maybe from_gte?: Maybe to?: Maybe to_not?: Maybe to_in?: Maybe> to_not_in?: Maybe> to_lt?: Maybe to_lte?: Maybe to_gt?: Maybe to_gte?: Maybe isRange?: Maybe isRange_not?: Maybe AND?: Maybe> OR?: Maybe> NOT?: Maybe> } export enum BuildingGroup { Presale = 'PRESALE', Private = 'PRIVATE', Standard = 'STANDARD', } export type Contact = { __typename?: 'Contact' avatarUrl?: Maybe createdAt: Scalars['DateTime'] emails?: Maybe> firstName?: Maybe id: Scalars['Int'] jobTitle?: Maybe lastName?: Maybe name: Scalars['String'] phones?: Maybe> updatedAt: Scalars['DateTime'] } export enum ContactType { Landline = 'LANDLINE', Organization = 'ORGANIZATION', Personal = 'PERSONAL', Primary = 'PRIMARY', Work = 'WORK', } export type ContactUpdateDataInput = { name?: Maybe avatarUrl?: Maybe jobTitle?: Maybe phones?: Maybe emails?: Maybe } export type ContactUpdateManyInput = { set?: Maybe> } export type ContactUpdateOneRequiredInput = { update?: Maybe } export type ContactWhereUniqueInput = { id?: Maybe } export enum Currency { Eur = 'EUR', Gbp = 'GBP', Usd = 'USD', } export type Distance = { __typename?: 'Distance' id: Scalars['Int'] text?: Maybe value?: Maybe } export type Duration = { __typename?: 'Duration' id: Scalars['Int'] text?: Maybe value?: Maybe } export type Email = { __typename?: 'Email' id: Scalars['Int'] type?: Maybe value?: Maybe } export type EmailCreateInput = { value?: Maybe type?: Maybe } export type EmailMessage = { __typename?: 'EmailMessage' createdAt: Scalars['DateTime'] emailBodyKey?: Maybe emailCustomMessage?: Maybe emailHeading?: Maybe emailSubject: Scalars['String'] emailTo: Scalars['String'] id: Scalars['Int'] sentAt?: Maybe state: EmailMessageState updatedAt: Scalars['DateTime'] } export enum EmailMessageState { Pending = 'PENDING', Processing = 'PROCESSING', Sent = 'SENT', } export type EmailUpdateDataInput = { value?: Maybe type?: Maybe } export type EmailUpdateManyInput = { create?: Maybe> update?: Maybe> delete?: Maybe> } export type EmailUpdateWithWhereUniqueNestedInput = { where: EmailWhereUniqueInput data: EmailUpdateDataInput } export type EmailWhereUniqueInput = { id?: Maybe } export type EmptyInput = { empty?: Maybe } export type Floorplan = { __typename?: 'Floorplan' floor?: Maybe id: Scalars['Int'] name?: Maybe url: Scalars['String'] } export type Lead = { __typename?: 'Lead' createdAt: Scalars['DateTime'] emailMessages?: Maybe> id: Scalars['Int'] isDeleted?: Maybe offers?: Maybe> office?: Maybe opportunity: Opportunity status: LeadStatusType } export type LeadCreateInput = { office: OfficeCreateOneInput status?: Maybe offers?: Maybe } export type LeadCreateManyInput = { create?: Maybe> } export type LeadCreateOneWithoutOffersInput = { connect?: Maybe } export enum LeadStatusType { Accepted = 'ACCEPTED', NotSubmitted = 'NOT_SUBMITTED', Overturn = 'OVERTURN', Pending = 'PENDING', Rejected = 'REJECTED', } export type LeadUpdateInput = { status?: Maybe offers?: Maybe isDeleted?: Maybe } export type LeadWhereInput = { id?: Maybe id_not?: Maybe id_in?: Maybe> id_not_in?: Maybe> id_lt?: Maybe id_lte?: Maybe id_gt?: Maybe id_gte?: Maybe createdAt?: Maybe createdAt_not?: Maybe createdAt_in?: Maybe> createdAt_not_in?: Maybe> createdAt_lt?: Maybe createdAt_lte?: Maybe createdAt_gt?: Maybe createdAt_gte?: Maybe office?: Maybe status?: Maybe status_not?: Maybe status_in?: Maybe> status_not_in?: Maybe> isDeleted?: Maybe isDeleted_not?: Maybe opportunity?: Maybe AND?: Maybe> OR?: Maybe> NOT?: Maybe> } export type LeadWhereUniqueInput = { id?: Maybe } export type Location = Node & { __typename?: 'Location' id: Scalars['Int'] latitude: Scalars['Float'] longitude: Scalars['Float'] transport?: Maybe>> } export type MonthlyQuotingRateCondition = { __typename?: 'MonthlyQuotingRateCondition' currency: Currency from?: Maybe id: Scalars['Int'] isRange: Scalars['Boolean'] to?: Maybe unit: MonthlyQuotingRateUnit } export type MonthlyQuotingRateConditionCreateInput = { from?: Maybe to?: Maybe currency?: Maybe unit: MonthlyQuotingRateUnit isRange: Scalars['Boolean'] } export type MonthlyQuotingRateConditionCreateOneInput = { create?: Maybe } export type MonthlyQuotingRateConditionUpdateDataInput = { from?: Maybe to?: Maybe currency?: Maybe unit?: Maybe isRange?: Maybe } export type MonthlyQuotingRateConditionUpdateOneInput = { upsert?: Maybe delete?: Maybe } export type MonthlyQuotingRateConditionUpsertNestedInput = { update: MonthlyQuotingRateConditionUpdateDataInput create: MonthlyQuotingRateConditionCreateInput } export type MonthlyQuotingRateConditionWhereInput = { from?: Maybe from_not?: Maybe from_in?: Maybe> from_not_in?: Maybe> from_lt?: Maybe from_lte?: Maybe from_gt?: Maybe from_gte?: Maybe to?: Maybe to_not?: Maybe to_in?: Maybe> to_not_in?: Maybe> to_lt?: Maybe to_lte?: Maybe to_gt?: Maybe to_gte?: Maybe currency?: Maybe currency_not?: Maybe currency_in?: Maybe> currency_not_in?: Maybe> unit?: Maybe unit_not?: Maybe unit_in?: Maybe> unit_not_in?: Maybe> isRange?: Maybe isRange_not?: Maybe AND?: Maybe> OR?: Maybe> NOT?: Maybe> } export enum MonthlyQuotingRateUnit { PerDesk = 'PER_DESK', PerSquareFoot = 'PER_SQUARE_FOOT', PerSquareMeter = 'PER_SQUARE_METER', } export type Mutation = { __typename?: 'Mutation' acceptTermAndCondition?: Maybe createOffer: Offer createOpportunity: Opportunity delayTermAndCondition?: Maybe deleteOffer?: Maybe sendOperatorLeads?: Maybe updateLead?: Maybe updateOffer?: Maybe updateOpportunity?: Maybe updateUser?: Maybe } export type MutationAcceptTermAndConditionArgs = { data: AcceptTermAndConditionInput } export type MutationCreateOfferArgs = { data: OfferCreateInput } export type MutationCreateOpportunityArgs = { data: OpportunityCreateInput } export type MutationDelayTermAndConditionArgs = { data?: Maybe } export type MutationDeleteOfferArgs = { where: OfferWhereUniqueInput } export type MutationSendOperatorLeadsArgs = { data: SendOperatorLeadsInput } export type MutationUpdateLeadArgs = { data: LeadUpdateInput where: LeadWhereUniqueInput } export type MutationUpdateOfferArgs = { data: OfferUpdateInput where: OfferWhereUniqueInput } export type MutationUpdateOpportunityArgs = { data: OpportunityUpdateInput where: OpportunityWhereUniqueInput } export type MutationUpdateUserArgs = { data: UserUpdateInput where: UserWhereUniqueInput } export type Node = { id: Scalars['Int'] } export type Offer = { __typename?: 'Offer' availableFromCondition?: Maybe costCondition?: Maybe createdAt: Scalars['DateTime'] description?: Maybe id: Scalars['Int'] lead: Lead monthlyQuotingRateCondition?: Maybe officeSizeCondition?: Maybe termLengthCondition?: Maybe user?: Maybe } export type OfferCreateInput = { termLengthCondition?: Maybe availableFromCondition?: Maybe officeSizeCondition?: Maybe monthlyQuotingRateCondition?: Maybe costCondition?: Maybe description?: Maybe lead: LeadCreateOneWithoutOffersInput } export type OfferCreateManyWithoutLeadInput = { create?: Maybe> connect?: Maybe> } export type OfferCreateWithoutLeadInput = { termLengthCondition?: Maybe availableFromCondition?: Maybe officeSizeCondition?: Maybe monthlyQuotingRateCondition?: Maybe costCondition?: Maybe description?: Maybe } export type OfferUpdateInput = { termLengthCondition?: Maybe availableFromCondition?: Maybe officeSizeCondition?: Maybe monthlyQuotingRateCondition?: Maybe costCondition?: Maybe description?: Maybe } export type OfferUpdateManyWithoutLeadInput = { create?: Maybe> update?: Maybe> delete?: Maybe> } export type OfferUpdateWithWhereUniqueWithoutLeadInput = { where: OfferWhereUniqueInput data: OfferUpdateInput } export type OfferWhereUniqueInput = { id?: Maybe } export type Office = Node & { __typename?: 'Office' address?: Maybe
amenities?: Maybe> attributes?: Maybe> availability?: Maybe buildingGroup: BuildingGroup contacts?: Maybe> description?: Maybe deskPerMonthCost?: Maybe floorplans?: Maybe> id: Scalars['Int'] isActive?: Maybe isDeleted?: Maybe monthlyQuotingRate?: Maybe name: Scalars['String'] officeSuites?: Maybe> operator: Operator photos?: Maybe> statuses?: Maybe> websiteURL?: Maybe } export type OfficeAvailabilityArgs = { where?: Maybe } export type OfficeOfficeSuitesArgs = { where?: Maybe } export type OfficePhotosArgs = { first?: Maybe } export type OfficeAmenity = Node & { __typename?: 'OfficeAmenity' description?: Maybe icon?: Maybe id: Scalars['Int'] isEnabled: Scalars['Boolean'] key: Scalars['String'] } export type OfficeAttribute = Node & { __typename?: 'OfficeAttribute' attributeDescription?: Maybe attributeName: Scalars['String'] attributeValue?: Maybe capacity?: Maybe comissionRate?: Maybe costPerDesk?: Maybe free?: Maybe id: Scalars['Int'] } export type OfficeAvailability = { __typename?: 'OfficeAvailability' availableFrom?: Maybe availableOfficeSuitesCount: Scalars['Int'] totalOfficeSuitesCount: Scalars['Int'] unavailableOfficeSuitesCount: Scalars['Int'] uncertainOfficeSuitesCount: Scalars['Int'] } export type OfficeCostCondition = { __typename?: 'OfficeCostCondition' currency: Currency from?: Maybe id: Scalars['Int'] isRange: Scalars['Boolean'] to?: Maybe unit: OfficeCostUnit } export type OfficeCostConditionCreateInput = { from?: Maybe to?: Maybe currency?: Maybe unit: OfficeCostUnit isRange: Scalars['Boolean'] } export type OfficeCostConditionCreateOneInput = { create?: Maybe } export type OfficeCostConditionUpdateDataInput = { from?: Maybe to?: Maybe currency?: Maybe unit?: Maybe isRange?: Maybe } export type OfficeCostConditionUpdateOneInput = { upsert?: Maybe delete?: Maybe } export type OfficeCostConditionUpsertNestedInput = { update: OfficeCostConditionUpdateDataInput create: OfficeCostConditionCreateInput } export type OfficeCostConditionWhereInput = { from?: Maybe from_not?: Maybe from_in?: Maybe> from_not_in?: Maybe> from_lt?: Maybe from_lte?: Maybe from_gt?: Maybe from_gte?: Maybe to?: Maybe to_not?: Maybe to_in?: Maybe> to_not_in?: Maybe> to_lt?: Maybe to_lte?: Maybe to_gt?: Maybe to_gte?: Maybe currency?: Maybe currency_not?: Maybe currency_in?: Maybe> currency_not_in?: Maybe> unit?: Maybe unit_not?: Maybe unit_in?: Maybe> unit_not_in?: Maybe> isRange?: Maybe isRange_not?: Maybe AND?: Maybe> OR?: Maybe> NOT?: Maybe> } export enum OfficeCostUnit { PerMonth = 'PER_MONTH', PerYear = 'PER_YEAR', Total = 'TOTAL', } export type OfficeCreateOneInput = { connect?: Maybe } export type OfficesAgg = { __typename?: 'OfficesAgg' size?: Maybe } export type OfficeSizeCondition = { __typename?: 'OfficeSizeCondition' from?: Maybe id: Scalars['Int'] isRange: Scalars['Boolean'] to?: Maybe unit: OfficeSizeUnit } export type OfficeSizeConditionCreateInput = { from?: Maybe to?: Maybe unit: OfficeSizeUnit isRange: Scalars['Boolean'] } export type OfficeSizeConditionCreateOneInput = { create?: Maybe } export type OfficeSizeConditionUpdateDataInput = { from?: Maybe to?: Maybe unit?: Maybe isRange?: Maybe } export type OfficeSizeConditionUpdateOneInput = { upsert?: Maybe delete?: Maybe } export type OfficeSizeConditionUpsertNestedInput = { update: OfficeSizeConditionUpdateDataInput create: OfficeSizeConditionCreateInput } export type OfficeSizeConditionWhereInput = { from?: Maybe from_not?: Maybe from_in?: Maybe> from_not_in?: Maybe> from_lt?: Maybe from_lte?: Maybe from_gt?: Maybe from_gte?: Maybe to?: Maybe to_not?: Maybe to_in?: Maybe> to_not_in?: Maybe> to_lt?: Maybe to_lte?: Maybe to_gt?: Maybe to_gte?: Maybe unit?: Maybe unit_not?: Maybe unit_in?: Maybe> unit_not_in?: Maybe> isRange?: Maybe isRange_not?: Maybe AND?: Maybe> OR?: Maybe> NOT?: Maybe> } export enum OfficeSizeUnit { Desk = 'DESK', SquareFoot = 'SQUARE_FOOT', SquareMeter = 'SQUARE_METER', } export type OfficeStatusItem = Node & { __typename?: 'OfficeStatusItem' id: Scalars['Int'] status: OfficeStatusType timestamp: Scalars['DateTime'] user: User } export enum OfficeStatusType { Active = 'ACTIVE', Disabled = 'DISABLED', Pending = 'PENDING', } export type OfficeSuite = { __typename?: 'OfficeSuite' availableFrom?: Maybe canBePartitioned?: Maybe createdAt: Scalars['DateTime'] description?: Maybe externalId?: Maybe floor?: Maybe floorplans?: Maybe> id: Scalars['Int'] isActive: Scalars['Boolean'] isExterior?: Maybe monthlyQuotingRateCurrency: Currency monthlyQuotingRateDesk?: Maybe monthlyQuotingRateSpace?: Maybe monthlyQuotingRateTotal?: Maybe name?: Maybe office: Office photos?: Maybe> sizeDesks?: Maybe sizeSpace?: Maybe spaceLocation: OfficeSuiteSpaceLocation status: OfficeSuiteStatus type?: Maybe updatedAt: Scalars['DateTime'] } export type OfficeSuiteCostCondition = { __typename?: 'OfficeSuiteCostCondition' from?: Maybe id: Scalars['Int'] isRange: Scalars['Boolean'] to?: Maybe } export type OfficeSuiteCostConditionWhereInput = { AND?: Maybe> from?: Maybe from_gt?: Maybe from_gte?: Maybe from_in?: Maybe> from_lt?: Maybe from_lte?: Maybe from_not?: Maybe from_not_in?: Maybe> id?: Maybe id_gt?: Maybe id_gte?: Maybe id_in?: Maybe> id_lt?: Maybe id_lte?: Maybe id_not?: Maybe id_not_in?: Maybe> isRange?: Maybe isRange_not?: Maybe NOT?: Maybe> OR?: Maybe> to?: Maybe to_gt?: Maybe to_gte?: Maybe to_in?: Maybe> to_lt?: Maybe to_lte?: Maybe to_not?: Maybe to_not_in?: Maybe> } export type OfficeSuiteSizeDesksCondition = { __typename?: 'OfficeSuiteSizeDesksCondition' from?: Maybe id: Scalars['Int'] isRange: Scalars['Boolean'] to?: Maybe } export type OfficeSuiteSizeDesksConditionWhereInput = { AND?: Maybe> from?: Maybe from_gt?: Maybe from_gte?: Maybe from_in?: Maybe> from_lt?: Maybe from_lte?: Maybe from_not?: Maybe from_not_in?: Maybe> id?: Maybe id_gt?: Maybe id_gte?: Maybe id_in?: Maybe> id_lt?: Maybe id_lte?: Maybe id_not?: Maybe id_not_in?: Maybe> isRange?: Maybe isRange_not?: Maybe NOT?: Maybe> OR?: Maybe> to?: Maybe to_gt?: Maybe to_gte?: Maybe to_in?: Maybe> to_lt?: Maybe to_lte?: Maybe to_not?: Maybe to_not_in?: Maybe> } export type OfficeSuiteSizeSpaceCondition = { __typename?: 'OfficeSuiteSizeSpaceCondition' from?: Maybe id: Scalars['Int'] isRange: Scalars['Boolean'] to?: Maybe unit: OfficeSuiteSpaceUnit } export type OfficeSuiteSizeSpaceConditionWhereInput = { AND?: Maybe> from?: Maybe from_gt?: Maybe from_gte?: Maybe from_in?: Maybe> from_lt?: Maybe from_lte?: Maybe from_not?: Maybe from_not_in?: Maybe> id?: Maybe id_gt?: Maybe id_gte?: Maybe id_in?: Maybe> id_lt?: Maybe id_lte?: Maybe id_not?: Maybe id_not_in?: Maybe> isRange?: Maybe isRange_not?: Maybe NOT?: Maybe> OR?: Maybe> to?: Maybe to_gt?: Maybe to_gte?: Maybe to_in?: Maybe> to_lt?: Maybe to_lte?: Maybe to_not?: Maybe to_not_in?: Maybe> unit?: Maybe unit_in?: Maybe> unit_not?: Maybe unit_not_in?: Maybe> } export enum OfficeSuiteSpaceLocation { EntireFloor = 'ENTIRE_FLOOR', Exterior = 'EXTERIOR', Interior = 'INTERIOR', } export enum OfficeSuiteSpaceUnit { SquareFoot = 'SQUARE_FOOT', SquareMeter = 'SQUARE_METER', } export enum OfficeSuiteStatus { Available = 'AVAILABLE', Occupied = 'OCCUPIED', UnderOffer = 'UNDER_OFFER', } export type OfficeSuiteWhereInput = { AND?: Maybe> availableFrom?: Maybe canBePartitioned?: Maybe canBePartitioned_not?: Maybe floor?: Maybe floor_contains?: Maybe floor_ends_with?: Maybe floor_gt?: Maybe floor_gte?: Maybe floor_in?: Maybe> floor_lt?: Maybe floor_lte?: Maybe floor_not?: Maybe floor_not_contains?: Maybe floor_not_ends_with?: Maybe floor_not_in?: Maybe> floor_not_starts_with?: Maybe floor_starts_with?: Maybe id?: Maybe id_gt?: Maybe id_gte?: Maybe id_in?: Maybe> id_lt?: Maybe id_lte?: Maybe id_not?: Maybe id_not_in?: Maybe> monthlyQuotingRateCurrency?: Maybe monthlyQuotingRateCurrency_in?: Maybe> monthlyQuotingRateCurrency_not?: Maybe monthlyQuotingRateCurrency_not_in?: Maybe> monthlyQuotingRateDesk?: Maybe monthlyQuotingRateSpace?: Maybe monthlyQuotingRateTotal?: Maybe NOT?: Maybe> OR?: Maybe> photos_every?: Maybe photos_none?: Maybe photos_some?: Maybe sizeDesks?: Maybe sizeSpace?: Maybe spaceLocation?: Maybe spaceLocation_in?: Maybe> spaceLocation_not?: Maybe spaceLocation_not_in?: Maybe> status?: Maybe status_in?: Maybe> status_not?: Maybe status_not_in?: Maybe> type?: Maybe type_in?: Maybe> type_not?: Maybe type_not_in?: Maybe> } export type OfficeWhereInput = { id?: Maybe id_in?: Maybe> operator?: Maybe officeSuites_some?: Maybe } export type OfficeWhereUniqueInput = { id?: Maybe } export type Operator = Node & { __typename?: 'Operator' contacts?: Maybe> externalId?: Maybe id: Scalars['Int'] isPayingCustomer?: Maybe logo?: Maybe mapPin?: Maybe name: Scalars['String'] offices?: Maybe> officesAgg?: Maybe primaryColor?: Maybe shortName?: Maybe website?: Maybe } export type OperatorWhereInput = { id_in?: Maybe> } export type OpportunitiesAgg = { __typename?: 'OpportunitiesAgg' size: Scalars['Int'] } export type Opportunity = Node & { __typename?: 'Opportunity' availableFromCondition?: Maybe budgetCondition?: Maybe companyName?: Maybe companyWebsite?: Maybe contactEmail?: Maybe contactFullName?: Maybe createdAt: Scalars['DateTime'] detailsUpdatedAt?: Maybe id: Scalars['Int'] isDeleted?: Maybe leads?: Maybe> meta?: Maybe notes?: Maybe officeSizeCondition?: Maybe status: OpportunityStatusType termLengthCondition?: Maybe user: User } export type OpportunityLeadsArgs = { first?: Maybe orderBy?: Maybe search?: Maybe skip?: Maybe where?: Maybe } export type OpportunityCreateInput = { status?: Maybe companyName?: Maybe companyWebsite?: Maybe contactFullName?: Maybe contactEmail?: Maybe termLengthCondition?: Maybe availableFromCondition?: Maybe officeSizeCondition?: Maybe budgetCondition?: Maybe notes?: Maybe leads?: Maybe isDeleted?: Maybe } export enum OpportunityLeadOrderByInput { OfficeNameAsc = 'officeName_ASC', OfficeNameDesc = 'officeName_DESC', OperatorNameAsc = 'operatorName_ASC', OperatorNameDesc = 'operatorName_DESC', } export enum OpportunityOrderByInput { CompanyNameAsc = 'companyName_ASC', CompanyNameDesc = 'companyName_DESC', ContactEmailAsc = 'contactEmail_ASC', ContactEmailDesc = 'contactEmail_DESC', CreatedAtAsc = 'createdAt_ASC', CreatedAtDesc = 'createdAt_DESC', IdAsc = 'id_ASC', IdDesc = 'id_DESC', IsDeletedAsc = 'isDeleted_ASC', IsDeletedDesc = 'isDeleted_DESC', NotesAsc = 'notes_ASC', NotesDesc = 'notes_DESC', StatusAsc = 'status_ASC', StatusDesc = 'status_DESC', UpdatedAtAsc = 'updatedAt_ASC', UpdatedAtDesc = 'updatedAt_DESC', } export enum OpportunityStatusType { Active = 'ACTIVE', Lost = 'LOST', Onhold = 'ONHOLD', Won = 'WON', } export type OpportunityUpdateInput = { status?: Maybe leads?: Maybe companyName?: Maybe companyWebsite?: Maybe contactFullName?: Maybe contactEmail?: Maybe notes?: Maybe meta?: Maybe termLengthCondition?: Maybe availableFromCondition?: Maybe officeSizeCondition?: Maybe budgetCondition?: Maybe isDeleted?: Maybe } export type OpportunityWhereInput = { AND?: Maybe> OR?: Maybe> NOT?: Maybe> id?: Maybe id_not?: Maybe id_in?: Maybe> id_not_in?: Maybe> id_lt?: Maybe id_lte?: Maybe id_gt?: Maybe id_gte?: Maybe status?: Maybe status_not?: Maybe status_in?: Maybe> status_not_in?: Maybe> companyName?: Maybe companyName_not?: Maybe companyName_in?: Maybe> companyName_not_in?: Maybe> companyName_lt?: Maybe companyName_lte?: Maybe companyName_gt?: Maybe companyName_gte?: Maybe companyName_contains?: Maybe companyName_not_contains?: Maybe companyName_starts_with?: Maybe companyName_not_starts_with?: Maybe companyName_ends_with?: Maybe companyName_not_ends_with?: Maybe contactEmail?: Maybe contactEmail_not?: Maybe contactEmail_in?: Maybe> contactEmail_not_in?: Maybe> contactEmail_lt?: Maybe contactEmail_lte?: Maybe contactEmail_gt?: Maybe contactEmail_gte?: Maybe contactEmail_contains?: Maybe contactEmail_not_contains?: Maybe contactEmail_starts_with?: Maybe contactEmail_not_starts_with?: Maybe contactEmail_ends_with?: Maybe contactEmail_not_ends_with?: Maybe termLengthCondition?: Maybe availableFromCondition?: Maybe officeSizeCondition?: Maybe budgetCondition?: Maybe notes?: Maybe notes_not?: Maybe notes_in?: Maybe> notes_not_in?: Maybe> notes_lt?: Maybe notes_lte?: Maybe notes_gt?: Maybe notes_gte?: Maybe notes_contains?: Maybe notes_not_contains?: Maybe notes_starts_with?: Maybe notes_not_starts_with?: Maybe notes_ends_with?: Maybe notes_not_ends_with?: Maybe isDeleted?: Maybe isDeleted_not?: Maybe } export type OpportunityWhereUniqueInput = { id?: Maybe } export type Phone = { __typename?: 'Phone' id: Scalars['Int'] type?: Maybe value?: Maybe } export type PhoneCreateInput = { value?: Maybe type?: Maybe } export type PhoneUpdateDataInput = { value?: Maybe type?: Maybe } export type PhoneUpdateManyInput = { create?: Maybe> update?: Maybe> delete?: Maybe> } export type PhoneUpdateWithWhereUniqueNestedInput = { where: PhoneWhereUniqueInput data: PhoneUpdateDataInput } export type PhoneWhereUniqueInput = { id?: Maybe } export type Photo = Node & { __typename?: 'Photo' height?: Maybe id: Scalars['Int'] type?: Maybe url: Scalars['String'] width?: Maybe } export enum PhotoType { Common = 'COMMON', Cover = 'COVER', FeaturedOne = 'FEATURED_ONE', FeaturedTwo = 'FEATURED_TWO', } export type PhotoUpdateOneInput = { disconnect?: Maybe connect?: Maybe } export type PhotoWhereInput = { AND?: Maybe> id?: Maybe id_gt?: Maybe id_gte?: Maybe id_in?: Maybe> id_lt?: Maybe id_lte?: Maybe id_not?: Maybe id_not_in?: Maybe> } export type PhotoWhereUniqueInput = { id?: Maybe } export type Query = { __typename?: 'Query' agents: Array> me?: Maybe office?: Maybe offices: Array> operators?: Maybe>> opportunities: Array> opportunitiesAgg: OpportunitiesAgg opportunity: Opportunity } export type QueryAgentsArgs = { where?: Maybe } export type QueryOfficeArgs = { where: OfficeWhereUniqueInput } export type QueryOfficesArgs = { after?: Maybe before?: Maybe first?: Maybe last?: Maybe skip?: Maybe where?: Maybe } export type QueryOpportunitiesArgs = { after?: Maybe before?: Maybe first?: Maybe last?: Maybe orderBy?: Maybe skip?: Maybe where?: Maybe } export type QueryOpportunityArgs = { id: Scalars['Int'] } export type Region = { __typename?: 'Region' id: Scalars['Int'] name: Scalars['String'] polygon: Scalars['JSON'] } export type SendOperatorLeadsInput = { leadIds: Array message?: Maybe heading?: Maybe sendCopyToMyself?: Maybe } export type SendOperatorLeadsOutput = { __typename?: 'SendOperatorLeadsOutput' isSucceeded?: Maybe } export enum SpaceType { CoworkingDesks = 'COWORKING_DESKS', Membership = 'MEMBERSHIP', PipelineManagedSpace = 'PIPELINE_MANAGED_SPACE', PrivateOffice = 'PRIVATE_OFFICE', SelfContainedManagedSpace = 'SELF_CONTAINED_MANAGED_SPACE', } export type TermAndCondition = { __typename?: 'TermAndCondition' canBeDelayed: Scalars['Boolean'] documentHtmlUrl: Scalars['String'] documentPdfUrl: Scalars['String'] id: Scalars['Int'] isAccepted: Scalars['Boolean'] updatedAt: Scalars['DateTime'] } export type TermLengthCondition = { __typename?: 'TermLengthCondition' from?: Maybe id: Scalars['Int'] isRange: Scalars['Boolean'] to?: Maybe } export type TermLengthConditionCreateInput = { from?: Maybe to?: Maybe isRange: Scalars['Boolean'] } export type TermLengthConditionCreateOneInput = { create?: Maybe } export type TermLengthConditionUpdateDataInput = { from?: Maybe to?: Maybe isRange?: Maybe } export type TermLengthConditionUpdateOneInput = { upsert?: Maybe delete?: Maybe } export type TermLengthConditionUpsertNestedInput = { update: TermLengthConditionUpdateDataInput create: TermLengthConditionCreateInput } export type TermLengthConditionWhereInput = { from?: Maybe from_not?: Maybe from_in?: Maybe> from_not_in?: Maybe> from_lt?: Maybe from_lte?: Maybe from_gt?: Maybe from_gte?: Maybe to?: Maybe to_not?: Maybe to_in?: Maybe> to_not_in?: Maybe> to_lt?: Maybe to_lte?: Maybe to_gt?: Maybe to_gte?: Maybe isRange?: Maybe isRange_not?: Maybe AND?: Maybe> OR?: Maybe> NOT?: Maybe> } export type Transport = { __typename?: 'Transport' distance: Distance duration: Duration id: Scalars['Int'] lines?: Maybe>> name?: Maybe type?: Maybe } export enum TransportTypes { SubwayStation = 'SUBWAY_STATION', TrainStation = 'TRAIN_STATION', TransitStation = 'TRANSIT_STATION', } export type User = { __typename?: 'User' agent?: Maybe awsId?: Maybe contact: Contact currency: Currency enabled: Scalars['Boolean'] id: Scalars['Int'] operator?: Maybe permissions: Array regions?: Maybe>> termAndCondition?: Maybe type: UserType userName: Scalars['String'] } export enum UserPermissionKey { AccessToAllOpportunities = 'ACCESS_TO_ALL_OPPORTUNITIES', AgentsPermissions = 'AGENTS_PERMISSIONS', ContentManagement = 'CONTENT_MANAGEMENT', ReferralsAndReports = 'REFERRALS_AND_REPORTS', UserManagement = 'USER_MANAGEMENT', UserManagementSetRole = 'USER_MANAGEMENT_SET_ROLE', UserRoleManagement = 'USER_ROLE_MANAGEMENT', UserRoleManagementDelete = 'USER_ROLE_MANAGEMENT_DELETE', UserRoleSuperAdminManagement = 'USER_ROLE_SUPER_ADMIN_MANAGEMENT', } export enum UserType { Agent = 'AGENT', Operator = 'OPERATOR', Platform = 'PLATFORM', } export type UserUpdateInput = { currency?: Maybe contact?: Maybe } export type UserWhereUniqueInput = { id?: Maybe awsId?: Maybe } export type OfficeModalAvailabilityFragment = { __typename?: 'OfficeAvailability' } & Pick export type ContactViewFragment = { __typename?: 'Contact' } & Pick< Contact, 'id' | 'name' | 'avatarUrl' > & { emails: Maybe>> } export type OfficeTransportAndContactQueryVariables = { where: OfficeWhereUniqueInput } export type OfficeTransportAndContactQuery = { __typename?: 'Query' } & { office: Maybe< { __typename?: 'Office' } & Pick & { availability: Maybe< { __typename?: 'OfficeAvailability' } & OfficeModalAvailabilityFragment > contacts: Maybe> operator: { __typename?: 'Operator' } & Pick & { contacts: Maybe< Array<{ __typename?: 'Contact' } & ContactViewFragment> > } address: Maybe< { __typename?: 'Address' } & Pick & { location: Maybe< { __typename?: 'Location' } & Pick & { transport: Maybe< Array< Maybe< { __typename?: 'Transport' } & TransportViewFragment > > > } > } > } > } export type OfficeGalleryFragment = { __typename?: 'Office' } & Pick< Office, 'id' | 'name' > & { photos: Maybe>> } export type OfficeSuiteGalleryFragment = { __typename?: 'OfficeSuite' } & Pick< OfficeSuite, 'id' | 'name' > & { photos: Maybe>> } export type OpportunityOfficesQueryVariables = { where?: Maybe } export type OpportunityOfficesQuery = { __typename?: 'Query' } & { offices: Array< Maybe< { __typename?: 'Office' } & Pick & { operator: { __typename?: 'Operator' } & Pick< Operator, 'id' | 'name' | 'logo' > address: Maybe< { __typename?: 'Address' } & Pick > } > > } export type TransportViewFragment = { __typename?: 'Transport' } & Pick< Transport, 'id' | 'name' | 'type' | 'lines' > & { distance: { __typename?: 'Distance' } & Pick< Distance, 'id' | 'text' | 'value' > duration: { __typename?: 'Duration' } & Pick< Duration, 'id' | 'text' | 'value' > } export type LeadFragmentFragment = { __typename?: 'Lead' } & Pick< Lead, 'id' | 'createdAt' | 'status' > & { office: Maybe<{ __typename?: 'Office' } & OfficeFragmentFragment> emailMessages: Maybe< Array< { __typename?: 'EmailMessage' } & Pick< EmailMessage, | 'id' | 'createdAt' | 'sentAt' | 'state' | 'emailBodyKey' | 'emailCustomMessage' | 'emailHeading' > > > offers: Maybe< Array< { __typename?: 'Offer' } & Pick & { termLengthCondition: Maybe< { __typename?: 'TermLengthCondition' } & Pick< TermLengthCondition, 'id' | 'from' | 'to' | 'isRange' > > availableFromCondition: Maybe< { __typename?: 'AvailabilityCondition' } & Pick< AvailabilityCondition, 'id' | 'from' | 'to' | 'isRange' > > costCondition: Maybe< { __typename?: 'OfficeCostCondition' } & Pick< OfficeCostCondition, 'id' | 'from' | 'to' | 'isRange' | 'unit' | 'currency' > > officeSizeCondition: Maybe< { __typename?: 'OfficeSizeCondition' } & Pick< OfficeSizeCondition, 'id' | 'from' | 'to' | 'isRange' | 'unit' > > monthlyQuotingRateCondition: Maybe< { __typename?: 'MonthlyQuotingRateCondition' } & Pick< MonthlyQuotingRateCondition, 'id' | 'from' | 'to' | 'isRange' | 'unit' | 'currency' > > } > > } export type LeadReportFragment = { __typename?: 'Lead' } & { office: Maybe<{ __typename?: 'Office' } & OfficeReportFragment> } & LeadFragmentFragment export type UpdateLeadStatusMutationVariables = { status: LeadStatusType id: Scalars['Int'] } export type UpdateLeadStatusMutation = { __typename?: 'Mutation' } & { updateLead: Maybe<{ __typename?: 'Lead' } & Pick> } export type UpdateLeadMutationVariables = { data: LeadUpdateInput where: LeadWhereUniqueInput } export type UpdateLeadMutation = { __typename?: 'Mutation' } & { updateLead: Maybe<{ __typename?: 'Lead' } & Pick> } export type SendOperatorLeadsMutationVariables = { data: SendOperatorLeadsInput } export type SendOperatorLeadsMutation = { __typename?: 'Mutation' } & { sendOperatorLeads: Maybe< { __typename?: 'SendOperatorLeadsOutput' } & Pick< SendOperatorLeadsOutput, 'isSucceeded' > > } export type ReferralsFragmentFragment = { __typename?: 'Lead' } & Pick< Lead, 'id' | 'createdAt' | 'status' > & { office: Maybe<{ __typename?: 'Office' } & OfficeLeadFragmentFragment> emailMessages: Maybe< Array< { __typename?: 'EmailMessage' } & Pick< EmailMessage, | 'id' | 'createdAt' | 'sentAt' | 'state' | 'emailBodyKey' | 'emailCustomMessage' | 'emailHeading' > > > offers: Maybe< Array< { __typename?: 'Offer' } & Pick & { termLengthCondition: Maybe< { __typename?: 'TermLengthCondition' } & Pick< TermLengthCondition, 'id' | 'from' | 'to' | 'isRange' > > availableFromCondition: Maybe< { __typename?: 'AvailabilityCondition' } & Pick< AvailabilityCondition, 'id' | 'from' | 'to' | 'isRange' > > costCondition: Maybe< { __typename?: 'OfficeCostCondition' } & Pick< OfficeCostCondition, 'id' | 'from' | 'to' | 'isRange' | 'unit' | 'currency' > > officeSizeCondition: Maybe< { __typename?: 'OfficeSizeCondition' } & Pick< OfficeSizeCondition, 'id' | 'from' | 'to' | 'isRange' | 'unit' > > monthlyQuotingRateCondition: Maybe< { __typename?: 'MonthlyQuotingRateCondition' } & Pick< MonthlyQuotingRateCondition, 'id' | 'from' | 'to' | 'isRange' | 'unit' | 'currency' > > } > > } export type MonthlyQuotingRateFragmentFragment = { __typename?: 'MonthlyQuotingRateCondition' } & Pick< MonthlyQuotingRateCondition, 'id' | 'from' | 'to' | 'unit' | 'isRange' | 'currency' > export type OfficeFragmentFragment = { __typename?: 'Office' } & Pick< Office, 'id' | 'name' | 'description' | 'websiteURL' > & { monthlyQuotingRate: Maybe< { __typename?: 'MonthlyQuotingRateCondition' } & MonthlyQuotingRateFragmentFragment > photos: Maybe>> operator: { __typename?: 'Operator' } & Pick< Operator, 'id' | 'name' | 'mapPin' | 'logo' | 'website' | 'isPayingCustomer' > address: Maybe< { __typename?: 'Address' } & Pick< Address, | 'id' | 'addressLineOne' | 'addressLineTwo' | 'addressLineThree' | 'addressLineFour' | 'city' | 'postCodePartOne' > & { location: Maybe< { __typename?: 'Location' } & Pick< Location, 'id' | 'latitude' | 'longitude' > > } > amenities: Maybe< Array< { __typename?: 'OfficeAmenity' } & Pick< OfficeAmenity, 'id' | 'key' | 'icon' | 'isEnabled' > > > } export type OfficeReportFragment = { __typename?: 'Office' } & { address: Maybe< { __typename?: 'Address' } & { location: Maybe< { __typename?: 'Location' } & { transport: Maybe< Array> > } > } > } & OfficeFragmentFragment export type OfficeFloorplansFragmentFragment = { __typename?: 'Office' } & { floorplans: Maybe< Array< { __typename?: 'Floorplan' } & Pick< Floorplan, 'id' | 'url' | 'name' | 'floor' > > > } export type OfficeMapFragmentFragment = { __typename?: 'Office' } & Pick< Office, 'id' | 'name' > & { monthlyQuotingRate: Maybe< { __typename?: 'MonthlyQuotingRateCondition' } & MonthlyQuotingRateFragmentFragment > photos: Maybe>> operator: { __typename?: 'Operator' } & Pick< Operator, 'id' | 'name' | 'mapPin' | 'logo' > address: Maybe< { __typename?: 'Address' } & Pick< Address, 'id' | 'addressLineOne' | 'postCodePartOne' > & { location: Maybe< { __typename?: 'Location' } & Pick< Location, 'id' | 'latitude' | 'longitude' > > } > floorplans: Maybe< Array<{ __typename?: 'Floorplan' } & Pick> > } export type OfficesFragmentFragment = { __typename?: 'Office' } & Pick< Office, 'id' | 'name' > & { monthlyQuotingRate: Maybe< { __typename?: 'MonthlyQuotingRateCondition' } & MonthlyQuotingRateFragmentFragment > photos: Maybe>> operator: { __typename?: 'Operator' } & Pick< Operator, 'id' | 'name' | 'mapPin' | 'logo' > address: Maybe< { __typename?: 'Address' } & Pick< Address, 'id' | 'addressLineOne' | 'city' | 'postCodePartOne' > & { location: Maybe< { __typename?: 'Location' } & Pick< Location, 'id' | 'latitude' | 'longitude' > > } > } export type OfficeAvailabilityFragment = { __typename?: 'OfficeAvailability' } & Pick< OfficeAvailability, | 'totalOfficeSuitesCount' | 'availableOfficeSuitesCount' | 'uncertainOfficeSuitesCount' | 'availableFrom' > export type MapOfficesQueryVariables = { where?: Maybe } export type MapOfficesQuery = { __typename?: 'Query' } & { offices: Array> } export type OfficeAdditionalInfoFragment = { __typename?: 'Office' } & Pick< Office, 'id' > & { photos: Maybe>> availability: Maybe< { __typename?: 'OfficeAvailability' } & OfficeAvailabilityFragment > } export type OfficeAdditionalInfoQueryVariables = { where: OfficeWhereUniqueInput } export type OfficeAdditionalInfoQuery = { __typename?: 'Query' } & { office: Maybe<{ __typename?: 'Office' } & OfficeAdditionalInfoFragment> } export type OfficesAdditinalInfoQueryVariables = { where?: Maybe } export type OfficesAdditinalInfoQuery = { __typename?: 'Query' } & { offices: Array< Maybe<{ __typename?: 'Office' } & OfficeAdditionalInfoFragment> > } export type OfficesQueryVariables = { where?: Maybe first?: Maybe skip?: Maybe } export type OfficesQuery = { __typename?: 'Query' } & { offices: Array> } export type OperatorOfficesQueryVariables = { where?: Maybe } export type OperatorOfficesQuery = { __typename?: 'Query' } & { offices: Array< Maybe< { __typename?: 'Office' } & { operator: { __typename?: 'Operator' } & Pick< Operator, 'id' | 'name' | 'mapPin' > } & OfficeMapFragmentFragment > > } export type FullOfficeInfoFragment = { __typename?: 'Office' } & { officeSuites: Maybe< Array<{ __typename?: 'OfficeSuite' } & FullOfficeSuiteFragment> > } & OfficeFragmentFragment & OfficeFloorplansFragmentFragment export type OfficeQueryVariables = { where: OfficeWhereUniqueInput } export type OfficeQuery = { __typename?: 'Query' } & { office: Maybe<{ __typename?: 'Office' } & FullOfficeInfoFragment> } export type OfficeLeadFragmentFragment = { __typename?: 'Office' } & Pick< Office, 'id' | 'name' > & { photos: Maybe>> operator: { __typename?: 'Operator' } & Pick< Operator, 'id' | 'name' | 'logo' | 'website' > address: Maybe< { __typename?: 'Address' } & Pick< Address, 'id' | 'addressLineOne' | 'postCodePartOne' > > } export type AvailableFromFragmentFragment = { __typename?: 'OfficeSuite' } & { availableFrom: Maybe< { __typename?: 'AvailabilityCondition' } & Pick< AvailabilityCondition, 'id' | 'from' | 'to' | 'isRange' > > } export type SizeDesksFragmentFragment = { __typename?: 'OfficeSuite' } & { sizeDesks: Maybe< { __typename?: 'OfficeSuiteSizeDesksCondition' } & Pick< OfficeSuiteSizeDesksCondition, 'id' | 'from' | 'to' | 'isRange' > > } export type SizeSpaceFragmentFragment = { __typename?: 'OfficeSuite' } & { sizeSpace: Maybe< { __typename?: 'OfficeSuiteSizeSpaceCondition' } & Pick< OfficeSuiteSizeSpaceCondition, 'id' | 'from' | 'to' | 'unit' | 'isRange' > > } export type OfficeSuiteFragment = { __typename?: 'OfficeSuite' } & Pick< OfficeSuite, | 'id' | 'isActive' | 'externalId' | 'name' | 'description' | 'floor' | 'spaceLocation' | 'status' | 'canBePartitioned' | 'updatedAt' | 'createdAt' | 'monthlyQuotingRateCurrency' > & { monthlyQuotingRateTotal: Maybe< { __typename?: 'OfficeSuiteCostCondition' } & Pick< OfficeSuiteCostCondition, 'id' | 'from' | 'to' | 'isRange' > > monthlyQuotingRateDesk: Maybe< { __typename?: 'OfficeSuiteCostCondition' } & Pick< OfficeSuiteCostCondition, 'id' | 'from' | 'to' | 'isRange' > > monthlyQuotingRateSpace: Maybe< { __typename?: 'OfficeSuiteCostCondition' } & Pick< OfficeSuiteCostCondition, 'id' | 'from' | 'to' | 'isRange' > > sizeDesks: Maybe< { __typename?: 'OfficeSuiteSizeDesksCondition' } & Pick< OfficeSuiteSizeDesksCondition, 'id' | 'from' | 'to' | 'isRange' > > sizeSpace: Maybe< { __typename?: 'OfficeSuiteSizeSpaceCondition' } & Pick< OfficeSuiteSizeSpaceCondition, 'id' | 'from' | 'to' | 'isRange' | 'unit' > > photos: Maybe< Array< { __typename?: 'Photo' } & Pick< Photo, 'id' | 'url' | 'type' | 'width' | 'height' > > > } export type OfficeSuiteFloorplansFragment = { __typename?: 'OfficeSuite' } & { floorplans: Maybe< Array< { __typename?: 'Floorplan' } & Pick< Floorplan, 'id' | 'url' | 'name' | 'floor' > > > } export type FullOfficeSuiteFragment = { __typename?: 'OfficeSuite' } & OfficeSuiteFragment & SizeDesksFragmentFragment & SizeSpaceFragmentFragment & AvailableFromFragmentFragment & OfficeSuiteFloorplansFragment export type OperatorBaseFieldsFragment = { __typename?: 'Operator' } & Pick< Operator, 'id' | 'name' | 'logo' > export type OperatorOfficesAggQueryVariables = {} export type OperatorOfficesAggQuery = { __typename?: 'Query' } & { operators: Maybe< Array< Maybe< { __typename?: 'Operator' } & { officesAgg: Maybe< { __typename?: 'OfficesAgg' } & Pick > } & OperatorBaseFieldsFragment > > > } export type OpportunityFragmentFragment = { __typename?: 'Opportunity' } & Pick< Opportunity, | 'id' | 'isDeleted' | 'companyName' | 'contactFullName' | 'contactEmail' | 'companyWebsite' | 'createdAt' | 'detailsUpdatedAt' | 'status' | 'notes' | 'meta' > & { officeSizeCondition: Maybe< { __typename?: 'OfficeSizeCondition' } & Pick< OfficeSizeCondition, 'id' | 'from' | 'to' | 'isRange' | 'unit' > > budgetCondition: Maybe< { __typename?: 'OfficeCostCondition' } & Pick< OfficeCostCondition, 'id' | 'from' | 'to' | 'isRange' | 'unit' | 'currency' > > availableFromCondition: Maybe< { __typename?: 'AvailabilityCondition' } & Pick< AvailabilityCondition, 'id' | 'from' | 'to' | 'isRange' > > termLengthCondition: Maybe< { __typename?: 'TermLengthCondition' } & Pick< TermLengthCondition, 'id' | 'from' | 'to' | 'isRange' > > } export type OpportunityReportFragmentFragment = { __typename?: 'Opportunity' } & { leads: Maybe> user: { __typename?: 'User' } & Pick & { contact: { __typename?: 'Contact' } & Pick< Contact, 'id' | 'name' | 'jobTitle' | 'avatarUrl' > & { emails: Maybe>> phones: Maybe>> } agent: Maybe< { __typename?: 'Agent' } & Pick< Agent, 'id' | 'name' | 'logo' | 'mapPin' | 'blankPinUrl' | 'primaryColor' > > } } & OpportunityFragmentFragment export type OpportunitiesQueryVariables = { where?: Maybe orderBy?: Maybe skip?: Maybe first?: Maybe } export type OpportunitiesQuery = { __typename?: 'Query' } & { opportunities: Array< Maybe< { __typename?: 'Opportunity' } & { leads: Maybe>> } & OpportunityFragmentFragment > > } export type OpportunityQueryVariables = { id: Scalars['Int'] referralsSkip?: Maybe referralsFirst?: Maybe referralsOrderBy?: Maybe referralsSearchText?: Maybe } export type OpportunityQuery = { __typename?: 'Query' } & { opportunity: { __typename?: 'Opportunity' } & { user: { __typename?: 'User' } & Pick & { contact: { __typename?: 'Contact' } & Pick< Contact, 'id' | 'name' | 'jobTitle' | 'avatarUrl' > & { emails: Maybe< Array<{ __typename?: 'Email' } & Pick> > phones: Maybe< Array<{ __typename?: 'Phone' } & Pick> > } agent: Maybe< { __typename?: 'Agent' } & Pick< Agent, 'id' | 'name' | 'logo' | 'mapPin' | 'blankPinUrl' | 'primaryColor' > > } leads: Maybe> } & OpportunityFragmentFragment } export type ReportOpportunityQueryVariables = { id: Scalars['Int'] } export type ReportOpportunityQuery = { __typename?: 'Query' } & { opportunity: { __typename?: 'Opportunity' } & { user: { __typename?: 'User' } & Pick & { contact: { __typename?: 'Contact' } & Pick< Contact, 'id' | 'name' | 'jobTitle' | 'avatarUrl' > & { emails: Maybe< Array<{ __typename?: 'Email' } & Pick> > phones: Maybe< Array<{ __typename?: 'Phone' } & Pick> > } agent: Maybe< { __typename?: 'Agent' } & Pick< Agent, 'id' | 'name' | 'logo' | 'mapPin' | 'blankPinUrl' | 'primaryColor' > > } } & OpportunityReportFragmentFragment } export type OpportunitiesAggQueryVariables = {} export type OpportunitiesAggQuery = { __typename?: 'Query' } & { opportunitiesAgg: { __typename?: 'OpportunitiesAgg' } & Pick< OpportunitiesAgg, 'size' > } export type OpportunityReferralsQueryVariables = { opportunityId: Scalars['Int'] referralsWhere?: Maybe referralsSkip?: Maybe referralsFirst?: Maybe referralsOrderBy?: Maybe referralsSearchText?: Maybe } export type OpportunityReferralsQuery = { __typename?: 'Query' } & { opportunity: { __typename?: 'Opportunity' } & Pick & { leads: Maybe> } } export type AddLeadsMutationVariables = { id: Scalars['Int'] leads?: Maybe> } export type AddLeadsMutation = { __typename?: 'Mutation' } & { updateOpportunity: Maybe< { __typename?: 'Opportunity' } & Pick > } export type UpdateOpportunityStatusMutationVariables = { status: OpportunityStatusType id: Scalars['Int'] } export type UpdateOpportunityStatusMutation = { __typename?: 'Mutation' } & { updateOpportunity: Maybe< { __typename?: 'Opportunity' } & Pick > } export type CreateOpportunityMutationVariables = { data: OpportunityCreateInput } export type CreateOpportunityMutation = { __typename?: 'Mutation' } & { createOpportunity: { __typename?: 'Opportunity' } & Pick } export type UpdateOpportunityMutationVariables = { data: OpportunityUpdateInput where: OpportunityWhereUniqueInput } export type UpdateOpportunityMutation = { __typename?: 'Mutation' } & { updateOpportunity: Maybe< { __typename?: 'Opportunity' } & Pick > } export type UpdateOpportunityMetaMutationVariables = { data: OpportunityUpdateInput where: OpportunityWhereUniqueInput } export type UpdateOpportunityMetaMutation = { __typename?: 'Mutation' } & { updateOpportunity: Maybe< { __typename?: 'Opportunity' } & Pick > } export type DeleteOpportunityMutationVariables = { id: Scalars['Int'] isDeleted: Scalars['Boolean'] } export type DeleteOpportunityMutation = { __typename?: 'Mutation' } & { updateOpportunity: Maybe< { __typename?: 'Opportunity' } & Pick > } export type MeQueryVariables = {} export type MeQuery = { __typename?: 'Query' } & { me: Maybe< { __typename?: 'User' } & Pick< User, 'id' | 'type' | 'permissions' | 'currency' > & { contact: { __typename?: 'Contact' } & Pick< Contact, 'id' | 'name' | 'avatarUrl' | 'jobTitle' > & { emails: Maybe< Array< { __typename?: 'Email' } & Pick > > phones: Maybe< Array< { __typename?: 'Phone' } & Pick > > } operator: Maybe< { __typename?: 'Operator' } & Pick< Operator, 'id' | 'name' | 'logo' | 'website' > > agent: Maybe< { __typename?: 'Agent' } & Pick< Agent, 'id' | 'name' | 'logo' | 'website' > > regions: Maybe< Array< Maybe< { __typename?: 'Region' } & Pick< Region, 'id' | 'name' | 'polygon' > > > > } > } export type UpdateUserMutationVariables = { data: UserUpdateInput where: UserWhereUniqueInput } export type UpdateUserMutation = { __typename?: 'Mutation' } & { updateUser: Maybe<{ __typename?: 'User' } & Pick> } export type AcceptTermAndConditionMutationVariables = { data: AcceptTermAndConditionInput } export type AcceptTermAndConditionMutation = { __typename?: 'Mutation' } & { acceptTermAndCondition: Maybe< { __typename?: 'User' } & Pick & { termAndCondition: Maybe< { __typename?: 'TermAndCondition' } & Pick< TermAndCondition, 'id' | 'isAccepted' > > } > } export type DelayTermAndConditionMutationVariables = {} export type DelayTermAndConditionMutation = { __typename?: 'Mutation' } & { delayTermAndCondition: Maybe< { __typename?: 'User' } & Pick & { termAndCondition: Maybe< { __typename?: 'TermAndCondition' } & Pick< TermAndCondition, 'id' | 'canBeDelayed' > > } > } export const OfficeModalAvailabilityFragmentDoc = gql` fragment OfficeModalAvailability on OfficeAvailability { availableOfficeSuitesCount availableFrom } ` export const ContactViewFragmentDoc = gql` fragment ContactView on Contact { id name avatarUrl emails { id value } } ` export const OfficeGalleryFragmentDoc = gql` fragment OfficeGallery on Office { id name photos { id } } ` export const OfficeSuiteGalleryFragmentDoc = gql` fragment OfficeSuiteGallery on OfficeSuite { id name photos { id } } ` export const OfficeLeadFragmentFragmentDoc = gql` fragment OfficeLeadFragment on Office { id name photos(first: 1) { id } operator { id name logo website } address { id addressLineOne postCodePartOne } } ` export const ReferralsFragmentFragmentDoc = gql` fragment ReferralsFragment on Lead { id createdAt office { ...OfficeLeadFragment } status emailMessages { id createdAt sentAt state emailBodyKey emailCustomMessage emailHeading } offers { id description termLengthCondition { id from to isRange } availableFromCondition { id from to isRange } costCondition { id from to isRange unit currency } officeSizeCondition { id from to isRange unit } monthlyQuotingRateCondition { id from to isRange unit currency } } } ${OfficeLeadFragmentFragmentDoc} ` export const MonthlyQuotingRateFragmentFragmentDoc = gql` fragment monthlyQuotingRateFragment on MonthlyQuotingRateCondition { id from to unit isRange currency } ` export const OfficeMapFragmentFragmentDoc = gql` fragment OfficeMapFragment on Office { id name monthlyQuotingRate { ...monthlyQuotingRateFragment } photos(first: 1) { id } operator { id name mapPin logo } address { id addressLineOne postCodePartOne location { id latitude longitude } } floorplans { id } } ${MonthlyQuotingRateFragmentFragmentDoc} ` export const OfficesFragmentFragmentDoc = gql` fragment officesFragment on Office { id name monthlyQuotingRate { ...monthlyQuotingRateFragment } photos(first: 1) { id } operator { id name mapPin logo } address { id addressLineOne city postCodePartOne location { id latitude longitude } } } ${MonthlyQuotingRateFragmentFragmentDoc} ` export const OfficeAvailabilityFragmentDoc = gql` fragment OfficeAvailability on OfficeAvailability { totalOfficeSuitesCount availableOfficeSuitesCount uncertainOfficeSuitesCount availableFrom } ` export const OfficeAdditionalInfoFragmentDoc = gql` fragment OfficeAdditionalInfo on Office { id photos { id } availability { ...OfficeAvailability } } ${OfficeAvailabilityFragmentDoc} ` export const OfficeFragmentFragmentDoc = gql` fragment OfficeFragment on Office { id name description websiteURL monthlyQuotingRate { ...monthlyQuotingRateFragment } photos { id } operator { id name mapPin logo website isPayingCustomer } address { id addressLineOne addressLineTwo addressLineThree addressLineFour city postCodePartOne location { id latitude longitude } } amenities { id key icon isEnabled } } ${MonthlyQuotingRateFragmentFragmentDoc} ` export const OfficeFloorplansFragmentFragmentDoc = gql` fragment OfficeFloorplansFragment on Office { floorplans { id url name floor } } ` export const OfficeSuiteFragmentDoc = gql` fragment OfficeSuite on OfficeSuite { id isActive externalId name description floor spaceLocation status canBePartitioned updatedAt createdAt monthlyQuotingRateTotal { id from to isRange } monthlyQuotingRateDesk { id from to isRange } monthlyQuotingRateSpace { id from to isRange } monthlyQuotingRateCurrency sizeDesks { id from to isRange } sizeSpace { id from to isRange unit } photos { id url type width height } status } ` export const SizeDesksFragmentFragmentDoc = gql` fragment SizeDesksFragment on OfficeSuite { sizeDesks { id from to isRange } } ` export const SizeSpaceFragmentFragmentDoc = gql` fragment SizeSpaceFragment on OfficeSuite { sizeSpace { id from to unit isRange } } ` export const AvailableFromFragmentFragmentDoc = gql` fragment AvailableFromFragment on OfficeSuite { availableFrom { id from to isRange } } ` export const OfficeSuiteFloorplansFragmentDoc = gql` fragment OfficeSuiteFloorplans on OfficeSuite { floorplans { id url name floor } } ` export const FullOfficeSuiteFragmentDoc = gql` fragment FullOfficeSuite on OfficeSuite { ...OfficeSuite ...SizeDesksFragment ...SizeSpaceFragment ...AvailableFromFragment ...OfficeSuiteFloorplans } ${OfficeSuiteFragmentDoc} ${SizeDesksFragmentFragmentDoc} ${SizeSpaceFragmentFragmentDoc} ${AvailableFromFragmentFragmentDoc} ${OfficeSuiteFloorplansFragmentDoc} ` export const FullOfficeInfoFragmentDoc = gql` fragment FullOfficeInfo on Office { ...OfficeFragment ...OfficeFloorplansFragment officeSuites { ...FullOfficeSuite } } ${OfficeFragmentFragmentDoc} ${OfficeFloorplansFragmentFragmentDoc} ${FullOfficeSuiteFragmentDoc} ` export const OperatorBaseFieldsFragmentDoc = gql` fragment OperatorBaseFields on Operator { id name logo } ` export const OpportunityFragmentFragmentDoc = gql` fragment opportunityFragment on Opportunity { id isDeleted companyName contactFullName contactEmail companyWebsite createdAt detailsUpdatedAt officeSizeCondition { id from to isRange unit } budgetCondition { id from to isRange unit currency } status notes meta availableFromCondition { id from to isRange } termLengthCondition { id from to isRange } } ` export const LeadFragmentFragmentDoc = gql` fragment leadFragment on Lead { id createdAt office { ...OfficeFragment } status emailMessages { id createdAt sentAt state emailBodyKey emailCustomMessage emailHeading } offers { id description termLengthCondition { id from to isRange } availableFromCondition { id from to isRange } costCondition { id from to isRange unit currency } officeSizeCondition { id from to isRange unit } monthlyQuotingRateCondition { id from to isRange unit currency } } } ${OfficeFragmentFragmentDoc} ` export const TransportViewFragmentDoc = gql` fragment TransportView on Transport { id name type distance { id text value } duration { id text value } lines } ` export const OfficeReportFragmentDoc = gql` fragment officeReport on Office { ...OfficeFragment address { location { transport { ...TransportView } } } } ${OfficeFragmentFragmentDoc} ${TransportViewFragmentDoc} ` export const LeadReportFragmentDoc = gql` fragment leadReport on Lead { ...leadFragment office { ...officeReport } } ${LeadFragmentFragmentDoc} ${OfficeReportFragmentDoc} ` export const OpportunityReportFragmentFragmentDoc = gql` fragment opportunityReportFragment on Opportunity { ...opportunityFragment leads { ...leadReport } user { id contact { id name jobTitle avatarUrl emails { value } phones { value } } agent { id name logo mapPin blankPinUrl primaryColor } } } ${OpportunityFragmentFragmentDoc} ${LeadReportFragmentDoc} ` export const OfficeTransportAndContactDocument = gql` query OfficeTransportAndContact($where: OfficeWhereUniqueInput!) { office(where: $where) { id availability { ...OfficeModalAvailability } contacts { ...ContactView } operator { id contacts { ...ContactView } } address { id location { id transport { ...TransportView } } } } } ${OfficeModalAvailabilityFragmentDoc} ${ContactViewFragmentDoc} ${TransportViewFragmentDoc} ` /** * __useOfficeTransportAndContactQuery__ * * To run a query within a React component, call `useOfficeTransportAndContactQuery` and pass it any options that fit your needs. * When your component renders, `useOfficeTransportAndContactQuery` 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 } = useOfficeTransportAndContactQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useOfficeTransportAndContactQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OfficeTransportAndContactQuery, OfficeTransportAndContactQueryVariables >, ) { return ApolloReactHooks.useQuery< OfficeTransportAndContactQuery, OfficeTransportAndContactQueryVariables >(OfficeTransportAndContactDocument, baseOptions) } export function useOfficeTransportAndContactLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OfficeTransportAndContactQuery, OfficeTransportAndContactQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OfficeTransportAndContactQuery, OfficeTransportAndContactQueryVariables >(OfficeTransportAndContactDocument, baseOptions) } export type OfficeTransportAndContactQueryHookResult = ReturnType< typeof useOfficeTransportAndContactQuery > export type OfficeTransportAndContactLazyQueryHookResult = ReturnType< typeof useOfficeTransportAndContactLazyQuery > export type OfficeTransportAndContactQueryResult = ApolloReactCommon.QueryResult< OfficeTransportAndContactQuery, OfficeTransportAndContactQueryVariables > export const OpportunityOfficesDocument = gql` query opportunityOffices($where: OfficeWhereInput) { offices(where: $where) { id operator { id name logo } address { id city } } } ` /** * __useOpportunityOfficesQuery__ * * To run a query within a React component, call `useOpportunityOfficesQuery` and pass it any options that fit your needs. * When your component renders, `useOpportunityOfficesQuery` 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 } = useOpportunityOfficesQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useOpportunityOfficesQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OpportunityOfficesQuery, OpportunityOfficesQueryVariables >, ) { return ApolloReactHooks.useQuery< OpportunityOfficesQuery, OpportunityOfficesQueryVariables >(OpportunityOfficesDocument, baseOptions) } export function useOpportunityOfficesLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OpportunityOfficesQuery, OpportunityOfficesQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OpportunityOfficesQuery, OpportunityOfficesQueryVariables >(OpportunityOfficesDocument, baseOptions) } export type OpportunityOfficesQueryHookResult = ReturnType< typeof useOpportunityOfficesQuery > export type OpportunityOfficesLazyQueryHookResult = ReturnType< typeof useOpportunityOfficesLazyQuery > export type OpportunityOfficesQueryResult = ApolloReactCommon.QueryResult< OpportunityOfficesQuery, OpportunityOfficesQueryVariables > export const UpdateLeadStatusDocument = gql` mutation updateLeadStatus($status: LeadStatusType!, $id: Int!) { updateLead(data: { status: $status }, where: { id: $id }) { id status } } ` export type UpdateLeadStatusMutationFn = ApolloReactCommon.MutationFunction< UpdateLeadStatusMutation, UpdateLeadStatusMutationVariables > /** * __useUpdateLeadStatusMutation__ * * To run a mutation, you first call `useUpdateLeadStatusMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateLeadStatusMutation` 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 [updateLeadStatusMutation, { data, loading, error }] = useUpdateLeadStatusMutation({ * variables: { * status: // value for 'status' * id: // value for 'id' * }, * }); */ export function useUpdateLeadStatusMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< UpdateLeadStatusMutation, UpdateLeadStatusMutationVariables >, ) { return ApolloReactHooks.useMutation< UpdateLeadStatusMutation, UpdateLeadStatusMutationVariables >(UpdateLeadStatusDocument, baseOptions) } export type UpdateLeadStatusMutationHookResult = ReturnType< typeof useUpdateLeadStatusMutation > export type UpdateLeadStatusMutationResult = ApolloReactCommon.MutationResult< UpdateLeadStatusMutation > export type UpdateLeadStatusMutationOptions = ApolloReactCommon.BaseMutationOptions< UpdateLeadStatusMutation, UpdateLeadStatusMutationVariables > export const UpdateLeadDocument = gql` mutation updateLead($data: LeadUpdateInput!, $where: LeadWhereUniqueInput!) { updateLead(data: $data, where: $where) { id } } ` export type UpdateLeadMutationFn = ApolloReactCommon.MutationFunction< UpdateLeadMutation, UpdateLeadMutationVariables > /** * __useUpdateLeadMutation__ * * To run a mutation, you first call `useUpdateLeadMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateLeadMutation` 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 [updateLeadMutation, { data, loading, error }] = useUpdateLeadMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateLeadMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< UpdateLeadMutation, UpdateLeadMutationVariables >, ) { return ApolloReactHooks.useMutation< UpdateLeadMutation, UpdateLeadMutationVariables >(UpdateLeadDocument, baseOptions) } export type UpdateLeadMutationHookResult = ReturnType< typeof useUpdateLeadMutation > export type UpdateLeadMutationResult = ApolloReactCommon.MutationResult< UpdateLeadMutation > export type UpdateLeadMutationOptions = ApolloReactCommon.BaseMutationOptions< UpdateLeadMutation, UpdateLeadMutationVariables > export const SendOperatorLeadsDocument = gql` mutation sendOperatorLeads($data: SendOperatorLeadsInput!) { sendOperatorLeads(data: $data) { isSucceeded } } ` export type SendOperatorLeadsMutationFn = ApolloReactCommon.MutationFunction< SendOperatorLeadsMutation, SendOperatorLeadsMutationVariables > /** * __useSendOperatorLeadsMutation__ * * To run a mutation, you first call `useSendOperatorLeadsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSendOperatorLeadsMutation` 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 [sendOperatorLeadsMutation, { data, loading, error }] = useSendOperatorLeadsMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useSendOperatorLeadsMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< SendOperatorLeadsMutation, SendOperatorLeadsMutationVariables >, ) { return ApolloReactHooks.useMutation< SendOperatorLeadsMutation, SendOperatorLeadsMutationVariables >(SendOperatorLeadsDocument, baseOptions) } export type SendOperatorLeadsMutationHookResult = ReturnType< typeof useSendOperatorLeadsMutation > export type SendOperatorLeadsMutationResult = ApolloReactCommon.MutationResult< SendOperatorLeadsMutation > export type SendOperatorLeadsMutationOptions = ApolloReactCommon.BaseMutationOptions< SendOperatorLeadsMutation, SendOperatorLeadsMutationVariables > export const MapOfficesDocument = gql` query mapOffices($where: OfficeWhereInput) { offices(where: $where) { ...OfficeMapFragment } } ${OfficeMapFragmentFragmentDoc} ` /** * __useMapOfficesQuery__ * * To run a query within a React component, call `useMapOfficesQuery` and pass it any options that fit your needs. * When your component renders, `useMapOfficesQuery` 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 } = useMapOfficesQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useMapOfficesQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< MapOfficesQuery, MapOfficesQueryVariables >, ) { return ApolloReactHooks.useQuery( MapOfficesDocument, baseOptions, ) } export function useMapOfficesLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< MapOfficesQuery, MapOfficesQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< MapOfficesQuery, MapOfficesQueryVariables >(MapOfficesDocument, baseOptions) } export type MapOfficesQueryHookResult = ReturnType export type MapOfficesLazyQueryHookResult = ReturnType< typeof useMapOfficesLazyQuery > export type MapOfficesQueryResult = ApolloReactCommon.QueryResult< MapOfficesQuery, MapOfficesQueryVariables > export const OfficeAdditionalInfoDocument = gql` query officeAdditionalInfo($where: OfficeWhereUniqueInput!) { office(where: $where) { ...OfficeAdditionalInfo } } ${OfficeAdditionalInfoFragmentDoc} ` /** * __useOfficeAdditionalInfoQuery__ * * To run a query within a React component, call `useOfficeAdditionalInfoQuery` and pass it any options that fit your needs. * When your component renders, `useOfficeAdditionalInfoQuery` 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 } = useOfficeAdditionalInfoQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useOfficeAdditionalInfoQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OfficeAdditionalInfoQuery, OfficeAdditionalInfoQueryVariables >, ) { return ApolloReactHooks.useQuery< OfficeAdditionalInfoQuery, OfficeAdditionalInfoQueryVariables >(OfficeAdditionalInfoDocument, baseOptions) } export function useOfficeAdditionalInfoLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OfficeAdditionalInfoQuery, OfficeAdditionalInfoQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OfficeAdditionalInfoQuery, OfficeAdditionalInfoQueryVariables >(OfficeAdditionalInfoDocument, baseOptions) } export type OfficeAdditionalInfoQueryHookResult = ReturnType< typeof useOfficeAdditionalInfoQuery > export type OfficeAdditionalInfoLazyQueryHookResult = ReturnType< typeof useOfficeAdditionalInfoLazyQuery > export type OfficeAdditionalInfoQueryResult = ApolloReactCommon.QueryResult< OfficeAdditionalInfoQuery, OfficeAdditionalInfoQueryVariables > export const OfficesAdditinalInfoDocument = gql` query officesAdditinalInfo($where: OfficeWhereInput) { offices(where: $where) { ...OfficeAdditionalInfo } } ${OfficeAdditionalInfoFragmentDoc} ` /** * __useOfficesAdditinalInfoQuery__ * * To run a query within a React component, call `useOfficesAdditinalInfoQuery` and pass it any options that fit your needs. * When your component renders, `useOfficesAdditinalInfoQuery` 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 } = useOfficesAdditinalInfoQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useOfficesAdditinalInfoQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OfficesAdditinalInfoQuery, OfficesAdditinalInfoQueryVariables >, ) { return ApolloReactHooks.useQuery< OfficesAdditinalInfoQuery, OfficesAdditinalInfoQueryVariables >(OfficesAdditinalInfoDocument, baseOptions) } export function useOfficesAdditinalInfoLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OfficesAdditinalInfoQuery, OfficesAdditinalInfoQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OfficesAdditinalInfoQuery, OfficesAdditinalInfoQueryVariables >(OfficesAdditinalInfoDocument, baseOptions) } export type OfficesAdditinalInfoQueryHookResult = ReturnType< typeof useOfficesAdditinalInfoQuery > export type OfficesAdditinalInfoLazyQueryHookResult = ReturnType< typeof useOfficesAdditinalInfoLazyQuery > export type OfficesAdditinalInfoQueryResult = ApolloReactCommon.QueryResult< OfficesAdditinalInfoQuery, OfficesAdditinalInfoQueryVariables > export const OfficesDocument = gql` query offices($where: OfficeWhereInput, $first: Int, $skip: Int) { offices(where: $where, first: $first, skip: $skip) { ...officesFragment } } ${OfficesFragmentFragmentDoc} ` /** * __useOfficesQuery__ * * To run a query within a React component, call `useOfficesQuery` and pass it any options that fit your needs. * When your component renders, `useOfficesQuery` 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 } = useOfficesQuery({ * variables: { * where: // value for 'where' * first: // value for 'first' * skip: // value for 'skip' * }, * }); */ export function useOfficesQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OfficesQuery, OfficesQueryVariables >, ) { return ApolloReactHooks.useQuery( OfficesDocument, baseOptions, ) } export function useOfficesLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OfficesQuery, OfficesQueryVariables >, ) { return ApolloReactHooks.useLazyQuery( OfficesDocument, baseOptions, ) } export type OfficesQueryHookResult = ReturnType export type OfficesLazyQueryHookResult = ReturnType export type OfficesQueryResult = ApolloReactCommon.QueryResult< OfficesQuery, OfficesQueryVariables > export const OperatorOfficesDocument = gql` query operatorOffices($where: OfficeWhereInput) { offices(where: $where) { ...OfficeMapFragment operator { id name mapPin } } } ${OfficeMapFragmentFragmentDoc} ` /** * __useOperatorOfficesQuery__ * * To run a query within a React component, call `useOperatorOfficesQuery` and pass it any options that fit your needs. * When your component renders, `useOperatorOfficesQuery` 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 } = useOperatorOfficesQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useOperatorOfficesQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OperatorOfficesQuery, OperatorOfficesQueryVariables >, ) { return ApolloReactHooks.useQuery< OperatorOfficesQuery, OperatorOfficesQueryVariables >(OperatorOfficesDocument, baseOptions) } export function useOperatorOfficesLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OperatorOfficesQuery, OperatorOfficesQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OperatorOfficesQuery, OperatorOfficesQueryVariables >(OperatorOfficesDocument, baseOptions) } export type OperatorOfficesQueryHookResult = ReturnType< typeof useOperatorOfficesQuery > export type OperatorOfficesLazyQueryHookResult = ReturnType< typeof useOperatorOfficesLazyQuery > export type OperatorOfficesQueryResult = ApolloReactCommon.QueryResult< OperatorOfficesQuery, OperatorOfficesQueryVariables > export const OfficeDocument = gql` query office($where: OfficeWhereUniqueInput!) { office(where: $where) { ...FullOfficeInfo } } ${FullOfficeInfoFragmentDoc} ` /** * __useOfficeQuery__ * * To run a query within a React component, call `useOfficeQuery` and pass it any options that fit your needs. * When your component renders, `useOfficeQuery` 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 } = useOfficeQuery({ * variables: { * where: // value for 'where' * }, * }); */ export function useOfficeQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OfficeQuery, OfficeQueryVariables >, ) { return ApolloReactHooks.useQuery( OfficeDocument, baseOptions, ) } export function useOfficeLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OfficeQuery, OfficeQueryVariables >, ) { return ApolloReactHooks.useLazyQuery( OfficeDocument, baseOptions, ) } export type OfficeQueryHookResult = ReturnType export type OfficeLazyQueryHookResult = ReturnType export type OfficeQueryResult = ApolloReactCommon.QueryResult< OfficeQuery, OfficeQueryVariables > export const OperatorOfficesAggDocument = gql` query operatorOfficesAgg { operators { ...OperatorBaseFields officesAgg { size } } } ${OperatorBaseFieldsFragmentDoc} ` /** * __useOperatorOfficesAggQuery__ * * To run a query within a React component, call `useOperatorOfficesAggQuery` and pass it any options that fit your needs. * When your component renders, `useOperatorOfficesAggQuery` 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 } = useOperatorOfficesAggQuery({ * variables: { * }, * }); */ export function useOperatorOfficesAggQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OperatorOfficesAggQuery, OperatorOfficesAggQueryVariables >, ) { return ApolloReactHooks.useQuery< OperatorOfficesAggQuery, OperatorOfficesAggQueryVariables >(OperatorOfficesAggDocument, baseOptions) } export function useOperatorOfficesAggLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OperatorOfficesAggQuery, OperatorOfficesAggQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OperatorOfficesAggQuery, OperatorOfficesAggQueryVariables >(OperatorOfficesAggDocument, baseOptions) } export type OperatorOfficesAggQueryHookResult = ReturnType< typeof useOperatorOfficesAggQuery > export type OperatorOfficesAggLazyQueryHookResult = ReturnType< typeof useOperatorOfficesAggLazyQuery > export type OperatorOfficesAggQueryResult = ApolloReactCommon.QueryResult< OperatorOfficesAggQuery, OperatorOfficesAggQueryVariables > export const OpportunitiesDocument = gql` query opportunities( $where: OpportunityWhereInput $orderBy: OpportunityOrderByInput $skip: Int $first: Int ) { opportunities( where: $where orderBy: $orderBy skip: $skip first: $first ) { ...opportunityFragment leads { id } } } ${OpportunityFragmentFragmentDoc} ` /** * __useOpportunitiesQuery__ * * To run a query within a React component, call `useOpportunitiesQuery` and pass it any options that fit your needs. * When your component renders, `useOpportunitiesQuery` 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 } = useOpportunitiesQuery({ * variables: { * where: // value for 'where' * orderBy: // value for 'orderBy' * skip: // value for 'skip' * first: // value for 'first' * }, * }); */ export function useOpportunitiesQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OpportunitiesQuery, OpportunitiesQueryVariables >, ) { return ApolloReactHooks.useQuery< OpportunitiesQuery, OpportunitiesQueryVariables >(OpportunitiesDocument, baseOptions) } export function useOpportunitiesLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OpportunitiesQuery, OpportunitiesQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OpportunitiesQuery, OpportunitiesQueryVariables >(OpportunitiesDocument, baseOptions) } export type OpportunitiesQueryHookResult = ReturnType< typeof useOpportunitiesQuery > export type OpportunitiesLazyQueryHookResult = ReturnType< typeof useOpportunitiesLazyQuery > export type OpportunitiesQueryResult = ApolloReactCommon.QueryResult< OpportunitiesQuery, OpportunitiesQueryVariables > export const OpportunityDocument = gql` query opportunity( $id: Int! $referralsSkip: Int $referralsFirst: Int $referralsOrderBy: OpportunityLeadOrderByInput $referralsSearchText: String ) { opportunity(id: $id) { ...opportunityFragment user { id contact { id name jobTitle avatarUrl emails { value } phones { value } } agent { id name logo mapPin blankPinUrl primaryColor } } leads( skip: $referralsSkip first: $referralsFirst orderBy: $referralsOrderBy search: $referralsSearchText ) { ...leadFragment } } } ${OpportunityFragmentFragmentDoc} ${LeadFragmentFragmentDoc} ` /** * __useOpportunityQuery__ * * To run a query within a React component, call `useOpportunityQuery` and pass it any options that fit your needs. * When your component renders, `useOpportunityQuery` 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 } = useOpportunityQuery({ * variables: { * id: // value for 'id' * referralsSkip: // value for 'referralsSkip' * referralsFirst: // value for 'referralsFirst' * referralsOrderBy: // value for 'referralsOrderBy' * referralsSearchText: // value for 'referralsSearchText' * }, * }); */ export function useOpportunityQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OpportunityQuery, OpportunityQueryVariables >, ) { return ApolloReactHooks.useQuery( OpportunityDocument, baseOptions, ) } export function useOpportunityLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OpportunityQuery, OpportunityQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OpportunityQuery, OpportunityQueryVariables >(OpportunityDocument, baseOptions) } export type OpportunityQueryHookResult = ReturnType export type OpportunityLazyQueryHookResult = ReturnType< typeof useOpportunityLazyQuery > export type OpportunityQueryResult = ApolloReactCommon.QueryResult< OpportunityQuery, OpportunityQueryVariables > export const ReportOpportunityDocument = gql` query reportOpportunity($id: Int!) { opportunity(id: $id) { ...opportunityReportFragment user { id contact { id name jobTitle avatarUrl emails { value } phones { value } } agent { id name logo mapPin blankPinUrl primaryColor } } } } ${OpportunityReportFragmentFragmentDoc} ` /** * __useReportOpportunityQuery__ * * To run a query within a React component, call `useReportOpportunityQuery` and pass it any options that fit your needs. * When your component renders, `useReportOpportunityQuery` 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 } = useReportOpportunityQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useReportOpportunityQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< ReportOpportunityQuery, ReportOpportunityQueryVariables >, ) { return ApolloReactHooks.useQuery< ReportOpportunityQuery, ReportOpportunityQueryVariables >(ReportOpportunityDocument, baseOptions) } export function useReportOpportunityLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< ReportOpportunityQuery, ReportOpportunityQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< ReportOpportunityQuery, ReportOpportunityQueryVariables >(ReportOpportunityDocument, baseOptions) } export type ReportOpportunityQueryHookResult = ReturnType< typeof useReportOpportunityQuery > export type ReportOpportunityLazyQueryHookResult = ReturnType< typeof useReportOpportunityLazyQuery > export type ReportOpportunityQueryResult = ApolloReactCommon.QueryResult< ReportOpportunityQuery, ReportOpportunityQueryVariables > export const OpportunitiesAggDocument = gql` query opportunitiesAgg { opportunitiesAgg { size } } ` /** * __useOpportunitiesAggQuery__ * * To run a query within a React component, call `useOpportunitiesAggQuery` and pass it any options that fit your needs. * When your component renders, `useOpportunitiesAggQuery` 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 } = useOpportunitiesAggQuery({ * variables: { * }, * }); */ export function useOpportunitiesAggQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OpportunitiesAggQuery, OpportunitiesAggQueryVariables >, ) { return ApolloReactHooks.useQuery< OpportunitiesAggQuery, OpportunitiesAggQueryVariables >(OpportunitiesAggDocument, baseOptions) } export function useOpportunitiesAggLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OpportunitiesAggQuery, OpportunitiesAggQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OpportunitiesAggQuery, OpportunitiesAggQueryVariables >(OpportunitiesAggDocument, baseOptions) } export type OpportunitiesAggQueryHookResult = ReturnType< typeof useOpportunitiesAggQuery > export type OpportunitiesAggLazyQueryHookResult = ReturnType< typeof useOpportunitiesAggLazyQuery > export type OpportunitiesAggQueryResult = ApolloReactCommon.QueryResult< OpportunitiesAggQuery, OpportunitiesAggQueryVariables > export const OpportunityReferralsDocument = gql` query opportunityReferrals( $opportunityId: Int! $referralsWhere: LeadWhereInput $referralsSkip: Int $referralsFirst: Int $referralsOrderBy: OpportunityLeadOrderByInput $referralsSearchText: String ) { opportunity(id: $opportunityId) { id leads( where: $referralsWhere skip: $referralsSkip first: $referralsFirst orderBy: $referralsOrderBy search: $referralsSearchText ) { ...ReferralsFragment } } } ${ReferralsFragmentFragmentDoc} ` /** * __useOpportunityReferralsQuery__ * * To run a query within a React component, call `useOpportunityReferralsQuery` and pass it any options that fit your needs. * When your component renders, `useOpportunityReferralsQuery` 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 } = useOpportunityReferralsQuery({ * variables: { * opportunityId: // value for 'opportunityId' * referralsWhere: // value for 'referralsWhere' * referralsSkip: // value for 'referralsSkip' * referralsFirst: // value for 'referralsFirst' * referralsOrderBy: // value for 'referralsOrderBy' * referralsSearchText: // value for 'referralsSearchText' * }, * }); */ export function useOpportunityReferralsQuery( baseOptions?: ApolloReactHooks.QueryHookOptions< OpportunityReferralsQuery, OpportunityReferralsQueryVariables >, ) { return ApolloReactHooks.useQuery< OpportunityReferralsQuery, OpportunityReferralsQueryVariables >(OpportunityReferralsDocument, baseOptions) } export function useOpportunityReferralsLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< OpportunityReferralsQuery, OpportunityReferralsQueryVariables >, ) { return ApolloReactHooks.useLazyQuery< OpportunityReferralsQuery, OpportunityReferralsQueryVariables >(OpportunityReferralsDocument, baseOptions) } export type OpportunityReferralsQueryHookResult = ReturnType< typeof useOpportunityReferralsQuery > export type OpportunityReferralsLazyQueryHookResult = ReturnType< typeof useOpportunityReferralsLazyQuery > export type OpportunityReferralsQueryResult = ApolloReactCommon.QueryResult< OpportunityReferralsQuery, OpportunityReferralsQueryVariables > export const AddLeadsDocument = gql` mutation addLeads($id: Int!, $leads: [LeadCreateInput!]) { updateOpportunity(data: { leads: { create: $leads } }, where: { id: $id }) { id } } ` export type AddLeadsMutationFn = ApolloReactCommon.MutationFunction< AddLeadsMutation, AddLeadsMutationVariables > /** * __useAddLeadsMutation__ * * To run a mutation, you first call `useAddLeadsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAddLeadsMutation` 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 [addLeadsMutation, { data, loading, error }] = useAddLeadsMutation({ * variables: { * id: // value for 'id' * leads: // value for 'leads' * }, * }); */ export function useAddLeadsMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< AddLeadsMutation, AddLeadsMutationVariables >, ) { return ApolloReactHooks.useMutation< AddLeadsMutation, AddLeadsMutationVariables >(AddLeadsDocument, baseOptions) } export type AddLeadsMutationHookResult = ReturnType export type AddLeadsMutationResult = ApolloReactCommon.MutationResult< AddLeadsMutation > export type AddLeadsMutationOptions = ApolloReactCommon.BaseMutationOptions< AddLeadsMutation, AddLeadsMutationVariables > export const UpdateOpportunityStatusDocument = gql` mutation updateOpportunityStatus($status: OpportunityStatusType!, $id: Int!) { updateOpportunity(data: { status: $status }, where: { id: $id }) { id status } } ` export type UpdateOpportunityStatusMutationFn = ApolloReactCommon.MutationFunction< UpdateOpportunityStatusMutation, UpdateOpportunityStatusMutationVariables > /** * __useUpdateOpportunityStatusMutation__ * * To run a mutation, you first call `useUpdateOpportunityStatusMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateOpportunityStatusMutation` 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 [updateOpportunityStatusMutation, { data, loading, error }] = useUpdateOpportunityStatusMutation({ * variables: { * status: // value for 'status' * id: // value for 'id' * }, * }); */ export function useUpdateOpportunityStatusMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< UpdateOpportunityStatusMutation, UpdateOpportunityStatusMutationVariables >, ) { return ApolloReactHooks.useMutation< UpdateOpportunityStatusMutation, UpdateOpportunityStatusMutationVariables >(UpdateOpportunityStatusDocument, baseOptions) } export type UpdateOpportunityStatusMutationHookResult = ReturnType< typeof useUpdateOpportunityStatusMutation > export type UpdateOpportunityStatusMutationResult = ApolloReactCommon.MutationResult< UpdateOpportunityStatusMutation > export type UpdateOpportunityStatusMutationOptions = ApolloReactCommon.BaseMutationOptions< UpdateOpportunityStatusMutation, UpdateOpportunityStatusMutationVariables > export const CreateOpportunityDocument = gql` mutation createOpportunity($data: OpportunityCreateInput!) { createOpportunity(data: $data) { id } } ` export type CreateOpportunityMutationFn = ApolloReactCommon.MutationFunction< CreateOpportunityMutation, CreateOpportunityMutationVariables > /** * __useCreateOpportunityMutation__ * * To run a mutation, you first call `useCreateOpportunityMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateOpportunityMutation` 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 [createOpportunityMutation, { data, loading, error }] = useCreateOpportunityMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useCreateOpportunityMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< CreateOpportunityMutation, CreateOpportunityMutationVariables >, ) { return ApolloReactHooks.useMutation< CreateOpportunityMutation, CreateOpportunityMutationVariables >(CreateOpportunityDocument, baseOptions) } export type CreateOpportunityMutationHookResult = ReturnType< typeof useCreateOpportunityMutation > export type CreateOpportunityMutationResult = ApolloReactCommon.MutationResult< CreateOpportunityMutation > export type CreateOpportunityMutationOptions = ApolloReactCommon.BaseMutationOptions< CreateOpportunityMutation, CreateOpportunityMutationVariables > export const UpdateOpportunityDocument = gql` mutation updateOpportunity( $data: OpportunityUpdateInput! $where: OpportunityWhereUniqueInput! ) { updateOpportunity(data: $data, where: $where) { id } } ` export type UpdateOpportunityMutationFn = ApolloReactCommon.MutationFunction< UpdateOpportunityMutation, UpdateOpportunityMutationVariables > /** * __useUpdateOpportunityMutation__ * * To run a mutation, you first call `useUpdateOpportunityMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateOpportunityMutation` 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 [updateOpportunityMutation, { data, loading, error }] = useUpdateOpportunityMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateOpportunityMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< UpdateOpportunityMutation, UpdateOpportunityMutationVariables >, ) { return ApolloReactHooks.useMutation< UpdateOpportunityMutation, UpdateOpportunityMutationVariables >(UpdateOpportunityDocument, baseOptions) } export type UpdateOpportunityMutationHookResult = ReturnType< typeof useUpdateOpportunityMutation > export type UpdateOpportunityMutationResult = ApolloReactCommon.MutationResult< UpdateOpportunityMutation > export type UpdateOpportunityMutationOptions = ApolloReactCommon.BaseMutationOptions< UpdateOpportunityMutation, UpdateOpportunityMutationVariables > export const UpdateOpportunityMetaDocument = gql` mutation updateOpportunityMeta( $data: OpportunityUpdateInput! $where: OpportunityWhereUniqueInput! ) { updateOpportunity(data: $data, where: $where) { id meta } } ` export type UpdateOpportunityMetaMutationFn = ApolloReactCommon.MutationFunction< UpdateOpportunityMetaMutation, UpdateOpportunityMetaMutationVariables > /** * __useUpdateOpportunityMetaMutation__ * * To run a mutation, you first call `useUpdateOpportunityMetaMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateOpportunityMetaMutation` 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 [updateOpportunityMetaMutation, { data, loading, error }] = useUpdateOpportunityMetaMutation({ * variables: { * data: // value for 'data' * where: // value for 'where' * }, * }); */ export function useUpdateOpportunityMetaMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< UpdateOpportunityMetaMutation, UpdateOpportunityMetaMutationVariables >, ) { return ApolloReactHooks.useMutation< UpdateOpportunityMetaMutation, UpdateOpportunityMetaMutationVariables >(UpdateOpportunityMetaDocument, baseOptions) } export type UpdateOpportunityMetaMutationHookResult = ReturnType< typeof useUpdateOpportunityMetaMutation > export type UpdateOpportunityMetaMutationResult = ApolloReactCommon.MutationResult< UpdateOpportunityMetaMutation > export type UpdateOpportunityMetaMutationOptions = ApolloReactCommon.BaseMutationOptions< UpdateOpportunityMetaMutation, UpdateOpportunityMetaMutationVariables > export const DeleteOpportunityDocument = gql` mutation deleteOpportunity($id: Int!, $isDeleted: Boolean!) { updateOpportunity(data: { isDeleted: $isDeleted }, where: { id: $id }) { id isDeleted } } ` export type DeleteOpportunityMutationFn = ApolloReactCommon.MutationFunction< DeleteOpportunityMutation, DeleteOpportunityMutationVariables > /** * __useDeleteOpportunityMutation__ * * To run a mutation, you first call `useDeleteOpportunityMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteOpportunityMutation` 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 [deleteOpportunityMutation, { data, loading, error }] = useDeleteOpportunityMutation({ * variables: { * id: // value for 'id' * isDeleted: // value for 'isDeleted' * }, * }); */ export function useDeleteOpportunityMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< DeleteOpportunityMutation, DeleteOpportunityMutationVariables >, ) { return ApolloReactHooks.useMutation< DeleteOpportunityMutation, DeleteOpportunityMutationVariables >(DeleteOpportunityDocument, baseOptions) } export type DeleteOpportunityMutationHookResult = ReturnType< typeof useDeleteOpportunityMutation > export type DeleteOpportunityMutationResult = ApolloReactCommon.MutationResult< DeleteOpportunityMutation > export type DeleteOpportunityMutationOptions = ApolloReactCommon.BaseMutationOptions< DeleteOpportunityMutation, DeleteOpportunityMutationVariables > export const MeDocument = gql` query me { me { id type contact { id name avatarUrl jobTitle emails { id value type } phones { id value type } } operator { id name logo website } agent { id name logo website } permissions currency regions { id name polygon } } } ` /** * __useMeQuery__ * * To run a query within a React component, call `useMeQuery` and pass it any options that fit your needs. * When your component renders, `useMeQuery` 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 } = useMeQuery({ * variables: { * }, * }); */ export function useMeQuery( baseOptions?: ApolloReactHooks.QueryHookOptions, ) { return ApolloReactHooks.useQuery( MeDocument, baseOptions, ) } export function useMeLazyQuery( baseOptions?: ApolloReactHooks.LazyQueryHookOptions< MeQuery, MeQueryVariables >, ) { return ApolloReactHooks.useLazyQuery( MeDocument, baseOptions, ) } export type MeQueryHookResult = ReturnType export type MeLazyQueryHookResult = ReturnType export type MeQueryResult = ApolloReactCommon.QueryResult< MeQuery, MeQueryVariables > export const UpdateUserDocument = gql` mutation updateUser($data: UserUpdateInput!, $where: UserWhereUniqueInput!) { updateUser(data: $data, where: $where) { id } } ` export type UpdateUserMutationFn = ApolloReactCommon.MutationFunction< UpdateUserMutation, UpdateUserMutationVariables > /** * __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?: ApolloReactHooks.MutationHookOptions< UpdateUserMutation, UpdateUserMutationVariables >, ) { return ApolloReactHooks.useMutation< UpdateUserMutation, UpdateUserMutationVariables >(UpdateUserDocument, baseOptions) } export type UpdateUserMutationHookResult = ReturnType< typeof useUpdateUserMutation > export type UpdateUserMutationResult = ApolloReactCommon.MutationResult< UpdateUserMutation > export type UpdateUserMutationOptions = ApolloReactCommon.BaseMutationOptions< UpdateUserMutation, UpdateUserMutationVariables > export const AcceptTermAndConditionDocument = gql` mutation acceptTermAndCondition($data: AcceptTermAndConditionInput!) { acceptTermAndCondition(data: $data) { id termAndCondition { id isAccepted } } } ` export type AcceptTermAndConditionMutationFn = ApolloReactCommon.MutationFunction< AcceptTermAndConditionMutation, AcceptTermAndConditionMutationVariables > /** * __useAcceptTermAndConditionMutation__ * * To run a mutation, you first call `useAcceptTermAndConditionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAcceptTermAndConditionMutation` 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 [acceptTermAndConditionMutation, { data, loading, error }] = useAcceptTermAndConditionMutation({ * variables: { * data: // value for 'data' * }, * }); */ export function useAcceptTermAndConditionMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< AcceptTermAndConditionMutation, AcceptTermAndConditionMutationVariables >, ) { return ApolloReactHooks.useMutation< AcceptTermAndConditionMutation, AcceptTermAndConditionMutationVariables >(AcceptTermAndConditionDocument, baseOptions) } export type AcceptTermAndConditionMutationHookResult = ReturnType< typeof useAcceptTermAndConditionMutation > export type AcceptTermAndConditionMutationResult = ApolloReactCommon.MutationResult< AcceptTermAndConditionMutation > export type AcceptTermAndConditionMutationOptions = ApolloReactCommon.BaseMutationOptions< AcceptTermAndConditionMutation, AcceptTermAndConditionMutationVariables > export const DelayTermAndConditionDocument = gql` mutation delayTermAndCondition { delayTermAndCondition(data: {}) { id termAndCondition { id canBeDelayed } } } ` export type DelayTermAndConditionMutationFn = ApolloReactCommon.MutationFunction< DelayTermAndConditionMutation, DelayTermAndConditionMutationVariables > /** * __useDelayTermAndConditionMutation__ * * To run a mutation, you first call `useDelayTermAndConditionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDelayTermAndConditionMutation` 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 [delayTermAndConditionMutation, { data, loading, error }] = useDelayTermAndConditionMutation({ * variables: { * }, * }); */ export function useDelayTermAndConditionMutation( baseOptions?: ApolloReactHooks.MutationHookOptions< DelayTermAndConditionMutation, DelayTermAndConditionMutationVariables >, ) { return ApolloReactHooks.useMutation< DelayTermAndConditionMutation, DelayTermAndConditionMutationVariables >(DelayTermAndConditionDocument, baseOptions) } export type DelayTermAndConditionMutationHookResult = ReturnType< typeof useDelayTermAndConditionMutation > export type DelayTermAndConditionMutationResult = ApolloReactCommon.MutationResult< DelayTermAndConditionMutation > export type DelayTermAndConditionMutationOptions = ApolloReactCommon.BaseMutationOptions< DelayTermAndConditionMutation, DelayTermAndConditionMutationVariables >