Package Exports
- @pachamamas/factorial-clock-in
- @pachamamas/factorial-clock-in/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pachamamas/factorial-clock-in) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-inUse
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();