Classes
Methods
# async create(timeReport) → {Promise.<TimeReport>}
Creates a new time report.
Parameters:
Name | Type | Description |
---|---|---|
timeReport |
TimeReport
|
The timereport model. |
Promise.<TimeReport>
# async delete(timeReportId) → {Promise.<void>}
Deletes the time report of the specified id.
Parameters:
Name | Type | Description |
---|---|---|
timeReportId |
String
|
The id of the time report. |
Promise.<void>
# async get(timeReportId) → {Promise.<TimeReport>}
Returns time reports of the specified id. Returns time reports of the specified id.
Parameters:
Name | Type | Description |
---|---|---|
timeReportId |
String
|
The id of the time report. |
Promise.<TimeReport>
# async list(optionsopt) → {Promise.<Array.<TimeReport>>}
Returns all time reports of a user. Returns time reports the user created as well as the shared time reports of other users.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ListOptions
|
<optional> |
Pagination and filtering options |
Promise.<Array.<TimeReport>>
# async update(timeReportId, timeReport) → {Promise.<TimeReport>}
Updates the time report of the specified id.
Parameters:
Name | Type | Description |
---|---|---|
timeReportId |
String
|
The id of the time report. |
timeReport |
TimeReport
|
The timereport model. |
Promise.<TimeReport>