/**
 * Cache invalidation helpers
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { getAllRecordKeys, functionApiBindingKeys, functionDeploymentKeys, resourceKeys, functionGraphRefKeys, functionGraphStoreKeys, functionGraphObjectKeys, functionDeploymentEventKeys, orgFunctionExecutionLogKeys, resourceEventKeys, functionGraphExecutionOutputKeys, functionGraphCommitKeys, secretDefinitionKeys, functionExecutionLogKeys, functionGraphKeys, functionGraphExecutionNodeStateKeys, platformNamespaceKeys, orgFunctionInvocationKeys, functionInvocationKeys, platformNamespaceEventKeys, functionGraphExecutionKeys, functionDefinitionKeys, } from './query-keys';
/**
// ============================================================================
// Invalidation Helpers
// ============================================================================

 * Type-safe query invalidation helpers
 *
 * @example
 * ```ts
 * // Invalidate all user queries
 * invalidate.user.all(queryClient);
 *
 * // Invalidate user lists
 * invalidate.user.lists(queryClient);
 *
 * // Invalidate specific user
 * invalidate.user.detail(queryClient, userId);
 * ```
 */
export const invalidate = {
    /** Invalidate getAllRecord queries */ getAllRecord: {
        /** Invalidate all getAllRecord queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: getAllRecordKeys.all,
        }),
        /** Invalidate getAllRecord list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: getAllRecordKeys.lists(),
        }),
        /** Invalidate a specific getAllRecord */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: getAllRecordKeys.detail(id),
        }),
    },
    /** Invalidate functionApiBinding queries */ functionApiBinding: {
        /** Invalidate all functionApiBinding queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionApiBindingKeys.all,
        }),
        /** Invalidate functionApiBinding list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionApiBindingKeys.lists(),
        }),
        /** Invalidate a specific functionApiBinding */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionApiBindingKeys.detail(id),
        }),
    },
    /** Invalidate functionDeployment queries */ functionDeployment: {
        /** Invalidate all functionDeployment queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionDeploymentKeys.all,
        }),
        /** Invalidate functionDeployment list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionDeploymentKeys.lists(),
        }),
        /** Invalidate a specific functionDeployment */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionDeploymentKeys.detail(id),
        }),
    },
    /** Invalidate resource queries */ resource: {
        /** Invalidate all resource queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: resourceKeys.all,
        }),
        /** Invalidate resource list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: resourceKeys.lists(),
        }),
        /** Invalidate a specific resource */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: resourceKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphRef queries */ functionGraphRef: {
        /** Invalidate all functionGraphRef queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphRefKeys.all,
        }),
        /** Invalidate functionGraphRef list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphRefKeys.lists(),
        }),
        /** Invalidate a specific functionGraphRef */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionGraphRefKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphStore queries */ functionGraphStore: {
        /** Invalidate all functionGraphStore queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphStoreKeys.all,
        }),
        /** Invalidate functionGraphStore list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphStoreKeys.lists(),
        }),
        /** Invalidate a specific functionGraphStore */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionGraphStoreKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphObject queries */ functionGraphObject: {
        /** Invalidate all functionGraphObject queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphObjectKeys.all,
        }),
        /** Invalidate functionGraphObject list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphObjectKeys.lists(),
        }),
        /** Invalidate a specific functionGraphObject */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionGraphObjectKeys.detail(id),
        }),
    },
    /** Invalidate functionDeploymentEvent queries */ functionDeploymentEvent: {
        /** Invalidate all functionDeploymentEvent queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionDeploymentEventKeys.all,
        }),
        /** Invalidate functionDeploymentEvent list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionDeploymentEventKeys.lists(),
        }),
        /** Invalidate a specific functionDeploymentEvent */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionDeploymentEventKeys.detail(id),
        }),
    },
    /** Invalidate orgFunctionExecutionLog queries */ orgFunctionExecutionLog: {
        /** Invalidate all orgFunctionExecutionLog queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgFunctionExecutionLogKeys.all,
        }),
        /** Invalidate orgFunctionExecutionLog list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgFunctionExecutionLogKeys.lists(),
        }),
        /** Invalidate a specific orgFunctionExecutionLog */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgFunctionExecutionLogKeys.detail(id),
        }),
    },
    /** Invalidate resourceEvent queries */ resourceEvent: {
        /** Invalidate all resourceEvent queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: resourceEventKeys.all,
        }),
        /** Invalidate resourceEvent list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: resourceEventKeys.lists(),
        }),
        /** Invalidate a specific resourceEvent */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: resourceEventKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphExecutionOutput queries */ functionGraphExecutionOutput: {
        /** Invalidate all functionGraphExecutionOutput queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphExecutionOutputKeys.all,
        }),
        /** Invalidate functionGraphExecutionOutput list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphExecutionOutputKeys.lists(),
        }),
        /** Invalidate a specific functionGraphExecutionOutput */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionGraphExecutionOutputKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphCommit queries */ functionGraphCommit: {
        /** Invalidate all functionGraphCommit queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphCommitKeys.all,
        }),
        /** Invalidate functionGraphCommit list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphCommitKeys.lists(),
        }),
        /** Invalidate a specific functionGraphCommit */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionGraphCommitKeys.detail(id),
        }),
    },
    /** Invalidate secretDefinition queries */ secretDefinition: {
        /** Invalidate all secretDefinition queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: secretDefinitionKeys.all,
        }),
        /** Invalidate secretDefinition list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: secretDefinitionKeys.lists(),
        }),
        /** Invalidate a specific secretDefinition */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: secretDefinitionKeys.detail(id),
        }),
    },
    /** Invalidate functionExecutionLog queries */ functionExecutionLog: {
        /** Invalidate all functionExecutionLog queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionExecutionLogKeys.all,
        }),
        /** Invalidate functionExecutionLog list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionExecutionLogKeys.lists(),
        }),
        /** Invalidate a specific functionExecutionLog */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionExecutionLogKeys.detail(id),
        }),
    },
    /** Invalidate functionGraph queries */ functionGraph: {
        /** Invalidate all functionGraph queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphKeys.all,
        }),
        /** Invalidate functionGraph list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphKeys.lists(),
        }),
        /** Invalidate a specific functionGraph */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionGraphKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphExecutionNodeState queries */ functionGraphExecutionNodeState: {
        /** Invalidate all functionGraphExecutionNodeState queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphExecutionNodeStateKeys.all,
        }),
        /** Invalidate functionGraphExecutionNodeState list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphExecutionNodeStateKeys.lists(),
        }),
        /** Invalidate a specific functionGraphExecutionNodeState */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionGraphExecutionNodeStateKeys.detail(id),
        }),
    },
    /** Invalidate platformNamespace queries */ platformNamespace: {
        /** Invalidate all platformNamespace queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: platformNamespaceKeys.all,
        }),
        /** Invalidate platformNamespace list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: platformNamespaceKeys.lists(),
        }),
        /** Invalidate a specific platformNamespace */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: platformNamespaceKeys.detail(id),
        }),
    },
    /** Invalidate orgFunctionInvocation queries */ orgFunctionInvocation: {
        /** Invalidate all orgFunctionInvocation queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgFunctionInvocationKeys.all,
        }),
        /** Invalidate orgFunctionInvocation list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgFunctionInvocationKeys.lists(),
        }),
        /** Invalidate a specific orgFunctionInvocation */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgFunctionInvocationKeys.detail(id),
        }),
    },
    /** Invalidate functionInvocation queries */ functionInvocation: {
        /** Invalidate all functionInvocation queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionInvocationKeys.all,
        }),
        /** Invalidate functionInvocation list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionInvocationKeys.lists(),
        }),
        /** Invalidate a specific functionInvocation */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionInvocationKeys.detail(id),
        }),
    },
    /** Invalidate platformNamespaceEvent queries */ platformNamespaceEvent: {
        /** Invalidate all platformNamespaceEvent queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: platformNamespaceEventKeys.all,
        }),
        /** Invalidate platformNamespaceEvent list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: platformNamespaceEventKeys.lists(),
        }),
        /** Invalidate a specific platformNamespaceEvent */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: platformNamespaceEventKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphExecution queries */ functionGraphExecution: {
        /** Invalidate all functionGraphExecution queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphExecutionKeys.all,
        }),
        /** Invalidate functionGraphExecution list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionGraphExecutionKeys.lists(),
        }),
        /** Invalidate a specific functionGraphExecution */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionGraphExecutionKeys.detail(id),
        }),
    },
    /** Invalidate functionDefinition queries */ functionDefinition: {
        /** Invalidate all functionDefinition queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionDefinitionKeys.all,
        }),
        /** Invalidate functionDefinition list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionDefinitionKeys.lists(),
        }),
        /** Invalidate a specific functionDefinition */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionDefinitionKeys.detail(id),
        }),
    },
};
/**

// ============================================================================
// Remove Helpers (for delete operations)
// ============================================================================

 * Remove queries from cache (for delete operations)
 *
 * Use these when an entity is deleted to remove it from cache
 * instead of just invalidating (which would trigger a refetch).
 */
