"use strict";
/**
 * Cache invalidation helpers
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.remove = exports.invalidate = void 0;
const query_keys_1 = require("./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);
 * ```
 */
exports.invalidate = {
    /** Invalidate getAllRecord queries */ getAllRecord: {
        /** Invalidate all getAllRecord queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.getAllRecordKeys.all,
        }),
        /** Invalidate getAllRecord list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.getAllRecordKeys.lists(),
        }),
        /** Invalidate a specific getAllRecord */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.getAllRecordKeys.detail(id),
        }),
    },
    /** Invalidate functionApiBinding queries */ functionApiBinding: {
        /** Invalidate all functionApiBinding queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionApiBindingKeys.all,
        }),
        /** Invalidate functionApiBinding list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionApiBindingKeys.lists(),
        }),
        /** Invalidate a specific functionApiBinding */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionApiBindingKeys.detail(id),
        }),
    },
    /** Invalidate functionDeployment queries */ functionDeployment: {
        /** Invalidate all functionDeployment queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionDeploymentKeys.all,
        }),
        /** Invalidate functionDeployment list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionDeploymentKeys.lists(),
        }),
        /** Invalidate a specific functionDeployment */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionDeploymentKeys.detail(id),
        }),
    },
    /** Invalidate resource queries */ resource: {
        /** Invalidate all resource queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.resourceKeys.all,
        }),
        /** Invalidate resource list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.resourceKeys.lists(),
        }),
        /** Invalidate a specific resource */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.resourceKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphRef queries */ functionGraphRef: {
        /** Invalidate all functionGraphRef queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphRefKeys.all,
        }),
        /** Invalidate functionGraphRef list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphRefKeys.lists(),
        }),
        /** Invalidate a specific functionGraphRef */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphRefKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphStore queries */ functionGraphStore: {
        /** Invalidate all functionGraphStore queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphStoreKeys.all,
        }),
        /** Invalidate functionGraphStore list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphStoreKeys.lists(),
        }),
        /** Invalidate a specific functionGraphStore */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphStoreKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphObject queries */ functionGraphObject: {
        /** Invalidate all functionGraphObject queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphObjectKeys.all,
        }),
        /** Invalidate functionGraphObject list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphObjectKeys.lists(),
        }),
        /** Invalidate a specific functionGraphObject */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphObjectKeys.detail(id),
        }),
    },
    /** Invalidate functionDeploymentEvent queries */ functionDeploymentEvent: {
        /** Invalidate all functionDeploymentEvent queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionDeploymentEventKeys.all,
        }),
        /** Invalidate functionDeploymentEvent list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionDeploymentEventKeys.lists(),
        }),
        /** Invalidate a specific functionDeploymentEvent */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionDeploymentEventKeys.detail(id),
        }),
    },
    /** Invalidate orgFunctionExecutionLog queries */ orgFunctionExecutionLog: {
        /** Invalidate all orgFunctionExecutionLog queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.orgFunctionExecutionLogKeys.all,
        }),
        /** Invalidate orgFunctionExecutionLog list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.orgFunctionExecutionLogKeys.lists(),
        }),
        /** Invalidate a specific orgFunctionExecutionLog */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.orgFunctionExecutionLogKeys.detail(id),
        }),
    },
    /** Invalidate resourceEvent queries */ resourceEvent: {
        /** Invalidate all resourceEvent queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.resourceEventKeys.all,
        }),
        /** Invalidate resourceEvent list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.resourceEventKeys.lists(),
        }),
        /** Invalidate a specific resourceEvent */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.resourceEventKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphExecutionOutput queries */ functionGraphExecutionOutput: {
        /** Invalidate all functionGraphExecutionOutput queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphExecutionOutputKeys.all,
        }),
        /** Invalidate functionGraphExecutionOutput list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphExecutionOutputKeys.lists(),
        }),
        /** Invalidate a specific functionGraphExecutionOutput */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphExecutionOutputKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphCommit queries */ functionGraphCommit: {
        /** Invalidate all functionGraphCommit queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphCommitKeys.all,
        }),
        /** Invalidate functionGraphCommit list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphCommitKeys.lists(),
        }),
        /** Invalidate a specific functionGraphCommit */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphCommitKeys.detail(id),
        }),
    },
    /** Invalidate secretDefinition queries */ secretDefinition: {
        /** Invalidate all secretDefinition queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.secretDefinitionKeys.all,
        }),
        /** Invalidate secretDefinition list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.secretDefinitionKeys.lists(),
        }),
        /** Invalidate a specific secretDefinition */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.secretDefinitionKeys.detail(id),
        }),
    },
    /** Invalidate functionExecutionLog queries */ functionExecutionLog: {
        /** Invalidate all functionExecutionLog queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionExecutionLogKeys.all,
        }),
        /** Invalidate functionExecutionLog list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionExecutionLogKeys.lists(),
        }),
        /** Invalidate a specific functionExecutionLog */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionExecutionLogKeys.detail(id),
        }),
    },
    /** Invalidate functionGraph queries */ functionGraph: {
        /** Invalidate all functionGraph queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphKeys.all,
        }),
        /** Invalidate functionGraph list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphKeys.lists(),
        }),
        /** Invalidate a specific functionGraph */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphExecutionNodeState queries */ functionGraphExecutionNodeState: {
        /** Invalidate all functionGraphExecutionNodeState queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphExecutionNodeStateKeys.all,
        }),
        /** Invalidate functionGraphExecutionNodeState list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphExecutionNodeStateKeys.lists(),
        }),
        /** Invalidate a specific functionGraphExecutionNodeState */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphExecutionNodeStateKeys.detail(id),
        }),
    },
    /** Invalidate platformNamespace queries */ platformNamespace: {
        /** Invalidate all platformNamespace queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformNamespaceKeys.all,
        }),
        /** Invalidate platformNamespace list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformNamespaceKeys.lists(),
        }),
        /** Invalidate a specific platformNamespace */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformNamespaceKeys.detail(id),
        }),
    },
    /** Invalidate orgFunctionInvocation queries */ orgFunctionInvocation: {
        /** Invalidate all orgFunctionInvocation queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.orgFunctionInvocationKeys.all,
        }),
        /** Invalidate orgFunctionInvocation list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.orgFunctionInvocationKeys.lists(),
        }),
        /** Invalidate a specific orgFunctionInvocation */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.orgFunctionInvocationKeys.detail(id),
        }),
    },
    /** Invalidate functionInvocation queries */ functionInvocation: {
        /** Invalidate all functionInvocation queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionInvocationKeys.all,
        }),
        /** Invalidate functionInvocation list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionInvocationKeys.lists(),
        }),
        /** Invalidate a specific functionInvocation */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionInvocationKeys.detail(id),
        }),
    },
    /** Invalidate platformNamespaceEvent queries */ platformNamespaceEvent: {
        /** Invalidate all platformNamespaceEvent queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformNamespaceEventKeys.all,
        }),
        /** Invalidate platformNamespaceEvent list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformNamespaceEventKeys.lists(),
        }),
        /** Invalidate a specific platformNamespaceEvent */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformNamespaceEventKeys.detail(id),
        }),
    },
    /** Invalidate functionGraphExecution queries */ functionGraphExecution: {
        /** Invalidate all functionGraphExecution queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphExecutionKeys.all,
        }),
        /** Invalidate functionGraphExecution list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphExecutionKeys.lists(),
        }),
        /** Invalidate a specific functionGraphExecution */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionGraphExecutionKeys.detail(id),
        }),
    },
    /** Invalidate functionDefinition queries */ functionDefinition: {
        /** Invalidate all functionDefinition queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionDefinitionKeys.all,
        }),
        /** Invalidate functionDefinition list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionDefinitionKeys.lists(),
        }),
        /** Invalidate a specific functionDefinition */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.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).
 */
