@@ -4,9 +4,9 @@ import { CREATE_ONE_DATABASE_CONNECTION } from '@/databases/graphql/mutations/cr
|
||||
import { GET_MANY_DATABASE_CONNECTIONS } from '@/databases/graphql/queries/findManyDatabaseConnections';
|
||||
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
|
||||
import {
|
||||
CreateRemoteServerInput,
|
||||
CreateServerMutation,
|
||||
CreateServerMutationVariables,
|
||||
type CreateRemoteServerInput,
|
||||
type CreateServerMutation,
|
||||
type CreateServerMutationVariables,
|
||||
} from '~/generated-metadata/graphql';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@ import { DELETE_ONE_DATABASE_CONNECTION } from '@/databases/graphql/mutations/de
|
||||
import { GET_MANY_DATABASE_CONNECTIONS } from '@/databases/graphql/queries/findManyDatabaseConnections';
|
||||
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
|
||||
import {
|
||||
DeleteServerMutation,
|
||||
DeleteServerMutationVariables,
|
||||
RemoteServerIdInput,
|
||||
type DeleteServerMutation,
|
||||
type DeleteServerMutationVariables,
|
||||
type RemoteServerIdInput,
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
export const useDeleteOneDatabaseConnection = () => {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { useQuery, WatchQueryFetchPolicy } from '@apollo/client';
|
||||
import { useQuery, type WatchQueryFetchPolicy } from '@apollo/client';
|
||||
|
||||
import { GET_ONE_DATABASE_CONNECTION } from '@/databases/graphql/queries/findOneDatabaseConnection';
|
||||
import { getForeignDataWrapperType } from '@/databases/utils/getForeignDataWrapperType';
|
||||
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
|
||||
import {
|
||||
GetOneDatabaseConnectionQuery,
|
||||
GetOneDatabaseConnectionQueryVariables,
|
||||
type GetOneDatabaseConnectionQuery,
|
||||
type GetOneDatabaseConnectionQueryVariables,
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
type UseGetDatabaseConnectionParams = {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { useQuery, WatchQueryFetchPolicy } from '@apollo/client';
|
||||
import { useQuery, type WatchQueryFetchPolicy } from '@apollo/client';
|
||||
|
||||
import { GET_MANY_REMOTE_TABLES } from '@/databases/graphql/queries/findManyRemoteTables';
|
||||
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
|
||||
import {
|
||||
GetManyRemoteTablesQuery,
|
||||
GetManyRemoteTablesQueryVariables,
|
||||
type GetManyRemoteTablesQuery,
|
||||
type GetManyRemoteTablesQueryVariables,
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
type UseGetDatabaseConnectionTablesParams = {
|
||||
|
||||
@@ -4,8 +4,8 @@ import { GET_MANY_DATABASE_CONNECTIONS } from '@/databases/graphql/queries/findM
|
||||
import { getForeignDataWrapperType } from '@/databases/utils/getForeignDataWrapperType';
|
||||
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
|
||||
import {
|
||||
GetManyDatabaseConnectionsQuery,
|
||||
GetManyDatabaseConnectionsQueryVariables,
|
||||
type GetManyDatabaseConnectionsQuery,
|
||||
type GetManyDatabaseConnectionsQueryVariables,
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
type UseGetDatabaseConnectionsParams = {
|
||||
|
||||
@@ -8,9 +8,9 @@ import { useFindManyObjectMetadataItems } from '@/object-metadata/hooks/useFindM
|
||||
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
|
||||
import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery';
|
||||
import {
|
||||
RemoteTableInput,
|
||||
SyncRemoteTableMutation,
|
||||
SyncRemoteTableMutationVariables,
|
||||
type RemoteTableInput,
|
||||
type SyncRemoteTableMutation,
|
||||
type SyncRemoteTableMutationVariables,
|
||||
} from '~/generated-metadata/graphql';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
|
||||
+3
-3
@@ -8,9 +8,9 @@ import { useFindManyObjectMetadataItems } from '@/object-metadata/hooks/useFindM
|
||||
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
|
||||
import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery';
|
||||
import {
|
||||
RemoteTableInput,
|
||||
SyncRemoteTableSchemaChangesMutation,
|
||||
SyncRemoteTableSchemaChangesMutationVariables,
|
||||
type RemoteTableInput,
|
||||
type SyncRemoteTableSchemaChangesMutation,
|
||||
type SyncRemoteTableSchemaChangesMutationVariables,
|
||||
} from '~/generated-metadata/graphql';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ import { modifyRemoteTableFromCache } from '@/databases/utils/modifyRemoteTableF
|
||||
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
|
||||
import { useFindManyObjectMetadataItems } from '@/object-metadata/hooks/useFindManyObjectMetadataItems';
|
||||
import {
|
||||
RemoteTableInput,
|
||||
UnsyncRemoteTableMutation,
|
||||
UnsyncRemoteTableMutationVariables,
|
||||
type RemoteTableInput,
|
||||
type UnsyncRemoteTableMutation,
|
||||
type UnsyncRemoteTableMutationVariables,
|
||||
} from '~/generated-metadata/graphql';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ import { useMutation } from '@apollo/client';
|
||||
import { UPDATE_ONE_DATABASE_CONNECTION } from '@/databases/graphql/mutations/updateOneDatabaseConnection';
|
||||
import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient';
|
||||
import {
|
||||
UpdateRemoteServerInput,
|
||||
UpdateServerMutation,
|
||||
UpdateServerMutationVariables,
|
||||
type UpdateRemoteServerInput,
|
||||
type UpdateServerMutation,
|
||||
type UpdateServerMutationVariables,
|
||||
} from '~/generated-metadata/graphql';
|
||||
|
||||
export const useUpdateOneDatabaseConnection = () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ApolloCache } from '@apollo/client';
|
||||
import { Modifiers } from '@apollo/client/cache';
|
||||
import { type ApolloCache } from '@apollo/client';
|
||||
import { type Modifiers } from '@apollo/client/cache';
|
||||
|
||||
import { RemoteTable } from '~/generated-metadata/graphql';
|
||||
import { type RemoteTable } from '~/generated-metadata/graphql';
|
||||
|
||||
export const modifyRemoteTableFromCache = ({
|
||||
cache,
|
||||
|
||||
Reference in New Issue
Block a user