import { OrganizationApi } from '@openapi/registry-service/api';
import { Organization } from '@interfaces/entities/Organization';

export default class OrganizationService {
  async get(id: string, expand: string): Promise<Organization> {
    const { data } = await new OrganizationApi().getOrganization(id, expand);
    return data as Organization;
  }
}
