small script API additions

This commit is contained in:
zadam
2019-11-27 23:07:10 +01:00
parent 0415efd33b
commit 1c057cac75
7 changed files with 307 additions and 9 deletions

View File

@@ -282,6 +282,14 @@ function BackendScriptApi(currentNote, apiParams) {
*/
this.getDateNote = dateNoteService.getDateNote;
/**
* Returns today's day note. If such note doesn't exist, it is created.
*
* @method
* @returns {Promise<Note|null>}
*/
this.getTodayNote = dateNoteService.getTodayNote;
/**
* Returns note for the first date of the week of the given date.
*