/**
 * Cache invalidation helpers
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { appLimitCapsDefaultKeys, orgLimitCapsDefaultKeys, appLimitCapKeys, orgLimitCapKeys, appLimitDefaultKeys, appLimitCreditKeys, appLimitCreditCodeItemKeys, appLimitCreditRedemptionKeys, orgLimitDefaultKeys, orgLimitCreditKeys, appLimitWarningKeys, orgLimitWarningKeys, appLimitCreditCodeKeys, appLimitEventKeys, orgLimitEventKeys, appLimitKeys, orgLimitAggregateKeys, orgLimitKeys, } 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 appLimitCapsDefault queries */ appLimitCapsDefault: {
        /** Invalidate all appLimitCapsDefault queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCapsDefaultKeys.all,
        }),
        /** Invalidate appLimitCapsDefault list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCapsDefaultKeys.lists(),
        }),
        /** Invalidate a specific appLimitCapsDefault */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitCapsDefaultKeys.detail(id),
        }),
    },
    /** Invalidate orgLimitCapsDefault queries */ orgLimitCapsDefault: {
        /** Invalidate all orgLimitCapsDefault queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitCapsDefaultKeys.all,
        }),
        /** Invalidate orgLimitCapsDefault list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitCapsDefaultKeys.lists(),
        }),
        /** Invalidate a specific orgLimitCapsDefault */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgLimitCapsDefaultKeys.detail(id),
        }),
    },
    /** Invalidate appLimitCap queries */ appLimitCap: {
        /** Invalidate all appLimitCap queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCapKeys.all,
        }),
        /** Invalidate appLimitCap list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCapKeys.lists(),
        }),
        /** Invalidate a specific appLimitCap */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitCapKeys.detail(id),
        }),
    },
    /** Invalidate orgLimitCap queries */ orgLimitCap: {
        /** Invalidate all orgLimitCap queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitCapKeys.all,
        }),
        /** Invalidate orgLimitCap list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitCapKeys.lists(),
        }),
        /** Invalidate a specific orgLimitCap */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgLimitCapKeys.detail(id),
        }),
    },
    /** Invalidate appLimitDefault queries */ appLimitDefault: {
        /** Invalidate all appLimitDefault queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitDefaultKeys.all,
        }),
        /** Invalidate appLimitDefault list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitDefaultKeys.lists(),
        }),
        /** Invalidate a specific appLimitDefault */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitDefaultKeys.detail(id),
        }),
    },
    /** Invalidate appLimitCredit queries */ appLimitCredit: {
        /** Invalidate all appLimitCredit queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCreditKeys.all,
        }),
        /** Invalidate appLimitCredit list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCreditKeys.lists(),
        }),
        /** Invalidate a specific appLimitCredit */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitCreditKeys.detail(id),
        }),
    },
    /** Invalidate appLimitCreditCodeItem queries */ appLimitCreditCodeItem: {
        /** Invalidate all appLimitCreditCodeItem queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCreditCodeItemKeys.all,
        }),
        /** Invalidate appLimitCreditCodeItem list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCreditCodeItemKeys.lists(),
        }),
        /** Invalidate a specific appLimitCreditCodeItem */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitCreditCodeItemKeys.detail(id),
        }),
    },
    /** Invalidate appLimitCreditRedemption queries */ appLimitCreditRedemption: {
        /** Invalidate all appLimitCreditRedemption queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCreditRedemptionKeys.all,
        }),
        /** Invalidate appLimitCreditRedemption list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCreditRedemptionKeys.lists(),
        }),
        /** Invalidate a specific appLimitCreditRedemption */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitCreditRedemptionKeys.detail(id),
        }),
    },
    /** Invalidate orgLimitDefault queries */ orgLimitDefault: {
        /** Invalidate all orgLimitDefault queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitDefaultKeys.all,
        }),
        /** Invalidate orgLimitDefault list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitDefaultKeys.lists(),
        }),
        /** Invalidate a specific orgLimitDefault */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgLimitDefaultKeys.detail(id),
        }),
    },
    /** Invalidate orgLimitCredit queries */ orgLimitCredit: {
        /** Invalidate all orgLimitCredit queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitCreditKeys.all,
        }),
        /** Invalidate orgLimitCredit list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitCreditKeys.lists(),
        }),
        /** Invalidate a specific orgLimitCredit */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgLimitCreditKeys.detail(id),
        }),
    },
    /** Invalidate appLimitWarning queries */ appLimitWarning: {
        /** Invalidate all appLimitWarning queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitWarningKeys.all,
        }),
        /** Invalidate appLimitWarning list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitWarningKeys.lists(),
        }),
        /** Invalidate a specific appLimitWarning */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitWarningKeys.detail(id),
        }),
    },
    /** Invalidate orgLimitWarning queries */ orgLimitWarning: {
        /** Invalidate all orgLimitWarning queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitWarningKeys.all,
        }),
        /** Invalidate orgLimitWarning list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitWarningKeys.lists(),
        }),
        /** Invalidate a specific orgLimitWarning */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgLimitWarningKeys.detail(id),
        }),
    },
    /** Invalidate appLimitCreditCode queries */ appLimitCreditCode: {
        /** Invalidate all appLimitCreditCode queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCreditCodeKeys.all,
        }),
        /** Invalidate appLimitCreditCode list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitCreditCodeKeys.lists(),
        }),
        /** Invalidate a specific appLimitCreditCode */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitCreditCodeKeys.detail(id),
        }),
    },
    /** Invalidate appLimitEvent queries */ appLimitEvent: {
        /** Invalidate all appLimitEvent queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitEventKeys.all,
        }),
        /** Invalidate appLimitEvent list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitEventKeys.lists(),
        }),
        /** Invalidate a specific appLimitEvent */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitEventKeys.detail(id),
        }),
    },
    /** Invalidate orgLimitEvent queries */ orgLimitEvent: {
        /** Invalidate all orgLimitEvent queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitEventKeys.all,
        }),
        /** Invalidate orgLimitEvent list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitEventKeys.lists(),
        }),
        /** Invalidate a specific orgLimitEvent */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgLimitEventKeys.detail(id),
        }),
    },
    /** Invalidate appLimit queries */ appLimit: {
        /** Invalidate all appLimit queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitKeys.all,
        }),
        /** Invalidate appLimit list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appLimitKeys.lists(),
        }),
        /** Invalidate a specific appLimit */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appLimitKeys.detail(id),
        }),
    },
    /** Invalidate orgLimitAggregate queries */ orgLimitAggregate: {
        /** Invalidate all orgLimitAggregate queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitAggregateKeys.all,
        }),
        /** Invalidate orgLimitAggregate list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitAggregateKeys.lists(),
        }),
        /** Invalidate a specific orgLimitAggregate */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgLimitAggregateKeys.detail(id),
        }),
    },
    /** Invalidate orgLimit queries */ orgLimit: {
        /** Invalidate all orgLimit queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitKeys.all,
        }),
        /** Invalidate orgLimit list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: orgLimitKeys.lists(),
        }),
        /** Invalidate a specific orgLimit */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: orgLimitKeys.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 appLimitCapsDefault from cache */ appLimitCapsDefault: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitCapsDefaultKeys.detail(id),
        });
    },
    /** Remove orgLimitCapsDefault from cache */ orgLimitCapsDefault: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgLimitCapsDefaultKeys.detail(id),
        });
    },
    /** Remove appLimitCap from cache */ appLimitCap: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitCapKeys.detail(id),
        });
    },
    /** Remove orgLimitCap from cache */ orgLimitCap: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgLimitCapKeys.detail(id),
        });
    },
    /** Remove appLimitDefault from cache */ appLimitDefault: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitDefaultKeys.detail(id),
        });
    },
    /** Remove appLimitCredit from cache */ appLimitCredit: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitCreditKeys.detail(id),
        });
    },
    /** Remove appLimitCreditCodeItem from cache */ appLimitCreditCodeItem: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitCreditCodeItemKeys.detail(id),
        });
    },
    /** Remove appLimitCreditRedemption from cache */ appLimitCreditRedemption: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitCreditRedemptionKeys.detail(id),
        });
    },
    /** Remove orgLimitDefault from cache */ orgLimitDefault: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgLimitDefaultKeys.detail(id),
        });
    },
    /** Remove orgLimitCredit from cache */ orgLimitCredit: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgLimitCreditKeys.detail(id),
        });
    },
    /** Remove appLimitWarning from cache */ appLimitWarning: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitWarningKeys.detail(id),
        });
    },
    /** Remove orgLimitWarning from cache */ orgLimitWarning: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgLimitWarningKeys.detail(id),
        });
    },
    /** Remove appLimitCreditCode from cache */ appLimitCreditCode: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitCreditCodeKeys.detail(id),
        });
    },
    /** Remove appLimitEvent from cache */ appLimitEvent: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitEventKeys.detail(id),
        });
    },
    /** Remove orgLimitEvent from cache */ orgLimitEvent: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgLimitEventKeys.detail(id),
        });
    },
    /** Remove appLimit from cache */ appLimit: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appLimitKeys.detail(id),
        });
    },
    /** Remove orgLimitAggregate from cache */ orgLimitAggregate: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgLimitAggregateKeys.detail(id),
        });
    },
    /** Remove orgLimit from cache */ orgLimit: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: orgLimitKeys.detail(id),
        });
    },
};
