@liquid-state/directory-client
TypeScript icon, indicating that this package has built-in type declarations

4.3.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i @liquid-state/directory-client

    Weekly Downloads

    9

    Version

    4.3.1

    License

    MIT

    Unpacked Size

    91.9 kB

    Total Files

    23

    Last publish

    Collaborators

    • coder-3
    • cdoussin
    • elsimir
    • incandesco