1.0.6 • Published 4 years ago
navalsystems-report v1.0.6
Dillinger
Naval Systems Report is a lib to generate the necessary JSON object to use in report microsservice
Get Started
Install module:
$ npm install --save navalsystems-report
And use in your code with your squid token
import nsreport from 'navalsystems-report'
nsreport({
squidToken: `<squid-token>`,
squidURL: `https://squid.lccv.ufal.br/api/v0`,
pipeNetInputSDF: `e1e1538a-aa70-48b9-92b5-238f6131242d`,
pipeNetLibXML: `1ef11949-38c5-45cd-a51d-aed5fe42283d`,
pipeNetOutputXML: `e1eb1e2a-8470-46f1-a9d8-a78ba6f90d78`,
pipeNetOutputTXT: `6aae0422-e215-47d5-a8a7-076338143d16`,
simulationTag: 1 //optional. Refer to simulation subsection. It is used to mount table title, example: 4-<subsection>-1 - Pump configuration table
}).then((res) => {
console.log(res)
})