0.11.0 • Published 5 years ago

bigtime-sdk v0.11.0

Weekly downloads
22
License
ISC
Repository
github
Last release
5 years ago

BigTime SDK

Node wrapper for interacting with the BigTime API.

Travis CI Build Status npm version Code Climate Maintainability Code Climate Test Coverage Coveralls Coverage Status David DM

Installation

npm install --save bigtime-sdk

Usage

const BigTime = require('bigtime-sdk');

const bigTime = new BigTime();

(async () => {
  try {
    await bigTime.createSession(YOUR_USERNAME, YOUR_PASSWORD);
    const staffListResponse = await bigTime.getStaffList();
    // etc.
  } catch (err) {
    console.log(err.name, err.message);
  }
})()

Tests

npm test

213 passing (174ms)

-------------------------|----------|----------|----------|----------|-------------------|
File                     |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
-------------------------|----------|----------|----------|----------|-------------------|
All files                |      100 |      100 |      100 |      100 |                   |
 src                     |      100 |      100 |      100 |      100 |                   |
  base.js                |      100 |      100 |      100 |      100 |                   |
  endpoint.js            |      100 |      100 |      100 |      100 |                   |
  http-request.js        |      100 |      100 |      100 |      100 |                   |
 src/util                |      100 |      100 |      100 |      100 |                   |
  get-current-date.js    |      100 |      100 |      100 |      100 |                   |
  index.js               |      100 |      100 |      100 |      100 |                   |
  populate-url-params.js |      100 |      100 |      100 |      100 |                   |
-------------------------|----------|----------|----------|----------|-------------------|

Documentation

npm run docs

npm.io

Linting

Refer to the ESLint docs and .eslintrc.json for rules.

npm run lint

To Do

  • Normalize HttpRequest[method] signatures
  • Use async/await
  • Namespace resources (bigTime.picklists.staff(), etc.)
  • Add timer endpoints
  • Add weekly start date endpoints
  • Add expense endpoints
  • Add projects endpoints
  • Add tasks endpoints
  • Add invoice endpoints
  • Add transaction endpoints
0.11.0

5 years ago

0.10.0

5 years ago

0.9.0

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago