import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; ConnectionCursor: any; DateTime: string; JSON: any; JSONObject: any; UUID: any; Upload: any; }; export type AisqlQueryResult = { __typename?: 'AISQLQueryResult'; queryFailedErrorMessage?: Maybe; sqlQuery: Scalars['String']; sqlQueryResult?: Maybe; }; export type ActivateWorkspaceInput = { displayName?: InputMaybe; }; export type Analytics = { __typename?: 'Analytics'; /** Boolean that confirms query was dispatched */ success: Scalars['Boolean']; }; export type ApiConfig = { __typename?: 'ApiConfig'; mutationMaximumAffectedRecords: Scalars['Float']; }; export type ApiKeyToken = { __typename?: 'ApiKeyToken'; token: Scalars['String']; }; export type AppToken = { __typename?: 'AppToken'; createdAt: Scalars['DateTime']; expiresAt: Scalars['DateTime']; id: Scalars['UUID']; type: Scalars['String']; updatedAt: Scalars['DateTime']; }; export type AppTokenEdge = { __typename?: 'AppTokenEdge'; /** Cursor for this node. */ cursor: Scalars['ConnectionCursor']; /** The node containing the AppToken */ node: AppToken; }; export type AuthProviders = { __typename?: 'AuthProviders'; google: Scalars['Boolean']; magicLink: Scalars['Boolean']; microsoft: Scalars['Boolean']; password: Scalars['Boolean']; }; export type AuthToken = { __typename?: 'AuthToken'; expiresAt: Scalars['DateTime']; token: Scalars['String']; }; export type AuthTokenPair = { __typename?: 'AuthTokenPair'; accessToken: AuthToken; refreshToken: AuthToken; }; export type AuthTokens = { __typename?: 'AuthTokens'; tokens: AuthTokenPair; }; export type AuthorizeApp = { __typename?: 'AuthorizeApp'; redirectUrl: Scalars['String']; }; export type Billing = { __typename?: 'Billing'; billingFreeTrialDurationInDays?: Maybe; billingUrl?: Maybe; isBillingEnabled: Scalars['Boolean']; }; export type BillingSubscription = { __typename?: 'BillingSubscription'; id: Scalars['UUID']; interval?: Maybe; status: SubscriptionStatus; }; export type BillingSubscriptionFilter = { and?: InputMaybe>; id?: InputMaybe; or?: InputMaybe>; }; export type BillingSubscriptionSort = { direction: SortDirection; field: BillingSubscriptionSortFields; nulls?: InputMaybe; }; export enum BillingSubscriptionSortFields { Id = 'id' } export type BooleanFieldComparison = { is?: InputMaybe; isNot?: InputMaybe; }; /** Visibility of the calendar channel */ export enum CalendarChannelVisibility { Metadata = 'METADATA', ShareEverything = 'SHARE_EVERYTHING' } export type Captcha = { __typename?: 'Captcha'; provider?: Maybe; siteKey?: Maybe; }; export enum CaptchaDriverType { GoogleRecaptcha = 'GoogleRecaptcha', Turnstile = 'Turnstile' } export type ClientConfig = { __typename?: 'ClientConfig'; api: ApiConfig; authProviders: AuthProviders; billing: Billing; captcha: Captcha; chromeExtensionId?: Maybe; debugMode: Scalars['Boolean']; sentry: Sentry; signInPrefilled: Scalars['Boolean']; signUpDisabled: Scalars['Boolean']; support: Support; telemetry: Telemetry; }; export type CursorPaging = { /** Paginate after opaque cursor */ after?: InputMaybe; /** Paginate before opaque cursor */ before?: InputMaybe; /** Paginate first */ first?: InputMaybe; /** Paginate last */ last?: InputMaybe; }; export type DeleteOneObjectInput = { /** The id of the record to delete. */ id: Scalars['UUID']; }; /** Schema update on a table */ export enum DistantTableUpdate { ColumnsAdded = 'COLUMNS_ADDED', ColumnsDeleted = 'COLUMNS_DELETED', ColumnsTypeChanged = 'COLUMNS_TYPE_CHANGED', TableDeleted = 'TABLE_DELETED' } export type EmailPasswordResetLink = { __typename?: 'EmailPasswordResetLink'; /** Boolean that confirms query was dispatched */ success: Scalars['Boolean']; }; export type ExchangeAuthCode = { __typename?: 'ExchangeAuthCode'; accessToken: AuthToken; loginToken: AuthToken; refreshToken: AuthToken; }; export type FeatureFlag = { __typename?: 'FeatureFlag'; id: Scalars['UUID']; key: Scalars['String']; value: Scalars['Boolean']; workspaceId: Scalars['String']; }; export type FeatureFlagFilter = { and?: InputMaybe>; id?: InputMaybe; or?: InputMaybe>; }; export type FeatureFlagSort = { direction: SortDirection; field: FeatureFlagSortFields; nulls?: InputMaybe; }; export enum FeatureFlagSortFields { Id = 'id' } export type FieldConnection = { __typename?: 'FieldConnection'; /** Array of edges. */ edges: Array; /** Paging information */ pageInfo: PageInfo; }; /** Type of the field */ export enum FieldMetadataType { Address = 'ADDRESS', Boolean = 'BOOLEAN', Currency = 'CURRENCY', Date = 'DATE', DateTime = 'DATE_TIME', Email = 'EMAIL', FullName = 'FULL_NAME', Link = 'LINK', Links = 'LINKS', MultiSelect = 'MULTI_SELECT', Number = 'NUMBER', Numeric = 'NUMERIC', Phone = 'PHONE', Position = 'POSITION', Rating = 'RATING', RawJson = 'RAW_JSON', Relation = 'RELATION', Select = 'SELECT', Text = 'TEXT', Uuid = 'UUID' } export enum FileFolder { Attachment = 'Attachment', PersonPicture = 'PersonPicture', ProfilePicture = 'ProfilePicture', ServerlessFunction = 'ServerlessFunction', WorkspaceLogo = 'WorkspaceLogo' } export type FullName = { __typename?: 'FullName'; firstName: Scalars['String']; lastName: Scalars['String']; }; export type InvalidatePassword = { __typename?: 'InvalidatePassword'; /** Boolean that confirms query was dispatched */ success: Scalars['Boolean']; }; export type LinkMetadata = { __typename?: 'LinkMetadata'; label: Scalars['String']; url: Scalars['String']; }; export type LinksMetadata = { __typename?: 'LinksMetadata'; primaryLinkLabel: Scalars['String']; primaryLinkUrl: Scalars['String']; secondaryLinks?: Maybe>; }; export type LoginToken = { __typename?: 'LoginToken'; loginToken: AuthToken; }; /** Visibility of the message channel */ export enum MessageChannelVisibility { Metadata = 'METADATA', ShareEverything = 'SHARE_EVERYTHING', Subject = 'SUBJECT' } export type Mutation = { __typename?: 'Mutation'; activateWorkspace: Workspace; addUserToWorkspace: User; authorizeApp: AuthorizeApp; challenge: LoginToken; checkoutSession: SessionEntity; createOneAppToken: AppToken; createOneObject: Object; deleteCurrentWorkspace: Workspace; deleteOneObject: Object; deleteUser: User; disablePostgresProxy: PostgresCredentials; emailPasswordResetLink: EmailPasswordResetLink; enablePostgresProxy: PostgresCredentials; exchangeAuthorizationCode: ExchangeAuthCode; generateApiKeyToken: ApiKeyToken; generateJWT: AuthTokens; generateTransientToken: TransientToken; impersonate: Verify; renewToken: AuthTokens; sendInviteLink: SendInviteLink; signUp: LoginToken; skipSyncEmailOnboardingStep: OnboardingStepSuccess; track: Analytics; updateBillingSubscription: UpdateBillingEntity; updateOneObject: Object; updatePasswordViaResetToken: InvalidatePassword; updateWorkspace: Workspace; uploadFile: Scalars['String']; uploadImage: Scalars['String']; uploadProfilePicture: Scalars['String']; uploadWorkspaceLogo: Scalars['String']; verify: Verify; }; export type MutationActivateWorkspaceArgs = { data: ActivateWorkspaceInput; }; export type MutationAddUserToWorkspaceArgs = { inviteHash: Scalars['String']; }; export type MutationAuthorizeAppArgs = { clientId: Scalars['String']; codeChallenge?: InputMaybe; redirectUrl: Scalars['String']; }; export type MutationChallengeArgs = { captchaToken?: InputMaybe; email: Scalars['String']; password: Scalars['String']; }; export type MutationCheckoutSessionArgs = { recurringInterval: SubscriptionInterval; successUrlPath?: InputMaybe; }; export type MutationDeleteOneObjectArgs = { input: DeleteOneObjectInput; }; export type MutationEmailPasswordResetLinkArgs = { email: Scalars['String']; }; export type MutationExchangeAuthorizationCodeArgs = { authorizationCode: Scalars['String']; clientSecret?: InputMaybe; codeVerifier?: InputMaybe; }; export type MutationGenerateApiKeyTokenArgs = { apiKeyId: Scalars['String']; expiresAt: Scalars['String']; }; export type MutationGenerateJwtArgs = { workspaceId: Scalars['String']; }; export type MutationImpersonateArgs = { userId: Scalars['String']; }; export type MutationRenewTokenArgs = { appToken: Scalars['String']; }; export type MutationSendInviteLinkArgs = { emails: Array; }; export type MutationSignUpArgs = { captchaToken?: InputMaybe; email: Scalars['String']; password: Scalars['String']; workspaceInviteHash?: InputMaybe; }; export type MutationTrackArgs = { data: Scalars['JSON']; type: Scalars['String']; }; export type MutationUpdateOneObjectArgs = { input: UpdateOneObjectInput; }; export type MutationUpdatePasswordViaResetTokenArgs = { newPassword: Scalars['String']; passwordResetToken: Scalars['String']; }; export type MutationUpdateWorkspaceArgs = { data: UpdateWorkspaceInput; }; export type MutationUploadFileArgs = { file: Scalars['Upload']; fileFolder?: InputMaybe; }; export type MutationUploadImageArgs = { file: Scalars['Upload']; fileFolder?: InputMaybe; }; export type MutationUploadProfilePictureArgs = { file: Scalars['Upload']; }; export type MutationUploadWorkspaceLogoArgs = { file: Scalars['Upload']; }; export type MutationVerifyArgs = { loginToken: Scalars['String']; }; export type ObjectConnection = { __typename?: 'ObjectConnection'; /** Array of edges. */ edges: Array; /** Paging information */ pageInfo: PageInfo; }; export type ObjectFieldsConnection = { __typename?: 'ObjectFieldsConnection'; /** Array of edges. */ edges: Array; /** Paging information */ pageInfo: PageInfo; }; /** Onboarding status */ export enum OnboardingStatus { Completed = 'COMPLETED', InviteTeam = 'INVITE_TEAM', PlanRequired = 'PLAN_REQUIRED', ProfileCreation = 'PROFILE_CREATION', SyncEmail = 'SYNC_EMAIL', WorkspaceActivation = 'WORKSPACE_ACTIVATION' } export type OnboardingStepSuccess = { __typename?: 'OnboardingStepSuccess'; /** Boolean that confirms query was dispatched */ success: Scalars['Boolean']; }; export type PageInfo = { __typename?: 'PageInfo'; /** The cursor of the last returned record. */ endCursor?: Maybe; /** true if paging forward and there are more records. */ hasNextPage?: Maybe; /** true if paging backwards and there are more records. */ hasPreviousPage?: Maybe; /** The cursor of the first returned record. */ startCursor?: Maybe; }; export type PostgresCredentials = { __typename?: 'PostgresCredentials'; id: Scalars['UUID']; password: Scalars['String']; user: Scalars['String']; workspaceId: Scalars['String']; }; export type ProductPriceEntity = { __typename?: 'ProductPriceEntity'; created: Scalars['Float']; recurringInterval: SubscriptionInterval; stripePriceId: Scalars['String']; unitAmount: Scalars['Float']; }; export type ProductPricesEntity = { __typename?: 'ProductPricesEntity'; productPrices: Array; totalNumberOfPrices: Scalars['Int']; }; export type Query = { __typename?: 'Query'; billingPortalSession: SessionEntity; checkUserExists: UserExists; checkWorkspaceInviteHashIsValid: WorkspaceInviteHashValid; clientConfig: ClientConfig; currentUser: User; currentWorkspace: Workspace; findWorkspaceFromInviteHash: Workspace; getAISQLQuery: AisqlQueryResult; getPostgresCredentials?: Maybe; getProductPrices: ProductPricesEntity; getTimelineCalendarEventsFromCompanyId: TimelineCalendarEventsWithTotal; getTimelineCalendarEventsFromPersonId: TimelineCalendarEventsWithTotal; getTimelineThreadsFromCompanyId: TimelineThreadsWithTotal; getTimelineThreadsFromPersonId: TimelineThreadsWithTotal; object: Object; objects: ObjectConnection; validatePasswordResetToken: ValidatePasswordResetToken; }; export type QueryBillingPortalSessionArgs = { returnUrlPath?: InputMaybe; }; export type QueryCheckUserExistsArgs = { captchaToken?: InputMaybe; email: Scalars['String']; }; export type QueryCheckWorkspaceInviteHashIsValidArgs = { inviteHash: Scalars['String']; }; export type QueryFindWorkspaceFromInviteHashArgs = { inviteHash: Scalars['String']; }; export type QueryGetAisqlQueryArgs = { text: Scalars['String']; }; export type QueryGetProductPricesArgs = { product: Scalars['String']; }; export type QueryGetTimelineCalendarEventsFromCompanyIdArgs = { companyId: Scalars['UUID']; page: Scalars['Int']; pageSize: Scalars['Int']; }; export type QueryGetTimelineCalendarEventsFromPersonIdArgs = { page: Scalars['Int']; pageSize: Scalars['Int']; personId: Scalars['UUID']; }; export type QueryGetTimelineThreadsFromCompanyIdArgs = { companyId: Scalars['UUID']; page: Scalars['Int']; pageSize: Scalars['Int']; }; export type QueryGetTimelineThreadsFromPersonIdArgs = { page: Scalars['Int']; pageSize: Scalars['Int']; personId: Scalars['UUID']; }; export type QueryValidatePasswordResetTokenArgs = { passwordResetToken: Scalars['String']; }; export type RelationConnection = { __typename?: 'RelationConnection'; /** Array of edges. */ edges: Array; /** Paging information */ pageInfo: PageInfo; }; export type RelationDefinition = { __typename?: 'RelationDefinition'; direction: RelationDefinitionType; relationId: Scalars['UUID']; sourceFieldMetadata: Field; sourceObjectMetadata: Object; targetFieldMetadata: Field; targetObjectMetadata: Object; }; /** Relation definition type */ export enum RelationDefinitionType { ManyToMany = 'MANY_TO_MANY', ManyToOne = 'MANY_TO_ONE', OneToMany = 'ONE_TO_MANY', OneToOne = 'ONE_TO_ONE' } /** Type of the relation */ export enum RelationMetadataType { ManyToMany = 'MANY_TO_MANY', ManyToOne = 'MANY_TO_ONE', OneToMany = 'ONE_TO_MANY', OneToOne = 'ONE_TO_ONE' } export type RemoteServer = { __typename?: 'RemoteServer'; createdAt: Scalars['DateTime']; foreignDataWrapperId: Scalars['ID']; foreignDataWrapperOptions?: Maybe; foreignDataWrapperType: Scalars['String']; id: Scalars['ID']; label: Scalars['String']; schema?: Maybe; updatedAt: Scalars['DateTime']; userMappingOptions?: Maybe; }; export type RemoteTable = { __typename?: 'RemoteTable'; id?: Maybe; name: Scalars['String']; schema?: Maybe; schemaPendingUpdates?: Maybe>; status: RemoteTableStatus; }; /** Status of the table */ export enum RemoteTableStatus { NotSynced = 'NOT_SYNCED', Synced = 'SYNCED' } export type SendInviteLink = { __typename?: 'SendInviteLink'; /** Boolean that confirms query was dispatched */ success: Scalars['Boolean']; }; export type Sentry = { __typename?: 'Sentry'; dsn?: Maybe; environment?: Maybe; release?: Maybe; }; export type ServerlessFunction = { __typename?: 'ServerlessFunction'; createdAt: Scalars['DateTime']; description: Scalars['String']; id: Scalars['UUID']; name: Scalars['String']; runtime: Scalars['String']; sourceCodeFullPath: Scalars['String']; sourceCodeHash: Scalars['String']; syncStatus: ServerlessFunctionSyncStatus; updatedAt: Scalars['DateTime']; }; export type ServerlessFunctionConnection = { __typename?: 'ServerlessFunctionConnection'; /** Array of edges. */ edges: Array; /** Paging information */ pageInfo: PageInfo; }; export type ServerlessFunctionEdge = { __typename?: 'ServerlessFunctionEdge'; /** Cursor for this node. */ cursor: Scalars['ConnectionCursor']; /** The node containing the ServerlessFunction */ node: ServerlessFunction; }; export type ServerlessFunctionExecutionResult = { __typename?: 'ServerlessFunctionExecutionResult'; /** Execution result in JSON format */ result: Scalars['JSON']; }; /** SyncStatus of the serverlessFunction */ export enum ServerlessFunctionSyncStatus { NotReady = 'NOT_READY', Ready = 'READY' } export type SessionEntity = { __typename?: 'SessionEntity'; url?: Maybe; }; /** Sort Directions */ export enum SortDirection { Asc = 'ASC', Desc = 'DESC' } /** Sort Nulls Options */ export enum SortNulls { NullsFirst = 'NULLS_FIRST', NullsLast = 'NULLS_LAST' } export enum SubscriptionInterval { Day = 'Day', Month = 'Month', Week = 'Week', Year = 'Year' } export enum SubscriptionStatus { Active = 'Active', Canceled = 'Canceled', Incomplete = 'Incomplete', IncompleteExpired = 'IncompleteExpired', PastDue = 'PastDue', Paused = 'Paused', Trialing = 'Trialing', Unpaid = 'Unpaid' } export type Support = { __typename?: 'Support'; supportDriver: Scalars['String']; supportFrontChatId?: Maybe; }; export type Telemetry = { __typename?: 'Telemetry'; enabled: Scalars['Boolean']; }; export type TimelineCalendarEvent = { __typename?: 'TimelineCalendarEvent'; conferenceLink: LinksMetadata; conferenceSolution: Scalars['String']; description: Scalars['String']; endsAt: Scalars['DateTime']; id: Scalars['UUID']; isCanceled: Scalars['Boolean']; isFullDay: Scalars['Boolean']; location: Scalars['String']; participants: Array; startsAt: Scalars['DateTime']; title: Scalars['String']; visibility: CalendarChannelVisibility; }; export type TimelineCalendarEventParticipant = { __typename?: 'TimelineCalendarEventParticipant'; avatarUrl: Scalars['String']; displayName: Scalars['String']; firstName: Scalars['String']; handle: Scalars['String']; lastName: Scalars['String']; personId?: Maybe; workspaceMemberId?: Maybe; }; export type TimelineCalendarEventsWithTotal = { __typename?: 'TimelineCalendarEventsWithTotal'; timelineCalendarEvents: Array; totalNumberOfCalendarEvents: Scalars['Int']; }; export type TimelineThread = { __typename?: 'TimelineThread'; firstParticipant: TimelineThreadParticipant; id: Scalars['UUID']; lastMessageBody: Scalars['String']; lastMessageReceivedAt: Scalars['DateTime']; lastTwoParticipants: Array; numberOfMessagesInThread: Scalars['Float']; participantCount: Scalars['Float']; read: Scalars['Boolean']; subject: Scalars['String']; visibility: MessageChannelVisibility; }; export type TimelineThreadParticipant = { __typename?: 'TimelineThreadParticipant'; avatarUrl: Scalars['String']; displayName: Scalars['String']; firstName: Scalars['String']; handle: Scalars['String']; lastName: Scalars['String']; personId?: Maybe; workspaceMemberId?: Maybe; }; export type TimelineThreadsWithTotal = { __typename?: 'TimelineThreadsWithTotal'; timelineThreads: Array; totalNumberOfThreads: Scalars['Int']; }; export type TransientToken = { __typename?: 'TransientToken'; transientToken: AuthToken; }; export type UuidFilterComparison = { eq?: InputMaybe; gt?: InputMaybe; gte?: InputMaybe; iLike?: InputMaybe; in?: InputMaybe>; is?: InputMaybe; isNot?: InputMaybe; like?: InputMaybe; lt?: InputMaybe; lte?: InputMaybe; neq?: InputMaybe; notILike?: InputMaybe; notIn?: InputMaybe>; notLike?: InputMaybe; }; export type UpdateBillingEntity = { __typename?: 'UpdateBillingEntity'; /** Boolean that confirms query was successful */ success: Scalars['Boolean']; }; export type UpdateObjectPayload = { description?: InputMaybe; icon?: InputMaybe; imageIdentifierFieldMetadataId?: InputMaybe; isActive?: InputMaybe; labelIdentifierFieldMetadataId?: InputMaybe; labelPlural?: InputMaybe; labelSingular?: InputMaybe; namePlural?: InputMaybe; nameSingular?: InputMaybe; }; export type UpdateOneObjectInput = { /** The id of the object to update */ id: Scalars['UUID']; update: UpdateObjectPayload; }; export type UpdateWorkspaceInput = { allowImpersonation?: InputMaybe; displayName?: InputMaybe; domainName?: InputMaybe; inviteHash?: InputMaybe; logo?: InputMaybe; }; export type User = { __typename?: 'User'; canImpersonate: Scalars['Boolean']; createdAt: Scalars['DateTime']; defaultAvatarUrl?: Maybe; defaultWorkspace: Workspace; defaultWorkspaceId: Scalars['String']; deletedAt?: Maybe; disabled?: Maybe; email: Scalars['String']; emailVerified: Scalars['Boolean']; firstName: Scalars['String']; id: Scalars['UUID']; lastName: Scalars['String']; onboardingStatus?: Maybe; passwordHash?: Maybe; supportUserHash?: Maybe; updatedAt: Scalars['DateTime']; userVars: Scalars['JSONObject']; workspaceMember?: Maybe; workspaces: Array; }; export type UserEdge = { __typename?: 'UserEdge'; /** Cursor for this node. */ cursor: Scalars['ConnectionCursor']; /** The node containing the User */ node: User; }; export type UserExists = { __typename?: 'UserExists'; exists: Scalars['Boolean']; }; export type UserMappingOptionsUser = { __typename?: 'UserMappingOptionsUser'; user?: Maybe; }; export type UserWorkspace = { __typename?: 'UserWorkspace'; createdAt: Scalars['DateTime']; deletedAt?: Maybe; id: Scalars['UUID']; updatedAt: Scalars['DateTime']; user: User; userId: Scalars['String']; workspace?: Maybe; workspaceId: Scalars['String']; }; export type ValidatePasswordResetToken = { __typename?: 'ValidatePasswordResetToken'; email: Scalars['String']; id: Scalars['String']; }; export type Verify = { __typename?: 'Verify'; tokens: AuthTokenPair; user: User; }; export type Workspace = { __typename?: 'Workspace'; activationStatus: Scalars['String']; allowImpersonation: Scalars['Boolean']; billingSubscriptions?: Maybe>; createdAt: Scalars['DateTime']; currentBillingSubscription?: Maybe; currentCacheVersion?: Maybe; deletedAt?: Maybe; displayName?: Maybe; domainName?: Maybe; featureFlags?: Maybe>; id: Scalars['UUID']; inviteHash?: Maybe; logo?: Maybe; updatedAt: Scalars['DateTime']; workspaceMembersCount?: Maybe; }; export type WorkspaceBillingSubscriptionsArgs = { filter?: BillingSubscriptionFilter; sorting?: Array; }; export type WorkspaceFeatureFlagsArgs = { filter?: FeatureFlagFilter; sorting?: Array; }; export type WorkspaceEdge = { __typename?: 'WorkspaceEdge'; /** Cursor for this node. */ cursor: Scalars['ConnectionCursor']; /** The node containing the Workspace */ node: Workspace; }; export type WorkspaceInviteHashValid = { __typename?: 'WorkspaceInviteHashValid'; isValid: Scalars['Boolean']; }; export type WorkspaceMember = { __typename?: 'WorkspaceMember'; avatarUrl?: Maybe; colorScheme: Scalars['String']; id: Scalars['UUID']; locale: Scalars['String']; name: FullName; }; export type Field = { __typename?: 'field'; createdAt: Scalars['DateTime']; defaultValue?: Maybe; description?: Maybe; fromRelationMetadata?: Maybe; icon?: Maybe; id: Scalars['UUID']; isActive?: Maybe; isCustom?: Maybe; isNullable?: Maybe; isSystem?: Maybe; label: Scalars['String']; name: Scalars['String']; options?: Maybe; relationDefinition?: Maybe; settings?: Maybe; toRelationMetadata?: Maybe; type: FieldMetadataType; updatedAt: Scalars['DateTime']; }; export type FieldEdge = { __typename?: 'fieldEdge'; /** Cursor for this node. */ cursor: Scalars['ConnectionCursor']; /** The node containing the field */ node: Field; }; export type FieldFilter = { and?: InputMaybe>; id?: InputMaybe; isActive?: InputMaybe; isCustom?: InputMaybe; isSystem?: InputMaybe; or?: InputMaybe>; }; export type Object = { __typename?: 'object'; createdAt: Scalars['DateTime']; dataSourceId: Scalars['String']; description?: Maybe; fields: ObjectFieldsConnection; icon?: Maybe; id: Scalars['UUID']; imageIdentifierFieldMetadataId?: Maybe; isActive: Scalars['Boolean']; isCustom: Scalars['Boolean']; isRemote: Scalars['Boolean']; isSystem: Scalars['Boolean']; labelIdentifierFieldMetadataId?: Maybe; labelPlural: Scalars['String']; labelSingular: Scalars['String']; namePlural: Scalars['String']; nameSingular: Scalars['String']; updatedAt: Scalars['DateTime']; }; export type ObjectFieldsArgs = { filter?: FieldFilter; paging?: CursorPaging; }; export type ObjectEdge = { __typename?: 'objectEdge'; /** Cursor for this node. */ cursor: Scalars['ConnectionCursor']; /** The node containing the object */ node: Object; }; export type Relation = { __typename?: 'relation'; createdAt: Scalars['DateTime']; fromFieldMetadataId: Scalars['String']; fromObjectMetadata: Object; fromObjectMetadataId: Scalars['String']; id: Scalars['UUID']; relationType: RelationMetadataType; toFieldMetadataId: Scalars['String']; toObjectMetadata: Object; toObjectMetadataId: Scalars['String']; updatedAt: Scalars['DateTime']; }; export type RelationEdge = { __typename?: 'relationEdge'; /** Cursor for this node. */ cursor: Scalars['ConnectionCursor']; /** The node containing the relation */ node: Relation; }; export type TimelineCalendarEventFragmentFragment = { __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }; export type TimelineCalendarEventParticipantFragmentFragment = { __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }; export type TimelineCalendarEventsWithTotalFragmentFragment = { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> }; export type GetTimelineCalendarEventsFromCompanyIdQueryVariables = Exact<{ companyId: Scalars['UUID']; page: Scalars['Int']; pageSize: Scalars['Int']; }>; export type GetTimelineCalendarEventsFromCompanyIdQuery = { __typename?: 'Query', getTimelineCalendarEventsFromCompanyId: { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } }; export type GetTimelineCalendarEventsFromPersonIdQueryVariables = Exact<{ personId: Scalars['UUID']; page: Scalars['Int']; pageSize: Scalars['Int']; }>; export type GetTimelineCalendarEventsFromPersonIdQuery = { __typename?: 'Query', getTimelineCalendarEventsFromPersonId: { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } }; export type ParticipantFragmentFragment = { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }; export type TimelineThreadFragmentFragment = { __typename?: 'TimelineThread', id: any, read: boolean, visibility: MessageChannelVisibility, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }; export type TimelineThreadsWithTotalFragmentFragment = { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: any, read: boolean, visibility: MessageChannelVisibility, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> }; export type GetTimelineThreadsFromCompanyIdQueryVariables = Exact<{ companyId: Scalars['UUID']; page: Scalars['Int']; pageSize: Scalars['Int']; }>; export type GetTimelineThreadsFromCompanyIdQuery = { __typename?: 'Query', getTimelineThreadsFromCompanyId: { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: any, read: boolean, visibility: MessageChannelVisibility, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } }; export type GetTimelineThreadsFromPersonIdQueryVariables = Exact<{ personId: Scalars['UUID']; page: Scalars['Int']; pageSize: Scalars['Int']; }>; export type GetTimelineThreadsFromPersonIdQuery = { __typename?: 'Query', getTimelineThreadsFromPersonId: { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: any, read: boolean, visibility: MessageChannelVisibility, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } }; export type TrackMutationVariables = Exact<{ type: Scalars['String']; data: Scalars['JSON']; }>; export type TrackMutation = { __typename?: 'Mutation', track: { __typename?: 'Analytics', success: boolean } }; export type UploadFileMutationVariables = Exact<{ file: Scalars['Upload']; fileFolder?: InputMaybe; }>; export type UploadFileMutation = { __typename?: 'Mutation', uploadFile: string }; export type UploadImageMutationVariables = Exact<{ file: Scalars['Upload']; fileFolder?: InputMaybe; }>; export type UploadImageMutation = { __typename?: 'Mutation', uploadImage: string }; export type AuthTokenFragmentFragment = { __typename?: 'AuthToken', token: string, expiresAt: string }; export type AuthTokensFragmentFragment = { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } }; export type AuthorizeAppMutationVariables = Exact<{ clientId: Scalars['String']; codeChallenge: Scalars['String']; redirectUrl: Scalars['String']; }>; export type AuthorizeAppMutation = { __typename?: 'Mutation', authorizeApp: { __typename?: 'AuthorizeApp', redirectUrl: string } }; export type ChallengeMutationVariables = Exact<{ email: Scalars['String']; password: Scalars['String']; captchaToken?: InputMaybe; }>; export type ChallengeMutation = { __typename?: 'Mutation', challenge: { __typename?: 'LoginToken', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } }; export type EmailPasswordResetLinkMutationVariables = Exact<{ email: Scalars['String']; }>; export type EmailPasswordResetLinkMutation = { __typename?: 'Mutation', emailPasswordResetLink: { __typename?: 'EmailPasswordResetLink', success: boolean } }; export type GenerateApiKeyTokenMutationVariables = Exact<{ apiKeyId: Scalars['String']; expiresAt: Scalars['String']; }>; export type GenerateApiKeyTokenMutation = { __typename?: 'Mutation', generateApiKeyToken: { __typename?: 'ApiKeyToken', token: string } }; export type GenerateJwtMutationVariables = Exact<{ workspaceId: Scalars['String']; }>; export type GenerateJwtMutation = { __typename?: 'Mutation', generateJWT: { __typename?: 'AuthTokens', tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; export type GenerateTransientTokenMutationVariables = Exact<{ [key: string]: never; }>; export type GenerateTransientTokenMutation = { __typename?: 'Mutation', generateTransientToken: { __typename?: 'TransientToken', transientToken: { __typename?: 'AuthToken', token: string } } }; export type ImpersonateMutationVariables = Exact<{ userId: Scalars['String']; }>; export type ImpersonateMutation = { __typename?: 'Mutation', impersonate: { __typename?: 'Verify', user: { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars: any, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: string, currentCacheVersion?: string | null, workspaceMembersCount?: number | null, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: any, key: string, value: boolean, workspaceId: string }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, interval?: SubscriptionInterval | null } | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: any, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; export type RenewTokenMutationVariables = Exact<{ appToken: Scalars['String']; }>; export type RenewTokenMutation = { __typename?: 'Mutation', renewToken: { __typename?: 'AuthTokens', tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; export type SignUpMutationVariables = Exact<{ email: Scalars['String']; password: Scalars['String']; workspaceInviteHash?: InputMaybe; captchaToken?: InputMaybe; }>; export type SignUpMutation = { __typename?: 'Mutation', signUp: { __typename?: 'LoginToken', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } }; export type UpdatePasswordViaResetTokenMutationVariables = Exact<{ token: Scalars['String']; newPassword: Scalars['String']; }>; export type UpdatePasswordViaResetTokenMutation = { __typename?: 'Mutation', updatePasswordViaResetToken: { __typename?: 'InvalidatePassword', success: boolean } }; export type VerifyMutationVariables = Exact<{ loginToken: Scalars['String']; }>; export type VerifyMutation = { __typename?: 'Mutation', verify: { __typename?: 'Verify', user: { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars: any, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: string, currentCacheVersion?: string | null, workspaceMembersCount?: number | null, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: any, key: string, value: boolean, workspaceId: string }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, interval?: SubscriptionInterval | null } | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: any, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; export type CheckUserExistsQueryVariables = Exact<{ email: Scalars['String']; captchaToken?: InputMaybe; }>; export type CheckUserExistsQuery = { __typename?: 'Query', checkUserExists: { __typename?: 'UserExists', exists: boolean } }; export type ValidatePasswordResetTokenQueryVariables = Exact<{ token: Scalars['String']; }>; export type ValidatePasswordResetTokenQuery = { __typename?: 'Query', validatePasswordResetToken: { __typename?: 'ValidatePasswordResetToken', id: string, email: string } }; export type BillingPortalSessionQueryVariables = Exact<{ returnUrlPath?: InputMaybe; }>; export type BillingPortalSessionQuery = { __typename?: 'Query', billingPortalSession: { __typename?: 'SessionEntity', url?: string | null } }; export type CheckoutSessionMutationVariables = Exact<{ recurringInterval: SubscriptionInterval; successUrlPath?: InputMaybe; }>; export type CheckoutSessionMutation = { __typename?: 'Mutation', checkoutSession: { __typename?: 'SessionEntity', url?: string | null } }; export type GetProductPricesQueryVariables = Exact<{ product: Scalars['String']; }>; export type GetProductPricesQuery = { __typename?: 'Query', getProductPrices: { __typename?: 'ProductPricesEntity', productPrices: Array<{ __typename?: 'ProductPriceEntity', created: number, recurringInterval: SubscriptionInterval, stripePriceId: string, unitAmount: number }> } }; export type UpdateBillingSubscriptionMutationVariables = Exact<{ [key: string]: never; }>; export type UpdateBillingSubscriptionMutation = { __typename?: 'Mutation', updateBillingSubscription: { __typename?: 'UpdateBillingEntity', success: boolean } }; export type GetClientConfigQueryVariables = Exact<{ [key: string]: never; }>; export type GetClientConfigQuery = { __typename?: 'Query', clientConfig: { __typename?: 'ClientConfig', signInPrefilled: boolean, signUpDisabled: boolean, debugMode: boolean, chromeExtensionId?: string | null, authProviders: { __typename?: 'AuthProviders', google: boolean, password: boolean, microsoft: boolean }, billing: { __typename?: 'Billing', isBillingEnabled: boolean, billingUrl?: string | null, billingFreeTrialDurationInDays?: number | null }, telemetry: { __typename?: 'Telemetry', enabled: boolean }, support: { __typename?: 'Support', supportDriver: string, supportFrontChatId?: string | null }, sentry: { __typename?: 'Sentry', dsn?: string | null, environment?: string | null, release?: string | null }, captcha: { __typename?: 'Captcha', provider?: CaptchaDriverType | null, siteKey?: string | null }, api: { __typename?: 'ApiConfig', mutationMaximumAffectedRecords: number } } }; export type SkipSyncEmailOnboardingStepMutationVariables = Exact<{ [key: string]: never; }>; export type SkipSyncEmailOnboardingStepMutation = { __typename?: 'Mutation', skipSyncEmailOnboardingStep: { __typename?: 'OnboardingStepSuccess', success: boolean } }; export type GetAisqlQueryQueryVariables = Exact<{ text: Scalars['String']; }>; export type GetAisqlQueryQuery = { __typename?: 'Query', getAISQLQuery: { __typename?: 'AISQLQueryResult', sqlQuery: string, sqlQueryResult?: string | null, queryFailedErrorMessage?: string | null } }; export type UserQueryFragmentFragment = { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars: any, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: string, currentCacheVersion?: string | null, workspaceMembersCount?: number | null, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: any, key: string, value: boolean, workspaceId: string }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, interval?: SubscriptionInterval | null } | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: any, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> }; export type DeleteUserAccountMutationVariables = Exact<{ [key: string]: never; }>; export type DeleteUserAccountMutation = { __typename?: 'Mutation', deleteUser: { __typename?: 'User', id: any } }; export type UploadProfilePictureMutationVariables = Exact<{ file: Scalars['Upload']; }>; export type UploadProfilePictureMutation = { __typename?: 'Mutation', uploadProfilePicture: string }; export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>; export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars: any, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale: string, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, defaultWorkspace: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, domainName?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: string, currentCacheVersion?: string | null, workspaceMembersCount?: number | null, featureFlags?: Array<{ __typename?: 'FeatureFlag', id: any, key: string, value: boolean, workspaceId: string }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, interval?: SubscriptionInterval | null } | null }, workspaces: Array<{ __typename?: 'UserWorkspace', workspace?: { __typename?: 'Workspace', id: any, logo?: string | null, displayName?: string | null, domainName?: string | null } | null }> } }; export type AddUserToWorkspaceMutationVariables = Exact<{ inviteHash: Scalars['String']; }>; export type AddUserToWorkspaceMutation = { __typename?: 'Mutation', addUserToWorkspace: { __typename?: 'User', id: any } }; export type ActivateWorkspaceMutationVariables = Exact<{ input: ActivateWorkspaceInput; }>; export type ActivateWorkspaceMutation = { __typename?: 'Mutation', activateWorkspace: { __typename?: 'Workspace', id: any } }; export type DeleteCurrentWorkspaceMutationVariables = Exact<{ [key: string]: never; }>; export type DeleteCurrentWorkspaceMutation = { __typename?: 'Mutation', deleteCurrentWorkspace: { __typename?: 'Workspace', id: any } }; export type SendInviteLinkMutationVariables = Exact<{ emails: Array | Scalars['String']; }>; export type SendInviteLinkMutation = { __typename?: 'Mutation', sendInviteLink: { __typename?: 'SendInviteLink', success: boolean } }; export type UpdateWorkspaceMutationVariables = Exact<{ input: UpdateWorkspaceInput; }>; export type UpdateWorkspaceMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: any, domainName?: string | null, displayName?: string | null, logo?: string | null, allowImpersonation: boolean } }; export type UploadWorkspaceLogoMutationVariables = Exact<{ file: Scalars['Upload']; }>; export type UploadWorkspaceLogoMutation = { __typename?: 'Mutation', uploadWorkspaceLogo: string }; export type GetWorkspaceFromInviteHashQueryVariables = Exact<{ inviteHash: Scalars['String']; }>; export type GetWorkspaceFromInviteHashQuery = { __typename?: 'Query', findWorkspaceFromInviteHash: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, allowImpersonation: boolean } }; export const TimelineCalendarEventParticipantFragmentFragmentDoc = gql` fragment TimelineCalendarEventParticipantFragment on TimelineCalendarEventParticipant { personId workspaceMemberId firstName lastName displayName avatarUrl handle } `; export const TimelineCalendarEventFragmentFragmentDoc = gql` fragment TimelineCalendarEventFragment on TimelineCalendarEvent { id title description location startsAt endsAt isFullDay visibility participants { ...TimelineCalendarEventParticipantFragment } } ${TimelineCalendarEventParticipantFragmentFragmentDoc}`; export const TimelineCalendarEventsWithTotalFragmentFragmentDoc = gql` fragment TimelineCalendarEventsWithTotalFragment on TimelineCalendarEventsWithTotal { totalNumberOfCalendarEvents timelineCalendarEvents { ...TimelineCalendarEventFragment } } ${TimelineCalendarEventFragmentFragmentDoc}`; export const ParticipantFragmentFragmentDoc = gql` fragment ParticipantFragment on TimelineThreadParticipant { personId workspaceMemberId firstName lastName displayName avatarUrl handle } `; export const TimelineThreadFragmentFragmentDoc = gql` fragment TimelineThreadFragment on TimelineThread { id read visibility firstParticipant { ...ParticipantFragment } lastTwoParticipants { ...ParticipantFragment } lastMessageReceivedAt lastMessageBody subject numberOfMessagesInThread participantCount } ${ParticipantFragmentFragmentDoc}`; export const TimelineThreadsWithTotalFragmentFragmentDoc = gql` fragment TimelineThreadsWithTotalFragment on TimelineThreadsWithTotal { totalNumberOfThreads timelineThreads { ...TimelineThreadFragment } } ${TimelineThreadFragmentFragmentDoc}`; export const AuthTokenFragmentFragmentDoc = gql` fragment AuthTokenFragment on AuthToken { token expiresAt } `; export const AuthTokensFragmentFragmentDoc = gql` fragment AuthTokensFragment on AuthTokenPair { accessToken { ...AuthTokenFragment } refreshToken { ...AuthTokenFragment } } ${AuthTokenFragmentFragmentDoc}`; export const UserQueryFragmentFragmentDoc = gql` fragment UserQueryFragment on User { id firstName lastName email canImpersonate supportUserHash onboardingStatus workspaceMember { id name { firstName lastName } colorScheme avatarUrl locale } defaultWorkspace { id displayName logo domainName inviteHash allowImpersonation activationStatus featureFlags { id key value workspaceId } currentCacheVersion currentBillingSubscription { id status interval } workspaceMembersCount } workspaces { workspace { id logo displayName domainName } } userVars } `; export const GetTimelineCalendarEventsFromCompanyIdDocument = gql` query GetTimelineCalendarEventsFromCompanyId($companyId: UUID!, $page: Int!, $pageSize: Int!) { getTimelineCalendarEventsFromCompanyId( companyId: $companyId page: $page pageSize: $pageSize ) { ...TimelineCalendarEventsWithTotalFragment } } ${TimelineCalendarEventsWithTotalFragmentFragmentDoc}`; /** * __useGetTimelineCalendarEventsFromCompanyIdQuery__ * * To run a query within a React component, call `useGetTimelineCalendarEventsFromCompanyIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetTimelineCalendarEventsFromCompanyIdQuery` 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 } = useGetTimelineCalendarEventsFromCompanyIdQuery({ * variables: { * companyId: // value for 'companyId' * page: // value for 'page' * pageSize: // value for 'pageSize' * }, * }); */ export function useGetTimelineCalendarEventsFromCompanyIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetTimelineCalendarEventsFromCompanyIdDocument, options); } export function useGetTimelineCalendarEventsFromCompanyIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetTimelineCalendarEventsFromCompanyIdDocument, options); } export type GetTimelineCalendarEventsFromCompanyIdQueryHookResult = ReturnType; export type GetTimelineCalendarEventsFromCompanyIdLazyQueryHookResult = ReturnType; export type GetTimelineCalendarEventsFromCompanyIdQueryResult = Apollo.QueryResult; export const GetTimelineCalendarEventsFromPersonIdDocument = gql` query GetTimelineCalendarEventsFromPersonId($personId: UUID!, $page: Int!, $pageSize: Int!) { getTimelineCalendarEventsFromPersonId( personId: $personId page: $page pageSize: $pageSize ) { ...TimelineCalendarEventsWithTotalFragment } } ${TimelineCalendarEventsWithTotalFragmentFragmentDoc}`; /** * __useGetTimelineCalendarEventsFromPersonIdQuery__ * * To run a query within a React component, call `useGetTimelineCalendarEventsFromPersonIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetTimelineCalendarEventsFromPersonIdQuery` 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 } = useGetTimelineCalendarEventsFromPersonIdQuery({ * variables: { * personId: // value for 'personId' * page: // value for 'page' * pageSize: // value for 'pageSize' * }, * }); */ export function useGetTimelineCalendarEventsFromPersonIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetTimelineCalendarEventsFromPersonIdDocument, options); } export function useGetTimelineCalendarEventsFromPersonIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetTimelineCalendarEventsFromPersonIdDocument, options); } export type GetTimelineCalendarEventsFromPersonIdQueryHookResult = ReturnType; export type GetTimelineCalendarEventsFromPersonIdLazyQueryHookResult = ReturnType; export type GetTimelineCalendarEventsFromPersonIdQueryResult = Apollo.QueryResult; export const GetTimelineThreadsFromCompanyIdDocument = gql` query GetTimelineThreadsFromCompanyId($companyId: UUID!, $page: Int!, $pageSize: Int!) { getTimelineThreadsFromCompanyId( companyId: $companyId page: $page pageSize: $pageSize ) { ...TimelineThreadsWithTotalFragment } } ${TimelineThreadsWithTotalFragmentFragmentDoc}`; /** * __useGetTimelineThreadsFromCompanyIdQuery__ * * To run a query within a React component, call `useGetTimelineThreadsFromCompanyIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetTimelineThreadsFromCompanyIdQuery` 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 } = useGetTimelineThreadsFromCompanyIdQuery({ * variables: { * companyId: // value for 'companyId' * page: // value for 'page' * pageSize: // value for 'pageSize' * }, * }); */ export function useGetTimelineThreadsFromCompanyIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetTimelineThreadsFromCompanyIdDocument, options); } export function useGetTimelineThreadsFromCompanyIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetTimelineThreadsFromCompanyIdDocument, options); } export type GetTimelineThreadsFromCompanyIdQueryHookResult = ReturnType; export type GetTimelineThreadsFromCompanyIdLazyQueryHookResult = ReturnType; export type GetTimelineThreadsFromCompanyIdQueryResult = Apollo.QueryResult; export const GetTimelineThreadsFromPersonIdDocument = gql` query GetTimelineThreadsFromPersonId($personId: UUID!, $page: Int!, $pageSize: Int!) { getTimelineThreadsFromPersonId( personId: $personId page: $page pageSize: $pageSize ) { ...TimelineThreadsWithTotalFragment } } ${TimelineThreadsWithTotalFragmentFragmentDoc}`; /** * __useGetTimelineThreadsFromPersonIdQuery__ * * To run a query within a React component, call `useGetTimelineThreadsFromPersonIdQuery` and pass it any options that fit your needs. * When your component renders, `useGetTimelineThreadsFromPersonIdQuery` 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 } = useGetTimelineThreadsFromPersonIdQuery({ * variables: { * personId: // value for 'personId' * page: // value for 'page' * pageSize: // value for 'pageSize' * }, * }); */ export function useGetTimelineThreadsFromPersonIdQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetTimelineThreadsFromPersonIdDocument, options); } export function useGetTimelineThreadsFromPersonIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetTimelineThreadsFromPersonIdDocument, options); } export type GetTimelineThreadsFromPersonIdQueryHookResult = ReturnType; export type GetTimelineThreadsFromPersonIdLazyQueryHookResult = ReturnType; export type GetTimelineThreadsFromPersonIdQueryResult = Apollo.QueryResult; export const TrackDocument = gql` mutation Track($type: String!, $data: JSON!) { track(type: $type, data: $data) { success } } `; export type TrackMutationFn = Apollo.MutationFunction; /** * __useTrackMutation__ * * To run a mutation, you first call `useTrackMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useTrackMutation` 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 [trackMutation, { data, loading, error }] = useTrackMutation({ * variables: { * type: // value for 'type' * data: // value for 'data' * }, * }); */ export function useTrackMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(TrackDocument, options); } export type TrackMutationHookResult = ReturnType; export type TrackMutationResult = Apollo.MutationResult; export type TrackMutationOptions = Apollo.BaseMutationOptions; export const UploadFileDocument = gql` mutation uploadFile($file: Upload!, $fileFolder: FileFolder) { uploadFile(file: $file, fileFolder: $fileFolder) } `; export type UploadFileMutationFn = Apollo.MutationFunction; /** * __useUploadFileMutation__ * * To run a mutation, you first call `useUploadFileMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUploadFileMutation` 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 [uploadFileMutation, { data, loading, error }] = useUploadFileMutation({ * variables: { * file: // value for 'file' * fileFolder: // value for 'fileFolder' * }, * }); */ export function useUploadFileMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UploadFileDocument, options); } export type UploadFileMutationHookResult = ReturnType; export type UploadFileMutationResult = Apollo.MutationResult; export type UploadFileMutationOptions = Apollo.BaseMutationOptions; export const UploadImageDocument = gql` mutation uploadImage($file: Upload!, $fileFolder: FileFolder) { uploadImage(file: $file, fileFolder: $fileFolder) } `; export type UploadImageMutationFn = Apollo.MutationFunction; /** * __useUploadImageMutation__ * * To run a mutation, you first call `useUploadImageMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUploadImageMutation` 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 [uploadImageMutation, { data, loading, error }] = useUploadImageMutation({ * variables: { * file: // value for 'file' * fileFolder: // value for 'fileFolder' * }, * }); */ export function useUploadImageMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UploadImageDocument, options); } export type UploadImageMutationHookResult = ReturnType; export type UploadImageMutationResult = Apollo.MutationResult; export type UploadImageMutationOptions = Apollo.BaseMutationOptions; export const AuthorizeAppDocument = gql` mutation authorizeApp($clientId: String!, $codeChallenge: String!, $redirectUrl: String!) { authorizeApp( clientId: $clientId codeChallenge: $codeChallenge redirectUrl: $redirectUrl ) { redirectUrl } } `; export type AuthorizeAppMutationFn = Apollo.MutationFunction; /** * __useAuthorizeAppMutation__ * * To run a mutation, you first call `useAuthorizeAppMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAuthorizeAppMutation` 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 [authorizeAppMutation, { data, loading, error }] = useAuthorizeAppMutation({ * variables: { * clientId: // value for 'clientId' * codeChallenge: // value for 'codeChallenge' * redirectUrl: // value for 'redirectUrl' * }, * }); */ export function useAuthorizeAppMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(AuthorizeAppDocument, options); } export type AuthorizeAppMutationHookResult = ReturnType; export type AuthorizeAppMutationResult = Apollo.MutationResult; export type AuthorizeAppMutationOptions = Apollo.BaseMutationOptions; export const ChallengeDocument = gql` mutation Challenge($email: String!, $password: String!, $captchaToken: String) { challenge(email: $email, password: $password, captchaToken: $captchaToken) { loginToken { ...AuthTokenFragment } } } ${AuthTokenFragmentFragmentDoc}`; export type ChallengeMutationFn = Apollo.MutationFunction; /** * __useChallengeMutation__ * * To run a mutation, you first call `useChallengeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useChallengeMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [challengeMutation, { data, loading, error }] = useChallengeMutation({ * variables: { * email: // value for 'email' * password: // value for 'password' * captchaToken: // value for 'captchaToken' * }, * }); */ export function useChallengeMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ChallengeDocument, options); } export type ChallengeMutationHookResult = ReturnType; export type ChallengeMutationResult = Apollo.MutationResult; export type ChallengeMutationOptions = Apollo.BaseMutationOptions; export const EmailPasswordResetLinkDocument = gql` mutation EmailPasswordResetLink($email: String!) { emailPasswordResetLink(email: $email) { success } } `; export type EmailPasswordResetLinkMutationFn = Apollo.MutationFunction; /** * __useEmailPasswordResetLinkMutation__ * * To run a mutation, you first call `useEmailPasswordResetLinkMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useEmailPasswordResetLinkMutation` 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 [emailPasswordResetLinkMutation, { data, loading, error }] = useEmailPasswordResetLinkMutation({ * variables: { * email: // value for 'email' * }, * }); */ export function useEmailPasswordResetLinkMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(EmailPasswordResetLinkDocument, options); } export type EmailPasswordResetLinkMutationHookResult = ReturnType; export type EmailPasswordResetLinkMutationResult = Apollo.MutationResult; export type EmailPasswordResetLinkMutationOptions = Apollo.BaseMutationOptions; export const GenerateApiKeyTokenDocument = gql` mutation GenerateApiKeyToken($apiKeyId: String!, $expiresAt: String!) { generateApiKeyToken(apiKeyId: $apiKeyId, expiresAt: $expiresAt) { token } } `; export type GenerateApiKeyTokenMutationFn = Apollo.MutationFunction; /** * __useGenerateApiKeyTokenMutation__ * * To run a mutation, you first call `useGenerateApiKeyTokenMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGenerateApiKeyTokenMutation` 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 [generateApiKeyTokenMutation, { data, loading, error }] = useGenerateApiKeyTokenMutation({ * variables: { * apiKeyId: // value for 'apiKeyId' * expiresAt: // value for 'expiresAt' * }, * }); */ export function useGenerateApiKeyTokenMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(GenerateApiKeyTokenDocument, options); } export type GenerateApiKeyTokenMutationHookResult = ReturnType; export type GenerateApiKeyTokenMutationResult = Apollo.MutationResult; export type GenerateApiKeyTokenMutationOptions = Apollo.BaseMutationOptions; export const GenerateJwtDocument = gql` mutation GenerateJWT($workspaceId: String!) { generateJWT(workspaceId: $workspaceId) { tokens { ...AuthTokensFragment } } } ${AuthTokensFragmentFragmentDoc}`; export type GenerateJwtMutationFn = Apollo.MutationFunction; /** * __useGenerateJwtMutation__ * * To run a mutation, you first call `useGenerateJwtMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGenerateJwtMutation` 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 [generateJwtMutation, { data, loading, error }] = useGenerateJwtMutation({ * variables: { * workspaceId: // value for 'workspaceId' * }, * }); */ export function useGenerateJwtMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(GenerateJwtDocument, options); } export type GenerateJwtMutationHookResult = ReturnType; export type GenerateJwtMutationResult = Apollo.MutationResult; export type GenerateJwtMutationOptions = Apollo.BaseMutationOptions; export const GenerateTransientTokenDocument = gql` mutation generateTransientToken { generateTransientToken { transientToken { token } } } `; export type GenerateTransientTokenMutationFn = Apollo.MutationFunction; /** * __useGenerateTransientTokenMutation__ * * To run a mutation, you first call `useGenerateTransientTokenMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGenerateTransientTokenMutation` 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 [generateTransientTokenMutation, { data, loading, error }] = useGenerateTransientTokenMutation({ * variables: { * }, * }); */ export function useGenerateTransientTokenMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(GenerateTransientTokenDocument, options); } export type GenerateTransientTokenMutationHookResult = ReturnType; export type GenerateTransientTokenMutationResult = Apollo.MutationResult; export type GenerateTransientTokenMutationOptions = Apollo.BaseMutationOptions; export const ImpersonateDocument = gql` mutation Impersonate($userId: String!) { impersonate(userId: $userId) { user { ...UserQueryFragment } tokens { ...AuthTokensFragment } } } ${UserQueryFragmentFragmentDoc} ${AuthTokensFragmentFragmentDoc}`; export type ImpersonateMutationFn = Apollo.MutationFunction; /** * __useImpersonateMutation__ * * To run a mutation, you first call `useImpersonateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useImpersonateMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [impersonateMutation, { data, loading, error }] = useImpersonateMutation({ * variables: { * userId: // value for 'userId' * }, * }); */ export function useImpersonateMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ImpersonateDocument, options); } export type ImpersonateMutationHookResult = ReturnType; export type ImpersonateMutationResult = Apollo.MutationResult; export type ImpersonateMutationOptions = Apollo.BaseMutationOptions; export const RenewTokenDocument = gql` mutation RenewToken($appToken: String!) { renewToken(appToken: $appToken) { tokens { ...AuthTokensFragment } } } ${AuthTokensFragmentFragmentDoc}`; export type RenewTokenMutationFn = Apollo.MutationFunction; /** * __useRenewTokenMutation__ * * To run a mutation, you first call `useRenewTokenMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRenewTokenMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [renewTokenMutation, { data, loading, error }] = useRenewTokenMutation({ * variables: { * appToken: // value for 'appToken' * }, * }); */ export function useRenewTokenMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(RenewTokenDocument, options); } export type RenewTokenMutationHookResult = ReturnType; export type RenewTokenMutationResult = Apollo.MutationResult; export type RenewTokenMutationOptions = Apollo.BaseMutationOptions; export const SignUpDocument = gql` mutation SignUp($email: String!, $password: String!, $workspaceInviteHash: String, $captchaToken: String) { signUp( email: $email password: $password workspaceInviteHash: $workspaceInviteHash captchaToken: $captchaToken ) { loginToken { ...AuthTokenFragment } } } ${AuthTokenFragmentFragmentDoc}`; export type SignUpMutationFn = Apollo.MutationFunction; /** * __useSignUpMutation__ * * To run a mutation, you first call `useSignUpMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSignUpMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [signUpMutation, { data, loading, error }] = useSignUpMutation({ * variables: { * email: // value for 'email' * password: // value for 'password' * workspaceInviteHash: // value for 'workspaceInviteHash' * captchaToken: // value for 'captchaToken' * }, * }); */ export function useSignUpMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(SignUpDocument, options); } export type SignUpMutationHookResult = ReturnType; export type SignUpMutationResult = Apollo.MutationResult; export type SignUpMutationOptions = Apollo.BaseMutationOptions; export const UpdatePasswordViaResetTokenDocument = gql` mutation UpdatePasswordViaResetToken($token: String!, $newPassword: String!) { updatePasswordViaResetToken( passwordResetToken: $token newPassword: $newPassword ) { success } } `; export type UpdatePasswordViaResetTokenMutationFn = Apollo.MutationFunction; /** * __useUpdatePasswordViaResetTokenMutation__ * * To run a mutation, you first call `useUpdatePasswordViaResetTokenMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdatePasswordViaResetTokenMutation` 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 [updatePasswordViaResetTokenMutation, { data, loading, error }] = useUpdatePasswordViaResetTokenMutation({ * variables: { * token: // value for 'token' * newPassword: // value for 'newPassword' * }, * }); */ export function useUpdatePasswordViaResetTokenMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdatePasswordViaResetTokenDocument, options); } export type UpdatePasswordViaResetTokenMutationHookResult = ReturnType; export type UpdatePasswordViaResetTokenMutationResult = Apollo.MutationResult; export type UpdatePasswordViaResetTokenMutationOptions = Apollo.BaseMutationOptions; export const VerifyDocument = gql` mutation Verify($loginToken: String!) { verify(loginToken: $loginToken) { user { ...UserQueryFragment } tokens { ...AuthTokensFragment } } } ${UserQueryFragmentFragmentDoc} ${AuthTokensFragmentFragmentDoc}`; export type VerifyMutationFn = Apollo.MutationFunction; /** * __useVerifyMutation__ * * To run a mutation, you first call `useVerifyMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVerifyMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [verifyMutation, { data, loading, error }] = useVerifyMutation({ * variables: { * loginToken: // value for 'loginToken' * }, * }); */ export function useVerifyMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(VerifyDocument, options); } export type VerifyMutationHookResult = ReturnType; export type VerifyMutationResult = Apollo.MutationResult; export type VerifyMutationOptions = Apollo.BaseMutationOptions; export const CheckUserExistsDocument = gql` query CheckUserExists($email: String!, $captchaToken: String) { checkUserExists(email: $email, captchaToken: $captchaToken) { exists } } `; /** * __useCheckUserExistsQuery__ * * To run a query within a React component, call `useCheckUserExistsQuery` and pass it any options that fit your needs. * When your component renders, `useCheckUserExistsQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useCheckUserExistsQuery({ * variables: { * email: // value for 'email' * captchaToken: // value for 'captchaToken' * }, * }); */ export function useCheckUserExistsQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(CheckUserExistsDocument, options); } export function useCheckUserExistsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(CheckUserExistsDocument, options); } export type CheckUserExistsQueryHookResult = ReturnType; export type CheckUserExistsLazyQueryHookResult = ReturnType; export type CheckUserExistsQueryResult = Apollo.QueryResult; export const ValidatePasswordResetTokenDocument = gql` query ValidatePasswordResetToken($token: String!) { validatePasswordResetToken(passwordResetToken: $token) { id email } } `; /** * __useValidatePasswordResetTokenQuery__ * * To run a query within a React component, call `useValidatePasswordResetTokenQuery` and pass it any options that fit your needs. * When your component renders, `useValidatePasswordResetTokenQuery` 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 } = useValidatePasswordResetTokenQuery({ * variables: { * token: // value for 'token' * }, * }); */ export function useValidatePasswordResetTokenQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(ValidatePasswordResetTokenDocument, options); } export function useValidatePasswordResetTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(ValidatePasswordResetTokenDocument, options); } export type ValidatePasswordResetTokenQueryHookResult = ReturnType; export type ValidatePasswordResetTokenLazyQueryHookResult = ReturnType; export type ValidatePasswordResetTokenQueryResult = Apollo.QueryResult; export const BillingPortalSessionDocument = gql` query BillingPortalSession($returnUrlPath: String) { billingPortalSession(returnUrlPath: $returnUrlPath) { url } } `; /** * __useBillingPortalSessionQuery__ * * To run a query within a React component, call `useBillingPortalSessionQuery` and pass it any options that fit your needs. * When your component renders, `useBillingPortalSessionQuery` 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 } = useBillingPortalSessionQuery({ * variables: { * returnUrlPath: // value for 'returnUrlPath' * }, * }); */ export function useBillingPortalSessionQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(BillingPortalSessionDocument, options); } export function useBillingPortalSessionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(BillingPortalSessionDocument, options); } export type BillingPortalSessionQueryHookResult = ReturnType; export type BillingPortalSessionLazyQueryHookResult = ReturnType; export type BillingPortalSessionQueryResult = Apollo.QueryResult; export const CheckoutSessionDocument = gql` mutation CheckoutSession($recurringInterval: SubscriptionInterval!, $successUrlPath: String) { checkoutSession( recurringInterval: $recurringInterval successUrlPath: $successUrlPath ) { url } } `; export type CheckoutSessionMutationFn = Apollo.MutationFunction; /** * __useCheckoutSessionMutation__ * * To run a mutation, you first call `useCheckoutSessionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCheckoutSessionMutation` 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 [checkoutSessionMutation, { data, loading, error }] = useCheckoutSessionMutation({ * variables: { * recurringInterval: // value for 'recurringInterval' * successUrlPath: // value for 'successUrlPath' * }, * }); */ export function useCheckoutSessionMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(CheckoutSessionDocument, options); } export type CheckoutSessionMutationHookResult = ReturnType; export type CheckoutSessionMutationResult = Apollo.MutationResult; export type CheckoutSessionMutationOptions = Apollo.BaseMutationOptions; export const GetProductPricesDocument = gql` query GetProductPrices($product: String!) { getProductPrices(product: $product) { productPrices { created recurringInterval stripePriceId unitAmount } } } `; /** * __useGetProductPricesQuery__ * * To run a query within a React component, call `useGetProductPricesQuery` and pass it any options that fit your needs. * When your component renders, `useGetProductPricesQuery` 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 } = useGetProductPricesQuery({ * variables: { * product: // value for 'product' * }, * }); */ export function useGetProductPricesQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetProductPricesDocument, options); } export function useGetProductPricesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetProductPricesDocument, options); } export type GetProductPricesQueryHookResult = ReturnType; export type GetProductPricesLazyQueryHookResult = ReturnType; export type GetProductPricesQueryResult = Apollo.QueryResult; export const UpdateBillingSubscriptionDocument = gql` mutation UpdateBillingSubscription { updateBillingSubscription { success } } `; export type UpdateBillingSubscriptionMutationFn = Apollo.MutationFunction; /** * __useUpdateBillingSubscriptionMutation__ * * To run a mutation, you first call `useUpdateBillingSubscriptionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateBillingSubscriptionMutation` 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 [updateBillingSubscriptionMutation, { data, loading, error }] = useUpdateBillingSubscriptionMutation({ * variables: { * }, * }); */ export function useUpdateBillingSubscriptionMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateBillingSubscriptionDocument, options); } export type UpdateBillingSubscriptionMutationHookResult = ReturnType; export type UpdateBillingSubscriptionMutationResult = Apollo.MutationResult; export type UpdateBillingSubscriptionMutationOptions = Apollo.BaseMutationOptions; export const GetClientConfigDocument = gql` query GetClientConfig { clientConfig { authProviders { google password microsoft } billing { isBillingEnabled billingUrl billingFreeTrialDurationInDays } signInPrefilled signUpDisabled debugMode telemetry { enabled } support { supportDriver supportFrontChatId } sentry { dsn environment release } captcha { provider siteKey } api { mutationMaximumAffectedRecords } chromeExtensionId } } `; /** * __useGetClientConfigQuery__ * * To run a query within a React component, call `useGetClientConfigQuery` and pass it any options that fit your needs. * When your component renders, `useGetClientConfigQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetClientConfigQuery({ * variables: { * }, * }); */ export function useGetClientConfigQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetClientConfigDocument, options); } export function useGetClientConfigLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetClientConfigDocument, options); } export type GetClientConfigQueryHookResult = ReturnType; export type GetClientConfigLazyQueryHookResult = ReturnType; export type GetClientConfigQueryResult = Apollo.QueryResult; export const SkipSyncEmailOnboardingStepDocument = gql` mutation SkipSyncEmailOnboardingStep { skipSyncEmailOnboardingStep { success } } `; export type SkipSyncEmailOnboardingStepMutationFn = Apollo.MutationFunction; /** * __useSkipSyncEmailOnboardingStepMutation__ * * To run a mutation, you first call `useSkipSyncEmailOnboardingStepMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSkipSyncEmailOnboardingStepMutation` 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 [skipSyncEmailOnboardingStepMutation, { data, loading, error }] = useSkipSyncEmailOnboardingStepMutation({ * variables: { * }, * }); */ export function useSkipSyncEmailOnboardingStepMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(SkipSyncEmailOnboardingStepDocument, options); } export type SkipSyncEmailOnboardingStepMutationHookResult = ReturnType; export type SkipSyncEmailOnboardingStepMutationResult = Apollo.MutationResult; export type SkipSyncEmailOnboardingStepMutationOptions = Apollo.BaseMutationOptions; export const GetAisqlQueryDocument = gql` query GetAISQLQuery($text: String!) { getAISQLQuery(text: $text) { sqlQuery sqlQueryResult queryFailedErrorMessage } } `; /** * __useGetAisqlQueryQuery__ * * To run a query within a React component, call `useGetAisqlQueryQuery` and pass it any options that fit your needs. * When your component renders, `useGetAisqlQueryQuery` 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 } = useGetAisqlQueryQuery({ * variables: { * text: // value for 'text' * }, * }); */ export function useGetAisqlQueryQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetAisqlQueryDocument, options); } export function useGetAisqlQueryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetAisqlQueryDocument, options); } export type GetAisqlQueryQueryHookResult = ReturnType; export type GetAisqlQueryLazyQueryHookResult = ReturnType; export type GetAisqlQueryQueryResult = Apollo.QueryResult; export const DeleteUserAccountDocument = gql` mutation DeleteUserAccount { deleteUser { id } } `; export type DeleteUserAccountMutationFn = Apollo.MutationFunction; /** * __useDeleteUserAccountMutation__ * * To run a mutation, you first call `useDeleteUserAccountMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteUserAccountMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [deleteUserAccountMutation, { data, loading, error }] = useDeleteUserAccountMutation({ * variables: { * }, * }); */ export function useDeleteUserAccountMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteUserAccountDocument, options); } export type DeleteUserAccountMutationHookResult = ReturnType; export type DeleteUserAccountMutationResult = Apollo.MutationResult; export type DeleteUserAccountMutationOptions = Apollo.BaseMutationOptions; export const UploadProfilePictureDocument = gql` mutation UploadProfilePicture($file: Upload!) { uploadProfilePicture(file: $file) } `; export type UploadProfilePictureMutationFn = Apollo.MutationFunction; /** * __useUploadProfilePictureMutation__ * * To run a mutation, you first call `useUploadProfilePictureMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUploadProfilePictureMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [uploadProfilePictureMutation, { data, loading, error }] = useUploadProfilePictureMutation({ * variables: { * file: // value for 'file' * }, * }); */ export function useUploadProfilePictureMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UploadProfilePictureDocument, options); } export type UploadProfilePictureMutationHookResult = ReturnType; export type UploadProfilePictureMutationResult = Apollo.MutationResult; export type UploadProfilePictureMutationOptions = Apollo.BaseMutationOptions; export const GetCurrentUserDocument = gql` query GetCurrentUser { currentUser { ...UserQueryFragment } } ${UserQueryFragmentFragmentDoc}`; /** * __useGetCurrentUserQuery__ * * To run a query within a React component, call `useGetCurrentUserQuery` and pass it any options that fit your needs. * When your component renders, `useGetCurrentUserQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetCurrentUserQuery({ * variables: { * }, * }); */ export function useGetCurrentUserQuery(baseOptions?: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetCurrentUserDocument, options); } export function useGetCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetCurrentUserDocument, options); } export type GetCurrentUserQueryHookResult = ReturnType; export type GetCurrentUserLazyQueryHookResult = ReturnType; export type GetCurrentUserQueryResult = Apollo.QueryResult; export const AddUserToWorkspaceDocument = gql` mutation AddUserToWorkspace($inviteHash: String!) { addUserToWorkspace(inviteHash: $inviteHash) { id } } `; export type AddUserToWorkspaceMutationFn = Apollo.MutationFunction; /** * __useAddUserToWorkspaceMutation__ * * To run a mutation, you first call `useAddUserToWorkspaceMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAddUserToWorkspaceMutation` 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 [addUserToWorkspaceMutation, { data, loading, error }] = useAddUserToWorkspaceMutation({ * variables: { * inviteHash: // value for 'inviteHash' * }, * }); */ export function useAddUserToWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(AddUserToWorkspaceDocument, options); } export type AddUserToWorkspaceMutationHookResult = ReturnType; export type AddUserToWorkspaceMutationResult = Apollo.MutationResult; export type AddUserToWorkspaceMutationOptions = Apollo.BaseMutationOptions; export const ActivateWorkspaceDocument = gql` mutation ActivateWorkspace($input: ActivateWorkspaceInput!) { activateWorkspace(data: $input) { id } } `; export type ActivateWorkspaceMutationFn = Apollo.MutationFunction; /** * __useActivateWorkspaceMutation__ * * To run a mutation, you first call `useActivateWorkspaceMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useActivateWorkspaceMutation` 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 [activateWorkspaceMutation, { data, loading, error }] = useActivateWorkspaceMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useActivateWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(ActivateWorkspaceDocument, options); } export type ActivateWorkspaceMutationHookResult = ReturnType; export type ActivateWorkspaceMutationResult = Apollo.MutationResult; export type ActivateWorkspaceMutationOptions = Apollo.BaseMutationOptions; export const DeleteCurrentWorkspaceDocument = gql` mutation DeleteCurrentWorkspace { deleteCurrentWorkspace { id } } `; export type DeleteCurrentWorkspaceMutationFn = Apollo.MutationFunction; /** * __useDeleteCurrentWorkspaceMutation__ * * To run a mutation, you first call `useDeleteCurrentWorkspaceMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteCurrentWorkspaceMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [deleteCurrentWorkspaceMutation, { data, loading, error }] = useDeleteCurrentWorkspaceMutation({ * variables: { * }, * }); */ export function useDeleteCurrentWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(DeleteCurrentWorkspaceDocument, options); } export type DeleteCurrentWorkspaceMutationHookResult = ReturnType; export type DeleteCurrentWorkspaceMutationResult = Apollo.MutationResult; export type DeleteCurrentWorkspaceMutationOptions = Apollo.BaseMutationOptions; export const SendInviteLinkDocument = gql` mutation SendInviteLink($emails: [String!]!) { sendInviteLink(emails: $emails) { success } } `; export type SendInviteLinkMutationFn = Apollo.MutationFunction; /** * __useSendInviteLinkMutation__ * * To run a mutation, you first call `useSendInviteLinkMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSendInviteLinkMutation` 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 [sendInviteLinkMutation, { data, loading, error }] = useSendInviteLinkMutation({ * variables: { * emails: // value for 'emails' * }, * }); */ export function useSendInviteLinkMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(SendInviteLinkDocument, options); } export type SendInviteLinkMutationHookResult = ReturnType; export type SendInviteLinkMutationResult = Apollo.MutationResult; export type SendInviteLinkMutationOptions = Apollo.BaseMutationOptions; export const UpdateWorkspaceDocument = gql` mutation UpdateWorkspace($input: UpdateWorkspaceInput!) { updateWorkspace(data: $input) { id domainName displayName logo allowImpersonation } } `; export type UpdateWorkspaceMutationFn = Apollo.MutationFunction; /** * __useUpdateWorkspaceMutation__ * * To run a mutation, you first call `useUpdateWorkspaceMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateWorkspaceMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updateWorkspaceMutation, { data, loading, error }] = useUpdateWorkspaceMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useUpdateWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UpdateWorkspaceDocument, options); } export type UpdateWorkspaceMutationHookResult = ReturnType; export type UpdateWorkspaceMutationResult = Apollo.MutationResult; export type UpdateWorkspaceMutationOptions = Apollo.BaseMutationOptions; export const UploadWorkspaceLogoDocument = gql` mutation UploadWorkspaceLogo($file: Upload!) { uploadWorkspaceLogo(file: $file) } `; export type UploadWorkspaceLogoMutationFn = Apollo.MutationFunction; /** * __useUploadWorkspaceLogoMutation__ * * To run a mutation, you first call `useUploadWorkspaceLogoMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUploadWorkspaceLogoMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [uploadWorkspaceLogoMutation, { data, loading, error }] = useUploadWorkspaceLogoMutation({ * variables: { * file: // value for 'file' * }, * }); */ export function useUploadWorkspaceLogoMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useMutation(UploadWorkspaceLogoDocument, options); } export type UploadWorkspaceLogoMutationHookResult = ReturnType; export type UploadWorkspaceLogoMutationResult = Apollo.MutationResult; export type UploadWorkspaceLogoMutationOptions = Apollo.BaseMutationOptions; export const GetWorkspaceFromInviteHashDocument = gql` query GetWorkspaceFromInviteHash($inviteHash: String!) { findWorkspaceFromInviteHash(inviteHash: $inviteHash) { id displayName logo allowImpersonation } } `; /** * __useGetWorkspaceFromInviteHashQuery__ * * To run a query within a React component, call `useGetWorkspaceFromInviteHashQuery` and pass it any options that fit your needs. * When your component renders, `useGetWorkspaceFromInviteHashQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example * const { data, loading, error } = useGetWorkspaceFromInviteHashQuery({ * variables: { * inviteHash: // value for 'inviteHash' * }, * }); */ export function useGetWorkspaceFromInviteHashQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(GetWorkspaceFromInviteHashDocument, options); } export function useGetWorkspaceFromInviteHashLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetWorkspaceFromInviteHashDocument, options); } export type GetWorkspaceFromInviteHashQueryHookResult = ReturnType; export type GetWorkspaceFromInviteHashLazyQueryHookResult = ReturnType; export type GetWorkspaceFromInviteHashQueryResult = Apollo.QueryResult;