1.7.1 • Published 12 months ago

@condor-labs/ceb-compliance-utils v1.7.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Utility Library from CEB Compliance @condor-labs

In order to make things modular, we developed this utility library to be used in @condor-labs

How to use it

To use the library you just need to follow the following steps Install the library with npm

npm install @condor-labs/ceb-compliance-utils

IMPORTANT: Before using any dataCollector method, you must call the start function ONCE at the begining of your application so that the dataCollector connects properly to mongoDB

await dataCollector.start();

Example Code

const { dataCollector, utils } = require("../../library/index");

async function init() {
  try {
    /* dataCollector tool */
    console.log("Starting Data Collector Module...");

    //Make sure this method is called before using any method
    await dataCollector.start();

    console.log("Fetching profession using dataCollector...");
    const response = await dataCollector.getSettingsByProfession(159);
    console.log(response.nameProfession);

    /* utils tool */
    const params = {
      ownerId: 123,
      trigger: "UNIT_TEST",
    };
    const jobIdCompound = utils.generateJobId(params);
    console.log(response.nameProfession);
  } catch (error) {
    console.error(error);
  }
}

init();

How to run examples

- Go to the example folder
- Create a .env file and set the values
- Run script `node utils/index.js`, `node dataCollector/index.js`, so on...

Contributors

The original author and current lead maintainer of this module is the @condor-labs development team.

More about Condorlabs Here.

License

MIT

1.7.1

12 months ago

1.7.0

1 year ago

1.6.2

1 year ago

1.3.7

2 years ago

1.3.6

2 years ago

1.5.3

2 years ago

1.3.5

2 years ago

1.5.2

2 years ago

1.4.3

2 years ago

1.3.4

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.4.2

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.2.0

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.3.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

3 years ago

1.0.0

3 years ago