8191 command k workflow trigger for selected record (#8315)
Closes #8191 https://github.com/user-attachments/assets/694da229-cc91-4df2-97a0-49cd5dabcf12
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { ApolloClient, useMutation } from '@apollo/client';
|
||||
import { useMutation } from '@apollo/client';
|
||||
|
||||
import { CREATE_ONE_DATABASE_CONNECTION } from '@/databases/graphql/mutations/createOneDatabaseConnection';
|
||||
import { GET_MANY_DATABASE_CONNECTIONS } from '@/databases/graphql/queries/findManyDatabaseConnections';
|
||||
@ -17,7 +17,7 @@ export const useCreateOneDatabaseConnection = () => {
|
||||
CreateServerMutation,
|
||||
CreateServerMutationVariables
|
||||
>(CREATE_ONE_DATABASE_CONNECTION, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const createOneDatabaseConnection = async (
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { ApolloClient, useMutation } from '@apollo/client';
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { getOperationName } from '@apollo/client/utilities';
|
||||
|
||||
import { DELETE_ONE_DATABASE_CONNECTION } from '@/databases/graphql/mutations/deleteOneDatabaseConnection';
|
||||
@ -17,7 +17,7 @@ export const useDeleteOneDatabaseConnection = () => {
|
||||
DeleteServerMutation,
|
||||
DeleteServerMutationVariables
|
||||
>(DELETE_ONE_DATABASE_CONNECTION, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const deleteOneDatabaseConnection = async (input: RemoteServerIdInput) => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useApolloClient, useMutation } from '@apollo/client';
|
||||
import { useCallback } from 'react';
|
||||
import { ApolloClient, useApolloClient, useMutation } from '@apollo/client';
|
||||
|
||||
import { SYNC_REMOTE_TABLE } from '@/databases/graphql/mutations/syncRemoteTable';
|
||||
import { modifyRemoteTableFromCache } from '@/databases/utils/modifyRemoteTableFromCache';
|
||||
@ -28,7 +28,7 @@ export const useSyncRemoteTable = () => {
|
||||
SyncRemoteTableMutation,
|
||||
SyncRemoteTableMutationVariables
|
||||
>(SYNC_REMOTE_TABLE, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const syncRemoteTable = useCallback(
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useApolloClient, useMutation } from '@apollo/client';
|
||||
import { useCallback } from 'react';
|
||||
import { ApolloClient, useApolloClient, useMutation } from '@apollo/client';
|
||||
|
||||
import { SYNC_REMOTE_TABLE_SCHEMA_CHANGES } from '@/databases/graphql/mutations/syncRemoteTableSchemaChanges';
|
||||
import { modifyRemoteTableFromCache } from '@/databases/utils/modifyRemoteTableFromCache';
|
||||
@ -29,7 +29,7 @@ export const useSyncRemoteTableSchemaChanges = () => {
|
||||
SyncRemoteTableSchemaChangesMutation,
|
||||
SyncRemoteTableSchemaChangesMutationVariables
|
||||
>(SYNC_REMOTE_TABLE_SCHEMA_CHANGES, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const syncRemoteTableSchemaChanges = useCallback(
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useMutation } from '@apollo/client';
|
||||
import { useCallback } from 'react';
|
||||
import { ApolloClient, useMutation } from '@apollo/client';
|
||||
|
||||
import { UNSYNC_REMOTE_TABLE } from '@/databases/graphql/mutations/unsyncRemoteTable';
|
||||
import { modifyRemoteTableFromCache } from '@/databases/utils/modifyRemoteTableFromCache';
|
||||
@ -21,7 +21,7 @@ export const useUnsyncRemoteTable = () => {
|
||||
UnsyncRemoteTableMutation,
|
||||
UnsyncRemoteTableMutationVariables
|
||||
>(UNSYNC_REMOTE_TABLE, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const unsyncRemoteTable = useCallback(
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { ApolloClient, useMutation } from '@apollo/client';
|
||||
import { useMutation } from '@apollo/client';
|
||||
|
||||
import { UPDATE_ONE_DATABASE_CONNECTION } from '@/databases/graphql/mutations/updateOneDatabaseConnection';
|
||||
import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient';
|
||||
@ -15,7 +15,7 @@ export const useUpdateOneDatabaseConnection = () => {
|
||||
UpdateServerMutation,
|
||||
UpdateServerMutationVariables
|
||||
>(UPDATE_ONE_DATABASE_CONNECTION, {
|
||||
client: apolloMetadataClient ?? ({} as ApolloClient<any>),
|
||||
client: apolloMetadataClient,
|
||||
});
|
||||
|
||||
const updateOneDatabaseConnection = async (
|
||||
|
||||
Reference in New Issue
Block a user