import * as Apollo from '@apollo/client'; export declare type Maybe = T | null; export declare type InputMaybe = Maybe; export declare type Exact = { [K in keyof T]: T[K]; }; export declare type MakeOptional = Omit & { [SubKey in K]?: Maybe; }; export declare type MakeMaybe = Omit & { [SubKey in K]: Maybe; }; /** All built-in and custom scalars, mapped to their actual values */ export declare type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; }; export declare type App = { __typename?: 'App'; logo?: Maybe; name?: Maybe; privacyPolicyUrl?: Maybe; termsOfServiceUrl?: Maybe; uiUrl?: Maybe; websiteUrl?: Maybe; }; export declare type CreateTenantInput = { email: Scalars['String']; logo?: InputMaybe; name?: InputMaybe; plan: Scalars['String']; }; export declare type Mutation = { __typename?: 'Mutation'; createTenantAnonymous: Tenant; /** This will create a new user for a tenant. */ createUsers: Array; deleteUser: Scalars['Boolean']; sendPasswordResetLink: Scalars['Boolean']; updateTenant: Tenant; /** Update the user. You can change role, teams and also enable or disable the user from logging in. */ updateUser: User; }; export declare type MutationCreateTenantAnonymousArgs = { tenant: CreateTenantInput; }; export declare type MutationCreateUsersArgs = { userNames: Array; }; export declare type MutationDeleteUserArgs = { userId: Scalars['String']; }; export declare type MutationSendPasswordResetLinkArgs = { userId: Scalars['String']; }; export declare type MutationUpdateTenantArgs = { tenant: TenantInput; }; export declare type MutationUpdateUserArgs = { user: UserInput; }; export declare type Query = { __typename?: 'Query'; /** Gets useful App configs for the UI to consume */ getAppAnonymous: App; /** Obtain an short lived session url to redirect or present the user its Stripe subscription panel for updating payment or subscription data. */ getCustomerPortal: Scalars['String']; /** Gets a single tenant */ getTenant: Tenant; getTenantAnonymous: TenantAnonymous; /** Lists all tenants */ listTenants: Array; /** List all available user roles that the current user can assign others */ listUserRoles: Array; /** List all users in this tenant. */ listUsers: Array; }; export declare type Tenant = { __typename?: 'Tenant'; createdAt?: Maybe; id: Scalars['String']; locale?: Maybe; logo: Scalars['String']; mfa?: Maybe; name: Scalars['String']; plan?: Maybe; }; export declare type TenantAnonymous = { __typename?: 'TenantAnonymous'; id: Scalars['String']; locale?: Maybe; name?: Maybe; }; export declare type TenantInput = { locale?: InputMaybe; mfa?: InputMaybe; name?: InputMaybe; }; export declare type User = { __typename?: 'User'; createdAt?: Maybe; email?: Maybe; enabled?: Maybe; fullName?: Maybe; id: Scalars['String']; onboarded?: Maybe; role?: Maybe; teams?: Maybe>; username?: Maybe; }; export declare type UserInput = { enabled?: InputMaybe; id: Scalars['String']; role?: InputMaybe; }; export declare type GetCustomerPortalQueryVariables = Exact<{ [key: string]: never; }>; export declare type GetCustomerPortalQuery = { __typename?: 'Query'; getCustomerPortal: string; }; export declare type GetTenantQueryVariables = Exact<{ [key: string]: never; }>; export declare type GetTenantQuery = { __typename?: 'Query'; getTenant: { __typename?: 'Tenant'; id: string; name: string; locale?: string | null; logo: string; plan?: string | null; mfa?: boolean | null; createdAt?: string | null; }; }; export declare type UpdateTenantMutationVariables = Exact<{ tenant: TenantInput; }>; export declare type UpdateTenantMutation = { __typename?: 'Mutation'; updateTenant: { __typename?: 'Tenant'; id: string; name: string; locale?: string | null; logo: string; plan?: string | null; mfa?: boolean | null; createdAt?: string | null; }; }; export declare type CreateUsersMutationVariables = Exact<{ userNames: Array | Scalars['String']; }>; export declare type CreateUsersMutation = { __typename?: 'Mutation'; createUsers: Array<{ __typename?: 'User'; id: string; fullName?: string | null; email?: string | null; username?: string | null; createdAt?: string | null; onboarded?: boolean | null; enabled?: boolean | null; role?: string | null; teams?: Array | null; }>; }; export declare type DeleteUserMutationVariables = Exact<{ userId: Scalars['String']; }>; export declare type DeleteUserMutation = { __typename?: 'Mutation'; deleteUser: boolean; }; export declare type ListUserRolesQueryVariables = Exact<{ [key: string]: never; }>; export declare type ListUserRolesQuery = { __typename?: 'Query'; listUserRoles: Array; }; export declare type ListUsersQueryVariables = Exact<{ [key: string]: never; }>; export declare type ListUsersQuery = { __typename?: 'Query'; listUsers: Array<{ __typename?: 'User'; id: string; fullName?: string | null; email?: string | null; username?: string | null; createdAt?: string | null; onboarded?: boolean | null; enabled?: boolean | null; role?: string | null; teams?: Array | null; }>; }; export declare type SendPasswordResetLinkMutationVariables = Exact<{ userId: Scalars['String']; }>; export declare type SendPasswordResetLinkMutation = { __typename?: 'Mutation'; sendPasswordResetLink: boolean; }; export declare type UpdateUserMutationVariables = Exact<{ user: UserInput; }>; export declare type UpdateUserMutation = { __typename?: 'Mutation'; updateUser: { __typename?: 'User'; id: string; fullName?: string | null; email?: string | null; username?: string | null; createdAt?: string | null; onboarded?: boolean | null; enabled?: boolean | null; role?: string | null; teams?: Array | null; }; }; export declare type GetAppAnonymousQueryVariables = Exact<{ [key: string]: never; }>; export declare type GetAppAnonymousQuery = { __typename?: 'Query'; getAppAnonymous: { __typename?: 'App'; name?: string | null; logo?: string | null; privacyPolicyUrl?: string | null; termsOfServiceUrl?: string | null; }; }; export declare const GetCustomerPortalDocument: Apollo.DocumentNode; /** * __useGetCustomerPortalQuery__ * * To run a query within a React component, call `useGetCustomerPortalQuery` and pass it any options that fit your needs. * When your component renders, `useGetCustomerPortalQuery` 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 } = useGetCustomerPortalQuery({ * variables: { * }, * }); */ export declare function useGetCustomerPortalQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; export declare function useGetCustomerPortalLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.LazyQueryResultTuple>; export declare type GetCustomerPortalQueryHookResult = ReturnType; export declare type GetCustomerPortalLazyQueryHookResult = ReturnType; export declare type GetCustomerPortalQueryResult = Apollo.QueryResult; export declare const GetTenantDocument: Apollo.DocumentNode; /** * __useGetTenantQuery__ * * To run a query within a React component, call `useGetTenantQuery` and pass it any options that fit your needs. * When your component renders, `useGetTenantQuery` 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 } = useGetTenantQuery({ * variables: { * }, * }); */ export declare function useGetTenantQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; export declare function useGetTenantLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.LazyQueryResultTuple>; export declare type GetTenantQueryHookResult = ReturnType; export declare type GetTenantLazyQueryHookResult = ReturnType; export declare type GetTenantQueryResult = Apollo.QueryResult; export declare const UpdateTenantDocument: Apollo.DocumentNode; export declare type UpdateTenantMutationFn = Apollo.MutationFunction; /** * __useUpdateTenantMutation__ * * To run a mutation, you first call `useUpdateTenantMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTenantMutation` 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 [updateTenantMutation, { data, loading, error }] = useUpdateTenantMutation({ * variables: { * tenant: // value for 'tenant' * }, * }); */ export declare function useUpdateTenantMutation(baseOptions?: Apollo.MutationHookOptions): Apollo.MutationTuple, Apollo.DefaultContext, Apollo.ApolloCache>; export declare type UpdateTenantMutationHookResult = ReturnType; export declare type UpdateTenantMutationResult = Apollo.MutationResult; export declare type UpdateTenantMutationOptions = Apollo.BaseMutationOptions; export declare const CreateUsersDocument: Apollo.DocumentNode; export declare type CreateUsersMutationFn = Apollo.MutationFunction; /** * __useCreateUsersMutation__ * * To run a mutation, you first call `useCreateUsersMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateUsersMutation` 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 [createUsersMutation, { data, loading, error }] = useCreateUsersMutation({ * variables: { * userNames: // value for 'userNames' * }, * }); */ export declare function useCreateUsersMutation(baseOptions?: Apollo.MutationHookOptions): Apollo.MutationTuple, Apollo.DefaultContext, Apollo.ApolloCache>; export declare type CreateUsersMutationHookResult = ReturnType; export declare type CreateUsersMutationResult = Apollo.MutationResult; export declare type CreateUsersMutationOptions = Apollo.BaseMutationOptions; export declare const DeleteUserDocument: Apollo.DocumentNode; export declare type DeleteUserMutationFn = Apollo.MutationFunction; /** * __useDeleteUserMutation__ * * To run a mutation, you first call `useDeleteUserMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteUserMutation` 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 [deleteUserMutation, { data, loading, error }] = useDeleteUserMutation({ * variables: { * userId: // value for 'userId' * }, * }); */ export declare function useDeleteUserMutation(baseOptions?: Apollo.MutationHookOptions): Apollo.MutationTuple, Apollo.DefaultContext, Apollo.ApolloCache>; export declare type DeleteUserMutationHookResult = ReturnType; export declare type DeleteUserMutationResult = Apollo.MutationResult; export declare type DeleteUserMutationOptions = Apollo.BaseMutationOptions; export declare const ListUserRolesDocument: Apollo.DocumentNode; /** * __useListUserRolesQuery__ * * To run a query within a React component, call `useListUserRolesQuery` and pass it any options that fit your needs. * When your component renders, `useListUserRolesQuery` 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 } = useListUserRolesQuery({ * variables: { * }, * }); */ export declare function useListUserRolesQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; export declare function useListUserRolesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.LazyQueryResultTuple>; export declare type ListUserRolesQueryHookResult = ReturnType; export declare type ListUserRolesLazyQueryHookResult = ReturnType; export declare type ListUserRolesQueryResult = Apollo.QueryResult; export declare const ListUsersDocument: Apollo.DocumentNode; /** * __useListUsersQuery__ * * To run a query within a React component, call `useListUsersQuery` and pass it any options that fit your needs. * When your component renders, `useListUsersQuery` 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 } = useListUsersQuery({ * variables: { * }, * }); */ export declare function useListUsersQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; export declare function useListUsersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.LazyQueryResultTuple>; export declare type ListUsersQueryHookResult = ReturnType; export declare type ListUsersLazyQueryHookResult = ReturnType; export declare type ListUsersQueryResult = Apollo.QueryResult; export declare const SendPasswordResetLinkDocument: Apollo.DocumentNode; export declare type SendPasswordResetLinkMutationFn = Apollo.MutationFunction; /** * __useSendPasswordResetLinkMutation__ * * To run a mutation, you first call `useSendPasswordResetLinkMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSendPasswordResetLinkMutation` 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 [sendPasswordResetLinkMutation, { data, loading, error }] = useSendPasswordResetLinkMutation({ * variables: { * userId: // value for 'userId' * }, * }); */ export declare function useSendPasswordResetLinkMutation(baseOptions?: Apollo.MutationHookOptions): Apollo.MutationTuple, Apollo.DefaultContext, Apollo.ApolloCache>; export declare type SendPasswordResetLinkMutationHookResult = ReturnType; export declare type SendPasswordResetLinkMutationResult = Apollo.MutationResult; export declare type SendPasswordResetLinkMutationOptions = Apollo.BaseMutationOptions; export declare const UpdateUserDocument: Apollo.DocumentNode; export declare type UpdateUserMutationFn = Apollo.MutationFunction; /** * __useUpdateUserMutation__ * * To run a mutation, you first call `useUpdateUserMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateUserMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example * const [updateUserMutation, { data, loading, error }] = useUpdateUserMutation({ * variables: { * user: // value for 'user' * }, * }); */ export declare function useUpdateUserMutation(baseOptions?: Apollo.MutationHookOptions): Apollo.MutationTuple, Apollo.DefaultContext, Apollo.ApolloCache>; export declare type UpdateUserMutationHookResult = ReturnType; export declare type UpdateUserMutationResult = Apollo.MutationResult; export declare type UpdateUserMutationOptions = Apollo.BaseMutationOptions; export declare const GetAppAnonymousDocument: Apollo.DocumentNode; /** * __useGetAppAnonymousQuery__ * * To run a query within a React component, call `useGetAppAnonymousQuery` and pass it any options that fit your needs. * When your component renders, `useGetAppAnonymousQuery` 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 } = useGetAppAnonymousQuery({ * variables: { * }, * }); */ export declare function useGetAppAnonymousQuery(baseOptions?: Apollo.QueryHookOptions): Apollo.QueryResult>; export declare function useGetAppAnonymousLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions): Apollo.LazyQueryResultTuple>; export declare type GetAppAnonymousQueryHookResult = ReturnType; export declare type GetAppAnonymousLazyQueryHookResult = ReturnType; export declare type GetAppAnonymousQueryResult = Apollo.QueryResult;