Classes
Methods
# async create(absence) → {Promise.<Absence>}
Creates a new absence. The startOn of the model always gets set to 00:00:00 and the endOn gets set to 23:59:59 both in UTC. The end date needs to be the same or after the start date.
Parameters:
Name | Type | Description |
---|---|---|
absence |
AbsenceCreateModel
|
Promise.<Absence>
# async delete(absenceId) → {Promise.<void>}
Deletes the absence with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
absenceId |
String
|
The id of the absence to delete. |
Promise.<void>
# async get(absenceId) → {Promise.<Absence>}
Returns the absence with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
absenceId |
String
|
The id of the absence to get. |
Promise.<Absence>
# async list(optionsopt) → {Promise.<Array.<Absence>>}
Returns all absences of all users.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ListOptions
|
<optional> |
Pagination and filtering options |
Promise.<Array.<Absence>>
# async update(absenceId, absence) → {Promise.<Absence>}
Updates the absence with the specified id. The startOn of the model always gets set to 00:00:00 and the endOn gets set to 23:59:59 both in UTC. The end date needs to be the same or after the start date.
Parameters:
Name | Type | Description |
---|---|---|
absenceId |
String
|
The id of the absence to update. |
absence |
AbsenceUpdateModel
|
Promise.<Absence>