Constructor
new Activity(opts)
Creates a Node
Parameters:
Name | Type | Description |
---|---|---|
opts |
object | The configuration options. |
Methods
find(page, length, beginDate, endDate, user, action, item) → {Promise.<*>}
Get all activities by filters
Parameters:
Name | Type | Description |
---|---|---|
page |
The offset of the results |
|
length |
Maximum number of results returned |
|
beginDate |
The start date |
|
endDate |
The end Date |
|
user |
The user |
|
action |
The action |
|
item |
The uuid of a node |
Returns:
Return a list of activities
- Type
- Promise.<*>
find(page, length, beginDate, endDate, user, action, item) → {Promise.<*>}
Get all activities by filters
Parameters:
Name | Type | Description |
---|---|---|
page |
The offset of the results |
|
length |
Maximum number of results returned |
|
beginDate |
The start date |
|
endDate |
The end Date |
|
user |
The user |
|
action |
The action |
|
item |
The uuid of a node |
Returns:
Return a list of activities
- Type
- Promise.<*>
getActions() → {Promise.<any>|Promise.<(*|never)>}
Get all actions
Returns:
Return a list of actions
- Type
- Promise.<any> | Promise.<(*|never)>
getActions() → {Promise.<any>|Promise.<(*|never)>}
Get all actions
Returns:
Return a list of actions
- Type
- Promise.<any> | Promise.<(*|never)>
setRestUrl(restUrl)
Set the rest url
Parameters:
Name | Type | Description |
---|---|---|
restUrl |
The rest url |
setRestUrl(restUrl)
Set the rest url
Parameters:
Name | Type | Description |
---|---|---|
restUrl |
The rest url |
setToken(token)
Set the token in Node variables
Parameters:
Name | Type | Description |
---|---|---|
token |
The authorization token value |
setToken(token)
Set the token in Node variables
Parameters:
Name | Type | Description |
---|---|---|
token |
The authorization token value |