@serodigital/sero-life-api-client
v0.0.5
Published
A Typescript GQL Client Sero's Life App.
Downloads
3
Readme
Sero Life Api Client
A Typescript GQL Client Sero's Life App.
Installing
npm i @serodigital/sero-life-api-client
Usage
import {
SeroLifeAPiClient,
GetMyPropertyCapabilitiesQuery,
GetMyPropertyCapabilitiesQueryVariables,
GetMyPropertyCapabilitiesDocument
} from '@serodigital/sero-life-api-client';
const client = new SeroLifeApiClient('https://sero-life-api-gateway-staging.sero.life');
const getPropertyCapabilities = await client.run<GetMyPropertyCapabilitiesQuery, GetMyPropertyCapabilitiesQueryVariables>(
GetMyPropertyCapabilitiesDocument,
{
variables: {
...values
}
headers
}
);
console.log(getPropertyCapabilities?.data?.CoreApi_getMyPropertyCapabilities.capabilityName);