@pachamamas/factorial-clock-in
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

factorial-clock-in

Set of utilities to use from Google Chrome extensions to facilitate the use of Factorial HR.

This library contains a set of functions intended to be run from https://factorialhr.es/. These functions make requests to the Factorial API to facilitate the use of this tool.

Install

npm i -S @pachamamas/factorial-clock-in

Use

Batch time recording:

factorialhr
  .batch({
    month: 2, // First month is 0
    year: 2024,
    intervals: [
      {
        clock_in: '08:30',
        clock_out: '14:00',
      },
      {
        clock_in: '16:00',
        clock_out: '18:30',
      },
    ],
    minutes_per_day: 480,
    // dry_run: true, // Uncomment to see in console the simulated result of the execution without any change being made.
  })
  .then();

Delete all hours in a period:

factorialhr.deleteAllShiftsByPeriodId({ period_id: 13401838 }).then();

Package Sidebar

Install

npm i @pachamamas/factorial-clock-in

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

42.9 kB

Total Files

26

Last publish

Collaborators

  • marcoinarrea