exports.remove = {
    /** Remove getAllRecord from cache */ getAllRecord: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.getAllRecordKeys.detail(id),
        });
    },
    /** Remove functionApiBinding from cache */ functionApiBinding: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionApiBindingKeys.detail(id),
        });
    },
    /** Remove functionDeployment from cache */ functionDeployment: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionDeploymentKeys.detail(id),
        });
    },
    /** Remove resource from cache */ resource: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.resourceKeys.detail(id),
        });
    },
    /** Remove functionGraphRef from cache */ functionGraphRef: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionGraphRefKeys.detail(id),
        });
    },
    /** Remove functionGraphStore from cache */ functionGraphStore: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionGraphStoreKeys.detail(id),
        });
    },
    /** Remove functionGraphObject from cache */ functionGraphObject: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionGraphObjectKeys.detail(id),
        });
    },
    /** Remove functionDeploymentEvent from cache */ functionDeploymentEvent: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionDeploymentEventKeys.detail(id),
        });
    },
    /** Remove orgFunctionExecutionLog from cache */ orgFunctionExecutionLog: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.orgFunctionExecutionLogKeys.detail(id),
        });
    },
    /** Remove resourceEvent from cache */ resourceEvent: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.resourceEventKeys.detail(id),
        });
    },
    /** Remove functionGraphExecutionOutput from cache */ functionGraphExecutionOutput: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionGraphExecutionOutputKeys.detail(id),
        });
    },
    /** Remove functionGraphCommit from cache */ functionGraphCommit: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionGraphCommitKeys.detail(id),
        });
    },
    /** Remove secretDefinition from cache */ secretDefinition: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.secretDefinitionKeys.detail(id),
        });
    },
    /** Remove functionExecutionLog from cache */ functionExecutionLog: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionExecutionLogKeys.detail(id),
        });
    },
    /** Remove functionGraph from cache */ functionGraph: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionGraphKeys.detail(id),
        });
    },
    /** Remove functionGraphExecutionNodeState from cache */ functionGraphExecutionNodeState: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionGraphExecutionNodeStateKeys.detail(id),
        });
    },
    /** Remove platformNamespace from cache */ platformNamespace: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.platformNamespaceKeys.detail(id),
        });
    },
    /** Remove orgFunctionInvocation from cache */ orgFunctionInvocation: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.orgFunctionInvocationKeys.detail(id),
        });
    },
    /** Remove functionInvocation from cache */ functionInvocation: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionInvocationKeys.detail(id),
        });
    },
    /** Remove platformNamespaceEvent from cache */ platformNamespaceEvent: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.platformNamespaceEventKeys.detail(id),
        });
    },
    /** Remove functionGraphExecution from cache */ functionGraphExecution: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionGraphExecutionKeys.detail(id),
        });
    },
    /** Remove functionDefinition from cache */ functionDefinition: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionDefinitionKeys.detail(id),
        });
    },
};
