0.0.5 • Published 2 years ago

@cjh1/sfapi v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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.

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago