@pachamamas/factorial-clock-in
v1.0.2
Published
Set of utilities to use from Google Chrome extensions to facilitate the use of Factorial HR.
Downloads
1
Maintainers
Readme
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();