"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.platformNamespaceEventMutationKeys = exports.platformNamespaceMutationKeys = exports.platformInfraStoreMutationKeys = exports.platformInfraRefMutationKeys = exports.platformInfraObjectMutationKeys = exports.platformInfraGetAllTreeNodesRecordMutationKeys = exports.platformInfraCommitMutationKeys = exports.namespaceEventMutationKeys = exports.namespaceMutationKeys = exports.dbPresetMutationKeys = 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.dbPresetMutationKeys = {
    /** All dbPreset mutation keys */ all: ['mutation', 'dbpreset'],
    /** Create dbPreset mutation key */ create: () => ['mutation', 'dbpreset', 'create'],
    /** Update dbPreset mutation key */ update: (id) => ['mutation', 'dbpreset', 'update', id],
    /** Delete dbPreset mutation key */ delete: (id) => ['mutation', 'dbpreset', 'delete', id],
};
exports.namespaceMutationKeys = {
    /** All namespace mutation keys */ all: ['mutation', 'namespace'],
    /** Create namespace mutation key */ create: () => ['mutation', 'namespace', 'create'],
    /** Update namespace mutation key */ update: (id) => ['mutation', 'namespace', 'update', id],
    /** Delete namespace mutation key */ delete: (id) => ['mutation', 'namespace', 'delete', id],
};
exports.namespaceEventMutationKeys = {
    /** All namespaceEvent mutation keys */ all: ['mutation', 'namespaceevent'],
    /** Create namespaceEvent mutation key */ create: () => ['mutation', 'namespaceevent', 'create'],
    /** Update namespaceEvent mutation key */ update: (id) => ['mutation', 'namespaceevent', 'update', id],
    /** Delete namespaceEvent mutation key */ delete: (id) => ['mutation', 'namespaceevent', 'delete', id],
};
exports.platformInfraCommitMutationKeys = {
    /** All platformInfraCommit mutation keys */ all: ['mutation', 'platforminfracommit'],
    /** Create platformInfraCommit mutation key */ create: () => ['mutation', 'platforminfracommit', 'create'],
    /** Update platformInfraCommit mutation key */ update: (id) => ['mutation', 'platforminfracommit', 'update', id],
    /** Delete platformInfraCommit mutation key */ delete: (id) => ['mutation', 'platforminfracommit', 'delete', id],
};
exports.platformInfraGetAllTreeNodesRecordMutationKeys = {
    /** All platformInfraGetAllTreeNodesRecord mutation keys */ all: [
        'mutation',
        'platforminfragetalltreenodesrecord',
    ],
    /** Create platformInfraGetAllTreeNodesRecord mutation key */ create: () => ['mutation', 'platforminfragetalltreenodesrecord', 'create'],
    /** Update platformInfraGetAllTreeNodesRecord mutation key */ update: (id) => ['mutation', 'platforminfragetalltreenodesrecord', 'update', id],
    /** Delete platformInfraGetAllTreeNodesRecord mutation key */ delete: (id) => ['mutation', 'platforminfragetalltreenodesrecord', 'delete', id],
};
exports.platformInfraObjectMutationKeys = {
    /** All platformInfraObject mutation keys */ all: ['mutation', 'platforminfraobject'],
    /** Create platformInfraObject mutation key */ create: () => ['mutation', 'platforminfraobject', 'create'],
    /** Update platformInfraObject mutation key */ update: (id) => ['mutation', 'platforminfraobject', 'update', id],
    /** Delete platformInfraObject mutation key */ delete: (id) => ['mutation', 'platforminfraobject', 'delete', id],
};
exports.platformInfraRefMutationKeys = {
    /** All platformInfraRef mutation keys */ all: ['mutation', 'platforminfraref'],
    /** Create platformInfraRef mutation key */ create: () => ['mutation', 'platforminfraref', 'create'],
    /** Update platformInfraRef mutation key */ update: (id) => ['mutation', 'platforminfraref', 'update', id],
    /** Delete platformInfraRef mutation key */ delete: (id) => ['mutation', 'platforminfraref', 'delete', id],
};
exports.platformInfraStoreMutationKeys = {
    /** All platformInfraStore mutation keys */ all: ['mutation', 'platforminfrastore'],
    /** Create platformInfraStore mutation key */ create: () => ['mutation', 'platforminfrastore', 'create'],
    /** Update platformInfraStore mutation key */ update: (id) => ['mutation', 'platforminfrastore', 'update', id],
    /** Delete platformInfraStore mutation key */ delete: (id) => ['mutation', 'platforminfrastore', 'delete', id],
};
exports.platformNamespaceMutationKeys = {
    /** All platformNamespace mutation keys */ all: ['mutation', 'platformnamespace'],
    /** Create platformNamespace mutation key */ create: () => ['mutation', 'platformnamespace', 'create'],
    /** Update platformNamespace mutation key */ update: (id) => ['mutation', 'platformnamespace', 'update', id],
    /** Delete platformNamespace mutation key */ delete: (id) => ['mutation', 'platformnamespace', 'delete', id],
};
exports.platformNamespaceEventMutationKeys = {
    /** All platformNamespaceEvent mutation keys */ all: [
        'mutation',
        'platformnamespaceevent',
    ],
    /** Create platformNamespaceEvent mutation key */ create: () => ['mutation', 'platformnamespaceevent', 'create'],
    /** Update platformNamespaceEvent mutation key */ update: (id) => ['mutation', 'platformnamespaceevent', 'update', id],
    /** Delete platformNamespaceEvent mutation key */ delete: (id) => ['mutation', 'platformnamespaceevent', 'delete', id],
};
// ============================================================================
// Custom Mutation Keys
// ============================================================================
exports.customMutationKeys = {
    /** Mutation key for platformInfraInitEmptyRepo */ platformInfraInitEmptyRepo: (identifier) => identifier
        ? ['mutation', 'platformInfraInitEmptyRepo', identifier]
        : ['mutation', 'platformInfraInitEmptyRepo'],
    /** Mutation key for platformInfraInsertNodeAtPath */ platformInfraInsertNodeAtPath: (identifier) => identifier
        ? ['mutation', 'platformInfraInsertNodeAtPath', identifier]
        : ['mutation', 'platformInfraInsertNodeAtPath'],
    /** Mutation key for platformInfraSetDataAtPath */ platformInfraSetDataAtPath: (identifier) => identifier
        ? ['mutation', 'platformInfraSetDataAtPath', identifier]
        : ['mutation', 'platformInfraSetDataAtPath'],
    /** Mutation key for provisionBucket */ provisionBucket: (identifier) => identifier
        ? ['mutation', 'provisionBucket', identifier]
        : ['mutation', 'provisionBucket'],
};
/**

// ============================================================================
// 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 = {
    dbPreset: exports.dbPresetMutationKeys,
    namespace: exports.namespaceMutationKeys,
    namespaceEvent: exports.namespaceEventMutationKeys,
    platformInfraCommit: exports.platformInfraCommitMutationKeys,
    platformInfraGetAllTreeNodesRecord: exports.platformInfraGetAllTreeNodesRecordMutationKeys,
    platformInfraObject: exports.platformInfraObjectMutationKeys,
    platformInfraRef: exports.platformInfraRefMutationKeys,
    platformInfraStore: exports.platformInfraStoreMutationKeys,
    platformNamespace: exports.platformNamespaceMutationKeys,
    platformNamespaceEvent: exports.platformNamespaceEventMutationKeys,
    custom: exports.customMutationKeys,
};
