"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.namespaceEventMutationKeys = exports.platformNamespaceEventMutationKeys = exports.namespaceMutationKeys = exports.platformNamespaceMutationKeys = exports.dbPresetMutationKeys = exports.infraCommitMutationKeys = exports.infraObjectMutationKeys = exports.infraStoreMutationKeys = exports.infraRefMutationKeys = exports.infraGetAllRecordMutationKeys = 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.infraGetAllRecordMutationKeys = {
    /** All infraGetAllRecord mutation keys */ all: ['mutation', 'infragetallrecord'],
    /** Create infraGetAllRecord mutation key */ create: () => ['mutation', 'infragetallrecord', 'create'],
    /** Update infraGetAllRecord mutation key */ update: (id) => ['mutation', 'infragetallrecord', 'update', id],
    /** Delete infraGetAllRecord mutation key */ delete: (id) => ['mutation', 'infragetallrecord', 'delete', id],
};
exports.infraRefMutationKeys = {
    /** All infraRef mutation keys */ all: ['mutation', 'infraref'],
    /** Create infraRef mutation key */ create: () => ['mutation', 'infraref', 'create'],
    /** Update infraRef mutation key */ update: (id) => ['mutation', 'infraref', 'update', id],
    /** Delete infraRef mutation key */ delete: (id) => ['mutation', 'infraref', 'delete', id],
};
exports.infraStoreMutationKeys = {
    /** All infraStore mutation keys */ all: ['mutation', 'infrastore'],
    /** Create infraStore mutation key */ create: () => ['mutation', 'infrastore', 'create'],
    /** Update infraStore mutation key */ update: (id) => ['mutation', 'infrastore', 'update', id],
    /** Delete infraStore mutation key */ delete: (id) => ['mutation', 'infrastore', 'delete', id],
};
exports.infraObjectMutationKeys = {
    /** All infraObject mutation keys */ all: ['mutation', 'infraobject'],
    /** Create infraObject mutation key */ create: () => ['mutation', 'infraobject', 'create'],
    /** Update infraObject mutation key */ update: (id) => ['mutation', 'infraobject', 'update', id],
    /** Delete infraObject mutation key */ delete: (id) => ['mutation', 'infraobject', 'delete', id],
};
exports.infraCommitMutationKeys = {
    /** All infraCommit mutation keys */ all: ['mutation', 'infracommit'],
    /** Create infraCommit mutation key */ create: () => ['mutation', 'infracommit', 'create'],
    /** Update infraCommit mutation key */ update: (id) => ['mutation', 'infracommit', 'update', id],
    /** Delete infraCommit mutation key */ delete: (id) => ['mutation', 'infracommit', 'delete', id],
};
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.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.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.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],
};
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],
};
// ============================================================================
// Custom Mutation Keys
// ============================================================================
exports.customMutationKeys = {
    /** Mutation key for infraInitEmptyRepo */ infraInitEmptyRepo: (identifier) => identifier
        ? ['mutation', 'infraInitEmptyRepo', identifier]
        : ['mutation', 'infraInitEmptyRepo'],
    /** Mutation key for infraSetDataAtPath */ infraSetDataAtPath: (identifier) => identifier
        ? ['mutation', 'infraSetDataAtPath', identifier]
        : ['mutation', 'infraSetDataAtPath'],
    /** Mutation key for infraInsertNodeAtPath */ infraInsertNodeAtPath: (identifier) => identifier
        ? ['mutation', 'infraInsertNodeAtPath', identifier]
        : ['mutation', 'infraInsertNodeAtPath'],
    /** 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 = {
    infraGetAllRecord: exports.infraGetAllRecordMutationKeys,
    infraRef: exports.infraRefMutationKeys,
    infraStore: exports.infraStoreMutationKeys,
    infraObject: exports.infraObjectMutationKeys,
    infraCommit: exports.infraCommitMutationKeys,
    dbPreset: exports.dbPresetMutationKeys,
    platformNamespace: exports.platformNamespaceMutationKeys,
    namespace: exports.namespaceMutationKeys,
    platformNamespaceEvent: exports.platformNamespaceEventMutationKeys,
    namespaceEvent: exports.namespaceEventMutationKeys,
    custom: exports.customMutationKeys,
};
