/**
 * Cache invalidation helpers
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { platformConfigDefinitionKeys, platformConfigKeys } 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 platformConfigDefinition queries */ platformConfigDefinition: {
        /** Invalidate all platformConfigDefinition queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: platformConfigDefinitionKeys.all,
        }),
        /** Invalidate platformConfigDefinition list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: platformConfigDefinitionKeys.lists(),
        }),
        /** Invalidate a specific platformConfigDefinition */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: platformConfigDefinitionKeys.detail(id),
        }),
    },
    /** Invalidate platformConfig queries */ platformConfig: {
        /** Invalidate all platformConfig queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: platformConfigKeys.all,
        }),
        /** Invalidate platformConfig list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: platformConfigKeys.lists(),
        }),
        /** Invalidate a specific platformConfig */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: 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).
 */
export const remove = {
    /** Remove platformConfigDefinition from cache */ platformConfigDefinition: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: platformConfigDefinitionKeys.detail(id),
        });
    },
    /** Remove platformConfig from cache */ platformConfig: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: platformConfigKeys.detail(id),
        });
    },
};
