import { router } from '../../trpc'
import { reassignAfterCOI, reassignDroppedJurorAssignments } from '../../services/juror-reassignment'
import { assignmentCrudRouter } from './assignment-crud'
import { assignmentSuggestionsRouter } from './assignment-suggestions'
import { assignmentNotificationsRouter } from './assignment-notifications'
import { assignmentRedistributionRouter } from './assignment-redistribution'

export { reassignAfterCOI, reassignDroppedJurorAssignments }

export const assignmentRouter = router({
  ...assignmentCrudRouter._def.procedures,
  ...assignmentSuggestionsRouter._def.procedures,
  ...assignmentNotificationsRouter._def.procedures,
  ...assignmentRedistributionRouter._def.procedures,
})
