'use server';
import { resolve } from '../../lib/server-container.js';
export async function bulkUpdateWorkItems(input) {
    try {
        const useCase = resolve('BulkUpdateWorkItemsUseCase');
        return await useCase.execute(input);
    }
    catch (error) {
        const message = error instanceof Error ? error.message : 'Failed to perform bulk update';
        return { ok: false, succeeded: [], failed: [], error: message };
    }
}
