Class: Note

Note(opts)

The Note class wraps node operations

Cannot directly be instantiated

Constructor

new Note(opts)

Creates a Note

Parameters:
Name Type Description
opts object

The configuration options.

Methods

add(uuid) → {Promise.<*>}

add a note from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
Type
Promise.<*>

add(uuid) → {Promise.<*>}

add a note from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
Type
Promise.<*>

delete(noteId) → {Promise.<*>}

Delete a note from node

Parameters:
Name Type Description
noteId

The id of the note

Returns:
Type
Promise.<*>

delete(noteId) → {Promise.<*>}

Delete a note from node

Parameters:
Name Type Description
noteId

The id of the note

Returns:
Type
Promise.<*>

getHistory(uuid) → {Promise.<*>}

Get history notes from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
  • Return a list of history notes
Type
Promise.<*>

getHistory(uuid) → {Promise.<*>}

Get history notes from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
  • Return a list of history notes
Type
Promise.<*>

list(uuid) → {Promise.<*>}

Get notes from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
  • Return a list of notes
Type
Promise.<*>

list(uuid) → {Promise.<*>}

Get notes from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
  • Return a list of notes
Type
Promise.<*>

set(uuid) → {Promise.<*>}

update a note

Parameters:
Name Type Description
uuid

The id of the note

Returns:
Type
Promise.<*>

set(uuid) → {Promise.<*>}

update a note

Parameters:
Name Type Description
uuid

The id of the note

Returns:
Type
Promise.<*>

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 Note variables

Parameters:
Name Type Description
token

The authorization token value

setToken(token)

Set the token in Note variables

Parameters:
Name Type Description
token

The authorization token value

Note(opts)

The Note class wraps node operations

Cannot directly be instantiated

Constructor

new Note(opts)

Creates a Note

Parameters:
Name Type Description
opts object

The configuration options.

Methods

add(uuid) → {Promise.<*>}

add a note from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
Type
Promise.<*>

add(uuid) → {Promise.<*>}

add a note from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
Type
Promise.<*>

delete(noteId) → {Promise.<*>}

Delete a note from node

Parameters:
Name Type Description
noteId

The id of the note

Returns:
Type
Promise.<*>

delete(noteId) → {Promise.<*>}

Delete a note from node

Parameters:
Name Type Description
noteId

The id of the note

Returns:
Type
Promise.<*>

getHistory(uuid) → {Promise.<*>}

Get history notes from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
  • Return a list of history notes
Type
Promise.<*>

getHistory(uuid) → {Promise.<*>}

Get history notes from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
  • Return a list of history notes
Type
Promise.<*>

list(uuid) → {Promise.<*>}

Get notes from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
  • Return a list of notes
Type
Promise.<*>

list(uuid) → {Promise.<*>}

Get notes from node

Parameters:
Name Type Description
uuid

The id of the node

Returns:
  • Return a list of notes
Type
Promise.<*>

set(uuid) → {Promise.<*>}

update a note

Parameters:
Name Type Description
uuid

The id of the note

Returns:
Type
Promise.<*>

set(uuid) → {Promise.<*>}

update a note

Parameters:
Name Type Description
uuid

The id of the note

Returns:
Type
Promise.<*>

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 Note variables

Parameters:
Name Type Description
token

The authorization token value

setToken(token)

Set the token in Note variables

Parameters:
Name Type Description
token

The authorization token value