This application is an package to connect with api ERP
We have developed a wrapper that uses the totvs api internally. In this way, we better control application requests and errors, as well as application limits.
This package just get what we need in terms of endpoints
- NodeJs 18:00 ou higher ✅;
- TypeScript ✅;
- Node-localstorage To simulate a localStorage in node by json file or any other type ✅;
https://github.com/DajuLabs/daju-totvs.git
npm install
sudo cp .env.example .env
EX: MyProject -> node_modules/daju-totvs -> src -> config.ts -> .env
daju-totvs package gonna use this root .env
Variable values. Visit this link: Env vars 🔗
#enviroment
NODE_ENV=development
#AUTHENTICATION TOTVS
ENDPOINT=replace_this
ENDPOINTTREINO=replace_this
#Credentials Authorization TOTVS
BRANCH=replace_this
AUTH_GRANT_TYPE=replace_this
REFRESH_GRANT_TYPE=replace_this
CLIENT_ID=replace_this
CLIENT_SECRET=replace_this
USERNAME=replace_this
PASSWORD=replace_this
classificationProductUpdate()
npm run test
npm run teste:coverage
That is it!
Todos os direitos reservados a DajuLabs