4.3.1 • Published 2 years ago
@liquid-state/directory-client v4.3.1
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-clientImport
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;
});