export const remove = {
    /** Remove getAllRecord from cache */ getAllRecord: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: getAllRecordKeys.detail(id),
        });
    },
    /** Remove functionApiBinding from cache */ functionApiBinding: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionApiBindingKeys.detail(id),
        });
    },
    /** Remove functionDeployment from cache */ functionDeployment: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionDeploymentKeys.detail(id),
        });
    },
    /** Remove resource from cache */ resource: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: resourceKeys.detail(id),
        });
    },
    /** Remove functionGraphRef from cache */ functionGraphRef: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionGraphRefKeys.detail(id),
        });
    },
    /** Remove functionGraphStore from cache */ functionGraphStore: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionGraphStoreKeys.detail(id),
        });
    },
    /** Remove functionGraphObject from cache */ functionGraphObject: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionGraphObjectKeys.detail(id),
        });
    },
    /** Remove functionDeploymentEvent from cache */ functionDeploymentEvent: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionDeploymentEventKeys.detail(id),
        });
    },
    /** Remove orgFunctionExecutionLog from cache */ orgFunctionExecutionLog: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgFunctionExecutionLogKeys.detail(id),
        });
    },
    /** Remove resourceEvent from cache */ resourceEvent: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: resourceEventKeys.detail(id),
        });
    },
    /** Remove functionGraphExecutionOutput from cache */ functionGraphExecutionOutput: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionGraphExecutionOutputKeys.detail(id),
        });
    },
    /** Remove functionGraphCommit from cache */ functionGraphCommit: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionGraphCommitKeys.detail(id),
        });
    },
    /** Remove secretDefinition from cache */ secretDefinition: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: secretDefinitionKeys.detail(id),
        });
    },
    /** Remove functionExecutionLog from cache */ functionExecutionLog: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionExecutionLogKeys.detail(id),
        });
    },
    /** Remove functionGraph from cache */ functionGraph: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionGraphKeys.detail(id),
        });
    },
    /** Remove functionGraphExecutionNodeState from cache */ functionGraphExecutionNodeState: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionGraphExecutionNodeStateKeys.detail(id),
        });
    },
    /** Remove platformNamespace from cache */ platformNamespace: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: platformNamespaceKeys.detail(id),
        });
    },
    /** Remove orgFunctionInvocation from cache */ orgFunctionInvocation: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgFunctionInvocationKeys.detail(id),
        });
    },
    /** Remove functionInvocation from cache */ functionInvocation: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionInvocationKeys.detail(id),
        });
    },
    /** Remove platformNamespaceEvent from cache */ platformNamespaceEvent: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: platformNamespaceEventKeys.detail(id),
        });
    },
    /** Remove functionGraphExecution from cache */ functionGraphExecution: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionGraphExecutionKeys.detail(id),
        });
    },
    /** Remove functionDefinition from cache */ functionDefinition: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionDefinitionKeys.detail(id),
        });
    },
};
