import { Department, DepartmentApi, Service } from '@openapi/registry-service/api';

export interface DepartmentWithServices extends Department {
  services: Service[]
}

export default class DepartmentService {
  async get(id: string, expand: string): Promise<DepartmentWithServices> {
    const { data } = await new DepartmentApi().getDepartment(id, expand);
    return data as DepartmentWithServices;
  }
}
