import { getOrganisationStore } from "./store.js";
export async function listOrganisations({ authorizedOrganisationId, } = {}) {
    const store = getOrganisationStore();
    const organisations = await store.values();
    return organisations.filter((organisation) => organisation.approvedAt ||
        organisation.organisationId === authorizedOrganisationId);
}
//# sourceMappingURL=list-organisations.js.map