@liquid-state/directory-client
v4.3.1
Published
Client library for Organisation Directory.
Downloads
153
Readme
directory-client
A TypeScript client library by Liquid State for the PEP Health Organisation Directory API.
- Repository: https://github.com/liquid-state/directory-client.git
- Issues: https://github.com/liquid-state/directory-client/issues
Usage
Install
npm install @liquid-state/directory-client
Import
import OrganisationDirectoryClient from '@liquid-state/directory-client';
const client = new OrganisationDirectoryClient();
Search
await client.getOrganisations('Failed to get the organisations', {
page: number | string,
search: string,
});
Create Claim
await client.createClaim('Failed to create claim', {
organisation: string | null;
claimed_name: string;
full_name: string;
position: string;
message: string;
org_exists: boolean;
});
Create Contact Request
await client.createContactRequest('Failed to create contact request', {
full_name: string;
email: string;
message: string;
});