diff --git a/backend/src/controllers/employeeController.ts b/backend/src/controllers/employeeController.ts index aa3e056..bdac94a 100644 --- a/backend/src/controllers/employeeController.ts +++ b/backend/src/controllers/employeeController.ts @@ -1,5 +1,5 @@ // backend/src/controllers/employeeController.ts -import { Request, Response } from 'express'; +import { Response } from 'express'; import { v4 as uuidv4 } from 'uuid'; import bcrypt from 'bcryptjs'; import { db } from '../services/databaseService.js'; diff --git a/backend/src/controllers/setupController.ts b/backend/src/controllers/setupController.ts index b2a9672..699a20f 100644 --- a/backend/src/controllers/setupController.ts +++ b/backend/src/controllers/setupController.ts @@ -1,7 +1,6 @@ // backend/src/controllers/setupController.ts import { Request, Response } from 'express'; import bcrypt from 'bcrypt'; -import { v4 as uuidv4 } from 'uuid'; import { randomUUID } from 'crypto'; import { db } from '../services/databaseService.js'; diff --git a/backend/src/controllers/shiftPlanController.ts b/backend/src/controllers/shiftPlanController.ts index 6a2c37f..57d5edb 100644 --- a/backend/src/controllers/shiftPlanController.ts +++ b/backend/src/controllers/shiftPlanController.ts @@ -5,10 +5,9 @@ import { db } from '../services/databaseService.js'; import { CreateShiftPlanRequest, UpdateShiftPlanRequest, - ShiftPlan } from '../models/ShiftPlan.js'; import { AuthRequest } from '../middleware/auth.js'; -import { createPlanFromPreset, TEMPLATE_PRESETS } from '../models/defaults/shiftPlanDefaults.js'; +import { TEMPLATE_PRESETS } from '../models/defaults/shiftPlanDefaults.js'; async function getPlanWithDetails(planId: string) { const plan = await db.get(` diff --git a/backend/src/routes/setup.ts b/backend/src/routes/setup.ts index da4d842..22281c5 100644 --- a/backend/src/routes/setup.ts +++ b/backend/src/routes/setup.ts @@ -1,6 +1,5 @@ // backend/src/routes/setup.ts import express from 'express'; -import bcrypt from 'bcryptjs'; import { checkSetupStatus, setupAdmin } from '../controllers/setupController.js'; const router = express.Router(); diff --git a/backend/src/scripts/verify-python.js b/backend/src/scripts/verify-python.js index e3b0dcf..47badc1 100644 --- a/backend/src/scripts/verify-python.js +++ b/backend/src/scripts/verify-python.js @@ -1,5 +1,4 @@ import { spawn } from 'child_process'; -import path from 'path'; export function runPythonScript(scriptPath, args = []) { return new Promise((resolve, reject) => { diff --git a/backend/src/services/SchedulingService.ts b/backend/src/services/SchedulingService.ts index 85234c9..d30311e 100644 --- a/backend/src/services/SchedulingService.ts +++ b/backend/src/services/SchedulingService.ts @@ -2,8 +2,7 @@ import { Worker } from 'worker_threads'; import path from 'path'; import { fileURLToPath } from 'url'; -import { Employee, EmployeeAvailability } from '../models/Employee.js'; -import { ShiftPlan, ScheduledShift } from '../models/ShiftPlan.js'; +import { ShiftPlan } from '../models/ShiftPlan.js'; import { ScheduleRequest, ScheduleResult, Availability, Constraint } from '../models/scheduling.js'; const __filename = fileURLToPath(import.meta.url); diff --git a/backend/src/workers/scheduler-worker.ts b/backend/src/workers/scheduler-worker.ts index 60a1112..c34e3f6 100644 --- a/backend/src/workers/scheduler-worker.ts +++ b/backend/src/workers/scheduler-worker.ts @@ -2,8 +2,8 @@ import { parentPort, workerData } from 'worker_threads'; import { CPModel, CPSolver } from './cp-sat-wrapper.js'; import { ShiftPlan, Shift } from '../models/ShiftPlan.js'; -import { Employee, EmployeeAvailability } from '../models/Employee.js'; -import { Availability, Constraint, Violation, SolverOptions, Solution, Assignment } from '../models/scheduling.js'; +import { Employee } from '../models/Employee.js'; +import { Availability, Constraint } from '../models/scheduling.js'; interface WorkerData { shiftPlan: ShiftPlan;