4.3.1 • Published 1 year ago

@liquid-state/directory-client v4.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

directory-client

A TypeScript client library by Liquid State for the PEP Health Organisation Directory API.

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;
});
4.3.1

1 year ago

4.2.1

2 years ago

4.2.0

2 years ago

3.5.0

2 years ago

4.1.0

2 years ago

4.0.1

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

3.4.0

2 years ago

3.3.0

3 years ago

3.2.1

3 years ago

3.2.0

3 years ago

4.0.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago