BigTime SDK
Node wrapper for interacting with the BigTime API.
Installation
npm install --save bigtime-sdk
Usage
const BigTime = ; const bigTime = ; async { try await bigTime; const staffListResponse = await bigTime; // etc. catch err console; }
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
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