"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 platformConfigDefinition queries */ platformConfigDefinition: {
        /** Invalidate all platformConfigDefinition queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformConfigDefinitionKeys.all,
        }),
        /** Invalidate platformConfigDefinition list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformConfigDefinitionKeys.lists(),
        }),
        /** Invalidate a specific platformConfigDefinition */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformConfigDefinitionKeys.detail(id),
        }),
    },
    /** Invalidate platformConfig queries */ platformConfig: {
        /** Invalidate all platformConfig queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformConfigKeys.all,
        }),
        /** Invalidate platformConfig list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformConfigKeys.lists(),
        }),
        /** Invalidate a specific platformConfig */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: query_keys_1.platformConfigKeys.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 platformConfigDefinition from cache */ platformConfigDefinition: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.platformConfigDefinitionKeys.detail(id),
        });
    },
    /** Remove platformConfig from cache */ platformConfig: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: query_keys_1.platformConfigKeys.detail(id),
        });
    },
};
