Add week notes to frontend_script_api (#2253)

Note: getWeekNote can take `startOfTheWeek` as options but is not passed to the api route.
This commit is contained in:
Sathyam M Vellal
2021-10-21 03:16:51 -07:00
committed by GitHub
parent 3d98644bf6
commit 3b551e3e4d
4 changed files with 25 additions and 0 deletions

View File

@@ -396,6 +396,15 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain
*/
this.getDateNote = dateNotesService.getDateNote;
/**
* Returns date-note for the first date of the week of the given date. If it doesn't exist, it is automatically created.
*
* @method
* @param {string} date - e.g. "2019-04-29"
* @return {Promise<NoteShort>}
*/
this.getWeekNote = dateNotesService.getWeekNote;
/**
* Returns month-note. If it doesn't exist, it is automatically created.
*