@cjh1/sfapi
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

sfapi-ts

A TypeScript client for the SF API. Generated from the OpenAPI specification. The generated code is automatically refactored using ts-morph to provide more friendly naming.

Example usage

  client = new Client(
    OIDC_CLIENT_ID,
    new URL(REDIRECT_URL),
    new URL(AUTH_URL),
    new URL(TOKEN_URL),
    new URL(API_URL)
  );
  
  client.authorize()
  
  const status = await client.status.getStatus();
  console.log(status);

  const coriStatus = await client.status.getStatusBySystem("cori");
  console.log(coriStatus);

  const roles = await client.account.getRoles();
  console.log(roles);

API Documentation

The full API reference can be found here.

Readme

Keywords

none

Package Sidebar

Install

npm i @cjh1/sfapi

Weekly Downloads

63

Version

0.0.5

License

MIT

Unpacked Size

150 kB

Total Files

64

Last publish

Collaborators

  • cjh1