voyagesdk
v1.0.53
Published
# Install voyagesdk npm install voyagesdk --save
Downloads
838
Maintainers
Readme
VOYAGESDK
Install voyagesdk
npm install voyagesdk --save
Get Employee API
const voyagesdk = require('voyagesdk');
voyagesdk.getEmployee(designation, branch).then((res) => { console.log(res); });
Get JobsByCrew API
const voyagesdk = require('voyagesdk');
voyagesdk.getJobsByCrew(date, branch).then((res) => { console.log(res); });
Get Pre Existing Damages API
const voyagesdk = require('voyagesdk');
voyagesdk.getPreExistingDamages(jobId).then((res) => { console.log(res); });
Create Pre Existing Damages API
const voyagesdk = require('voyagesdk'); const jobId = ""; const input = { "username": "Mathy", "pre_existing_damage": { "bol_no": "123", "documents": [ { "item": "Table", "condition": "Scratched", "image_path": [ "test/1.png" ] }, { "item": "TV", "condition": "Breaked", "image_path": [ "test/3.png", "test/4.png" ] } ] } }; voyagesdk.createPreExistingDamage(jobId, input).then((res) => { console.log(res); });