- constructor()
[constructor input]
- getAction() ⇒
string
[input getAction]
- getPayload() ⇒
string
[input getPayload]
- isValid() ⇒
Boolean
[input check the isValid]
- create(record) ⇒
promise
[create description]
- get(_id, category) ⇒
promise
[get description]
- update(_id, record) ⇒
promise
[update description]
- delete(_id) ⇒
promise
[delete description]
- execute(action, payload)
[execute]
- add(text, category) ⇒
Promise
[add note]
- delete(id) ⇒
Promise
[delete note]
- list(category) ⇒
Promise
[list notes]
[action description]
Kind: instance property of Input
Properties
Name | Type |
---|---|
action | string |
payload | string |
[constructor input]
[input getAction]
[input getPayload]
[input check the isValid]
[create description]
Kind: global function
Param | Type |
---|---|
record | object |
[get description]
Kind: global function
Param | Type |
---|---|
_id | number |
category | string |
[update description]
Kind: global function
Returns: promise
- [description]
Param | Type | Description |
---|---|---|
_id | number |
[description] |
record | object |
[description] |
[delete description]
Kind: global function
Returns: promise
- [description]
Param | Type | Description |
---|---|---|
_id | number |
[description] |
[execute]
Kind: global function
Param | Type | Description |
---|---|---|
action | string |
action type add |
payload | string |
data |
[add note]
Kind: global function
Param | Type | Description |
---|---|---|
text | string |
note text |
category | string |
note category |
[delete note]
Kind: global function
Param | Type | Description |
---|---|---|
id | number |
note id |
[list notes]
Kind: global function
Param | Type | Description |
---|---|---|
category | string |
[note category] |