import type { PosTerminalRepository } from '../domain/ports.js';
import type { PosTerminal, ListTerminalsOptions } from '../domain/terminal.js';

export class ListTerminalsUseCase {
  constructor(private readonly terminalRepo: PosTerminalRepository) {}

  async execute(options?: ListTerminalsOptions): Promise<{ terminals: PosTerminal[]; total: number }> {
    return this.terminalRepo.list(options);
  }
}
