Note
create(vaultId, content, name)
vaultId
(string
, required)content
(string
, required) - note text content, ex: stringified JSONname
(string
, required) - note nameoptions
(NoteCreateOptions
, optional) - parent id, mime type, etc.returns
Promise<{ noteId, transactionId }>
- Promise with new note id & corresponding transaction id
uploadRevision(noteId, name, content)
noteId
(string
, required)content
(string
, required) - note text content, ex: stringified JSONname
(string
, required) - note nameoptions
(NoteOptions
, optional) - mime type, etc.returns
Promise<{ transactionId }>
- Promise with corresponding transaction id
move(noteId, parentId)
noteId
(string
, required)parentId
(string
, optional) - new parent folder idreturns
Promise<{ transactionId }>
- Promise with corresponding transaction id
revoke(noteId)
noteId
(string
, required)returns
Promise<{ transactionId }>
- Promise with corresponding transaction id
restore(noteId)
noteId
(string
, required)returns
Promise<{ transactionId }>
- Promise with corresponding transaction id
delete(noteId)
noteId
(string
, required)returns
Promise<{ transactionId }>
- Promise with corresponding transaction id
get(noteId, options)
noteId
(string
, required)options
(GetOptions
, optional)returns
Promise<Note>
- Promise with the note object
listAll(vaultId, options)
vaultId
(string
, required)options
(ListOptions
, optional)returns
Promise<Array<Note>>
- Promise with all notes within given vault
list(vaultId, options)
vaultId
(string
, required)options
(ListOptions
, optional)returns
Promise<{ items, nextToken }>
- Promise with paginated notes within given vault
getVersion(noteId, index)
Get note text version by index, return the latest version by default
noteId
(string
, required)index
(number
, optional) - note version indexreturns
Promise<{ name: string, data: string }>
- Promise with note name & data string text
Last updated