"use strict";
/**
 * Centralized mutation key factory
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.mutationKeys = exports.customMutationKeys = exports.orgLimitWarningMutationKeys = exports.orgLimitEventMutationKeys = exports.orgLimitDefaultMutationKeys = exports.orgLimitCreditMutationKeys = exports.orgLimitMutationKeys = exports.orgLimitCapsDefaultMutationKeys = exports.orgLimitCapMutationKeys = exports.orgLimitAggregateMutationKeys = exports.appLimitWarningMutationKeys = exports.appLimitEventMutationKeys = exports.appLimitDefaultMutationKeys = exports.appLimitCreditRedemptionMutationKeys = exports.appLimitCreditMutationKeys = exports.appLimitCreditCodeItemMutationKeys = exports.appLimitCreditCodeMutationKeys = exports.appLimitMutationKeys = exports.appLimitCapsDefaultMutationKeys = exports.appLimitCapMutationKeys = void 0;
// ============================================================================
// Mutation keys for tracking in-flight mutations
//
// Benefits:
// - Track mutation state with useIsMutating
// - Implement optimistic updates with proper rollback
// - Deduplicate identical mutations
// - Coordinate related mutations
// ============================================================================
// ============================================================================
// Entity Mutation Keys
// ============================================================================
exports.appLimitCapMutationKeys = {
    /** All appLimitCap mutation keys */ all: ['mutation', 'applimitcap'],
    /** Create appLimitCap mutation key */ create: () => ['mutation', 'applimitcap', 'create'],
    /** Update appLimitCap mutation key */ update: (id) => ['mutation', 'applimitcap', 'update', id],
    /** Delete appLimitCap mutation key */ delete: (id) => ['mutation', 'applimitcap', 'delete', id],
};
exports.appLimitCapsDefaultMutationKeys = {
    /** All appLimitCapsDefault mutation keys */ all: ['mutation', 'applimitcapsdefault'],
    /** Create appLimitCapsDefault mutation key */ create: () => ['mutation', 'applimitcapsdefault', 'create'],
    /** Update appLimitCapsDefault mutation key */ update: (id) => ['mutation', 'applimitcapsdefault', 'update', id],
    /** Delete appLimitCapsDefault mutation key */ delete: (id) => ['mutation', 'applimitcapsdefault', 'delete', id],
};
exports.appLimitMutationKeys = {
    /** All appLimit mutation keys */ all: ['mutation', 'applimit'],
    /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'],
    /** Update appLimit mutation key */ update: (id) => ['mutation', 'applimit', 'update', id],
    /** Delete appLimit mutation key */ delete: (id) => ['mutation', 'applimit', 'delete', id],
};
exports.appLimitCreditCodeMutationKeys = {
    /** All appLimitCreditCode mutation keys */ all: ['mutation', 'applimitcreditcode'],
    /** Create appLimitCreditCode mutation key */ create: () => ['mutation', 'applimitcreditcode', 'create'],
    /** Update appLimitCreditCode mutation key */ update: (id) => ['mutation', 'applimitcreditcode', 'update', id],
    /** Delete appLimitCreditCode mutation key */ delete: (id) => ['mutation', 'applimitcreditcode', 'delete', id],
};
exports.appLimitCreditCodeItemMutationKeys = {
    /** All appLimitCreditCodeItem mutation keys */ all: [
        'mutation',
        'applimitcreditcodeitem',
    ],
    /** Create appLimitCreditCodeItem mutation key */ create: () => ['mutation', 'applimitcreditcodeitem', 'create'],
    /** Update appLimitCreditCodeItem mutation key */ update: (id) => ['mutation', 'applimitcreditcodeitem', 'update', id],
    /** Delete appLimitCreditCodeItem mutation key */ delete: (id) => ['mutation', 'applimitcreditcodeitem', 'delete', id],
};
exports.appLimitCreditMutationKeys = {
    /** All appLimitCredit mutation keys */ all: ['mutation', 'applimitcredit'],
    /** Create appLimitCredit mutation key */ create: () => ['mutation', 'applimitcredit', 'create'],
    /** Update appLimitCredit mutation key */ update: (id) => ['mutation', 'applimitcredit', 'update', id],
    /** Delete appLimitCredit mutation key */ delete: (id) => ['mutation', 'applimitcredit', 'delete', id],
};
exports.appLimitCreditRedemptionMutationKeys = {
    /** All appLimitCreditRedemption mutation keys */ all: [
        'mutation',
        'applimitcreditredemption',
    ],
    /** Create appLimitCreditRedemption mutation key */ create: () => ['mutation', 'applimitcreditredemption', 'create'],
    /** Update appLimitCreditRedemption mutation key */ update: (id) => ['mutation', 'applimitcreditredemption', 'update', id],
    /** Delete appLimitCreditRedemption mutation key */ delete: (id) => ['mutation', 'applimitcreditredemption', 'delete', id],
};
exports.appLimitDefaultMutationKeys = {
    /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'],
    /** Create appLimitDefault mutation key */ create: () => ['mutation', 'applimitdefault', 'create'],
    /** Update appLimitDefault mutation key */ update: (id) => ['mutation', 'applimitdefault', 'update', id],
    /** Delete appLimitDefault mutation key */ delete: (id) => ['mutation', 'applimitdefault', 'delete', id],
};
exports.appLimitEventMutationKeys = {
    /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'],
    /** Create appLimitEvent mutation key */ create: () => ['mutation', 'applimitevent', 'create'],
    /** Update appLimitEvent mutation key */ update: (id) => ['mutation', 'applimitevent', 'update', id],
    /** Delete appLimitEvent mutation key */ delete: (id) => ['mutation', 'applimitevent', 'delete', id],
};
exports.appLimitWarningMutationKeys = {
    /** All appLimitWarning mutation keys */ all: ['mutation', 'applimitwarning'],
    /** Create appLimitWarning mutation key */ create: () => ['mutation', 'applimitwarning', 'create'],
    /** Update appLimitWarning mutation key */ update: (id) => ['mutation', 'applimitwarning', 'update', id],
    /** Delete appLimitWarning mutation key */ delete: (id) => ['mutation', 'applimitwarning', 'delete', id],
};
exports.orgLimitAggregateMutationKeys = {
    /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'],
    /** Create orgLimitAggregate mutation key */ create: () => ['mutation', 'orglimitaggregate', 'create'],
    /** Update orgLimitAggregate mutation key */ update: (id) => ['mutation', 'orglimitaggregate', 'update', id],
    /** Delete orgLimitAggregate mutation key */ delete: (id) => ['mutation', 'orglimitaggregate', 'delete', id],
};
exports.orgLimitCapMutationKeys = {
    /** All orgLimitCap mutation keys */ all: ['mutation', 'orglimitcap'],
    /** Create orgLimitCap mutation key */ create: () => ['mutation', 'orglimitcap', 'create'],
    /** Update orgLimitCap mutation key */ update: (id) => ['mutation', 'orglimitcap', 'update', id],
    /** Delete orgLimitCap mutation key */ delete: (id) => ['mutation', 'orglimitcap', 'delete', id],
};
exports.orgLimitCapsDefaultMutationKeys = {
    /** All orgLimitCapsDefault mutation keys */ all: ['mutation', 'orglimitcapsdefault'],
    /** Create orgLimitCapsDefault mutation key */ create: () => ['mutation', 'orglimitcapsdefault', 'create'],
    /** Update orgLimitCapsDefault mutation key */ update: (id) => ['mutation', 'orglimitcapsdefault', 'update', id],
    /** Delete orgLimitCapsDefault mutation key */ delete: (id) => ['mutation', 'orglimitcapsdefault', 'delete', id],
};
exports.orgLimitMutationKeys = {
    /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'],
    /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'],
    /** Update orgLimit mutation key */ update: (id) => ['mutation', 'orglimit', 'update', id],
    /** Delete orgLimit mutation key */ delete: (id) => ['mutation', 'orglimit', 'delete', id],
};
exports.orgLimitCreditMutationKeys = {
    /** All orgLimitCredit mutation keys */ all: ['mutation', 'orglimitcredit'],
    /** Create orgLimitCredit mutation key */ create: () => ['mutation', 'orglimitcredit', 'create'],
    /** Update orgLimitCredit mutation key */ update: (id) => ['mutation', 'orglimitcredit', 'update', id],
    /** Delete orgLimitCredit mutation key */ delete: (id) => ['mutation', 'orglimitcredit', 'delete', id],
};
exports.orgLimitDefaultMutationKeys = {
    /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'],
    /** Create orgLimitDefault mutation key */ create: () => ['mutation', 'orglimitdefault', 'create'],
    /** Update orgLimitDefault mutation key */ update: (id) => ['mutation', 'orglimitdefault', 'update', id],
    /** Delete orgLimitDefault mutation key */ delete: (id) => ['mutation', 'orglimitdefault', 'delete', id],
};
exports.orgLimitEventMutationKeys = {
    /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'],
    /** Create orgLimitEvent mutation key */ create: () => ['mutation', 'orglimitevent', 'create'],
    /** Update orgLimitEvent mutation key */ update: (id) => ['mutation', 'orglimitevent', 'update', id],
    /** Delete orgLimitEvent mutation key */ delete: (id) => ['mutation', 'orglimitevent', 'delete', id],
};
exports.orgLimitWarningMutationKeys = {
    /** All orgLimitWarning mutation keys */ all: ['mutation', 'orglimitwarning'],
    /** Create orgLimitWarning mutation key */ create: () => ['mutation', 'orglimitwarning', 'create'],
    /** Update orgLimitWarning mutation key */ update: (id) => ['mutation', 'orglimitwarning', 'update', id],
    /** Delete orgLimitWarning mutation key */ delete: (id) => ['mutation', 'orglimitwarning', 'delete', id],
};
// ============================================================================
// Custom Mutation Keys
// ============================================================================
exports.customMutationKeys = {
    /** Mutation key for provisionBucket */ provisionBucket: (identifier) => identifier
        ? ['mutation', 'provisionBucket', identifier]
        : ['mutation', 'provisionBucket'],
    /** Mutation key for seedAppLimitCapsDefaults */ seedAppLimitCapsDefaults: (identifier) => identifier
        ? ['mutation', 'seedAppLimitCapsDefaults', identifier]
        : ['mutation', 'seedAppLimitCapsDefaults'],
    /** Mutation key for seedAppLimitDefaults */ seedAppLimitDefaults: (identifier) => identifier
        ? ['mutation', 'seedAppLimitDefaults', identifier]
        : ['mutation', 'seedAppLimitDefaults'],
    /** Mutation key for seedOrgLimitCapsDefaults */ seedOrgLimitCapsDefaults: (identifier) => identifier
        ? ['mutation', 'seedOrgLimitCapsDefaults', identifier]
        : ['mutation', 'seedOrgLimitCapsDefaults'],
    /** Mutation key for seedOrgLimitDefaults */ seedOrgLimitDefaults: (identifier) => identifier
        ? ['mutation', 'seedOrgLimitDefaults', identifier]
        : ['mutation', 'seedOrgLimitDefaults'],
};
/**

// ============================================================================
// Unified Mutation Key Store
// ============================================================================

 * Unified mutation key store
 *
 * Use this for tracking in-flight mutations with useIsMutating.
 *
 * @example
 * ```ts
 * import { useIsMutating } from '@tanstack/react-query';
 * import { mutationKeys } from './generated';
 *
 * // Check if any user mutations are in progress
 * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all });
 *
 * // Check if a specific user is being updated
 * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) });
 * ```
 */
