daju-totvs
TypeScript icon, indicating that this package has built-in type declarations

1.4.5 • Public • Published

Package Totvs Daju

🚧 Em construção... 🚧

This application is an package to connect with api ERP

Code Style Test Package Manager Code Fix

Getting Started

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

Setup application

  • NodeJs 18:00 ou higher ✅;
  • TypeScript ✅;
  • Node-localstorage To simulate a localStorage in node by json file or any other type ✅;

Tech Stack

NodeJs TypeScript Vitest Axios Zod

How it Works

Clone the repository

https://github.com/DajuLabs/daju-totvs.git

Install the dependencies

npm install

Make a copy of .env.example and rename the copy as .env

sudo cp .env.example .env

YOU NEED TO ADD .ENV IN YOUR ROOT FOLDER PROJECT. THIS PACKAGE USE VARS IN MAIN .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

Features

classificationProductUpdate()

Run Tests

npm run test

Run Coverage

npm run teste:coverage

That is it!

Todos os direitos reservados a DajuLabs

Package Sidebar

Install

npm i daju-totvs

Weekly Downloads

10

Version

1.4.5

License

ISC

Unpacked Size

51.5 kB

Total Files

8

Last publish

Collaborators

  • desenvolvimento-daju