"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 api queries */ api: {
        /** Invalidate all api queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiKeys.all,
        }),
        /** Invalidate api list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiKeys.lists(),
        }),
        /** Invalidate a specific api */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiKeys.detail(id),
        }),
    },
    /** Invalidate apiModule queries */ apiModule: {
        /** Invalidate all apiModule queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiModuleKeys.all,
        }),
        /** Invalidate apiModule list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiModuleKeys.lists(),
        }),
        /** Invalidate a specific apiModule */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiModuleKeys.detail(id),
        }),
    },
    /** Invalidate apiSchema queries */ apiSchema: {
        /** Invalidate all apiSchema queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiSchemaKeys.all,
        }),
        /** Invalidate apiSchema list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiSchemaKeys.lists(),
        }),
        /** Invalidate a specific apiSchema */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiSchemaKeys.detail(id),
        }),
    },
    /** Invalidate apiSetting queries */ apiSetting: {
        /** Invalidate all apiSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiSettingKeys.all,
        }),
        /** Invalidate apiSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiSettingKeys.lists(),
        }),
        /** Invalidate a specific apiSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.apiSettingKeys.detail(id),
        }),
    },
    /** Invalidate app queries */ app: {
        /** Invalidate all app queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.appKeys.all,
        }),
        /** Invalidate app list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.appKeys.lists(),
        }),
        /** Invalidate a specific app */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.appKeys.detail(id),
        }),
    },
    /** Invalidate astMigration queries */ astMigration: {
        /** Invalidate all astMigration queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.astMigrationKeys.all,
        }),
        /** Invalidate astMigration list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.astMigrationKeys.lists(),
        }),
        /** Invalidate a specific astMigration */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.astMigrationKeys.detail(id),
        }),
    },
    /** Invalidate checkConstraint queries */ checkConstraint: {
        /** Invalidate all checkConstraint queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.checkConstraintKeys.all,
        }),
        /** Invalidate checkConstraint list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.checkConstraintKeys.lists(),
        }),
        /** Invalidate a specific checkConstraint */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.checkConstraintKeys.detail(id),
        }),
    },
    /** Invalidate compositeType queries */ compositeType: {
        /** Invalidate all compositeType queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.compositeTypeKeys.all,
        }),
        /** Invalidate compositeType list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.compositeTypeKeys.lists(),
        }),
        /** Invalidate a specific compositeType */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.compositeTypeKeys.detail(id),
        }),
    },
    /** Invalidate corsSetting queries */ corsSetting: {
        /** Invalidate all corsSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.corsSettingKeys.all,
        }),
        /** Invalidate corsSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.corsSettingKeys.lists(),
        }),
        /** Invalidate a specific corsSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.corsSettingKeys.detail(id),
        }),
    },
    /** Invalidate database queries */ database: {
        /** Invalidate all database queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.databaseKeys.all,
        }),
        /** Invalidate database list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.databaseKeys.lists(),
        }),
        /** Invalidate a specific database */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.databaseKeys.detail(id),
        }),
    },
    /** Invalidate databaseSetting queries */ databaseSetting: {
        /** Invalidate all databaseSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.databaseSettingKeys.all,
        }),
        /** Invalidate databaseSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.databaseSettingKeys.lists(),
        }),
        /** Invalidate a specific databaseSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.databaseSettingKeys.detail(id),
        }),
    },
    /** Invalidate databaseTransfer queries */ databaseTransfer: {
        /** Invalidate all databaseTransfer queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.databaseTransferKeys.all,
        }),
        /** Invalidate databaseTransfer list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.databaseTransferKeys.lists(),
        }),
        /** Invalidate a specific databaseTransfer */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.databaseTransferKeys.detail(id),
        }),
    },
    /** Invalidate defaultPrivilege queries */ defaultPrivilege: {
        /** Invalidate all defaultPrivilege queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.defaultPrivilegeKeys.all,
        }),
        /** Invalidate defaultPrivilege list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.defaultPrivilegeKeys.lists(),
        }),
        /** Invalidate a specific defaultPrivilege */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.defaultPrivilegeKeys.detail(id),
        }),
    },
    /** Invalidate domain queries */ domain: {
        /** Invalidate all domain queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.domainKeys.all,
        }),
        /** Invalidate domain list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.domainKeys.lists(),
        }),
        /** Invalidate a specific domain */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.domainKeys.detail(id),
        }),
    },
    /** Invalidate embeddingChunk queries */ embeddingChunk: {
        /** Invalidate all embeddingChunk queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.embeddingChunkKeys.all,
        }),
        /** Invalidate embeddingChunk list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.embeddingChunkKeys.lists(),
        }),
        /** Invalidate a specific embeddingChunk */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.embeddingChunkKeys.detail(id),
        }),
    },
    /** Invalidate enum queries */ enum: {
        /** Invalidate all enum queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.enumKeys.all,
        }),
        /** Invalidate enum list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.enumKeys.lists(),
        }),
        /** Invalidate a specific enum */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.enumKeys.detail(id),
        }),
    },
    /** Invalidate field queries */ field: {
        /** Invalidate all field queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.fieldKeys.all,
        }),
        /** Invalidate field list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.fieldKeys.lists(),
        }),
        /** Invalidate a specific field */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.fieldKeys.detail(id),
        }),
    },
    /** Invalidate foreignKeyConstraint queries */ foreignKeyConstraint: {
        /** Invalidate all foreignKeyConstraint queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.foreignKeyConstraintKeys.all,
        }),
        /** Invalidate foreignKeyConstraint list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.foreignKeyConstraintKeys.lists(),
        }),
        /** Invalidate a specific foreignKeyConstraint */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.foreignKeyConstraintKeys.detail(id),
        }),
    },
    /** Invalidate fullTextSearch queries */ fullTextSearch: {
        /** Invalidate all fullTextSearch queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.fullTextSearchKeys.all,
        }),
        /** Invalidate fullTextSearch list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.fullTextSearchKeys.lists(),
        }),
        /** Invalidate a specific fullTextSearch */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.fullTextSearchKeys.detail(id),
        }),
    },
    /** Invalidate function queries */ function: {
        /** Invalidate all function queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionKeys.all,
        }),
        /** Invalidate function list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionKeys.lists(),
        }),
        /** Invalidate a specific function */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.functionKeys.detail(id),
        }),
    },
    /** Invalidate httpRoute queries */ httpRoute: {
        /** Invalidate all httpRoute queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.httpRouteKeys.all,
        }),
        /** Invalidate httpRoute list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.httpRouteKeys.lists(),
        }),
        /** Invalidate a specific httpRoute */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.httpRouteKeys.detail(id),
        }),
    },
    /** Invalidate index queries */ index: {
        /** Invalidate all index queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.indexKeys.all,
        }),
        /** Invalidate index list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.indexKeys.lists(),
        }),
        /** Invalidate a specific index */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.indexKeys.detail(id),
        }),
    },
    /** Invalidate managedDomain queries */ managedDomain: {
        /** Invalidate all managedDomain queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.managedDomainKeys.all,
        }),
        /** Invalidate managedDomain list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.managedDomainKeys.lists(),
        }),
        /** Invalidate a specific managedDomain */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.managedDomainKeys.detail(id),
        }),
    },
    /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: {
        /** Invalidate all nodeTypeRegistry queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.nodeTypeRegistryKeys.all,
        }),
        /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.nodeTypeRegistryKeys.lists(),
        }),
        /** Invalidate a specific nodeTypeRegistry */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.nodeTypeRegistryKeys.detail(id),
        }),
    },
    /** Invalidate partition queries */ partition: {
        /** Invalidate all partition queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.partitionKeys.all,
        }),
        /** Invalidate partition list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.partitionKeys.lists(),
        }),
        /** Invalidate a specific partition */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.partitionKeys.detail(id),
        }),
    },
    /** Invalidate policy queries */ policy: {
        /** Invalidate all policy queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.policyKeys.all,
        }),
        /** Invalidate policy list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.policyKeys.lists(),
        }),
        /** Invalidate a specific policy */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.policyKeys.detail(id),
        }),
    },
    /** Invalidate primaryKeyConstraint queries */ primaryKeyConstraint: {
        /** Invalidate all primaryKeyConstraint queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.primaryKeyConstraintKeys.all,
        }),
        /** Invalidate primaryKeyConstraint list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.primaryKeyConstraintKeys.lists(),
        }),
        /** Invalidate a specific primaryKeyConstraint */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.primaryKeyConstraintKeys.detail(id),
        }),
    },
    /** Invalidate pubkeySetting queries */ pubkeySetting: {
        /** Invalidate all pubkeySetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.pubkeySettingKeys.all,
        }),
        /** Invalidate pubkeySetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.pubkeySettingKeys.lists(),
        }),
        /** Invalidate a specific pubkeySetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.pubkeySettingKeys.detail(id),
        }),
    },
    /** Invalidate rlsSetting queries */ rlsSetting: {
        /** Invalidate all rlsSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.rlsSettingKeys.all,
        }),
        /** Invalidate rlsSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.rlsSettingKeys.lists(),
        }),
        /** Invalidate a specific rlsSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.rlsSettingKeys.detail(id),
        }),
    },
    /** Invalidate schema queries */ schema: {
        /** Invalidate all schema queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.schemaKeys.all,
        }),
        /** Invalidate schema list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.schemaKeys.lists(),
        }),
        /** Invalidate a specific schema */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.schemaKeys.detail(id),
        }),
    },
    /** Invalidate schemaGrant queries */ schemaGrant: {
        /** Invalidate all schemaGrant queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.schemaGrantKeys.all,
        }),
        /** Invalidate schemaGrant list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.schemaGrantKeys.lists(),
        }),
        /** Invalidate a specific schemaGrant */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.schemaGrantKeys.detail(id),
        }),
    },
    /** Invalidate site queries */ site: {
        /** Invalidate all site queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteKeys.all,
        }),
        /** Invalidate site list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteKeys.lists(),
        }),
        /** Invalidate a specific site */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteKeys.detail(id),
        }),
    },
    /** Invalidate siteMetadatum queries */ siteMetadatum: {
        /** Invalidate all siteMetadatum queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteMetadatumKeys.all,
        }),
        /** Invalidate siteMetadatum list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteMetadatumKeys.lists(),
        }),
        /** Invalidate a specific siteMetadatum */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteMetadatumKeys.detail(id),
        }),
    },
    /** Invalidate siteModule queries */ siteModule: {
        /** Invalidate all siteModule queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteModuleKeys.all,
        }),
        /** Invalidate siteModule list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteModuleKeys.lists(),
        }),
        /** Invalidate a specific siteModule */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteModuleKeys.detail(id),
        }),
    },
    /** Invalidate siteTheme queries */ siteTheme: {
        /** Invalidate all siteTheme queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteThemeKeys.all,
        }),
        /** Invalidate siteTheme list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteThemeKeys.lists(),
        }),
        /** Invalidate a specific siteTheme */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.siteThemeKeys.detail(id),
        }),
    },
    /** Invalidate spatialRelation queries */ spatialRelation: {
        /** Invalidate all spatialRelation queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.spatialRelationKeys.all,
        }),
        /** Invalidate spatialRelation list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.spatialRelationKeys.lists(),
        }),
        /** Invalidate a specific spatialRelation */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.spatialRelationKeys.detail(id),
        }),
    },
    /** Invalidate sqlAction queries */ sqlAction: {
        /** Invalidate all sqlAction queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.sqlActionKeys.all,
        }),
        /** Invalidate sqlAction list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.sqlActionKeys.lists(),
        }),
        /** Invalidate a specific sqlAction */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.sqlActionKeys.detail(id),
        }),
    },
    /** Invalidate table queries */ table: {
        /** Invalidate all table queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.tableKeys.all,
        }),
        /** Invalidate table list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.tableKeys.lists(),
        }),
        /** Invalidate a specific table */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.tableKeys.detail(id),
        }),
    },
    /** Invalidate tableGrant queries */ tableGrant: {
        /** Invalidate all tableGrant queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.tableGrantKeys.all,
        }),
        /** Invalidate tableGrant list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.tableGrantKeys.lists(),
        }),
        /** Invalidate a specific tableGrant */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.tableGrantKeys.detail(id),
        }),
    },
    /** Invalidate trigger queries */ trigger: {
        /** Invalidate all trigger queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.triggerKeys.all,
        }),
        /** Invalidate trigger list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.triggerKeys.lists(),
        }),
        /** Invalidate a specific trigger */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.triggerKeys.detail(id),
        }),
    },
    /** Invalidate triggerFunction queries */ triggerFunction: {
        /** Invalidate all triggerFunction queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.triggerFunctionKeys.all,
        }),
        /** Invalidate triggerFunction list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.triggerFunctionKeys.lists(),
        }),
        /** Invalidate a specific triggerFunction */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.triggerFunctionKeys.detail(id),
        }),
    },
    /** Invalidate uniqueConstraint queries */ uniqueConstraint: {
        /** Invalidate all uniqueConstraint queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.uniqueConstraintKeys.all,
        }),
        /** Invalidate uniqueConstraint list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.uniqueConstraintKeys.lists(),
        }),
        /** Invalidate a specific uniqueConstraint */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.uniqueConstraintKeys.detail(id),
        }),
    },
    /** Invalidate view queries */ view: {
        /** Invalidate all view queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewKeys.all,
        }),
        /** Invalidate view list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewKeys.lists(),
        }),
        /** Invalidate a specific view */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewKeys.detail(id),
        }),
    },
    /** Invalidate viewGrant queries */ viewGrant: {
        /** Invalidate all viewGrant queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewGrantKeys.all,
        }),
        /** Invalidate viewGrant list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewGrantKeys.lists(),
        }),
        /** Invalidate a specific viewGrant */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewGrantKeys.detail(id),
        }),
    },
    /** Invalidate viewRule queries */ viewRule: {
        /** Invalidate all viewRule queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewRuleKeys.all,
        }),
        /** Invalidate viewRule list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewRuleKeys.lists(),
        }),
        /** Invalidate a specific viewRule */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewRuleKeys.detail(id),
        }),
    },
    /** Invalidate viewTable queries */ viewTable: {
        /** Invalidate all viewTable queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewTableKeys.all,
        }),
        /** Invalidate viewTable list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewTableKeys.lists(),
        }),
        /** Invalidate a specific viewTable */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.viewTableKeys.detail(id),
        }),
    },
    /** Invalidate webauthnSetting queries */ webauthnSetting: {
        /** Invalidate all webauthnSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.webauthnSettingKeys.all,
        }),
        /** Invalidate webauthnSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.webauthnSettingKeys.lists(),
        }),
        /** Invalidate a specific webauthnSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.webauthnSettingKeys.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 api from cache */ api: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.apiKeys.detail(id),
        });
    },
    /** Remove apiModule from cache */ apiModule: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.apiModuleKeys.detail(id),
        });
    },
    /** Remove apiSchema from cache */ apiSchema: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.apiSchemaKeys.detail(id),
        });
    },
    /** Remove apiSetting from cache */ apiSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.apiSettingKeys.detail(id),
        });
    },
    /** Remove app from cache */ app: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.appKeys.detail(id),
        });
    },
    /** Remove astMigration from cache */ astMigration: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.astMigrationKeys.detail(id),
        });
    },
    /** Remove checkConstraint from cache */ checkConstraint: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.checkConstraintKeys.detail(id),
        });
    },
    /** Remove compositeType from cache */ compositeType: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.compositeTypeKeys.detail(id),
        });
    },
    /** Remove corsSetting from cache */ corsSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.corsSettingKeys.detail(id),
        });
    },
    /** Remove database from cache */ database: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.databaseKeys.detail(id),
        });
    },
    /** Remove databaseSetting from cache */ databaseSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.databaseSettingKeys.detail(id),
        });
    },
    /** Remove databaseTransfer from cache */ databaseTransfer: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.databaseTransferKeys.detail(id),
        });
    },
    /** Remove defaultPrivilege from cache */ defaultPrivilege: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.defaultPrivilegeKeys.detail(id),
        });
    },
    /** Remove domain from cache */ domain: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.domainKeys.detail(id),
        });
    },
    /** Remove embeddingChunk from cache */ embeddingChunk: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.embeddingChunkKeys.detail(id),
        });
    },
    /** Remove enum from cache */ enum: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.enumKeys.detail(id),
        });
    },
    /** Remove field from cache */ field: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.fieldKeys.detail(id),
        });
    },
    /** Remove foreignKeyConstraint from cache */ foreignKeyConstraint: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.foreignKeyConstraintKeys.detail(id),
        });
    },
    /** Remove fullTextSearch from cache */ fullTextSearch: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.fullTextSearchKeys.detail(id),
        });
    },
    /** Remove function from cache */ function: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.functionKeys.detail(id),
        });
    },
    /** Remove httpRoute from cache */ httpRoute: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.httpRouteKeys.detail(id),
        });
    },
    /** Remove index from cache */ index: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.indexKeys.detail(id),
        });
    },
    /** Remove managedDomain from cache */ managedDomain: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.managedDomainKeys.detail(id),
        });
    },
    /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.nodeTypeRegistryKeys.detail(id),
        });
    },
    /** Remove partition from cache */ partition: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.partitionKeys.detail(id),
        });
    },
    /** Remove policy from cache */ policy: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.policyKeys.detail(id),
        });
    },
    /** Remove primaryKeyConstraint from cache */ primaryKeyConstraint: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.primaryKeyConstraintKeys.detail(id),
        });
    },
    /** Remove pubkeySetting from cache */ pubkeySetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.pubkeySettingKeys.detail(id),
        });
    },
    /** Remove rlsSetting from cache */ rlsSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.rlsSettingKeys.detail(id),
        });
    },
    /** Remove schema from cache */ schema: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.schemaKeys.detail(id),
        });
    },
    /** Remove schemaGrant from cache */ schemaGrant: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.schemaGrantKeys.detail(id),
        });
    },
    /** Remove site from cache */ site: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.siteKeys.detail(id),
        });
    },
    /** Remove siteMetadatum from cache */ siteMetadatum: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.siteMetadatumKeys.detail(id),
        });
    },
    /** Remove siteModule from cache */ siteModule: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.siteModuleKeys.detail(id),
        });
    },
    /** Remove siteTheme from cache */ siteTheme: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.siteThemeKeys.detail(id),
        });
    },
    /** Remove spatialRelation from cache */ spatialRelation: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.spatialRelationKeys.detail(id),
        });
    },
    /** Remove sqlAction from cache */ sqlAction: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.sqlActionKeys.detail(id),
        });
    },
    /** Remove table from cache */ table: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.tableKeys.detail(id),
        });
    },
    /** Remove tableGrant from cache */ tableGrant: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.tableGrantKeys.detail(id),
        });
    },
    /** Remove trigger from cache */ trigger: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.triggerKeys.detail(id),
        });
    },
    /** Remove triggerFunction from cache */ triggerFunction: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.triggerFunctionKeys.detail(id),
        });
    },
    /** Remove uniqueConstraint from cache */ uniqueConstraint: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.uniqueConstraintKeys.detail(id),
        });
    },
    /** Remove view from cache */ view: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.viewKeys.detail(id),
        });
    },
    /** Remove viewGrant from cache */ viewGrant: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.viewGrantKeys.detail(id),
        });
    },
    /** Remove viewRule from cache */ viewRule: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.viewRuleKeys.detail(id),
        });
    },
    /** Remove viewTable from cache */ viewTable: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.viewTableKeys.detail(id),
        });
    },
    /** Remove webauthnSetting from cache */ webauthnSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.webauthnSettingKeys.detail(id),
        });
    },
};