exports.mutationKeys = {
    appLimitCap: exports.appLimitCapMutationKeys,
    appLimitCapsDefault: exports.appLimitCapsDefaultMutationKeys,
    appLimit: exports.appLimitMutationKeys,
    appLimitCreditCode: exports.appLimitCreditCodeMutationKeys,
    appLimitCreditCodeItem: exports.appLimitCreditCodeItemMutationKeys,
    appLimitCredit: exports.appLimitCreditMutationKeys,
    appLimitCreditRedemption: exports.appLimitCreditRedemptionMutationKeys,
    appLimitDefault: exports.appLimitDefaultMutationKeys,
    appLimitEvent: exports.appLimitEventMutationKeys,
    appLimitWarning: exports.appLimitWarningMutationKeys,
    orgLimitAggregate: exports.orgLimitAggregateMutationKeys,
    orgLimitCap: exports.orgLimitCapMutationKeys,
    orgLimitCapsDefault: exports.orgLimitCapsDefaultMutationKeys,
    orgLimit: exports.orgLimitMutationKeys,
    orgLimitCredit: exports.orgLimitCreditMutationKeys,
    orgLimitDefault: exports.orgLimitDefaultMutationKeys,
    orgLimitEvent: exports.orgLimitEventMutationKeys,
    orgLimitWarning: exports.orgLimitWarningMutationKeys,
    custom: exports.customMutationKeys,
};
